summarylogtreecommitdiffstats
path: root/0001-sulogin-fix-getpasswd.patch
diff options
context:
space:
mode:
authorNarrat2021-08-02 17:26:26 +0200
committerNarrat2021-08-02 17:26:26 +0200
commit010f678c9a4e307922da4fd600b330819646c3c2 (patch)
tree042dfcca4377e8ed6ee6226e2af8c0118969f7c5 /0001-sulogin-fix-getpasswd.patch
parent9e7d5c4606b7f3c0b0ec22b0d579334a9d1ff0ca (diff)
downloadaur-010f678c9a4e307922da4fd600b330819646c3c2.tar.gz
util-linux-aes: Follow Arch
There are two breaking changes with 2.37.1, for which patches got added.
Diffstat (limited to '0001-sulogin-fix-getpasswd.patch')
-rw-r--r--0001-sulogin-fix-getpasswd.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/0001-sulogin-fix-getpasswd.patch b/0001-sulogin-fix-getpasswd.patch
new file mode 100644
index 000000000000..ef6f5f4b21d0
--- /dev/null
+++ b/0001-sulogin-fix-getpasswd.patch
@@ -0,0 +1,23 @@
+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] 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);