You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing three different behaviors from fchmodat on a symlink when using AT_SYMLINK_NOFOLLOW:
The flag is completely ignored because the kernel doesn't implement it; the mode of the referent is changed (this was fixed in early 2015, so this is the case prior to API 23 devices).
Symlink permissions are not supported and ENOSUP is set
Symlink permissions are supported and the symlink mode is set appropriately
Both 2 and 3 provide a conformant implementation of std::filesystem::permissions(symlink_path, p perms, std::filesystem::perm_options::nofollow), but 1 does not. The permissions of the symlink need to either be set or an error needs to be returned.
The text was updated successfully, but these errors were encountered:
I'm seeing three different behaviors from
fchmodat
on a symlink when usingAT_SYMLINK_NOFOLLOW
:ENOSUP
is setBoth 2 and 3 provide a conformant implementation of
std::filesystem::permissions(symlink_path, p perms, std::filesystem::perm_options::nofollow)
, but 1 does not. The permissions of the symlink need to either be set or an error needs to be returned.The text was updated successfully, but these errors were encountered: