Fix chroot missing

This commit is contained in:
Afonso Franco 2024-05-12 13:53:17 +01:00
parent 746f2750c6
commit 9b97b40889
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54

View file

@ -12,6 +12,7 @@
int main() {
// Open the FIFO for writing
chroot("/opt/djumbai/");
const char *send_fifo_path = "fifos/send_fifo";
if (access(send_fifo_path, F_OK) != -1) {
// FIFO exists, delete it