Skip to content

Commit a592d85

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 a592d85

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
@@ -60,7 +60,7 @@ if firstTime then (
6060
loadedFiles##loadedFiles = filepath;
6161
if notify then printerr("loaded ", filepath));
6262
tryLoad = (filename, filepath, loadfun, notify) -> if fileExists filepath then (
63-
filetime := fileTime filepath;
63+
filetime := fileTime realpath toAbsolutePath filepath;
6464
if notify then printerr("loading ", filename);
6565
ret := loadfun filepath;
6666
markLoaded(filepath, filetime, notify);

0 commit comments

Comments
 (0)