mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 21:35:04 +00:00
Call unveil() from srv_open() if on OpenBSD.
This commit is contained in:
parent
01b2d3c66d
commit
484cfbc800
1 changed files with 6 additions and 0 deletions
6
data.c
6
data.c
|
@ -79,6 +79,12 @@ int srv_open(char *basedir)
|
||||||
if (error != NULL)
|
if (error != NULL)
|
||||||
srv_log(error);
|
srv_log(error);
|
||||||
|
|
||||||
|
#ifdef __OpenBSD__
|
||||||
|
srv_debug(2, xs_fmt("Calling unveil()"));
|
||||||
|
unveil(basedir, "rwc");
|
||||||
|
unveil(NULL, NULL);
|
||||||
|
#endif /* __OpenBSD__ */
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue