]> git.sur5r.net Git - openldap/commitdiff
further improvement...
authorPierangelo Masarati <ando@openldap.org>
Fri, 16 Apr 2004 19:10:09 +0000 (19:10 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 16 Apr 2004 19:10:09 +0000 (19:10 +0000)
servers/slapd/main.c

index a09c61dc17d12f055d67cd6fc86be8d015a28dc0..56267449fd3fd3e148e1e7086e24e82e65438647 100644 (file)
@@ -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] );