diff -u aide-0.13.1/debian/changelog aide-0.13.1/debian/changelog --- aide-0.13.1/debian/changelog +++ aide-0.13.1/debian/changelog @@ -1,3 +1,9 @@ +aide (0.13.1-10ubuntu1) intrepid; urgency=low + + * Create TMPBASE directory if it doesn't exists (LP: #144730) + + -- Jean-Baptiste Lallement Sat, 19 Jul 2008 23:00:57 +0200 + aide (0.13.1-10) unstable; urgency=low * debian/control: fix deprecated "<" in Conflicts diff -u aide-0.13.1/debian/cron.daily/aide aide-0.13.1/debian/cron.daily/aide --- aide-0.13.1/debian/cron.daily/aide +++ aide-0.13.1/debian/cron.daily/aide @@ -120,6 +120,10 @@ LOGHEAD="$(printf "terminated because lock %s could not be obtaiend." "$LOCKFILE")" MAILHEAD="$(printf "The cron job was terminated because lock %s could not be obtained." "$LOCKFILE")" ;; + cantcreatebase) + LOGHEAD="$(printf "terminated: Cannot create base directory %s." "$TMPBASE")" + MAILHEAD="$(printf "The cron job was terminated: Cannot create base directory %s." "$TMPBASE")" + ;; cantmovetmp) LOGHEAD="$(printf "terminated: Cannot move away %s." "$TMPDIRIN")" MAILHEAD="$(printf "The cron job was terminated: Cannot move away %s." "$TMPDIRIN")" @@ -365,6 +369,11 @@ BEGINTIME="$(date +%s)" +if ! mkdir -p $TMPBASE; then + onexit cantcreatebase + exit 1 +fi + if command -v dotlockfile >/dev/null 2>&1; then if ! dotlockfile -p -l "$LOCKFILE"; then onexit nolock