symlinking /etc/localtime in zic.c

Mariano Absatz - El Baby baby at baby.com.ar
Tue Oct 21 23:44:52 UTC 2008


Errata:
substitute below "and I saw the lines" with "and it created a symlink; I
saw the lines"

:-)

Mariano Absatz - El Baby escribió el 21/10/08 21:39:
> Hi,
>
> I recently used 'zic -l' on a machine where /usr is on a different
> filesystem than /etc and I saw the lines where this happens (in the
> dolink() function).
>
> Up until some time, I didn't know about "-l" and used to create a
> symlink from /usr/share/zoneinfo/What/Ever to /etc/localtime
>
> At that time, I was about to ask if it wouldn't be better to create a
> symlink rather than a copy, but then I found out that linux distros
> prefer to make a copy rather than a symlink because /usr might not be
> mounted during boot and /etc/localtime would be pointing to no file...
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=346342
> http://www.redhat.com/archives/rhl-devel-list/2006-April/msg00019.html
>
> Now... IF the first
>         result = link(fromname, toname);
> fails, it is quite probably an indication that /usr is on a different
> filesystem than / ... woulnd't it be better in that case to copy rather
> than symlink it?
>
> Regards.
>
>   


-- 
Mariano Absatz - "El Baby"
baby at baby.com.ar
www.clueless.com.ar


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quit worrying about your health. It'll go away.
    Robert Orben
    American magician and comedy writer (1927 - )
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* TagZilla 0.066 * http://tagzilla.mozdev.org




More information about the tz mailing list