git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0_RELEASE@23113
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
ZERO_STRUCT(sbuf);
status = unix_convert(conn, newname, False, newname_last_component, &sbuf);
- /* We expect this to be NT_STATUS_OBJECT_PATH_NOT_FOUND */
- if (!NT_STATUS_EQUAL(NT_STATUS_OBJECT_PATH_NOT_FOUND, status)) {
- return NT_STATUS_OBJECT_NAME_COLLISION;
+
+ /* If an error we expect this to be NT_STATUS_OBJECT_PATH_NOT_FOUND */
+
+ if (!NT_STATUS_IS_OK(status) && !NT_STATUS_EQUAL(NT_STATUS_OBJECT_PATH_NOT_FOUND, status)) {
return status;
}