bug-tar
[Top][All Lists]
Advanced

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

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


From: Somchai Smythe
Subject: [Bug-tar] tar: '--overwrite' cannot be used with '--no-overwrite-dir'
Date: Thu, 19 May 2016 12:16:27 +0700

(I am not subscribed - please cc: me on replies)

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

I get the message from tar-1.29:

tar: '--overwrite' cannot be used with '--no-overwrite-dir'

What I expected:

It will work and overwrite anything except already existing
directories, and if the directory does not exist then it will go ahead
and make it without complaining.

What I got:

Error message I have never seen before.

If there is a better way to achieve what I was doing with 1.28 that
works with 1.29, please let me know what it is.  I carefully checked
the NEWS and ChangeLog files and didn't see anything about the change
that now forbids the combination I was using before.



reply via email to

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