Diff for /servers/slapd/modify.c between versions 1.2 and 1.2.10.4

version 1.2, 1998/08/18 23:30:57 version 1.2.10.4, 1998/10/21 21:49:46
Line 10 Line 10
  * is provided ``as is'' without express or implied warranty.   * is provided ``as is'' without express or implied warranty.
  */   */
   
   #include "portable.h"
   
 #include <stdio.h>  #include <stdio.h>
 #include <string.h>  
 #include <time.h>  #include <ac/socket.h>
 #include <string.h>  #include <ac/string.h>
 #include <sys/types.h>  #include <ac/time.h>
 #include <sys/socket.h>  
 #include "slap.h"  #include "slap.h"
   
 extern Backend  *select_backend();  extern Backend  *select_backend();
Line 200  modlist_free( Line 202  modlist_free(
 static void  static void
 add_lastmods( Operation *op, LDAPMod **mods )  add_lastmods( Operation *op, LDAPMod **mods )
 {  {
         char            buf[20];          char            buf[22];
         struct berval   bv;          struct berval   bv;
         struct berval   *bvals[2];          struct berval   *bvals[2];
         LDAPMod         **m;          LDAPMod         **m;
Line 251  add_lastmods( Operation *op, LDAPMod **m Line 253  add_lastmods( Operation *op, LDAPMod **m
         *mods = tmp;          *mods = tmp;
   
         pthread_mutex_lock( &currenttime_mutex );          pthread_mutex_lock( &currenttime_mutex );
         ltm = localtime( &currenttime );  #ifndef LDAP_LOCALTIME
         strftime( buf, sizeof(buf), "%y%m%d%H%M%SZ", ltm );          ltm = gmtime( &currenttime );
           strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
   #else
           ltm = localtime( &currenttime );
           strftime( buf, sizeof(buf), "%y%m%d%H%M%SZ", ltm );
   #endif
         pthread_mutex_unlock( &currenttime_mutex );          pthread_mutex_unlock( &currenttime_mutex );
         bv.bv_val = buf;          bv.bv_val = buf;
         bv.bv_len = strlen( bv.bv_val );          bv.bv_len = strlen( bv.bv_val );

Removed from v.1.2  
changed lines
  Added in v.1.2.10.4


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