On Fri, 2018-10-26 at 15:02 +0200, Stanislav Brabec wrote: > 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: Stanislav Brabec <sbrabec@xxxxxxx> > Cc: Lubomir Rintel <lkundrak@xxxxx> > Cc: Karel Zak <kzak@xxxxxxxxxx> Reviewed-by: Lubomir Rintel <lkundrak@xxxxx> Tested-by: Lubomir Rintel <lkundrak@xxxxx> Thanks, Lubo > --- > term-utils/agetty.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/term-utils/agetty.c b/term-utils/agetty.c > index cfcdffe93..05a269abb 100644 > --- a/term-utils/agetty.c > +++ b/term-utils/agetty.c > @@ -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; > } > } > > -- > 2.19.1 >