Skip to content

Commit

Permalink
Fix typo in setGid function. (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
jefchien authored Feb 10, 2022
1 parent 85b920f commit 9c4ae82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translator/cmdutil/set_uid_gid_1_15_x64.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func setUid(uid int) (err error) {
}

func setGid(gid int) (err error) {
_, _, e1 := unix.RawSyscall(unix.SYS_SETUID, uintptr(gid), 0, 0)
_, _, e1 := unix.RawSyscall(unix.SYS_SETGID, uintptr(gid), 0, 0)
if e1 != 0 {
err = e1
}
Expand Down

0 comments on commit 9c4ae82

Please sign in to comment.