1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-12-06 16:12:36 +00:00

step 1 of symlink work

SCCS-file: zic.c
SCCS-SID: 7.105
This commit is contained in:
Arthur David Olson
2002-03-07 15:39:05 -05:00
committed by Paul Eggert
parent 0594b59cda
commit 69558b1f4c

4
zic.c
View File

@ -620,7 +620,9 @@ const char * const tofile;
result = link(fromname, toname);
#if (HAVE_SYMLINK - 0)
if (result != 0) {
if (result != 0 &&
access(fromname, F_OK) == 0 &&
!itsdir(fromname)) {
const char *s = tofile;
register char * symlinkcontents = NULL;
while ((s = strchr(s+1, '/')) != NULL)