Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 42094 Details for
Bug 68003
proxychains patch to new glibc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proxychains glibc fix
glibc_fix.patch (text/plain), 1.84 KB, created by
Simon Cooper
on 2004-10-18 04:55:11 UTC
(
hide
)
Description:
proxychains glibc fix
Filename:
MIME Type:
Creator:
Simon Cooper
Created:
2004-10-18 04:55:11 UTC
Size:
1.84 KB
patch
obsolete
>diff -uprN proxychains-2.1.old/proxychains/core.c proxychains-2.1/proxychains/core.c >--- proxychains-2.1.old/proxychains/core.c 2004-10-18 13:07:26.127539040 +0100 >+++ proxychains-2.1/proxychains/core.c 2004-10-18 13:08:10.844740992 +0100 >@@ -159,7 +159,7 @@ static int timed_connect(int sock, const > pfd[0].fd=sock; > pfd[0].events=POLLOUT; > fcntl(sock, F_SETFL, O_NONBLOCK); >- ret=__libc_connect(sock, addr, len); >+ ret=__connect(sock, addr, len); > // printf("\nconnect ret=%d\n",ret);fflush(stdout); > if(ret==-1 && errno==EINPROGRESS) > { >diff -uprN proxychains-2.1.old/proxychains/core.h proxychains-2.1/proxychains/core.h >--- proxychains-2.1.old/proxychains/core.h 2004-10-18 13:07:26.127539040 +0100 >+++ proxychains-2.1/proxychains/core.h 2004-10-18 13:08:32.064515096 +0100 >@@ -66,10 +66,10 @@ int connect_proxy_chain ( > int proxychains_write_log(char *str,...); > > #ifndef __linux__ >-#define __libc_connect _connect >+#define __connect _connect > #endif > >-extern int __libc_connect (int sock, const struct sockaddr *addr, unsigned int len); >+extern int __connect (int sock, const struct sockaddr *addr, unsigned int len); > > > #endif >diff -uprN proxychains-2.1.old/proxychains/libproxychains.c proxychains-2.1/proxychains/libproxychains.c >--- proxychains-2.1.old/proxychains/libproxychains.c 2004-10-18 13:07:26.127539040 +0100 >+++ proxychains-2.1/proxychains/libproxychains.c 2004-10-18 13:08:54.579092360 +0100 >@@ -144,7 +144,7 @@ int connect (int sock, const struct sock > optlen=sizeof(socktype); > getsockopt(sock,SOL_SOCKET,SO_TYPE,&socktype,&optlen); > if (! (SOCKFAMILY(*addr)==AF_INET && socktype==SOCK_STREAM)) >- return __libc_connect(sock,addr,len); >+ return __connect(sock,addr,len); > get_chain_data(proxychains_pd,&proxychains_proxy_count,&proxychains_ct); > flags=fcntl(sock, F_GETFL, 0); > if(flags & O_NONBLOCK)
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 68003
: 42094