LeBlanc, Alain
2005-12-12 19:31:40 UTC
Hi everyone,
I hope this is the proper mailing list. I seemed more appropriate than the
support one.
Anyway, I started using unixODBC with FreeTds and I noticed that I could
connect only when the file pointed to by the ODBCINI environment variable
(odbc.ini, in my case) was writable by the process connecting to the
database. I downloaded the code from sourceforge.net and noticed the
following in the file odbcinst_UserINI.c
if ( bVerify )
{
/*
* create it of it doesn't exist
*/
hFile = uo_fopen( pszFileName, "a" );
if ( hFile )
uo_fclose( hFile );
else
return FALSE;
}
return TRUE;
}
Is there a reason why odbc.ini must be opened in the append mode?
Thanks,
Alain
I hope this is the proper mailing list. I seemed more appropriate than the
support one.
Anyway, I started using unixODBC with FreeTds and I noticed that I could
connect only when the file pointed to by the ODBCINI environment variable
(odbc.ini, in my case) was writable by the process connecting to the
database. I downloaded the code from sourceforge.net and noticed the
following in the file odbcinst_UserINI.c
if ( bVerify )
{
/*
* create it of it doesn't exist
*/
hFile = uo_fopen( pszFileName, "a" );
if ( hFile )
uo_fclose( hFile );
else
return FALSE;
}
return TRUE;
}
Is there a reason why odbc.ini must be opened in the append mode?
Thanks,
Alain