Skip to Content.
Sympa Menu

freetds - Hardcoded interfaces file?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Emilio M.Recio <n2wog AT usa.net>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Hardcoded interfaces file?
  • Date: 9 May 2001 03:08:44 EDT


When i recompiled it I got varying results...

In almost every case i had to hardcode the server information... also I
noticed that there was a hostname space, and that's different from the
servername stuff... anyways, this is what I got:

[HEXDUMP]
2001-05-09 03:06:20 inside tds_process_login_tokens()
2001-05-09 03:06:20 inside tds_process_default_tokens() marker is 0
2001-05-09 03:06:20 leaving tds_process_default_tokens() connection dead
2001-05-09 03:06:20 leaving ct_connect() returning 0
2001-05-09 03:06:20 inside ct_con_props() action = 25 property = 26
2001-05-09 03:06:20 inside ct_con_drop()

What does that mean?

I also found an error here: sizeof(tds_login->host_name) will always
return the size of the pointer, not the size of the array... unless you
guys set it to 30.... 30 is too short of a DNS name, the one to the
computer i am working with makes it in under the wire.

void tds_set_host(TDSLOGIN *tds_login, char *hostname)
{
/* Elmo Debug */
fprintf(stderr,"%s,%d: copying hostname: %s (only copied %d)\n",
__FILE__, __LINE__, hostname, sizeof(tds_login->host_name));

strncpy(tds_login->host_name, hostname,
sizeof(tds_login->host_name));
}


Best Regards,
E.M. Recio

--

Inherent in every intention and desire is the mechanics for its fulfillment...
intention and desire in the field of pure potentiality have infinite
organizing power. And when we introduce an intention in the fertile ground of
pure potentiality, we put this infinite organizing power to work for us.

____________________________________________________________________
Get free email and a permanent address at http://www.amexmail.com/?A=1



  • Hardcoded interfaces file?, Emilio M . Recio, 05/09/2001

Archive powered by MHonArc 2.6.24.

Top of Page