libcomplete: open internal file-descriptor with OCEXEC flag
parent
383a2ca79b
commit
1bb96d542c
|
@ -53,7 +53,7 @@ complete(char *dir, char *s)
|
|||
return nil;
|
||||
}
|
||||
|
||||
fd = open(dir, OREAD);
|
||||
fd = open(dir, OREAD|OCEXEC);
|
||||
if(fd < 0)
|
||||
return nil;
|
||||
|
||||
|
|
Loading…
Reference in New Issue