On 2013-01-04 01:09, José Manuel Santamaría Lema wrote: >> # HOME=/fooo odbcinst -u -s -l -n VOS >> odbcinst: DSN removed (if it existed at all). ODBC_BOTH_DSN was used as the >> search path. # dd if=/dev/urandom of=/root/.odbc.ini count=1 >> # HOME=/fooo odbcinst -u -s -l -n VOS >> odbcinst: SQLRemoveDSNFromIni failed with Unable to find component name. > > Thank you very much. I think you have just pasted above two evidences of the > real problem: it's not that it does the same as "touch /root/.odbc.ini" > (which > would be somewhat harmless), it's just that the -l option is being ignored.
Is there already a bug report for this? Otherwise please clone this report, reassign it to odbcinst and retitle it. I would consider this as RC since it makes odbcinst unsuitable for use in maintainer scripts. There could be more packages affected ... this should list some of them: http://codesearch.debian.net/search?q=odbcinst.*-l+filetype%3Ashell > Therefore I changed again the prerm script to execute odbcinst setting the > ODBCSEARCH env var, which should override the options given in the command > line. > > I have prepared package with the intended fix, would you be so kind to test > it > again in your piuparts stuff? it's available temporarily here: > http://alioth.debian.org/~santa-guest/packages/virtuoso-odbcinst-bug/ > > If it's more convenient for you I could even upload it and hope for the best. I can easily test it before you upload it if you add a Packages file: cd .../virtuoso-odbcinst-bug ; dpkg-scanpackages . > Packages > for the record, I'm attaching the debdiff against the -2 version. Looks fine, but not tested, yet. The bug reference in the prerm script should better point to a bug reported against odbcinst. Andreas -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org