1
Description: Cherry pick commit 8293c5b4cb072038fe2bdc15207ee6de4e291879
2
Cherry pick fix for crash when $HOME is unset.
3
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1011790
5
Origin: upstream https://github.com/FreeRDP/FreeRDP/commit/8293c5b4cb072038fe2bdc15207ee6de4e291879
7
--- freerdp-1.0.1.orig/libfreerdp-utils/file.c
8
+++ freerdp-1.0.1/libfreerdp-utils/file.c
9
@@ -82,6 +82,8 @@ char* freerdp_get_home_path(rdpSettings*
11
if (settings->home_path == NULL)
12
settings->home_path = getenv(HOME_ENV_VARIABLE);
13
+ if (settings->home_path == NULL)
14
+ settings->home_path = xstrdup("/");
16
return settings->home_path;
18
--- freerdp-1.0.1.orig/libfreerdp-utils/registry.c
19
+++ freerdp-1.0.1/libfreerdp-utils/registry.c
20
@@ -131,13 +131,6 @@ void registry_init(rdpRegistry* registry
22
home_path = registry->settings->home_path;
24
- if (home_path == NULL)
26
- printf("could not get home path\n");
27
- registry->available = false;
31
registry->available = true;
33
if (home_path == NULL)