git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7914334
)
Ensure modtime is set correctly on destination files in copy command.
author
Jeremy Allison
<jra@samba.org>
Thu, 3 Jan 2002 20:49:06 +0000
(20:49 +0000)
committer
Jeremy Allison
<jra@samba.org>
Thu, 3 Jan 2002 20:49:06 +0000
(20:49 +0000)
Jeremy.
(This used to be commit
fb1ab02553e01df0464f0df3eea7ae6a66b4104b
)
source3/smbd/reply.c
patch
|
blob
|
history
diff --git
a/source3/smbd/reply.c
b/source3/smbd/reply.c
index 12834e63a72ae117af8a3a36f40a1f71433504ca..0e7eca3ac2f8bd7b3d90b02f0833a6d2497d07ca 100644
(file)
--- a/
source3/smbd/reply.c
+++ b/
source3/smbd/reply.c
@@
-3287,6
+3287,10
@@
static BOOL copy_file(char *src,char *dest1,connection_struct *conn, int ofun,
ret = vfs_transfer_file(fsp1, fsp2, src_sbuf.st_size);
close_file(fsp1,False);
+
+ /* Ensure the modtime is set correctly on the destination file. */
+ fsp2->pending_modtime = src_sbuf.st_mtime;
+
/*
* As we are opening fsp1 read-only we only expect
* an error on close on fsp2 if we are out of space.