From 1e80c150c7794f22d281a3f3aea51e89a57037eb Mon Sep 17 00:00:00 2001 From: rumble Date: Mon, 6 Aug 2007 23:25:27 +0000 Subject: [PATCH] Fix a parenthesis bug that would nearly always make the superblock magic check evaluate to true. --- sys/fs/efs/efs_subr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/fs/efs/efs_subr.c b/sys/fs/efs/efs_subr.c index d9f2955752c6..0467d7bbe217 100644 --- a/sys/fs/efs/efs_subr.c +++ b/sys/fs/efs/efs_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: efs_subr.c,v 1.4 2007/07/29 00:56:04 rumble Exp $ */ +/* $NetBSD: efs_subr.c,v 1.5 2007/08/06 23:25:27 rumble Exp $ */ /* * Copyright (c) 2006 Stephen M. Rumble @@ -17,7 +17,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: efs_subr.c,v 1.4 2007/07/29 00:56:04 rumble Exp $"); +__KERNEL_RCSID(0, "$NetBSD: efs_subr.c,v 1.5 2007/08/06 23:25:27 rumble Exp $"); #include #include @@ -89,7 +89,7 @@ efs_sb_validate(struct efs_sb *esb, const char **why) *why = NULL; if (be32toh(esb->sb_magic) != EFS_SB_MAGIC && - be32toh(esb->sb_magic != EFS_SB_NEWMAGIC)) { + be32toh(esb->sb_magic) != EFS_SB_NEWMAGIC) { *why = "sb_magic invalid"; return (1); }