Login | Register
My pages Projects Community openCollabNet

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

fsvs
Discussion topic

Back to topic list

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);

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r24 - in trunk: . fsvs/src pmarek P.Marek 2005-10-07 01:24:51 PDT
Messages per page: