move setuid/setgid into separate functions in platform-dependent files

This commit is contained in:
Arceliar 2021-07-24 11:12:37 -05:00
parent 70b9274ddc
commit b299d7e36b
3 changed files with 36 additions and 4 deletions

View file

@ -0,0 +1,13 @@
// +build !linux,!darwin,!freebsd,!openbsd
package main
import "errors"
func setuid(uid int) error {
return errors.New("setting uid not supported on this platform")
}
func setgid(gid int) error {
return errors.New("setting gid not supported on this platform")
}