chiark / gitweb /
timedated: flip internal status after executing operation
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 21 Mar 2015 21:40:20 +0000 (17:40 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 21 Mar 2015 21:40:57 +0000 (17:40 -0400)
commit192b98b8fe73c8fb4bb3d6540deb93f5fb6eb9d2
tree2796887b755d5a61b0a7f881c20c995983c080ac
parent8e8ba79229bb82248a568f5929143a66f4be45b7
timedated: flip internal status after executing operation

timedated would set the internal status before calling out to systemd to do
the actual change. When the operation was refused because of a SELinux denial,
the state kept in timedated would get out of sync, and the second call from
timedatectl would appear to succeed.

https://bugzilla.redhat.com/show_bug.cgi?id=1014315
src/timedate/timedated.c