]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: quote path passed to stat in get_filesystem_id()
authorAndre McCurdy <armccurdy@gmail.com>
Sat, 24 Mar 2018 04:55:13 +0000 (21:55 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Mar 2018 10:56:06 +0000 (11:56 +0100)
Although get_filesystem_id() is a private API and never gets passed
a path containing spaces or other special characters, etc, quote the
path anyway for consistency.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/sanity.bbclass

index 6716985bc008d46f0cea7cb54e42d494e2cbae71..e0e57ceec1ff45f403a3c23e723162865e636f99 100644 (file)
@@ -336,7 +336,7 @@ def check_path_length(filepath, pathname, limit):
     return ""
 
 def get_filesystem_id(path):
-    status, result = oe.utils.getstatusoutput("stat -f -c '%s' %s" % ("%t", path))
+    status, result = oe.utils.getstatusoutput("stat -f -c '%s' '%s'" % ("%t", path))
     if status == 0:
         return result
     else: