s3: VFS: Change SMB_VFS_SYS_ACL_DELETE_DEF_FILE to use const struct smb_filename...
[kai/samba-autobuild/.git] / source3 / modules / vfs_hpuxacl.c
index d91657a00a684ce0d08b51bbec9678f54dd8dd1c..f666a5eceb50b2f63781b1337075fe460ed90d0a 100644 (file)
@@ -358,7 +358,7 @@ int hpuxacl_sys_acl_set_fd(vfs_handle_struct *handle,
  * check is considered unnecessary. --- Agreed? XXX
  */
 int hpuxacl_sys_acl_delete_def_file(vfs_handle_struct *handle,
-                                   const char *path)
+                               const struct smb_filename *smb_fname)
 {
        SMB_ACL_T smb_acl;
        int ret = -1;
@@ -367,7 +367,7 @@ int hpuxacl_sys_acl_delete_def_file(vfs_handle_struct *handle,
 
        DEBUG(10, ("entering hpuxacl_sys_acl_delete_def_file.\n"));
 
-       smb_acl = hpuxacl_sys_acl_get_file(handle, path, 
+       smb_acl = hpuxacl_sys_acl_get_file(handle, smb_fname->base_name,
                                           SMB_ACL_TYPE_ACCESS);
        if (smb_acl == NULL) {
                DEBUG(10, ("getting file acl failed!\n"));
@@ -383,7 +383,8 @@ int hpuxacl_sys_acl_delete_def_file(vfs_handle_struct *handle,
                DEBUG(10, ("resulting acl is not valid!\n"));
                goto done;
        }
-       ret = acl(discard_const_p(char, path), ACL_SET, count, hpux_acl);
+       ret = acl(discard_const_p(char, smb_fname->base_name),
+                               ACL_SET, count, hpux_acl);
        if (ret != 0) {
                DEBUG(10, ("settinge file acl failed!\n"));
        }