Module Name:    src
Committed By:   njoly
Date:           Wed Jun  3 14:17:19 UTC 2009

Modified Files:
        src/sys/compat/linux32/common: linux32_stat.c

Log Message:
Fix inverted lst_ino/__lst_ino assignment in linux32_from_stat().


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/compat/linux32/common/linux32_stat.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/compat/linux32/common/linux32_stat.c
diff -u src/sys/compat/linux32/common/linux32_stat.c:1.13 src/sys/compat/linux32/common/linux32_stat.c:1.14
--- src/sys/compat/linux32/common/linux32_stat.c:1.13	Wed Mar 18 16:00:17 2009
+++ src/sys/compat/linux32/common/linux32_stat.c	Wed Jun  3 14:17:18 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux32_stat.c,v 1.13 2009/03/18 16:00:17 cegger Exp $ */
+/*	$NetBSD: linux32_stat.c,v 1.14 2009/06/03 14:17:18 njoly Exp $ */
 
 /*-
  * Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: linux32_stat.c,v 1.13 2009/03/18 16:00:17 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_stat.c,v 1.14 2009/06/03 14:17:18 njoly Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -82,7 +82,7 @@
 {
 	memset(st32, 0, sizeof(*st32));
 	st32->lst_dev = linux_fakedev(st->st_dev, 0);
-	st32->__lst_ino = st->st_ino;
+	st32->lst_ino = st->st_ino;
 	st32->lst_mode = st->st_mode;
 	if (st->st_nlink >= (1 << 15))
 		st32->lst_nlink = (1 << 15) - 1;
@@ -103,7 +103,7 @@
 	st32->lst_ctime_nsec = st->st_ctimensec;
 #endif
 #ifdef LINUX32_STAT64_HAS_BROKEN_ST_INO
-	st32->lst_ino = st->st_ino;
+	st32->__lst_ino = st->st_ino;
 #endif
 
 	return;

Reply via email to