diff options
author | Denis Vlasenko | 2007-01-27 22:21:12 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-01-27 22:21:12 +0000 |
commit | e06bed30cfcde7b9e320aff8a4c878c72416c4c4 (patch) | |
tree | da3276ab5bc224a64fb9f7d7d2a8a046816ec533 /libbb | |
parent | cd75a96f0f9d446028cad7e4b9b9224e009752e1 (diff) | |
download | busybox-e06bed30cfcde7b9e320aff8a4c878c72416c4c4.zip busybox-e06bed30cfcde7b9e320aff8a4c878c72416c4c4.tar.gz |
use bb_sanitize_stdio() where appropriate
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xfuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index f7300a6..54d291a 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(); |