1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4-pvfs: rename with full name gives SHARING_VIOLATION

This commit is contained in:
Andrew Tridgell 2009-10-18 14:15:48 +11:00
parent 83db71e9a7
commit 44612c74a6

View File

@ -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);