]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Report the reason we exec the script and don't error on deleting non existant routes...
authorRoy Marples <roy@marples.name>
Wed, 9 Jul 2008 21:15:26 +0000 (21:15 +0000)
committerRoy Marples <roy@marples.name>
Wed, 9 Jul 2008 21:15:26 +0000 (21:15 +0000)
configure.c

index c761ab757be81420661e3682332daee082a3cf90..47c9bcc48b712e81c02545a033651dac6e568c04 100644 (file)
@@ -63,7 +63,7 @@ exec_script(const struct options *options, const char *iface,
        sigset_t full;
        sigset_t old;
 
-       logger(LOG_DEBUG, "executing `%s'", options->script);
+       logger(LOG_DEBUG, "executing `%s', reason %s", options->script, reason);
 
        /* Make our env */
        elen = 5;
@@ -197,10 +197,9 @@ delete_route(const char *iface, struct rt *rt, int metric)
               addr, inet_ntocidr(rt->net), inet_ntoa(rt->gate));
        free(addr);
        retval = del_route(iface, &rt->dest, &rt->net, &rt->gate, metric);
-       if (retval != 0 && errno != ENOENT)
+       if (retval != 0 && errno != ENOENT && errno != ESRCH)
                logger(LOG_ERR," del_route: %s", strerror(errno));
        return retval;
-
 }
 
 static int