Page MenuHomeFreeBSD

D36878.diff
No OneTemporary

D36878.diff

diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c
--- a/usr.sbin/traceroute6/traceroute6.c
+++ b/usr.sbin/traceroute6/traceroute6.c
@@ -937,7 +937,7 @@
strerror(errno));
exit(1);
}
- cap_rights_init(&rights, CAP_RECV);
+ cap_rights_init(&rights, CAP_RECV, CAP_EVENT);
if (caph_rights_limit(rcvsock, &rights) < 0) {
fprintf(stderr, "caph_rights_limit rcvsock: %s\n",
strerror(errno));
@@ -1039,7 +1039,8 @@
pfd[0].events = POLLIN;
pfd[0].revents = 0;
- if (poll(pfd, 1, waittime * 1000) > 0)
+ if (poll(pfd, 1, waittime * 1000) > 0 &&
+ pfd[0].revents & POLLIN)
cc = recvmsg(rcvsock, mhdr, 0);
return (cc);

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 28, 12:55 AM (9 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16229953
Default Alt Text
D36878.diff (683 B)

Event Timeline