+/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 2004-2007 The OpenLDAP Foundation.
+ * Copyright 2004-2011 The OpenLDAP Foundation.
* Portions Copyright 2004 Pierangelo Masarati.
* All rights reserved.
*
#include "slapcommon.h"
+#ifndef S_IWRITE
+#define S_IWRITE S_IWUSR
+#endif
+
static int
test_file( const char *fname, const char *ftype )
{
}
}
- fprintf( stderr, "config file testing succeeded\n");
+ if ( !quiet ) {
+ fprintf( stderr, "config file testing succeeded\n");
+ }
- slap_tool_destroy();
+ if ( slap_tool_destroy())
+ rc = EXIT_FAILURE;
return rc;
}