[SCM] Samba Shared Repository - branch v3-6-test updated
Jeremy Allison
jra at samba.org
Fri Nov 19 18:23:50 MST 2010
The branch, v3-6-test has been updated
via 9ae818d switch from mtime to ctime which is more reliable if files can be accessed outside samba as well
from 9b0fb1c Move the uglyness of #ifdef REALPATH_TAKES_NULL into the vfs_default module, change the signature of VFS_REALPATH to always return a malloc'ed string.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test
- Log -----------------------------------------------------------------
commit 9ae818dbf5cdad8dadcecad7281194874c06d9fe
Author: olivier <olivier at virtscano.fakenet>
Date: Wed Nov 10 17:48:06 2010 +0100
switch from mtime to ctime which is more reliable if files can be accessed outside samba as well
-----------------------------------------------------------------------
Summary of changes:
source3/modules/vfs_scannedonly.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/modules/vfs_scannedonly.c b/source3/modules/vfs_scannedonly.c
index ab5a7f4..123bf65 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;
--
Samba Shared Repository
More information about the samba-cvs
mailing list