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:
parent
00f71fc836
commit
1b0d54170a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user