2012-08-26 11:35:18 +02:00
|
|
|
From 64ddc0bfa995041196fd0b9c61756d64578f925c Mon Sep 17 00:00:00 2001
|
|
|
|
From: Frederic Crozat <fcrozat@suse.com>
|
|
|
|
Date: Tue, 14 Aug 2012 14:26:16 +0200
|
|
|
|
Subject: [PATCH] timedate: add support for openSUSE version of
|
|
|
|
/etc/sysconfig/clock
|
|
|
|
|
|
|
|
---
|
|
|
|
src/timedate/timedated.c | 6 +++++-
|
|
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
|
2012-11-02 17:30:32 +01:00
|
|
|
Index: systemd-190/src/timedate/timedated.c
|
|
|
|
===================================================================
|
|
|
|
--- systemd-190.orig/src/timedate/timedated.c
|
|
|
|
+++ systemd-190/src/timedate/timedated.c
|
|
|
|
@@ -175,6 +175,13 @@ static int read_data(void) {
|
|
|
|
goto have_timezone;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+#ifdef TARGET_SUSE
|
|
|
|
+ r = parse_env_file("/etc/sysconfig/clock", NEWLINE,
|
|
|
|
+ "TIMEZONE", &tz.zone,
|
|
|
|
+ NULL);
|
|
|
|
+ if (r < 0 && r != -ENOENT)
|
|
|
|
+ log_warning("Failed to read /etc/sysconfig/clock: %s", strerror(-r));
|
2012-08-26 11:35:18 +02:00
|
|
|
+#endif
|
|
|
|
|
2012-11-02 17:30:32 +01:00
|
|
|
#ifdef HAVE_DEBIAN
|
|
|
|
r = read_one_line_file("/etc/timezone", &tz.zone);
|