Bugzilla – Attachment 522463 Details for
Bug 791485
rpm aaa_base 12.2-2.14.1 overwrites /etc/adjtime
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
change /etc/adjtime only if $HWCLOCK is set
aaa_base.post.diff (text/plain), 626 bytes, created by
Wolfgang Bauer
on 2013-01-29 15:27:25 UTC
(
hide
)
Description:
change /etc/adjtime only if $HWCLOCK is set
Filename:
MIME Type:
Creator:
Wolfgang Bauer
Created:
2013-01-29 15:27:25 UTC
Size:
626 bytes
patch
obsolete
>diff -ur aaa_base/aaa_base.post aaa_base.new/aaa_base.post >--- aaa_base/aaa_base.post 2012-10-31 11:35:39.000000000 +0100 >+++ aaa_base.new/aaa_base.post 2013-01-29 13:02:36.000000000 +0100 >@@ -46,11 +46,11 @@ > # forwarded to /etc/adjtime, the file used by hwclock(8) and\ > # systemd(1) as reference for the CMOS/HW clock.\ > ' /etc/sysconfig/clock >+ case "$HWCLOCK" in >+ *-l*) sed -ri 's@^UTC$@LOCAL@' /etc/adjtime ;; >+ *) sed -ri 's@^LOCAL$@UTC@' /etc/adjtime ;; >+ esac > fi >- case "$HWCLOCK" in >- *-l*) sed -ri 's@^UTC$@LOCAL@' /etc/adjtime ;; >- *) sed -ri 's@^LOCAL$@UTC@' /etc/adjtime ;; >- esac > fi > > #
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 791485
: 522463