Set b_src to abspath of b_path so that symlinks work again. (#5678)

Fixes #5653
pull/18777/head
jctanner 8 years ago committed by Matt Clay
parent b1c6b9272f
commit 10f0d3ca95

@ -238,6 +238,7 @@ def main():
if follow and state == 'link':
# use the current target of the link as the source
src = to_native(os.path.realpath(b_path), errors='strict')
b_src = to_bytes(os.path.realpath(b_path), errors='strict')
else:
module.fail_json(msg='src and dest are required for creating links')

Loading…
Cancel
Save