From 1f33e8b4ed0aa796773133a2bc8a7e6543255017 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 29 Mar 2001 14:07:14 +0000 Subject: [PATCH] Fixed nasty bug for fileUpdate. --- index/dirs.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/index/dirs.c b/index/dirs.c index 6176452..1b4cf8e 100644 --- a/index/dirs.c +++ b/index/dirs.c @@ -1,10 +1,12 @@ /* - * Copyright (C) 1994-1999, Index Data + * Copyright (C) 1994-2001, Index Data * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss * * $Log: dirs.c,v $ - * Revision 1.16 1999-05-26 07:49:13 adam + * Revision 1.17 2001-03-29 14:07:14 adam + * Fixed nasty bug for fileUpdate. + * + * Revision 1.16 1999/05/26 07:49:13 adam * C++ compilation. * * Revision 1.15 1999/02/02 14:50:51 adam @@ -183,7 +185,7 @@ struct dirs_entry *dirs_read (struct dirs_info *p) logf (LOG_DEBUG, "dirs_read rescan"); dict_scan (p->dict, p->nextpath, &before, &after, p, dirs_client_proc); p->no_read = 1; - if (p->no_read < p->no_cur) + if (p->no_read <= p->no_cur) return p->last_entry = p->entries; return p->last_entry = NULL; } -- 1.7.10.4