diff options
author | 2019-03-30 07:24:42 +0000 | |
---|---|---|
committer | 2019-03-30 07:24:42 +0000 | |
commit | 90d56d8913881ebba98fb5ab1dbedd8ea72075fa (patch) | |
tree | 6c263aa8005ddf2c527c43c52204a29971815e50 | |
parent | fix typo in ERRX1 (diff) | |
download | wireguard-openbsd-90d56d8913881ebba98fb5ab1dbedd8ea72075fa.tar.xz wireguard-openbsd-90d56d8913881ebba98fb5ab1dbedd8ea72075fa.zip |
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@
-rw-r--r-- | usr.bin/rsync/main.c | 4 |
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 }, |