From c6bbd895662dff96ca89c577623e8f1c234b015f Mon Sep 17 00:00:00 2001 From: vda Date: Sat, 27 Jan 2007 22:21:12 +0000 Subject: use bb_sanitize_stdio() where appropriate git-svn-id: svn://busybox.net/trunk/busybox@17557 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/xfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb') diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index f7300a6d9..54d291ab1 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c @@ -518,7 +518,7 @@ void bb_sanitize_stdio_maybe_daemonize(int daemonize) int fd; /* Mega-paranoid */ fd = xopen(bb_dev_null, O_RDWR); - while (fd < 2) + while ((unsigned)fd < 2) fd = dup(fd); /* have 0,1,2 open at least to /dev/null */ if (daemonize) { pid_t pid = fork(); -- cgit v1.2.3-55-g6feb