bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] tar -c <file> -f <file.tar> behavior change


From: Andrew Haninger
Subject: Re: [Bug-tar] tar -c <file> -f <file.tar> behavior change
Date: Sun, 17 Jul 2005 17:18:23 -0400

On 7/17/05, Sergey Poznyakoff <address@hidden> wrote:
> > Maybe this has something to do with it:
> >
> > address@hidden:~# touch foo.c
> > address@hidden:~# tar -c foo.c -f foo.tar
> > tar: -f: Cannot stat: No such file or directory
> 
> This has already been fixed in the repository. Please see
> http://lists.gnu.org/archive/html/bug-tar/2005-01/msg00012.html
Thanks for the patch, but I think I'm doing something wrong. I saved
it to a file and tried to trim out the junk. The file I made contains:

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;


Then I tried to apply it to a copy of 1.15.1 and it failed. I also
tried to apply it to 1.15 which also failed. Then I downloaded the CVS
tree, ran ./bootstrap, then ./configure, then make, but the make
failed. The patch also failed to apply on the CVS tree.

According to the reply to that patch, someone was able to apply it to
1.15.1. I've tried patching with -p1 like directed to do with the
1.15-1.15.1 patch, and I've tried -p0, -p2, -p3, I've tried patching
from within the src directory with many different -p# options.

Is this supposed to apply to the "normal" 1.15.1 tree, or only to CVS?

Thanks,

-Andy




reply via email to

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