diff options
author | Steven Danneman <steven.danneman@isilon.com> | 2009-01-08 11:18:13 -0800 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-01-12 12:16:03 +0100 |
commit | 19a05bf2f485023b11b41dfae3f6459847d55ef7 (patch) | |
tree | 74b17e9f203dd81926a09876dc78e7cae3e799f6 /source3/utils | |
parent | ffb53c35748154081c1587b5f167721e32ff10f2 (diff) | |
download | samba-19a05bf2f485023b11b41dfae3f6459847d55ef7.tar.gz samba-19a05bf2f485023b11b41dfae3f6459847d55ef7.tar.bz2 samba-19a05bf2f485023b11b41dfae3f6459847d55ef7.zip |
Make STATEDIR and CACHEDIR configurable through ./configure and loadparm.c
If they are not explicitely set in either place both will default to LOCKDIR.
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/testparm.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c index da129cf7c0..e8458fda1b 100644 --- a/source3/utils/testparm.c +++ b/source3/utils/testparm.c @@ -66,6 +66,26 @@ cannot be set in the smb.conf file. nmbd will abort with this setting.\n"); ret = 1; } + if (!directory_exist_stat(lp_statedir(), &st)) { + fprintf(stderr, "ERROR: state directory %s does not exist\n", + lp_statedir()); + ret = 1; + } else if ((st.st_mode & 0777) != 0755) { + fprintf(stderr, "WARNING: state directory %s should have permissions 0755 for browsing to work\n", + lp_statedir()); + ret = 1; + } + + if (!directory_exist_stat(lp_cachedir(), &st)) { + fprintf(stderr, "ERROR: cache directory %s does not exist\n", + lp_cachedir()); + ret = 1; + } else if ((st.st_mode & 0777) != 0755) { + fprintf(stderr, "WARNING: cache directory %s should have permissions 0755 for browsing to work\n", + lp_cachedir()); + ret = 1; + } + if (!directory_exist_stat(lp_piddir(), &st)) { fprintf(stderr, "ERROR: pid directory %s does not exist\n", lp_piddir()); |