1 From 605d0a85183d2f9d5b0da5629cbadf01173bbb2f Mon Sep 17 00:00:00 2001
2 From: Scott Fan <fancp2007@gmail.com>
3 Date: Mon, 13 Jul 2015 15:01:17 +0800
4 Subject: [PATCH] Add support for tz package
6 Fixes error message while freerdp connected the remote desktop:
7 Unable to detect time zone
9 Signed-off-by: Scott Fan <fancp2007@gmail.com>
11 libfreerdp/locale/timezone.c | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
14 diff --git a/libfreerdp/locale/timezone.c b/libfreerdp/locale/timezone.c
15 index 3070f1f..4a06786 100644
16 --- a/libfreerdp/locale/timezone.c
17 +++ b/libfreerdp/locale/timezone.c
18 @@ -1539,7 +1539,8 @@ char* freerdp_get_unix_timezone_identifier()
19 * America/Montreal for example.
22 - if ((len = readlink("/etc/localtime", buf, sizeof(buf) - 1)) != -1)
23 + if ((len = readlink("/etc/localtime", buf, sizeof(buf) - 1)) != -1 ||
24 + (len = readlink("/etc/TZ", buf, sizeof(buf) - 1)) != -1)