Fix crash bug triggered by Excel reported by Jerry.
authorjra <jra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 12 Mar 2007 05:54:14 +0000 (05:54 +0000)
committerjra <jra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 12 Mar 2007 05:54:14 +0000 (05:54 +0000)
Bad cut-n-paste on rewrite of timestamps.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@21792 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/smbd/trans2.c

index 01956d8119048f87290e868cc671d2d17752085d..58fa4eb31b049cf25f06daddcaad508d41b6f1e1 100644 (file)
@@ -3403,7 +3403,7 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
                files_struct *fsp1 = file_find_di_first(sbuf.st_dev, sbuf.st_ino);
                if (fsp1 && !null_timespec(fsp1->pending_modtime)) {
                        /* the pending modtime overrides the current modtime */
-                       mtime_ts = fsp->pending_modtime;
+                       mtime_ts = fsp1->pending_modtime;
                }
                if (fsp1 && fsp1->initial_allocation_size) {
                        allocation_size = get_allocation_size(conn, fsp1, &sbuf);