Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.sbin/rbootd Pull up revision 1.11 (requested by luk...
details: https://anonhg.NetBSD.org/src/rev/163fd3dfbf66
branches: netbsd-1-5
changeset: 490673:163fd3dfbf66
user: he <he%NetBSD.org@localhost>
date: Mon Feb 26 16:36:39 2001 +0000
description:
Pull up revision 1.11 (requested by lukem):
Prevent core dump if no interfaces are up.
diffstat:
usr.sbin/rbootd/bpf.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r d96d0d5267cb -r 163fd3dfbf66 usr.sbin/rbootd/bpf.c
--- a/usr.sbin/rbootd/bpf.c Mon Feb 26 16:32:47 2001 +0000
+++ b/usr.sbin/rbootd/bpf.c Mon Feb 26 16:36:39 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bpf.c,v 1.10 2000/04/13 08:52:44 itojun Exp $ */
+/* $NetBSD: bpf.c,v 1.10.4.1 2001/02/26 16:36:39 he Exp $ */
/*
* Copyright (c) 1988, 1992 The University of Utah and the Center
@@ -51,7 +51,7 @@
#if 0
static char sccsid[] = "@(#)bpf.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: bpf.c,v 1.10 2000/04/13 08:52:44 itojun Exp $");
+__RCSID("$NetBSD: bpf.c,v 1.10.4.1 2001/02/26 16:36:39 he Exp $");
#endif
#endif /* not lint */
@@ -233,6 +233,9 @@
static char device[IFNAMSIZ + 1];
static char errbuf[128] = "No Error!";
+ if (errmsg != NULL)
+ *errmsg = errbuf;
+
if (getifaddrs(&ifap) != 0) {
(void) strcpy(errbuf, "bpf: getifaddrs: %m");
return(NULL);
Home |
Main Index |
Thread Index |
Old Index