DEBUG(5, ("Update write time %d usec later on %s\n",
delay, fsp_str_dbg(fsp)));
- /* trigger the update 2 seconds later */
+ /*
+ * trigger the update 2 seconds later
+ *
+ * Note that update_write_time_handler()
+ * => fsp_flush_write_time_update()
+ * won't do any SMB_VFS calls and don't
+ * need impersonation. So we use the
+ * raw event context for this.
+ */
fsp->update_write_time_event =
- tevent_add_timer(fsp->conn->sconn->ev_ctx, NULL,
+ tevent_add_timer(fsp->conn->sconn->raw_ev_ctx, NULL,
timeval_current_ofs_usec(delay),
update_write_time_handler, fsp);
}