1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

protection against "ln -s /etc/passwd /tmp/failed-mysql-bugreport"

This commit is contained in:
unknown
2004-03-24 20:27:07 +01:00
parent bc9de3d455
commit 7084ad6a73

View File

@ -252,9 +252,9 @@ eval $EDIT $TEMP
if cmp -s $TEMP $TEMP.x if cmp -s $TEMP $TEMP.x
then then
echo "File not changed, no bug report submitted." 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 "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 exit 1
fi fi