]> granicus.if.org Git - sudo/commitdiff
Rename pwstars to pwfeedback
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 15 Feb 2009 20:53:49 +0000 (20:53 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 15 Feb 2009 20:53:49 +0000 (20:53 +0000)
def_data.c
def_data.h
def_data.in
sudoers.pod
tgetpass.c

index 311c21e46b9c41243f1b1797d24cc3488e4d7977..6a83be43ed7ea89e0830b86027fb0aaac5b9daea 100644 (file)
@@ -303,8 +303,8 @@ struct sudo_defs_types sudo_defs_table[] = {
        "Allow sudo to prompt for a password even if it would be visisble",
        NULL,
     }, {
-       "pwstars", T_FLAG,
-       "Print a stars at the password prompt when there is user input",
+       "pwfeedback", T_FLAG,
+       "Provide visual feedback at the password prompt when there is user input",
        NULL,
     }, {
        "fast_glob", T_FLAG,
index 1859941c21dc96394be2a98464552541703379ef..5f38375efa5fd1b1a2ae566950b93c6cee1b2018 100644 (file)
 #define I_SUDOERS_LOCALE        68
 #define def_visiblepw           (sudo_defs_table[69].sd_un.flag)
 #define I_VISIBLEPW             69
-#define def_pwstars             (sudo_defs_table[70].sd_un.flag)
-#define I_PWSTARS               70
+#define def_pwfeedback          (sudo_defs_table[70].sd_un.flag)
+#define I_PWFEEDBACK            70
 #define def_fast_glob           (sudo_defs_table[71].sd_un.flag)
 #define I_FAST_GLOB             71
 
index 1a41399bf0eaf2032e08e6ae50827410888b52a1..037019767eeaa88fc36c8877aa4db500f5efadcc 100644 (file)
@@ -223,9 +223,9 @@ sudoers_locale
 visiblepw
        T_FLAG
        "Allow sudo to prompt for a password even if it would be visisble"
-pwstars
+pwfeedback
        T_FLAG
-       "Print a stars at the password prompt when there is user input"
+       "Provide visual feedback at the password prompt when there is user input"
 fast_glob
        T_FLAG
        "Use faster globbing that is less accurate but does not access the filesystem"
index 5fcd5abbc4e5a4203a3df90b9c64b6fe2585ca42..6767e7e1b027d106497b5ff0fbe597d484fb3aca 100644 (file)
@@ -660,15 +660,15 @@ user's existing group vector is left unaltered.  The real and
 effective group IDs, however, are still set to match the target
 user.  This flag is I<off> by default.
 
-=item pwstars
+=item pwfeedback
 
 By default, B<sudo> reads the password like most other Unix programs,
 by turning off echo until the user hits the return (or enter) key.
 Some users become confused by this as it appears to them that B<sudo>
-has hung at this point.  When I<pwstars> is set, B<sudo> will print
-a star for each character of the password the user enters.  Note
-that this does have a security impact, as an onlooker will be able
-to determine the length of the password being entered.
+has hung at this point.  When I<pwfeedback> is set, B<sudo> will
+provide visual feedback when the user presses a key.  Note that
+this does have a security impact as an onlooker may be able to
+determine the length of the password being entered.
 This flag is I<off> by default.
 
 =item requiretty
index ab1b8adcc0255492ff6dd745862d2f83fd299bc5..2bd3db8c5e1a6e1eb815b8cc9b6dda4f8e51332c 100644 (file)
@@ -119,7 +119,7 @@ restart:
     (void) sigaction(SIGTTIN, &sa, &savettin);
     (void) sigaction(SIGTTOU, &sa, &savettou);
 
-    if (def_pwstars)
+    if (def_pwfeedback)
        neednl = term_raw(input);
     else
        neednl = term_noecho(input);
@@ -131,7 +131,7 @@ restart:
 
        if (timeout > 0)
            alarm(timeout);
-       pass = getln(input, buf, sizeof(buf), def_pwstars);
+       pass = getln(input, buf, sizeof(buf), def_pwfeedback);
        alarm(0);
        save_errno = errno;