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

version 1.2, 1998/08/18 23:30:57 version 1.2.10.2, 1998/10/20 23:24:28
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 <string.h>
 #include <time.h>  #include <time.h>
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 );          ltm = localtime( &currenttime );
         strftime( buf, sizeof(buf), "%y%m%d%H%M%SZ", ltm );  #ifdef LDAP_Y2K
           strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
   #else
           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.2


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