2afb30fac6
+ /usr/bin/cat /builddir/build/SOURCES/2.23-login-lastlog-create.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch 1 out of 1 hunk FAILED -- saving rejects to file login-utils/login.c.rej Addresses: https://kojipkgs.fedoraproject.org/work/tasks/3930/13783930/build.log
13 lines
491 B
Diff
13 lines
491 B
Diff
diff -up util-linux-2.28/login-utils/login.c.kzak util-linux-2.28/login-utils/login.c
|
|
--- util-linux-2.28/login-utils/login.c.kzak 2016-03-08 14:28:16.724156218 +0100
|
|
+++ util-linux-2.28/login-utils/login.c 2016-04-26 12:45:29.235326017 +0200
|
|
@@ -510,7 +510,7 @@ static void log_lastlog(struct login_con
|
|
sa.sa_handler = SIG_IGN;
|
|
sigaction(SIGXFSZ, &sa, &oldsa_xfsz);
|
|
|
|
- fd = open(_PATH_LASTLOG, O_RDWR, 0);
|
|
+ fd = open(_PATH_LASTLOG, O_RDWR | O_CREAT, 0);
|
|
if (fd < 0)
|
|
goto done;
|
|
|