diff options
author | Job Snijders <job@cvs.openbsd.org> | 2023-11-23 13:01:16 +0000 |
---|---|---|
committer | Job Snijders <job@cvs.openbsd.org> | 2023-11-23 13:01:16 +0000 |
commit | 517dd381a78d4db9fe051e6a064c2c0dbae72b6c (patch) | |
tree | 8deae04849e79b7dc66af3de70e7e67fe61a34f9 /usr.sbin | |
parent | 6bb8d6cf4ff84b19ded9838e07e9b52785368dbd (diff) |
Don't set directory modtimes to match the source
When syncing against remote repositories, the modtimes of the
remote directories is irrelevant. In the RRDP protocol the directory
modtimes aren't signalled either. This should save some IOPS.
OK tb@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpki-client/rsync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/rsync.c b/usr.sbin/rpki-client/rsync.c index f1a4c181db9..9b5710ca3ed 100644 --- a/usr.sbin/rpki-client/rsync.c +++ b/usr.sbin/rpki-client/rsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsync.c,v 1.46 2022/12/28 21:30:18 jmc Exp $ */ +/* $OpenBSD: rsync.c,v 1.47 2023/11/23 13:01:15 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -145,7 +145,7 @@ exec_rsync(const char *prog, const char *bind_addr, char *uri, char *dst, err(1, "pledge"); i = 0; args[i++] = (char *)prog; - args[i++] = "-rt"; + args[i++] = "-rtO"; args[i++] = "--no-motd"; args[i++] = "--max-size=" STRINGIFY(MAX_FILE_SIZE); args[i++] = "--contimeout=" STRINGIFY(MAX_CONN_TIMEOUT); |