findmnt: libsmartcols ASCII art problem [patch]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The libsmartcols component used by findmnt to draw the filesystem tree is smart enough to wrap lines in case the output doesn’t fit into the screen. However, it fails to draw the lines correctly in this case. Attached patch fixes the problem. Someone more knowledgeable in libsmartcols internals might want to change the buffer size from an arbitrary 1024 to something taken from actual data, the best way to do that eludes me.
Sample of incorrect output:
--%<----
├─/boot /dev/sda1 ext3 rw,relatime,
├─/usr /dev/mapper/
├─/var /dev/mapper/
├─/home /dev/mapper/
└─/srv /dev/mapper/
--%<----
Patch adds missing vertical lines at any level necessary.
Changed in util-linux (Ubuntu): | |
importance: | Undecided → Medium |
Changed in util-linux (Ubuntu): | |
status: | Fix Committed → Fix Released |
Attaching full sample of incorrect output in a separate file.