From 63a422bdeb0bd113239a48e88ec8102e62828e0b Mon Sep 17 00:00:00 2001 From: probonopd Date: Tue, 2 Jul 2024 21:25:33 +0200 Subject: [PATCH] Fix #35 Closes #35 Thanks @Bqleine --- patches/libfuse/mount.c.diff | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/patches/libfuse/mount.c.diff b/patches/libfuse/mount.c.diff index 0dfa9cf..6646a4b 100644 --- a/patches/libfuse/mount.c.diff +++ b/patches/libfuse/mount.c.diff @@ -65,9 +65,11 @@ index d71e6fc55..acc1711ff 100644 + // For i = 4...99, check if there is a binary called "fusermount" + i + // It is not yet known whether this will work for our purposes, but it is better than not even attempting + for (int i = 4; i < 100; i++) { -+ prog = findBinaryInFusermountDir("fusermount" + i); -+ if (access(prog, X_OK) == 0) -+ return prog; ++ char binaryName[20]; // Adjust size as per your needs ++ sprintf(binaryName, "fusermount%d", i); ++ prog = findBinaryInFusermountDir(binaryName); ++ if (prog && access(prog, X_OK) == 0) ++ return prog; + } + + // If all else fails, return NULL