Skip to content

Commit

Permalink
Fix #35
Browse files Browse the repository at this point in the history
Closes #35
Thanks @Bqleine
  • Loading branch information
probonopd authored Jul 2, 2024
1 parent 47b6655 commit 63a422b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions patches/libfuse/mount.c.diff
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63a422b

Please sign in to comment.