Whamcloud - gitweb
b=15599 hsm infrastructure
[fs/lustre-release.git] / libcfs / libcfs / darwin / darwin-fs.c
index b592d88..2234082 100644 (file)
@@ -448,7 +448,7 @@ int cfs_oflags2univ(int flags)
 {
         int f;
 
-        f = flags & O_ACCMODE;
+        f = flags & O_NOACCESS;
         f |= (flags & O_CREAT) ? CFS_O_CREAT: 0;
         f |= (flags & O_TRUNC) ? CFS_O_TRUNC: 0;
         f |= (flags & O_EXCL) ? CFS_O_EXCL: 0;