2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

remove now-useless variable

This commit is contained in:
Todd C. Miller
2017-03-21 15:04:47 -06:00
parent 2caddff3f9
commit 2a37590b7d

View File

@@ -340,7 +340,6 @@ io_nextid(char *iolog_dir, char *iolog_dir_fallback, char sessid[7])
char buf[32], *ep;
int i, len, fd = -1;
unsigned long id = 0;
gid_t gid = iolog_gid;
ssize_t nread;
bool ret = false;
char pathbuf[PATH_MAX];
@@ -398,7 +397,7 @@ io_nextid(char *iolog_dir, char *iolog_dir_fallback, char sessid[7])
restore_perms();
}
if (fd2 != -1) {
ignore_result(fchown(fd2, iolog_uid, gid));
ignore_result(fchown(fd2, iolog_uid, iolog_gid));
ignore_result(fchmod(fd2, iolog_filemode));
nread = read(fd2, buf, sizeof(buf) - 1);
if (nread > 0) {