Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 200271 Details for
Bug 273836
net-ftp/kftpgrabber: fails to build with glibc-2.10
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
adds two consts and a const_cast to enable compilation with gcc44+glibc210
kftpgrabber-0.8.1-glibc210.patch (text/plain), 1.37 KB, created by
Arttu Valo
on 2009-08-05 17:33:31 UTC
(
hide
)
Description:
adds two consts and a const_cast to enable compilation with gcc44+glibc210
Filename:
MIME Type:
Creator:
Arttu Valo
Created:
2009-08-05 17:33:31 UTC
Size:
1.37 KB
patch
obsolete
>diff -ur kftpgrabber-0.8.1.old/kftpgrabber/src/engine/ftpsocket.cpp kftpgrabber-0.8.1/kftpgrabber/src/engine/ftpsocket.cpp >--- kftpgrabber-0.8.1.old/kftpgrabber/src/engine/ftpsocket.cpp 2009-08-06 04:12:45.938977940 +0300 >+++ kftpgrabber-0.8.1/kftpgrabber/src/engine/ftpsocket.cpp 2009-08-06 04:13:52.117078262 +0300 >@@ -758,7 +758,7 @@ > } > > // 229 Entering Extended Passive Mode (|||55016|) >- char *begin = strchr(socket()->getResponse().ascii(), '('); >+ const char *begin = strchr(socket()->getResponse().ascii(), '('); > int port; > > if (!begin || sscanf(begin, "(|||%d|)", &port) != 1) { >@@ -793,11 +793,11 @@ > > // Ok PASV command successfull - let's parse the result > int ip[6]; >- char *begin = strchr(socket()->getResponse().ascii(), '('); >+ const char *begin = strchr(socket()->getResponse().ascii(), '('); > > // Some stinky servers don't respect RFC and do it on their own > if (!begin) >- begin = strchr(socket()->getResponse().ascii(), '='); >+ begin = const_cast<char*> (strchr(socket()->getResponse().ascii(), '=')); > > if (!begin || (sscanf(begin, "(%d,%d,%d,%d,%d,%d)",&ip[0], &ip[1], &ip[2], &ip[3], &ip[4], &ip[5]) != 6 && > sscanf(begin, "=%d,%d,%d,%d,%d,%d",&ip[0], &ip[1], &ip[2], &ip[3], &ip[4], &ip[5]) != 6)) {
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 273836
:
194371
| 200271