Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 161683 - -N produces needlessly verbose output
Summary: -N produces needlessly verbose output
Alias: None
Product: Fedora
Classification: Fedora
Component: tar
Version: 4
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Peter Vrabec
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2005-06-25 16:27 UTC by Joe Bayes
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-06-28 09:54:21 UTC

Attachments (Terms of Use)

Description Joe Bayes 2005-06-25 16:27:01 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
When I use the -N option to exclude older files from my tar archive, tar prints out a warning line for each file excluded:

tar: jane/aol.ini: file is unchanged; not dumped

This is resulting in multi-megabyte error logs for performing a perfectly normal operation. The excessive verbiage obscures any useful error messages that tar might be printing. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.touch -d "0:00" foo
2.touch -d "23:59" bar
3.tar cf foo.tar -N "now" foo bar

Actual Results:  tar created the archive containing only bar, and printed out 
tar: foo: file is unchanged; not dumped

Expected Results:  tar should have quietly created the archive

Additional info:

Comment 1 Peter Vrabec 2005-06-28 09:54:21 UTC
This tar behaviour is typical for all releases and it doesn't seem like a bug.

$tar cf foo.tar -N "now" foo bar 2> /dev/null
or contact the upstream.

Comment 2 Joe Bayes 2005-06-28 10:29:13 UTC
Just another comment: I started seeing this behavior in my logs the evening
after I upgraded from FC3 to FC4, so I assumed that tar was what had changed.
However, after downgrading to tar 1.14-4 from FC3, I still have the excessively
verbose behavior. So I'm not sure what changed, but I guess the change wasn't in
tar. I'd still like to figure out what it was and turn it off (without throwing
out all the useful stuff on stderr as well.)

tar doesn't print out a list of what it excludes when you use the --exclude
option, why should it do so with the -N option?

Note You need to log in before you can comment on or make changes to this bug.