Browse Source

Merge pull request #787 from trapexit/nfshack

nfsopenhack: remove empty file check
pull/789/head
trapexit 4 years ago
committed by GitHub
parent
commit
6f76080c6b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/fuse_open.cpp

2
src/fuse_open.cpp

@ -57,7 +57,7 @@ namespace l
if(rv == -1) if(rv == -1)
return (errno=EACCES,-1); return (errno=EACCES,-1);
if(StatUtil::writable_or_not_empty(st))
if(StatUtil::writable(st))
return (errno=EACCES,-1); return (errno=EACCES,-1);
rv = fs::chmod(fullpath_,(st.st_mode|S_IWUSR|S_IWGRP)); rv = fs::chmod(fullpath_,(st.st_mode|S_IWUSR|S_IWGRP));

Loading…
Cancel
Save