linux-user: zero fstat buffer to initialize nsec fields
commit12727917db45aebb809e4b09c51e883c09a6366f
authorUlrich Hecht <uli@suse.de>
Fri, 24 Jul 2009 17:10:32 +0000 (24 19:10 +0200)
committerRiku Voipio <riku.voipio@iki.fi>
Tue, 25 Aug 2009 14:15:35 +0000 (25 17:15 +0300)
tree135c4d7d76aefed61c7a8f01933682d74f27d290
parente72d2cc781f335474fe07234051b64ec314714f4
linux-user: zero fstat buffer to initialize nsec fields

The fstat implementation does not initialize the nanosecond fields in the
stat buffer; this caused funny values to turn up there, preventing, for
instance, cp -p from preserving timestamps because utimensat rejected
the out-of-bounds nanosecond values. Resetting the entire structure
to zero fixes that.

Signed-off-by: Ulrich Hecht <uli@suse.de>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
linux-user/syscall.c