diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-05-15 10:52:54 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-05-15 10:52:54 +0000 |
commit | f9e940efc715a03d70791fd747993d56383706ff (patch) | |
tree | b86e984724f691c88b2d994148f2191399d86f77 /params.c | |
parent | 1a016bfdec2823c6d4e78a3dcc253cdfc30a10af (diff) | |
download | rsync-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.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 */ /* -------------------------------------------------------------------------- */ + |