use system.Set{u,g}id to fix Set{u,g}id on Go 1.4

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
This commit is contained in:
unclejack 2014-11-03 21:50:36 +02:00
parent d3eb885553
commit 59584e5ba1
1 changed files with 2 additions and 2 deletions

View File

@ -164,11 +164,11 @@ func SetupUser(u string) error {
return fmt.Errorf("setgroups %s", err)
}
if err := syscall.Setgid(gid); err != nil {
if err := system.Setgid(gid); err != nil {
return fmt.Errorf("setgid %s", err)
}
if err := syscall.Setuid(uid); err != nil {
if err := system.Setuid(uid); err != nil {
return fmt.Errorf("setuid %s", err)
}