summaryrefslogtreecommitdiffstats
path: root/meta/packages/busybox/busybox-1.9.1/adduser-longops.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/busybox/busybox-1.9.1/adduser-longops.patch')
-rw-r--r--meta/packages/busybox/busybox-1.9.1/adduser-longops.patch55
1 files changed, 0 insertions, 55 deletions
diff --git a/meta/packages/busybox/busybox-1.9.1/adduser-longops.patch b/meta/packages/busybox/busybox-1.9.1/adduser-longops.patch
deleted file mode 100644
index f221d30895..0000000000
--- a/meta/packages/busybox/busybox-1.9.1/adduser-longops.patch
+++ /dev/null
@@ -1,55 +0,0 @@
1upstream: http://bugs.busybox.net/view.php?id=2134
2status: accepted in rev. 21031 on Feb 15 2008
3comment: fixes OE bug 3781, applied by mickeyl
4
5diff -Nuar busybox-1.9.1.old/loginutils/Config.in busybox-1.9.1/loginutils/Config.in
6--- busybox-1.9.1.old/loginutils/Config.in Tue Feb 12 10:03:11 2008
7+++ busybox-1.9.1/loginutils/Config.in Thu Feb 14 11:48:31 2008
8@@ -88,6 +88,13 @@
9 help
10 Utility for creating a new user account.
11
12+config FEATURE_ADDUSER_LONG_OPTIONS
13+ bool "Enable long options"
14+ default n
15+ depends on ADDUSER && GETOPT_LONG
16+ help
17+ Support long options for the adduser applet.
18+
19 config DELUSER
20 bool "deluser"
21 default n
22diff -Nuar busybox-1.9.1.old/loginutils/adduser.c busybox-1.9.1/loginutils/adduser.c
23--- busybox-1.9.1.old/loginutils/adduser.c Thu Feb 14 10:25:33 2008
24+++ busybox-1.9.1/loginutils/adduser.c Thu Feb 14 13:32:47 2008
25@@ -66,6 +66,19 @@
26 bb_error_msg_and_die("cannot execute %s, you must set password manually", prog);
27 }
28
29+#if ENABLE_FEATURE_ADDUSER_LONG_OPTIONS
30+static const char adduser_longopts[] ALIGN1 =
31+ "home\0" Required_argument "h"
32+ "gecos\0" Required_argument "g"
33+ "shell\0" Required_argument "s"
34+ "ingroup\0" Required_argument "G"
35+ "disabled-password\0" No_argument "D"
36+ "empty-password\0" No_argument "D"
37+ "system\0" No_argument "S"
38+ "no-create-home\0" No_argument "H"
39+ ;
40+#endif
41+
42 /*
43 * adduser will take a login_name as its first parameter.
44 * home, shell, gecos:
45@@ -77,6 +90,10 @@
46 struct passwd pw;
47 const char *usegroup = NULL;
48 FILE *file;
49+
50+#if ENABLE_FEATURE_ADDUSER_LONG_OPTIONS
51+ applet_long_options = adduser_longopts;
52+#endif
53
54 /* got root? */
55 if (geteuid()) {