forked from osmocom/wireshark
Fix exit code for non-existent file.
The patched command line utilities have been aligned to tshark behavior. Change-Id: I0cb764b37792e882e182681124341893b3958c59 Reviewed-on: https://code.wireshark.org/review/19580 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
6e29d874f8
commit
ebd3dc6907
|
@ -1720,7 +1720,7 @@ main(int argc, char *argv[])
|
|||
fprintf(stderr, "(%s)\n", err_info);
|
||||
g_free(err_info);
|
||||
}
|
||||
overall_error_status = 1; /* remember that an error has occurred */
|
||||
overall_error_status = 2; /* remember that an error has occurred */
|
||||
if (!continue_after_wtap_open_offline_failure)
|
||||
goto exit;
|
||||
}
|
||||
|
|
|
@ -210,7 +210,7 @@ main(int argc, char *argv[])
|
|||
fprintf(stderr, "(%s)\n", err_info);
|
||||
g_free(err_info);
|
||||
}
|
||||
overall_error_status = 1; /* remember that an error has occurred */
|
||||
overall_error_status = 2; /* remember that an error has occurred */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -295,7 +295,7 @@ main(int argc, char *argv[])
|
|||
fprintf(stderr, "(%s)\n", err_info);
|
||||
g_free(err_info);
|
||||
}
|
||||
exit(1);
|
||||
exit(2);
|
||||
}
|
||||
DEBUG_PRINT("file_type_subtype is %d\n", wtap_file_type_subtype(wth));
|
||||
|
||||
|
|
Loading…
Reference in New Issue