X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/df5cd107a57a592b196add0aac7642b89ac261b0..4e1f385711a5c5703eb1c3bbf21cc83c95fe3a6e:/clientserver.c diff --git a/clientserver.c b/clientserver.c index 6c2e6d9a..a1e15c06 100644 --- a/clientserver.c +++ b/clientserver.c @@ -47,7 +47,7 @@ extern int orig_umask; extern int no_detach; extern int default_af_hint; extern char *bind_address; -extern struct exclude_struct **server_exclude_list; +extern struct exclude_list_struct server_exclude_list; extern char *exclude_path_prefix; extern char *config_file; @@ -233,10 +233,10 @@ static int rsync_module(int f_in, int f_out, int i) if (!claim_connection(lp_lock_file(i), lp_max_connections(i))) { if (errno) { - rprintf(FERROR,"failed to open lock file %s : %s\n", - lp_lock_file(i), strerror(errno)); - io_printf(f_out, "@ERROR: failed to open lock file %s : %s\n", - lp_lock_file(i), strerror(errno)); + rsyserr(FERROR, errno, "failed to open lock file %s", + lp_lock_file(i)); + io_printf(f_out, "@ERROR: failed to open lock file %s\n", + lp_lock_file(i)); } else { rprintf(FERROR,"max connections (%d) reached\n", lp_max_connections(i));