file.check_perms breaks with symlinks #11387
Labels
Bug
broken, incorrect, or confusing behavior
fixed-pls-verify
fix is linked, bug author to confirm fix
help-wanted
Community help is needed to resolve this
severity-low
4th level, cosemtic problems, work around exists
Milestone
There is inconsistent use of
follow_symlinks
infile.check_perms
The owner of the file is first checked using
state
withfollow_symlinks=False
, and then withget_user
which defaults tofollow_symlinks=True
.This causes the state to fail for symlinks that have the correct ownership but point to files that have different ownership.
Looks to be caused by this change: 7d4c470#diff-7c48191b14cdf053cf954d03cc317963L2195
The text was updated successfully, but these errors were encountered: