On Tuesday, September 25, 2007 at 13:42:36 -0600, LaMont Jones wrote: > -rw-r--r-- root/root 2916 2007-09-21 22:12 > ./usr/share/doc/util-linux/README.Debian.hwclock > I see no .gz on that file as delivered. There was previously, and now > there is not.
Ok, I had not noticed. > When I was testing, it was failing attempting to _WRITE_ /etc/adjtime > in that invocation. Hence the test for writablility. hwclock --hctosys never writes to an existing adjfile. There are only two meaningfull cases for hwclock --hctosys without --noadjfile on a read-only filesystem: -1) If the adjfile doesn't exist: hwclock tries to create it, and fails. -2) If the adjfile exists and is readable: hwclock reads it, and everything works OK. Using --noadjfile if [ ! -w /etc/adjtime ] saves case #1, but breaks case #2 (because --noadjfile prevents reading /etc/adjtime). Using --noadjfile if [ ! -r /etc/adjtime ] saves case #1 (because ! -e implies ! -r), and preserves case #2. Clearly better, isn't it? Alain. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

