Merge pull request #12931 from giuseppe/fix-crash-with-bazel-linux-sandbox

rootless: report correctly the error
This commit is contained in:
OpenShift Merge Robot 2022-01-20 00:57:26 -05:00 committed by GitHub
commit f46478c1e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -390,11 +390,11 @@ func becomeRootInUserNS(pausePid, fileToRead string, fileOutput *os.File) (_ boo
return joinUserAndMountNS(uint(pid), "")
}
}
return false, -1, errors.Wrapf(err, "error setting up the process")
return false, -1, errors.New("error setting up the process")
}
if b[0] != '0' {
return false, -1, errors.Wrapf(err, "error setting up the process")
return false, -1, errors.New("error setting up the process")
}
signals := []os.Signal{}