From owner-cvs-all Fri Dec 1 16: 7:59 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CE1A337B401; Fri, 1 Dec 2000 16:07:56 -0800 (PST) Received: (from gad@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eB207u381320; Fri, 1 Dec 2000 16:07:56 -0800 (PST) (envelope-from gad) Message-Id: <200012020007.eB207u381320@freefall.freebsd.org> From: Garance A Drosehn Date: Fri, 1 Dec 2000 16:07:56 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen getcap.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG gad 2000/12/01 16:07:56 PST Modified files: lib/libc/gen getcap.c Log: Fix some error-handling logic so that ferror is called before fclose, instead of immediately after the fclose. The previous logic did work on freebsd, but is somewhat risky practice (and causes trouble when porting to other OS's). PR: bin/22965 Reviewed by: Garrett Wollman Revision Changes Path 1.13 +22 -8 src/lib/libc/gen/getcap.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message