uClibc: fix copy&pasted typo in the stat fix

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41573
This commit is contained in:
Felix Fietkau 2014-07-10 20:14:58 +00:00
parent 1b6dece9ea
commit 7a324ed4c1

View file

@ -8,11 +8,11 @@
- buf->st_mtim = kbuf->st_mtim; - buf->st_mtim = kbuf->st_mtim;
- buf->st_ctim = kbuf->st_ctim; - buf->st_ctim = kbuf->st_ctim;
+ buf->st_atim.tv_sec = kbuf->st_atim.tv_sec; + 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_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_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) void __xstat32_conv(struct kernel_stat64 *kbuf, struct stat *buf)
@ -24,11 +24,11 @@
- buf->st_mtim = kbuf->st_mtim; - buf->st_mtim = kbuf->st_mtim;
- buf->st_ctim = kbuf->st_ctim; - buf->st_ctim = kbuf->st_ctim;
+ buf->st_atim.tv_sec = kbuf->st_atim.tv_sec; + 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_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_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__ #ifdef __UCLIBC_HAS_LFS__
@ -40,11 +40,11 @@
- buf->st_mtim = kbuf->st_mtim; - buf->st_mtim = kbuf->st_mtim;
- buf->st_ctim = kbuf->st_ctim; - buf->st_ctim = kbuf->st_ctim;
+ buf->st_atim.tv_sec = kbuf->st_atim.tv_sec; + 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_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_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__ */ #endif /* __UCLIBC_HAS_LFS__ */