X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fslaptest.c;h=ca10c7a6c7e2543192b227d47926f20158c13b87;hb=eb6b2650091656bde96fbbdb87a5b8154cdc319b;hp=a1c6baba0f7b43ce7dac97ab215916ead8536f96;hpb=0af1940f3fb59fe57b2281ef253fe1341c505c2c;p=openldap diff --git a/servers/slapd/slaptest.c b/servers/slapd/slaptest.c index a1c6baba0f..ca10c7a6c7 100644 --- a/servers/slapd/slaptest.c +++ b/servers/slapd/slaptest.c @@ -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 *ftype ) 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 );