Fossil SCM

rm command mistakingly believes files are directories

Closed

2245a1e3d058d85… · opened 16 years, 1 month ago

Type
Code_Defect
Priority
Severity
Important
Resolution
Fixed
Subsystem
Created
Feb. 13, 2010 5:38 a.m.
'fossil rm file' crashes:
(gdb) where
#0  0x91af1e9a in closedir$UNIX2003 ()
#1  0x00002d43 in del_directory_content (zDir=0x202b00 "mdb.mk") at add_.c:223
#2  0x00002de9 in del_cmd () at add_.c:255
#3  0x00022fb7 in main (argc=3, argv=0xbffff49c) at main_.c:258

mdb.mk is a plain file

Suggested patch:
--- src/add.c
+++ src/add.c
@@ -249,11 +249,11 @@
   db_begin_transaction();
   for(i=2; i


jeremy_c added on 2010-02-13 12:31:25:
Thanks for the patch. It has been applied.

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button