[Pkg-libvirt-commits] [libguestfs] 08/116: fish: complete symlink properly

Hilko Bengen bengen at moszumanska.debian.org
Wed Nov 26 22:04:40 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag debian/1%1.29.10-1
in repository libguestfs.

commit 7ba102dc4cd4b7c80f7486a54bf8535dd964f436
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Fri Oct 31 17:45:04 2014 +0100

    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.
---
 fish/destpaths.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fish/destpaths.c b/fish/destpaths.c
index df1ec00..d39d6c0 100644
--- a/fish/destpaths.c
+++ b/fish/destpaths.c
@@ -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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list