From: Volker Lendecke Date: Mon, 4 Nov 2019 06:39:48 +0000 (+0100) Subject: smbd: Use file_id_str_buf() in set_write_time() X-Git-Tag: talloc-2.3.1~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f80b8abac3e4a59371017b841cc43dfe486f18e;p=thirdparty%2Fsamba.git smbd: Use file_id_str_buf() in set_write_time() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/locking/locking.c b/source3/locking/locking.c index f90458d9d4f..52309e5fc81 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -1013,11 +1013,12 @@ bool set_sticky_write_time(struct file_id fileid, struct timespec write_time) bool set_write_time(struct file_id fileid, struct timespec write_time) { struct share_mode_lock *lck; + struct file_id_buf idbuf; - DEBUG(5,("set_write_time: %s id=%s\n", + DBG_INFO("%s id=%s\n", timestring(talloc_tos(), convert_timespec_to_time_t(write_time)), - file_id_string_tos(&fileid))); + file_id_str_buf(fileid, &idbuf)); lck = get_existing_share_mode_lock(talloc_tos(), fileid); if (lck == NULL) {