Description:
mysqldiskusage has a critical error: there is a line added on line 1. This will disable the hashbang, and causes the script not to be run in python, but in bash.
How to repeat:
$ /usr/bin/mysqldiskusage
/usr/bin/mysqldiskusage: line 23:
This file contains the import database utility which allows users to import
metadata for objects in a database and data for tables.
: command not found
/usr/bin/mysqldiskusage: line 25: import: command not found
/usr/bin/mysqldiskusage: line 26: import: command not found
/usr/bin/mysqldiskusage: line 27: import: command not found
/usr/bin/mysqldiskusage: line 28: import: command not found
/usr/bin/mysqldiskusage: line 29: import: command not found
from: can't read /var/mail/mysql.utilities
from: can't read /var/mail/mysql.utilities.command
from: can't read /var/mail/mysql.utilities.common.options
from: can't read /var/mail/mysql.utilities.common.options
from: can't read /var/mail/mysql.utilities.common.options
from: can't read /var/mail/mysql.utilities.exception
/usr/bin/mysqldiskusage: line 38: NAME: command not found
/usr/bin/mysqldiskusage: line 39: DESCRIPTION: command not found
/usr/bin/mysqldiskusage: line 40: USAGE: command not found
/usr/bin/mysqldiskusage: line 42: syntax error near unexpected token `('
/usr/bin/mysqldiskusage: line 42: `def print_elapsed_time(start_test):'
Suggested fix:
--- /usr/bin/mysqldiskusage 2011-03-17 13:48:45.000000000 +0100
+++ /tmp/mysqldiskusage 2011-04-13 13:38:29.895356566 +0200
@@ -1,4 +1,3 @@
-
#!/usr/bin/env python
#
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.