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
Fix build for OpenSSL 3.0.0 . Bug 2810
[exim.git]
/
src
/
src
/
directory.c
diff --git
a/src/src/directory.c
b/src/src/directory.c
index 2d4d565f4ede31504743571a5b1ded263d0ebc42..11bf7338b98d14b685c8df434c580f4ce4f210b3 100644
(file)
--- a/
src/src/directory.c
+++ b/
src/src/directory.c
@@
-3,7
+3,7
@@
*************************************************/
/* Copyright (c) University of Cambridge 1995 - 2009 */
*************************************************/
/* Copyright (c) University of Cambridge 1995 - 2009 */
-/* Copyright (c) The Exim Maintainers 2010 - 20
18
*/
+/* Copyright (c) The Exim Maintainers 2010 - 20
21
*/
/* See the file NOTICE for conditions of use and distribution. */
#include "exim.h"
/* See the file NOTICE for conditions of use and distribution. */
#include "exim.h"
@@
-44,6
+44,9
@@
uschar c = 1;
struct stat statbuf;
uschar * path;
struct stat statbuf;
uschar * path;
+if (is_tainted2(name, LOG_MAIN|LOG_PANIC, "Tainted path '%s' for new directory", name))
+ { p = US"create"; path = US name; errno = EACCES; goto bad; }
+
if (parent)
{
path = string_sprintf("%s%s%s", parent, US"/", name);
if (parent)
{
path = string_sprintf("%s%s%s", parent, US"/", name);
@@
-85,7
+88,7
@@
return TRUE;
bad:
if (panic) log_write(0, LOG_MAIN|LOG_PANIC_DIE,
bad:
if (panic) log_write(0, LOG_MAIN|LOG_PANIC_DIE,
- "Failed to %s directory \"%s\": %s\n", p, path,
strerro
r(errno));
+ "Failed to %s directory \"%s\": %s\n", p, path,
exim_errst
r(errno));
return FALSE;
}
return FALSE;
}