From: nekral-guest Date: Thu, 18 Mar 2010 00:00:05 +0000 (+0000) Subject: * lib/commonio.c: Ignore the return value of close when a X-Git-Tag: 4.1.5~336 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43211abb65d9d662a31d7f19d6820b6108e94889;p=shadow * lib/commonio.c: Ignore the return value of close when a failure is reported. --- diff --git a/lib/commonio.c b/lib/commonio.c index fa37704c..ec5018da 100644 --- a/lib/commonio.c +++ b/lib/commonio.c @@ -565,7 +565,7 @@ int commonio_open (struct commonio_db *db, int mode) if (fd >= 0) { #ifdef WITH_TCB if (tcb_is_suspect (fd) != 0) { - close (fd); + (void) close (fd); errno = EINVAL; return 0; }