pkg/idtools: mkdirAs() be more explicit about ignored args on Windows
@@ -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
