From 66ba31aeb065c36280fbbd63184b4c88983c23fb Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 24 Apr 2012 08:06:32 -0400 Subject: [PATCH] Fix bug in library/file --- library/file | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/file b/library/file index e0ebbecb171..402b79ba46a 100755 --- a/library/file +++ b/library/file @@ -318,8 +318,9 @@ elif state == 'link': if os.path.isabs(src): abs_src = src else: - abs_src = os.path.join(os.path.dirname(dest)) - if not os.path.exists(abssrc): + # FIXME: this does not seem correct? -- MPD + abs_src = os.path.dirname(dest) + if not os.path.exists(abs_src): fail_json(dest=dest, src=src, msg='src file does not exist') if prev_state == 'absent':