projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acc1c38
)
feature TMPDIR env variable.
author
Tim Janik
<timj@src.gnome.org>
Wed, 15 Jul 1998 17:11:15 +0000
(17:11 +0000)
committer
Tim Janik
<timj@src.gnome.org>
Wed, 15 Jul 1998 17:11:15 +0000
(17:11 +0000)
glib/gutils.c
patch
|
blob
|
history
gutils.c
patch
|
blob
|
history
diff --git
a/glib/gutils.c
b/glib/gutils.c
index
80e2ddb
..
19271fa
100644
(file)
--- a/
glib/gutils.c
+++ b/
glib/gutils.c
@@
-189,7
+189,9
@@
g_get_any_init (void)
{
struct passwd *pw;
- g_tmp_dir = g_strdup (getenv ("TMP"));
+ g_tmp_dir = g_strdup (getenv ("TMPDIR"));
+ if (!g_tmp_dir)
+ g_tmp_dir = g_strdup (getenv ("TMP"));
if (!g_tmp_dir)
g_tmp_dir = g_strdup (getenv ("TEMP"));
if (!g_tmp_dir)
diff --git
a/gutils.c
b/gutils.c
index
80e2ddb
..
19271fa
100644
(file)
--- a/
gutils.c
+++ b/
gutils.c
@@
-189,7
+189,9
@@
g_get_any_init (void)
{
struct passwd *pw;
- g_tmp_dir = g_strdup (getenv ("TMP"));
+ g_tmp_dir = g_strdup (getenv ("TMPDIR"));
+ if (!g_tmp_dir)
+ g_tmp_dir = g_strdup (getenv ("TMP"));
if (!g_tmp_dir)
g_tmp_dir = g_strdup (getenv ("TEMP"));
if (!g_tmp_dir)