make it possible to ignore comments at the end of compound items.
Argument: current character pointer
-Regurns: new character pointer
+Returns: new character pointer
*/
static uschar *
with a flag that fails symlinks. */
{
- int fd = open(directory, O_RDONLY);
+ int fd = open(CS directory, O_RDONLY);
if (fd < 0)
{
*error = string_sprintf("failed to open directory %s", directory);
temp = *p;
*p = '\0';
- if ((fd2 = openat(fd, q, O_RDONLY|O_NOFOLLOW)) < 0)
+ fd2 = openat(fd, CS q, O_RDONLY|O_NOFOLLOW);
+ close(fd);
+ *p = temp;
+ if (fd2 < 0)
{
*error = string_sprintf("failed to open %s (component of included "
"file); could be symbolic link", filename);
return FF_ERROR;
}
- close(fd);
fd = fd2;
- *p = temp;
}
f = fdopen(fd, "rb");
}