diff -r -u vdrrip-0.3.0/scripts/queuehandler.sh vdrrip-0.3.0.gentoo/scripts/queuehandler.sh --- vdrrip-0.3.0/scripts/queuehandler.sh 2006-10-06 08:40:46.000000000 +0200 +++ vdrrip-0.3.0.gentoo/scripts/queuehandler.sh 2006-10-06 08:41:01.000000000 +0200 @@ -734,8 +734,8 @@ rm -f "$queuefile" else let lines=lines-1 - tail -n $lines "$queuefile" > /tmp/queuefile.tmp - mv /tmp/queuefile.tmp $queuefile + cp -a "$queuefile" /tmp/queuefile.tmp + tail -n $lines /tmp/queuefile.tmp > "$queuefile" fi if [ "$error" ]