summaryrefslogtreecommitdiffstats
path: root/Modules/pwdmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-07 15:38:56 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-07 15:38:56 (GMT)
commit03e8ffa34587f609ea05e54f93d60b5116bdea54 (patch)
treeb004c8e89eb761db02c9956b80195fdc9d1aa041 /Modules/pwdmodule.c
parentf5c6d47e96470e66a82c0d7103d100fae61d9526 (diff)
downloadcpython-03e8ffa34587f609ea05e54f93d60b5116bdea54.zip
cpython-03e8ffa34587f609ea05e54f93d60b5116bdea54.tar.gz
cpython-03e8ffa34587f609ea05e54f93d60b5116bdea54.tar.bz2
patches for NeXT weirdness
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r--Modules/pwdmodule.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c
index a9253c2..ec0e848 100644
--- a/Modules/pwdmodule.c
+++ b/Modules/pwdmodule.c
@@ -36,8 +36,15 @@ static object *mkpwent(p)
return mkvalue("(ssllsss)",
p->pw_name,
p->pw_passwd,
+#if defined(NeXT) && defined(_POSIX_SOURCE) && defined(__LITTLE_ENDIAN__)
+/* Correct a bug present on Intel machines in NextStep 3.2 and 3.3;
+ for later versions you may have to remove this */
+ (long)p->pw_short_pad1, /* ugh-NeXT broke the padding */
+ (long)p->pw_short_pad2,
+#else
(long)p->pw_uid,
(long)p->pw_gid,
+#endif
p->pw_gecos,
p->pw_dir,
p->pw_shell);