makedevs: allow leading whitespace for capabilities
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Mon, 6 Aug 2018 03:17:14 +0000 (00:17 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 10 Aug 2018 06:25:08 +0000 (08:25 +0200)
commit2d8d5ced107ab2a05d023873de4e8f12f081e5af
treec88cb0b14e4034d6c114cad74b3450247b9e5cc8
parentb42fb29048128a432a130c0652e086dfde641d75
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>
package/makedevs/makedevs.c