diff options
author | Ricardo Martincoski <ricardo.martincoski@gmail.com> | 2018-08-06 00:17:14 -0300 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2018-08-10 08:25:08 +0200 |
commit | 2d8d5ced107ab2a05d023873de4e8f12f081e5af (patch) | |
tree | c88cb0b14e4034d6c114cad74b3450247b9e5cc8 /package/makedevs/makedevs.c | |
parent | b42fb29048128a432a130c0652e086dfde641d75 (diff) | |
download | buildroot-2d8d5ced107ab2a05d023873de4e8f12f081e5af.tar.gz buildroot-2d8d5ced107ab2a05d023873de4e8f12f081e5af.zip |
makedevs: allow leading whitespace for capabilities
Currently makedevs silently ignores extended attributes with leading
whitespace, for example those added to a <PACKAGE>_PERMISSIONS following
the recommended style from check-package.
Makedevs already ignores leading whitespace for normal entries (file
permission changes and device files creation). Do the same for extended
attributes.
Fixes: #11191.
Reported-by: Jean-pierre Cartal <jpcartal@free.fr>
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/makedevs/makedevs.c')
-rw-r--r-- | package/makedevs/makedevs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/makedevs/makedevs.c b/package/makedevs/makedevs.c index 1ba5936342..c57b964f5c 100644 --- a/package/makedevs/makedevs.c +++ b/package/makedevs/makedevs.c @@ -510,7 +510,7 @@ int main(int argc, char **argv) linenum++; - if (1 == sscanf(line, "|xattr %254s", xattr)) { + if (1 == sscanf(line, " |xattr %254s", xattr)) { #ifdef EXTENDED_ATTRIBUTES if (!full_name) bb_error_msg_and_die("line %d should be after a file\n", linenum); |