From: claudio Date: Mon, 27 Nov 2023 11:28:39 +0000 (+0000) Subject: The uploader tail shortcut to skip dir postprocessing should also check X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=394aa39a7ef19d70e75e3c4a648921afbf99e288;p=openbsd The uploader tail shortcut to skip dir postprocessing should also check if ignore_dir_times is set. In that case preserve_times loses its meaning. OK tb@ --- diff --git a/usr.bin/rsync/uploader.c b/usr.bin/rsync/uploader.c index 25b3be6ee77..6cb6d054da7 100644 --- a/usr.bin/rsync/uploader.c +++ b/usr.bin/rsync/uploader.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uploader.c,v 1.35 2023/11/23 11:59:53 job Exp $ */ +/* $OpenBSD: uploader.c,v 1.36 2023/11/27 11:28:39 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * Copyright (c) 2019 Florian Obser @@ -1099,8 +1099,7 @@ rsync_uploader_tail(struct upload *u, struct sess *sess) { size_t i; - - if (!sess->opts->preserve_times && + if ((!sess->opts->preserve_times || sess->opts->ignore_dir_times) && !sess->opts->preserve_perms) return 1;