Overview
SHA1 Hash: | 6eddf50cfee715099d3eebe3c313e96d939cf2c1 |
---|---|
Date: | 2008-11-09 13:41:39 |
User: | drh |
Edited Comment: | Allow the U card of a ticket change artifact to have no argument. When that
happens, the user is assumed to be "anonymous". Ticket |
Original Comment: | All the U card of a ticket change artifact to have no argument. When that happens, the user is assumed to be "anonymous". |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- comment=Allow the U card of a ticket change artifact to have no argument. When that happens, the user is assumed to be "anonymous". Ticket [1b4f9f30c1] added by [d544dae524] on 2008-11-09 23:10:48
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/manifest.c from [b6902558ff] to [608b98745d].
@@ -518,22 +518,26 @@ } break; } /* - ** U <login> + ** U ?<login>? ** ** Identify the user who created this control file by their ** login. Only one U line is allowed. Prohibited in clusters. + ** If the user name is omitted, take that to be "anonymous". */ case 'U': { md5sum_step_text(blob_buffer(&line), blob_size(&line)); if( p->zUser!=0 ) goto manifest_syntax_error; - if( blob_token(&line, &a1)==0 ) goto manifest_syntax_error; - if( blob_token(&line, &a2)!=0 ) goto manifest_syntax_error; - p->zUser = blob_terminate(&a1); - defossilize(p->zUser); + if( blob_token(&line, &a1)==0 ){ + p->zUser = "anonymous"; + }else{ + p->zUser = blob_terminate(&a1); + defossilize(p->zUser); + } + if( blob_token(&line, &a2)!=0 ) goto manifest_syntax_error; break; } /* ** W <size>