diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rfsv16.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rfsv16.cc b/lib/rfsv16.cc index eb5b91f..9ee24f2 100644 --- a/lib/rfsv16.cc +++ b/lib/rfsv16.cc @@ -279,7 +279,7 @@ opMode(long mode) ret |= (mode & PSI_O_TRUNC) ? P_FREPLACE : 0; ret |= (mode & PSI_O_CREAT) ? P_FCREATE : 0; ret |= (mode & PSI_O_APPEND) ? P_FAPPEND : 0; - if (mode & 03) == PSI_O_RDONLY) + if ((mode & 03) == PSI_O_RDONLY) ret |= (mode & PSI_O_EXCL) ? 0 : P_FSHARE; return ret; } |