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