Skip to content

Commit 5dd032a

Browse files
committed
Return the correct failure exit code (closes #208)
1 parent da81681 commit 5dd032a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ int main(int argc, char **argv)
3232
*/
3333
char **fuse_argv = NULL;
3434
int fuse_argc = 0;
35+
int res = 0;
3536
/*
3637
* These are the combined argument with the config file
3738
*/
@@ -118,7 +119,7 @@ activate Sonic mode.\n");
118119
}
119120

120121
fuse_start:
121-
fuse_local_init(fuse_argc, fuse_argv);
122+
res = fuse_local_init(fuse_argc, fuse_argv);
122123

123124
for (int i = 0; i < all_argc; i++) {
124125
FREE(all_argv[i]);
@@ -132,7 +133,7 @@ activate Sonic mode.\n");
132133

133134
FREE(config_path);
134135

135-
return 0;
136+
return res;
136137
}
137138

138139
static char *get_XDG_CONFIG_HOME(void)

0 commit comments

Comments
 (0)