From 9cd7ff807dc1014d8335b551524aca1994bb1e0d Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 6 Aug 2012 22:18:15 -0400 Subject: _alpm_filelist_resolve: add useful return code Return -1 if a path is too long to resolve or we run out of memory. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- lib/libalpm/filelist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/filelist.h') diff --git a/lib/libalpm/filelist.h b/lib/libalpm/filelist.h index ef865da7..8c4f8eb0 100644 --- a/lib/libalpm/filelist.h +++ b/lib/libalpm/filelist.h @@ -21,9 +21,9 @@ #include "alpm.h" -size_t _alpm_filelist_resolve_link(alpm_filelist_t *files, size_t i, +int _alpm_filelist_resolve_link(alpm_filelist_t *files, size_t *i, char *path, size_t root_len, int resolving); -void _alpm_filelist_resolve(alpm_handle_t *handle, alpm_filelist_t *files); +int _alpm_filelist_resolve(alpm_handle_t *handle, alpm_filelist_t *files); alpm_list_t *_alpm_filelist_difference(alpm_filelist_t *filesA, alpm_filelist_t *filesB); -- cgit v1.2.3-54-g00ecf