FreeRDP/client/Windows
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
..
cli client: Fix exit codes for /help and similar option (#6741) 2021-01-22 09:44:55 +01:00
resource Windows client: Suppress minimize and restore buttons in float bar when toggle-fullscreen is false, added window title to float bar, improved overall appearance with gradients, shadow and transparent icons. 2018-12-07 15:22:28 +01:00
CMakeLists.txt Add msimg32 library through CMake 2019-01-09 09:52:27 +01:00
FreeRDP.ico wfreerdp: fix icon 2013-03-19 11:11:14 -04:00
ModuleOptions.cmake freerdp: remove vendor-specific options from build system, add automatic ways of including external clients/servers 2013-09-03 20:37:04 -04:00
resource.h Reformatted to new style 2019-11-07 10:53:54 +01:00
wf_channels.c Reformatted to new style 2019-11-07 10:53:54 +01:00
wf_channels.h Reformatted to new style 2019-11-07 10:53:54 +01:00
wf_client.c Fixed call to GetKeyboardLayout 2020-12-15 11:29:51 +01:00
wf_client.h Reformatted to new style 2019-11-07 10:53:54 +01:00
wf_cliprdr.c Fixed clipboard 'called with invalid type' warning 2020-05-06 13:31:57 +02:00
wf_cliprdr.h Fixed use of reserved keywords for include guards. 2017-07-20 09:35:41 +02:00
wf_event.c Reformatted to new style 2019-11-07 10:53:54 +01:00
wf_event.h Reformatted to new style 2019-11-07 10:53:54 +01:00
wf_floatbar.c Reformatted to new style 2019-11-07 10:53:54 +01:00
wf_floatbar.h Refactored floatbar, extended command line settings. 2018-12-07 15:22:28 +01:00
wf_gdi.c Reformatted to new style 2019-11-07 10:53:54 +01:00
wf_gdi.h Reformatted to new style 2019-11-07 10:53:54 +01:00
wf_graphics.c Fixed #6121: Use correct destination color format 2020-04-28 12:40:03 +02:00
wf_graphics.h Reformatted to new style 2019-11-07 10:53:54 +01:00
wf_rail.c Fixed #6696: Implement HandshakeEx in windows client 2021-01-19 17:13:40 +01:00
wf_rail.h Fixed #6696: Implement HandshakeEx in windows client 2021-01-19 17:13:40 +01:00
wfreerdp.rc Windows client: Suppress minimize and restore buttons in float bar when toggle-fullscreen is false, added window title to float bar, improved overall appearance with gradients, shadow and transparent icons. 2018-12-07 15:22:28 +01:00