From 837f400ac8abf91512fbcd16c2039bbe1af44070 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 26 Sep 2023 11:51:10 -0600 Subject: [PATCH] digest_matches: actually use fd2 in place of fd as needed. --- plugins/sudoers/match_digest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/sudoers/match_digest.c b/plugins/sudoers/match_digest.c index f8ff86e78..09ea4356e 100644 --- a/plugins/sudoers/match_digest.c +++ b/plugins/sudoers/match_digest.c @@ -63,6 +63,7 @@ digest_matches(int fd, const char *path, /* No file, no match. */ goto done; } + fd = fd2; } TAILQ_FOREACH(digest, digests, entries) {