util-linux: backport sulogin(8) fix.
sulogin wasn't actually logging in, making single user mode useless. Reported by kciN on IRC.
This commit is contained in:
parent
36447199f6
commit
3d6657e5d6
2 changed files with 27 additions and 1 deletions
26
srcpkgs/util-linux/patches/0001-sulogin-fix-getpasswd.patch
Normal file
26
srcpkgs/util-linux/patches/0001-sulogin-fix-getpasswd.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
From 3c466f7c353beb3076a2be8fb2931b9951430128 Mon Sep 17 00:00:00 2001
|
||||
From: Karel Zak <kzak@redhat.com>
|
||||
Date: Thu, 29 Jul 2021 21:28:00 +0200
|
||||
Subject: [PATCH 1/6] sulogin: fix getpasswd()
|
||||
|
||||
Fixes: https://github.com/karelzak/util-linux/issues/1400
|
||||
Signed-off-by: Karel Zak <kzak@redhat.com>
|
||||
---
|
||||
login-utils/sulogin.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c
|
||||
index 3016ef483..4d48943ad 100644
|
||||
--- a/login-utils/sulogin.c
|
||||
+++ b/login-utils/sulogin.c
|
||||
@@ -621,6 +621,7 @@ static char *getpasswd(struct console *con)
|
||||
cp = &con->cp;
|
||||
tty = con->tio;
|
||||
|
||||
+ ret = pass;
|
||||
tty.c_iflag &= ~(IUCLC|IXON|IXOFF|IXANY);
|
||||
tty.c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|TOSTOP|ISIG);
|
||||
tc = (tcsetattr(fd, TCSAFLUSH, &tty) == 0);
|
||||
--
|
||||
2.32.0
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
# Keep this package sync with util-linux-common
|
||||
pkgname=util-linux
|
||||
version=2.37.1
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-configure
|
||||
configure_args="--exec-prefix=\${prefix} --enable-libuuid --disable-makeinstall-chown
|
||||
--enable-libblkid --enable-fsck --disable-rpath --enable-fs-paths-extra=/usr/sbin:/usr/bin
|
||||
|
|
Loading…
Reference in a new issue