diff options
author | Valery Piashchynski <[email protected]> | 2020-12-15 14:17:50 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-15 14:17:50 +0300 |
commit | d39a0735fe21d21c5aae20c4780458433a42250a (patch) | |
tree | ec676d5b00dc2c00719faeea2e6aa7d8a9de359c | |
parent | 323a4f7157b08557d268c7f5cbc23fee2ab03389 (diff) |
Correct int32 parsing
-rwxr-xr-x | util/isolate.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/isolate.go b/util/isolate.go index 2bdb9d6c..0ea1dff3 100755 --- a/util/isolate.go +++ b/util/isolate.go @@ -26,12 +26,12 @@ func ExecuteFromUser(cmd *exec.Cmd, u string) error { return errors.E(op, err) } - usrI32, err := strconv.Atoi(usr.Uid) + usrI32, err := strconv.ParseInt(usr.Uid, 10, 32) if err != nil { return errors.E(op, err) } - grI32, err := strconv.Atoi(usr.Gid) + grI32, err := strconv.ParseInt(usr.Gid, 10, 32) if err != nil { return errors.E(op, err) } |