8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00

reject -l switch in any mode besides "install"

This commit is contained in:
alexpeshkoff 2003-06-19 13:47:05 +00:00
parent 8ac4c032c9
commit 423f5b451f

View File

@ -166,7 +166,8 @@ int CLIB_ROUTINE main( int argc, char **argv)
if (sw_command == COMMAND_NONE ||
(!directory && sw_command == COMMAND_INSTALL) ||
(directory && sw_command != COMMAND_INSTALL))
(directory && sw_command != COMMAND_INSTALL) ||
(username && sw_command != COMMAND_INSTALL))
usage();
manager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);