]> git.pld-linux.org Git - packages/util-linux.git/blame - util-linux-login-lastlog.patch
rebuild with python 3.10
[packages/util-linux.git] / util-linux-login-lastlog.patch
CommitLineData
d5aef51d
AM
1diff -urNp -x '*.orig' util-linux-2.36.2.org/login-utils/login.c util-linux-2.36.2/login-utils/login.c
2--- util-linux-2.36.2.org/login-utils/login.c 2021-02-12 12:32:01.748988728 +0100
3+++ util-linux-2.36.2/login-utils/login.c 2021-02-28 14:21:48.563576067 +0100
4@@ -586,7 +586,7 @@ static void log_lastlog(struct login_con
5 sa.sa_handler = SIG_IGN;
6 sigaction(SIGXFSZ, &sa, &oldsa_xfsz);
a7980c08
ER
7
8- fd = open(_PATH_LASTLOG, O_RDWR, 0);
9+ fd = open(_PATH_LASTLOG, O_RDWR|O_CREAT, 0);
10 if (fd < 0)
d5aef51d
AM
11 goto done;
12 offset = cxt->pwd->pw_uid * sizeof(ll);
This page took 0.042573 seconds and 4 git commands to generate.