From 394aa39a7ef19d70e75e3c4a648921afbf99e288 Mon Sep 17 00:00:00 2001 From: claudio Date: Mon, 27 Nov 2023 11:28:39 +0000 Subject: [PATCH] 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@ --- usr.bin/rsync/uploader.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.20.1