Subject: Re: CVS commit: src/sys/fs/union
To: Takeshi Nakayama <nakayama@NetBSD.org>
From: Matthias Scheler <tron@NetBSD.org>
List: source-changes
Date: 08/28/2005 10:59:38
On Wed, Aug 24, 2005 at 03:21:28PM +0000, Takeshi Nakayama wrote:
> Modified Files:
> src/sys/fs/union: union_vfsops.c
>
> Log Message:
> statvfs(2) returns bogus result from union mounted file systems with
> `-r' option, since it uses uninitialized buffer in the case of no
> lower-layer file system.
>
> So, add M_ZERO to malloc(9) flags to initialize the buffer.
*REQ: resolve
Pulled up:
sys/fs/union/union_vfsops.c 1.28
statvfs(2) returns bogus result from union mounted file systems with
`-r' option, since it uses uninitialized buffer in the case of no
lower-layer file system.
[nakayama, ticket #708]
Kind regards
--
Matthias Scheler http://scheler.de/~matthias/