diff options
Diffstat (limited to 'source3/modules/vfs_audit.c')
-rw-r--r-- | source3/modules/vfs_audit.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/modules/vfs_audit.c b/source3/modules/vfs_audit.c index fa47b3c25a9..92b69b17dd0 100644 --- a/source3/modules/vfs_audit.c +++ b/source3/modules/vfs_audit.c @@ -217,14 +217,16 @@ static int audit_unlink(vfs_handle_struct *handle, return result; } -static int audit_chmod(vfs_handle_struct *handle, const char *path, mode_t mode) +static int audit_chmod(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + mode_t mode) { int result; - result = SMB_VFS_NEXT_CHMOD(handle, path, mode); + result = SMB_VFS_NEXT_CHMOD(handle, smb_fname, mode); syslog(audit_syslog_priority(handle), "chmod %s mode 0x%x %s%s\n", - path, mode, + smb_fname->base_name, mode, (result < 0) ? "failed: " : "", (result < 0) ? strerror(errno) : ""); |