arblant
firefox-vpn-client / core / internal / logx / open_other.go
open_other.go10 lines · 249 B
1 2 3 4 5 6 7 8 9 10
//go:build !windows

package logx

import "os"

// openLogAppend opens path for appending; POSIX allows deleting open files.
func openLogAppend(path string) (*os.File, error) {
	return os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o600)
}