diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-04-24 17:11:34 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-04-24 17:11:34 +0000 |
commit | 000aae5f620fb53c9d72569d541849fb831f4e25 (patch) | |
tree | 9b755cfce04cf54ebfcae4e2cf00f9977ab9c6be | |
parent | c9aa6c450930ae853d1899976fd66fe04571c027 (diff) |
If the two mfts in mft_compare() are the same do not prefer the
first (DIR_VALID) but perfer the 2nd (DIR_TEMP) since this allows
rpki-client to move the equal files from .rrdp back into the valid
repo tree and so there are less unaccounted files for.
Problem noticed by and OK job@
-rw-r--r-- | usr.sbin/rpki-client/mft.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/mft.c b/usr.sbin/rpki-client/mft.c index 4c87b993912..5173ec0ba1e 100644 --- a/usr.sbin/rpki-client/mft.c +++ b/usr.sbin/rpki-client/mft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mft.c,v 1.89 2023/03/13 19:54:36 job Exp $ */ +/* $OpenBSD: mft.c,v 1.90 2023/04/24 17:11:33 claudio Exp $ */ /* * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> @@ -545,7 +545,7 @@ mft_compare(const struct mft *a, const struct mft *b) return 0; r = strcmp(a->seqnum, b->seqnum); - if (r >= 0) /* a is greater or equal, prefer a */ + if (r > 0) /* a is greater, prefer a */ return 1; return 0; } |