Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r24 - in trunk: . fsvs/src

fsvs
Discussion topic

2020-03-13: This site is going to be decommissioned and shut down very soon. Please copy and archive any data you wish to keep ASAP

Hide all messages in topic

All messages in topic

svn commit: r24 - in trunk: . fsvs/src

Author pmarek
Full name P.Marek
Date 2005-10-07 01:24:51 PDT
Message Author: pmarek
Date: Fri Oct 7 01:24:51 2005
New Revision: 24

Modified:
   trunk/ (props changed)
   trunk/fsvs/src/waa.c
Log:
bugfix: a deleted directory has no child entries



Modified: trunk/fsvs/src/waa.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/trunk/fsvs/src/waa​.c?view=diff&rev​=24&p1=trunk/fsv​s/src/waa.c&r1=2​3&p2=trunk/fsvs/​src/waa.c&r2=24
====================​====================​====================​==================
--- trunk/fsvs/src/waa.c (original)
+++ trunk/fsvs/src/waa.c Fri Oct 7 01:24:51 2005
@@ -1082,7 +1082,10 @@
             if (errno == ENOENT)
             {
                 /* If a directory is removed, we don't allocate the by_inode
- * and by_name arrays. */
+ * and by_name arrays, and it is set to no child-entries. */
+ if (S_ISDIR(sts->st.st_mode))
+ sts->entry_count=0;
+
 removed:
                 sts->entry_status​=FS_REMOVED;
                 STOPIF( ac__dispatch(sts, fullpath), NULL);
Messages per page: