summaryrefslogtreecommitdiff
path: root/scripts/mysqlbug.sh
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-03-24 20:27:07 +0100
committerunknown <serg@serg.mylan>2004-03-24 20:27:07 +0100
commit7084ad6a73f4563b45a32af1a2874df32fca2540 (patch)
treee9ec30976577a0804bd658a98e0b1b9f28f29e9c /scripts/mysqlbug.sh
parentbc9de3d4552f2294bad973d0b9fbe07de3d07c1d (diff)
downloadmariadb-git-7084ad6a73f4563b45a32af1a2874df32fca2540.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