From 546cacd1726520f564f17e060eac04cc062a7057 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20N=C3=A9ri?= <dne@mayonnaise.net>
Date: Tue, 1 May 2012 03:12:13 +0200
Subject: [PATCH] File module fix for symlink from relative source path

---
 file | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/file b/file
index 4a1d5482c35..245ee9f2f93 100755
--- a/file
+++ b/file
@@ -356,8 +356,7 @@ elif state == 'link':
     if os.path.isabs(src):
         abs_src = src
     else:
-        # FIXME: this does not seem correct? -- MPD
-        abs_src = os.path.dirname(dest)
+        abs_src = os.path.join(os.path.dirname(dest), src)
     if not os.path.exists(abs_src):
         fail_json(dest=dest, src=src, msg='src file does not exist')