diff options
Diffstat (limited to 'setuid_windows.go')
| -rw-r--r-- | setuid_windows.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/setuid_windows.go b/setuid_windows.go new file mode 100644 index 0000000..63ccc73 --- /dev/null +++ b/setuid_windows.go @@ -0,0 +1,19 @@ +package main + +import ( + "errors" +) + +func setUID(uid uint16) error { + if uid != 0 { + return errors.New("unable to setuid on Windows") + } + return nil +} + +func setGID(uid uint16) error { + if uid != 0 { + return errors.New("unable to setgid on Windows") + } + return nil +} |
