]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-login-lastlog.patch
- cryptsetup-luks isn't equivalent of cryptsetup
[packages/util-linux.git] / util-linux-login-lastlog.patch
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.054819 seconds and 3 git commands to generate.