diff options
author | jkh <jkh@FreeBSD.org> | 1999-09-27 21:48:28 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1999-09-27 21:48:28 +0000 |
commit | ef811049fdfd0f5360679351f1e7845c915caee9 (patch) | |
tree | bd18b7f0cf16730e14a8e8bae7a218556dd1988e /usr.sbin | |
parent | 412c3617b4be173eb1d40def7ae1d04b493129d5 (diff) | |
download | FreeBSD-src-ef811049fdfd0f5360679351f1e7845c915caee9.zip FreeBSD-src-ef811049fdfd0f5360679351f1e7845c915caee9.tar.gz |
Oh bollocks, I really screwed up the "auto" check here. Time
to crack the K&R; I must have forgotten the C language. :)
Embarrassingly noticed by: Howard Gutch <logix@foobar.franken.de>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sysinstall/tcpip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c index 77cc98a..d0a77ac 100644 --- a/usr.sbin/sysinstall/tcpip.c +++ b/usr.sbin/sysinstall/tcpip.c @@ -391,7 +391,7 @@ netconfig: sprintf(temp, "inet %s %s netmask %s", ipaddr, extras, netmask); variable_set2(ifn, temp, 1); ifaces = variable_get(VAR_INTERFACES); - if (!ifaces || !strcmp(ifaces, "auto")) + if (!ifaces || (ifaces && !strcmp(ifaces, "auto"))) variable_set2(VAR_INTERFACES, ifaces = "lo0", 1); /* Only add it if it's not there already */ if (!strstr(ifaces, devp->name)) { |