projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
111a45f
)
rofiles-fuse: Fixed the problem that when fuse execution fails, the command returns...
author
qiuzhiqian
<xiamengliang@gmail.com>
Tue, 3 Dec 2024 12:33:48 +0000
(20:33 +0800)
committer
qiuzhiqian
<xiamengliang@gmail.com>
Tue, 3 Dec 2024 12:38:35 +0000
(20:38 +0800)
testcase:
`$ sudo rofiles-fuse a b`
fuse: bad mount point `b': No such file or directory
`$ echo $?`
0
src/rofiles-fuse/main.c
patch
|
blob
|
history
diff --git
a/src/rofiles-fuse/main.c
b/src/rofiles-fuse/main.c
index 0c267ea9b1dd410bd36a06c765c80982906b3c46..abf355e5404d4f808566e9b0d99d670662156173 100644
(file)
--- 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));
}