git: skip symlinks

previously would write a file containing the name of the link's target,
which might end up following the link and mess up a different file if
clam is run in-tree.

until we can safely process symlinks, better to skip them entirely.
This commit is contained in:
xfnw 2024-04-10 18:47:27 -04:00
parent 4b226472e9
commit 8d361ada7a

View File

@ -89,6 +89,11 @@ pub fn walk_callback(
if 0o120000 == entry.filemode() {
eprintln!("skipping symlink {}{}", dir, name);
return Ok(());