diff options
author | Jeremy Allison <jra@samba.org> | 2002-01-03 20:49:06 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-01-03 20:49:06 +0000 |
commit | 41dd759a50c53504efcd26771a265f34f20a1445 (patch) | |
tree | 11934b5c0e1f7c6be95a756c8af33790bcee91dc /source3 | |
parent | 791433434eeca62e989f35087a33156032b90dd6 (diff) | |
download | samba-41dd759a50c53504efcd26771a265f34f20a1445.tar.gz samba-41dd759a50c53504efcd26771a265f34f20a1445.tar.bz2 samba-41dd759a50c53504efcd26771a265f34f20a1445.zip |
Ensure modtime is set correctly on destination files in copy command.
Jeremy.
(This used to be commit fb1ab02553e01df0464f0df3eea7ae6a66b4104b)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/reply.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 12834e63a7..0e7eca3ac2 100644 --- 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. |