Compare commits

..

No commits in common. "427aaa7713c381c39b0ba2eb9959d45f09902104" and "9480a710ee1a89488bbe230daee25b4645067804" have entirely different histories.

@ -27,7 +27,6 @@ func Command(name string, arg ...string) (*exec.Cmd, error) {
// registered in the command. // registered in the command.
func Apply(cmd *exec.Cmd) error { func Apply(cmd *exec.Cmd) error {
uid := os.Getuid() uid := os.Getuid()
gid := os.Getgid()
// If the user is already root, there's no need for fakeroot // If the user is already root, there's no need for fakeroot
if uid == 0 { if uid == 0 {
@ -60,7 +59,7 @@ func Apply(cmd *exec.Cmd) error {
cmd.SysProcAttr.GidMappings = append(cmd.SysProcAttr.GidMappings, syscall.SysProcIDMap{ cmd.SysProcAttr.GidMappings = append(cmd.SysProcAttr.GidMappings, syscall.SysProcIDMap{
ContainerID: 0, ContainerID: 0,
HostID: gid, HostID: uid,
Size: 1, Size: 1,
}) })