1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

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

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

View File

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