git.samba.org
/
gd
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r3174: added pvfs_is_open() to allow us to check for open files on unlink. We
[gd/samba-autobuild/.git]
/
source4
/
ntvfs
/
posix
/
pvfs_unlink.c
diff --git
a/source4/ntvfs/posix/pvfs_unlink.c
b/source4/ntvfs/posix/pvfs_unlink.c
index 0f4ff8b148377d6a04fb45d20339482231f6b7bb..d5e25b5622c7beb063308828d9f33582bec70eef 100644
(file)
--- a/
source4/ntvfs/posix/pvfs_unlink.c
+++ b/
source4/ntvfs/posix/pvfs_unlink.c
@@
-80,6
+80,10
@@
NTSTATUS pvfs_unlink(struct ntvfs_module_context *ntvfs,
return NT_STATUS_OBJECT_NAME_NOT_FOUND;
}
+ if (pvfs_is_open(pvfs, name)) {
+ return NT_STATUS_SHARING_VIOLATION;
+ }
+
dir = talloc_p(req, struct pvfs_dir);
if (dir == NULL) {
return NT_STATUS_NO_MEMORY;