mirror of
https://github.com/samba-team/samba.git
synced 2025-03-05 20:58:40 +03:00
testparm now prints a warning if the lock directory doesn't have 0644
permissions. (This used to be commit 10303a78d4b12a03166db89202759cd745c516c5)
This commit is contained in:
parent
8487f959d1
commit
852519282d
@ -47,13 +47,24 @@ extern pstring myhostname;
|
||||
|
||||
void do_global_checks(void)
|
||||
{
|
||||
if(lp_security() > SEC_SHARE && lp_revalidate(-1))
|
||||
printf("WARNING: the 'revalidate' parameter is ignored in all but \
|
||||
struct stat st;
|
||||
if (lp_security() > SEC_SHARE && lp_revalidate(-1)) {
|
||||
printf("WARNING: the 'revalidate' parameter is ignored in all but \
|
||||
'security=share' mode.\n");
|
||||
}
|
||||
|
||||
if( lp_wins_support() && *lp_wins_server() )
|
||||
printf("ERROR: both 'wins support = true' and 'wins server = <server>' \
|
||||
if (lp_wins_support() && *lp_wins_server()) {
|
||||
printf("ERROR: both 'wins support = true' and 'wins server = <server>' \
|
||||
cannot be set in the smb.conf file. nmbd will abort with this setting.\n");
|
||||
}
|
||||
|
||||
if (!directory_exist(lp_lockdir(), &st)) {
|
||||
printf("ERROR: lock directory %s does not exist\n",
|
||||
lp_lockdir());
|
||||
} else if ((st.st_mode & 0666) != 0644) {
|
||||
printf("WARNING: lock directory %s should have permissions 0644 for browsing to work\n",
|
||||
lp_lockdir());
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
Loading…
x
Reference in New Issue
Block a user