8a8cfb
commit 0d5b2917530ccaf8ad312dfbb7bce69d569c23ad
8a8cfb
Author: Florian Weimer <fweimer@redhat.com>
8a8cfb
Date:   Thu Aug 15 16:09:20 2019 +0200
8a8cfb
8a8cfb
    login: Use struct flock64 in utmp [BZ #24880]
8a8cfb
    
8a8cfb
    Commit 06ab719d30b01da401150068054d3b8ea93dd12f ("Fix Linux fcntl OFD
8a8cfb
    locks for non-LFS architectures (BZ#20251)") introduced the use of
8a8cfb
    fcntl64 into the utmp implementation.  However, the lock file
8a8cfb
    structure was not updated to struct flock64 at that point.
8a8cfb
8a8cfb
diff --git a/login/utmp_file.c b/login/utmp_file.c
8a8cfb
index 54f424fd6165bae7..8b6fee96b623fa90 100644
8a8cfb
--- a/login/utmp_file.c
8a8cfb
+++ b/login/utmp_file.c
8a8cfb
@@ -85,7 +85,7 @@ try_file_lock (struct file_locking *locking, int fd, int type)
8a8cfb
   alarm (TIMEOUT);
8a8cfb
 
8a8cfb
   /* Try to get the lock.  */
8a8cfb
- struct flock fl =
8a8cfb
+ struct flock64 fl =
8a8cfb
    {
8a8cfb
     .l_type = type,
8a8cfb
     fl.l_whence = SEEK_SET,
8a8cfb
@@ -96,7 +96,7 @@ try_file_lock (struct file_locking *locking, int fd, int type)
8a8cfb
 static void
8a8cfb
 file_unlock (int fd)
8a8cfb
 {
8a8cfb
-  struct flock fl =
8a8cfb
+  struct flock64 fl =
8a8cfb
     {
8a8cfb
       .l_type = F_UNLCK,
8a8cfb
     };