[PATCH] runsv: fix open error check (fd < -1 should be fd < 0)
Weixie Cui via busybox <[email protected]>
| Newsgroups | gmane.linux.busybox |
|---|---|
| Message-ID | <[email protected]> |
From: Weixie Cui <[email protected]> --- runit/runsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runit/runsv.c b/runit/runsv.c index 20a445319..df7c59ac6 100644 --- a/runit/runsv.c +++ b/runit/runsv.c @@ -210,7 +210,7 @@ static void update_status(struct svdir *s) /* stat */ fd = open_trunc_or_warn(fstatnew); - if (fd < -1) + if (fd < 0) return; { -- 2.39.5 (Apple Git-154)