mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
fish: complete symlink properly
When an entry is a symlink, check whether it points to a directory, so the entry for it can be completed correctly.
This commit is contained in:
@@ -192,6 +192,7 @@ complete_dest_paths_generator (const char *text, int state)
|
||||
words = w;
|
||||
words[nr_words].name = p;
|
||||
if (dirents->val[i].ftyp == 'u'
|
||||
|| dirents->val[i].ftyp == 'l'
|
||||
|| dirents->val[i].ftyp == '?') {
|
||||
int is_dir = guestfs_is_dir_opts (g, words[nr_words].name,
|
||||
GUESTFS_IS_DIR_OPTS_FOLLOWSYMLINKS, 1, -1);
|
||||
|
||||
Reference in New Issue
Block a user