From: claudio Date: Mon, 27 Nov 2023 10:14:19 +0000 (+0000) Subject: Add --no-O and --no-omit-dir-times options. For some reason the real X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=92709fffc16b7934ea1b48c34f4ffd3fe05a0d58;p=openbsd 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@ --- 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 * @@ -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 },