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

master
Koichiro IWAO 6 years ago
parent 37d5430123
commit 48aafc1866
No known key found for this signature in database
GPG Key ID: 9F72CDBC01BF10EB

@ -397,7 +397,7 @@ main(int argc, char **argv)
g_writeln("xrdp -h for help"); g_writeln("xrdp -h for help");
g_writeln("%s", ""); g_writeln("%s", "");
g_deinit(); g_deinit();
g_exit(0); g_exit(1);
} }
g_snprintf(pid_file, 255, "%s/xrdp.pid", XRDP_PID_PATH); g_snprintf(pid_file, 255, "%s/xrdp.pid", XRDP_PID_PATH);

Loading…
Cancel
Save