VFS: SMB_VFS_SYS_ACL_GET_FD: Modify api to take additional type param
[samba.git] / source3 / modules / vfs_aixacl.c
index 182e4e1880ef3690c9852ee6ec45ea09afabf555..0400276f18ef04802266e7a306f7e72193f3d691 100644 (file)
@@ -83,6 +83,7 @@ SMB_ACL_T aixacl_sys_acl_get_file(vfs_handle_struct *handle,
 
 SMB_ACL_T aixacl_sys_acl_get_fd(vfs_handle_struct *handle,
                                files_struct *fsp,
+                               SMB_ACL_TYPE_T type,
                                TALLOC_CTX *mem_ctx)
 {
 
@@ -92,6 +93,11 @@ SMB_ACL_T aixacl_sys_acl_get_fd(vfs_handle_struct *handle,
        int rc = 0;
        uid_t user_id;
 
+       /* AIX has no DEFAULT */
+       if  ( type == SMB_ACL_TYPE_DEFAULT ) {
+               return NULL;
+       }
+
        /* Get the acl using fstatacl */
    
        DEBUG(10,("Entering AIX sys_acl_get_fd\n"));