Added in veto files parameter create by Whistle.
authorSamba Release Account <samba-bugs@samba.org>
Tue, 10 Dec 1996 17:49:11 +0000 (17:49 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Tue, 10 Dec 1996 17:49:11 +0000 (17:49 +0000)
jra@cygnus.com
(This used to be commit d5659df9c23822766501397b8fbbffbce6842ea7)

source3/smbd/dir.c

index 73c4afd77e67c5914044a190982fd8a445bab7c3..f3c1ae020e1ed9dd7c1673fedfe1c25c2998c551 100644 (file)
@@ -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;