summaryrefslogtreecommitdiff
path: root/usr.bin/rsync/main.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-02-12 14:00:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-02-12 14:00:58 +0000
commitfc2ecb695a026ffecc3017be4e61dd913d923c38 (patch)
treeef328549fe88e3285d4898f4cc9263fc1fdead51 /usr.bin/rsync/main.c
parent8b4f8dea1860f571e9b102ccc93aa7c8c8c69988 (diff)
add long-opts aliases for single-letter options already present
ok florian benno
Diffstat (limited to 'usr.bin/rsync/main.c')
-rw-r--r--usr.bin/rsync/main.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/usr.bin/rsync/main.c b/usr.bin/rsync/main.c
index 354e7274618..b6541411ca6 100644
--- a/usr.bin/rsync/main.c
+++ b/usr.bin/rsync/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.7 2019/02/11 21:44:44 deraadt Exp $ */
+/* $Id: main.c,v 1.8 2019/02/12 14:00:57 deraadt Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -286,11 +286,17 @@ main(int argc, char *argv[])
int fds[2], c, st;
struct fargs *fargs;
struct option lopts[] = {
- { "delete", no_argument, &opts.del, 1 },
- { "rsync-path", required_argument, NULL, 1 },
- { "sender", no_argument, &opts.sender, 1 },
- { "server", no_argument, &opts.server, 1 },
- { NULL, 0, NULL, 0 }};
+ { "delete", no_argument, &opts.del, 1 },
+ { "rsync-path", required_argument, NULL, 1 },
+ { "sender", no_argument, &opts.sender, 1 },
+ { "server", no_argument, &opts.server, 1 },
+ { "verbose", no_argument, &opts.verbose, 1 },
+ { "links", no_argument, &opts.preserve_links, 1 },
+ { "dry-run", no_argument, &opts.dry_run, 1 },
+ { "perms", no_argument, &opts.preserve_perms, 1 },
+ { "recursive", no_argument, &opts.recursive, 1 },
+ { "times", no_argument, &opts.preserve_times, 1 },
+ { NULL, 0, NULL, 0 }};
/* Global pledge. */