aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow/files
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2011-09-07 13:02:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-09 18:42:47 +0100
commit8fce8180c802ad187c4df44c17207bfb026ce6c7 (patch)
tree7d5a10a8709d0b8bc12af36ba558653a74e147bb /meta/recipes-extended/shadow/files
parent094453f443ed592d814dfb4182a0a02f0a2552e4 (diff)
downloadopenembedded-core-contrib-8fce8180c802ad187c4df44c17207bfb026ce6c7.tar.gz
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. Signed-off-by: Phil Blundell <philb@gnu.org> 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/useradd.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-extended/shadow/files/useradd.patch b/meta/recipes-extended/shadow/files/useradd.patch
new file mode 100644
index 0000000000..ff5016c0bf
--- /dev/null
+++ b/meta/recipes-extended/shadow/files/useradd.patch
@@ -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