[PATCH] Copy nanosecond stat values for i386

Andi Kleen (ak@suse.de)
Sat, 31 May 2003 13:58:07 +0200


A brown paper bag bug, noticed by Ralf Baechtle.

i386 needs to define STAT_HAVE_NSEC too, otherwise it won't copy
the nanosecond values to user space.

-Andi

Index: linux/include/asm-i386/stat.h
===================================================================
RCS file: /home/cvs/linux-2.5/include/asm-i386/stat.h,v
retrieving revision 1.12
diff -u -u -r1.12 stat.h
--- linux/include/asm-i386/stat.h 30 May 2003 20:11:00 -0000 1.12
+++ linux/include/asm-i386/stat.h 31 May 2003 10:24:23 -0000
@@ -73,4 +73,6 @@
unsigned long long st_ino;
};

+#define STAT_HAVE_NSEC 1
+
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/