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

Fixes #5653
This commit is contained in:
jctanner 2016-11-21 09:05:53 -05:00 committed by Matt Clay
parent b1c6b9272f
commit 10f0d3ca95

View file

@ -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')