Skip to content

Commit

Permalink
rofiles-fuse: Fixed the problem that when fuse execution fails, the c…
Browse files Browse the repository at this point in the history
…ommand returns a status code of 0

testcase:
`$ sudo rofiles-fuse a b`
fuse: bad mount point `b': No such file or directory
`$ echo $?`
0
  • Loading branch information
qiuzhiqian committed Dec 3, 2024
1 parent 111a45f commit 8346244
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/rofiles-fuse/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,6 @@ main (int argc, char *argv[])
exit (EXIT_FAILURE);
}

fuse_main (args.argc, args.argv, &callback_oper, NULL);

return 0;
// Refer to https://man.openbsd.org/fuse_main.3
return (fuse_main (args.argc, args.argv, &callback_oper, NULL));
}

0 comments on commit 8346244

Please sign in to comment.