Skip to content

Commit 932cb73

Browse files
authored
Use --version
1 parent af9aa4b commit 932cb73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/runtime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ char* find_fusermount() {
452452

453453
if (pid == 0) {
454454
// Child process
455-
char* args[] = {fusermount_full_path, NULL};
455+
char* args[] = {fusermount_full_path, "--version", NULL};
456456
execvp(fusermount_full_path, args);
457457
// If execvp returns, it means the executable was not found
458458
exit(1);
@@ -1685,7 +1685,7 @@ int main(int argc, char* argv[]) {
16851685
// printf("FUSERMOUNT_PROG set to %s\n", new_prog);
16861686
free(new_prog);
16871687
} else {
1688-
printf("Error: fusermount not found\n");
1688+
printf("Error: No suitable fusermount binary found on the $PATH\n");
16891689
}
16901690
}
16911691

0 commit comments

Comments
 (0)