diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/ntvfs/posix/pvfs_setfileinfo.c | 4 |
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); |