Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dd: handle stdout redirected to seekable file #3880

Merged
merged 3 commits into from
Sep 18, 2022
Merged
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
19 changes: 0 additions & 19 deletions src/uu/dd/src/datastructures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
// file that was distributed with this source code.
// spell-checker:ignore ctable, outfile, iseek, oseek

use std::error::Error;

use uucore::error::UError;

use crate::conversion_tables::*;

type Cbs = usize;
Expand Down Expand Up @@ -102,21 +98,6 @@ pub enum CountType {
Bytes(u64),
}

#[derive(Debug)]
pub enum InternalError {
WrongInputType,
WrongOutputType,
}

impl std::fmt::Display for InternalError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Internal dd error: Wrong Input/Output data type")
}
}

impl Error for InternalError {}
impl UError for InternalError {}

pub mod options {
pub const INFILE: &str = "if";
pub const OUTFILE: &str = "of";
Expand Down
Loading