From ded4daf04910e15a9bafa523042ec02a2a745504 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 15 Jan 2005 20:22:54 +0000 Subject: [PATCH] Some inplace-checking code should have been inside the #ifdef that handles the case where --inplace cannot be supported. --- options.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/options.c b/options.c index edf72146..14c60cee 100644 --- a/options.c +++ b/options.c @@ -952,18 +952,18 @@ int parse_arguments(int *argc, const char ***argv, int frommain) return 0; } keep_partial = 0; -#else - snprintf(err_buf, sizeof err_buf, - "--inplace is not supported on this %s\n", - am_server ? "server" : "client"); - return 0; -#endif if (dest_option) { snprintf(err_buf, sizeof err_buf, "--inplace does not yet work with %s\n", dest_option); return 0; } +#else + snprintf(err_buf, sizeof err_buf, + "--inplace is not supported on this %s\n", + am_server ? "server" : "client"); + return 0; +#endif } else { if (keep_partial && !partial_dir) partial_dir = getenv("RSYNC_PARTIAL_DIR"); -- 2.34.1