Comment 5 for bug 1251447

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

The code does this:

# Database dump function
dbdump () {
 touch $2
 chmod 600 $2
...
  mysqldump --defaults-file=/etc/mysql/debian.cnf $NEWOPT $1 > $2

That looks like a chmod to me.
Isn't it possible for someone to obtain a file handle on $2 between the touch and the chmod?