From owner-svn-src-all@freebsd.org Thu Oct 8 17:59:07 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 155469D1110; Thu, 8 Oct 2015 17:59:07 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D08BCA4F; Thu, 8 Oct 2015 17:59:06 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t98Hx5ET043724; Thu, 8 Oct 2015 17:59:05 GMT (envelope-from marcel@FreeBSD.org) Received: (from marcel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t98Hx5KE043723; Thu, 8 Oct 2015 17:59:05 GMT (envelope-from marcel@FreeBSD.org) Message-Id: <201510081759.t98Hx5KE043723@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: marcel set sender to marcel@FreeBSD.org using -f From: Marcel Moolenaar Date: Thu, 8 Oct 2015 17:59:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289044 - head/lib/libstand X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2015 17:59:07 -0000 Author: marcel Date: Thu Oct 8 17:59:05 2015 New Revision: 289044 URL: https://svnweb.freebsd.org/changeset/base/289044 Log: If we can't open the file, skip devclose() for the exclusive_file_system case. We never called devopen(), so we know there's nothing to close. Modified: head/lib/libstand/open.c Modified: head/lib/libstand/open.c ============================================================================== --- head/lib/libstand/open.c Thu Oct 8 17:55:53 2015 (r289043) +++ head/lib/libstand/open.c Thu Oct 8 17:59:05 2015 (r289044) @@ -114,7 +114,7 @@ open(const char *fname, int mode) error = (fs->fo_open)(fname, f); if (error == 0) goto ok; - goto fail; + goto err; } error = devopen(f, fname, &file);