summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/tinylogin/tinylogin-1.4/adduser-empty_pwd.patch
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-06-06 16:23:35 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-25 17:44:53 +0100
commit977fb9a916c1f2f7cb5ceba4db89d2e0155b37a1 (patch)
tree55c68bb8c3757a29414f7c14aa9862a57450be47 /meta/recipes-core/tinylogin/tinylogin-1.4/adduser-empty_pwd.patch
parent8013f6e6aef28359d72ce3b21d5d704e19ceee69 (diff)
downloadpoky-977fb9a916c1f2f7cb5ceba4db89d2e0155b37a1.tar.gz
tinylogin: remove recipe
tinylogin has been deprecated and the functionality ported into busybox. We now use busybox as the login manager, so the tinylogin recipe could be deleted. [YOCTO #4207] (From OE-Core rev: 2762ff976a3473be4259889029e048ab8b3be5ab) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/tinylogin/tinylogin-1.4/adduser-empty_pwd.patch')
-rw-r--r--meta/recipes-core/tinylogin/tinylogin-1.4/adduser-empty_pwd.patch45
1 files changed, 0 insertions, 45 deletions
diff --git a/meta/recipes-core/tinylogin/tinylogin-1.4/adduser-empty_pwd.patch b/meta/recipes-core/tinylogin/tinylogin-1.4/adduser-empty_pwd.patch
deleted file mode 100644
index 3a4c6d7aa7..0000000000
--- a/meta/recipes-core/tinylogin/tinylogin-1.4/adduser-empty_pwd.patch
+++ /dev/null
@@ -1,45 +0,0 @@
1Upstream-Status: Inappropriate [embedded specific]
2
3--- tinylogin-1.4/adduser.c.orig 2004-09-30 18:01:46.000000000 +0200
4+++ tinylogin-1.4/adduser.c 2004-09-30 18:07:01.000000000 +0200
5@@ -249,6 +249,7 @@
6 struct option long_options[] = {
7 { "home", 1, NULL, 'h' },
8 { "disabled-password", 0, NULL, 'D' },
9+ { "empty-password", 0, NULL, 'E' },
10 { "system", 0, NULL, 'S' },
11 { "ingroup", 1, NULL, 'G' },
12 { "no-create-home", 0, NULL, 'H' },
13@@ -287,7 +288,7 @@
14 shell = default_shell;
15
16 /* get args */
17- while ((opt = getopt_long (argc, argv, "h:g:s:G:DSH", long_options, &option_index)) != -1) {
18+ while ((opt = getopt_long (argc, argv, "h:g:s:G:DESH", long_options, &option_index)) != -1) {
19 switch (opt) {
20 case 'h':
21 home = optarg;
22@@ -304,6 +305,9 @@
23 case 'D':
24 setpass = 0;
25 break;
26+ case 'E':
27+ setpass = -1;
28+ break;
29 case 'S':
30 system = 1;
31 break;
32@@ -338,7 +342,12 @@
33
34 /* create a passwd struct */
35 pw.pw_name = (char *)login;
36- pw.pw_passwd = (char *)default_passwd;
37+ if (setpass != -1)
38+ pw.pw_passwd = (char *)default_passwd;
39+ else {
40+ pw.pw_passwd = (char *)"";
41+ setpass = 0;
42+ }
43 pw.pw_uid = 0;
44 pw.pw_gid = 0;
45 pw.pw_gecos = (char *)gecos;