diff options
author | Christian Ambach <ambi@samba.org> | 2013-01-08 17:10:27 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-02-04 14:10:06 +0100 |
commit | 4c1527b1ce26759dbb7470b23f9f83a391d99b30 (patch) | |
tree | 3bb06834d19fa0026779558a6944351e66b4d416 /source3 | |
parent | 18bfcac810bed431d0ca33ad02508fd87df1c626 (diff) | |
download | samba-4c1527b1ce26759dbb7470b23f9f83a391d99b30.tar.gz samba-4c1527b1ce26759dbb7470b23f9f83a391d99b30.tar.bz2 samba-4c1527b1ce26759dbb7470b23f9f83a391d99b30.zip |
s3:modules remove gpfs_getacl_alloc
last caller has gone
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Feb 4 14:10:08 CET 2013 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_gpfs.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 559452e603..622bea4fdb 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -293,52 +293,6 @@ again: return aclbuf; } -static struct gpfs_acl *gpfs_getacl_alloc(const char *fname, gpfs_aclType_t type) -{ - struct gpfs_acl *acl; - size_t len = 200; - int ret; - TALLOC_CTX *mem_ctx = talloc_tos(); - - acl = (struct gpfs_acl *)TALLOC_SIZE(mem_ctx, len); - if (acl == NULL) { - errno = ENOMEM; - return NULL; - } - - acl->acl_len = len; - acl->acl_level = 0; - acl->acl_version = 0; - acl->acl_type = type; - - ret = smbd_gpfs_getacl((char *)fname, GPFS_GETACL_STRUCT, acl); - if ((ret != 0) && (errno == ENOSPC)) { - struct gpfs_acl *new_acl = (struct gpfs_acl *)TALLOC_SIZE( - mem_ctx, acl->acl_len + sizeof(struct gpfs_acl)); - if (new_acl == NULL) { - talloc_free(acl); - errno = ENOMEM; - return NULL; - } - - new_acl->acl_len = acl->acl_len; - new_acl->acl_level = acl->acl_level; - new_acl->acl_version = acl->acl_version; - new_acl->acl_type = acl->acl_type; - talloc_free(acl); - acl = new_acl; - - ret = smbd_gpfs_getacl((char *)fname, GPFS_GETACL_STRUCT, acl); - } - if (ret != 0) { - DEBUG(8, ("smbd_gpfs_getacl failed with %s\n",strerror(errno))); - talloc_free(acl); - return NULL; - } - - return acl; -} - /* Tries to get nfs4 acls and returns SMB ACL allocated. * On failure returns 1 if it got non-NFSv4 ACL to prompt * retry with POSIX ACL checks. |