joe truncates files and segfaults when out of disk space
Bug #328285 reported by
Jean-Paul Calderone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
joe (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: joe
Description: Ubuntu 8.04.2
Release: 8.04
joe:
Installed: 3.5-1.1
Candidate: 3.5-1.1
Version table:
*** 3.5-1.1 0
500 http://
500 http://
100 /var/lib/
When trying to save a file when the target filesystem is full (ie, returning ENOSPC from I/O calls), joe will first truncate the file to zero bytes and then segfault.
Instead, it should report that there is no space left and leave the existing contents of the file alone. Causing data loss in this situation is extremely (like, catastrophically) poor behavior.
To post a comment you must log in.