2016-03-18 11:09:33 +01:00
|
|
|
Index: timezone-2016b/zic.c
|
2014-03-26 15:07:41 +01:00
|
|
|
===================================================================
|
2016-03-18 11:09:33 +01:00
|
|
|
--- timezone-2016b.orig/zic.c
|
|
|
|
+++ timezone-2016b/zic.c
|
|
|
|
@@ -768,7 +768,7 @@ dolink(char const *fromfield, char const
|
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;
|
2016-03-18 11:09:33 +01:00
|
|
|
@@ -777,10 +777,10 @@ dolink(char const *fromfield, char const
|
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);
|