Merge pull request #988 from chlunde/i386-32-bit-uid

Support 32 bit UID on i386
This commit is contained in:
Mrunal Patel 2016-08-24 09:55:41 -07:00 committed by GitHub
commit 4d34c30196
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import (
// Setuid sets the uid of the calling thread to the specified uid.
func Setuid(uid int) (err error) {
_, _, e1 := syscall.RawSyscall(syscall.SYS_SETUID, uintptr(uid), 0, 0)
_, _, e1 := syscall.RawSyscall(syscall.SYS_SETUID32, uintptr(uid), 0, 0)
if e1 != 0 {
err = e1
}