diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-08-23 16:20:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 16:20:33 -0400 |
commit | edde8570ce7d15baaa33a4a48499bad4cf3377e4 (patch) | |
tree | 02f657456fe9a1801d372548102f73739c3c6c83 /cmd | |
parent | cf9c04ae2b61d1eed32a73aad2172d3455a5a9fa (diff) | |
parent | f87f6d2fc193c9b53ac8ba634954a811a32fd057 (diff) | |
download | podman-edde8570ce7d15baaa33a4a48499bad4cf3377e4.tar.gz podman-edde8570ce7d15baaa33a4a48499bad4cf3377e4.tar.bz2 podman-edde8570ce7d15baaa33a4a48499bad4cf3377e4.zip |
Merge pull request #15372 from arixmkii/win_compat
Improved Windows compatibility
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/rootlessport/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/rootlessport/main.go b/cmd/rootlessport/main.go index 5410cd14a..d8d6ffcee 100644 --- a/cmd/rootlessport/main.go +++ b/cmd/rootlessport/main.go @@ -225,7 +225,7 @@ outer: // https://github.com/containers/podman/issues/11248 // Copy /dev/null to stdout and stderr to prevent SIGPIPE errors - if f, err := os.OpenFile("/dev/null", os.O_WRONLY, 0755); err == nil { + if f, err := os.OpenFile(os.DevNull, os.O_WRONLY, 0755); err == nil { unix.Dup2(int(f.Fd()), 1) //nolint:errcheck unix.Dup2(int(f.Fd()), 2) //nolint:errcheck f.Close() |