summaryrefslogtreecommitdiff
path: root/usr.sbin/bootpd
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-06-17 20:22:06 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-06-17 20:22:06 +0000
commit1ecfd512fe7e5ede3727b9611f38d750a23266c9 (patch)
treeadc1d3d2a834f5d6a6f40dc5c56fac10b117d31d /usr.sbin/bootpd
parentad78d0e26688076e852e1eeb1c3be8dcd6d5a742 (diff)
when calling system(3) redirect std* from /dev/null
Diffstat (limited to 'usr.sbin/bootpd')
-rw-r--r--usr.sbin/bootpd/hwaddr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bootpd/hwaddr.c b/usr.sbin/bootpd/hwaddr.c
index 809abd63f1a..4f3e88e2153 100644
--- a/usr.sbin/bootpd/hwaddr.c
+++ b/usr.sbin/bootpd/hwaddr.c
@@ -134,8 +134,8 @@ setarp(s, ia, ha, len)
extern char *inet_ntoa();
a = inet_ntoa(*ia);
- snprintf(buf, sizeof(buf), "arp -d %s; arp -s %s %s temp",
- a, a, haddrtoa(ha, len));
+ snprintf(buf, sizeof(buf), "(arp -d %s; arp -s %s %s temp) "
+ "</dev/null >/dev/null 2>&1", a, a, haddrtoa(ha, len));
if (debug > 2)
report(LOG_INFO, "%s", buf);
status = system(buf);