]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
gpfswrap: Make pathname "const char *" in gpfswrap_getacl()
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>
Tue, 28 Jan 2020 13:34:55 +0000 (14:34 +0100)
committerChristof Schmitt <cs@samba.org>
Mon, 3 Feb 2020 20:27:37 +0000 (20:27 +0000)
Update wrapper function to match the definition in gpfs.h.

Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
Reviewed-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/util/gpfswrap.c
lib/util/gpfswrap.h

index bd8cc11f9e8b2069cb80b8b29fa91142e0e3b7df..14ee0de91c42383bac0618eed0901c6061a55dca 100644 (file)
@@ -23,7 +23,7 @@
 
 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)(char *pathname, int flags, void *acl);
+static int (*gpfs_getacl_fn)(const char *pathname, int flags, void *acl);
 static int (*gpfs_putacl_fn)(char *pathname, int flags, void *acl);
 static int (*gpfs_get_realfilename_path_fn)(char *pathname, char *filenamep,
                                            int *len);
@@ -104,7 +104,7 @@ int gpfswrap_set_lease(int fd, unsigned int type)
        return gpfs_set_lease_fn(fd, type);
 }
 
-int gpfswrap_getacl(char *pathname, int flags, void *acl)
+int gpfswrap_getacl(const char *pathname, int flags, void *acl)
 {
        if (gpfs_getacl_fn == NULL) {
                errno = ENOSYS;
index 3823de841ea257cdf50b1a3e30480f9e07b0c59b..7dbdec9485a5ca827b98637a079475d2a665dde9 100644 (file)
@@ -29,7 +29,7 @@
 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(char *pathname, int flags, void *acl);
+int gpfswrap_getacl(const char *pathname, int flags, void *acl);
 int gpfswrap_putacl(char *pathname, int flags, void *acl);
 int gpfswrap_get_realfilename_path(char *pathname, char *filenamep, int *len);
 int gpfswrap_set_winattrs_path(char *pathname, int flags,