uutils/coreutils

dd: Silent Truncate Error Suppression

开放

#9,745 创建于 2025年12月20日

 (4 条评论) (0 个反应) (0 位负责人)Rust (2,003 个派生)batch import
U - ddgood first issuereported-canonical

仓库指标

星标
 (23,984 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Component

dd

Description

If the output device is full, read-only, or otherwise unable to be truncated, dd reports success (exit 0) while leaving stale data in the output file.

Impact

Silent data corruption. Backup scripts relying on dd may believe a copy succeeded when it actually contains old/garbage data, leading to undetected data loss during recovery.

贡献者指南