Control: reassign -1 tango-db

On Fri, 2012-08-17 at 09:42:58 +0200, Picca Frédéric-Emmanuel wrote:
> Package: dpkg
> Version: 1.16.8
> Followup-For: Bug #684332

> I looked at the tango code:
> 
> the connection is done with this commande where mysql_user and
> mysql_passwd are NULL. so it delegate the user and passwd to the
> mysql library.

Isn't there a way to specify the user to the tango-db daemon? That
seems it would solve the problem nicely. It would also be nice if
it could handle the daemonization (and pidfile creation) by itself.

> if (!mysql_real_connect(conn_pool[loop].db, NULL, mysql_user,
> mysql_password, database, 0, NULL, CLIENT_MULTI_STATEMENTS))
> 
> I red the documentation of mysql [1] and is seems that this method use the
> login name when user and passwd are NULL.
> 
> I also looked at the code of mysql and it seems that it use getlogin or 
> cuserid
> depending on some config.h values
> 
> void read_user_name(char *name)
> {
[...]
> }

Well, using either getlogin(3) or cuserid(3) seems like a bad idea to
me, but changing that is something for the mysql developers to decide.

In any case this is not an issue with start-stop-daemon, this is a
problem with either tango-db or mysql, I'm reassigning to the former
for now and I'll let you sort it out from there.

> so it seems to me that mysql use getlogin with the 5.5 version.
> 
> the code of 5.1 is not that different from the 5.5 one
> 
> so maybe the config.h options where different between 5.1 and 5.5 ?
> 
> all I can says is that a few mount earlyer I did not had this conection
> problem.
> 
> how can I check the config.h file of 5.1 and 5.5

I'm afraid you'll have to check with the mysql maintainers.

thanks,
guillem


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to