d7566f5f5a
* client: Fix exit codes for /help and similar option Currently, non-zero exit code is returned for /version, /buildconfig, /help, /monitor-list, /kbd-list and /kbd-lang-list command-line options for several clients. This is against conventions because 0 is usually returned in such cases. Also, there is potentially another problem that the returned codes overflow on UNIX systems (where the exit code is a number between 0 and 255). Let's fix the clients to return 0 in the mentioned cases to honor conventions and 1 for the command-line parsing errors (or -1 for clients who already use that value). Fixes: https://github.com/FreeRDP/FreeRDP/issues/6686 * Refactored freerdp_client_settings_command_line_status_print_ex Now returns 0 if help or version information was requested. * Do not eliminate original error status. Co-authored-by: akallabeth <akallabeth@posteo.net> |
||
---|---|---|
.. | ||
cli | ||
resource | ||
CMakeLists.txt | ||
FreeRDP.ico | ||
ModuleOptions.cmake | ||
resource.h | ||
wf_channels.c | ||
wf_channels.h | ||
wf_client.c | ||
wf_client.h | ||
wf_cliprdr.c | ||
wf_cliprdr.h | ||
wf_event.c | ||
wf_event.h | ||
wf_floatbar.c | ||
wf_floatbar.h | ||
wf_gdi.c | ||
wf_gdi.h | ||
wf_graphics.c | ||
wf_graphics.h | ||
wf_rail.c | ||
wf_rail.h | ||
wfreerdp.rc |