[PATCH] procd: fix compilation with newer musl

Rosen Penev rosenp at gmail.com
Tue Mar 2 00:05:46 GMT 2021


An open bracket was missing.

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 jail/jail.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jail/jail.c b/jail/jail.c
index 378a729..ce4f50c 100644
--- a/jail/jail.c
+++ b/jail/jail.c
@@ -2804,7 +2804,7 @@ static void post_main(struct uloop_timeout *t)
 			close(pidns_fd);
 		}
 #ifdef CLONE_NEWTIME
-		if (timens_fd != -1)
+		if (timens_fd != -1) {
 			setns(timens_fd, CLONE_NEWTIME);
 			close(timens_fd);
 		}
-- 
2.25.1




More information about the openwrt-devel mailing list