diff options
author | Yorhel <git@yorhel.nl> | 2016-12-18 16:35:25 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2016-12-18 16:35:25 +0100 |
commit | eac4b6ac774b7a69ae7f52ba1854575c2eecb1cb (patch) | |
tree | 988b4dac63814ee91a2e7279c2b520b8d9edb53d /indexer | |
parent | d1530045326e0c82cea93d2997932a3b4a019dd8 (diff) |
Dont index ELF binaries + remove some non-man-pages
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/src/man.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indexer/src/man.rs b/indexer/src/man.rs index 9cb50e0..90dfa03 100644 --- a/indexer/src/man.rs +++ b/indexer/src/man.rs @@ -85,6 +85,8 @@ fn validate(data: &Vec<u8>) -> Option<&'static str> { Some("Contents: '.so man3/'") } else if &data[..] == &b"timestamp\n"[..] { Some("Contents: 'timestamp'") + } else if &data[..] == &b"\x75ELF"[..] { + Some("Looks like an ELF binary") } else if HTML.is_match(&data) { Some("Looks like an HTML file") } else { |