2013-09-09 07:12:55 +00:00
|
|
|
diff -up util-linux-2.23.2/login-utils/login.c.kzak util-linux-2.23.2/login-utils/login.c
|
|
|
|
--- util-linux-2.23.2/login-utils/login.c.kzak 2013-07-30 10:39:26.222738397 +0200
|
|
|
|
+++ util-linux-2.23.2/login-utils/login.c 2013-09-09 09:01:39.923225757 +0200
|
|
|
|
@@ -502,7 +502,7 @@ static void log_lastlog(struct login_con
|
2013-09-09 07:22:51 +00:00
|
|
|
if (!cxt->pwd)
|
|
|
|
return;
|
|
|
|
|
2013-02-19 15:20:33 +00:00
|
|
|
- fd = open(_PATH_LASTLOG, O_RDWR, 0);
|
|
|
|
+ fd = open(_PATH_LASTLOG, O_RDWR | O_CREAT, 0);
|
2013-09-09 07:22:51 +00:00
|
|
|
if (fd < 0)
|
|
|
|
return;
|