diff options
author | Ralph Wuerthner <ralph.wuerthner@de.ibm.com> | 2020-01-28 14:34:55 +0100 |
---|---|---|
committer | Christof Schmitt <cs@samba.org> | 2020-02-03 20:27:37 +0000 |
commit | 3630ae2208db1847aa91aeb08c76d3c2bdd2a1da (patch) | |
tree | b578aa665d952854798c17e4cdf4a04667a7eb72 | |
parent | 18c266413425408862fe2c17b153d4142ba86722 (diff) | |
download | samba-3630ae2208db1847aa91aeb08c76d3c2bdd2a1da.tar.gz |
gpfswrap: Make pathname "const char *" in gpfswrap_getacl()
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>
-rw-r--r-- | lib/util/gpfswrap.c | 4 | ||||
-rw-r--r-- | lib/util/gpfswrap.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/util/gpfswrap.c b/lib/util/gpfswrap.c index bd8cc11f9e8..14ee0de91c4 100644 --- a/lib/util/gpfswrap.c +++ b/lib/util/gpfswrap.c @@ -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; diff --git a/lib/util/gpfswrap.h b/lib/util/gpfswrap.h index 3823de841ea..7dbdec9485a 100644 --- a/lib/util/gpfswrap.h +++ b/lib/util/gpfswrap.h @@ -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, |