summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 73c4afd77e..f3c1ae020e 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -533,6 +533,9 @@ void *OpenDir(char *name)
while ((n = readdirname(p))) {
int l = strlen(n)+1;
+ /* If it's a vetoed file, pretend it doesn't even exist */
+ if(is_vetoed_name(n))
+ continue;
if (used + l > dirp->mallocsize) {
int s = MAX(used+l,used+2000);
char *r;