Skip to content

Commit 5b4b622

Browse files
authored
Merge pull request #31 from ctz/master
Security: reduce paths inspected on common OSes
2 parents 24c8855 + cba877a commit 5b4b622

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ fn cert_dirs_iter() -> impl Iterator<Item = &'static Path> {
3838
"/etc/ssl",
3939
"/etc/certs",
4040
"/opt/etc/ssl", // Entware
41+
#[cfg(target_os = "android")]
4142
"/data/data/com.termux/files/usr/etc/tls",
43+
#[cfg(target_os = "haiku")]
4244
"/boot/system/data/ssl",
4345
]
4446
.iter().map(Path::new).filter(|p| p.exists())

0 commit comments

Comments
 (0)