From abf04fee0bc02a23f4d44464ff8e167d6b239739 Mon Sep 17 00:00:00 2001 From: Ricardo Baratto Date: Tue, 27 Oct 2026 12:03:56 -0400 Subject: [PATCH] cmdline: allow symlinks to binaries to be used for analysis we now ask 'file' to follow symlinks. The analysis results are kept in the folder with the symlink, not where it points to --- chb/cmdline/XInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chb/cmdline/XInfo.py b/chb/cmdline/XInfo.py index 2d383365..6b84623b 100644 --- a/chb/cmdline/XInfo.py +++ b/chb/cmdline/XInfo.py @@ -79,7 +79,7 @@ def __init__(self) -> None: def discover(self, path: str, xfile: str) -> None: name = os.path.join(path, xfile) - ftype = subprocess.run(["file", name], stdout=subprocess.PIPE) + ftype = subprocess.run(["file", "-L", name], stdout=subprocess.PIPE) filetype = ftype.stdout.decode("utf-8") self.fileinfo["md5"] = get_md5(name) self.fileinfo["path"] = path