summaryrefslogtreecommitdiffstats
path: root/Completion/Linux/Command/_fusermount
diff options
context:
space:
mode:
authorNorbert Lange <nolange79@gmail.com>2022-05-24 22:26:29 +0200
committerMatthew Martin <phy1729@gmail.com>2022-05-25 22:50:48 -0500
commitc1f1bbc5b9c128944b82afed25140ee62ccf522a (patch)
treed297ce494674cd5aba7d7b65ffdb9472255a839c /Completion/Linux/Command/_fusermount
parent50278: use `man -w` in preference to `manpath`; fix caching and precedence of -M (diff)
downloadzsh-c1f1bbc5b9c128944b82afed25140ee62ccf522a.tar
zsh-c1f1bbc5b9c128944b82afed25140ee62ccf522a.tar.gz
zsh-c1f1bbc5b9c128944b82afed25140ee62ccf522a.tar.bz2
zsh-c1f1bbc5b9c128944b82afed25140ee62ccf522a.tar.lz
zsh-c1f1bbc5b9c128944b82afed25140ee62ccf522a.tar.xz
zsh-c1f1bbc5b9c128944b82afed25140ee62ccf522a.tar.zst
zsh-c1f1bbc5b9c128944b82afed25140ee62ccf522a.zip
github #93: Replace /etc/mtab with /proc/self/mounts for Linux
/proc/self/mounts has been available since Linux 2.4.19, released in 2002. /etc/mtab is usually a symlink to this file but might not exist
Diffstat (limited to 'Completion/Linux/Command/_fusermount')
-rw-r--r--Completion/Linux/Command/_fusermount2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Linux/Command/_fusermount b/Completion/Linux/Command/_fusermount
index 41d3dec72..d55eca29c 100644
--- a/Completion/Linux/Command/_fusermount
+++ b/Completion/Linux/Command/_fusermount
@@ -19,7 +19,7 @@ case "$state" in
if [[ $+opt_args[-u] -eq 0 ]]; then
_files -/
else
- mtpts=(${${${"${(f)$(< /etc/mtab)}"}#* }%% *})
+ mtpts=(${${${"${(f)$(< /proc/self/mounts)}"}#* }%% *})
_canonical_paths mounted 'mounted filesystem' "${(@g::)mtpts}"
fi
;;