bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] stricter command line options: bug or feature ?


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] stricter command line options: bug or feature ?
Date: Wed, 05 Jan 2005 19:33:03 +0200

Mike Frysinger <address@hidden> wrote:

> with the switch to argp from getopt for cmd line parsing, tar has gotten a 
> bit 
> more stricter in terms of the order of arguements

Thank you for reporting. I have installed the following patch that fixes
the bug:

Index: src/tar.c
===================================================================
RCS file: /cvsroot/tar/tar/src/tar.c,v
retrieving revision 1.109
diff -p -u -r1.109 tar.c
--- src/tar.c   22 Dec 2004 10:53:48 -0000      1.109
+++ src/tar.c   5 Jan 2005 17:25:52 -0000
@@ -617,9 +617,9 @@ parse_opt(int key, char *arg, struct arg
   
   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;

Regards,
Sergey
         
                




reply via email to

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