summaryrefslogtreecommitdiffstats
path: root/src/if.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-09-05 17:01:59 +0100
committerRoy Marples <roy@marples.name>2020-09-05 17:01:59 +0100
commite80f2a5aeaf2e249ca6b6a10090f64c69ea99719 (patch)
tree36f35ea6dca4c3c16e0dc9ba0f93ea47553493c0 /src/if.c
parentbb70c7ebdf80a3ee7d5146a877061503bf58c6d4 (diff)
downloaddhcpcd-e80f2a5aeaf2e249ca6b6a10090f64c69ea99719.tar.xz
privsep: Fix prior for FreeBSD.
Diffstat (limited to 'src/if.c')
-rw-r--r--src/if.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/if.c b/src/if.c
index 2e0920f9..40fdadcf 100644
--- a/src/if.c
+++ b/src/if.c
@@ -1016,10 +1016,6 @@ xsocketpair(int domain, int type, int protocol, int fd[2])
if ((s = socketpair(domain, type, protocol, fd)) == -1)
return -1;
-#ifdef PRIVSEP_RIGHTS
- if (ps_rights_limit_fdpair(fd) == -1)
- goto out;
-#endif
#ifndef HAVE_SOCK_CLOEXEC
if ((xtype & SOCK_CLOEXEC) && ((xflags = fcntl(fd[0], F_GETFD)) == -1 ||
fcntl(fd[0], F_SETFD, xflags | FD_CLOEXEC) == -1))
@@ -1039,8 +1035,7 @@ xsocketpair(int domain, int type, int protocol, int fd[2])
return s;
-#if defined(PRIVSEP_RIGHTS) || \
- !defined(HAVE_SOCK_CLOEXEC) || !defined(HAVE_SOCK_NONBLOCK)
+#if !defined(HAVE_SOCK_CLOEXEC) || !defined(HAVE_SOCK_NONBLOCK)
out:
close(fd[0]);
close(fd[1]);