fix #51: added a check into umount_tomb() before removing mount point: if it's the default one, then delete it

This commit is contained in:
Anathema 2011-10-25 19:37:28 +02:00
parent 262855fa10
commit 350eeb7483

View File

@ -955,7 +955,10 @@ umount_tomb() {
if ! [ $? = 0 ]; then
error "Tomb is busy, cannot umount!"
else
rmdir ${tombmount}
# this means we used a "default" mount point
if [ "${tombmount}" = "/media/${tombname}.tomb" ]; then
rmdir ${tombmount}
fi
fi
fi