diff options
author | Martin Donnelly <martin.donnelly@ge.com> | 2013-02-27 12:58:55 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-01 13:03:28 +0000 |
commit | cef8f6b6c657121b47173f64b16354ee1ad458ab (patch) | |
tree | a2e9e2c661a6f5241a2512e7c6ddd534e2388fc6 /meta/recipes-extended/shadow/files | |
parent | 54aae189175e1323d9fb3350606f1acb61cefaee (diff) | |
download | poky-cef8f6b6c657121b47173f64b16354ee1ad458ab.tar.gz |
shadow: remove grpconv argc check
The patched version of grpconv takes arguments but the check on
argc was not removed. This patch removes this check which
otherwise results in a spurious warning during rootfs creation.
(From OE-Core rev: 845a24e78835e93807cfb810fa99715ac4d14e21)
Signed-off-by: Martin Donnelly <martin.donnelly@ge.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow/files')
-rw-r--r-- | meta/recipes-extended/shadow/files/add_root_cmd_options.patch | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-extended/shadow/files/add_root_cmd_options.patch b/meta/recipes-extended/shadow/files/add_root_cmd_options.patch index 5edd3b8744..ab87e35535 100644 --- a/meta/recipes-extended/shadow/files/add_root_cmd_options.patch +++ b/meta/recipes-extended/shadow/files/add_root_cmd_options.patch | |||
@@ -528,7 +528,17 @@ diff -urN shadow-4.1.4.3.orig//src/grpconv.c shadow-4.1.4.3//src/grpconv.c | |||
528 | int main (int argc, char **argv) | 528 | int main (int argc, char **argv) |
529 | { | 529 | { |
530 | const struct group *gr; | 530 | const struct group *gr; |
531 | @@ -100,6 +183,8 @@ | 531 | @@ -89,9 +172,6 @@ |
532 | const struct sgrp *sg; | ||
533 | struct sgrp sgent; | ||
534 | |||
535 | - if (1 != argc) { | ||
536 | - (void) fputs (_("Usage: grpconv\n"), stderr); | ||
537 | - } | ||
538 | Prog = Basename (argv[0]); | ||
539 | |||
540 | (void) setlocale (LC_ALL, ""); | ||
541 | @@ -100,6 +180,8 @@ | ||
532 | 542 | ||
533 | OPENLOG ("grpconv"); | 543 | OPENLOG ("grpconv"); |
534 | 544 | ||