Skip to content

Commit

Permalink
fixup! dd: add support for seeking in output FIFOs
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinkels authored and sylvestre committed Nov 29, 2022
1 parent 8f0f597 commit 641a49c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/uu/dd/src/dd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,9 @@ impl<'a> Output<'a> {
opts.write(true)
.create(!settings.oconv.nocreat)
.create_new(settings.oconv.excl)
.append(settings.oflags.append)
.custom_flags(make_linux_oflags(&settings.oflags).unwrap_or(0));
.append(settings.oflags.append);
#[cfg(any(target_os = "linux", target_os = "android"))]
opts.custom_flags(make_linux_oflags(&settings.oflags).unwrap_or(0));
let dst = Dest::Fifo(opts.open(filename)?);
Ok(Self { dst, settings })
}
Expand Down

0 comments on commit 641a49c

Please sign in to comment.