]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-shell/add.c
Cast ctype.h char arguments to unsigned char
[openldap] / servers / slapd / back-shell / add.c
index 33bd70797ff20e7cb384e716f1cf84b4ac114f5e..ba982f91589267bd0e5b30d45bb3b3ea38ec410b 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2006 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -55,7 +55,7 @@ shell_back_add(
        }
 
        if ( ! access_allowed( op, op->oq_add.rs_e,
-               entry, NULL, ACL_WRITE, NULL ) )
+               entry, NULL, ACL_WADD, NULL ) )
        {
                send_ldap_error( op, rs, LDAP_INSUFFICIENT_ACCESS, NULL );
                return -1;
@@ -71,9 +71,9 @@ shell_back_add(
        fprintf( wfp, "ADD\n" );
        fprintf( wfp, "msgid: %ld\n", (long) op->o_msgid );
        print_suffixes( wfp, op->o_bd );
-       ldap_pvt_thread_mutex_lock( &SLAPD_GLOBAL(entry2str_mutex) );
+       ldap_pvt_thread_mutex_lock( &entry2str_mutex );
        fprintf( wfp, "%s", entry2str( op->oq_add.rs_e, &len ) );
-       ldap_pvt_thread_mutex_unlock( &SLAPD_GLOBAL(entry2str_mutex) );
+       ldap_pvt_thread_mutex_unlock( &entry2str_mutex );
        fclose( wfp );
 
        /* read in the result and send it along */