summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
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);