1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00
1999-04-17  Thorsten Kukuk  <kukuk@suse.de>

	* timezone/zic.c (dolink): Append complete path ot only filename
	to ../ list.
This commit is contained in:
Ulrich Drepper
1999-04-17 09:39:56 +00:00
parent 53ab6afa28
commit 1e76ce9c89
3 changed files with 19 additions and 3 deletions

View File

@ -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)