diff options
author | Allan McRae <allan@archlinux.org> | 2012-02-11 07:17:59 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-13 17:03:05 +0100 |
commit | 7a3f59cd66a4f70641b863ebaaf52674b921bf3c (patch) | |
tree | 7c1435bb6067545353e949a811983ec7b972c88f /scripts/.gitignore | |
parent | 8741551dc94d506df72b5ae8453bca1e4d50dbab (diff) | |
download | pacman-7a3f59cd66a4f70641b863ebaaf52674b921bf3c.tar.gz pacman-7a3f59cd66a4f70641b863ebaaf52674b921bf3c.tar.xz |
Reset errno before opening archive
Set errno to 0 at the start of _alpm_open_archive as it is not set when
archive_read_open_fd fails. This can result in _alpm_pkg_load_internal
thinking errno == ENOENT and setting the wrong pm_errno. e.g.
Before:
> testpkg pacman-4.0.1-4-i686.pkg.tar.gz.sig
error: could not open file pacman-4.0.1-4-i686.pkg.tar.gz.sig: Unrecognized archive format
Cannot find the given file.
After:
> testpkg pacman-4.0.1-4-i686.pkg.tar.gz.sig
error: could not open file pacman-4.0.1-4-i686.pkg.tar.gz.sig: Unrecognized archive format
Cannot open the given file.
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/.gitignore')
0 files changed, 0 insertions, 0 deletions