forked from pool/timezone
5b19de59a5
Update to 2014i [bsc#902276] OBS-URL: https://build.opensuse.org/request/show/258045 OBS-URL: https://build.opensuse.org/package/show/Base:System/timezone?expand=0&rev=145
27 lines
765 B
Diff
27 lines
765 B
Diff
Index: timezone-2014i/zic.c
|
|
===================================================================
|
|
--- timezone-2014i.orig/zic.c
|
|
+++ timezone-2014i/zic.c
|
|
@@ -729,17 +729,17 @@ dolink(const char *const fromfield, cons
|
|
|
|
result = link(fromname, toname);
|
|
if (result != 0) {
|
|
- const char *s = fromfield;
|
|
+ const char *s = fromname;
|
|
const char *t;
|
|
register char * symlinkcontents = NULL;
|
|
|
|
do
|
|
t = s;
|
|
while ((s = strchr(s, '/'))
|
|
- && ! strncmp (fromfield, tofield,
|
|
- ++s - fromfield));
|
|
+ && ! strncmp (fromname, tofield,
|
|
+ ++s - fromname));
|
|
|
|
- for (s = tofield + (t - fromfield);
|
|
+ for (s = tofield + (t - fromname);
|
|
(s = strchr(s, '/'));
|
|
s++)
|
|
symlinkcontents =
|