diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 9ebfdca88e..889aa0b976 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -3469,9 +3469,8 @@ BOOL is_vetoed_name(char *name) return 0; } -BOOL is_vetoed_path(char *name) +static BOOL is_in_path(char *name, char *namelist) { - char *namelist = lp_veto_files(); char *nameptr = namelist; char *sub; char *name_end; @@ -3523,6 +3522,22 @@ BOOL is_vetoed_path(char *name) } /**************************************************************************** +used to make files hidden, but still accessible +****************************************************************************/ +BOOL is_hidden_path(char *path) +{ + return is_in_path(path, lp_hide_files()); +} + +/**************************************************************************** +used to make files _completely_ inaccessible +****************************************************************************/ +BOOL is_vetoed_path(char *path) +{ + return is_in_path(path, lp_veto_files()); +} + +/**************************************************************************** routine to do file locking ****************************************************************************/ BOOL fcntl_lock(int fd,int op,uint32 offset,uint32 count,int type) |