Fix compilation on systems without a real openat(2).
This commit is contained in:
@@ -72,21 +72,21 @@ main(int argc, char *argv[])
|
|||||||
goto next;
|
goto next;
|
||||||
}
|
}
|
||||||
|
|
||||||
ttyout_fd = openat(dfd, "ttyout", O_RDONLY);
|
ttyout_fd = openat(dfd, "ttyout", O_RDONLY, 0644);
|
||||||
if (ttyout_fd == -1) {
|
if (ttyout_fd == -1) {
|
||||||
sudo_warn("ttyout");
|
sudo_warn("ttyout");
|
||||||
errors++;
|
errors++;
|
||||||
goto next;
|
goto next;
|
||||||
}
|
}
|
||||||
|
|
||||||
ttyin_fd = openat(dfd, "ttyin", O_RDONLY);
|
ttyin_fd = openat(dfd, "ttyin", O_RDONLY, 0644);
|
||||||
if (ttyin_fd == -1) {
|
if (ttyin_fd == -1) {
|
||||||
sudo_warn("ttyin");
|
sudo_warn("ttyin");
|
||||||
errors++;
|
errors++;
|
||||||
goto next;
|
goto next;
|
||||||
}
|
}
|
||||||
|
|
||||||
ttyin_ok_fd = openat(dfd, "ttyin.filtered", O_RDONLY);
|
ttyin_ok_fd = openat(dfd, "ttyin.filtered", O_RDONLY, 0644);
|
||||||
if (ttyin_ok_fd == -1) {
|
if (ttyin_ok_fd == -1) {
|
||||||
sudo_warn("ttyin.filtered");
|
sudo_warn("ttyin.filtered");
|
||||||
errors++;
|
errors++;
|
||||||
|
Reference in New Issue
Block a user