Re: [Clamav-devel] dlopen using relative path for libclamunrar

2021-02-24 Thread Mark Allan
Hi Micah, OK, I've had another look at it, removed the hard-coded paths and cleaned it up a bit. Patch attached. Hope it's useful. Mark abspath.patch Description: Binary data > On 24 Feb 2021, at 5:00 pm, Micah Snyder (micasnyd) > wrote: > > Hi Mark, > > You're welcome! > > Sure,

Re: [Clamav-devel] dlopen using relative path for libclamunrar

2021-02-24 Thread Micah Snyder (micasnyd)
Hi Mark, You're welcome! Sure, please send a patch my way. I'd prefer if no one had to apply patches to use ClamAV, so getting those things working upstream is ideal. -Micah > -Original Message- > From: clamav-devel On Behalf Of > Mark Allan > Sent: Wednesday, February 24, 2021

Re: [Clamav-devel] dlopen using relative path for libclamunrar

2021-02-24 Thread Mark Allan
Hi Micah, Thanks so much. Prepending the install path PREFIX in the dlopen call works a dream! Trying the absolute path first is necessary to avoid macOS (with hardened runtime) printing that warning message every time the command is run. If that call fails, it reverts back to the original