summaryrefslogtreecommitdiff
path: root/source3/smbd/nttrans.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-11-05 17:40:01 -0800
committerJeremy Allison <jra@samba.org>2009-11-05 17:40:01 -0800
commit0551284dc08eb93ef7b2b2227a45e5ec21d482fb (patch)
tree67ed2e7b74e693bca93f1d9143b6099e25d4eccb /source3/smbd/nttrans.c
parent2f09516a6be67d3e51ffc611ae2daa3210f07cd8 (diff)
downloadsamba-0551284dc08eb93ef7b2b2227a45e5ec21d482fb.tar.gz
samba-0551284dc08eb93ef7b2b2227a45e5ec21d482fb.tar.bz2
samba-0551284dc08eb93ef7b2b2227a45e5ec21d482fb.zip
Simplify the logic - remove extraneous argument and calls to set_close_write_time().
We were treating a file time set on close as a sticky write time set, and I don't think it is. I will add a torture test later to RAW-CLOSE to confirm this. Jeremy.
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r--source3/smbd/nttrans.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index a1e7889119..66102fa96c 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -1296,7 +1296,7 @@ static NTSTATUS copy_internals(TALLOC_CTX *ctx,
close_file(NULL, fsp1, NORMAL_CLOSE);
/* Ensure the modtime is set correctly on the destination file. */
- set_close_write_time(NULL, fsp2, smb_fname_src->st.st_ex_mtime);
+ set_close_write_time(fsp2, smb_fname_src->st.st_ex_mtime);
status = close_file(NULL, fsp2, NORMAL_CLOSE);