diff options
| author | qmuntal <quimmuntal@gmail.com> | 2025-08-27 09:12:29 +0200 |
|---|---|---|
| committer | Quim Muntal <quimmuntal@gmail.com> | 2025-08-27 21:44:39 -0700 |
| commit | e47d88beae126387647348810b728ed12c8a0d61 (patch) | |
| tree | e73aa79ab421289c8f64a9af9838a1fd3cda4112 /src/syscall/exec_linux.go | |
| parent | 6b837a64dbe6264035037d61c56ab94b55b2844d (diff) | |
| download | go-e47d88beae126387647348810b728ed12c8a0d61.tar.xz | |
os: return nil slice when ReadDir is used with a file on file_windows
ReadDir should return (nil, ENOTDIR) when the path points to a file
instead of a directory. That's the behavior on Unix systems, and it also
used to be the behavior on Windows. However, Windows currently returns
([]DirEntry{}, ENOTDIR).
We should change the implementation to match the expected behavior.
Fixed #75157
Change-Id: I3a3ddb71b5cd6e51dbca435a1585f01116844d4a
Reviewed-on: https://go-review.googlesource.com/c/go/+/699375
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Steven Hartland <stevenmhartland@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/syscall/exec_linux.go')
0 files changed, 0 insertions, 0 deletions
