--- servers/slapd/slaptest.c 2006/03/31 10:20:05 1.7 +++ servers/slapd/slaptest.c 2007/02/13 20:22:22 1.7.2.2 @@ -1,6 +1,6 @@ /* This work is part of OpenLDAP Software . * - * Copyright 2004-2006 The OpenLDAP Foundation. + * Copyright 2004-2007 The OpenLDAP Foundation. * Portions Copyright 2004 Pierangelo Masarati. * All rights reserved. * @@ -45,7 +45,7 @@ test_file( const char *fname, const char switch ( stat( fname, &st ) ) { case 0: - if ( !( st.st_mode & S_IWUSR ) ) { + if ( !( st.st_mode & S_IWRITE ) ) { Debug( LDAP_DEBUG_ANY, "%s file " "\"%s\" exists, but user does not have access\n", ftype, fname, 0 );