Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#30927 - [initscripts] rc.sysinit does not properly compare $HARDWARECLOCK with the value in /etc/adjtime
Attached to Project:
Arch Linux
Opened by James Gordon (drwitherstone) - Monday, 30 July 2012, 18:45 GMT
Last edited by Tom Gundersen (tomegun) - Wednesday, 01 August 2012, 23:39 GMT
Opened by James Gordon (drwitherstone) - Monday, 30 July 2012, 18:45 GMT
Last edited by Tom Gundersen (tomegun) - Wednesday, 01 August 2012, 23:39 GMT
|
DetailsDescription:
The test "[[ $ADJTIME == 'LOCAL' ]]" at line 144 of rc.sysinit always returns false, because $ADJTIME is always empty. Replacing the parentheses with curly braces on line 142 would fix the problem. I.e. { read ; read ; read ADJTIME; } < /etc/adjtime instead of ( read ; read ; read ADJTIME) < /etc/adjtime Additional info: * package version(s) initscripts 2012.07.5-1 |
This task depends upon
Closed by Tom Gundersen (tomegun)
Wednesday, 01 August 2012, 23:39 GMT
Reason for closing: Fixed
Additional comments about closing: Thanks for reporting. Fixed in git.
Wednesday, 01 August 2012, 23:39 GMT
Reason for closing: Fixed
Additional comments about closing: Thanks for reporting. Fixed in git.
IFS=$'\n' read _ _ clockmode </etc/adjtime
Or you could use mapfile/readarray:
mapfile -t adjtime < /etc/adjtime
${ADJTIME[2]} would refer to the relevent line, then.
On the other hand, since ADJTIME is only used once, you could completely remove the line and instead change the test to something like "[[ $(< /etc/adjtime) == *$'\n'UTC ]]".