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
This commit is contained in:
@@ -59,6 +59,10 @@
|
||||
#include "prenv.h"
|
||||
#endif
|
||||
|
||||
#if defined(VMS)
|
||||
#include <unixlib.h>
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user