Received: by mail.netbsd.org (Postfix, from userid 605) id 17B9B14A2C4; Tue, 14 Apr 2015 05:21:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 334DF14A2C3 for ; Tue, 14 Apr 2015 05:21:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id v_Hly2iCoEJF for ; Tue, 14 Apr 2015 05:21:26 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 72B8714A2B8 for ; Tue, 14 Apr 2015 05:21:26 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 59BFB98; Tue, 14 Apr 2015 05:21:26 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 14 Apr 2015 05:21:26 +0000 From: "Soren Jacobsen" Subject: CVS commit: [netbsd-7] src/lib/libc/gen To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20150414052126.59BFB98@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Soren Jacobsen" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: snj Date: Tue Apr 14 05:21:26 UTC 2015 Modified Files: src/lib/libc/gen [netbsd-7]: opendir.c Log Message: Pull up following revision(s) (requested by christos in ticket #691): lib/libc/gen/opendir.c: revision 1.39 - Use O_DIRECTORY to open the file, so that we don't need to stat() after that. - Move the stat() call to fdopendir() and change it's error handling so that it does not hide errors. - According to POSIX, fdopendir() transfers ownership of the fd only on success, so don't close it on failure. XXX: We still make it non-blocking on failure, but that's nitpicking. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.38.20.1 src/lib/libc/gen/opendir.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.