Package: backup-manager
Version: 0.7.4-1
Severity: minor
Tags: patch

Hi,

On the first cron.daily run after installing backup-manager I received
the following error :

/etc/cron.daily/backup-manager:
/usr/share/backup-manager/files.sh: line 318: /tmp/bm-list.I29365: No such file 
or directory

I think the problem lies in the clean_directory() function in
/usr/share/backup-manager/files.sh: the temporary file ($list) is never
created if no file is found. Touching it should fix the problem, as in
the following patch (untested) :

--- files.sh    2006-08-04 14:04:19.000000000 +0200
+++ /tmp/files.sh       2006-08-30 10:38:21.000000000 +0200
@@ -327,6 +327,7 @@
 
     # First list all the files to process
     list=$(mktemp /tmp/bm-list.XXXXXX)
+    touch $list
     for file in $directory/*
     do
         if [ ! -e $file ]; then


-- 
Thomas Parmelan  -+-  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to