summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-12-10 17:49:11 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-12-10 17:49:11 +0000
commitb719173ecb7eeff518d27952c523a64bcbcf0fb2 (patch)
tree8b93a4dac9e0e82cb14d984d0b96a2090f74ca68 /source3
parentb02557f80e80e6fc270f253ba139ee8e4903a459 (diff)
downloadsamba-b719173ecb7eeff518d27952c523a64bcbcf0fb2.tar.gz
samba-b719173ecb7eeff518d27952c523a64bcbcf0fb2.tar.bz2
samba-b719173ecb7eeff518d27952c523a64bcbcf0fb2.zip
Added in veto files parameter create by Whistle.
jra@cygnus.com (This used to be commit d5659df9c23822766501397b8fbbffbce6842ea7)
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;