summaryrefslogtreecommitdiff
path: root/scripts/mysqlbug.sh
diff options
context:
space:
mode:
authorserg@serg.mylan <>2004-03-24 20:27:07 +0100
committerserg@serg.mylan <>2004-03-24 20:27:07 +0100
commit5de17ec592533251546db9927ebaf635fee1ae6d (patch)
treee9ec30976577a0804bd658a98e0b1b9f28f29e9c /scripts/mysqlbug.sh
parentcba6ff7597ed1cde60e2c77e4814428b73d212bc (diff)
downloadmariadb-git-5de17ec592533251546db9927ebaf635fee1ae6d.tar.gz
protection against "ln -s /etc/passwd /tmp/failed-mysql-bugreport"
Diffstat (limited to 'scripts/mysqlbug.sh')
-rw-r--r--scripts/mysqlbug.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mysqlbug.sh b/scripts/mysqlbug.sh
index bd5cb497e59..3e0e2f9e8b8 100644
--- a/scripts/mysqlbug.sh
+++ b/scripts/mysqlbug.sh
@@ -252,9 +252,9 @@ eval $EDIT $TEMP
if cmp -s $TEMP $TEMP.x
then
echo "File not changed, no bug report submitted."
- cp $TEMP /tmp/failed-mysql-bugreport
+ mv -f $TEMP /tmp/failed-mysql-bugreport
echo "The raw bug report exists in /tmp/failed-mysql-bugreport"
- echo "If you use this remember that the first lines of the report now is a lie.."
+ echo "If you use this remember that the first lines of the report are now a lie.."
exit 1
fi