From b80c08eb5863d0a939666af45b3b34aaeee91d16 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 12 Jan 2023 19:15:22 -0700 Subject: [PATCH] iolog_mkdtemp: fix pasto in last commit Set mode to iolog_dirmode, not iolog_filemode --HG-- branch : 1.9 --- lib/iolog/iolog_mkdtemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iolog/iolog_mkdtemp.c b/lib/iolog/iolog_mkdtemp.c index 0a7607432..cf06a6ca6 100644 --- a/lib/iolog/iolog_mkdtemp.c +++ b/lib/iolog/iolog_mkdtemp.c @@ -79,7 +79,7 @@ iolog_mkdtemp(char *path) sudo_warn(U_("unable to mkdir %s"), path); ok = false; } else { - if (fchmodat(dfd, dir, iolog_filemode, 0) != 0) { + if (fchmodat(dfd, dir, iolog_dirmode, 0) != 0) { /* Not a fatal error, pre-existing mode is 0700. */ sudo_warn(U_("unable to change mode of %s to 0%o"), path, (unsigned int)iolog_dirmode);