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:
committed by
Paul Eggert
parent
0594b59cda
commit
69558b1f4c
4
zic.c
4
zic.c
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user