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:
@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user