On Thu, Jun 01, 2023 at 07:14:55PM +0200, Andreas Metzler <g...@bebt.de> wrote:

> On 2023-06-01 raf <g...@raf.org> wrote:
> [...]
> > but both locations are empty. /usr/share/misc/magic is
> > a symlink to /usr/share/file/magic which is empty. I
> > wonder how it works.
> [...]
> 
> file reads from $(datadir)/misc and libmagic-mgc ships
> /usr/lib/file/magic.mgc which is symlinked to /usr/share/misc/magic.mgc.
> 
> cu Andreas

Thanks. On Debian the symlink is in the other direction.

  > l /usr/share/misc/magic.mgc /usr/share/file/magic.mgc 
/usr/lib/file/magic.mgc
  /usr/lib/file/magic.mgc
  /usr/share/file/magic.mgc -> ../../lib/file/magic.mgc
  /usr/share/misc/magic.mgc -> ../../lib/file/magic.mgc

cheers,
raf


Reply via email to