diff options
| author | qmuntal <quimmuntal@gmail.com> | 2026-03-11 14:56:33 +0100 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-16 15:35:19 -0700 |
| commit | e7add86f163612d09c4c2ba2b80a4fc6eadf94bf (patch) | |
| tree | 8bb73dec08b42eb84f150e28090d96d4e1ed6c27 /src | |
| parent | 6ab37c1ca59664375786fb2f3c122eb3db98e433 (diff) | |
| download | go-e7add86f163612d09c4c2ba2b80a4fc6eadf94bf.tar.xz | |
internal/syscall/windows: don't force image section checks in Deleteat
I originally added the FILE_DISPOSITION_FORCE_IMAGE_SECTION_CHECK flag
because Windows' DeleteFileW used to use it, but it doesn't anymore.
Not using that flag makes Deleteat work in more cases.
Change-Id: I604ad68330e08bcbd37f33a3bf4e5f7e7f043c16
Reviewed-on: https://go-review.googlesource.com/c/go/+/754180
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Quim Muntal <quimmuntal@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/internal/syscall/windows/at_windows.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/internal/syscall/windows/at_windows.go b/src/internal/syscall/windows/at_windows.go index a5601493d8..f2f95b8711 100644 --- a/src/internal/syscall/windows/at_windows.go +++ b/src/internal/syscall/windows/at_windows.go @@ -295,7 +295,6 @@ func Deleteat(dirfd syscall.Handle, name string, options uint32) error { &IO_STATUS_BLOCK{}, unsafe.Pointer(&FILE_DISPOSITION_INFORMATION_EX{ Flags: FILE_DISPOSITION_DELETE | - FILE_DISPOSITION_FORCE_IMAGE_SECTION_CHECK | FILE_DISPOSITION_POSIX_SEMANTICS | // This differs from DeleteFileW, but matches os.Remove's // behavior on Unix platforms of permitting deletion of |
