Skip to content

Commit 54fb880

Browse files
committed
Use correct file time for filesLoaded hash table keys
The keys were filenames *after* we called realpath, but the keys were file times from *before* we called it, so they may have been incorrect for symlinks.
1 parent c41c5b0 commit 54fb880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

M2/Macaulay2/m2/startup.m2.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ if firstTime then (
5555
srcdirs = {};
5656

5757
markLoaded = (filepath, filetime, notify) -> (
58-
filepath = realpath toAbsolutePath filepath;
5958
filesLoaded#filepath = filetime;
6059
loadedFiles##loadedFiles = filepath;
6160
if notify then printerr("loaded ", filepath));
6261
tryLoad = (filename, filepath, loadfun, notify) -> if fileExists filepath then (
62+
filepath = realpath toAbsolutePath filepath;
6363
filetime := fileTime filepath;
6464
if notify then printerr("loading ", filename);
6565
ret := loadfun filepath;

0 commit comments

Comments
 (0)