From: Andreas Henriksson Date: Thu, 12 Nov 2015 11:36:03 +0000 (+0100) Subject: bash-completion: fstrim: use mountpoint, not device X-Git-Tag: v2.28-rc1~274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42f536ee84fe1f97b9d390b508a23cafb521ed80;p=thirdparty%2Futil-linux.git bash-completion: fstrim: use mountpoint, not device fstrim takes mountpoint as argument but the bash completion was completing it to a device node. Addresses: http://bugs.debian.org/804833 Reported-by: Ritesh Raj Sarraf Signed-off-by: Andreas Henriksson --- diff --git a/bash-completion/fstrim b/bash-completion/fstrim index 7d3cde9dfa..726ddd9057 100644 --- a/bash-completion/fstrim +++ b/bash-completion/fstrim @@ -27,7 +27,7 @@ _fstrim_module() ;; esac local MPOINTS - MPOINTS=$(findmnt -rno SOURCE | grep ^/dev) + MPOINTS=$(findmnt -rno SOURCE,TARGET | awk '/^\/dev/{print $2}') COMPREPLY=( $(compgen -W "$MPOINTS" -- $cur) ) return 0 }