udhcp: rename server_config to server_data
[oweals/busybox.git] / loginutils / su.c
index f2cd799aedbc7919b6958067b7c1ed30ae613825..41291ea8f5b08bb2d58b043d9bc7dc4dd2683e62 100644 (file)
@@ -5,14 +5,14 @@
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 //config:config SU
-//config:      bool "su"
+//config:      bool "su (19 kb)"
 //config:      default y
 //config:      select FEATURE_SYSLOG
 //config:      help
-//config:        su is used to become another user during a login session.
-//config:        Invoked without a username, su defaults to becoming the super user.
-//config:        Note that busybox binary must be setuid root for this applet to
-//config:        work properly.
+//config:      su is used to become another user during a login session.
+//config:      Invoked without a username, su defaults to becoming the super user.
+//config:      Note that busybox binary must be setuid root for this applet to
+//config:      work properly.
 //config:
 //config:config FEATURE_SU_SYSLOG
 //config:      bool "Log to syslog all attempts to use su"
@@ -25,7 +25,7 @@
 //config:      depends on SU
 //config:
 //config:config FEATURE_SU_BLANK_PW_NEEDS_SECURE_TTY
-//config:      bool "Disallow blank passwords from TTYs other than specified in /etc/securetty"
+//config:      bool "Allow blank passwords only on TTYs in /etc/securetty"
 //config:      default n
 //config:      depends on SU
 
@@ -134,7 +134,7 @@ int su_main(int argc UNUSED_PARAM, char **argv)
        if (r > 0) {
                if (ENABLE_FEATURE_SU_BLANK_PW_NEEDS_SECURE_TTY
                 && r == CHECKPASS_PW_HAS_EMPTY_PASSWORD
-                && !check_securetty(tty)
+                && !is_tty_secure(tty)
                ) {
                        goto fail;
                }