You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the trace I found it originates in go/src/os/root_openat.go:133. After resolving a .. path, there is no check to ensure path is not empty, causing the path[i] lookup to throw a panic.
What did you expect to see?
To get Lstat results for my root folder
The text was updated successfully, but these errors were encountered:
Go version
1.24.2
Output of
go env
in your module/workspace:What did you do?
root.Lstat
to access the root directory using a relative path (subdir/..
)What did you see happen?
When using
os.Root
as follows:I get the following panic:
Following the trace I found it originates in go/src/os/root_openat.go:133. After resolving a
..
path, there is no check to ensurepath
is not empty, causing thepath[i]
lookup to throw a panic.What did you expect to see?
To get
Lstat
results for my root folderThe text was updated successfully, but these errors were encountered: