r20618: Fix a bug in bad_path handling that also exists in 3.0.23: For reply_unlink
commit838afa8f7d2b10460725c1f0b519ce54fb84de88
authorVolker Lendecke <vlendec@samba.org>
Mon, 8 Jan 2007 21:08:31 +0000 (8 21:08 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:37:15 +0000 (10 14:37 -0500)
treeee83f8d451f097a0835aa67ac610c01d63ae1bbc
parent5f4617807ad0a9455d42a31575fc78d4bdb2286d
r20618: Fix a bug in bad_path handling that also exists in 3.0.23: For reply_unlink
under Linux we returned NT_STATUS_NOT_A_DIRECTORY. This is because in the
bad_path==True condition lstat(2) returns ENOTDIR and not ENOENT.

Not sure if we want to necessarily replicate the INVALID_PARAMETER here, but
this is what W2k3 does.

Jeremy, I tried to call you, but you were not around. So I'll leave it up to
you to merge this.

Volker
source/torture/raw/samba3misc.c