From 231414125cf88a5f3e1f5cb322bdadcda168c7b6 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 8 Mar 2014 11:46:54 -0500 Subject: remove superfluous access check --- expac.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/expac.c b/expac.c index 2a524bf..cf84a64 100644 --- a/expac.c +++ b/expac.c @@ -443,11 +443,7 @@ static bool backup_file_is_modified(const alpm_backup_t *backup_file) { char *md5sum; bool modified; - snprintf(fullpath, PATH_MAX, "/%s", backup_file->name); - - if(access(fullpath, R_OK) != 0) { - return false; - } + snprintf(fullpath, sizeof(fullpath), "/%s", backup_file->name); md5sum = alpm_compute_md5sum(fullpath); if(md5sum == NULL) { @@ -656,7 +652,6 @@ static alpm_list_t *resolve_pkg(alpm_list_t *targets) { if (!targets) { for (r = dblist; r; r = alpm_list_next(r)) { - /* joining causes corruption on alpm_release(), so we copy */ ret = alpm_list_join(ret, alpm_list_copy(alpm_db_get_pkgcache(r->data))); } } else if (opt_search) { -- cgit v1.2.3-54-g00ecf