bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Option -N suddenly became verbose


From: Ville Oikarinen
Subject: [Bug-tar] Option -N suddenly became verbose
Date: Fri, 20 May 2005 15:02:16 +0300 (EEST)

Hi.

I'm sorry if this is a FAQ, but I didn't know where else to contact.

A script of mine uses tar with option -N, and it worked fine until I 
upgraded to tar-1.15.1. Now it prints a warning whenever a file is older 
than the given file and thus is not added to the tar file.

And there seems to be no --quiet option to shut the thing off. Instead 
there is the verbose option, which indicates the default behaviour should 
be to shut up.

As you probably agree, unwanted output is against Unix principles, and
they hide more important messages.

I use gentoo so my version of tar has been patched by this:

Index: src/tar.c
===================================================================
RCS file: /cvsroot/tar/tar/src/tar.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -r1.109 -r1.110
--- src/tar.c   22 Dec 2004 10:53:48 -0000      1.109
+++ src/tar.c   5 Jan 2005 17:30:36 -0000       1.110
@@ -617,9 +617,9 @@
   
   switch (key)
     {
-      case 1:
+      case ARGP_KEY_ARG:
        /* File name or non-parsed option, because of ARGP_IN_ORDER */
-       name_add (optarg);
+       name_add (arg);
        args->input_files++;
        break;
 

There is a bug in bugs.gentoo.org bugzilla (#86467), but I got the 
impression that there is only an unofficial patch to remove this new 
"accidental feature".

Best regards,
Ville Oikarinen




reply via email to

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