From bf919c604ad1bae3a69b9226fbe3a8e2a9b88efd Mon Sep 17 00:00:00 2001 From: Gowtham <15722259+gowtham0992@users.noreply.github.com> Date: Sat, 21 Nov 2026 11:40:42 -0700 Subject: [PATCH] Do not set FD_CLOEXEC on the FUSE fd on QNX There is no /dev/fuse descriptor on QNX: the FUSE API is provided over native message passing and fuse_session_fd() does not exist there. --- sshfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshfs.c b/sshfs.c index 857da7cb..273d067d 100644 --- a/sshfs.c +++ b/sshfs.c @@ -4690,7 +4690,7 @@ int main(int argc, char *argv[]) * On macOS the FD_CLOEXEC fcntl is deferred until after * fuse_daemonize() below; see the comment there. */ -#if !defined(__CYGWIN__) && !defined(__APPLE__) +#if !defined(__CYGWIN__) && !defined(__APPLE__) && !defined(__QNXNTO__) res = fcntl(fuse_session_fd(se), F_SETFD, FD_CLOEXEC); if (res == -1) perror("WARNING: failed to set FD_CLOEXEC on fuse device");