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?
The code does this:
# Database dump function file=/etc/ mysql/debian. cnf $NEWOPT $1 > $2
dbdump () {
touch $2
chmod 600 $2
...
mysqldump --defaults-
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?