diff --git a/qrexec-lib/unpack.c b/qrexec-lib/unpack.c index 3f548da..b2c4550 100644 --- a/qrexec-lib/unpack.c +++ b/qrexec-lib/unpack.c @@ -237,6 +237,8 @@ int do_unpack(void) cwd_fd = open(".", O_RDONLY); if (cwd_fd >= 0 && syncfs(cwd_fd) == 0 && close(cwd_fd) == 0) errno = saved_errno; +#else + sync(); #endif send_status_and_crc(errno, untrusted_namebuf);