From 8c695448e7ab1aa9b6c44a36ae84d3263484d1a6 Mon Sep 17 00:00:00 2001 From: corvid Date: Sun, 17 May 2009 18:52:17 +0000 Subject: unset HOME defaults to / --- dlib/dlib.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dlib') 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; -- cgit v1.2.3