s3: VFS: Change SMB_VFS_SETXATTR to use const struct smb_filename * instead of const...
[samba.git] / source3 / modules / vfs_fake_acls.c
index e0e17830ba2c9dcf63b5674bd7f1e334975244a2..917996af0a43cb2dfc5ebe2458fbc04eb777be77 100644 (file)
@@ -339,7 +339,7 @@ static int fake_acls_sys_acl_set_file(vfs_handle_struct *handle,
                name = FAKE_ACL_DEFAULT_XATTR;
                break;
        }
-       ret = SMB_VFS_NEXT_SETXATTR(handle, smb_fname->base_name,
+       ret = SMB_VFS_NEXT_SETXATTR(handle, smb_fname,
                        name, blob.data, blob.length, 0);
        TALLOC_FREE(frame);
        return ret;
@@ -409,7 +409,7 @@ static int fake_acls_chown(vfs_handle_struct *handle,
        if (uid != -1) {
                SIVAL(id_buf, 0, uid);
                ret = SMB_VFS_NEXT_SETXATTR(handle,
-                               smb_fname->base_name,
+                               smb_fname,
                                FAKE_UID,
                                id_buf,
                                sizeof(id_buf),
@@ -421,7 +421,7 @@ static int fake_acls_chown(vfs_handle_struct *handle,
        if (gid != -1) {
                SIVAL(id_buf, 0, gid);
                ret = SMB_VFS_NEXT_SETXATTR(handle,
-                               smb_fname->base_name,
+                               smb_fname,
                                FAKE_GID,
                                id_buf,
                                sizeof(id_buf),
@@ -451,7 +451,7 @@ static int fake_acls_lchown(vfs_handle_struct *handle,
                 */
                SIVAL(id_buf, 0, uid);
                ret = SMB_VFS_NEXT_SETXATTR(handle,
-                               smb_fname->base_name,
+                               smb_fname,
                                FAKE_UID,
                                id_buf,
                                sizeof(id_buf),
@@ -463,7 +463,7 @@ static int fake_acls_lchown(vfs_handle_struct *handle,
        if (gid != -1) {
                SIVAL(id_buf, 0, gid);
                ret = SMB_VFS_NEXT_SETXATTR(handle,
-                               smb_fname->base_name,
+                               smb_fname,
                                FAKE_GID,
                                id_buf,
                                sizeof(id_buf),