Skip to Content.
Sympa Menu

freetds - [freetds] ct_config set CS_IFILE property is not working?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: dariusz ostolski <dariusz.ostolski AT gmail.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] ct_config set CS_IFILE property is not working?
  • Date: Tue, 3 Jan 2012 09:07:31 +0100

Hello,

I know that FreeTDS obsoletes usage of interfaces file, but
unfortunately I'm forced to use it. The problem that I have is that it
seems that when I set CS_IFILE property it isn't taken into account,
file from $SYBASE/interfaces is read instead of one set by this call:

ct_config( ctxt_,
CS_SET,

CS_IFILE,(void*)"/opt/apps/test/interfaces",
CS_NULLTERM,
NULL) != CS_SUCCEED

I cannot find any reference to CS_IFILE inside:

http://freetds.cvs.sourceforge.net/viewvc/freetds/freetds/src/ctlib/ct.c?revision=1.224&view=markup

1. Can You confirm that I cannot set custom path to interfaces file
using ct_config?
2. What alternatives do I have? I don't want to modify $SYBASE
environment variable and I wouldn't like to use any function outside
ct library?


--
Regards,
Darek




Archive powered by MHonArc 2.6.24.

Top of Page