Nico's VMS fixes
authorDaniel Stenberg <daniel@haxx.se>
Mon, 6 Aug 2001 12:24:22 +0000 (12:24 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Aug 2001 12:24:22 +0000 (12:24 +0000)
lib/netrc.c

index b2dd35692c00e74d6380aa255d869544ca6ee175..9e5fde824dc4d9fdd1cb979502fcf09826063ddb 100644 (file)
@@ -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