summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorolivier <olivier@virtscano.fakenet>2010-11-10 17:48:06 +0100
committerJeremy Allison <jra@samba.org>2010-11-20 03:07:03 +0100
commit817ee962770a8ec5f96775c8ff3e6c52c291129f (patch)
tree97ac399d24adc6ddc89a3fcda8d6213eef1632f1 /source3/modules
parent2b788aa6ce41c5c0a6892cb412cf40a7cbc73f2a (diff)
downloadsamba-817ee962770a8ec5f96775c8ff3e6c52c291129f.tar.gz
samba-817ee962770a8ec5f96775c8ff3e6c52c291129f.tar.bz2
samba-817ee962770a8ec5f96775c8ff3e6c52c291129f.zip
switch from mtime to ctime which is more reliable if files can be accessed outside samba as well
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Nov 20 03:07:04 CET 2010 on sn-devel-104
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_scannedonly.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/modules/vfs_scannedonly.c b/source3/modules/vfs_scannedonly.c
index ab5a7f4e6c..123bf65fd4 100644
--- a/source3/modules/vfs_scannedonly.c
+++ b/source3/modules/vfs_scannedonly.c
@@ -426,8 +426,8 @@ static bool scannedonly_allow_access(vfs_handle_struct * handle,
retval = SMB_VFS_NEXT_STAT(handle, cache_smb_fname);
}
if (retval == 0 && VALID_STAT(cache_smb_fname->st)) {
- if (timespec_is_newer(&smb_fname->st.st_ex_mtime,
- &cache_smb_fname->st.st_ex_mtime)) {
+ if (timespec_is_newer(&smb_fname->st.st_ex_ctime,
+ &cache_smb_fname->st.st_ex_ctime)) {
talloc_free(cache_smb_fname);
return true;
}
@@ -488,8 +488,8 @@ static bool scannedonly_allow_access(vfs_handle_struct * handle,
}
/* still no cachefile, or still too old, return 0 */
if (retval != 0
- || !timespec_is_newer(&smb_fname->st.st_ex_mtime,
- &cache_smb_fname->st.st_ex_mtime)) {
+ || !timespec_is_newer(&smb_fname->st.st_ex_ctime,
+ &cache_smb_fname->st.st_ex_ctime)) {
DEBUG(SCANNEDONLY_DEBUG,
("retval=%d, return 0\n",retval));
return false;