bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] [patch v3] Bug / question in tar


From: Tim Kientzle
Subject: Re: [Bug-tar] [patch v3] Bug / question in tar
Date: Sat, 29 Mar 2014 13:28:23 -0700

On Mar 29, 2014, at 1:00 PM, Paul Eggert <address@hidden> wrote:

> Tim Kientzle wrote:
>> As long as it still reads the input files.
> 
> There is no need to read input files when the input data is not used for 
> anything.  People who want to fool tar into actually reading the files can 
> pipe its output to another program that discards it.

I'm curious.  If someone types the following command:

   tar cf /dev/null some files

What do you think they expect to happen?

I have heard of people using "tar cf /dev/null /mnt/cdrom" to test whether the 
files on a CD-ROM were readable.  If tar "optimizes" by not reading the files, 
that could lead a person relying on this behavior to erroneously believe the 
CD-ROM had no errors.

If you really believe that sending output to /dev/null should not do anything, 
make it a fatal error so people won't rely on it.

Tim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]