misc: fix more strutils related exit codes
Found by grep: grep -l "\bEXIT_\|exit *( *[0-9][0-9] *)\|strutils\.h" $(grep -L \ strutils_set_exitcode $(git grep -l "_EX_\|FINDFS_\|BLKID_EXIT\|EX_USAGE" -- "*.c")) The Command shows also some false positives (fstrim.c, context_mount.c, ...) Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
parent
9c8b9fbacc
commit
0b2b32e8a7
|
@ -660,6 +660,8 @@ int main(int argc, char **argv)
|
|||
textdomain(PACKAGE);
|
||||
atexit(close_stdout);
|
||||
|
||||
strutils_set_exitcode(FSCK_EX_USAGE);
|
||||
|
||||
/* command line options */
|
||||
while ((c = getopt_long(argc, argv, "ayvVhb:", longopts, NULL)) != EOF)
|
||||
switch (c) {
|
||||
|
|
|
@ -1293,6 +1293,8 @@ main(int argc, char **argv) {
|
|||
textdomain(PACKAGE);
|
||||
atexit(close_stdout);
|
||||
|
||||
strutils_set_exitcode(FSCK_EX_USAGE);
|
||||
|
||||
if (INODE_SIZE * MINIX_INODES_PER_BLOCK != MINIX_BLOCK_SIZE)
|
||||
die(_("bad inode size"));
|
||||
if (INODE2_SIZE * MINIX2_INODES_PER_BLOCK != MINIX_BLOCK_SIZE)
|
||||
|
|
|
@ -717,6 +717,8 @@ int main(int argc, char **argv)
|
|||
textdomain(PACKAGE);
|
||||
atexit(close_stdout);
|
||||
|
||||
strutils_set_exitcode(MKFS_EX_USAGE);
|
||||
|
||||
/* command line options */
|
||||
while ((c = getopt(argc, argv, "hb:Ee:i:n:N:psVvz")) != EOF) {
|
||||
switch (c) {
|
||||
|
|
|
@ -758,6 +758,8 @@ int main(int argc, char ** argv)
|
|||
textdomain(PACKAGE);
|
||||
atexit(close_stdout);
|
||||
|
||||
strutils_set_exitcode(MKFS_EX_USAGE);
|
||||
|
||||
while ((i = getopt_long(argc, argv, "1v23n:i:cl:Vh", longopts, NULL)) != -1)
|
||||
switch (i) {
|
||||
case '1':
|
||||
|
|
|
@ -170,6 +170,8 @@ int main(int argc, char *argv[])
|
|||
textdomain(PACKAGE);
|
||||
atexit(close_stdout);
|
||||
|
||||
strutils_set_exitcode(EX_USAGE);
|
||||
|
||||
if (argc < 2)
|
||||
usage(EX_USAGE);
|
||||
|
||||
|
|
|
@ -1326,6 +1326,8 @@ int main(int argc, char **argv)
|
|||
};
|
||||
int excl_st[ARRAY_SIZE(excl)] = UL_EXCL_STATUS_INIT;
|
||||
|
||||
strutils_set_exitcode(EX_USAGE);
|
||||
|
||||
/* Remember what time we were invoked */
|
||||
gettimeofday(&startup_time, NULL);
|
||||
|
||||
|
|
|
@ -534,6 +534,8 @@ int main(int argc, char **argv)
|
|||
textdomain(PACKAGE);
|
||||
atexit(close_stdout);
|
||||
|
||||
strutils_set_exitcode(MNT_EX_USAGE);
|
||||
|
||||
mnt_init_debug(0);
|
||||
cxt = mnt_new_context();
|
||||
if (!cxt)
|
||||
|
|
Loading…
Reference in New Issue