summaryrefslogtreecommitdiff
path: root/usr.bin/rsync/main.c
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2019-03-30 07:24:43 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2019-03-30 07:24:43 +0000
commitea1421bad554d57d966e2c52069766450d08d332 (patch)
tree7f5c656bf0cb5bb7355ec9ab6a995f2ecb35e935 /usr.bin/rsync/main.c
parent16328afab5e0730c13db09072322dd0d93557684 (diff)
Add --del as alias for --delete.
Drop --no-delete. The "no-" prefix is only available for options that are implied by other options. --delete is never implied and GPL rsync does not accept --no-delete. ok deraadt@
Diffstat (limited to 'usr.bin/rsync/main.c')
-rw-r--r--usr.bin/rsync/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rsync/main.c b/usr.bin/rsync/main.c
index 0c9a19b8d21..2b9f23dbca3 100644
--- a/usr.bin/rsync/main.c
+++ b/usr.bin/rsync/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.36 2019/03/25 21:09:49 deraadt Exp $ */
+/* $Id: main.c,v 1.37 2019/03/30 07:24:42 naddy Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -284,8 +284,8 @@ main(int argc, char *argv[])
{ "archive", no_argument, NULL, 'a' },
{ "help", no_argument, NULL, 'h' },
{ "compress", no_argument, NULL, 'z' },
+ { "del", no_argument, &opts.del, 1 },
{ "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 },