uClibc: fix copy&pasted typo in the stat fix
authorFelix Fietkau <nbd@openwrt.org>
Thu, 10 Jul 2014 20:14:58 +0000 (20:14 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 10 Jul 2014 20:14:58 +0000 (20:14 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41573

toolchain/uClibc/patches-0.9.33.2/616-mips_fix_stat_time.patch

index c07208e4602fc829b98e6efda4403044097794a4..1559857a44d4a42fdff401a6d0ed591cd1231e12 100644 (file)
@@ -8,11 +8,11 @@
 -      buf->st_mtim = kbuf->st_mtim;
 -      buf->st_ctim = kbuf->st_ctim;
 +      buf->st_atim.tv_sec = kbuf->st_atim.tv_sec;
-+      buf->st_atim.tv_nsec = kbuf->st_atim.tv_sec;
++      buf->st_atim.tv_nsec = kbuf->st_atim.tv_nsec;
 +      buf->st_mtim.tv_sec = kbuf->st_mtim.tv_sec;
-+      buf->st_mtim.tv_nsec = kbuf->st_mtim.tv_sec;
++      buf->st_mtim.tv_nsec = kbuf->st_mtim.tv_nsec;
 +      buf->st_ctim.tv_sec = kbuf->st_ctim.tv_sec;
-+      buf->st_ctim.tv_nsec = kbuf->st_ctim.tv_sec;
++      buf->st_ctim.tv_nsec = kbuf->st_ctim.tv_nsec;
  }
  
  void __xstat32_conv(struct kernel_stat64 *kbuf, struct stat *buf)
 -      buf->st_mtim = kbuf->st_mtim;
 -      buf->st_ctim = kbuf->st_ctim;
 +      buf->st_atim.tv_sec = kbuf->st_atim.tv_sec;
-+      buf->st_atim.tv_nsec = kbuf->st_atim.tv_sec;
++      buf->st_atim.tv_nsec = kbuf->st_atim.tv_nsec;
 +      buf->st_mtim.tv_sec = kbuf->st_mtim.tv_sec;
-+      buf->st_mtim.tv_nsec = kbuf->st_mtim.tv_sec;
++      buf->st_mtim.tv_nsec = kbuf->st_mtim.tv_nsec;
 +      buf->st_ctim.tv_sec = kbuf->st_ctim.tv_sec;
-+      buf->st_ctim.tv_nsec = kbuf->st_ctim.tv_sec;
++      buf->st_ctim.tv_nsec = kbuf->st_ctim.tv_nsec;
  }
  
  #ifdef __UCLIBC_HAS_LFS__
 -      buf->st_mtim = kbuf->st_mtim;
 -      buf->st_ctim = kbuf->st_ctim;
 +      buf->st_atim.tv_sec = kbuf->st_atim.tv_sec;
-+      buf->st_atim.tv_nsec = kbuf->st_atim.tv_sec;
++      buf->st_atim.tv_nsec = kbuf->st_atim.tv_nsec;
 +      buf->st_mtim.tv_sec = kbuf->st_mtim.tv_sec;
-+      buf->st_mtim.tv_nsec = kbuf->st_mtim.tv_sec;
++      buf->st_mtim.tv_nsec = kbuf->st_mtim.tv_nsec;
 +      buf->st_ctim.tv_sec = kbuf->st_ctim.tv_sec;
-+      buf->st_ctim.tv_nsec = kbuf->st_ctim.tv_sec;
++      buf->st_ctim.tv_nsec = kbuf->st_ctim.tv_nsec;
  }
  
  #endif /* __UCLIBC_HAS_LFS__ */