Diff for /servers/slapd/slaptest.c between versions 1.7 and 1.7.2.8

version 1.7, 2006/03/31 10:20:05 version 1.7.2.8, 2011/01/04 23:50:26
Line 1 Line 1
   /* $OpenLDAP: pkg/ldap/servers/slapd/slaptest.c,v 1.7.2.7 2010/04/13 20:23:21 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-2011 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;
 }  }

Removed from v.1.7  
changed lines
  Added in v.1.7.2.8


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org