mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
testparm: Warnings should not cause failure
Remove the return code of 1 associated with some warnings. Warnings should not cause failure. If any of these cases should cause a failure then they should be changed to errors. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Nov 20 12:19:59 CET 2013 on sn-devel-104
This commit is contained in:
parent
c7762042ba
commit
3f77bf2ce3
@ -86,7 +86,6 @@ static int do_global_checks(void)
|
||||
if (strequal(lp_workgroup(), lp_netbios_name())) {
|
||||
fprintf(stderr, "WARNING: 'workgroup' and 'netbios name' "
|
||||
"must differ.\n\n");
|
||||
ret = 1;
|
||||
}
|
||||
|
||||
if (!directory_exist_stat(lp_lockdir(), &st)) {
|
||||
@ -97,7 +96,6 @@ static int do_global_checks(void)
|
||||
fprintf(stderr, "WARNING: lock directory %s should have "
|
||||
"permissions 0755 for browsing to work\n\n",
|
||||
lp_lockdir());
|
||||
ret = 1;
|
||||
}
|
||||
|
||||
if (!directory_exist_stat(lp_statedir(), &st)) {
|
||||
@ -108,7 +106,6 @@ static int do_global_checks(void)
|
||||
fprintf(stderr, "WARNING: state directory %s should have "
|
||||
"permissions 0755 for browsing to work\n\n",
|
||||
lp_statedir());
|
||||
ret = 1;
|
||||
}
|
||||
|
||||
if (!directory_exist_stat(lp_cachedir(), &st)) {
|
||||
@ -119,7 +116,6 @@ static int do_global_checks(void)
|
||||
fprintf(stderr, "WARNING: cache directory %s should have "
|
||||
"permissions 0755 for browsing to work\n\n",
|
||||
lp_cachedir());
|
||||
ret = 1;
|
||||
}
|
||||
|
||||
if (!directory_exist_stat(lp_piddir(), &st)) {
|
||||
|
Loading…
Reference in New Issue
Block a user