summaryrefslogtreecommitdiff
path: root/usr.bin/rsync
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2023-11-27 10:14:20 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2023-11-27 10:14:20 +0000
commit4e067a7eb32d6a384c6e5f4c9357161aa97a0e7d (patch)
tree54c10c472ddf421bba4576799bce956a57c654a8 /usr.bin/rsync
parentfb25c6655a309798060463cde0a4202ab4871e64 (diff)
Add --no-O and --no-omit-dir-times options. For some reason the real
rsync has these options and so should ours. These strange --no-XYZ options are undocumented and are there just for compatibility. OK tb@ job@
Diffstat (limited to 'usr.bin/rsync')
-rw-r--r--usr.bin/rsync/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/rsync/main.c b/usr.bin/rsync/main.c
index f6c47eb71b7..0bbdbb0352c 100644
--- a/usr.bin/rsync/main.c
+++ b/usr.bin/rsync/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.69 2023/11/23 11:59:53 job Exp $ */
+/* $OpenBSD: main.c,v 1.70 2023/11/27 10:14:19 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -322,6 +322,8 @@ const struct option lopts[] = {
{ "no-motd", no_argument, &opts.no_motd, 1 },
{ "numeric-ids", no_argument, &opts.numeric_ids, 1 },
{ "omit-dir-times", no_argument, &opts.ignore_dir_times, 1 },
+ { "no-O", no_argument, &opts.ignore_dir_times, 0 },
+ { "no-omit-dir-times", no_argument, &opts.ignore_dir_times, 0 },
{ "owner", no_argument, &opts.preserve_uids, 1 },
{ "no-owner", no_argument, &opts.preserve_uids, 0 },
{ "perms", no_argument, &opts.preserve_perms, 1 },