GNU bug report logs - #13391
dd silently ignores lseek error

Previous Next

Package: coreutils;

Reported by: Neil Klopfenstein <neil.klopfenstein <at> gmail.com>

Date: Tue, 8 Jan 2013 18:24:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


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

From: Pádraig Brady <P <at> draigBrady.com>
To: Bernhard Voelker <mail <at> bernhard-voelker.de>
Cc: neil.klopfenstein <at> gmail.com, 13391 <at> debbugs.gnu.org
Subject: Re: bug#13391: dd silently ignores lseek error
Date: Thu, 17 Jan 2013 11:56:44 +0000
[Message part 1 (text/plain, inline)]
On 01/09/2013 10:08 AM, Pádraig Brady wrote:
> On 01/09/2013 07:36 AM, Bernhard Voelker wrote:
>> why not check input_seekable where it is set - ~60 lines above?
>
> I was trying to keep related code together.
>
>
> Thanks for all the reviews, which I've fixed locally.
>
> To provide an argument for why this shouldn't go in,
> the following is equivalent:
>
>    python -c 'import os; os.lseek(0,0,os.SEEK_CUR)' 2>/dev/null < /the/file &&
>    dd if=/the/file ...
>
> So if the need is esoteric enough the above might suffice?
>
> I'll leave it stew for  a while longer.

I'm still 50:50 give the above,
so I'll not push until I get more positive feedback.
The latest is attached for reference.

thanks,
Pádraig.
[dd-seekable.diff (text/x-patch, attachment)]

This bug report was last modified 12 years and 132 days ago.

Previous Next


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