Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/uu/shred/src/shred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,10 +539,8 @@ fn wipe_file(
}
// size is an optional argument for exactly how many bytes we want to shred
// Ignore failed writes; just keep trying
show_if_err!(
do_pass(&mut file, &pass_type, exact, random_source, size)
.map_err_context(|| format!("{}: File write pass failed", path.maybe_quote()))
);
do_pass(&mut file, &pass_type, exact, random_source, size)
.map_err_context(|| format!("{}: File write pass failed", path.maybe_quote()))?;
}

if remove_method != RemoveMethod::None {
Expand Down Expand Up @@ -681,7 +679,6 @@ fn do_remove(

#[cfg(test)]
mod tests {

use crate::{BLOCK_SIZE, OPTIMAL_IO_BLOCK_SIZE, split_on_blocks};

#[test]
Expand Down
1 change: 0 additions & 1 deletion tests/by-util/test_shred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ fn test_random_source_regular_file() {
}

#[test]
#[ignore = "known issue #7947"]
fn test_random_source_dir() {
let scene = TestScenario::new(util_name!());
let at = &scene.fixtures;
Expand Down
Loading