Rolled back Lukes changes. Not quite ready for prime time.
[kai/samba.git] / source3 / lib / util.c
index 18f22ad6843f0e6d6e786fe3193104bbefd6636a..9ebfdca88ea87c0c8bbbd27d995d0f2d336cf366 100644 (file)
@@ -3427,9 +3427,9 @@ char *readdirname(void *p)
 }
 
 
-BOOL is_vetoed_name(int snum, char *name)
+BOOL is_vetoed_name(char *name)
 {
-  char *namelist = lp_veto_files(snum);
+  char *namelist = lp_veto_files();
   char *nameptr = namelist;
   char *name_end;
 
@@ -3469,8 +3469,9 @@ BOOL is_vetoed_name(int snum, char *name)
   return 0;
 }
 
-static BOOL is_in_path(char *name, char *namelist)
+BOOL is_vetoed_path(char *name)
 {
+  char *namelist = lp_veto_files();
   char *nameptr = namelist;
   char *sub;
   char *name_end;
@@ -3521,22 +3522,6 @@ static BOOL is_in_path(char *name, char *namelist)
   return 0;
 }
 
-/****************************************************************************
-used to make files hidden, but still accessible
-****************************************************************************/
-BOOL is_hidden_path(int cnum, char *path)
-{
-  return is_in_path(path, lp_hide_files(cnum));
-}
-
-/****************************************************************************
-used to make files _completely_ inaccessible
-****************************************************************************/
-BOOL is_vetoed_path(int cnum, char *path)
-{
-  return is_in_path(path, lp_veto_files(cnum));
-}
-
 /****************************************************************************
 routine to do file locking
 ****************************************************************************/