]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Abort when we have an invalid interface list.
authorRoy Marples <roy@marples.name>
Fri, 9 Oct 2009 19:24:22 +0000 (19:24 +0000)
committerRoy Marples <roy@marples.name>
Fri, 9 Oct 2009 19:24:22 +0000 (19:24 +0000)
dhcpcd.c

index 9adb225319636df4e65cd75d126ca27f0ef20599..b5f51351009abc2e1a481fbb6a33dccb2fce967b 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1792,6 +1792,8 @@ main(int argc, char **argv)
        if (!ifaces) {
                if (ifc == 0)
                        syslog(LOG_ERR, "no valid interfaces found");
+               else
+                       exit(EXIT_FAILURE);
                if (!(options & DHCPCD_LINK)) {
                        syslog(LOG_ERR, "aborting as we're not backgrounding"
                            " with link detection");