FreeRDP/client
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
..
Android ptbr translation 2021-01-02 11:20:55 +01:00
common client: Fix exit codes for /help and similar option (#6741) 2021-01-22 09:44:55 +01:00
iOS Spelling fixes for iOS strings 2020-04-23 08:01:07 +02:00
Mac Merge pull request #6521 from akallabeth/mac_fixes 2020-10-28 09:55:20 +01:00
Sample client: Fix exit codes for /help and similar option (#6741) 2021-01-22 09:44:55 +01:00
Wayland client: Fix exit codes for /help and similar option (#6741) 2021-01-22 09:44:55 +01:00
Windows client: Fix exit codes for /help and similar option (#6741) 2021-01-22 09:44:55 +01:00
X11 client: Fix exit codes for /help and similar option (#6741) 2021-01-22 09:44:55 +01:00
.gitignore Removed DirectFB client as it is unmaintained 2018-11-22 14:40:19 +01:00
CMakeLists.txt Removed DirectFB client as it is unmaintained 2018-11-22 14:40:19 +01:00
freerdp-client.pc.in Include major version number in library names 2017-01-16 11:11:58 +01:00
FreeRDP-ClientConfig.cmake.in appropriate names in server & client cmake exports 2016-02-03 13:37:35 +01:00