summaryrefslogtreecommitdiff
path: root/indexer
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2016-12-18 16:35:25 +0100
committerYorhel <git@yorhel.nl>2016-12-18 16:35:25 +0100
commiteac4b6ac774b7a69ae7f52ba1854575c2eecb1cb (patch)
tree988b4dac63814ee91a2e7279c2b520b8d9edb53d /indexer
parentd1530045326e0c82cea93d2997932a3b4a019dd8 (diff)
Dont index ELF binaries + remove some non-man-pages
Diffstat (limited to 'indexer')
-rw-r--r--indexer/src/man.rs2
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 {