Changeset 228 for branches/samba-3.2.x/source/modules/vfs_readonly.c
- Timestamp:
- May 26, 2009, 9:44:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/modules/vfs_readonly.c
r133 r228 65 65 66 66 if (period && period[0] && period[1]) { 67 int i; 67 68 time_t current_time = time(NULL); 68 69 time_t begin_period = get_date(period[0], ¤t_time); … … 70 71 71 72 if ((current_time >= begin_period) && (current_time <= end_period)) { 73 connection_struct *conn = handle->conn; 74 72 75 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; 73 82 } 74 83
Note:
See TracChangeset
for help on using the changeset viewer.