Login | Register
My pages Projects Community openCollabNet

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

fsvs
Discussion topic

Back to topic list

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

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

Modified:
   trunk/ (props changed)
   trunk/fsvs/src/est_ops.c
Log:
check in ops__load1entry: only directories may have children



Modified: trunk/fsvs/src/est_ops.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/trunk/fsvs/src/est​_ops.c?view=diff​&rev=21&p1=trunk​/fsvs/src/est_ops.c​&r1=20&p2=tru​nk/fsvs/src/est_ops.​c&r2=21
====================​====================​====================​==================
--- trunk/fsvs/src/est_ops.c (original)
+++ trunk/fsvs/src/est_ops.c Fri Oct 7 01:23:15 2005
@@ -218,6 +218,9 @@
     STOPIF_CODE_ERR( i!=10, EINVAL,
             "cannot parse entry line - only %d tokens found", i);
 
+ /* Only a directory may have children */
+ BUG_ON(sts->entry_count && !S_ISDIR(sts->st.st_mode));
+
     /* links and files have their values checked per md5 */
     if (S_ISREG(sts->st.st_mode) || S_ISLNK(sts->st.st_mode))
     {

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

Messages

Show all messages in topic

svn commit: r21 - in trunk: . fsvs/src pmarek P.Marek 2005-10-07 01:23:15 PDT
Messages per page: