X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/d619ff1376cf0a55ff2fa0a6baa776f22cac5139..edb977215ba3ac0d64dc7208f67791afe11bb55d:/options.c diff --git a/options.c b/options.c index 3c5ecb5e..0a0261b9 100644 --- a/options.c +++ b/options.c @@ -117,7 +117,6 @@ int inplace = 0; int delay_updates = 0; long block_size = 0; /* "long" because popt can't set an int32. */ - /** Network address family. **/ #ifdef INET6 int default_af_hint = 0; /* Any protocol */ @@ -371,7 +370,7 @@ void usage(enum logcode F) rprintf(F," --out-format=FORMAT output updates using the specified FORMAT\n"); rprintf(F," --log-file=FILE log what we're doing to the specified FILE\n"); rprintf(F," --log-file-format=FMT log updates using the specified FMT\n"); - rprintf(F," --password-file=FILE read password from FILE\n"); + rprintf(F," --password-file=FILE read daemon-access password from FILE\n"); rprintf(F," --list-only list the files instead of copying them\n"); rprintf(F," --bwlimit=KBPS limit I/O bandwidth; KBytes per second\n"); rprintf(F," --write-batch=FILE write a batched update to FILE\n"); @@ -1661,11 +1660,11 @@ void server_options(char **args,int *argc) args[ac++] = "--delete"; if (delete_before > 1) args[ac++] = "--delete-before"; - if (delete_during) { - args[ac++] = delete_during == 2 ? "--delete-delay" - : "--delete-during"; - } - if (delete_after) + else if (delete_during == 2) + args[ac++] = "--delete-delay"; + else if (delete_during) + args[ac++] = "--delete-during"; + else if (delete_after) args[ac++] = "--delete-after"; if (force_delete) args[ac++] = "--force";