symlinks

Olson, Arthur David (NCI) olsona at dc37a.nci.nih.gov
Tue Apr 2 15:01:26 UTC 2002


Lacking consensus on the symlink problem, what I'd suggest for now is a
change to zic.c that would only deal with the problem of
creating symlinks to files that don't exist--see below.

If making just this change for now is agreeable to folks, I'll update tzcode
and tzdata once Paul Eggert weighs in with Paul's
conclusions on what Estonia should look like.

				--ado

*** 7.104/zic.c	Tue Apr  2 09:58:10 2002
--- 7.107/zic.c	Tue Apr  2 09:58:11 2002
***************
*** 1,6 ****
  #ifndef lint
  #ifndef NOID
! static char	elsieid[] = "@(#)zic.c	7.104";
  #endif /* !defined NOID */
  #endif /* !defined lint */
  
--- 1,6 ----
  #ifndef lint
  #ifndef NOID
! static char	elsieid[] = "@(#)zic.c	7.107";
  #endif /* !defined NOID */
  #endif /* !defined lint */
  
***************
*** 620,626 ****
  
  		result = link(fromname, toname);
  #if (HAVE_SYMLINK - 0)
! 		if (result != 0) {
  		        const char *s = tofile;
  		        register char * symlinkcontents = NULL;
  		        while ((s = strchr(s+1, '/')) != NULL)
--- 620,628 ----
  
  		result = link(fromname, toname);
  #if (HAVE_SYMLINK - 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)




More information about the tz mailing list