summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-17 06:35:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:29 -0500
commitdaae3bbb290ce0f4467c806acaefe3b1d6f4ae4d (patch)
tree517a8e946459b6a9f8a51cbacb8abb0f18696f23 /source4
parentb6a515aca45b5efb8f8992767692dd3c08ef1d64 (diff)
downloadsamba-daae3bbb290ce0f4467c806acaefe3b1d6f4ae4d.tar.gz
samba-daae3bbb290ce0f4467c806acaefe3b1d6f4ae4d.tar.bz2
samba-daae3bbb290ce0f4467c806acaefe3b1d6f4ae4d.zip
r4247: two more places that need the unlink hook
(This used to be commit 795897b64f3c63baaf53a36eb1611293c2fd8974)
Diffstat (limited to 'source4')
-rw-r--r--source4/ntvfs/posix/pvfs_open.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_open.c b/source4/ntvfs/posix/pvfs_open.c
index bd96b935ad..7cb8a5d90c 100644
--- a/source4/ntvfs/posix/pvfs_open.c
+++ b/source4/ntvfs/posix/pvfs_open.c
@@ -202,6 +202,9 @@ static NTSTATUS pvfs_open_directory(struct pvfs_state *pvfs,
if (mkdir(name->full_name, mode) == -1) {
return pvfs_map_errno(pvfs,errno);
}
+
+ pvfs_xattr_unlink_hook(pvfs, name->full_name);
+
status = pvfs_resolve_name(pvfs, req, io->ntcreatex.in.fname, 0, &name);
if (!NT_STATUS_IS_OK(status)) {
return status;
@@ -436,6 +439,8 @@ static NTSTATUS pvfs_create_file(struct pvfs_state *pvfs,
return pvfs_map_errno(pvfs, errno);
}
+ pvfs_xattr_unlink_hook(pvfs, name->full_name);
+
/* if this was a stream create then create the stream as well */
if (name->stream_name) {
status = pvfs_stream_create(pvfs, name, fd);