git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd9f0b7
)
Fix symlink-following. Bug 2909
author
Ulrich Landgraf
<landgraf@physik.uni-freiburg.de>
Mon, 15 Aug 2022 15:50:36 +0000
(16:50 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Mon, 15 Aug 2022 15:51:53 +0000
(16:51 +0100)
Broken-by: ef57b25bfa
src/src/tls.c
patch
|
blob
|
history
diff --git
a/src/src/tls.c
b/src/src/tls.c
index 76e72b5f58a10f3da1bc0b5afd70d21428b8d545..32b29ee3e4ded6062bb64dae30400ca092700393 100644
(file)
--- a/
src/src/tls.c
+++ b/
src/src/tls.c
@@
-156,7
+156,7
@@
for (unsigned loop = 20;
if (--loop == 0) { errno = ELOOP; return FALSE; }
filename = buf[0] == '/'
? string_copyn(buf, (unsigned)len) /* mem released by tls_set_watch */
- : string_sprintf("%.*s/%.*s", (int)(s - filename),
(int)len
);
+ : string_sprintf("%.*s/%.*s", (int)(s - filename),
filename, (int)len, buf
);
s = Ustrrchr(filename, '/');
}
if (errno != EINVAL)