summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-07-01 19:42:42 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-07-01 19:42:42 +0000
commitce9baa3bac6eba5f7a468557572f342d3ba918ec (patch)
tree269614c7ba4116efce19444005dcaec4d3f7d1ac /source3/lib
parent738d29667f9cd1ce312ec011f5e37ce584d7173d (diff)
downloadsamba-ce9baa3bac6eba5f7a468557572f342d3ba918ec.tar.gz
samba-ce9baa3bac6eba5f7a468557572f342d3ba918ec.tar.bz2
samba-ce9baa3bac6eba5f7a468557572f342d3ba918ec.zip
made "hide files" and "veto files" into per-service parameter sections,
instead of just [global]. this makes it easier to decide whether to remove the "hide dot files" per-service parameter, and supercede it with a default "hide files" value of ".*". lkcl (This used to be commit f3ee4620ea7b93e4a00e77f9d787a118fd11ccaa)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 889aa0b976..18f22ad684 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -3427,9 +3427,9 @@ char *readdirname(void *p)
}
-BOOL is_vetoed_name(char *name)
+BOOL is_vetoed_name(int snum, char *name)
{
- char *namelist = lp_veto_files();
+ char *namelist = lp_veto_files(snum);
char *nameptr = namelist;
char *name_end;
@@ -3524,17 +3524,17 @@ static BOOL is_in_path(char *name, char *namelist)
/****************************************************************************
used to make files hidden, but still accessible
****************************************************************************/
-BOOL is_hidden_path(char *path)
+BOOL is_hidden_path(int cnum, char *path)
{
- return is_in_path(path, lp_hide_files());
+ return is_in_path(path, lp_hide_files(cnum));
}
/****************************************************************************
used to make files _completely_ inaccessible
****************************************************************************/
-BOOL is_vetoed_path(char *path)
+BOOL is_vetoed_path(int cnum, char *path)
{
- return is_in_path(path, lp_veto_files());
+ return is_in_path(path, lp_veto_files(cnum));
}
/****************************************************************************