From 3af5243bcc53e89d63faee981a86d05eebe2f17a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Villemain?= Date: Mon, 28 Mar 2011 18:37:41 +0200 Subject: [PATCH] Fix rsync return code test --- repmgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/repmgr.c b/repmgr.c index 607c869d..51e8aa56 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1485,7 +1485,7 @@ copy_remote_files(char *host, char *remote_user, char *remote_path, * List of ignorable rsync errors: * 24 Partial transfer due to vanished source files */ - if ((r == 24) && is_directory) + if ((WEXITSTATUS(r) == 24) && is_directory) { if (!runtime_options.ignore_rsync_warn) { @@ -1501,7 +1501,6 @@ copy_remote_files(char *host, char *remote_user, char *remote_path, else r = 0; } - if (r != 0) log_err(_("Can't rsync from remote file or directory (%s:%s)\n"), host_string, remote_path);