Change base dir to /djumbai instead of /opt/djumbai

This commit is contained in:
Afonso Franco 2024-05-12 16:22:11 +01:00
parent 5c28fe0531
commit 21a222d855
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54
6 changed files with 22 additions and 23 deletions

View file

@ -10,9 +10,9 @@
#include <unistd.h>
int main() {
chdir("/opt/djumbai/");
if (chroot("/opt/djumbai/") != 0) {
perror("chroot /opt/djumbai");
chdir("/djumbai/");
if (chroot("/djumbai/") != 0) {
perror("chroot /djumbai");
return 1;
}
const char *send_fifo_path = "fifos/send_fifo";