Fossil

View Ticket
Login
2015-02-17
01:49 Fixed ticket [5ba427be88]: Fossil clobbers existing files when creating new repo plus 2 other changes artifact: 0c1fa911c2 user: drh
2015-01-30
00:15 Ticket [5ba427be88]: 4 changes artifact: 1775b50aa1 user: nobody
2015-01-29
22:39 Ticket [5ba427be88]: 3 changes artifact: cb5a8fbb68 user: bharder
20:42 Ticket [5ba427be88]: 3 changes artifact: e4b733e177 user: nobody
20:31 Ticket [5ba427be88]: 4 changes artifact: 398ba922aa user: nobody
20:21 New ticket [5ba427be88]. artifact: 242fe28708 user: bharder
20:21
proposed fix for clobbering existing files [5ba427be8809342c6fbdcf48c9c8365467048d28] check-in: bb15d408a4 user: bch tags: clobber_fixer

Ticket Hash: 5ba427be8809342c6fbdcf48c9c8365467048d28
Title: Fossil clobbers existing files when creating new repo
Status: Fixed Type: Code_Defect
Severity: Important Priority:
Subsystem: Resolution: Fixed
Last Modified: 2015-02-17 01:49:57
11.12 years ago
Created: 2015-01-29 20:21:56
11.17 years ago
Version Found In: 9586ac14b8
User Comments:
bharder added on 2015-01-29 20:21:56:
kamloops$ ls -ld ../fossils/re2.fsl
ls: ../fossils/re2.fsl: No such file or directory
kamloops$ touch ../fossils/re2.fsl
kamloops$ file ../fossils/re2.fsl
../fossils/re2.fsl: empty
kamloops$ fossil new ../fossils/re2.fsl
project-id: edf5ba355b8b496b71badd2a16fc0ba178018b59
server-id:  80334132ba58383783495f24bfb31607ffe7ed41
admin-user: bch (initial password is "553f2f")
kamloops$ file ../fossils/re2.fsl
../fossils/re2.fsl: Fossil repository - SQLite3 database

nobody added on 2015-01-29 20:31:57:
see [clobber_fixer] for proposed fixes/developemnt.

nobody added on 2015-01-29 20:42:38:

[bb15d408a4d68f8ab853e] is *much* too low-level --- thinking move that code to ea. of clone and new...


bharder added on 2015-01-29 22:39:57:

Would be nicer (necessary?) to use fossil_stat() rather than stat directly but in my tests it doesn't come to db.c and clone.c gently.


nobody added on 2015-01-30 00:15:43:

fixed w/ [7670e65f6c]; will await review before merge to trunk.