Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   archive_fgets(): ensure we return any trailing text with no newline (http://www.linux-archive.org/archlinux-pacman-development/544868-archive_fgets-ensure-we-return-any-trailing-text-no-newline.html)

Allan McRae 06-27-2011 09:45 AM

archive_fgets(): ensure we return any trailing text with no newline
 
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@archlinux.org>


Signed-off-by: Allan


All times are GMT. The time now is 01:04 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.