commit 5157cdbbd3ec97ecd5f28ea9a39522b07a10bc8e from: Stefan Sperling date: Thu May 25 20:14:50 2023 UTC make gitwrapper not fail if programs it wants to run do not exist on disk commit - ad575c3a0f6a3c278002356c0a2cf0142cf1177a commit + 5157cdbbd3ec97ecd5f28ea9a39522b07a10bc8e blob - 7f8f5889223aa73b0ce751d3ade99c6d45147699 blob + 1ed8d3dc9b6ae29d105bff2710d33de54cf0bc13 --- gitwrapper/gitwrapper.c +++ gitwrapper/gitwrapper.c @@ -77,13 +77,13 @@ apply_unveil(const char *myserver) if (unveil("gmon.out", "rwc") != 0) return got_error_from_errno2("unveil", "gmon.out"); #endif - if (unveil(fetchcmd, "x") != 0) + if (unveil(fetchcmd, "x") != 0 && errno != ENOENT) return got_error_from_errno2("unveil", fetchcmd); - if (unveil(sendcmd, "x") != 0) + if (unveil(sendcmd, "x") != 0 && errno != ENOENT) return got_error_from_errno2("unveil", sendcmd); - if (myserver && unveil(myserver, "x") != 0) + if (myserver && unveil(myserver, "x") != 0 && errno != ENOENT) return got_error_from_errno2("unveil", myserver); if (unveil(NULL, NULL) != 0)