r4244: add more calls to pvfs_xattr_unlink_hook() on file/dir create, to try to beat...
[samba.git] / source / ntvfs / posix / pvfs_mkdir.c
index 549f4b9780cfeba55c76cb8117a55392b9bd9f12..c4c03f3ad4807a066185ff3a5077d5dc75e4e471 100644 (file)
@@ -49,6 +49,8 @@ static NTSTATUS pvfs_t2mkdir(struct pvfs_state *pvfs,
                return pvfs_map_errno(pvfs, errno);
        }
 
+       pvfs_xattr_unlink_hook(pvfs, name->full_name);
+
        status = pvfs_resolve_name(pvfs, req, md->t2mkdir.in.path, 0, &name);
        if (!NT_STATUS_IS_OK(status)) {
                return status;
@@ -105,6 +107,8 @@ NTSTATUS pvfs_mkdir(struct ntvfs_module_context *ntvfs,
                return pvfs_map_errno(pvfs, errno);
        }
 
+       pvfs_xattr_unlink_hook(pvfs, name->full_name);
+
        return NT_STATUS_OK;
 }