s3: VFS: Change SMB_VFS_GETWD to return struct smb_filename * instead of char *.
[sfrench/samba-autobuild/.git] / source3 / modules / vfs_full_audit.c
index 5d35c34037190dfe34826008437d9dc2e056fd70..5178324556630ea1b9394489e0a71f9f1020250b 100644 (file)
@@ -1521,14 +1521,15 @@ static int smb_full_audit_chdir(vfs_handle_struct *handle,
        return result;
 }
 
-static char *smb_full_audit_getwd(vfs_handle_struct *handle)
+static struct smb_filename *smb_full_audit_getwd(vfs_handle_struct *handle,
+                               TALLOC_CTX *ctx)
 {
-       char *result;
+       struct smb_filename *result;
 
-       result = SMB_VFS_NEXT_GETWD(handle);
+       result = SMB_VFS_NEXT_GETWD(handle, ctx);
        
        do_log(SMB_VFS_OP_GETWD, (result != NULL), handle, "%s",
-               result == NULL? "" : result);
+               result == NULL? "" : result->base_name);
 
        return result;
 }