Skip to content

Commit

Permalink
Explicite truncate when file is created
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <[email protected]>
  • Loading branch information
yubiuser committed Mar 31, 2024
1 parent 0baf450 commit aae2db5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG debian_version=slim-bookworm
ARG rust_version=1.71.0
ARG rust_version=1.70.0
FROM rust:${rust_version}-${debian_version}

ARG DEBIAN_FRONTEND=noninteractive
Expand Down
1 change: 1 addition & 0 deletions playback/src/audio_backend/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ impl Sink for StdoutSink {
OpenOptions::new()
.write(true)
.create(true)
.truncate(true)
.open(file)
.map_err(|e| StdoutError::OpenFailure {
file: file.to_string(),
Expand Down

0 comments on commit aae2db5

Please sign in to comment.