From 1ecfd512fe7e5ede3727b9611f38d750a23266c9 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Mon, 17 Jun 2002 20:22:06 +0000 Subject: when calling system(3) redirect std* from /dev/null --- usr.sbin/bootpd/hwaddr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') 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 2>&1", a, a, haddrtoa(ha, len)); if (debug > 2) report(LOG_INFO, "%s", buf); status = system(buf); -- cgit v1.2.3