]> git.sur5r.net Git - openldap/commitdiff
Assume slapd if argv[0] is unrecognized, don't fail.
authorHoward Chu <hyc@openldap.org>
Sat, 17 Apr 2004 15:28:07 +0000 (15:28 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 17 Apr 2004 15:28:07 +0000 (15:28 +0000)
libtool creates lt-slapd for some dynamic builds...

servers/slapd/main.c

index dd0a1f691dd67533bbbc75beb5c31ee46d3fa7e0..91887448df8db77dc31acd81f6001455b05c5f52 100644 (file)
@@ -218,8 +218,6 @@ int main( int argc, char **argv )
                                MAIN_RETURN(rc);
                        }
                }
-
-               goto unrecognized_server_name;
        }
 
 #ifdef HAVE_NT_SERVICE_MANAGER
@@ -417,7 +415,6 @@ int main( int argc, char **argv )
                        /* issue error */
                        serverName = optarg;
                        serverNamePrefix = "slap";
-unrecognized_server_name:;
                        fprintf( stderr, "program name \"%s%s\" unrecognized; "
                                        "aborting...\n", serverNamePrefix, serverName );
                        /* FALLTHRU */