summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-07-01 20:50:57 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-07-01 20:50:57 +0000
commit1599e41ec42998fdf05a3b22c3f3a93f8b4832ed (patch)
tree885e0c21a8938455fc8014438bcf6b5a16c5b668 /source3/lib/util.c
parentce9baa3bac6eba5f7a468557572f342d3ba918ec (diff)
downloadsamba-1599e41ec42998fdf05a3b22c3f3a93f8b4832ed.tar.gz
samba-1599e41ec42998fdf05a3b22c3f3a93f8b4832ed.tar.bz2
samba-1599e41ec42998fdf05a3b22c3f3a93f8b4832ed.zip
Rolled back Lukes changes. Not quite ready for prime time.
Jeremy (jallison@whistle.com) (This used to be commit ed04ec7ab8b8e73b5442bdef03d5a3c994247b4e)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c23
1 files changed, 4 insertions, 19 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 18f22ad684..9ebfdca88e 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -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;
@@ -3522,22 +3523,6 @@ static BOOL is_in_path(char *name, char *namelist)
}
/****************************************************************************
-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
****************************************************************************/
BOOL fcntl_lock(int fd,int op,uint32 offset,uint32 count,int type)