Commit c094fcd3 authored by Stanislav Brabec's avatar Stanislav Brabec Committed by Karel Zak

agetty: when logname is erased, re-enable reloads

When user starts to enter logname, 8b58ffdd blocks issue reloads.
Reloads remain blocked even if user deletes all typed characters.

Make things visually consistent: If no characters are entered,
re-enable reloads.
Signed-off-by: default avatarStanislav Brabec <sbrabec@suse.cz>
Signed-off-by: default avatarKarel Zak <kzak@redhat.com>
Reviewed-by: default avatarLubomir Rintel <lkundrak@v3.sk>
Tested-by: default avatarLubomir Rintel <lkundrak@v3.sk>
parent 84b27596
......@@ -2182,6 +2182,9 @@ static char *get_logname(struct issue *ie, struct options *op, struct termios *t
*bp++ = ascval; /* and store it */
break;
}
/* Everything was erased. */
if (bp == logname)
goto no_reload;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment