]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: remove @ and # as default kill and erase chars
authorKarel Zak <kzak@redhat.com>
Thu, 22 Nov 2012 10:23:53 +0000 (11:23 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 22 Nov 2012 10:23:53 +0000 (11:23 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/agetty.8
term-utils/agetty.c

index 2110cae5c0bcbe61308105453b9e5acaa07571d8..9cc611b039fd080176f835de2fafb1f7d7246dbb 100644 (file)
@@ -27,7 +27,7 @@ Adapts the tty settings to parity bits and to erase, kill,
 end-of-line and uppercase characters when it reads a login name.
 The program can handle 7-bit characters with even, odd, none or space
 parity, and 8-bit characters with no parity. The following special
-characters are recognized: @ and Control-U (kill); #, DEL and
+characters are recognized: Control-U (kill); DEL and
 back space (erase); carriage return and line feed (end of line).
 See also \fB\-\-erase-chars\fP and \fB\-\-kill-chars\fP options.
 .IP o
@@ -220,13 +220,15 @@ or if not found by getaddrinfo() is shown.
 .TP
 \-\-erase\-chars \fIstring\fP
 This option specifies additional chars that should be interpreted as a
-backspace (ignore previous char) when user specifies login name. The default is
-\'#\', specify empty string to disable the default.
+backspace (ignore previous char) when user specifies login name. The original
+default has been \'#\', since util-linux 2.23 no additional erase chars are
+enabled by default.
 .TP
 \-\-kill\-chars \fIstring\fP
 This option specifies additional chars that should be interpreted as a
-kill (ignore all previous chars) when user specifies login name. 
-The default is \'@\', specify empty string to disable the default.
+kill (ignore all previous chars) when user specifies login name. The original
+default has been \'@\', since util-linux 2.23 no additional erase chars are
+enabled by default.
 .TP
 \-\-version
 Output version information and exit.
index c63dd3fde1e0d859bb13bc68ddd834f94e8cb00c..5df150a3e8be2bd4979a4288810c69320806899f 100644 (file)
@@ -285,9 +285,7 @@ int main(int argc, char **argv)
                .flags  =  F_ISSUE,             /* show /etc/issue (SYSV_STYLE) */
                .login  =  _PATH_LOGIN,         /* default login program */
                .tty    = "tty1",               /* default tty line */
-               .issue  =  ISSUE,               /* default issue file */
-               .erasechars = "#",              /* default additional erase char */
-               .killchars  = "@"               /* default additional kill char */
+               .issue  =  ISSUE                /* default issue file */
        };
        char *login_argv[LOGIN_ARGV_MAX + 1];
        int login_argc = 0;