Blame SOURCES/openldap-fedora-systemd.patch

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