adf540
Skip any empty parameters when parsing command line options.
adf540
This is required because systemd does not expand variables the same way as shell does,
adf540
we need it because of an empty SLAPD_OPTIONS in environment file.
adf540
adf540
Fedora specific patch.
adf540
adf540
Author: Jan Vcelak <jvcelak@redhat.com>
adf540
adf540
diff --git a/servers/slapd/main.c b/servers/slapd/main.c
adf540
index dac4864..83614f4 100644
adf540
--- a/servers/slapd/main.c
adf540
+++ b/servers/slapd/main.c
adf540
@@ -685,6 +685,10 @@ unhandled_option:;
adf540
 		}
adf540
 	}
adf540
 
adf540
+	/* skip empty parameters */
adf540
+	while ( optind < argc && *argv[optind] == '\0' )
adf540
+		optind += 1;
adf540
+
adf540
 	if ( optind != argc )
adf540
 		goto unhandled_option;
adf540