Re: problem with using ODBCINI env var

Nick Gorham <[email protected]>
Newsgroups gmane.comp.db.unixodbc.devel
Message-ID <[email protected]>
Chris Pinkenburg wrote:

>Dear All,
>
>in our setup we have a few pre-canned odbc.ini files and users set the
>ODBCINI variable if they need to use a different one from the default.
>
>The problem we encountered is that currently this file is opened in
>append mode which fails if the file is read only. I tracked this down to
>odbcinst/_odbcinst_UserINI.c in line 90:
>
>hFile = uo_fopen( pszFileName, "a" );
>
>I changed it to
>
>hFile = uo_fopen( pszFileName, "r" );
>
>and things work nicely (also new users don't end up with an empty
>.odbc.ini file in their $HOME dir anymore). VMS is handled separately
>and under VMS this file is already (has always been?) opened read only.
>Is there a reason to open this file in append mode by default?
>
>Regards
>
>Chris
>
>
>
>
>  
>
I will check.

-- 
Nick
_______________________________________________
unixODBC-dev mailing list
[email protected]
http://mail.easysoft.com/mailman/listinfo/unixodbc-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.