}
if (protect_args < 0) {
+ if (am_server)
+ protect_args = 0;
+ else if ((arg = getenv("RSYNC_PROTECT_ARGS")) != NULL && *arg)
+ protect_args = atoi(arg) ? 1 : 0;
+ else {
#ifdef RSYNC_USE_PROTECTED_ARGS
- if (!am_server)
protect_args = 1;
- else
-#endif
+#else
protect_args = 0;
+#endif
+ }
}
if (human_readable > 1 && argc == 2 && !am_server) {