Description of problem: Redundancy whitespace at the end of directory name when use <TAB> to complete the directory name in guestfish with a xfs filesystem in guest. It works well with ext2/3/4 btrfs filesystem. Version-Release number of selected component (if applicable): libguestfs-tools-c-1.27.63-1.1.el7 How reproducible: 100% Steps to Reproduce: #guestfish -N fs:xfs ><fs> mount /dev/sda1 / ><fs> mkdir /test ><fs> ls /test Actual results: ><fs> ls /test There is a whitespace at the end of /test Expected results: ><fs> ls /test/ Additional info:
This is something that bothered me for a while, but I haven't found a reliable way to reproduce it. Indeed the file system (xfs in this case) is the key; patch posted: https://www.redhat.com/archives/libguestfs/2014-October/msg00258.html
Fixed upstream with commit https://github.com/libguestfs/libguestfs/commit/a8b95a5535480c7b382fab82dcaf18eb67e5278a which is in libguestfs >= 1.29.4.
Version: libguestfs-1.28.1-1.9.el7.x86_64 Steps: ><fs> ls /test/ ><fs> works fine. Verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0303.html