27 Feb
2011
27 Feb
'11
10:02 a.m.
On Sat, Feb 5, 2011 at 1:39 AM, Jonathan Conder <jonno.conder@gmail.com> wrote:
According to FOPEN(3), using fclose on an fdopen'd file stream also closes the underlying file descriptor. This happened in _alpm_lckmk (util.c), which meant that when alpm_trans_release closed it again, the log file (which reused the original file descriptor) was closed instead.
Signed-off-by: Jonathan Conder <jonno.conder@gmail.com> ---
So no one ever spotted this because logs are only made during a transaction ? Anyway nice finding :) Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>