mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 16:53:11 +00:00
Cannot readlink() on a hard link
This commit is contained in:
committed by
Matt Clay
parent
3e09de7aef
commit
f7fafa8c16
@@ -170,7 +170,7 @@ def main():
|
||||
src = os.path.expanduser(src)
|
||||
else:
|
||||
if state in ['link','hard']:
|
||||
if follow:
|
||||
if follow and state == 'link':
|
||||
# use the current target of the link as the source
|
||||
src = os.readlink(path)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user