Skip to content

Commit

Permalink
New attempt at workarounds over the lack of lchmod
Browse files Browse the repository at this point in the history
  • Loading branch information
netheril96 committed Feb 28, 2017
1 parent 035f500 commit 2221a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ void OSService::chmod(StringRef path, fuse_mode_t mode) const
#ifdef AT_SYMLINK_NOFOLLOW
int rc = ::fchmodat(m_dir_fd, path.c_str(), mode, AT_SYMLINK_NOFOLLOW);
if (rc < 0 && errno == ENOTSUP)
rc = ::lchmod(norm_path(path).c_str(), mode);
rc = ::fchmodat(m_dir_fd, path.c_str(), mode, 0);
#else
int rc = ::lchmod(norm_path(path).c_str(), mode);
#endif
Expand Down

0 comments on commit 2221a00

Please sign in to comment.