This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/util-linux.git#5977e189d6cfbb091395521ccc6d4c680cc1298b
13 lines
531 B
Diff
13 lines
531 B
Diff
diff -up util-linux-2.36/login-utils/login.c.kzak util-linux-2.36/login-utils/login.c
|
|
--- util-linux-2.36/login-utils/login.c.kzak 2020-07-23 14:13:26.777030764 +0200
|
|
+++ util-linux-2.36/login-utils/login.c 2020-07-23 14:11:22.793686983 +0200
|
|
@@ -585,7 +585,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;
|
|
offset = cxt->pwd->pw_uid * sizeof(ll);
|