summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/patchfns.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index c5156e2..e75e365 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -277,7 +277,8 @@ rename_in_db()
' $DB > $tmpfile
if [ $? -eq 0 ]
then
- mv -f $tmpfile $DB
+ cat $tmpfile > $DB
+ rm -f $tmpfile
else
rm -f $tmpfile
return 1
@@ -413,7 +414,7 @@ remove_from_db()
if tmpfile=$(gen_tempfile)
then
grep -v -E "^$(quote_re $patch)\$" $DB > $tmpfile
- mv -f $tmpfile $DB
+ cat $tmpfile > $DB
rm -f $tmpfile
[ -s $DB ] || rm -f $DB
fi