From b3ccac01cc548cb3ea38a638b3c0dd5d0bc33cc2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 9 Oct 2015 17:15:24 +0200 Subject: [PATCH] zsh: don't mention /etc/mtab The file is obsolete, use /proc/self/mounts instead. Also, yuck, the code is so awful... --- shell-completion/zsh/_udevadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-completion/zsh/_udevadm b/shell-completion/zsh/_udevadm index e5d252c..bb23e64 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#* }%% *}" ) -- 2.7.4