Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 143480 Details for
Bug 210110
~net-misc/openssh-4.7_p1: LPK fix for 64-bit Linux
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that makes LPK working on 64-bit Linux
lpk-64bit.patch (text/plain), 1.12 KB, created by
Piotr Stolc
on 2008-02-14 10:07:52 UTC
(
hide
)
Description:
Patch that makes LPK working on 64-bit Linux
Filename:
MIME Type:
Creator:
Piotr Stolc
Created:
2008-02-14 10:07:52 UTC
Size:
1.12 KB
patch
obsolete
>--- servconf.c.orig 2008-02-13 21:03:10.000000000 +0100 >+++ servconf.c 2008-02-13 21:09:14.000000000 +0100 >@@ -690,6 +690,7 @@ > { > char *cp, **charptr, *arg, *p; > int cmdline = 0, *intptr, value, n; >+ unsigned long lvalue, *longptr; > ServerOpCodes opcode; > u_short port; > u_int i, flags = 0; >@@ -704,6 +705,7 @@ > if (!arg || !*arg || *arg == '#') > return 0; > intptr = NULL; >+ longptr = NULL; > charptr = NULL; > opcode = parse_token(arg, filename, linenum, &flags); > >@@ -1421,11 +1423,20 @@ > *intptr = value; > break; > case sBindTimeout: >- intptr = (int *) &options->lpk.b_timeout.tv_sec; >- goto parse_int; >+ longptr = (unsigned long *) &options->lpk.b_timeout.tv_sec; >+parse_ulong: >+ arg = strdelim(&cp); >+ if (!arg || *arg == '\0') >+ fatal("%s line %d: missing integer value.", >+ filename, linenum); >+ lvalue = atol(arg); >+ if (*activep && *longptr == -1) >+ *longptr = lvalue; >+ break; >+ > case sSearchTimeout: >- intptr = (int *) &options->lpk.s_timeout.tv_sec; >- goto parse_int; >+ longptr = (unsigned long *) &options->lpk.s_timeout.tv_sec; >+ goto parse_ulong; > break; > case sLdapConf: > arg = cp;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 210110
: 143480 |
143482