tfix #55: deleted obsolete $NOBIND global var and used the more powerful option_is_set() function to check wheatever the -n flag is missing or not - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 1b4c08e904b28a976be8e70b4d51d62a0dccec95
DIR parent 72fcc7c2f5c0d3a51073c241321f7fe11339767a
HTML Author: Anathema <anathema@anche.no>
Date: Tue, 25 Oct 2011 23:52:59 +0200
fix #55: deleted obsolete $NOBIND global var and used the more powerful option_is_set() function to check wheatever the -n flag is missing or not
Diffstat:
M src/tomb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/src/tomb b/src/tomb
t@@ -607,7 +607,7 @@ mount_tomb() {
chown $(id -u $ME):$(id -g $ME) ${tombmount}
notice "encrypted storage $tombfile succesfully mounted on $tombmount"
- if ! [ $NOBIND ]; then
+ if ! option_is_set -n ; then
exec_safe_bind_hooks ${tombmount}
exec_safe_post_hooks ${tombmount} open
fi
t@@ -945,7 +945,7 @@ umount_tomb() {
done
# Execute post-hooks for eventual cleanup
- if ! [ $NOBIND ]; then
+ if ! option_is_set -n ; then
exec_safe_post_hooks ${tombmount%%/} close
fi