summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-18 14:15:48 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-18 15:06:12 +1100
commit44612c74a6de8becd8f8dc51590616ba792ca13f (patch)
treed9172ea167f7185057844aac1d3c8612d7cccc7e /source4/ntvfs
parent83db71e9a71f01d6a9eea2d1436bd9ee28c250a0 (diff)
downloadsamba-44612c74a6de8becd8f8dc51590616ba792ca13f.tar.gz
samba-44612c74a6de8becd8f8dc51590616ba792ca13f.tar.bz2
samba-44612c74a6de8becd8f8dc51590616ba792ca13f.zip
s4-pvfs: rename with full name gives SHARING_VIOLATION
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/posix/pvfs_setfileinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_setfileinfo.c b/source4/ntvfs/posix/pvfs_setfileinfo.c
index 244548382c..c70b44def0 100644
--- a/source4/ntvfs/posix/pvfs_setfileinfo.c
+++ b/source4/ntvfs/posix/pvfs_setfileinfo.c
@@ -89,8 +89,10 @@ static NTSTATUS pvfs_setfileinfo_rename_stream(struct pvfs_state *pvfs,
NTSTATUS status;
struct odb_lock *lck = NULL;
+ /* strangely, this gives a sharing violation, not invalid
+ parameter */
if (info->rename_information.in.new_name[0] != ':') {
- return NT_STATUS_INVALID_PARAMETER;
+ return NT_STATUS_SHARING_VIOLATION;
}
status = pvfs_access_check_simple(pvfs, req, name, SEC_FILE_WRITE_ATTRIBUTE);