From 1e76ce9c89c4e57dc7cc283326e6a4c86cb0fe61 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 17 Apr 1999 09:39:56 +0000 Subject: Update. 1999-04-17 Thorsten Kukuk * timezone/zic.c (dolink): Append complete path ot only filename to ../ list. --- timezone/zic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'timezone/zic.c') diff --git a/timezone/zic.c b/timezone/zic.c index e37dd73..e5c6761 100644 --- a/timezone/zic.c +++ b/timezone/zic.c @@ -613,13 +613,13 @@ const char * const tofile; (void) exit(EXIT_FAILURE); result = link(fromname, toname); -#if (HAVE_SYMLINK - 0) +#if (HAVE_SYMLINK - 0) if (result != 0) { char *s = (char *) tofile; - register char * symlinkcontents = NULL; + register char *symlinkcontents = NULL; while ((s = strchr(s+1, '/')) != NULL) symlinkcontents = ecatalloc(symlinkcontents, "../"); - symlinkcontents = ecatalloc(symlinkcontents, fromfile); + symlinkcontents = ecatalloc(symlinkcontents, fromname); result = symlink(symlinkcontents, toname); if (result == 0) -- cgit v1.1