Lines 48-53
int append_mode = 0;
Link Here
|
48 |
int keep_dirlinks = 0; |
48 |
int keep_dirlinks = 0; |
49 |
int copy_dirlinks = 0; |
49 |
int copy_dirlinks = 0; |
50 |
int copy_links = 0; |
50 |
int copy_links = 0; |
|
|
51 |
int rw_devices = 0; |
51 |
int preserve_links = 0; |
52 |
int preserve_links = 0; |
52 |
int preserve_hard_links = 0; |
53 |
int preserve_hard_links = 0; |
53 |
int preserve_acls = 0; |
54 |
int preserve_acls = 0; |
Lines 695-700
void usage(enum logcode F)
Link Here
|
695 |
rprintf(F," -o, --owner preserve owner (super-user only)\n"); |
696 |
rprintf(F," -o, --owner preserve owner (super-user only)\n"); |
696 |
rprintf(F," -g, --group preserve group\n"); |
697 |
rprintf(F," -g, --group preserve group\n"); |
697 |
rprintf(F," --devices preserve device files (super-user only)\n"); |
698 |
rprintf(F," --devices preserve device files (super-user only)\n"); |
|
|
699 |
rprintf(F," --rw-devices read/write device contents as regular file (implies --inplace)\n"); |
698 |
rprintf(F," --specials preserve special files\n"); |
700 |
rprintf(F," --specials preserve special files\n"); |
699 |
rprintf(F," -D same as --devices --specials\n"); |
701 |
rprintf(F," -D same as --devices --specials\n"); |
700 |
rprintf(F," -t, --times preserve modification times\n"); |
702 |
rprintf(F," -t, --times preserve modification times\n"); |
Lines 863-868
static struct poptOption long_options[] = {
Link Here
|
863 |
{"no-D", 0, POPT_ARG_NONE, 0, OPT_NO_D, 0, 0 }, |
865 |
{"no-D", 0, POPT_ARG_NONE, 0, OPT_NO_D, 0, 0 }, |
864 |
{"devices", 0, POPT_ARG_VAL, &preserve_devices, 1, 0, 0 }, |
866 |
{"devices", 0, POPT_ARG_VAL, &preserve_devices, 1, 0, 0 }, |
865 |
{"no-devices", 0, POPT_ARG_VAL, &preserve_devices, 0, 0, 0 }, |
867 |
{"no-devices", 0, POPT_ARG_VAL, &preserve_devices, 0, 0, 0 }, |
|
|
868 |
{"rw-devices", 0, POPT_ARG_NONE, &rw_devices, 0, 0, 0 }, |
866 |
{"specials", 0, POPT_ARG_VAL, &preserve_specials, 1, 0, 0 }, |
869 |
{"specials", 0, POPT_ARG_VAL, &preserve_specials, 1, 0, 0 }, |
867 |
{"no-specials", 0, POPT_ARG_VAL, &preserve_specials, 0, 0, 0 }, |
870 |
{"no-specials", 0, POPT_ARG_VAL, &preserve_specials, 0, 0, 0 }, |
868 |
{"links", 'l', POPT_ARG_VAL, &preserve_links, 1, 0, 0 }, |
871 |
{"links", 'l', POPT_ARG_VAL, &preserve_links, 1, 0, 0 }, |
Lines 1801-1806
int parse_arguments(int *argc_p, const char ***argv_p)
Link Here
|
1801 |
set_output_verbosity(verbose, DEFAULT_PRIORITY); |
1804 |
set_output_verbosity(verbose, DEFAULT_PRIORITY); |
|
|
1805 |
if (rw_devices) { |
1806 |
inplace = 1; |
1807 |
ignore_times = 1; |
1808 |
} |
1809 |
|
1802 |
if (do_stats) { |
1810 |
if (do_stats) { |
1803 |
parse_output_words(info_words, info_levels, |
1811 |
parse_output_words(info_words, info_levels, |
1804 |
verbose > 1 ? "stats3" : "stats2", DEFAULT_PRIORITY); |
1812 |
verbose > 1 ? "stats3" : "stats2", DEFAULT_PRIORITY); |
Lines 2661-2666
void server_options(char **args, int *argc_p)
Link Here
|
2661 |
else if (remove_source_files) |
2669 |
else if (remove_source_files) |
2662 |
args[ac++] = "--remove-sent-files"; |
2670 |
args[ac++] = "--remove-sent-files"; |
|
|
2671 |
if (rw_devices) |
2672 |
args[ac++] = "--rw-devices"; |
2673 |
|
2663 |
if (ac > MAX_SERVER_ARGS) { /* Not possible... */ |
2674 |
if (ac > MAX_SERVER_ARGS) { /* Not possible... */ |
2664 |
rprintf(FERROR, "argc overflow in server_options().\n"); |
2675 |
rprintf(FERROR, "argc overflow in server_options().\n"); |
2665 |
exit_cleanup(RERR_MALLOC); |
2676 |
exit_cleanup(RERR_MALLOC); |