diff options
author | Stanislav Brabec | 2018-11-20 00:38:14 +0100 |
---|---|---|
committer | Karel Zak | 2018-11-21 10:48:05 +0100 |
commit | d16afd8d157d41bd128da9f792ee49a716b76fd1 (patch) | |
tree | eb1476a24cceeb7be120c501fde9dbb3c08f0615 /term-utils | |
parent | libblkid: Fix hidding typo (diff) | |
download | kernel-qcow2-util-linux-d16afd8d157d41bd128da9f792ee49a716b76fd1.tar.gz kernel-qcow2-util-linux-d16afd8d157d41bd128da9f792ee49a716b76fd1.tar.xz kernel-qcow2-util-linux-d16afd8d157d41bd128da9f792ee49a716b76fd1.zip |
agetty: Return old behavior with empty logname
c094fcd37 introduced a behavior change: When Return is entered with empty
logname, nothing happens. As it confuses users, return back the old
behavior: re-prompt.
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Diffstat (limited to 'term-utils')
-rw-r--r-- | term-utils/agetty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 615db2c78..fc373847e 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -2185,7 +2185,7 @@ static char *get_logname(struct issue *ie, struct options *op, struct termios *t break; } /* Everything was erased. */ - if (bp == logname) + if (bp == logname && cp->eol == '\0') goto no_reload; } } |