mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 00:49:33 +02:00
shadow: add patch for useradd lossage
This fixes (or, at least, papers over) a failure in do_install for recipes which inherit useradd.bbclass. Rewinding optind in this way is not entirely portable but in practice it seems to work on GNU-ish build hosts at least. (From OE-Core rev: 8fce8180c802ad187c4df44c17207bfb026ce6c7) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9c740e0425
commit
acf62d33d0
17
meta/recipes-extended/shadow/files/useradd.patch
Normal file
17
meta/recipes-extended/shadow/files/useradd.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
Work around a bug introduced with the --root option which was causing
|
||||
all other arguments to be ignored.
|
||||
|
||||
Upstream-Status: inappropriate
|
||||
Signed-off-by: Phil Blundell <philb@gnu.org>
|
||||
|
||||
--- a/src/useradd.c~ 2011-09-01 15:36:40.398234861 +0100
|
||||
+++ b/src/useradd.c 2011-09-01 17:29:00.782004133 +0100
|
||||
@@ -1957,6 +1957,8 @@
|
||||
|
||||
get_defaults ();
|
||||
|
||||
+ optind = 1;
|
||||
+
|
||||
process_flags (argc, argv);
|
||||
|
||||
#ifdef ACCT_TOOLS_SETUID
|
||||
Reference in New Issue
Block a user