From 10648146678045aafad2f53b305dfb99eb905c86 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 8 Nov 2023 14:27:36 +0000 Subject: [PATCH] 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. --- src/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2