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

front
cinap_lenrek 2020-12-07 14:54:27 +01:00
parent 4d4b6a19de
commit 5e59c57bb1
1 changed files with 1 additions and 1 deletions

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){