[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-909-g6e6ec0a

Volker Lendecke vl at samba.org
Wed Dec 26 13:53:33 GMT 2007


The branch, v3-2-test has been updated
       via  6e6ec0a563f8b7e3d4618ce60e776bcce53f40c4 (commit)
      from  3fa3891f8721e9f02594cd1be2dc6b9b88692416 (commit)

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


- Log -----------------------------------------------------------------
commit 6e6ec0a563f8b7e3d4618ce60e776bcce53f40c4
Author: Volker Lendecke <vl at samba.org>
Date:   Wed Dec 26 14:18:11 2007 +0100

    We need to return the correct atime
    
    On systems with nanosecond atime we need to re-stat after messing with the fd,
    at least Solaris 10 updates atime after we stat(2)ed the file.

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

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


Changeset truncated at 500 lines:

diff --git a/source/smbd/open.c b/source/smbd/open.c
index 9428b47..f30808b 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -2667,7 +2667,12 @@ NTSTATUS create_file_unixpath(connection_struct *conn,
 		*pinfo = info;
 	}
 	if (psbuf != NULL) {
-		*psbuf = sbuf;
+		if ((fsp->fh == NULL) || (fsp->fh->fd == -1)) {
+			*psbuf = sbuf;
+		}
+		else {
+			SMB_VFS_FSTAT(fsp, fsp->fh->fd, psbuf);
+		}
 	}
 	return NT_STATUS_OK;
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list