[BusyBox 0005124]: vi in busybox always writes files with length 0
bugs at busybox.net
bugs at busybox.net
Wed Sep 24 03:43:16 UTC 2008
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=5124
======================================================================
Reported By: DanLiang
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 5124
Category: Documentation
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 09-23-2008 20:43 PDT
Last Modified: 09-23-2008 20:43 PDT
======================================================================
Summary: 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.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
09-23-08 20:43 DanLiang New Issue
09-23-08 20:43 DanLiang Status new => assigned
09-23-08 20:43 DanLiang Assigned To => BusyBox
======================================================================
More information about the busybox-cvs
mailing list