pkg/idtools: mkdirAs() be more explicit about ignored args on Windows

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-10-05 15:15:16 +02:00
parent c218211012
commit 27aea4956c
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -19,11 +19,8 @@ const (
// permissions aren't set through this path, the identity isn't utilized.
// Ownership is handled elsewhere, but in the future could be support here
// too.
func mkdirAs(path string, mode os.FileMode, owner Identity, mkAll, chownExisting bool) error {
if err := system.MkdirAll(path, mode); err != nil {
return err
}
return nil
func mkdirAs(path string, _ os.FileMode, _ Identity, _, _ bool) error {
return system.MkdirAll(path, 0)
}
// CanAccess takes a valid (existing) directory and a uid, gid pair and determines