]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-passwd/config.c
Import unprotected strtok fix from -devel. Yes, you have to edit 8 files
[openldap] / servers / slapd / back-passwd / config.c
index 5a26ff0fb61e6a401c5fb522ef8ca5d45815f1a7..3ed61fa9e73045f9abdcab854d8db1283ad468f9 100644 (file)
@@ -1,13 +1,16 @@
 /* config.c - passwd backend configuration file routine */
 
-#include <stdio.h>
-#include <string.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <sys/socket.h>
 #include "portable.h"
+
+#include <stdio.h>
+
+#include <ac/socket.h>
+#include <ac/string.h>
+#include <ac/time.h>
+
 #include "slap.h"
 
+void
 passwd_back_config(
     Backend    *be,
     char       *fname,
@@ -25,7 +28,7 @@ passwd_back_config(
                            fname, lineno );
                        exit( 1 );
                }
-               be->be_private = strdup( argv[1] );
+               be->be_private = ch_strdup( argv[1] );
 #else /* HAVE_SETPWFILE */
                fprintf( stderr,
     "%s: line %d: ignoring \"file\" option (not supported on this platform)\n",