summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-08 17:50:47 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-08 21:19:39 +0900
commit944ce7ef41164f3d3db06b05df1df4023e310230 (patch)
tree669e07dc1f2cd3075a3cdbaf7d09ffffa57c27dc /src/lib/eina
parent8094893877c4c176d1d647fee5adf5a25db60244 (diff)
elm config - handle profile name of ".." as its obviously invalid
this forbids .., as a profile name in addition to the existing "stip / from profile name".
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/eina/eina_util.c b/src/lib/eina/eina_util.c
index 1515172694..93396ae072 100644
--- a/src/lib/eina/eina_util.c
+++ b/src/lib/eina/eina_util.c
@@ -107,8 +107,6 @@ eina_environment_tmp_get(void)
107 if (!tmp) tmp = getenv("USERPROFILE"); 107 if (!tmp) tmp = getenv("USERPROFILE");
108 if (!tmp) tmp = getenv("WINDIR"); 108 if (!tmp) tmp = getenv("WINDIR");
109 if (!tmp) tmp = "C:\\"; 109 if (!tmp) tmp = "C:\\";
110
111 return tmp;
112#else 110#else
113# if defined(HAVE_GETUID) && defined(HAVE_GETEUID) 111# if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
114 if (getuid() == geteuid()) 112 if (getuid() == geteuid())
@@ -120,7 +118,7 @@ eina_environment_tmp_get(void)
120 if (!tmp) tmp = getenv("TEMP"); 118 if (!tmp) tmp = getenv("TEMP");
121 } 119 }
122 if (!tmp) tmp = "/tmp"; 120 if (!tmp) tmp = "/tmp";
123
124 return tmp;
125#endif 121#endif
122 tmp = strdup(tmp);
123 return tmp;
126} 124}