summaryrefslogtreecommitdiff
path: root/params.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-05-15 10:52:54 +0000
committerAndrew Tridgell <tridge@samba.org>1998-05-15 10:52:54 +0000
commitf9e940efc715a03d70791fd747993d56383706ff (patch)
treeb86e984724f691c88b2d994148f2191399d86f77 /params.c
parent1a016bfdec2823c6d4e78a3dcc253cdfc30a10af (diff)
downloadrsync-f9e940efc715a03d70791fd747993d56383706ff.tar.gz
load just the globals section of the config file when the daemon
starts so we know the syslog facility for the "starting" message
Diffstat (limited to 'params.c')
-rw-r--r--params.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/params.c b/params.c
index b89d034c..be019308 100644
--- a/params.c
+++ b/params.c
@@ -451,10 +451,11 @@ static BOOL Parse( FILE *InFile,
break;
case '[': /* Section Header. */
- if( !Section( InFile, sfunc ) )
- return( False );
- c = EatWhitespace( InFile );
- break;
+ if (!sfunc) return True;
+ if( !Section( InFile, sfunc ) )
+ return( False );
+ c = EatWhitespace( InFile );
+ break;
case '\\': /* Bogus backslash. */
c = EatWhitespace( InFile );
@@ -558,3 +559,4 @@ BOOL pm_process( char *FileName,
} /* pm_process */
/* -------------------------------------------------------------------------- */
+