From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3156454f9568823244154cc065ee2f2e@plan9.bell-labs.com> From: jmk@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] duplicate uid in fossil In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Fri, 22 Aug 2003 00:59:32 -0400 Topicbox-Message-UUID: 1f305edc-eacc-11e9-9e20-41e7f4b1d025 If you can recompile fossil somewhere, then just take that assert out. The code for reading the users file strips out duplicates so only the first instance will be used. Once the system is up you will have to write the file back out with 'users -w' to permanently remove the duplicate. The decision to automatically read the users file on opening main was arguably wrong. However, you are not supposed to be able to create duplicate entries if you use the console commands - how did you do it? On Fri Aug 22 00:21:29 EDT 2003, arisawa@ar.aichi-u.ac.jp wrote: > Hello, > > I'm stupid enough to add a user that is already registered in fossil. > The result is: > > hera# fossil/fossil -c '. '$v/flproto > nuser 4 > diskThread 782 > fs->ehi 4789 fs->elo 1 active=76750 > got fs source > got file root > nuser 28 > duplicate uid 'alice' > assert failed: box->nuser == nuser > fossil 777: suicide: sys: trap: fault read addr=0x0 pc=0x0002a89f > > How can I remove duplicate uid? > > Kenji Arisawa