2015-05-19 17:52:15 +02:00
|
|
|
Index: timezone-2015d/zic.c
|
2014-03-26 15:07:41 +01:00
|
|
|
===================================================================
|
2015-05-19 17:52:15 +02:00
|
|
|
--- timezone-2015d.orig/zic.c
|
|
|
|
+++ timezone-2015d/zic.c
|
|
|
|
@@ -757,7 +757,7 @@ dolink(const char *const fromfield, cons
|
2013-10-14 16:25:26 +02:00
|
|
|
|
|
|
|
result = link(fromname, toname);
|
|
|
|
if (result != 0) {
|
|
|
|
- const char *s = fromfield;
|
|
|
|
+ const char *s = fromname;
|
|
|
|
const char *t;
|
2015-05-19 17:52:15 +02:00
|
|
|
char *p;
|
|
|
|
size_t dotdots = 0;
|
|
|
|
@@ -766,10 +766,10 @@ dolink(const char *const fromfield, cons
|
2013-10-14 16:25:26 +02:00
|
|
|
do
|
|
|
|
t = s;
|
|
|
|
while ((s = strchr(s, '/'))
|
|
|
|
- && ! strncmp (fromfield, tofield,
|
|
|
|
- ++s - fromfield));
|
|
|
|
+ && ! strncmp (fromname, tofield,
|
|
|
|
+ ++s - fromname));
|
|
|
|
|
2015-05-19 17:52:15 +02:00
|
|
|
- for (s = tofield + (t - fromfield); *s; s++)
|
|
|
|
+ for (s = tofield + (t - fromname); *s; s++)
|
|
|
|
dotdots += *s == '/';
|
|
|
|
symlinkcontents
|
|
|
|
= emalloc(3 * dotdots + strlen(t) + 1);
|