git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00f71fc
)
Ensure '.' and '..' don't match in delete requests.
author
Jeremy Allison
<jra@samba.org>
Tue, 24 Feb 2004 01:46:24 +0000
(
01:46
+0000)
committer
Jeremy Allison
<jra@samba.org>
Tue, 24 Feb 2004 01:46:24 +0000
(
01:46
+0000)
Jeremy.
source/smbd/reply.c
patch
|
blob
|
history
diff --git
a/source/smbd/reply.c
b/source/smbd/reply.c
index 26c107e17a26e34de2bd6561cccf8ff3faca865d..0fe3be07522627cc4867cbc162ff8be2ae7bfddd 100644
(file)
--- a/
source/smbd/reply.c
+++ b/
source/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;