From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] freerdp: Add support for tz package
Date: Thu, 30 Jul 2015 23:36:37 +0200 [thread overview]
Message-ID: <20150730213637.GE3744@free.fr> (raw)
In-Reply-To: <1438071916-13248-1-git-send-email-fancp2007@gmail.com>
Scott, All,
On 2015-07-28 16:25 +0800, Scott Fan spake thusly:
> Fixes error message while freerdp connected the remote desktop:
> Unable to detect time zone
>
> Signed-off-by: Scott Fan <fancp2007@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
> ---
> .../freerdp/0004-add-support-for-tz-package.patch | 30 ++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
> create mode 100644 package/freerdp/0004-add-support-for-tz-package.patch
>
> diff --git a/package/freerdp/0004-add-support-for-tz-package.patch b/package/freerdp/0004-add-support-for-tz-package.patch
> new file mode 100644
> index 0000000..93e4afd
> --- /dev/null
> +++ b/package/freerdp/0004-add-support-for-tz-package.patch
> @@ -0,0 +1,30 @@
> +From 605d0a85183d2f9d5b0da5629cbadf01173bbb2f Mon Sep 17 00:00:00 2001
> +From: Scott Fan <fancp2007@gmail.com>
> +Date: Mon, 13 Jul 2015 15:01:17 +0800
> +Subject: [PATCH] Add support for tz package
> +
> +Fixes error message while freerdp connected the remote desktop:
> +Unable to detect time zone
> +
> +Signed-off-by: Scott Fan <fancp2007@gmail.com>
> +---
> + libfreerdp/locale/timezone.c | 3 ++-
> + 1 file changed, 2 insertions(+), 1 deletion(-)
> +
> +diff --git a/libfreerdp/locale/timezone.c b/libfreerdp/locale/timezone.c
> +index 3070f1f..4a06786 100644
> +--- a/libfreerdp/locale/timezone.c
> ++++ b/libfreerdp/locale/timezone.c
> +@@ -1539,7 +1539,8 @@ char* freerdp_get_unix_timezone_identifier()
> + * America/Montreal for example.
> + */
> +
> +- if ((len = readlink("/etc/localtime", buf, sizeof(buf) - 1)) != -1)
> ++ if ((len = readlink("/etc/localtime", buf, sizeof(buf) - 1)) != -1 ||
> ++ (len = readlink("/etc/TZ", buf, sizeof(buf) - 1)) != -1)
> + {
> + int num = 0;
> + int pos = len;
> +--
> +2.4.5
> +
> --
> 2.4.6
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2015-07-30 21:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-28 8:25 [Buildroot] [PATCH] freerdp: Add support for tz package Scott Fan
2015-07-28 9:07 ` Thomas Petazzoni
2015-07-28 13:45 ` Scott Fan
2015-07-28 14:03 ` Thomas Petazzoni
2015-07-28 14:26 ` Scott Fan
2015-07-28 14:32 ` Thomas Petazzoni
2015-07-28 14:34 ` Scott Fan
2015-07-30 21:36 ` Yann E. MORIN [this message]
2015-07-30 21:37 ` Thomas Petazzoni
2015-07-31 0:53 ` Scott Fan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150730213637.GE3744@free.fr \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.