tfixed tomb umount - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit cb6fa0741677c2c94683636843217bfb5bb97539
DIR parent 5eebc89e48d47dab70f59f5c672b088149158f95
HTML Author: Jaromil <jaromil@dyne.org>
Date: Sat, 3 Sep 2011 12:43:21 +0200
fixed tomb umount
correctly checks error status of umount
Diffstat:
M src/tomb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
DIR diff --git a/src/tomb b/src/tomb
t@@ -994,10 +994,11 @@ umount_tomb() {
if [ $tombmount ]; then # tomb is actively mounted
func "performing umount of $tombmount"
- umount ${tombmount} 2> /dev/null
- rmdir ${tombmount}
+ umount ${tombmount}
if ! [ $? = 0 ]; then
error "Tomb is busy, cannot umount!"
+ else
+ rmdir ${tombmount}
fi
fi