summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorHolger Hetterich <hhetter@novell.com>2010-12-03 16:43:47 -0800
committerJeremy Allison <jra@samba.org>2010-12-04 02:30:00 +0100
commitb8282a29f9983810d9c36607602d6974344a8197 (patch)
treecfd6d805b4e35fab0c97fa3ea14cca59e27f3e5c /lib/util
parent88a2ad28fe52cbe13d00b0115bf821e33f5791da (diff)
downloadsamba-b8282a29f9983810d9c36607602d6974344a8197.tar.gz
samba-b8282a29f9983810d9c36607602d6974344a8197.tar.bz2
samba-b8282a29f9983810d9c36607602d6974344a8197.zip
Fix bug #3185 - testparm exits 0 if it can read the config file regardless of errors
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Dec 4 02:30:00 CET 2010 on sn-devel-104
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/params.c b/lib/util/params.c
index 8d17e0db5a..45fcd5bdc8 100644
--- a/lib/util/params.c
+++ b/lib/util/params.c
@@ -358,7 +358,7 @@ static bool Parameter( myFILE *InFile, bool (*pfunc)(const char *, const char *,
case EOF:
InFile->bufr[i] = '\0';
DEBUG(1,("%s Unexpected end-of-file at: %s\n", func, InFile->bufr ));
- return( true );
+ return( false );
default:
if( isspace( c ) ) /* One ' ' per whitespace region. */