From: Christof Schmitt Date: Tue, 9 Apr 2019 20:57:36 +0000 (-0700) Subject: vfs_full_audit: Fix logging of get_real_filename output X-Git-Tag: tdb-1.4.1~474 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56f933fa344e1ed4cbaa15b43cc219591e2eca8a;p=thirdparty%2Fsamba.git vfs_full_audit: Fix logging of get_real_filename output result == 0 indicated success. In that case log the available found_name. Signed-off-by: Christof Schmitt Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Apr 10 01:17:28 UTC 2019 on sn-devel-144 --- diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index fcfb024d493..a4e2afa0dbb 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -1852,7 +1852,7 @@ static int smb_full_audit_get_real_filename(struct vfs_handle_struct *handle, found_name); do_log(SMB_VFS_OP_GET_REAL_FILENAME, (result == 0), handle, - "%s/%s->%s", path, name, (result == 0) ? "" : *found_name); + "%s/%s->%s", path, name, (result == 0) ? *found_name : ""); return result; }