diff options
| author | Ulrich Hecht | 2009-07-24 19:10:32 +0200 |
|---|---|---|
| committer | Riku Voipio | 2009-08-25 16:15:35 +0200 |
| commit | 12727917db45aebb809e4b09c51e883c09a6366f (patch) | |
| tree | 135c4d7d76aefed61c7a8f01933682d74f27d290 /linux-user/mmap.c | |
| parent | linux-user: fadvise64 implementation (diff) | |
| download | qemu-12727917db45aebb809e4b09c51e883c09a6366f.tar.gz qemu-12727917db45aebb809e4b09c51e883c09a6366f.tar.xz qemu-12727917db45aebb809e4b09c51e883c09a6366f.zip | |
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>
Diffstat (limited to 'linux-user/mmap.c')
0 files changed, 0 insertions, 0 deletions
