python-pyasn: bump to version 1.6.0b1
[buildroot-gz.git] / package / freerdp / 0002-add-support-for-tz-package.patch
blob93e4afde1767304e0d2691db0de6c4e803653b1e
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>
10 ---
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)
26 int num = 0;
27 int pos = len;
28 --
29 2.4.5