diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-22 18:17:38 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-24 14:03:51 -0500 |
commit | 719e0d3ddb300a8f0f8367b516c0e3c9579c4448 (patch) | |
tree | e415dccd96bb55269d102b84f6d8403f37c86811 /src/util | |
parent | 1187edb38c5ba42d27fd1de8e97aab658049367f (diff) | |
download | pacman-719e0d3ddb300a8f0f8367b516c0e3c9579c4448.tar.xz |
archive_fgets(): ensure we return any trailing text with no newline
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>
Diffstat (limited to 'src/util')
0 files changed, 0 insertions, 0 deletions