-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le 07/09/2010 12:50, Marc Dequènes (Duck) a écrit :
> Coin,
Hi (don't know what a rabbit could answer to that ;-),
> I really think the host should be enforced with "-h localhost" in the
> run_sql function when $dbc_dbserver is empty, to ensure it will work in
> all cases, independently of the local settings. I'm leaving this to your
> final decision, and downgrading severity.
I wonder if this is a duplicate of #576533 actually filled against
dbconfig-common: the weird part is that dbconfig-common actually
seems to give $dbc_dbserver from the my.cnf at this part of the config,
that's why it was not empty and why the run_sql function used it:
run_sql () {
[...]
case $dbc_dbtype in
mysql )
RES=$(echo $sql | mysql ${dbc_dbserver:+-h $dbc_dbserver}
${dbc_dbport:+--port $dbc_dbport} -u $dbc_dbuser -p$dbc_dbpass $dbc_dbname -s)
;;
Cheers
David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkyJEtgACgkQ18/WetbTC/qf5QCdFcirQ3wmGuEMlEiJ5HslVmtS
OxAAoIBxmG7n7Zu3dcXLF2rCfkj2DoNM
=4hoS
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]