Whamcloud - gitweb
b=22040 use df POSIX output format
[fs/lustre-release.git] / lustre / tests / flocks_test.c
index 97890d8..f3feac6 100644 (file)
@@ -240,7 +240,8 @@ int t2(int argc, char* argv[])
         }
 
         t_fcntl(fd, F_SETFL, O_APPEND);
-        if (!(rc = t_fcntl(fd, F_GETFL)) & O_APPEND) {
+        rc = t_fcntl(fd, F_GETFL);
+        if ((rc & O_APPEND) == 0) {
                 fprintf(stderr, "error get flag: ret %x\n", rc);
                 return EXIT_FAILURE;
         }