lib9p: open /mnt/factotum/rpc with OCEXEC flag in auth9p()

This commit is contained in:
cinap_lenrek 2020-12-07 14:51:53 +01:00
parent d570229e82
commit 4d4b6a19de

View file

@ -25,7 +25,7 @@ auth9p(Req *r)
Afid *afid;
afid = emalloc9p(sizeof(Afid));
afid->afd = open("/mnt/factotum/rpc", ORDWR);
afid->afd = open("/mnt/factotum/rpc", ORDWR|OCEXEC);
if(afid->afd < 0)
goto error;