From: qiuzhiqian Date: Tue, 3 Dec 2024 12:33:48 +0000 (+0800) Subject: rofiles-fuse: Fixed the problem that when fuse execution fails, the command returns... X-Git-Tag: archive/raspbian/2024.10-1+rpi1^2~6^2^2~4^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8346244443de4ef327b8c9638068a156d737cfcb;p=ostree.git 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 --- diff --git a/src/rofiles-fuse/main.c b/src/rofiles-fuse/main.c index 0c267ea9..abf355e5 100644 --- a/src/rofiles-fuse/main.c +++ b/src/rofiles-fuse/main.c @@ -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)); }