summaryrefslogtreecommitdiff
path: root/dlib
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-05-17 18:52:17 +0000
committercorvid <corvid@lavabit.com>2009-05-17 18:52:17 +0000
commit8c695448e7ab1aa9b6c44a36ae84d3263484d1a6 (patch)
treee64203bf228f37a9a4da5bade32db3668058ccf7 /dlib
parent43d665c593b1845a1fb2f7d54e4ca4c9ee60250e (diff)
unset HOME defaults to /
Diffstat (limited to 'dlib')
-rw-r--r--dlib/dlib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dlib/dlib.c b/dlib/dlib.c
index 310e9976..a4a63995 100644
--- a/dlib/dlib.c
+++ b/dlib/dlib.c
@@ -852,6 +852,9 @@ char *dGethomedir ()
} else if (getenv("HOMEDRIVE") && getenv("HOMEPATH")) {
homedir = dStrconcat(getenv("HOMEDRIVE"), getenv("HOMEPATH"), NULL);
+ } else {
+ DLIB_MSG("dGethomedir: $HOME not set, using '/'.\n");
+ homedir = dStrdup("/");
}
}
return homedir;