linux-lock64-fix-20030116
authorPavel Semerad <semerad@ss1000.ms.mff.cuni.cz>
Fri, 17 Jan 2003 01:30:05 +0000 (01:30 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 17 Jan 2003 01:30:05 +0000 (01:30 +0000)
fix 64bit lock functions

src/afs/LINUX/osi_vnodeops.c

index 67538b5..1045df7 100644 (file)
@@ -649,11 +649,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 */