]> granicus.if.org Git - shadow/commitdiff
* lib/commonio.c: Ignore the return value of close when a
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 18 Mar 2010 00:00:05 +0000 (00:00 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 18 Mar 2010 00:00:05 +0000 (00:00 +0000)
failure is reported.

lib/commonio.c

index fa37704c73f0b8fcdfc992a8eceb2202a89d1f99..ec5018dac7d333b86231cf28e3b7d605167dcb5d 100644 (file)
@@ -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;
                }