diff -Naur cron.daily.orig/aide cron.daily/aide --- cron.daily.orig/aide 2008-10-13 12:56:03.000000000 +0100 +++ cron.daily/aide 2008-10-13 13:03:54.000000000 +0100 @@ -124,6 +124,10 @@ LOGHEAD="$(printf "terminated: Cannot move away %s." "$TMPDIRIN")" MAILHEAD="$(printf "The cron job was terminated: Cannot move away %s." "$TMPDIRIN")" ;; + cantcreatetmpbase) + LOGHEAD="$(printf "terminated: Cannot create temporary base directory %s." "$TMPBASE")" + MAILHEAD="$(printf "The cron job was terminated: Cannot create temporary base directory %s." "$TMPBASE")" + ;; cantcreatetmp) LOGHEAD="$(printf "terminated: Cannot create temporary directory %s." "$TMPDIRIN")" MAILHEAD="$(printf "The cron job was terminated: Cannot create temporary directory %s." "$TMPDIRIN")" @@ -365,6 +369,13 @@ BEGINTIME="$(date +%s)" +if [ ! -d "$TMPBASE" ]; then + if ! mkdir -p $TMPBASE; then + onexit cantcreatetmpbase + exit 1 + fi +fi + if command -v dotlockfile >/dev/null 2>&1; then if ! dotlockfile -p -l "$LOCKFILE"; then onexit nolock