Summary: | ~net-misc/openssh-4.7_p1: LPK fix for 64-bit Linux | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Piotr Stolc <socrtp-gentoo> |
Component: | New packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | base-system |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Patch that makes LPK working on 64-bit Linux
Patch for openssh-4.7_p1-r1.ebuild |
Description
Piotr Stolc
2008-02-14 10:05:28 UTC
Created attachment 143480 [details, diff]
Patch that makes LPK working on 64-bit Linux
Created attachment 143482 [details, diff]
Patch for openssh-4.7_p1-r1.ebuild
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. 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 :) added fix to openssh-4.7_p1-r5 |