diff options
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); } /********************************************************* |