From 3193a99b13591e1f987de9b66c44934bfdb1fd33 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 18 Jul 2016 13:52:27 +0200 Subject: fixes #4497 --- lib/pure/ospaths.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit 1.4.1-2-gfad0