diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-03-08 11:46:54 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-03-08 11:46:54 -0500 |
commit | 231414125cf88a5f3e1f5cb322bdadcda168c7b6 (patch) | |
tree | 12febd5251f8b23198cd567693765a39dc75f154 | |
parent | e03e8083dcf5444e6e6785fd227c4f0e634cb5ae (diff) | |
download | expac-231414125cf88a5f3e1f5cb322bdadcda168c7b6.tar.xz |
remove superfluous access check
-rw-r--r-- | expac.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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) { |