forked from pool/timezone
Marcus Meissner
2f4ae5acab
Timezone update 2016b [boo#971377] OBS-URL: https://build.opensuse.org/request/show/374223 OBS-URL: https://build.opensuse.org/package/show/Base:System/timezone?expand=0&rev=170
28 lines
862 B
Diff
28 lines
862 B
Diff
Index: timezone-2016b/zic.c
|
|
===================================================================
|
|
--- timezone-2016b.orig/zic.c
|
|
+++ timezone-2016b/zic.c
|
|
@@ -768,7 +768,7 @@ dolink(char const *fromfield, char const
|
|
|
|
result = link(fromname, toname);
|
|
if (result != 0) {
|
|
- const char *s = fromfield;
|
|
+ const char *s = fromname;
|
|
const char *t;
|
|
char *p;
|
|
size_t dotdots = 0;
|
|
@@ -777,10 +777,10 @@ dolink(char const *fromfield, char const
|
|
do
|
|
t = s;
|
|
while ((s = strchr(s, '/'))
|
|
- && ! strncmp (fromfield, tofield,
|
|
- ++s - fromfield));
|
|
+ && ! strncmp (fromname, tofield,
|
|
+ ++s - fromname));
|
|
|
|
- for (s = tofield + (t - fromfield); *s; s++)
|
|
+ for (s = tofield + (t - fromname); *s; s++)
|
|
dotdots += *s == '/';
|
|
symlinkcontents
|
|
= emalloc(3 * dotdots + strlen(t) + 1);
|