From: Roy Marples Date: Wed, 8 Nov 2023 14:27:36 +0000 (+0000) Subject: dev: Don't fail to start if we cannot open the dev plugin path X-Git-Tag: v10.0.5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10648146678045aafad2f53b305dfb99eb905c86;p=thirdparty%2Fdhcpcd.git dev: Don't fail to start if we cannot open the dev plugin path We accidently returned stdin fd in this case - return -1 instead. --- diff --git a/src/dev.c b/src/dev.c index eb158e4a..0abc3ee2 100644 --- a/src/dev.c +++ b/src/dev.c @@ -150,7 +150,7 @@ dev_start1(struct dhcpcd_ctx *ctx, const struct dev_dhcpcd *dev_dhcpcd) dp = opendir(DEVDIR); if (dp == NULL) { logdebug("dev: %s", DEVDIR); - return 0; + return -1; } r = 0;