Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:Update
python-libmount
util-linux-agetty-smart-reload-09.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File util-linux-agetty-smart-reload-09.patch of Package python-libmount
Refresh. From c094fcd373dacd3283b9f547c9a856ab21eb6484 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec <sbrabec@suse.cz> Date: Fri, 26 Oct 2018 15:02:17 +0200 Subject: [PATCH 09/14] 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: Stanislav Brabec <sbrabec@suse.cz> Signed-off-by: Karel Zak <kzak@redhat.com> Reviewed-by: Lubomir Rintel <lkundrak@v3.sk> Tested-by: Lubomir Rintel <lkundrak@v3.sk> --- term-utils/agetty.c | 3 +++ 1 file changed, 3 insertions(+) Index: util-linux-2.29.2/term-utils/agetty.c =================================================================== --- util-linux-2.29.2.orig/term-utils/agetty.c +++ util-linux-2.29.2/term-utils/agetty.c @@ -2052,6 +2052,9 @@ static char *get_logname(struct issue *i *bp++ = ascval; /* and store it */ break; } + /* Everything was erased. */ + if (bp == logname) + goto no_reload; } } #ifdef HAVE_WIDECHAR
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor