[Date Prev][Date Next] [Chronological] [Thread] [Top]

"-l" option to slapd doesn't work (ITS#145)



Full_Name: Pavel Andreev
Version: 1.2.1
OS: FreeBSD 3.1-STABLE
URL: 
Submission from: (NULL) (194.24.240.1)


in servers/slapd/main.c, the options list passed to getopt() doesn't contain the

"l" option. a possible fix could be:

--- main.c.orig Wed Apr 28 11:43:08 1999
+++ main.c      Wed Apr 28 11:45:24 1999
@@ -73,6 +73,9 @@
        char    *serverName;
 #ifdef LOG_LOCAL4
        int     syslogUser = DEFAULT_SYSLOG_USER;
+       char    *optstring = "d:f:ip:s:ul:";
+#else
+       char    *optstring = "d:f:ip:s:u";
 #endif
 
        configfile = SLAPD_DEFAULT_CONFIGFILE;
@@ -80,7 +83,7 @@
        g_argc = argc;
        g_argv = argv;
 
-       while ( (i = getopt( argc, argv, "d:f:ip:s:u" )) != EOF ) {
+       while ( (i = getopt( argc, argv, optstring )) != EOF ) {
                switch ( i ) {
 #ifdef LDAP_DEBUG
                case 'd':       /* turn on debugging */