Ignore:
Timestamp:
May 26, 2009, 9:44:50 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/modules/vfs_readonly.c

    r133 r228  
    6565
    6666  if (period && period[0] && period[1]) {
     67    int i;
    6768    time_t current_time = time(NULL);
    6869    time_t begin_period = get_date(period[0], &current_time);
     
    7071
    7172    if ((current_time >= begin_period) && (current_time <= end_period)) {
     73      connection_struct *conn = handle->conn;
     74
    7275      handle->conn->read_only = True;
     76
     77      /* Wipe out the VUID cache. */
     78      for (i=0;i<conn->vuid_cache.entries && i< VUID_CACHE_SIZE;i++) {
     79        conn->vuid_cache.array[i].vuid = UID_FIELD_INVALID;
     80      }
     81      conn->vuid_cache.entries = 0;
    7382    }
    7483
Note: See TracChangeset for help on using the changeset viewer.