From: Ramiro Polla Date: Wed, 22 Sep 2010 02:06:50 +0000 (-0300) Subject: Also check for %APPDATA% on win32 to use as home X-Git-Tag: v3.2~316 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92cc99ef379f301a9ee3cb15f6a6744ea7a75a08;p=thirdparty%2Fccache.git Also check for %APPDATA% on win32 to use as home --- diff --git a/util.c b/util.c index 0ea67b4c2..905bd24b6 100644 --- a/util.c +++ b/util.c @@ -876,6 +876,12 @@ get_home_directory(void) if (p) { return p; } +#ifdef _WIN32 + p = getenv("APPDATA"); + if (p) { + return p; + } +#endif #ifdef HAVE_GETPWUID { struct passwd *pwd = getpwuid(getuid());