diff options
author | Jeremy Allison <jra@samba.org> | 2009-11-05 22:58:12 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-11-05 22:58:12 -0800 |
commit | c99dd5c23e25f4c1cc34f223f563915c0aa4bb6f (patch) | |
tree | 9f877bf43ff345cb5162c25cfbcc97ed18406fc4 /source3/smbd/fileio.c | |
parent | 977fa4e37741d613df1583b7e0e83c1f0a6ce38c (diff) | |
download | samba-c99dd5c23e25f4c1cc34f223f563915c0aa4bb6f.tar.gz samba-c99dd5c23e25f4c1cc34f223f563915c0aa4bb6f.tar.bz2 samba-c99dd5c23e25f4c1cc34f223f563915c0aa4bb6f.zip |
Got the logic simplification worked out so we still pass
BASE-DELAYWRITE and also RAW-CLOSE.
Jeremy.
Diffstat (limited to 'source3/smbd/fileio.c')
-rw-r--r-- | source3/smbd/fileio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c index 62e9a98a8d..c0deaebcfc 100644 --- a/source3/smbd/fileio.c +++ b/source3/smbd/fileio.c @@ -171,16 +171,13 @@ static int wcp_file_size_change(files_struct *fsp) return ret; } -static void update_write_time_handler(struct event_context *ctx, +void update_write_time_handler(struct event_context *ctx, struct timed_event *te, struct timeval now, void *private_data) { files_struct *fsp = (files_struct *)private_data; - /* Remove the timed event handler. */ - TALLOC_FREE(fsp->update_write_time_event); - DEBUG(5, ("Update write time on %s\n", fsp_str_dbg(fsp))); /* change the write time in the open file db. */ @@ -189,6 +186,9 @@ static void update_write_time_handler(struct event_context *ctx, /* And notify. */ notify_fname(fsp->conn, NOTIFY_ACTION_MODIFIED, FILE_NOTIFY_CHANGE_LAST_WRITE, fsp->fsp_name->base_name); + + /* Remove the timed event handler. */ + TALLOC_FREE(fsp->update_write_time_event); } /********************************************************* |