stop calling realpath in the compiler #16571
Labels
backend-llvm
The LLVM backend outputs an LLVM IR Module.
bug
Observed behavior contradicts documented or intended behavior
Milestone
realpath is problematic for several reasons:
/long1/long2/foo
for example where long1 and long2 together exceed MAX_PATH, then the OS will give an error for that path when asked for the realpath.Robust software avoids realpath.
Looks like this regressed in #13843.
Maybe we can even add a std lib option to disallow realpath on a per-application basis and then opt into that restriction in the compiler.
Related:
The text was updated successfully, but these errors were encountered: