lib/util/gpfswrap: remove unused gpfswrap_getacl()
authorRalph Boehme <slow@samba.org>
Tue, 17 May 2022 14:27:58 +0000 (16:27 +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>
lib/util/gpfswrap.c
lib/util/gpfswrap.h

index ff0b9bd70316d842a92b3e0784792a1961708a8c..b71a1606e7f90dcb1b7094e429ffd2c85886924a 100644 (file)
@@ -23,7 +23,6 @@
 
 static int (*gpfs_set_share_fn)(int fd, unsigned int allow, unsigned int deny);
 static int (*gpfs_set_lease_fn)(int fd, unsigned int type);
-static int (*gpfs_getacl_fn)(const char *pathname, int flags, void *acl);
 static int (*gpfs_fgetacl_fn)(int fd, int flags, void *acl);
 static int (*gpfs_putacl_fn)(const char *pathname, int flags, void *acl);
 static int (*gpfs_get_realfilename_path_fn)(const char *pathname,
@@ -71,7 +70,6 @@ int gpfswrap_init(void)
 
        gpfs_set_share_fn             = dlsym(l, "gpfs_set_share");
        gpfs_set_lease_fn             = dlsym(l, "gpfs_set_lease");
-       gpfs_getacl_fn                = dlsym(l, "gpfs_getacl");
        gpfs_fgetacl_fn               = dlsym(l, "gpfs_getacl_fd");
        gpfs_putacl_fn                = dlsym(l, "gpfs_putacl");
        gpfs_get_realfilename_path_fn = dlsym(l, "gpfs_get_realfilename_path");
@@ -114,16 +112,6 @@ int gpfswrap_set_lease(int fd, unsigned int type)
        return gpfs_set_lease_fn(fd, type);
 }
 
-int gpfswrap_getacl(const char *pathname, int flags, void *acl)
-{
-       if (gpfs_getacl_fn == NULL) {
-               errno = ENOSYS;
-               return -1;
-       }
-
-       return gpfs_getacl_fn(pathname, flags, acl);
-}
-
 int gpfswrap_fgetacl(int fd, int flags, void *acl)
 {
        if (gpfs_fgetacl_fn == NULL) {
index db541b31f1024f6a6d153ab99a462c80d8e3aa04..f9b96a3cf49773440cbaa59a62c970e6c0c8cd62 100644 (file)
@@ -29,7 +29,6 @@
 int gpfswrap_init(void);
 int gpfswrap_set_share(int fd, unsigned int allow, unsigned int deny);
 int gpfswrap_set_lease(int fd, unsigned int type);
-int gpfswrap_getacl(const char *pathname, int flags, void *acl);
 int gpfswrap_fgetacl(int fd, int flags, void *acl);
 int gpfswrap_putacl(const char *pathname, int flags, void *acl);
 int gpfswrap_get_realfilename_path(const char *pathname,