File: perm_windows.go

package info (click to toggle)
golang-github-theupdateframework-go-tuf 0.5.2-5~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 7,596 kB
  • sloc: python: 163; sh: 37; makefile: 12
file content (17 lines) | stat: -rw-r--r-- 596 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package fsutil

import (
	"os"
)

// EnsureMaxPermissions tests the provided file info to make sure the
// permission bits matches the provided.
// On Windows system the permission bits are not really compatible with
// UNIX-like permission bits. By setting the UNIX-like permission bits
// on a Windows system only read/write by all users can be achieved.
// See this issue for tracking and more details:
// https://github.com/theupdateframework/go-tuf/issues/360
// Currently this method will always return nil.
func EnsureMaxPermissions(fi os.FileInfo, perm os.FileMode) error {
	return nil
}