]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
zsh: don't mention /etc/mtab
authorLennart Poettering <lennart@poettering.net>
Fri, 9 Oct 2015 15:15:24 +0000 (17:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 9 Oct 2015 15:20:32 +0000 (17:20 +0200)
The file is obsolete, use /proc/self/mounts instead.

Also, yuck, the code is so awful...

shell-completion/zsh/_udevadm

index e5d252c818bed6ae223fd6f9b0dbcbf545270dbb..bb23e64d24fda5fd8f294bd57ec7875622f94dde 100644 (file)
@@ -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#* }%% *}" )