The branch, v3-5-test has been updated
       via  2d24c4a switch from mtime to ctime which is more reliable if files 
can be accessed outside samba as well
      from  67235a5 Fix bug #7812 - vfs_acl_xattr/vfs_acl_tdb: ACL inheritance 
cannot be disabled

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -----------------------------------------------------------------
commit 2d24c4a056e5c54b5ef4c9112cec076ac7c08d6f
Author: olivier <oliv...@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
    
    Fix bug #7789 (change vfs_scannedonly from mtime to ctime).

-----------------------------------------------------------------------

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 12077f3..7b4b42b 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;
                }
@@ -489,8 +489,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

Reply via email to