GNU bug report logs - #24244
dd: protect against same file in input,output

Previous Next

Package: coreutils;

Reported by: puggy <puggy.werner <at> gmx.at>

Date: Tue, 16 Aug 2016 15:30:02 UTC

Severity: wishlist

Tags: wontfix

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #19 received at control <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: 24244 <at> debbugs.gnu.org
Subject: Re: bug#24244: bug: dd deletes file
Date: Sun, 28 Oct 2018 00:30:59 -0600
retitle 24244 dd: protect against same file in input,output
severity 24244 wishlist
tags 24244 wontfix
close 24244
stop

(triaging old bugs)

On 2016-08-16 10:03 a.m., Pádraig Brady wrote:
> On 16/08/16 16:44, puggy wrote:
>> by mistakes i used the same input and output file.
>> dd said it wrote 0 bytes, but what it actually did
>> is overwrite the file and setting it back to zero.
>> doing so, dd deleted a 4.3G file in a fraction of
>> a blink.
[....]
>> please find some solution for it. if it is
>> intentional, make an option for it. this way
>> you can also shorten the command. otherwise
>> if input and output are the same, warn the user!
> 
> Well dd is a low level tool so we have to be careful
> to not preclude operations which may be valid in some cases.
> For example one might definitely want to read/write the same device.

With no further comments in 2 years, I'm closing this bug.
Discussion can continue by replying to this thread.

-assaf





This bug report was last modified 6 years and 212 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.