Package: mysql-server-5.0
Version: 5.0.21-3
Severity: normal
Tags: patch
Please disregard information about my installed mysql software, I post
about version 5.0.21-4 (and 5.0.22 obtained by apt-get -b source).
The postinst in mysql-server-5.0 is slightly wrong in one case: when
/etc/mysql/debian.cnf does already exist.
The script tries to get the same old password as already mentioned,
which is great and fine. But since there are two lines with password =
in /etc/mysql/debian.cnf (namely one in [user] and one in
[mysql_upgrade]), the script gets the wrong password (it gets
"secretpassword secretpassword" instead of "secretpassword").
The fix is trivial.
--- /tmp/postinst.orig 2006-06-02 17:25:35.000000000 +0200
+++ /var/lib/dpkg/info/mysql-server-5.0.postinst 2006-06-02
17:26:13.000000000 +0200
@@ -128,7 +128,7 @@
# recreate the credentials file if not present or without
# mysql_upgrade stanza
dc=$mysql_cfgdir/debian.cnf;
- if [ -e "$dc" -a -n "`fgrep mysql_upgrade $dc 2>/dev/null`" ]; then
+ if [ -e "$dc" -a -n "`fgrep mysql_upgrade $dc 2>/dev/null | head -n 1`" ];
then
pass="`sed -n 's/password *= *// p' $dc|head -n 1`"
else
pass=`perl -e 'print
map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)'`;
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (499, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages mysql-server-5.0 depends on:
ii adduser 3.87 Add and remove users and groups
ii debconf [debconf-2.0] 1.5.1 Debian configuration management sy
ii libc6 2.3.6-11 GNU C Library: Shared libraries
ii libdbi-perl 1.50-2 Perl5 database interface by Tim Bu
ii libgcc1 1:4.1.0-4 GCC support library
ii libmysqlclient15off 5.0.21-4 mysql database client library
ii libncurses5 5.5-2 Shared libraries for terminal hand
ii libreadline5 5.1-7 GNU readline and history libraries
ii libstdc++6 4.1.0-4 The GNU Standard C++ Library v3
ii libwrap0 7.6.dbs-9 Wietse Venema's TCP wrappers libra
ii mysql-client-5.0 5.0.21-3 mysql database client binaries
ii mysql-common 5.0.21-4 mysql database common files (e.g.
ii passwd 1:4.0.15-10 change and administer password and
ii perl 5.8.8-4 Larry Wall's Practical Extraction
ii psmisc 22.2-1 Utilities that use the proc filesy
ii zlib1g 1:1.2.3-11 compression library - runtime
Versions of packages mysql-server-5.0 recommends:
ii mailx 1:8.1.2-0.20050715cvs-1 A simple mail user agent
-- debconf information excluded
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]