summaryrefslogtreecommitdiffstats
path: root/source/smbd/trans2.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-03-01 04:35:31 +0000
committerGerald Carter <jerry@samba.org>2007-03-01 04:35:31 +0000
commit03984b463596cd654bef952d024b96252909c7c7 (patch)
tree0a278d3c6c5f7cc395772bebc39c8930c134805c /source/smbd/trans2.c
parentfec07a7bb897b3c3723d5cb047daa86b45e5e9fd (diff)
downloadsamba-03984b463596cd654bef952d024b96252909c7c7.tar.gz
samba-03984b463596cd654bef952d024b96252909c7c7.tar.xz
samba-03984b463596cd654bef952d024b96252909c7c7.zip
r21619: * Pickup latest changes from SAMBA_3_0_25 (this will be it
for 3.0.25pre1 unless something blows up) * Update release notes some more
Diffstat (limited to 'source/smbd/trans2.c')
-rw-r--r--source/smbd/trans2.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 584345a906a..5bbd618231b 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -2882,7 +2882,7 @@ static char *store_file_unix_basic(connection_struct *conn,
SOFF_T(pdata,0,get_allocation_size(conn,fsp,psbuf)); /* Number of bytes used on disk - 64 Bit */
pdata += 8;
- put_long_date_timespec(pdata,get_ctimespec(psbuf)); /* Creation Time 64 Bit */
+ put_long_date_timespec(pdata,get_ctimespec(psbuf)); /* Change Time 64 Bit */
put_long_date_timespec(pdata+8,get_atimespec(psbuf)); /* Last access time 64 Bit */
put_long_date_timespec(pdata+16,get_mtimespec(psbuf)); /* Last modification time 64 Bit */
pdata += 24;
@@ -4805,6 +4805,16 @@ size = %.0f, uid = %u, gid = %u, raw perms = 0%o\n",
delete_on_fail = True;
}
+#if 1
+ /* Horrible backwards compatibility hack as an old server bug
+ * allowed a CIFS client bug to remain unnoticed :-(. JRA.
+ * */
+
+ if (!size) {
+ size = get_file_size(*psbuf);
+ }
+#endif
+
/*
* Deal with the UNIX specific mode set.
*/