summaryrefslogtreecommitdiffstats
path: root/Modules/pwdmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-12-06 12:48:53 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-12-06 12:48:53 (GMT)
commit79acb9edfa893b5072350c82fd0645d023b13b03 (patch)
tree7b9417700c6942124614f4639bfbea8ff5c68b9e /Modules/pwdmodule.c
parent468742878f53bb0a9061e6b167b3150f341fdf1c (diff)
downloadcpython-79acb9edfa893b5072350c82fd0645d023b13b03.zip
cpython-79acb9edfa893b5072350c82fd0645d023b13b03.tar.gz
cpython-79acb9edfa893b5072350c82fd0645d023b13b03.tar.bz2
Patch #614055: Support OpenVMS.
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r--Modules/pwdmodule.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c
index 9134edc..7e3c3ae 100644
--- a/Modules/pwdmodule.c
+++ b/Modules/pwdmodule.c
@@ -67,10 +67,18 @@ mkpwent(struct passwd *p)
#define SETS(i,val) sets(v, i, val)
SETS(setIndex++, p->pw_name);
+#ifdef __VMS
+ SETS(setIndex++, "");
+#else
SETS(setIndex++, p->pw_passwd);
+#endif
SETI(setIndex++, p->pw_uid);
SETI(setIndex++, p->pw_gid);
+#ifdef __VMS
+ SETS(setIndex++, "");
+#else
SETS(setIndex++, p->pw_gecos);
+#endif
SETS(setIndex++, p->pw_dir);
SETS(setIndex++, p->pw_shell);