1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 08:18:51 -05:00
pacman/lib/libalpm
Chantry Xavier 3fe43ffa04 Duplicate the result of archive_entry_pathname.
After the libarchive upgrade from 2.4.12 to 2.4.14, our usage of
archive_entry_pathname became dangerous. We were using the result of that
function even after calls to archive_entry_set_pathname.
With 2.4.14, the entryname becomes wrong after these calls, and so all the
future use of entryname are bogus. entryname is used quite a lot for
logging, so that's not so bad. But it's also used for the backup handling,
so that's not very cool. For example, reinstalling a package with backup
entries will erase all the md5 entries from the DB, because they won't be
found back.

entryname is now a static string so that we can easily keep the result of
archive_entry_pathname.

Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
[Dan: fixed version numbers in commit message]
Signed-off-by: Dan McGee <dan@archlinux.org>
2008-03-28 18:32:04 -05:00
..
po Update Czech translation 2008-03-04 23:05:43 -06:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c Duplicate the result of archive_entry_pathname. 2008-03-28 18:32:04 -05:00
add.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
alpm_list.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
alpm_list.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
alpm.c New alpm_version function 2008-03-06 19:05:14 -06:00
alpm.h New alpm_version function 2008-03-06 19:05:14 -06:00
backup.c memleak fix: ensure backup fname isn't lost if unused 2008-03-23 16:55:52 -05:00
backup.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
be_files.c Ensure DESC infolevel is loaded before checking pkg->filename 2008-02-13 22:52:53 -06:00
cache.c Remove gettext calls from debug-level messages 2008-01-01 20:03:24 -06:00
cache.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
conflict.c ensure chk_fileconflicts reads entire file list 2008-02-11 20:40:43 -06:00
conflict.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
db.c Change the versioned provision format. 2008-01-14 22:03:03 -06:00
db.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
delta.c Fix memory leak in shortest_delta_path. 2007-12-21 11:08:05 -06:00
delta.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
deps.c Remove a bogus comment 2008-03-04 06:40:32 -06:00
deps.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
error.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
error.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
group.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
group.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
handle.c Fix library interface 2008-01-11 08:43:10 -06:00
handle.h Remove upgradedelay and all code associated with it 2008-01-08 15:49:52 -06:00
log.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
log.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
Makefile.am Remove provide.c and provide.h . 2007-11-17 09:50:05 -06:00
md5.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
md5.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
package.c Set a missing pm_errno in _alpm_pkg_load() 2008-03-01 15:57:59 -06:00
package.h Fix library interface 2008-01-11 08:43:10 -06:00
remove.c Use pkgcache instead of db_scan in remove.c 2008-03-28 17:53:04 -05:00
remove.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
server.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
server.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
sync.c libalpm/sync.c : fix poorly worded debug message. 2008-02-25 00:30:21 +01:00
sync.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
trans.c FS#9183 : force correct permissions on tmp/. 2008-01-13 18:42:26 -06:00
trans.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
util.c FS#9183 : force correct permissions on tmp/. 2008-01-13 18:42:26 -06:00
util.h FS#9183 : force correct permissions on tmp/. 2008-01-13 18:42:26 -06:00