s3: VFS: Change SMB_VFS_LISTXATTR to use const struct smb_filename * instead of const...
[bbaumbach/samba-autobuild/.git] / source3 / modules / vfs_vxfs.c
index 5dc9ba2cfe37643cdc404c34022096675135bd43..c678636d14a9760e6d0e07c33634e54064319cb0 100644 (file)
@@ -752,17 +752,19 @@ static size_t vxfs_filter_list(char *list, size_t size)
        return size;
 }
 
-static ssize_t vxfs_listxattr(vfs_handle_struct *handle, const char *path,
-                              char *list, size_t size)
+static ssize_t vxfs_listxattr(vfs_handle_struct *handle,
+                               const struct smb_filename *smb_fname,
+                               char *list,
+                               size_t size)
 {
        ssize_t result;
 
-       result = vxfs_listxattr_path(path, list, size);
+       result = vxfs_listxattr_path(smb_fname->base_name, list, size);
        if (result >= 0 || ((errno != ENOTSUP) && (errno != ENOSYS))) {
                return result;
        }
 
-       result = SMB_VFS_NEXT_LISTXATTR(handle, path, list, size);
+       result = SMB_VFS_NEXT_LISTXATTR(handle, smb_fname, list, size);
 
        if (result <= 0) {
                return result;