summaryrefslogtreecommitdiffstats
path: root/term-utils
diff options
context:
space:
mode:
Diffstat (limited to 'term-utils')
-rw-r--r--term-utils/agetty.c3
1 files changed, 3 insertions, 0 deletions
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;
}
}