Skip to content

Allow siegfried to follow symlinks #245

@max-moser

Description

@max-moser

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions