about summary refs log tree commit diff
path: root/timezone/zic.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-04-17 09:39:56 +0000
committerUlrich Drepper <drepper@redhat.com>1999-04-17 09:39:56 +0000
commit1e76ce9c89c4e57dc7cc283326e6a4c86cb0fe61 (patch)
treee90da0ef04ca56b9aced98001a5406311ce7a391 /timezone/zic.c
parent53ab6afa2811722b2882509846e8664c089539dc (diff)
downloadglibc-1e76ce9c89c4e57dc7cc283326e6a4c86cb0fe61.tar.gz
glibc-1e76ce9c89c4e57dc7cc283326e6a4c86cb0fe61.tar.xz
glibc-1e76ce9c89c4e57dc7cc283326e6a4c86cb0fe61.zip
Update.
1999-04-17  Thorsten Kukuk  <kukuk@suse.de>

	* timezone/zic.c (dolink): Append complete path ot only filename
	to ../ list.
Diffstat (limited to 'timezone/zic.c')
-rw-r--r--timezone/zic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/timezone/zic.c b/timezone/zic.c
index e37dd7326c..e5c6761d1e 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)