--- src/sys/emulation/linux/linux_stats.c 2007/05/08 02:31:42 1.26 +++ src/sys/emulation/linux/linux_stats.c 2008/09/28 05:08:16 1.27 @@ -59,7 +59,7 @@ newstat_copyout(struct stat *buf, void * int error; tbuf.st_dev = uminor(buf->st_dev) | (umajor(buf->st_dev) << 8); - tbuf.st_ino = buf->st_ino; + tbuf.st_ino = INO64TO32(buf->st_ino); tbuf.st_mode = buf->st_mode; tbuf.st_nlink = buf->st_nlink; tbuf.st_uid = buf->st_uid; @@ -364,7 +364,7 @@ stat64_copyout(struct stat *buf, void *u * but without the assignment to __st_ino the runtime linker refuses * to mmap(2) any shared libraries. I guess it's broken alright :-) */ - lbuf.__st_ino = buf->st_ino; + lbuf.__st_ino = INO64TO32(buf->st_ino); error = copyout(&lbuf, ubuf, sizeof(lbuf)); return (error);