Skip to content
Snippets Groups Projects
Commit 490d46af authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Nico's VMS fixes

parent d30c4783
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,9 @@
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif
#ifdef VMS
#include <unixlib.h>
#endif
#include <curl/curl.h>
......@@ -88,8 +90,13 @@ int Curl_parsenetrc(char *host,
#if defined(HAVE_GETPWUID) && defined(HAVE_GETEUID)
struct passwd *pw;
pw= getpwuid(geteuid());
if (pw)
if (pw) {
#ifdef VMS
home = decc$translate_vms(pw->pw_dir);
#else
home = pw->pw_dir;
#endif
}
#else
void *pw=NULL;
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment