Anonymous | Login | Signup for a new account | 11-10-2008 12:53 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0005124 | [BusyBox] Documentation | minor | always | 09-23-08 20:43 | 09-26-08 05:25 | ||||
Reporter | DanLiang | View Status | public | ||||||
Assigned To | BusyBox | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 1.12.x | ||||||
Summary | 0005124: vi in busybox always writes files with length 0 | ||||||||
Description |
I use buildroot to create a rootfs and test it. My configuration is uclibc-0.9.29 gcc-4.2.4 busybox-1.12.0 When I try to modify a existing file or create a new one with vi, after I save the contents and exit from vi, the file length is always 0 and all the contents are lost. In file vi.c, I find if I comment out the line "ftruncate(fd, charcnt);" in function "static int file_write(char *fn, char *first, char *last)", everything is OK. |
||||||||
Additional Information | busybox-1.11.2 seems to have the same problem | ||||||||
Attached Files |
trace_vi.log [^] (7,172 bytes) 09-25-08 23:36 trace_test.log [^] (1,697 bytes) 09-25-08 23:36 local.tar.bz2 [^] (10,318 bytes) 09-26-08 05:24 |
||||||||
|
Copyright © 2000 - 2006 Mantis Group |