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:
parent
4b226472e9
commit
8d361ada7a
|
@ -89,6 +89,11 @@ pub fn walk_callback(
|
|||
}
|
||||
};
|
||||
|
||||
if 0o120000 == entry.filemode() {
|
||||
eprintln!("skipping symlink {}{}", dir, name);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
crate::html::generate_page(
|
||||
dir,
|
||||
name,
|
||||
|
|
Loading…
Reference in New Issue