mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
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>
(cherry picked from commit 2d8d5ced10)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
574d32606a
commit
1369d30a99
@@ -510,7 +510,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
linenum++;
|
linenum++;
|
||||||
|
|
||||||
if (1 == sscanf(line, "|xattr %254s", xattr)) {
|
if (1 == sscanf(line, " |xattr %254s", xattr)) {
|
||||||
#ifdef EXTENDED_ATTRIBUTES
|
#ifdef EXTENDED_ATTRIBUTES
|
||||||
if (!full_name)
|
if (!full_name)
|
||||||
bb_error_msg_and_die("line %d should be after a file\n", linenum);
|
bb_error_msg_and_die("line %d should be after a file\n", linenum);
|
||||||
|
|||||||
Reference in New Issue
Block a user