summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/pkghash.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-15 23:56:44 +0100
committerDan McGee <dan@archlinux.org>2011-02-15 23:58:08 +0100
commitd1cc1ef6c31dc193adcf48a9aea4a95830c7ae56 (patch)
treea0808496f537757e32cfc25b0bd83c14a98a6fb0 /lib/libalpm/pkghash.c
parent62a2e45b12f746c098523782fb5889793ef59687 (diff)
downloadpacman-d1cc1ef6c31dc193adcf48a9aea4a95830c7ae56.tar.gz
pacman-d1cc1ef6c31dc193adcf48a9aea4a95830c7ae56.tar.xz
Fix some database size estimation problems
* Use stat() and not lstat(); we don't care for the size of the symlink if it is one, we want the size of the reference file. * FS#22896, fix local database estimation on platforms that don't abide by the nlink assumption for number of children. * Fix a missing newline on an error message. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/pkghash.c')
-rw-r--r--lib/libalpm/pkghash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/pkghash.c b/lib/libalpm/pkghash.c
index 23b7493a..db98f94b 100644
--- a/lib/libalpm/pkghash.c
+++ b/lib/libalpm/pkghash.c
@@ -70,7 +70,7 @@ pmpkghash_t *_alpm_pkghash_create(size_t size)
}
if(hash->buckets < size) {
- _alpm_log(PM_LOG_ERROR, _("database larger than maximum size"));
+ _alpm_log(PM_LOG_ERROR, _("database larger than maximum size\n"));
free(hash);
return(NULL);
}