summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_audit.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/modules/vfs_audit.c')
-rw-r--r--source3/modules/vfs_audit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/modules/vfs_audit.c b/source3/modules/vfs_audit.c
index 809ecc9e44..8c0141906b 100644
--- a/source3/modules/vfs_audit.c
+++ b/source3/modules/vfs_audit.c
@@ -187,14 +187,15 @@ static int audit_rename(vfs_handle_struct *handle,
return result;
}
-static int audit_unlink(vfs_handle_struct *handle, const char *path)
+static int audit_unlink(vfs_handle_struct *handle,
+ const struct smb_filename *smb_fname)
{
int result;
- result = SMB_VFS_NEXT_UNLINK(handle, path);
+ result = SMB_VFS_NEXT_UNLINK(handle, smb_fname);
syslog(audit_syslog_priority(handle), "unlink %s %s%s\n",
- path,
+ smb_fname_str_dbg(smb_fname),
(result < 0) ? "failed: " : "",
(result < 0) ? strerror(errno) : "");