From 4568c8bb228663c59b09d82fa5052b8eea32c465 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 24 Feb 2004 01:45:56 +0000 Subject: Ensure '.' and '..' don't match in delete requests. Jeremy. (This used to be commit c85b617aa03c1524f659100030a8e96cef38fb62) --- source3/smbd/reply.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 26c107e17a..0fe3be0752 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1449,7 +1449,10 @@ NTSTATUS unlink_internals(connection_struct *conn, int dirtype, char *name) while ((dname = ReadDirName(dirptr))) { pstring fname; pstrcpy(fname,dname); - + + if((strcmp(fname, ".") == 0) || (strcmp(fname, "..")==0)) + continue; + if(!mask_match(fname, mask, case_sensitive)) continue; -- cgit