1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-03-03 02:41:53 -05:00
Allan McRae 7a3f59cd66 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>
2012-02-13 10:03:05 -06:00
..
2012-02-06 05:44:35 -06:00
2012-01-07 11:28:37 -06:00
2011-06-28 14:04:00 +10:00
2012-02-06 05:50:48 -06:00
2011-12-21 18:13:17 -06:00
2011-12-21 18:13:17 -06:00
2011-10-12 14:01:25 -05:00
2012-01-23 12:20:52 -06:00
2011-12-21 18:13:17 -06:00
2011-12-21 18:13:17 -06:00
2011-12-21 18:13:17 -06:00
2011-12-21 18:13:17 -06:00
2011-12-21 18:13:17 -06:00
2011-06-28 23:28:24 +10:00
2011-12-21 18:13:17 -06:00
2011-12-21 18:13:17 -06:00
2011-12-21 18:13:17 -06:00
2012-01-02 19:41:42 -06:00
2012-01-02 19:41:42 -06:00
2011-07-05 22:36:40 -05:00
2012-01-23 12:20:52 -06:00
2012-01-23 12:20:52 -06:00
2011-06-28 14:04:00 +10:00
2011-09-30 10:55:58 -05:00
2012-02-13 10:03:05 -06:00
2012-01-23 12:21:11 -06:00
2011-12-21 18:13:17 -06:00