mirror of
https://github.com/samba-team/samba.git
synced 2025-02-18 17:57:55 +03:00
r4247: two more places that need the unlink hook
This commit is contained in:
parent
b6827a03e7
commit
795897b64f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user