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 #8 received at 13391 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Neil Klopfenstein <neil.klopfenstein <at> gmail.com>
Cc: 13391 <at> debbugs.gnu.org
Subject: Re: bug#13391: dd silently ignores lseek error
Date: Tue, 08 Jan 2013 12:55:15 -0800
On 01/08/13 10:11, Neil Klopfenstein wrote:
> Note that it begins reading at the _beginning of the ar file_ -- the 'skip'
> argument has failed silently.

But the 'skip' hasn't failed.  It's merely being implemented via 'read'
rather than via 'lseek'.  The records are being skipped correctly.

It might be useful to give dd a new option, which causes it
to insist on lseeking rather than reading in cases like these,
and to report an error if the lseek fails.




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.