mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
bcc993b494
This makes sure, on Windows, that all files are opened with FILE_SHARE_DELETE. On non-Windows this just calls the same `os.Open()`. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
13 lines
237 B
Go
13 lines
237 B
Go
// +build !windows
|
|
|
|
package loggerutils
|
|
|
|
import "os"
|
|
|
|
func openFile(name string, flag int, perm os.FileMode) (*os.File, error) {
|
|
return os.OpenFile(name, flag, perm)
|
|
}
|
|
|
|
func open(name string) (*os.File, error) {
|
|
return os.Open(name)
|
|
}
|