summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/reply.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index cc181223f2..b3ee18befe 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -1995,6 +1995,11 @@ NTSTATUS unlink_internals(connection_struct *conn, uint32 dirtype,
*directory = *mask = 0;
rc = unix_convert(name,conn,0,&bad_path,&sbuf);
+ if (bad_path) {
+ return has_wild
+ ? NT_STATUS_INVALID_PARAMETER
+ : NT_STATUS_OBJECT_PATH_NOT_FOUND;
+ }
/*
* Feel my pain, this code needs rewriting *very* badly! -- vl