Skip to content

Commit

Permalink
dev: Don't fail to start if we cannot open the dev plugin path
Browse files Browse the repository at this point in the history
We accidently returned stdin fd in this case - return -1 instead.
  • Loading branch information
rsmarples committed Nov 10, 2023
1 parent c32c88b commit 1064814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1064814

Please sign in to comment.