aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-06 12:24:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-06 12:24:22 +0000
commit490d46affb6fbe8b4b11694697cc8661206deaa7 (patch)
tree0814fa0e470b15ad94148829aaee589389c21317 /lib
parentd30c478378ce5e135379210c970d26db5f73078e (diff)
Nico's VMS fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/netrc.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/netrc.c b/lib/netrc.c
index b2dd35692..9e5fde824 100644
--- a/lib/netrc.c
+++ b/lib/netrc.c
@@ -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