]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/main.c
Add debug msg if adding entry to logDB fails
[openldap] / servers / slapd / main.c
index 2dc753009c75206d8b6cce9f1385c708406025f5..0a053c3ee63c480af76da15a66482d3843c03a0b 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2013 The OpenLDAP Foundation.
+ * Copyright 1998-2017 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -757,6 +757,11 @@ unhandled_option:;
                        rc = 1;
                        goto stop;
                }
+               if ( chdir( "/" ) ) {
+                       perror("chdir");
+                       rc = 1;
+                       goto stop;
+               }
        }
 #endif