Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 49217 Details for
Bug 79124
Bash incorrectly assumes network connection on Darwin.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bash-isnetconn.patch
bash-isnetconn.patch (text/plain), 671 bytes, created by
Sune Foldager
on 2005-01-22 12:17:58 UTC
(
hide
)
Description:
bash-isnetconn.patch
Filename:
MIME Type:
Creator:
Sune Foldager
Created:
2005-01-22 12:17:58 UTC
Size:
671 bytes
patch
obsolete
>--- /lib/sh/netconn.c Sat Oct 12 20:47:38 2002 >+++ /lib/sh/netconn.c_new Sat Jan 22 20:58:20 2005 >@@ -53,7 +53,8 @@ > l = sizeof(sa); > rv = getpeername(fd, &sa, &l); > /* Solaris 2.5 getpeername() returns EINVAL if the fd is not a socket. */ >- return ((rv < 0 && (errno == ENOTSOCK || errno == EINVAL)) ? 0 : 1); >+ /* Darwin 7.7.0 getpeername() returns ENOTCONN if the fd was created with pipe(). */ >+ return ((rv < 0 && (errno == ENOTSOCK || errno == ENOTCONN || errno == EINVAL)) ? 0 : 1); > #else /* !HAVE_GETPEERNAME || SVR4_2 || __BEOS__ */ > # if defined (SVR4) || defined (SVR4_2) > /* Sockets on SVR4 and SVR4.2 are character special (streams) devices. */
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 79124
: 49217 |
49220
|
49221
|
49222