diff options
author | Jeremy Allison <jra@samba.org> | 2009-11-05 16:20:11 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-11-05 16:20:11 -0800 |
commit | 7f9fe127ba31e6dd064d090d5ffc8eeb377627ab (patch) | |
tree | 6b2c63f2d022c82c14ea517bac06e49a605b4f5e /source3/smbd/nttrans.c | |
parent | c2df97f57ce205935c37cd5a90cfeddb129cd92b (diff) | |
download | samba-7f9fe127ba31e6dd064d090d5ffc8eeb377627ab.tar.gz samba-7f9fe127ba31e6dd064d090d5ffc8eeb377627ab.tar.xz samba-7f9fe127ba31e6dd064d090d5ffc8eeb377627ab.zip |
Get closer to an accurate model of Windows timestamp changes.
"Normal" non truncate writes always cause the timestamp to
be set on close. Once a close is done on a handle this can
reset the sticky write time to current time also.
Updated smbtorture4 confirms this.
Jeremy.
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r-- | source3/smbd/nttrans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 66102fa96cc..a1e7889119e 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(fsp2, smb_fname_src->st.st_ex_mtime); + set_close_write_time(NULL, fsp2, smb_fname_src->st.st_ex_mtime); status = close_file(NULL, fsp2, NORMAL_CLOSE); |