diff options
author | Jeremy Allison <jra@samba.org> | 2009-11-05 17:12:11 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-11-05 17:12:11 -0800 |
commit | 2f09516a6be67d3e51ffc611ae2daa3210f07cd8 (patch) | |
tree | 20e7a39a11d302c0c0e058bb66e93fcc63c07edd /source3/smbd | |
parent | 7f9fe127ba31e6dd064d090d5ffc8eeb377627ab (diff) | |
download | samba-2f09516a6be67d3e51ffc611ae2daa3210f07cd8.tar.gz samba-2f09516a6be67d3e51ffc611ae2daa3210f07cd8.tar.bz2 samba-2f09516a6be67d3e51ffc611ae2daa3210f07cd8.zip |
Fix explicit set of write time on close.
Jeremy.
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/close.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c index c1623ce290..0f1bd90dde 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -299,7 +299,11 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp, DEBUG(10,("close_remove_share_mode: update_write_time_on_close " "set for file %s\n", fsp_str_dbg(fsp))); - set_close_write_time(lck, fsp, timespec_current()); + if (null_timespec(fsp->close_write_time)) { + set_close_write_time(lck, fsp, timespec_current()); + } else { + set_close_write_time(lck, fsp, fsp->close_write_time); + } } if (!del_share_mode(lck, fsp)) { |