svn commit: samba r3178 - in branches/SAMBA_4_0/source/ntvfs/posix: .

tridge at samba.org tridge at samba.org
Mon Oct 25 01:56:01 GMT 2004


Author: tridge
Date: 2004-10-25 01:56:01 +0000 (Mon, 25 Oct 2004)
New Revision: 3178

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/ntvfs/posix&rev=3178&nolog=1

Log:
honor the write_time on pvfs_close()


Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c	2004-10-25 01:55:38 UTC (rev 3177)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c	2004-10-25 01:56:01 UTC (rev 3178)
@@ -605,6 +605,7 @@
 	struct pvfs_state *pvfs = ntvfs->private_data;
 	struct pvfs_file *f;
 	NTSTATUS status;
+	struct utimbuf unix_times;
 
 	if (io->generic.level != RAW_CLOSE_CLOSE) {
 		return ntvfs_map_close(req, io, ntvfs);
@@ -615,6 +616,10 @@
 		return NT_STATUS_INVALID_HANDLE;
 	}
 
+	unix_times.actime = 0;
+	unix_times.modtime = io->close.in.write_time;
+	utime(f->name->full_name, &unix_times);
+	
 	if (f->fd != -1 && 
 	    close(f->fd) == -1) {
 		status = pvfs_map_errno(pvfs, errno);



More information about the samba-cvs mailing list