From 0d57c0233d859e02de91e607e46b1f1f41e60caa Mon Sep 17 00:00:00 2001 From: Kurt Harriger and Johnny Brown Date: Thu, 26 Feb 2015 14:43:48 -0700 Subject: [PATCH] Fix semi-relative paths in file Use .getCannonicalPath instead of .getAbsolutePath Fixes https://github.com/technomancy/lein-tar/issues/17 --- src/leiningen/tar.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/leiningen/tar.clj b/src/leiningen/tar.clj index ca52ae9..cc9c5a9 100644 --- a/src/leiningen/tar.clj +++ b/src/leiningen/tar.clj @@ -17,7 +17,7 @@ "Converts a File or String into a unix-like path" [f] (-> (if (instance? java.io.File f) - (.getAbsolutePath f) + (.getCanonicalPath f) f) (.replaceAll "\\\\" "/"))) ; WINDERS!!!!