Notes on this: - mkdir at line ~100 - Doesn't '-d' option on mktemp do this? *** /usr/sbin/mindi.orig2 2007-04-13 23:33:35.000000000 -0500 --- /usr/sbin/mindi.handle_bad_tempdir 2007-04-25 06:33:42.000000000 -0500 *************** *** 96,104 **** . $MINDI_CONFIG fi ! # Now we can create what we nedd MINDI_TMP=`mktemp -d $TMPDIR/mindi.XXXXXXXXXX` - mkdir -p $MINDI_TMP # Purge from potential old run rm -rf $CACHE_LOC/* 2> /dev/null --- 96,103 ---- . $MINDI_CONFIG fi ! # Now we can create what we need MINDI_TMP=`mktemp -d $TMPDIR/mindi.XXXXXXXXXX` # Purge from potential old run rm -rf $CACHE_LOC/* 2> /dev/null *************** *** 2913,2920 **** MONDO_TMP=$2 # Change MINDI_TMP for the one provided by mondo # So that it can get back the built files ! mv $MINDI_TMP/* $MINDI_TMP/.??* $MONDO_TMP 2> /dev/null ! rmdir $MINDI_TMP MINDI_TMP=$MONDO_TMP mkdir -p $MINDI_TMP # This is the scratch dir in mondo --- 2912,2918 ---- MONDO_TMP=$2 # Change MINDI_TMP for the one provided by mondo # So that it can get back the built files ! rmdir $MINDI_TMP # If this fails (non-empty for some reason, or not successfully created above) it's OK. MINDI_TMP=$MONDO_TMP mkdir -p $MINDI_TMP # This is the scratch dir in mondo *************** *** 2992,2997 **** --- 2990,2998 ---- MindiExit -1 fi fi + + [ -d "$MINDI_TMP" ] || Die "Don't have a MINDI_TMP directory, $MINDI_TMP. Please check /etc/mindi/mindi.conf or Mondo options" + #ScanCDandTape [ "$CDRECOVERY" = "yes" ] || CDRECOVERY=no if [ "$CDRECOVERY" = "yes" ] ; then