xrdp: xrdp should exit with error code when unknown CLI option given

This commit is contained in:
Koichiro IWAO 2018-04-09 18:01:28 +09:00
parent 37d5430123
commit 48aafc1866
No known key found for this signature in database
GPG Key ID: 9F72CDBC01BF10EB

View File

@ -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);