FreeRDP/client/common
Ondrej Holy d7566f5f5a
client: Fix exit codes for /help and similar option (#6741)
* 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>
2021-01-22 09:44:55 +01:00
..
test Made CHANNEL_TSMF optional and deprecated. 2020-02-26 13:56:43 +01:00
client.c Allow autoreconnect for ERRINFO_GRAPHICS_SUBSYSTEM_FAILED 2020-11-27 09:10:41 +01:00
CMakeLists.txt fix [client channels]: move exported API calls to client/common 2020-06-17 12:59:41 +02:00
cmdline.c client: Fix exit codes for /help and similar option (#6741) 2021-01-22 09:44:55 +01:00
cmdline.h Add support for -grab-mouse, to prevent the client from moving the user's pointer 2020-11-20 09:40:00 +01:00
compatibility.c Reformatted to new style 2019-11-07 10:53:54 +01:00
compatibility.h Reformatted to new style 2019-11-07 10:53:54 +01:00
file.c Added support for file:// urls for rdp files 2020-12-23 12:29:37 +01:00
geometry.c fix [client channels]: move exported API calls to client/common 2020-06-17 12:59:41 +02:00