From: Pierangelo Masarati Date: Fri, 16 Apr 2004 19:10:09 +0000 (+0000) Subject: further improvement... X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~501 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=71921f219ce184a9952760e4df09a06256423040;p=openldap further improvement... --- diff --git a/servers/slapd/main.c b/servers/slapd/main.c index a09c61dc17..56267449fd 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -198,6 +198,7 @@ int main( int argc, char **argv ) leakfile = stderr; } #endif + char *serverNamePrefix = ""; sl_mem_init(); @@ -210,6 +211,8 @@ int main( int argc, char **argv ) MAIN_RETURN(rc); } } + + goto unrecognized_server_name; } #ifdef HAVE_NT_SERVICE_MANAGER @@ -393,6 +396,11 @@ int main( int argc, char **argv ) MAIN_RETURN(rc); } } + serverName = optarg; + serverNamePrefix = "slap"; +unrecognized_server_name:; + fprintf( stderr, "program name \"%s%s\" unrecognized; " + "aborting...\n", serverNamePrefix, serverName ); /* FALLTHRU */ default: usage( argv[0] );