rofiles-fuse: Fixed the problem that when fuse execution fails, the command returns a status code of 0

testcase:
`$ sudo rofiles-fuse a b`
fuse: bad mount point `b': No such file or directory
`$ echo $?`
0
This commit is contained in:
qiuzhiqian 2024-12-03 20:33:48 +08:00
parent 111a45fa5c
commit 8346244443

View File

@ -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));
}