bash-completion: fstrim: use mountpoint, not device
PATCH 1/1 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 <[email protected]>
Signed-off-by Andreas Henriksson <[email protected]>
--- bash-completion/fstrim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bash-completion/fstrim +1 -1
@@ -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 }
Signature · 1 line
2.1.4
Quoted 2 lines · Andreas Henriksson
bash-completion/fstrim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com