From: Ulrich Drepper Date: Thu, 15 Apr 1999 08:43:35 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_1_1~159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9514f4e693df6e4d9e92faeec2bd4e61ca15fcf4;p=thirdparty%2Fglibc.git Update. * nscd/cache.c (prune_cache): The table might not be unused. In this case do nothing. message with the number/identifier. --- diff --git a/ChangeLog b/ChangeLog index f03b644ac1e..03450997876 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,13 @@ 1999-04-15 Ulrich Drepper + * nscd/cache.c (prune_cache): The table might not be unused. In + this case do nothing. + * catgets/gencat.c (read_input_file): Don't drop white spaces between number/identifier and string. Patch by Dima Barsky . If no white space at all follows number/identifier remove existing - message with the number/ientifier. + message with the number/identifier. 1999-04-14 H.J. Lu diff --git a/nscd/cache.c b/nscd/cache.c index fc293a36f37..d034bcb051f 100644 --- a/nscd/cache.c +++ b/nscd/cache.c @@ -129,6 +129,10 @@ prune_cache (struct database *table, time_t now) size_t first = cnt + 1; size_t last = 0; + /* If this table is not actually used don't do anything. */ + if (cnt == 0) + return; + /* If we check for the modification of the underlying file we invalidate the entries also in this case. */ if (table->check_file)