summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/file.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/files/file.py b/files/file.py
index 25b00859..b7044ca2 100644
--- a/files/file.py
+++ b/files/file.py
@@ -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')