diff options
author | David Dykstra <dwd@samba.org> | 2002-08-30 23:27:26 +0000 |
---|---|---|
committer | David Dykstra <dwd@samba.org> | 2002-08-30 23:27:26 +0000 |
commit | 30e8c8e1e48088477f0befdd08922caa6919bc51 (patch) | |
tree | f9726762dc37e47903eb1d9d107f717185b4a323 /params.c | |
parent | d53d7795ee771a149a6ae010107bf3bf6d7588d0 (diff) | |
download | rsync-30e8c8e1e48088477f0befdd08922caa6919bc51.tar.gz rsync-30e8c8e1e48088477f0befdd08922caa6919bc51.tar.bz2 rsync-30e8c8e1e48088477f0befdd08922caa6919bc51.zip |
When using daemon mode over a remote shell program and not running as root,
default the config file to just "rsyncd.conf" in the current directory
instead of /etc/rsyncd.conf. Also, fix problems with logging messages when
running daemon mode over a remote shell program: it was pretty much doing
the opposite of what it should have, sending early error messages to the
log and later messages to the client. Switched it around so the very early
error messages go to the client and the later ones go to the log.
Diffstat (limited to 'params.c')
-rw-r--r-- | params.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -491,8 +491,8 @@ static FILE *OpenConfFile( char *FileName ) OpenedFile = fopen( FileName, "r" ); if( NULL == OpenedFile ) { - rprintf(FERROR,"%s Unable to open configuration file \"%s\":\n\t%s\n", - func, FileName, strerror(errno)); + rprintf(FERROR,"rsync: unable to open configuration file \"%s\": %s\n", + FileName, strerror(errno)); } return( OpenedFile ); |