projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d30c478
)
Nico's VMS fixes
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 6 Aug 2001 12:24:22 +0000
(12:24 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 6 Aug 2001 12:24:22 +0000
(12:24 +0000)
lib/netrc.c
patch
|
blob
|
history
diff --git
a/lib/netrc.c
b/lib/netrc.c
index b2dd35692c00e74d6380aa255d869544ca6ee175..9e5fde824dc4d9fdd1cb979502fcf09826063ddb 100644
(file)
--- 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