diff options
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/deluser.c | 2 | ||||
-rw-r--r-- | loginutils/getty.c | 2 | ||||
-rw-r--r-- | loginutils/login.c | 2 | ||||
-rw-r--r-- | loginutils/su.c | 2 | ||||
-rw-r--r-- | loginutils/sulogin.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/loginutils/deluser.c b/loginutils/deluser.c index 0cd4671c8..f4320687e 100644 --- a/loginutils/deluser.c +++ b/loginutils/deluser.c @@ -81,7 +81,7 @@ int deluser_main(int argc, char **argv) if (argc != 2) { bb_show_usage(); } else { - if (ENABLE_DELUSER && bb_applet_name[3] == 'u') { + if (ENABLE_DELUSER && applet_name[3] == 'u') { del_line_matching(argv[1], bb_path_passwd_file); if (ENABLE_FEATURE_SHADOWPASSWDS) del_line_matching(argv[1], bb_path_shadow_file); diff --git a/loginutils/getty.c b/loginutils/getty.c index 6730fa85c..4b43684a2 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -821,7 +821,7 @@ int getty_main(int argc, char **argv) dup2(nullfd, 2); if(nullfd > 2) close(nullfd); - openlog(bb_applet_name, LOG_PID, LOG_AUTH); + openlog(applet_name, LOG_PID, LOG_AUTH); logmode = LOGMODE_BOTH; #ifdef DEBUGGING diff --git a/loginutils/login.c b/loginutils/login.c index 1f392c10f..8003922f9 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -268,7 +268,7 @@ int login_main(int argc, char **argv) bb_setpgrp; - openlog(bb_applet_name, LOG_PID | LOG_CONS | LOG_NOWAIT, LOG_AUTH); + openlog(applet_name, LOG_PID | LOG_CONS | LOG_NOWAIT, LOG_AUTH); while (1) { if (!username[0]) diff --git a/loginutils/su.c b/loginutils/su.c index 78942014e..a23ee932b 100644 --- a/loginutils/su.c +++ b/loginutils/su.c @@ -41,7 +41,7 @@ int su_main(int argc, char **argv) in this case resort to getpwuid. */ old_user = xstrdup(USE_FEATURE_UTMP(getlogin() ? : ) (pw = getpwuid(cur_uid)) ? pw->pw_name : ""); tty = ttyname(2) ? : "none"; - openlog(bb_applet_name, 0, LOG_AUTH); + openlog(applet_name, 0, LOG_AUTH); } pw = getpwnam(opt_username); diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index 6edd2582b..40eb5e9cf 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c @@ -44,7 +44,7 @@ int sulogin_main(int argc, char **argv) struct spwd *spwd; logmode = LOGMODE_BOTH; - openlog(bb_applet_name, 0, LOG_AUTH); + openlog(applet_name, 0, LOG_AUTH); if (getopt32 (argc, argv, "t:", &timeout_arg)) { if (safe_strtoi(timeout_arg, &timeout)) { |