From: Samba Release Account Date: Tue, 10 Dec 1996 17:49:11 +0000 (+0000) Subject: Added in veto files parameter create by Whistle. X-Git-Tag: samba-1.9.16p10~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5659df9c23822766501397b8fbbffbce6842ea7;p=thirdparty%2Fsamba.git Added in veto files parameter create by Whistle. jra@cygnus.com --- diff --git a/source/smbd/dir.c b/source/smbd/dir.c index 73c4afd77e6..f3c1ae020e1 100644 --- a/source/smbd/dir.c +++ b/source/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;