summaryrefslogtreecommitdiff
path: root/shell-completion/zsh/_udevadm
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-09 17:15:24 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-09 17:20:32 +0200
commitb3ccac01cc548cb3ea38a638b3c0dd5d0bc33cc2 (patch)
treefa9d4853206fdd8c24d7e5989c52aa2f9bca1432 /shell-completion/zsh/_udevadm
parent2c882b8bfa29937fb808fa1dd60c2a7ab0e8e85e (diff)
zsh: don't mention /etc/mtab
The file is obsolete, use /proc/self/mounts instead. Also, yuck, the code is so awful...
Diffstat (limited to 'shell-completion/zsh/_udevadm')
-rw-r--r--shell-completion/zsh/_udevadm2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/zsh/_udevadm b/shell-completion/zsh/_udevadm
index e5d252c818..bb23e64d24 100644
--- a/shell-completion/zsh/_udevadm
+++ b/shell-completion/zsh/_udevadm
@@ -89,7 +89,7 @@ _udevadm_test-builtin(){
_udevadm_mounts(){
local dev_tmp dpath_tmp mp_tmp mline
- tmp=( "${(@f)$(< /etc/mtab)}" )
+ tmp=( "${(@f)$(< /proc/self/mounts)}" )
dev_tmp=( "${(@)${(@)tmp%% *}:#none}" )
mp_tmp=( "${(@)${(@)tmp#* }%% *}" )