]> git.pld-linux.org Git - packages/util-linux.git/blame - util-linux-login-lastlog.patch
- AC-branch only,
[packages/util-linux.git] / util-linux-login-lastlog.patch
CommitLineData
5545a732
JR
1--- util-linux-2.12p/login-utils/login.c.login-lastlog 2005-03-24 13:26:06.516865128 +0100
2+++ util-linux-2.12p/login-utils/login.c 2005-03-24 13:26:58.136017824 +0100
3@@ -1397,7 +1397,7 @@
4 struct lastlog ll;
5 int fd;
6
7- if ((fd = open(_PATH_LASTLOG, O_RDWR, 0)) >= 0) {
8+ if ((fd = open(_PATH_LASTLOG, O_RDWR|O_CREAT, 0)) >= 0) {
9 lseek(fd, (off_t)pwd->pw_uid * sizeof(ll), SEEK_SET);
10 if (!quiet) {
11 if (read(fd, (char *)&ll, sizeof(ll)) == sizeof(ll) &&
This page took 0.111485 seconds and 4 git commands to generate.