Commit d36c8c90 authored by Andreas Henriksson's avatar Andreas Henriksson

Add d/p/agetty-Return-old-behavior-with-empty-logname.patch

Cherry-picked from upstream:

commit d16afd8d157d41bd128da9f792ee49a716b76fd1
Author: Stanislav Brabec <sbrabec@suse.cz>
Date:   Tue Nov 20 00:38:14 2018 +0100

    agetty: Return old behavior with empty logname
parent ce88c4e3
From: Stanislav Brabec <sbrabec@suse.cz>
Date: Tue, 20 Nov 2018 00:38:14 +0100
Subject: 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>
---
term-utils/agetty.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index 759cea5..7c11c9c 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;
}
}
......@@ -2,3 +2,4 @@ verbose-tests.patch
fix-agetty-hurd.patch
uuid-service-documentation.patch
fstrim-service-documentation.patch
agetty-Return-old-behavior-with-empty-logname.patch
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