diff options
author | Koichiro IWAO <meta@vmeta.jp> | 2018-04-09 18:01:28 +0900 |
---|---|---|
committer | Koichiro IWAO <meta@vmeta.jp> | 2018-04-10 13:07:40 +0900 |
commit | 48aafc1866131c2c4157f26c956aea622b15531b (patch) | |
tree | eb2595f1543ec915245ae945dad706449866ced5 | |
parent | 37d5430123b677b94f0bdaaa6ec1aee3cf50788b (diff) | |
download | xrdp-proprietary-48aafc1866131c2c4157f26c956aea622b15531b.tar.gz xrdp-proprietary-48aafc1866131c2c4157f26c956aea622b15531b.zip |
xrdp: xrdp should exit with error code when unknown CLI option given
-rw-r--r-- | xrdp/xrdp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xrdp/xrdp.c b/xrdp/xrdp.c index 65bd40a0..437bd825 100644 --- a/xrdp/xrdp.c +++ b/xrdp/xrdp.c @@ -397,7 +397,7 @@ main(int argc, char **argv) g_writeln("xrdp -h for help"); g_writeln("%s", ""); g_deinit(); - g_exit(0); + g_exit(1); } g_snprintf(pid_file, 255, "%s/xrdp.pid", XRDP_PID_PATH); |