diff options
author | Dan McGee <dan@archlinux.org> | 2011-02-15 16:56:44 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-15 16:58:08 -0600 |
commit | d1cc1ef6c31dc193adcf48a9aea4a95830c7ae56 (patch) | |
tree | a0808496f537757e32cfc25b0bd83c14a98a6fb0 /lib/libalpm/pkghash.c | |
parent | 62a2e45b12f746c098523782fb5889793ef59687 (diff) | |
download | 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.c | 2 |
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); } |