Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Oct 2015 17:59:05 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289044 - head/lib/libstand
Message-ID:  <201510081759.t98Hx5KE043723@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510081759.t98Hx5KE043723>