Bug 1414 - Botched getpwuid usage on Mac OS X
Summary: Botched getpwuid usage on Mac OS X
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 4.7p1
Hardware: Other Mac OS X
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-21 15:25 AEDT by Disco Vince Giffin
Modified: 2008-04-04 10:01 AEDT (History)
1 user (show)

See Also:


Attachments
This patch corrects the usage of getpwuid for POSIX. (1.21 KB, patch)
2007-12-21 15:25 AEDT, Disco Vince Giffin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Disco Vince Giffin 2007-12-21 15:25:22 AEDT
Created attachment 1409 [details]
This patch corrects the usage of getpwuid for POSIX.

Attached is a patch for building OpenSSH 4.7p1 on Mac OS X.

Fixes a bug where ssh makes calls to getpwuid and expects the returned value to remain unchanged after subsequent calls, which is not guaranteed by POSIX.
Comment 1 Darren Tucker 2007-12-21 19:36:18 AEDT
This one has already been fixed in CVS head (ssh.c rev 1.297) with an almost identical change.
Comment 2 Damien Miller 2008-04-04 10:01:47 AEDT
Close resolved bugs after release.