libcomplete: open internal file-descriptor with OCEXEC flag
This commit is contained in:
parent
383a2ca79b
commit
1bb96d542c
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ complete(char *dir, char *s)
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
fd = open(dir, OREAD);
|
fd = open(dir, OREAD|OCEXEC);
|
||||||
if(fd < 0)
|
if(fd < 0)
|
||||||
return nil;
|
return nil;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue