[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Y2K patch for slapd -- modify/create timestamps
This minor patch clears a few 2-digit year references in slapd, to fix the
modifytime and createtime automatic attributes.
=============
Alan Sparks, IS Engineering Support
<asparks@nss.harris.com>
Harris Communications, Camarillo CA (805) 389-2430
===== THIS PATCH APPLIES TO THE servers/slapd DIRECTORY ========
*** add.c.orig Mon Oct 5 11:57:40 1998
--- add.c Mon Oct 5 11:58:09 1998
***************
*** 183,189 ****
pthread_mutex_lock( ¤ttime_mutex );
ltm = localtime( ¤ttime );
! strftime( buf, sizeof(buf), "%y%m%d%H%M%SZ", ltm );
pthread_mutex_unlock( ¤ttime_mutex );
bv.bv_val = buf;
--- 183,189 ----
pthread_mutex_lock( ¤ttime_mutex );
ltm = localtime( ¤ttime );
! strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
pthread_mutex_unlock( ¤ttime_mutex );
bv.bv_val = buf;
*** modify.c.orig Mon Oct 5 11:56:08 1998
--- modify.c Mon Oct 5 11:56:44 1998
***************
*** 252,258 ****
pthread_mutex_lock( ¤ttime_mutex );
ltm = localtime( ¤ttime );
! strftime( buf, sizeof(buf), "%y%m%d%H%M%SZ", ltm );
pthread_mutex_unlock( ¤ttime_mutex );
bv.bv_val = buf;
bv.bv_len = strlen( bv.bv_val );
--- 252,258 ----
pthread_mutex_lock( ¤ttime_mutex );
ltm = localtime( ¤ttime );
! strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
pthread_mutex_unlock( ¤ttime_mutex );
bv.bv_val = buf;
bv.bv_len = strlen( bv.bv_val );
*** monitor.c.orig Mon Oct 5 11:57:51 1998
--- monitor.c Mon Oct 5 11:58:34 1998
***************
*** 92,98 ****
}
pthread_mutex_lock( ¤ttime_mutex );
ltm = localtime( &c[i].c_starttime );
! strftime( buf2, sizeof(buf2), "%y%m%d%H%M%SZ", ltm );
pthread_mutex_unlock( ¤ttime_mutex );
pthread_mutex_lock( &c[i].c_dnmutex );
--- 92,98 ----
}
pthread_mutex_lock( ¤ttime_mutex );
ltm = localtime( &c[i].c_starttime );
! strftime( buf2, sizeof(buf2), "%Y%m%d%H%M%SZ", ltm );
pthread_mutex_unlock( ¤ttime_mutex );
pthread_mutex_lock( &c[i].c_dnmutex );
***************
*** 156,162 ****
pthread_mutex_lock( ¤ttime_mutex );
ltm = localtime( ¤ttime );
! strftime( buf, sizeof(buf), "%y%m%d%H%M%SZ", ltm );
pthread_mutex_unlock( ¤ttime_mutex );
val.bv_val = buf;
val.bv_len = strlen( buf );
--- 156,162 ----
pthread_mutex_lock( ¤ttime_mutex );
ltm = localtime( ¤ttime );
! strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
pthread_mutex_unlock( ¤ttime_mutex );
val.bv_val = buf;
val.bv_len = strlen( buf );
***************
*** 164,170 ****
pthread_mutex_lock( ¤ttime_mutex );
ltm = localtime( &starttime );
! strftime( buf, sizeof(buf), "%y%m%d%H%M%SZ", ltm );
pthread_mutex_unlock( ¤ttime_mutex );
val.bv_val = buf;
val.bv_len = strlen( buf );
--- 164,170 ----
pthread_mutex_lock( ¤ttime_mutex );
ltm = localtime( &starttime );
! strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
pthread_mutex_unlock( ¤ttime_mutex );
val.bv_val = buf;
val.bv_len = strlen( buf );