use dynamic buffer for getmntent
authorNatanael Copa <ncopa@alpinelinux.org>
Thu, 8 Sep 2016 17:07:31 +0000 (19:07 +0200)
committerRich Felker <dalias@aerifal.cx>
Thu, 20 Oct 2016 05:20:27 +0000 (01:20 -0400)
commit05973dc3bbc1aca9b3c8347de6879ed72147ab3b
treecb2504eebdf2f05acf895cca5cb7076b39da02de
parent167dfe9672c116b315e72e57a55c7769f180dffa
use dynamic buffer for getmntent

overlayfs may have fairly long lines so we use getline to allocate a
buffer dynamically. The buffer will be allocated on first use, expand as
needed, but will never be free'ed.

Downstream bug: http://bugs.alpinelinux.org/issues/5703

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
src/misc/mntent.c