VFS: Modify opendir to take a const struct smb_filename * instead of const char *
[metze/samba/wip.git] / source3 / modules / vfs_extd_audit.c
index 6429370d71bcbc9d04a38cfd85b916165c6dfc0f..137bf72a093c67d77875827b657c9275c9efdf4d 100644 (file)
@@ -116,20 +116,23 @@ static void audit_disconnect(vfs_handle_struct *handle)
        return;
 }
 
-static DIR *audit_opendir(vfs_handle_struct *handle, const char *fname, const char *mask, uint32_t attr)
+static DIR *audit_opendir(vfs_handle_struct *handle,
+                       const struct smb_filename *smb_fname,
+                       const char *mask,
+                       uint32_t attr)
 {
        DIR *result;
 
-       result = SMB_VFS_NEXT_OPENDIR(handle, fname, mask, attr);
+       result = SMB_VFS_NEXT_OPENDIR(handle, smb_fname, mask, attr);
 
        if (lp_syslog() > 0) {
                syslog(audit_syslog_priority(handle), "opendir %s %s%s\n",
-                      fname,
+                      smb_fname->base_name,
                       (result == NULL) ? "failed: " : "",
                       (result == NULL) ? strerror(errno) : "");
        }
        DEBUG(1, ("vfs_extd_audit: opendir %s %s %s\n",
-              fname,
+              smb_fname->base_name,
               (result == NULL) ? "failed: " : "",
               (result == NULL) ? strerror(errno) : ""));