wcard unlink if bad_path was set. The error
returned here is almost certainly incorrect
and will need testing properly with smbtorture,
but I don't want to forget about this path
(yes Volker I know this is currently incorrect :-).
Jeremy.
(This used to be commit
06e20c287898d21e437ab117eb5eeeaf2420ba78)
struct smb_Dir *dir_hnd = NULL;
const char *dname;
+ /* Ensure we check bad_path in the wcard case.
+ * This may not be correct w.r.t. Windows (needs
+ * smbtorture test cases which will be forthcoming)
+ * but prevents us from continuing in the obvious
+ * bad path case. This is merely a placeholder. JRA.
+ */
+
+ if (!rc && bad_path) {
+ return NT_STATUS_OBJECT_PATH_NOT_FOUND;
+ }
+
if (strequal(mask,"????????.???"))
pstrcpy(mask,"*");