diff options
author | brian <brian@cvs.openbsd.org> | 2001-10-24 10:01:10 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 2001-10-24 10:01:10 +0000 |
commit | 99281c8c0c1c848683a7c30cbd750b980ab57aa3 (patch) | |
tree | 55b208ccfa85eaebb74bd27559f486c40cc4ace9 | |
parent | ced55eaf07194de926c63ac68aff019b8e8b4244 (diff) |
Write static arp entries as uid 0.
-rw-r--r-- | usr.sbin/ppp/ppp/arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/arp.c b/usr.sbin/ppp/ppp/arp.c index ccf5d1cb945..27641f3951d 100644 --- a/usr.sbin/ppp/ppp/arp.c +++ b/usr.sbin/ppp/ppp/arp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $OpenBSD: arp.c,v 1.10 2001/08/19 23:22:17 brian Exp $ + * $OpenBSD: arp.c,v 1.11 2001/10/24 10:01:09 brian Exp $ * */ @@ -133,7 +133,7 @@ arp_ProxySub(struct bundle *bundle, struct in_addr addr, int add, int s) + arpmsg.hwa.sdl_len; - if (write(routes, &arpmsg, arpmsg.hdr.rtm_msglen) < 0 && + if (ID0write(routes, &arpmsg, arpmsg.hdr.rtm_msglen) < 0 && !(!add && errno == ESRCH)) { log_Printf(LogERROR, "%s proxy arp entry %s: %s\n", add ? "Add" : "Delete", inet_ntoa(addr), strerror(errno)); |