Check-in [c8da83ca36]
Not logged in
Overview

SHA1 Hash:c8da83ca36c0d9a6805ed03e67dd1e5799954d51
Date: 2008-02-04 17:34:14
User: drh
Comment:Allow manifests with zero files. This fixes a problem in which some files do not appear in the filename table.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/manifest.c from [53c15e41ed] to [d38866b6bd].

@@ -641,11 +641,19 @@
     if( p->zWikiTitle ) goto manifest_syntax_error;
     if( p->zTicketUuid ) goto manifest_syntax_error;
     if( !seenZ ) goto manifest_syntax_error;
     p->type = CFTYPE_CONTROL;
   }else{
-    goto manifest_syntax_error;
+    if( p->nCChild>0 ) goto manifest_syntax_error;
+    if( p->rDate==0.0 ) goto manifest_syntax_error;
+    if( p->nField>0 ) goto manifest_syntax_error;
+    if( p->zTicketUuid ) goto manifest_syntax_error;
+    if( p->nAttach>0 ) goto manifest_syntax_error;
+    if( p->zWiki ) goto manifest_syntax_error;
+    if( p->zWikiTitle ) goto manifest_syntax_error;
+    if( p->zTicketUuid ) goto manifest_syntax_error;
+    p->type = CFTYPE_MANIFEST;
   }
 
   md5sum_init();
   return 1;