Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some inplace-checking code should have been inside the #ifdef that
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
edf7214
..
14c60ce
100644
(file)
--- 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;
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;
}
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");
} else {
if (keep_partial && !partial_dir)
partial_dir = getenv("RSYNC_PARTIAL_DIR");