]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:modules use vfs_gpfs_getacl in gpfsacl_get_posix_acl
authorChristian Ambach <ambi@samba.org>
Tue, 8 Jan 2013 16:10:10 +0000 (17:10 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 4 Feb 2013 11:19:30 +0000 (12:19 +0100)
as preparation to remove gpfs_getacl_alloc()

Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/modules/vfs_gpfs.c

index b017c661d47b5d212016eca50c7948cad2f6e704..559452e6032b1957c869dd9fe31181a744c3fdbf 100644 (file)
@@ -720,10 +720,10 @@ static SMB_ACL_T gpfsacl_get_posix_acl(const char *path, gpfs_aclType_t type,
        struct gpfs_acl *pacl;
        SMB_ACL_T result = NULL;
 
-       pacl = gpfs_getacl_alloc(path, type);
+       pacl = vfs_gpfs_getacl(talloc_tos(), path, false, type);
 
        if (pacl == NULL) {
-               DEBUG(10, ("gpfs_getacl failed for %s with %s\n",
+               DEBUG(10, ("vfs_gpfs_getacl failed for %s with %s\n",
                           path, strerror(errno)));
                if (errno == 0) {
                        errno = EINVAL;
@@ -755,7 +755,7 @@ static SMB_ACL_T gpfsacl_get_posix_acl(const char *path, gpfs_aclType_t type,
        if (errno != 0) {
                TALLOC_FREE(result);
        }
-       return result;  
+       return result;
 }
 
 static SMB_ACL_T gpfsacl_sys_acl_get_file(vfs_handle_struct *handle,