1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-30 17:49:30 +03:00

Ensure '.' and '..' don't match in delete requests.

Jeremy.
This commit is contained in:
Jeremy Allison
-
parent 00f71fc836
commit 1b0d54170a

View File

@ -1450,6 +1450,9 @@ NTSTATUS unlink_internals(connection_struct *conn, int dirtype, char *name)
pstring fname; pstring fname;
pstrcpy(fname,dname); pstrcpy(fname,dname);
if((strcmp(fname, ".") == 0) || (strcmp(fname, "..")==0))
continue;
if(!mask_match(fname, mask, case_sensitive)) if(!mask_match(fname, mask, case_sensitive))
continue; continue;