diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-11-26 23:14:30 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-11-26 23:14:30 +0000 |
commit | 8b11e1432e0e80298847a164b1d8792a92603605 (patch) | |
tree | b43eee2a58b1e3fb4f578befb6838d7e3bc6278b /sbin/dhclient/errwarn.c | |
parent | 6f5b7aaddc859f35419e4f834a67f2d6f372f9da (diff) |
Silence dhclient by immediately exiting if the interface doesn't exist
or can't return important flags via ioctl. Excess verbiage pointed out
by deraadt@.
ok henning@
Diffstat (limited to 'sbin/dhclient/errwarn.c')
-rw-r--r-- | sbin/dhclient/errwarn.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/dhclient/errwarn.c b/sbin/dhclient/errwarn.c index ac777f1194b..2357936be92 100644 --- a/sbin/dhclient/errwarn.c +++ b/sbin/dhclient/errwarn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: errwarn.c,v 1.16 2009/06/06 04:02:42 krw Exp $ */ +/* $OpenBSD: errwarn.c,v 1.17 2009/11/26 23:14:29 krw Exp $ */ /* Errors and warnings... */ @@ -78,9 +78,7 @@ error(char *fmt, ...) write(STDERR_FILENO, "\n", 1); } - syslog(LOG_CRIT, "exiting."); if (log_perror) { - fprintf(stderr, "exiting.\n"); fflush(stderr); } exit(1); |