diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-07-18 13:52:27 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-07-18 13:52:27 +0200 |
commit | 3193a99b13591e1f987de9b66c44934bfdb1fd33 (patch) | |
tree | 4319cd79178e78e6da903f2c074e245f07da2b46 /lib | |
parent | f1e77d3124000e4dc0fbdde0db4df1ea522905ce (diff) | |
download | Nim-3193a99b13591e1f987de9b66c44934bfdb1fd33.tar.gz |
fixes #4497
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/ospaths.nim | 2 |
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: |