summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-02-16 17:05:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-02-16 17:05:22 +0000
commit9328769f2f7727c9f75f6d173032ffe8c7ac2926 (patch)
tree349462d83125c8a64adaba8a486d79213784da3c /usr.bin
parent068b86beda423030e60cf6aee52d5f02e8f48c1a (diff)
add missing -no-OPT long options
ok florian
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rsync/main.c27
1 files changed, 18 insertions, 9 deletions
diff --git a/usr.bin/rsync/main.c b/usr.bin/rsync/main.c
index bff1b68b609..40049a6ffb9 100644
--- a/usr.bin/rsync/main.c
+++ b/usr.bin/rsync/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.19 2019/02/16 10:48:05 florian Exp $ */
+/* $Id: main.c,v 1.20 2019/02/16 17:05:21 deraadt Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -287,23 +287,32 @@ 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 },
{ "rsh", required_argument, NULL, 'e' },
{ "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 },
- { "group", no_argument, &opts.preserve_gids, 1 },
+ { "version", no_argument, NULL, 2 },
+ { "delete", no_argument, &opts.del, 1 },
+ { "no-delete", no_argument, &opts.del, 0 },
{ "devices", no_argument, &opts.devices, 1 },
{ "no-devices", no_argument, &opts.devices, 0 },
+ { "group", no_argument, &opts.preserve_gids, 1 },
+ { "no-group", no_argument, &opts.preserve_gids, 0 },
+ { "links", no_argument, &opts.preserve_links, 1 },
+ { "no-links", no_argument, &opts.preserve_links, 0 },
+ { "owner", no_argument, &opts.preserve_uids, 1 },
+ { "no-owner", no_argument, &opts.preserve_uids, 0 },
+ { "perms", no_argument, &opts.preserve_perms, 1 },
+ { "no-perms", no_argument, &opts.preserve_perms, 0 },
+ { "recursive", no_argument, &opts.recursive, 1 },
+ { "no-recursive", no_argument, &opts.recursive, 0 },
{ "specials", no_argument, &opts.specials, 1 },
{ "no-specials", no_argument, &opts.specials, 0 },
- { "version", no_argument, NULL, 2 },
+ { "times", no_argument, &opts.preserve_times, 1 },
+ { "no-times", no_argument, &opts.preserve_times, 0 },
+ { "verbose", no_argument, &opts.verbose, 1 },
+ { "no-verbose", no_argument, &opts.verbose, 0 },
{ NULL, 0, NULL, 0 }};
/* Global pledge. */