diff options
| author | Roy Marples <roy@marples.name> | 2020-09-05 17:01:59 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-09-05 17:01:59 +0100 |
| commit | e80f2a5aeaf2e249ca6b6a10090f64c69ea99719 (patch) | |
| tree | 36f35ea6dca4c3c16e0dc9ba0f93ea47553493c0 /src/if.c | |
| parent | bb70c7ebdf80a3ee7d5146a877061503bf58c6d4 (diff) | |
| download | dhcpcd-e80f2a5aeaf2e249ca6b6a10090f64c69ea99719.tar.xz | |
privsep: Fix prior for FreeBSD.
Diffstat (limited to 'src/if.c')
| -rw-r--r-- | src/if.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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]); |
