]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_gpfs: pass fsp to gpfs_getacl_with_capability()
authorRalph Boehme <slow@samba.org>
Tue, 17 May 2022 14:01:48 +0000 (16:01 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 3 Jun 2022 20:56:35 +0000 (20:56 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15069

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
source3/modules/vfs_gpfs.c

index 827b6b934652f201291eaa0d733e108b62c649e9..9a85ee0c6a94711dc89006962ff4daf42ba2239e 100644 (file)
@@ -423,7 +423,9 @@ static void gpfs_dumpacl(int level, struct gpfs_acl *gacl)
        }
 }
 
-static int gpfs_getacl_with_capability(const char *fname, int flags, void *buf)
+static int gpfs_getacl_with_capability(struct files_struct *fsp,
+                                      int flags,
+                                      void *buf)
 {
        int ret, saved_errno;
 
@@ -488,13 +490,13 @@ again:
        *len = size;
 
        if (use_capability) {
-               ret = gpfs_getacl_with_capability(fname, flags, aclbuf);
+               ret = gpfs_getacl_with_capability(fsp, flags, aclbuf);
        } else {
                ret = gpfswrap_getacl(fname, flags, aclbuf);
                if ((ret != 0) && (errno == EACCES)) {
                        DBG_DEBUG("Retry with DAC capability for %s\n", fname);
                        use_capability = true;
-                       ret = gpfs_getacl_with_capability(fname, flags, aclbuf);
+                       ret = gpfs_getacl_with_capability(fsp, flags, aclbuf);
                }
        }