about summary refs log tree commit diff
path: root/login
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-08-15 16:09:20 +0200
committerFlorian Weimer <fweimer@redhat.com>2019-08-15 16:09:20 +0200
commit0d5b2917530ccaf8ad312dfbb7bce69d569c23ad (patch)
tree2bd32f29d15a2d461ad68da56cec1fc893d416f1 /login
parent628598be7e1bfaa04f34df71ef6678f2c5103dfd (diff)
downloadglibc-0d5b2917530ccaf8ad312dfbb7bce69d569c23ad.tar.gz
glibc-0d5b2917530ccaf8ad312dfbb7bce69d569c23ad.tar.xz
glibc-0d5b2917530ccaf8ad312dfbb7bce69d569c23ad.zip
login: Use struct flock64 in utmp [BZ #24880]
Commit 06ab719d30b01da401150068054d3b8ea93dd12f ("Fix Linux fcntl OFD
locks for non-LFS architectures (BZ#20251)") introduced the use of
fcntl64 into the utmp implementation.  However, the lock file
structure was not updated to struct flock64 at that point.
Diffstat (limited to 'login')
-rw-r--r--login/utmp_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/login/utmp_file.c b/login/utmp_file.c
index f3c528384f..94753e0404 100644
--- a/login/utmp_file.c
+++ b/login/utmp_file.c
@@ -76,7 +76,7 @@ try_file_lock (int fd, int type)
   alarm (TIMEOUT);
 
   /* Try to get the lock.  */
- struct flock fl =
+ struct flock64 fl =
    {
     .l_type = type,
     fl.l_whence = SEEK_SET,
@@ -103,7 +103,7 @@ try_file_lock (int fd, int type)
 static void
 file_unlock (int fd)
 {
-  struct flock fl =
+  struct flock64 fl =
     {
       .l_type = F_UNLCK,
     };