summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-07-18 13:52:27 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-07-18 13:52:27 +0200
commit3193a99b13591e1f987de9b66c44934bfdb1fd33 (patch)
tree4319cd79178e78e6da903f2c074e245f07da2b46 /lib
parentf1e77d3124000e4dc0fbdde0db4df1ea522905ce (diff)
downloadNim-3193a99b13591e1f987de9b66c44934bfdb1fd33.tar.gz
fixes #4497
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/ospaths.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/ospaths.nim b/lib/pure/ospaths.nim
index 98ffc2272..c4058ecce 100644
--- a/lib/pure/ospaths.nim
+++ b/lib/pure/ospaths.nim
@@ -584,7 +584,7 @@ when declared(getEnv) or defined(nimscript):
       if existsFile(x):
         when not defined(windows) and declared(os):
           while followSymlinks: # doubles as if here
-            if x.checkSymlink:
+            if x.isAbsolute and x.checkSymlink:
               var r = newString(256)
               var len = readlink(x, r, 256)
               if len < 0: