URI: 
       tCleanup after ourselves - tomb - the crypto undertaker
  HTML git clone git://parazyd.org/tomb.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 70cb0a39dbefef6625693b72686618c478cf5894
   DIR parent 8ec31a1737babf345ecb817596188fd03aabd8e8
  HTML Author: Hellekin O. Wolf =8) <hellekin@cepheide.org>
       Date:   Fri, 11 Feb 2011 04:10:16 +0100
       
       Cleanup after ourselves
       
       Diffstat:
         M src/tomb                            |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/src/tomb b/src/tomb
       t@@ -575,6 +575,7 @@ mount_tomb() {
            if [ $? != 0 ]; then
         # is it a LUKS encrypted nest? see cryptsetup(1)
                error "$tombfile is not a valid Luks encrypted storage file"
       +        rmdir $tombmount 2>/dev/null
                return 1
            fi
                
       t@@ -611,12 +612,14 @@ mount_tomb() {
        
            if [ -r ${usbkey_mount}/.tomb/${tombkey} ]; then
                umount ${usbkey_mount}
       +        rmdir  ${usbkey_mount}
                unset  ${usbkey_mount}
            fi
            
            if ! [ -r /dev/mapper/${mapper} ]; then
                error "failure mounting the encrypted file"
                losetup -d ${nstloop}
       +        rmdir ${tombmount} 2>/dev/null
                return 1
            fi