mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
fixes #4497
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user