Lines 48-53
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 351-356
Link Here
|
351 |
rprintf(F," -o, --owner preserve owner (super-user only)\n"); |
352 |
rprintf(F," -o, --owner preserve owner (super-user only)\n"); |
352 |
rprintf(F," -g, --group preserve group\n"); |
353 |
rprintf(F," -g, --group preserve group\n"); |
353 |
rprintf(F," --devices preserve device files (super-user only)\n"); |
354 |
rprintf(F," --devices preserve device files (super-user only)\n"); |
|
|
355 |
rprintf(F," --rw-devices read/write device contents as regular file (implies --inplace)\n"); |
354 |
rprintf(F," --specials preserve special files\n"); |
356 |
rprintf(F," --specials preserve special files\n"); |
355 |
rprintf(F," -D same as --devices --specials\n"); |
357 |
rprintf(F," -D same as --devices --specials\n"); |
356 |
rprintf(F," -t, --times preserve modification times\n"); |
358 |
rprintf(F," -t, --times preserve modification times\n"); |
Lines 509-514
Link Here
|
509 |
{"no-D", 0, POPT_ARG_NONE, 0, OPT_NO_D, 0, 0 }, |
511 |
{"no-D", 0, POPT_ARG_NONE, 0, OPT_NO_D, 0, 0 }, |
510 |
{"devices", 0, POPT_ARG_VAL, &preserve_devices, 1, 0, 0 }, |
512 |
{"devices", 0, POPT_ARG_VAL, &preserve_devices, 1, 0, 0 }, |
511 |
{"no-devices", 0, POPT_ARG_VAL, &preserve_devices, 0, 0, 0 }, |
513 |
{"no-devices", 0, POPT_ARG_VAL, &preserve_devices, 0, 0, 0 }, |
|
|
514 |
{"rw-devices", 0, POPT_ARG_NONE, &rw_devices, 0, 0, 0 }, |
512 |
{"specials", 0, POPT_ARG_VAL, &preserve_specials, 1, 0, 0 }, |
515 |
{"specials", 0, POPT_ARG_VAL, &preserve_specials, 1, 0, 0 }, |
513 |
{"no-specials", 0, POPT_ARG_VAL, &preserve_specials, 0, 0, 0 }, |
516 |
{"no-specials", 0, POPT_ARG_VAL, &preserve_specials, 0, 0, 0 }, |
514 |
{"links", 'l', POPT_ARG_VAL, &preserve_links, 1, 0, 0 }, |
517 |
{"links", 'l', POPT_ARG_VAL, &preserve_links, 1, 0, 0 }, |
Lines 1284-1289
Link Here
|
1284 |
exit_cleanup(0); |
1287 |
exit_cleanup(0); |
1285 |
} |
1288 |
} |
1286 |
|
1289 |
|
|
|
1290 |
if (rw_devices) { |
1291 |
inplace = 1; |
1292 |
ignore_times = 1; |
1293 |
} |
1294 |
|
1287 |
#ifdef ICONV_OPTION |
1295 |
#ifdef ICONV_OPTION |
1288 |
if (iconv_opt && protect_args != 2) { |
1296 |
if (iconv_opt && protect_args != 2) { |
1289 |
if (!am_server && strcmp(iconv_opt, "-") == 0) |
1297 |
if (!am_server && strcmp(iconv_opt, "-") == 0) |
Lines 2072-2077
Link Here
|
2072 |
else if (remove_source_files) |
2080 |
else if (remove_source_files) |
2073 |
args[ac++] = "--remove-sent-files"; |
2081 |
args[ac++] = "--remove-sent-files"; |
2074 |
|
2082 |
|
|
|
2083 |
if (rw_devices) |
2084 |
args[ac++] = "--rw-devices"; |
2085 |
|
2075 |
if (ac > MAX_SERVER_ARGS) { /* Not possible... */ |
2086 |
if (ac > MAX_SERVER_ARGS) { /* Not possible... */ |
2076 |
rprintf(FERROR, "argc overflow in server_options().\n"); |
2087 |
rprintf(FERROR, "argc overflow in server_options().\n"); |
2077 |
exit_cleanup(RERR_MALLOC); |
2088 |
exit_cleanup(RERR_MALLOC); |