siegfried icon indicating copy to clipboard operation
siegfried copied to clipboard

Allow siegfried to follow symlinks

Open max-moser opened this issue 4 months ago • 5 comments

Right now, siegfried refuses to scan symbolic links with an error message file is of type symlink; only regular files can be scanned:

mmoser@mx ~ $ ll stderr.log
Permissions Size User   Group  Date Modified Name
lrwxrwxrwx     - mmoser mmoser 27 Feb 13:54  stderr.log -> sf.log

mmoser@mx ~ $ ~/go/bin/sf stderr.log
[FILE] /home/mmoser/stderr.log
[ERROR] file is of type symlink; only regular files can be scanned
---
siegfried   : 1.10.1
scandate    : 2024-02-27T13:55:41+01:00
signature   : default.sig
created     : 2023-12-17T15:38:39+01:00
identifiers : 
  - name    : 'pronom'
    details : 'DROID_SignatureFile_V116.xml; container-signature-20231127.xml'
---
filename : 'stderr.log'
filesize : 6
modified : 2024-02-27T13:54:56+01:00
errors   : 'file is of type symlink; only regular files can be scanned'
matches  :

It would be nice to have an option (-s/-follow-symlinks?) that makes siegfried follow the symlink to the file to analyze.

max-moser avatar Feb 27 '24 13:02 max-moser