[pacman-dev] [PATCH 2/2] archive_fgets(): ensure we return any trailing text with no newline

Allan McRae allan at archlinux.org
Mon Jun 27 05:45:56 EDT 2011

On 24/06/11 15:18, Dan McGee wrote:
> Discovered this when doing some pactest rewrite work to generate
> archives in memory only. If a sync database file or PKGINFO file is
> missing a newline on the final line, the text from that line gets tossed
> aside and never read into the package struct. This is pretty critical
> when that last line is a depend or something.
> Signed-off-by: Dan McGee<dan at archlinux.org>

Signed-off-by: Allan

More information about the pacman-dev mailing list