Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6-0]: src/sys/compat/netbsd32 Pull up following revision(s) (requ...



details:   https://anonhg.NetBSD.org/src/rev/9b34a1fb4228
branches:  netbsd-6-0
changeset: 774730:9b34a1fb4228
user:      riz <riz%NetBSD.org@localhost>
date:      Mon Dec 17 00:32:29 2012 +0000

description:
Pull up following revision(s) (requested by matt in ticket #756):
        sys/compat/netbsd32/netbsd32_fs.c: revision 1.64
Fix inverted error check.

diffstat:

 sys/compat/netbsd32/netbsd32_fs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 97496a43555b -r 9b34a1fb4228 sys/compat/netbsd32/netbsd32_fs.c
--- a/sys/compat/netbsd32/netbsd32_fs.c Mon Dec 17 00:28:40 2012 +0000
+++ b/sys/compat/netbsd32/netbsd32_fs.c Mon Dec 17 00:32:29 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_fs.c,v 1.62 2012/01/25 14:06:07 christos Exp $        */
+/*     $NetBSD: netbsd32_fs.c,v 1.62.6.1 2012/12/17 00:32:29 riz 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.62 2012/01/25 14:06:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_fs.c,v 1.62.6.1 2012/12/17 00:32:29 riz Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -595,7 +595,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