summaryrefslogtreecommitdiffstats
path: root/lib/libstand
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2015-10-08 17:59:05 +0000
committermarcel <marcel@FreeBSD.org>2015-10-08 17:59:05 +0000
commitd1d774415709780ebddcecdef527f909484ec184 (patch)
tree08bd625361077418287e5ed12940aa5180a76113 /lib/libstand
parent1cf401a10ad0b083ec7f558262e3b06d75e0b4d5 (diff)
downloadFreeBSD-src-d1d774415709780ebddcecdef527f909484ec184.zip
FreeBSD-src-d1d774415709780ebddcecdef527f909484ec184.tar.gz
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.
Diffstat (limited to 'lib/libstand')
-rw-r--r--lib/libstand/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/open.c b/lib/libstand/open.c
index 0d90433..214e51b 100644
--- a/lib/libstand/open.c
+++ b/lib/libstand/open.c
@@ -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);
OpenPOWER on IntegriCloud