]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: fix trailing whitespace in user reply from readline completion
authorLeonid Znamenok <respublica@altlinux.org>
Thu, 9 Apr 2026 12:39:40 +0000 (16:39 +0400)
committerLeonid Znamenok <respublica@altlinux.org>
Thu, 9 Apr 2026 13:20:07 +0000 (17:20 +0400)
commit77e401e5efdfe49d801bfa9ed4b7708e72e34cb7
treeee5b75346142d6f42e91966b7fb128eaafd8ea02
parenta92c4221291722a067cc513f17e34b72870bb71c
fdisk: fix trailing whitespace in user reply from readline completion

Readline appends a space after tab-completed filenames, which becomes
part of the string returned by get_user_reply(). This causes "No such
file or directory" when loading a script file via the 'I' command.

Addresses: https://github.com/util-linux/util-linux/issues/2838
disk-utils/fdisk.c