commit - a4c8ed779e07ca691ec6ad2651d059dc673403bc
commit + 768236a07f62e0df2ee0a9c5bc7c2107dd970d51
blob - 7f8f5889223aa73b0ce751d3ade99c6d45147699
blob + 1ed8d3dc9b6ae29d105bff2710d33de54cf0bc13
--- gitwrapper/gitwrapper.c
+++ gitwrapper/gitwrapper.c
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)