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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to