libdpkg: Handle readlink() failures in file_readlink()
commit281c308ee91efaebfc5fa1b347670ff39e77680a
authorGuillem Jover <guillem@debian.org>
Tue, 26 Mar 2024 03:01:30 +0000 (26 04:01 +0100)
committerGuillem Jover <guillem@debian.org>
Tue, 26 Mar 2024 03:02:28 +0000 (26 04:02 +0100)
tree31545257d714afd0a10f51f9e7ded422ceaa247b
parent197fa86fc71a2e46a5c70f99a594bf13ffb520f9
libdpkg: Handle readlink() failures in file_readlink()

We should not use the linksize to update the varbuf if readlink()
failed, as that implies a negative number.

Reported-by: coverity
lib/dpkg/file.c