FreeRDP/client/Wayland
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
..
CMakeLists.txt Added image scaling api for software drawing. 2019-05-07 08:56:29 +02:00
wlf_channels.c Made CHANNEL_TSMF optional and deprecated. 2020-02-26 13:56:43 +01:00
wlf_channels.h Made CHANNEL_TSMF optional and deprecated. 2020-02-26 13:56:43 +01:00
wlf_cliprdr.c Added clipboard CB_HUGE_FILE_SUPPORT_ENABLED flag 2020-09-29 09:03:49 +02:00
wlf_cliprdr.h Implemented wayland clipboard. 2019-01-23 15:56:11 +01:00
wlf_disp.c uwac, wlfreerdp: corrected API for UwacOutput and added monitor listing 2020-04-21 08:12:31 +02:00
wlf_disp.h uwac, wlfreerdp: corrected API for UwacOutput and added monitor listing 2020-04-21 08:12:31 +02:00
wlf_input.c wlfreerdp: Fix array overrun 2020-06-04 07:55:12 +02:00
wlf_input.h Adds touch support to wlfreerdp 2020-03-27 14:16:18 +01:00
wlf_pointer.c Reformatted to new style 2019-11-07 10:53:54 +01:00
wlf_pointer.h Added mouse cursor callback stubs. 2019-01-29 09:34:30 +01:00
wlfreerdp.1.in Fix warning in man pages 2017-08-03 08:41:50 +02:00
wlfreerdp.c client: Fix exit codes for /help and similar option (#6741) 2021-01-22 09:44:55 +01:00
wlfreerdp.h Lock wayland buffer updates 2020-06-15 15:49:21 +02:00