vault/helper/osutil/fileinfo_windows.go
miagilepner 4439ee8798
Fix Windows chown error (#28748)
* noop for windows chown

* changelog
2024-10-22 14:57:26 +02:00

25 lines
363 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
//go:build windows
package osutil
import (
"io/fs"
"os"
)
func FileUidMatch(info fs.FileInfo, path string, uid int) error {
return nil
}
// Umask does nothing for windows for now
func Umask(newmask int) int {
return 0
}
func Chown(f *os.File, owner, group int) error {
return nil
}