summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
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/smbd/server.c
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/smbd/server.c')
-rw-r--r--source3/smbd/server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 30cf9cb016..5af77d0ac4 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -222,7 +222,7 @@ int dos_mode(int cnum,char *path,struct stat *sbuf)
result |= aHIDDEN;
}
- if (is_hidden_path(path))
+ if (is_hidden_path(SNUM(cnum), path))
{
result |= aHIDDEN;
}
@@ -366,7 +366,7 @@ static BOOL scan_directory(char *path, char *name,int snum,BOOL docache)
check_mangled_stack(name);
/* open the directory */
- if (!(cur_dir = OpenDir(path)))
+ if (!(cur_dir = OpenDir(snum, path)))
{
DEBUG(3,("scan dir didn't open dir [%s]\n",path));
return(False);
@@ -796,7 +796,7 @@ BOOL check_name(char *name,int cnum)
errno = 0;
- if( is_vetoed_path(name))
+ if( is_vetoed_path(SNUM(cnum), name))
{
DEBUG(5,("file path name %s vetoed\n",name));
return(0);