version 1.7, 2006/03/31 10:20:05
|
version 1.7.2.7, 2010/04/13 20:23:21
|
Line 1
|
Line 1
|
|
/* $OpenLDAP: pkg/ldap/servers/slapd/slaptest.c,v 1.7.2.6 2009/01/22 00:01:03 kurt Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 2004-2006 The OpenLDAP Foundation. |
* Copyright 2004-2010 The OpenLDAP Foundation. |
* Portions Copyright 2004 Pierangelo Masarati. |
* Portions Copyright 2004 Pierangelo Masarati. |
* All rights reserved. |
* All rights reserved. |
* |
* |
Line 45 test_file( const char *fname, const char
|
Line 46 test_file( const char *fname, const char
|
|
|
switch ( stat( fname, &st ) ) { |
switch ( stat( fname, &st ) ) { |
case 0: |
case 0: |
if ( !( st.st_mode & S_IWUSR ) ) { |
if ( !( st.st_mode & S_IWRITE ) ) { |
Debug( LDAP_DEBUG_ANY, "%s file " |
Debug( LDAP_DEBUG_ANY, "%s file " |
"\"%s\" exists, but user does not have access\n", |
"\"%s\" exists, but user does not have access\n", |
ftype, fname, 0 ); |
ftype, fname, 0 ); |
Line 104 slaptest( int argc, char **argv )
|
Line 105 slaptest( int argc, char **argv )
|
} |
} |
} |
} |
|
|
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; |
return rc; |
} |
} |