diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-12-06 12:48:53 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-12-06 12:48:53 (GMT) |
commit | 79acb9edfa893b5072350c82fd0645d023b13b03 (patch) | |
tree | 7b9417700c6942124614f4639bfbea8ff5c68b9e /Modules/pwdmodule.c | |
parent | 468742878f53bb0a9061e6b167b3150f341fdf1c (diff) | |
download | cpython-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.c | 8 |
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); |