]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-linux-lock64-fix-20030116
authorPavel Semerad <semerad@ss1000.ms.mff.cuni.cz>
Fri, 17 Jan 2003 01:30:37 +0000 (01:30 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 17 Jan 2003 01:30:37 +0000 (01:30 +0000)
fix 64bit lock functions

(cherry picked from commit 3fa43862aa17467795121eb21f191066ab399980)

src/afs/LINUX/osi_vnodeops.c

index 994a972bca5a162d4ec84b18361e00df0c95fb56..9ba631e4a83af78b247e0bea13c6e4a778454b00 100644 (file)
@@ -542,11 +542,11 @@ static int afs_linux_lock(struct file *fp, int cmd, struct file_lock *flp)
 
     /* Safe because there are no large files, yet */
 #if defined(F_GETLK64) && (F_GETLK != F_GETLK64)
-    if (cmd = F_GETLK64)
+    if (cmd == F_GETLK64)
        cmd = F_GETLK;
-    else if (cmd = F_SETLK64)
+    else if (cmd == F_SETLK64)
        cmd = F_SETLK;
-    else if (cmd = F_SETLKW64)
+    else if (cmd == F_SETLKW64)
        cmd = F_SETLKW;
 #endif /* F_GETLK64 && F_GETLK != F_GETLK64 */