Commit d4478d5f authored by Phil Blundell's avatar Phil Blundell

More socket-open fixes

parent 2d37c454
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* that either displays or sets the characteristics of * that either displays or sets the characteristics of
* one or more of the system's networking interfaces. * one or more of the system's networking interfaces.
* *
* Version: $Id: ifconfig.c,v 1.23 1998/12/01 20:48:41 philip Exp $ * Version: $Id: ifconfig.c,v 1.24 1998/12/05 10:33:51 philip Exp $
* *
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation * and others. Copyright 1993 MicroWalt Corporation
...@@ -548,8 +548,8 @@ int main(int argc, char **argv) ...@@ -548,8 +548,8 @@ int main(int argc, char **argv)
/* XXX: should print the current setup if no args left, but only /* XXX: should print the current setup if no args left, but only
for this family */ for this family */
spp++; spp++;
addr_family = ap->af;
} }
addr_family = ap->af;
if (sockets_open(addr_family) < 0) { if (sockets_open(addr_family) < 0) {
perror("family socket"); perror("family socket");
......
...@@ -43,7 +43,7 @@ int sockets_open(int family) ...@@ -43,7 +43,7 @@ int sockets_open(int family)
continue; continue;
} }
/* Check some /proc file first to not stress kmod */ /* Check some /proc file first to not stress kmod */
if (!force && af->flag_file) { if (!family && !force && af->flag_file) {
if (access(af->flag_file, R_OK)) if (access(af->flag_file, R_OK))
continue; continue;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment