svn commit: r289044 - head/lib/libstand
Marcel Moolenaar
marcel at FreeBSD.org
Thu Oct 8 17:59:07 UTC 2015
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);
More information about the svn-src-all
mailing list