[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3008-g4e06c71

Jeremy Allison jra at samba.org
Wed Sep 10 21:54:52 GMT 2008


The branch, v3-2-test has been updated
       via  4e06c71a12654d78c9a94fb023e372920bf7618b (commit)
      from  738729cad0b88a2f453d61d38e1088003afd0a9e (commit)

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


- Log -----------------------------------------------------------------
commit 4e06c71a12654d78c9a94fb023e372920bf7618b
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Sep 10 14:52:34 2008 -0700

    When requesting UNIX info levels on findfirst/findnext, don't play games with write time,
    just return what the underlying filesystem says. Trying not to confuse UNIX apps any more than necessary.
    Jeremy.

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

Summary of changes:
 source/smbd/trans2.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 7753fad..13105dc 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -1938,6 +1938,8 @@ close_if_end = %d requires_resume_key = %d level = 0x%x, max_data_bytes = %d\n",
 			break;
 		case SMB_FIND_FILE_UNIX:
 		case SMB_FIND_FILE_UNIX_INFO2:
+			/* Always use filesystem for UNIX mtime query. */
+			ask_sharemode = false;
 			if (!lp_unix_extensions()) {
 				reply_nterror(req, NT_STATUS_INVALID_LEVEL);
 				return;
@@ -2295,6 +2297,8 @@ resume_key = %d resume name = %s continue=%d level = %d\n",
 			break;
 		case SMB_FIND_FILE_UNIX:
 		case SMB_FIND_FILE_UNIX_INFO2:
+			/* Always use filesystem for UNIX mtime query. */
+			ask_sharemode = false;
 			if (!lp_unix_extensions()) {
 				reply_nterror(req, NT_STATUS_INVALID_LEVEL);
 				return;
@@ -4132,7 +4136,7 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
 		}
 	}
 
-	if (!null_timespec(write_time_ts)) {
+	if (!null_timespec(write_time_ts) && !INFO_LEVEL_IS_UNIX(info_level)) {
 		mtime_ts = write_time_ts;
 	}
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list