mirror of https://github.com/containers/podman.git
pkg/rootless: fix ST1005 warning for freebsd
> pkg/rootless/rootless_freebsd.go:24:20: ST1005: error strings should not be capitalized (staticcheck) > return false, -1, errors.New("Rootless mode is not supported on FreeBSD - run podman as root") > ^ Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
4f75d0be47
commit
f589811073
|
@ -21,7 +21,7 @@ func IsRootless() bool {
|
|||
// If podman was re-executed the caller needs to propagate the error code returned by the child
|
||||
// process. It is a convenience function for BecomeRootInUserNSWithOpts with a default configuration.
|
||||
func BecomeRootInUserNS(pausePid string) (bool, int, error) {
|
||||
return false, -1, errors.New("Rootless mode is not supported on FreeBSD - run podman as root")
|
||||
return false, -1, errors.New("rootless mode is not supported on FreeBSD - run podman as root")
|
||||
}
|
||||
|
||||
// GetRootlessUID returns the UID of the user in the parent userNS
|
||||
|
|
Loading…
Reference in New Issue