t[cleanup] Only add directory to mounted if it's actually mounted - tomb - the crypto undertaker HTML git clone git://parazyd.org/tomb.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 226fd2a0f82c92e1b5c668324f8891fd762265a1 DIR parent fda78fbf8a23edbdf237b6508049987700ae5cc9 HTML Author: hellekin <hellekin@cepheide.org> Date: Sun, 26 Oct 2014 17:18:26 -0300 t[cleanup] Only add directory to mounted if it's actually mounted Diffstat: M tomb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- DIR diff --git a/tomb b/tomb t@@ -1853,8 +1853,8 @@ exec_safe_bind_hooks() { elif [ ! -r "$mnt/$dir" ]; then _warning "bind-hook source not found in tomb, skipping ::1 mount point::/::2 subdir::" $mnt $dir else - mount -o bind,$MOUNTOPTS $mnt/$dir $HOME/${maps[$dir]} - mounted+=("$HOME/${maps[$dir]}") + mount -o bind,$MOUNTOPTS $mnt/$dir $HOME/${maps[$dir]} \ + && mounted+=("$HOME/${maps[$dir]}") fi done } t@@ -2606,6 +2606,7 @@ main() { forge_key ${=PARAM} ;; dig) + check_priv dig_tomb ${=PARAM} ;; lock) t@@ -2640,6 +2641,7 @@ main() { umount_tomb $PARAM[1] ;; passwd) + check_priv change_passwd $PARAM[1] ;; list)