Module Name:    src
Committed By:   pooka
Date:           Fri Mar 27 06:35:10 UTC 2009

Modified Files:
        src/sys/fs/hfs: libhfs.c

Log Message:
fix botch in previous


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/fs/hfs/libhfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/hfs/libhfs.c
diff -u src/sys/fs/hfs/libhfs.c:1.6 src/sys/fs/hfs/libhfs.c:1.7
--- src/sys/fs/hfs/libhfs.c:1.6	Thu Mar 26 20:05:07 2009
+++ src/sys/fs/hfs/libhfs.c	Fri Mar 27 06:35:10 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: libhfs.c,v 1.6 2009/03/26 20:05:07 pooka Exp $	*/
+/*	$NetBSD: libhfs.c,v 1.7 2009/03/27 06:35:10 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2005, 2007 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: libhfs.c,v 1.6 2009/03/26 20:05:07 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: libhfs.c,v 1.7 2009/03/27 06:35:10 pooka Exp $");
 
 #include "libhfs.h"
 
@@ -355,7 +355,7 @@
 
 	/* FALLTHROUGH */
 error:	
-	if (isopen)
+	if (result != 0 && isopen)
 		hfslib_close_volume(out_vol, cbargs);
 	if(buffer!=NULL)
 		hfslib_free(buffer, cbargs);

Reply via email to