Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210110 - ~net-misc/openssh-4.7_p1: LPK fix for 64-bit Linux
Summary: ~net-misc/openssh-4.7_p1: LPK fix for 64-bit Linux
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-14 10:05 UTC by Piotr Stolc
Modified: 2008-03-29 03:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch that makes LPK working on 64-bit Linux (lpk-64bit.patch,1.12 KB, patch)
2008-02-14 10:07 UTC, Piotr Stolc
Details | Diff
Patch for openssh-4.7_p1-r1.ebuild (openssh-4.7_p1-r1.ebuild.patch,443 bytes, patch)
2008-02-14 10:09 UTC, Piotr Stolc
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Stolc 2008-02-14 10:05:28 UTC
The OpenSSH-LPK patch is broken on x86_64 linux. I've written a patch that fix this problem and sent it to LPK patch developer. Anyway it would be nice to have this issue fixed in Gentoo before the new version of the patch will be released.


Reproducible: Always
Comment 1 Piotr Stolc 2008-02-14 10:07:52 UTC
Created attachment 143480 [details, diff]
Patch that makes LPK working on 64-bit Linux
Comment 2 Piotr Stolc 2008-02-14 10:09:10 UTC
Created attachment 143482 [details, diff]
Patch for openssh-4.7_p1-r1.ebuild
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-02-23 06:17:39 UTC
Could you please state what is actually broken with this?
Gentoo Infra has openssh-4.7_p1-r1 LPK running and in production use on several amd64 machines, and we haven't seen any problems.
Comment 4 Piotr Stolc 2008-02-23 10:16:28 UTC
The problem is with length of time_t type (it is long - 4 bytes on 32-bit and 8 bytes on 64-bit archs). LPK uses OpenSSH routine to parse config file and it converts timelimit strings to int using atoi(). Well, this should not be a problem since time_t should be unsigned value and the timeout setting would just not work, but there is probably a "signed/unsigned" bug in OpenLDAP (tried 2.3.38 and 2.3.40) and in my case the client abandons the connection immediately and LPK does not work correctly. And here is my fix for this :)
Comment 5 SpanKY gentoo-dev 2008-03-29 03:07:13 UTC
added fix to openssh-4.7_p1-r5