From 48c58d875fcdbff5b24d1da8305ba0853369e0aa Mon Sep 17 00:00:00 2001 From: "colin%theblakes.com" Date: Thu, 5 Oct 2000 10:12:15 +0000 Subject: [PATCH] r=dougt, sr=blizzard, bugzilla=55163 OpenVMS-specific change to handle HOME correctly. Fixes location of appreg bug. git-svn-id: svn://10.0.0.236/trunk@80441 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/io/nsSpecialSystemDirectory.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mozilla/xpcom/io/nsSpecialSystemDirectory.cpp b/mozilla/xpcom/io/nsSpecialSystemDirectory.cpp index dfca62c1aaa..231a1dbbc65 100644 --- a/mozilla/xpcom/io/nsSpecialSystemDirectory.cpp +++ b/mozilla/xpcom/io/nsSpecialSystemDirectory.cpp @@ -59,6 +59,10 @@ #include "prenv.h" #endif +#if defined(VMS) +#include +#endif + #include "plstr.h" #include "nsHashtable.h" @@ -750,7 +754,18 @@ void nsSpecialSystemDirectory::operator = (SystemDirectories aSystemSystemDirect break; case Unix_HomeDirectory: +#ifdef VMS + { + char *pHome; + pHome = getenv("HOME"); + if (*pHome == '/') + *this = pHome; + else + *this = decc$translate_vms(pHome); + } +#else *this = PR_GetEnv("HOME"); +#endif break; #endif