/* Grrr. We have to do this as open_file_ntcreate adds aARCH when it
creates the file. This isn't the correct thing to do in the copy
case. JRA */
- if (!parent_dirname_talloc(talloc_tos(), newname, &parent, NULL)) {
+ if (!parent_dirname(talloc_tos(), newname, &parent, NULL)) {
return NT_STATUS_NO_MEMORY;
}
file_set_dosmode(conn, newname, fattr, &sbuf2, parent, false);