diff options
author | Volker Lendecke <vl@samba.org> | 2009-11-27 13:19:30 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-12-08 09:15:08 +0100 |
commit | 2a217f10a2f0e7e5c43db697b66cae50ee96c91b (patch) | |
tree | 7631ca447cd6d180963e89ef927973c5b2800b52 /source3/lib | |
parent | 1371dbf388cec245c942ef7a6fb9d5354252736a (diff) | |
download | samba-2a217f10a2f0e7e5c43db697b66cae50ee96c91b.tar.gz |
s3: Move directory_exist_stat to testparm.c, it only looks at the mode
(cherry picked from commit f216509a4004cc3d7920e9ef25160222166299a6)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 8e04bcdb4eb..5fe7bce144e 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -554,27 +554,6 @@ bool socket_exist(const char *fname) } /******************************************************************* - Check if a directory exists. -********************************************************************/ - -bool directory_exist_stat(char *dname,SMB_STRUCT_STAT *st) -{ - SMB_STRUCT_STAT st2; - bool ret; - - if (!st) - st = &st2; - - if (sys_stat(dname, st, lp_fake_dir_create_times()) != 0) - return(False); - - ret = S_ISDIR(st->st_ex_mode); - if(!ret) - errno = ENOTDIR; - return ret; -} - -/******************************************************************* Returns the size in bytes of the named given the stat struct. ********************************************************************/ |