Bug 1414

Summary: Botched getpwuid usage on Mac OS X
Product: Portable OpenSSH Reporter: Disco Vince Giffin <vgiffin>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: dtucker
Priority: P2    
Version: 4.7p1   
Hardware: Other   
OS: Mac OS X   
Attachments:
Description Flags
This patch corrects the usage of getpwuid for POSIX. none

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.