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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user