Skip to content

Commit

Permalink
Merge pull request #20 from rianhunter/master
Browse files Browse the repository at this point in the history
Require paths for truncate/fstat workarounds
  • Loading branch information
Nikratio authored Jun 23, 2016
2 parents b2fa759 + f51d7b0 commit 1167c11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sshfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3996,6 +3996,14 @@ int main(int argc, char *argv[])
parse_workarounds() == -1)
exit(1);

#if FUSE_VERSION >= 29
// These workarounds require the "path" argument.
if (sshfs.truncate_workaround || sshfs.fstat_workaround) {
sshfs_oper.oper.flag_nullpath_ok = 0;
sshfs_oper.oper.flag_nopath = 0;
}
#endif

if (sshfs.idmap == IDMAP_USER)
sshfs.detect_uid = 1;
else if (sshfs.idmap == IDMAP_FILE) {
Expand Down

0 comments on commit 1167c11

Please sign in to comment.