• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/freerdp/0002-add-support-for-tz-package.patch
Yann E. MORINYann E. MORIN committed e84a286762a06 Sep 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
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
5
​
6
Fixes error message while freerdp connected the remote desktop:
7
Unable to detect time zone
8
​
9
Signed-off-by: Scott Fan <fancp2007@gmail.com>
10
---
11
 libfreerdp/locale/timezone.c | 3 ++-
12
 1 file changed, 2 insertions(+), 1 deletion(-)
13
​
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.
20
     */
21
    
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)
25
    {
26
        int num = 0;
27
        int pos = len;
28
-- 
29
2.4.5
30
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.