Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
update for Go 1
Browse files Browse the repository at this point in the history
  • Loading branch information
bradfitz committed Mar 16, 2012
1 parent de0a685 commit 92e59b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runas/runas.go
Expand Up @@ -27,6 +27,7 @@ import (
"os/exec"
"os/user"
"path/filepath"
"strconv"
"syscall"
)

Expand Down Expand Up @@ -74,7 +75,9 @@ func User(username string) (*rpc.Client, error) {
if err != nil {
return nil, err
}
return UidGid(u.Uid, u.Gid)
uid, _ := strconv.Atoi(u.Uid)
gid, _ := strconv.Atoi(u.Gid)
return UidGid(uid, gid)
}

// UidGid returns an rpc Client suitable for talking to Server
Expand Down

0 comments on commit 92e59b8

Please sign in to comment.