bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Feature request (patch): ignore requested members missing in a


From: Vladimir A . Pavlov
Subject: [Bug-tar] Feature request (patch): ignore requested members missing in archive
Date: Mon, 23 Jun 2014 01:22:16 +0400

Hi!

It's sometimes useful to ignore errors tar returns if a requested member
is not found in archive, while receiving other possible errors (corrupt or
absent archives, no space left on device, etc).

For example:

$ touch file
$ tar -c file | tar -t file
tar: dir: Not found in archive
tar: Exiting with failure status due to previous errors
$ echo $?
2
$

The attached patch implements a new option --ignore-missing/--no-ignore-missing
which allows the behavior wanted:

$ touch file
$ tar -c file | tar --ignore-missing -t file
$ echo $?
0
$

1. Any chances it will (can) get to future official releases?
2. Are there modifications needed for the patch to be done to be accepted to 
upstream?

-- 
Vladimir A. Pavlov

Attachment: tar-1.27-ignore_missing_option-1.patch
Description: Source code patch


reply via email to

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