restic/internal/fs/const_windows.go
Michael Eischer b402e8a6fc fs: stricter enforcement to only call readdir on a directory
Use O_DIRECTORY to prevent opening any other than a directory in
readdirnames.
2024-11-16 12:56:23 +01:00

12 lines
215 B
Go

//go:build windows
// +build windows
package fs
// TODO honor flags when opening files
// O_NOFOLLOW is a noop on Windows.
const O_NOFOLLOW int = 0
// O_DIRECTORY is a noop on Windows.
const O_DIRECTORY int = 0