r21672: The cannonical file access pattern should look like this :
commit10ab7a3a78b5b4d38f93f13f5b91b5eea5308e86
authorJeremy Allison <jra@samba.org>
Sat, 3 Mar 2007 01:35:58 +0000 (3 01:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:23 +0000 (10 12:18 -0500)
tree27a0f601d022b7fef497914dd0333ef174795f08
parent9b0f22d065b80d8cc0d4d2c9c1f52476ae68df95
r21672: The cannonical file access pattern should look like this :

srvstr_get_path(inbuf, name, smb_buf(inbuf) + 1, sizeof(name), 0, STR_TERMINATE, &status);
if (!NT_STATUS_IS_OK(status)) {
return ERROR_NT(status);
}

RESOLVE_DFSPATH(name, conn, inbuf, outbuf);

status = unix_convert(conn, name, False, NULL, &sbuf);
if (!NT_STATUS_IS_OK(status)) {
return ERROR_NT(status);
}

status = check_name(conn, name);
if (!NT_STATUS_IS_OK(status)) {
return ERROR_NT(status);
}

Make sure that every access pattern (including the
wildcard generated paths from unlink, rename, and copy)
do the same. Tidy things up a bit....

Jeremy.
(This used to be commit b8327b21ddf518d34c6cd6c01bd7fc0fd3f63c0c)
source3/printing/nt_printing.c
source3/smbd/nttrans.c
source3/smbd/reply.c
source3/smbd/trans2.c