Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 Fix inverted error check.
details: https://anonhg.NetBSD.org/src/rev/4f5151c7e7f6
branches: trunk
changeset: 783283:4f5151c7e7f6
user: matt <matt%NetBSD.org@localhost>
date: Thu Dec 13 15:16:57 2012 +0000
description:
Fix inverted error check.
diffstat:
sys/compat/netbsd32/netbsd32_fs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 998cbaccccf1 -r 4f5151c7e7f6 sys/compat/netbsd32/netbsd32_fs.c
--- a/sys/compat/netbsd32/netbsd32_fs.c Thu Dec 13 06:43:37 2012 +0000
+++ b/sys/compat/netbsd32/netbsd32_fs.c Thu Dec 13 15:16:57 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_fs.c,v 1.63 2012/03/06 07:37:05 macallan Exp $ */
+/* $NetBSD: netbsd32_fs.c,v 1.64 2012/12/13 15:16:57 matt Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_fs.c,v 1.63 2012/03/06 07:37:05 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_fs.c,v 1.64 2012/12/13 15:16:57 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -597,7 +597,7 @@
int error;
error = do_fhstat(l, SCARG_P32(uap, fhp), SCARG(uap, fh_size), &sb);
- if (error != 0) {
+ if (error == 0) {
netbsd32_from_stat(&sb, &sb32);
error = copyout(&sb32, SCARG_P32(uap, sb), sizeof(sb));
}
Home |
Main Index |
Thread Index |
Old Index