2013-04-23 11:39:56 +02:00
|
|
|
From: Frederic Crozat <fcrozat@suse.com>
|
|
|
|
Date: Tue, 14 Aug 2012 14:26:16 +0200
|
|
|
|
Subject: timedate: add support for openSUSE version of /etc/sysconfig/clock
|
|
|
|
|
|
|
|
---
|
|
|
|
src/timedate/timedated.c | 7 +++++++
|
|
|
|
1 file changed, 7 insertions(+)
|
|
|
|
|
2013-09-13 14:45:43 +02:00
|
|
|
--- systemd-206_git201308300826.orig/src/timedate/timedated.c
|
|
|
|
+++ systemd-206_git201308300826/src/timedate/timedated.c
|
2013-04-23 11:39:56 +02:00
|
|
|
@@ -182,6 +182,13 @@ static int read_data(void) {
|
|
|
|
goto have_timezone;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+#ifdef HAVE_SYSV_COMPAT
|
|
|
|
+ r = parse_env_file("/etc/sysconfig/clock", NEWLINE,
|
2014-03-11 09:24:11 +01:00
|
|
|
+ "TIMEZONE", &c->zone,
|
2013-04-23 11:39:56 +02:00
|
|
|
+ NULL);
|
|
|
|
+ if (r < 0 && r != -ENOENT)
|
|
|
|
+ log_warning("Failed to read /etc/sysconfig/clock: %s", strerror(-r));
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
have_timezone:
|
2014-03-11 09:24:11 +01:00
|
|
|
if (isempty(c->zone)) {
|