Changeset 224 for branches/samba-3.3.x/source/modules
- Timestamp:
- May 24, 2009, 7:55:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/modules/vfs_gpfs.c
r223 r224 342 342 (smb_get_naces(smbacl)-1)*sizeof(gpfs_ace_v4_t); 343 343 344 gacl = TALLOC_SIZE(mem_ctx, gacl_len);344 gacl = (struct gpfs_acl *)TALLOC_SIZE(mem_ctx, gacl_len); 345 345 if (gacl == NULL) { 346 346 DEBUG(0, ("talloc failed\n")); … … 557 557 } 558 558 559 SMB_ACL_T gpfsacl_sys_acl_get_file(vfs_handle_struct *handle,560 561 559 static SMB_ACL_T gpfsacl_sys_acl_get_file(vfs_handle_struct *handle, 560 const char *path_p, 561 SMB_ACL_TYPE_T type) 562 562 { 563 563 gpfs_aclType_t gpfs_type; … … 578 578 } 579 579 580 SMB_ACL_T gpfsacl_sys_acl_get_fd(vfs_handle_struct *handle,581 580 static SMB_ACL_T gpfsacl_sys_acl_get_fd(vfs_handle_struct *handle, 581 files_struct *fsp) 582 582 { 583 583 return gpfsacl_get_posix_acl(fsp->fsp_name, GPFS_ACL_TYPE_ACCESS); … … 601 601 (pacl->count)*sizeof(gpfs_ace_v1_t); 602 602 603 result = SMB_MALLOC(len);603 result = (struct gpfs_acl *)SMB_MALLOC(len); 604 604 if (result == NULL) { 605 605 errno = ENOMEM; … … 671 671 } 672 672 673 int gpfsacl_sys_acl_set_file(vfs_handle_struct *handle,674 675 676 673 static int gpfsacl_sys_acl_set_file(vfs_handle_struct *handle, 674 const char *name, 675 SMB_ACL_TYPE_T type, 676 SMB_ACL_T theacl) 677 677 { 678 678 struct gpfs_acl *gpfs_acl; … … 690 690 } 691 691 692 int gpfsacl_sys_acl_set_fd(vfs_handle_struct *handle,693 694 692 static int gpfsacl_sys_acl_set_fd(vfs_handle_struct *handle, 693 files_struct *fsp, 694 SMB_ACL_T theacl) 695 695 { 696 696 return gpfsacl_sys_acl_set_file(handle, fsp->fsp_name, SMB_ACL_TYPE_ACCESS, theacl); 697 697 } 698 698 699 int gpfsacl_sys_acl_delete_def_file(vfs_handle_struct *handle,700 699 static int gpfsacl_sys_acl_delete_def_file(vfs_handle_struct *handle, 700 const char *path) 701 701 { 702 702 errno = ENOTSUP;
Note:
See TracChangeset
for help on using the changeset viewer.