summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
54e91da)
fuse_main can return any non-zero value on error. In particular on
certain sorts of error such as unsupported -o options it returns 1
(not -1).
Therefore make sure any non-zero return is turned into EXIT_FAILURE.
(Thanks Pádraig Brady)
guestfs_close (g);
free_dir_caches ();
guestfs_close (g);
free_dir_caches ();
- exit (r == -1 ? 1 : 0);
+ exit (r == 0 ? EXIT_SUCCESS : EXIT_FAILURE);