bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] tar: '--overwrite' cannot be used with '--no-overwrite-dir


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] tar: '--overwrite' cannot be used with '--no-overwrite-dir'
Date: Thu, 19 May 2016 09:26:37 +0300

Hi Somchai,

> The new tar-1.29 fails with my command line that works well with tar-1.28:
> 
> gzip -cd /home/tmp/whatever.tgz | \
> tar --extract --numeric-owner --preserve-permissions \
>    --no-overwrite-dir --overwrite --verbose -f - ./install

In fact, it did not.  At least, it didn't work the way you expected.  In
previous versions, when two conflicting options appeared, the last one
silently took effect.  That means that the above command was effectively
equivalent to

 gzip -cd /home/tmp/whatever.tgz | \
 tar --extract --numeric-owner --preserve-permissions \
     --overwrite --verbose -f - ./install

Since version 1.28, tar explicitly marks such usage as erroneous.
Please see this thread for details:

  http://lists.gnu.org/archive/html/bug-tar/2015-08/msg00004.html
     
Regards,
Sergey




reply via email to

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