Skip to content

Commit

Permalink
Merge pull request docker-archive#269 from aholler/master
Browse files Browse the repository at this point in the history
Use SYS_SETUID32 for system.Setuid() on Linux for ARM
  • Loading branch information
Mrunal Patel committed Nov 17, 2014
2 parents 3f17f89 + def2a7b commit 05661b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/syscall_linux_arm.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,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
}
Expand Down

0 comments on commit 05661b1

Please sign in to comment.