diff options
author | Alexander Graf <agraf@suse.de> | 2012-09-19 04:39:53 +0200 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2012-10-12 13:58:13 +0300 |
commit | 229d3376a38bf97aa09b6f73a957c5389badcd06 (patch) | |
tree | ec21f7a413a5a8aaa9e30344404a97f2f75c3a3c /docs | |
parent | b4ae3cfa57b8c1bdbbd7b7d420971e9171203ade (diff) |
linux-user: fix statfs
The statfs syscall should always memset(0) its full struct extent before
writing to it. Newer versions of the syscall use one of the reserved fields
for flags, which would otherwise get stale values from uncleaned memory.
This fixes libarchive for me, which got confused about the return value of
pathconf("/", _PC_REC_XFER_ALIGN) otherwise, as it some times gave old pointers
as return value.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions