vfs_full_audit: Fix logging of get_real_filename output
authorChristof Schmitt <cs@samba.org>
Tue, 9 Apr 2019 20:57:36 +0000 (13:57 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 10 Apr 2019 01:17:28 +0000 (01:17 +0000)
result == 0 indicated success. In that case log the available
found_name.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Apr 10 01:17:28 UTC 2019 on sn-devel-144

source3/modules/vfs_full_audit.c

index fcfb024d493a6a7721139ef83834e34664f1d3ee..a4e2afa0dbb41e1b0a822fb7fc420b1cfcd217a0 100644 (file)
@@ -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;
 }