diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-12-29 10:30:21 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-12-29 10:30:21 +0000 |
commit | c4d7a4b974b7bd365f42e67545eab4e6df1a3c2a (patch) | |
tree | 68e21843962b112479175e6210ae73b4fb2f8a95 /net | |
parent | b71bdc0e0c53a748031878aaba5bad7125a92eef (diff) | |
download | ports-c4d7a4b974b7bd365f42e67545eab4e6df1a3c2a.tar.gz ports-c4d7a4b974b7bd365f42e67545eab4e6df1a3c2a.zip |
Notes
Diffstat (limited to 'net')
-rw-r--r-- | net/dpinger/Makefile | 4 | ||||
-rw-r--r-- | net/dpinger/distinfo | 4 | ||||
-rw-r--r-- | net/dpinger/files/patch-dpinger.c | 23 |
3 files changed, 27 insertions, 4 deletions
diff --git a/net/dpinger/Makefile b/net/dpinger/Makefile index c16d7ac0c6b2..7a4c65d0ec4d 100644 --- a/net/dpinger/Makefile +++ b/net/dpinger/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= dpinger -PORTVERSION= 1.1 +PORTVERSION= 1.2 CATEGORIES= net MAINTAINER= garga@FreeBSD.org @@ -13,7 +13,7 @@ USES= uidfix USE_GITHUB= yes GH_ACCOUNT= dennypage GH_PROJECT= dpinger -GH_TAGNAME= v1.1 +GH_TAGNAME= v${PORTVERSION} PLIST_FILES= bin/dpinger diff --git a/net/dpinger/distinfo b/net/dpinger/distinfo index 5a41ea159dc9..a3d39ecfcabc 100644 --- a/net/dpinger/distinfo +++ b/net/dpinger/distinfo @@ -1,2 +1,2 @@ -SHA256 (dennypage-dpinger-1.1-v1.1_GH0.tar.gz) = 2a0d7fad1122bdcedfbd481cfcc06c70a1a12b74263138e40b7ffaff76dc8d97 -SIZE (dennypage-dpinger-1.1-v1.1_GH0.tar.gz) = 9529 +SHA256 (dennypage-dpinger-1.2-v1.2_GH0.tar.gz) = a904dcb5993ae9f25388634d90c21bdea87b45b9e1b271c0a4cbc7eb0dd6a314 +SIZE (dennypage-dpinger-1.2-v1.2_GH0.tar.gz) = 9809 diff --git a/net/dpinger/files/patch-dpinger.c b/net/dpinger/files/patch-dpinger.c new file mode 100644 index 000000000000..e577b8d5d944 --- /dev/null +++ b/net/dpinger/files/patch-dpinger.c @@ -0,0 +1,23 @@ +--- dpinger.c.orig 2015-12-29 10:25:51 UTC ++++ dpinger.c +@@ -1106,13 +1106,19 @@ main( + fatal("socket name too large\n"); + } + +- usocket_fd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0); ++ usocket_fd = socket(AF_UNIX, SOCK_STREAM, 0); + if (usocket_fd == -1) + { + perror("socket"); + fatal("cannot create unix domain socket\n"); + } + ++ if (fcntl(usocket_fd, F_SETFD, FD_CLOEXEC) == -1) ++ { ++ perror("socket"); ++ fatal("cannot set cloexec on unix domain socket\n"); ++ } ++ + (void) unlink(usocket_name); + + memset(&uaddr, 0, sizeof(uaddr)); |