skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit 334d7f09d8dec83b9399e2cc44490b3868cd0772
parent aae36ab297feb6e934f478e7655c123d928651a7
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Fri, 30 Jan 2015 23:17:08 +0000

 make fd_sanitize check stderr too

Diffstat:
Msrc/include/skalibs/djbunix.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/include/skalibs/djbunix.h b/src/include/skalibs/djbunix.h @@ -36,7 +36,7 @@ extern int fd_sync (int) ; extern int fd_cat (int, int) ; extern unsigned int fd_catn (int, int, unsigned int) ; extern int fd_ensure_open (int, int) ; -#define fd_sanitize() (fd_ensure_open(0, 0) && fd_ensure_open(1, 1)) +#define fd_sanitize() (fd_ensure_open(0, 0) && fd_ensure_open(1, 1) && fd_ensure_open(2, 2)) extern int lock_ex (int) ; extern int lock_exnb (int) ; extern int lock_sh (int) ;