2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

iolog_mkdtemp: fix pasto in last commit

Set mode to iolog_dirmode, not iolog_filemode

--HG--
branch : 1.9
This commit is contained in:
Todd C. Miller
2023-01-12 19:15:22 -07:00
parent f4e169610f
commit b80c08eb58

View File

@@ -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);