X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f0fbf1d670ee13bb461d44ac089ef9ecea267c7f..edb977215ba3ac0d64dc7208f67791afe11bb55d:/options.c diff --git a/options.c b/options.c index cd6ed540..0a0261b9 100644 --- a/options.c +++ b/options.c @@ -116,7 +116,6 @@ int checksum_seed = 0; int inplace = 0; int delay_updates = 0; long block_size = 0; /* "long" because popt can't set an int32. */ -int flist_extra_cnt = 0; /* count of file-list extras that everyone gets */ /** Network address family. **/ #ifdef INET6 @@ -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"); @@ -1219,11 +1218,6 @@ int parse_arguments(int *argc, const char ***argv, int frommain) need_messages_from_generator = 1; } - if (preserve_uid) - preserve_uid = ++flist_extra_cnt; - if (preserve_gid) - preserve_gid = ++flist_extra_cnt; - *argv = poptGetArgs(pc); *argc = count_args(*argv); @@ -1666,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";