summaryrefslogtreecommitdiff
path: root/params.c
diff options
context:
space:
mode:
authorDavid Dykstra <dwd@samba.org>2002-08-30 23:27:26 +0000
committerDavid Dykstra <dwd@samba.org>2002-08-30 23:27:26 +0000
commit30e8c8e1e48088477f0befdd08922caa6919bc51 (patch)
treef9726762dc37e47903eb1d9d107f717185b4a323 /params.c
parentd53d7795ee771a149a6ae010107bf3bf6d7588d0 (diff)
downloadrsync-30e8c8e1e48088477f0befdd08922caa6919bc51.tar.gz
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/params.c b/params.c
index 323d20ba..81638118 100644
--- a/params.c
+++ b/params.c
@@ -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 );