git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
taint enforce: file access backstops
[exim.git]
/
src
/
src
/
parse.c
diff --git
a/src/src/parse.c
b/src/src/parse.c
index be70effe9fbda10bc21ed00c72c810971fec65a6..71f48f3798bcbb57c61ea9178c3b1d94d6c8adbd 100644
(file)
--- a/
src/src/parse.c
+++ b/
src/src/parse.c
@@
-1454,7
+1454,7
@@
for (;;)
with a flag that fails symlinks. */
{
with a flag that fails symlinks. */
{
- int fd =
open
(CS directory, O_RDONLY);
+ int fd =
exim_open2
(CS directory, O_RDONLY);
if (fd < 0)
{
*error = string_sprintf("failed to open directory %s", directory);
if (fd < 0)
{
*error = string_sprintf("failed to open directory %s", directory);
@@
-1470,7
+1470,7
@@
for (;;)
temp = *p;
*p = '\0';
temp = *p;
*p = '\0';
- fd2 = openat(fd, CS q, O_RDONLY|O_NOFOLLOW);
+ fd2 =
exim_
openat(fd, CS q, O_RDONLY|O_NOFOLLOW);
close(fd);
*p = temp;
if (fd2 < 0)
close(fd);
*p = temp;
if (fd2 < 0)