ext2fs: missing braces

Sascha Wildner saw at online.de
Thu Apr 27 01:25:28 PDT 2006


Csaba Henk wrote:
diff -r d2ecc0d1cbd4 sys/vfs/gnu/ext2fs/ext2_vnops.c
--- a/sys/vfs/gnu/ext2fs/ext2_vnops.c	Tue Apr 25 22:11:28 2006 +0000
+++ b/sys/vfs/gnu/ext2fs/ext2_vnops.c	Thu Apr 27 00:41:58 2006 +0200
@@ -1099,7 +1099,7 @@ ext2_symlink(struct vop_old_symlink_args
 		bcopy(ap->a_target, (char *)ip->i_shortlink, len);
 		ip->i_size = len;
 		ip->i_flag |= IN_CHANGE | IN_UPDATE;
-	} else
+	} else {
 		/*
 		 * Make sure we have a VM object in order to use
 		 * the buffer cache.
@@ -1110,6 +1110,8 @@ ext2_symlink(struct vop_old_symlink_args
 		error = vn_rdwr(UIO_WRITE, vp, ap->a_target, len, (off_t)0,
 		    UIO_SYSSPACE, IO_NODELOCKED, ap->a_cnp->cn_cred, (int *)0,
 		    NULL);
+	}
+
 	if (error)
 		vput(vp);
 	return (error);
Committed, thx.

Sascha

--
http://yoyodyne.ath.cx




More information about the Submit mailing list