cvs commit: src/lib/libarchive archive_read.c archive_read_open_fd.c
kientzle at FreeBSD.org
Mon Jan 16 20:49:05 PST 2006
kientzle 2006-01-17 04:49:04 UTC
FreeBSD src repository
lib/libarchive archive_read.c archive_read_open_fd.c
If the attempt to open the archive fails (either the client open
routine fails or the first read fails), invoke the client close
routine immediately so the client can clean up. Also, don't store the
client pointers in this case, so that the client close routine can't
accidentally get called more than once.
A minor style fix to archive_read_open_fd.c while I'm here.
Thanks to: Andrew Turner for reporting this and suggesting a fix.
Revision Changes Path
1.20 +36 -13 src/lib/libarchive/archive_read.c
1.5 +2 -1 src/lib/libarchive/archive_read_open_fd.c
More information about the cvs-src