From 44612c74a6de8becd8f8dc51590616ba792ca13f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 18 Oct 2009 14:15:48 +1100 Subject: s4-pvfs: rename with full name gives SHARING_VIOLATION --- source4/ntvfs/posix/pvfs_setfileinfo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/ntvfs/posix') 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); -- cgit