mirror of
https://github.com/sharkdp/fd
synced 2024-10-04 14:59:15 +00:00
parent
e0adb45d08
commit
b2fa188029
|
@ -7,6 +7,7 @@
|
|||
|
||||
## Bugfixes
|
||||
|
||||
- Avoid panic when performing limited searches in directories with restricted permissions, see #678
|
||||
- Invalid numeric command-line arguments are silently ignored, see #675
|
||||
- Disable jemalloc on Android, see #662
|
||||
|
||||
|
|
20
src/walk.rs
20
src/walk.rs
|
@ -358,19 +358,27 @@ fn spawn_senders(
|
|||
DirEntry::BrokenSymlink(path)
|
||||
}
|
||||
_ => {
|
||||
tx_thread
|
||||
.send(WorkerResult::Error(ignore::Error::WithPath {
|
||||
match tx_thread.send(WorkerResult::Error(ignore::Error::WithPath {
|
||||
path,
|
||||
err: inner_err,
|
||||
}))
|
||||
.unwrap();
|
||||
})) {
|
||||
Ok(_) => {
|
||||
return ignore::WalkState::Continue;
|
||||
}
|
||||
Err(_) => {
|
||||
return ignore::WalkState::Quit;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
Err(err) => {
|
||||
tx_thread.send(WorkerResult::Error(err)).unwrap();
|
||||
Err(err) => match tx_thread.send(WorkerResult::Error(err)) {
|
||||
Ok(_) => {
|
||||
return ignore::WalkState::Continue;
|
||||
}
|
||||
Err(_) => {
|
||||
return ignore::WalkState::Quit;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
if let Some(min_depth) = config.min_depth {
|
||||
|
|
Loading…
Reference in a new issue