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 copy_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 348-353
void usage(enum logcode F)
Link Here
|
348 |
rprintf(F," -o, --owner preserve owner (super-user only)\n"); |
349 |
rprintf(F," -o, --owner preserve owner (super-user only)\n"); |
349 |
rprintf(F," -g, --group preserve group\n"); |
350 |
rprintf(F," -g, --group preserve group\n"); |
350 |
rprintf(F," --devices preserve device files (super-user only)\n"); |
351 |
rprintf(F," --devices preserve device files (super-user only)\n"); |
|
|
352 |
rprintf(F," --copy-devices copy device contents as regular file\n"); |
351 |
rprintf(F," --specials preserve special files\n"); |
353 |
rprintf(F," --specials preserve special files\n"); |
352 |
rprintf(F," -D same as --devices --specials\n"); |
354 |
rprintf(F," -D same as --devices --specials\n"); |
353 |
rprintf(F," -t, --times preserve modification times\n"); |
355 |
rprintf(F," -t, --times preserve modification times\n"); |
Lines 506-511
static struct poptOption long_options[] = {
Link Here
|
506 |
{"no-D", 0, POPT_ARG_NONE, 0, OPT_NO_D, 0, 0 }, |
508 |
{"no-D", 0, POPT_ARG_NONE, 0, OPT_NO_D, 0, 0 }, |
507 |
{"devices", 0, POPT_ARG_VAL, &preserve_devices, 1, 0, 0 }, |
509 |
{"devices", 0, POPT_ARG_VAL, &preserve_devices, 1, 0, 0 }, |
508 |
{"no-devices", 0, POPT_ARG_VAL, &preserve_devices, 0, 0, 0 }, |
510 |
{"no-devices", 0, POPT_ARG_VAL, &preserve_devices, 0, 0, 0 }, |
|
|
511 |
{"copy-devices", 0, POPT_ARG_NONE, ©_devices, 0, 0, 0 }, |
509 |
{"specials", 0, POPT_ARG_VAL, &preserve_specials, 1, 0, 0 }, |
512 |
{"specials", 0, POPT_ARG_VAL, &preserve_specials, 1, 0, 0 }, |
510 |
{"no-specials", 0, POPT_ARG_VAL, &preserve_specials, 0, 0, 0 }, |
513 |
{"no-specials", 0, POPT_ARG_VAL, &preserve_specials, 0, 0, 0 }, |
511 |
{"links", 'l', POPT_ARG_VAL, &preserve_links, 1, 0, 0 }, |
514 |
{"links", 'l', POPT_ARG_VAL, &preserve_links, 1, 0, 0 }, |
Lines 2074-2079
void server_options(char **args, int *argc_p)
Link Here
|
2074 |
else if (remove_source_files) |
2077 |
else if (remove_source_files) |
2075 |
args[ac++] = "--remove-sent-files"; |
2078 |
args[ac++] = "--remove-sent-files"; |
2076 |
|
2079 |
|
|
|
2080 |
if (copy_devices) |
2081 |
args[ac++] = "--copy-devices"; |
2082 |
|
2077 |
if (ac > MAX_SERVER_ARGS) { /* Not possible... */ |
2083 |
if (ac > MAX_SERVER_ARGS) { /* Not possible... */ |
2078 |
rprintf(FERROR, "argc overflow in server_options().\n"); |
2084 |
rprintf(FERROR, "argc overflow in server_options().\n"); |
2079 |
exit_cleanup(RERR_MALLOC); |
2085 |
exit_cleanup(RERR_MALLOC); |