From d1cc1ef6c31dc193adcf48a9aea4a95830c7ae56 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 15 Feb 2011 16:56:44 -0600 Subject: 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 --- lib/libalpm/pkghash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/pkghash.c') 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); } -- cgit v1.2.3-24-g4f1b