Package: odbcinst
Version: 2.2.14p2-5
Severity: serious
Justification: makes odbcinst not very suitable for use in maintainer scripts


Hello,

while I'm filing this bug as serious, feel free to downgrade the severity of 
this bug if you think it's appropiate. In any case imho a fix for this bug is 
worth to be included in wheezy.

I've been working on the Virtuoso debian package. The maintainer scripts 
relies on odbc, the prerm script uses odbcinst with the -l option, thus:
odbcinst -u -s -l -n VOS
however, apparently it doesn't perform the operation like if "VOS" where a 
system DSN, but an user DSN. So I've just workarounded this bug using an 
evironnment variable which, according to a comment in the odbcinst source 
code, is suposed to override the program arguments:
ODBCSEARCH=ODBC_SYSTEM_DSN odbcinst -u -s -l -n VOS
When used this way I think it works as expected.

We noticed this bug when we where trying to fix a a piuparts error, for more 
information, see:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677286
Also note that the reported gave kindly a quick list of other packages which 
_might_  be affected:
http://codesearch.debian.net/search?q=odbcinst.*-l+filetype%3Ashell


Thank you for your time looking into this.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to