diff options
author | Ron Yorston <rmy@pobox.com> | 2023-07-13 08:06:26 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-07-13 08:06:26 +0100 |
commit | bd978d0256fd3a67de1a7dd54f1a37f9435be363 (patch) | |
tree | cb869384a533ac0d95fe787d75be6c050e1e7c1a /loginutils | |
parent | b2901ce8efa050da00e0f3a73f3be9bf9402deea (diff) | |
parent | d70256a5c719439cc6fab6a4571c1bb46178e4c7 (diff) | |
download | busybox-w32-bd978d0256fd3a67de1a7dd54f1a37f9435be363.tar.gz busybox-w32-bd978d0256fd3a67de1a7dd54f1a37f9435be363.tar.bz2 busybox-w32-bd978d0256fd3a67de1a7dd54f1a37f9435be363.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/add-remove-shell.c | 4 | ||||
-rw-r--r-- | loginutils/addgroup.c | 4 | ||||
-rw-r--r-- | loginutils/chpasswd.c | 2 | ||||
-rw-r--r-- | loginutils/cryptpw.c | 4 | ||||
-rw-r--r-- | loginutils/deluser.c | 4 | ||||
-rw-r--r-- | loginutils/getty.c | 2 | ||||
-rw-r--r-- | loginutils/login.c | 12 | ||||
-rw-r--r-- | loginutils/passwd.c | 2 | ||||
-rw-r--r-- | loginutils/sulogin.c | 2 | ||||
-rw-r--r-- | loginutils/vlock.c | 2 |
10 files changed, 19 insertions, 19 deletions
diff --git a/loginutils/add-remove-shell.c b/loginutils/add-remove-shell.c index b09555aae..2470050e7 100644 --- a/loginutils/add-remove-shell.c +++ b/loginutils/add-remove-shell.c | |||
@@ -8,13 +8,13 @@ | |||
8 | * for details. | 8 | * for details. |
9 | */ | 9 | */ |
10 | //config:config ADD_SHELL | 10 | //config:config ADD_SHELL |
11 | //config: bool "add-shell (3.1 kb)" | 11 | //config: bool "add-shell (3.3 kb)" |
12 | //config: default y if DESKTOP | 12 | //config: default y if DESKTOP |
13 | //config: help | 13 | //config: help |
14 | //config: Add shells to /etc/shells. | 14 | //config: Add shells to /etc/shells. |
15 | //config: | 15 | //config: |
16 | //config:config REMOVE_SHELL | 16 | //config:config REMOVE_SHELL |
17 | //config: bool "remove-shell (3 kb)" | 17 | //config: bool "remove-shell (3.3 kb)" |
18 | //config: default y if DESKTOP | 18 | //config: default y if DESKTOP |
19 | //config: help | 19 | //config: help |
20 | //config: Remove shells from /etc/shells. | 20 | //config: Remove shells from /etc/shells. |
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c index 2a83c8a15..2b5ac7550 100644 --- a/loginutils/addgroup.c +++ b/loginutils/addgroup.c | |||
@@ -9,7 +9,7 @@ | |||
9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | //config:config ADDGROUP | 11 | //config:config ADDGROUP |
12 | //config: bool "addgroup (8.6 kb)" | 12 | //config: bool "addgroup (8.8 kb)" |
13 | //config: default y | 13 | //config: default y |
14 | //config: select LONG_OPTS | 14 | //config: select LONG_OPTS |
15 | //config: help | 15 | //config: help |
@@ -102,7 +102,7 @@ static void new_group(char *group, gid_t gid) | |||
102 | /* add entry to group */ | 102 | /* add entry to group */ |
103 | p = xasprintf("x:%u:", (unsigned) gr.gr_gid); | 103 | p = xasprintf("x:%u:", (unsigned) gr.gr_gid); |
104 | if (update_passwd(bb_path_group_file, group, p, NULL) < 0) | 104 | if (update_passwd(bb_path_group_file, group, p, NULL) < 0) |
105 | exit(EXIT_FAILURE); | 105 | exit_FAILURE(); |
106 | if (ENABLE_FEATURE_CLEAN_UP) | 106 | if (ENABLE_FEATURE_CLEAN_UP) |
107 | free(p); | 107 | free(p); |
108 | #if ENABLE_FEATURE_SHADOWPASSWDS | 108 | #if ENABLE_FEATURE_SHADOWPASSWDS |
diff --git a/loginutils/chpasswd.c b/loginutils/chpasswd.c index a032abbed..65530b614 100644 --- a/loginutils/chpasswd.c +++ b/loginutils/chpasswd.c | |||
@@ -6,7 +6,7 @@ | |||
6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | //config:config CHPASSWD | 8 | //config:config CHPASSWD |
9 | //config: bool "chpasswd (18 kb)" | 9 | //config: bool "chpasswd (19 kb)" |
10 | //config: default y | 10 | //config: default y |
11 | //config: help | 11 | //config: help |
12 | //config: Reads a file of user name and password pairs from standard input | 12 | //config: Reads a file of user name and password pairs from standard input |
diff --git a/loginutils/cryptpw.c b/loginutils/cryptpw.c index 2109e2eb5..1c338540f 100644 --- a/loginutils/cryptpw.c +++ b/loginutils/cryptpw.c | |||
@@ -10,14 +10,14 @@ | |||
10 | * Licensed under GPLv2, see file LICENSE in this source tree. | 10 | * Licensed under GPLv2, see file LICENSE in this source tree. |
11 | */ | 11 | */ |
12 | //config:config CRYPTPW | 12 | //config:config CRYPTPW |
13 | //config: bool "cryptpw (14 kb)" | 13 | //config: bool "cryptpw (15 kb)" |
14 | //config: default y | 14 | //config: default y |
15 | //config: help | 15 | //config: help |
16 | //config: Encrypts the given password with the crypt(3) libc function | 16 | //config: Encrypts the given password with the crypt(3) libc function |
17 | //config: using the given salt. | 17 | //config: using the given salt. |
18 | //config: | 18 | //config: |
19 | //config:config MKPASSWD | 19 | //config:config MKPASSWD |
20 | //config: bool "mkpasswd (15 kb)" | 20 | //config: bool "mkpasswd (16 kb)" |
21 | //config: default y | 21 | //config: default y |
22 | //config: help | 22 | //config: help |
23 | //config: Encrypts the given password with the crypt(3) libc function | 23 | //config: Encrypts the given password with the crypt(3) libc function |
diff --git a/loginutils/deluser.c b/loginutils/deluser.c index 8e7df737c..a82ffc317 100644 --- a/loginutils/deluser.c +++ b/loginutils/deluser.c | |||
@@ -9,13 +9,13 @@ | |||
9 | * Licensed under GPLv2, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | //config:config DELUSER | 11 | //config:config DELUSER |
12 | //config: bool "deluser (9.1 kb)" | 12 | //config: bool "deluser (9.3 kb)" |
13 | //config: default y | 13 | //config: default y |
14 | //config: help | 14 | //config: help |
15 | //config: Utility for deleting a user account. | 15 | //config: Utility for deleting a user account. |
16 | //config: | 16 | //config: |
17 | //config:config DELGROUP | 17 | //config:config DELGROUP |
18 | //config: bool "delgroup (6.4 kb)" | 18 | //config: bool "delgroup (6.6 kb)" |
19 | //config: default y | 19 | //config: default y |
20 | //config: help | 20 | //config: help |
21 | //config: Utility for deleting a group account. | 21 | //config: Utility for deleting a group account. |
diff --git a/loginutils/getty.c b/loginutils/getty.c index cd6378d80..4581cc9f7 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 22 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
23 | */ | 23 | */ |
24 | //config:config GETTY | 24 | //config:config GETTY |
25 | //config: bool "getty (10 kb)" | 25 | //config: bool "getty (11 kb)" |
26 | //config: default y | 26 | //config: default y |
27 | //config: select FEATURE_SYSLOG | 27 | //config: select FEATURE_SYSLOG |
28 | //config: help | 28 | //config: help |
diff --git a/loginutils/login.c b/loginutils/login.c index 332238181..301be4a34 100644 --- a/loginutils/login.c +++ b/loginutils/login.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | //config:config LOGIN | 5 | //config:config LOGIN |
6 | //config: bool "login (24 kb)" | 6 | //config: bool "login (25 kb)" |
7 | //config: default y | 7 | //config: default y |
8 | //config: select FEATURE_SYSLOG | 8 | //config: select FEATURE_SYSLOG |
9 | //config: help | 9 | //config: help |
@@ -173,7 +173,7 @@ static void die_if_nologin(void) | |||
173 | fflush_all(); | 173 | fflush_all(); |
174 | /* Users say that they do need this prior to exit: */ | 174 | /* Users say that they do need this prior to exit: */ |
175 | tcdrain(STDOUT_FILENO); | 175 | tcdrain(STDOUT_FILENO); |
176 | exit(EXIT_FAILURE); | 176 | exit_FAILURE(); |
177 | } | 177 | } |
178 | #else | 178 | #else |
179 | # define die_if_nologin() ((void)0) | 179 | # define die_if_nologin() ((void)0) |
@@ -265,19 +265,19 @@ static void get_username_or_die(char *buf, int size_buf) | |||
265 | do { | 265 | do { |
266 | c = getchar(); | 266 | c = getchar(); |
267 | if (c == EOF) | 267 | if (c == EOF) |
268 | exit(EXIT_FAILURE); | 268 | exit_FAILURE(); |
269 | if (c == '\n') { | 269 | if (c == '\n') { |
270 | if (!--cntdown) | 270 | if (!--cntdown) |
271 | exit(EXIT_FAILURE); | 271 | exit_FAILURE(); |
272 | goto prompt; | 272 | goto prompt; |
273 | } | 273 | } |
274 | } while (isspace(c)); /* maybe isblank? */ | 274 | } while (isspace(c)); /* maybe isblank? */ |
275 | 275 | ||
276 | *buf++ = c; | 276 | *buf++ = c; |
277 | if (!fgets(buf, size_buf-2, stdin)) | 277 | if (!fgets(buf, size_buf-2, stdin)) |
278 | exit(EXIT_FAILURE); | 278 | exit_FAILURE(); |
279 | if (!strchr(buf, '\n')) | 279 | if (!strchr(buf, '\n')) |
280 | exit(EXIT_FAILURE); | 280 | exit_FAILURE(); |
281 | while ((unsigned char)*buf > ' ') | 281 | while ((unsigned char)*buf > ' ') |
282 | buf++; | 282 | buf++; |
283 | *buf = '\0'; | 283 | *buf = '\0'; |
diff --git a/loginutils/passwd.c b/loginutils/passwd.c index acc942275..1e8449627 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | //config:config PASSWD | 5 | //config:config PASSWD |
6 | //config: bool "passwd (21 kb)" | 6 | //config: bool "passwd (22 kb)" |
7 | //config: default y | 7 | //config: default y |
8 | //config: select FEATURE_SYSLOG | 8 | //config: select FEATURE_SYSLOG |
9 | //config: help | 9 | //config: help |
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index 681022acb..9c927ed79 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | //config:config SULOGIN | 7 | //config:config SULOGIN |
8 | //config: bool "sulogin (17 kb)" | 8 | //config: bool "sulogin (18 kb)" |
9 | //config: default y | 9 | //config: default y |
10 | //config: select FEATURE_SYSLOG | 10 | //config: select FEATURE_SYSLOG |
11 | //config: help | 11 | //config: help |
diff --git a/loginutils/vlock.c b/loginutils/vlock.c index 720835c4b..11bf58ca0 100644 --- a/loginutils/vlock.c +++ b/loginutils/vlock.c | |||
@@ -16,7 +16,7 @@ | |||
16 | * It now works with md5, sha1, etc passwords. | 16 | * It now works with md5, sha1, etc passwords. |
17 | */ | 17 | */ |
18 | //config:config VLOCK | 18 | //config:config VLOCK |
19 | //config: bool "vlock (17 kb)" | 19 | //config: bool "vlock (18 kb)" |
20 | //config: default y | 20 | //config: default y |
21 | //config: help | 21 | //config: help |
22 | //config: Build the "vlock" applet which allows you to lock (virtual) terminals. | 22 | //config: Build the "vlock" applet which allows you to lock (virtual) terminals. |