]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slaptest.c
don't leak callbacks if stuff cannot be registered; provide a means to dispose of...
[openldap] / servers / slapd / slaptest.c
index a1c6baba0f7b43ce7dac97ab215916ead8536f96..6ad27ba7f0836e3972f728e55b8e6e2f212c9fdf 100644 (file)
@@ -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 );