Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
03e8ffa3
Commit
03e8ffa3
authored
Feb 07, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches for NeXT weirdness
parent
f5c6d47e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
Modules/grpmodule.c
Modules/grpmodule.c
+6
-0
Modules/pwdmodule.c
Modules/pwdmodule.c
+7
-0
No files found.
Modules/grpmodule.c
View file @
03e8ffa3
...
...
@@ -49,7 +49,13 @@ static object *mkgrent(p)
v
=
mkvalue
(
"(sslO)"
,
p
->
gr_name
,
p
->
gr_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
->
gr_short_pad
,
/* ugh-NeXT broke the padding */
#else
(
long
)
p
->
gr_gid
,
#endif
w
);
DECREF
(
w
);
return
v
;
...
...
Modules/pwdmodule.c
View file @
03e8ffa3
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment