FreeBSD Bugzilla – Attachment 200694 Details for
Bug 234558
net/py-netifaces: invalid errno check
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix invalid errno check in netifaces.gateways()
netifaces_issue28.diff (text/plain), 1.33 KB, created by
Alan Somers
on 2019-01-02 06:14:24 UTC
(
hide
)
Description:
Fix invalid errno check in netifaces.gateways()
Filename:
MIME Type:
Creator:
Alan Somers
Created:
2019-01-02 06:14:24 UTC
Size:
1.33 KB
patch
obsolete
>Index: net/py-netifaces/Makefile >=================================================================== >--- net/py-netifaces/Makefile (revision 488697) >+++ net/py-netifaces/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= netifaces > PORTVERSION= 0.10.6 >+PORTREVISION= 1 > CATEGORIES= net python > MASTER_SITES= CHEESESHOP > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >Index: net/py-netifaces/files/patch-netifaces.c >=================================================================== >--- net/py-netifaces/files/patch-netifaces.c (nonexistent) >+++ net/py-netifaces/files/patch-netifaces.c (working copy) >@@ -0,0 +1,11 @@ >+--- netifaces.c.orig 2019-01-01 23:00:37.282549000 -0700 >++++ netifaces.c 2019-01-01 23:01:07.093433000 -0700 >+@@ -2007,7 +2007,7 @@ >+ buffer = ptr; >+ >+ ret = sysctl (mib, 6, buffer, &len, 0, 0); >+- } while (ret != 0 || errno == ENOMEM || errno == EINTR); >++ } while (ret != 0 && (errno == ENOMEM || errno == EINTR)); >+ >+ if (ret < 0) { >+ PyErr_SetFromErrno (PyExc_OSError); > >Property changes on: net/py-netifaces/files/patch-netifaces.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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
Flags:
asomers
:
maintainer-approval?
Actions:
View
|
Diff
Attachments on
bug 234558
: 200694