lib9p: open internal file-descriptor with OCEXEC flag in getremotesys()

This commit is contained in:
cinap_lenrek 2020-12-07 14:54:27 +01:00
parent 4d4b6a19de
commit 5e59c57bb1

View file

@ -100,7 +100,7 @@ getremotesys(char *ndir)
snprint(buf, sizeof buf, "%s/remote", ndir);
sys = nil;
fd = open(buf, OREAD);
fd = open(buf, OREAD|OCEXEC);
if(fd >= 0){
n = read(fd, buf, sizeof(buf)-1);
if(n>0){