bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] gtar 1.19 crash using ustar format


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] gtar 1.19 crash using ustar format
Date: Mon, 31 Mar 2008 11:05:30 +0300

Tim Kientzle <address@hidden> ha escrit:

> The following command consistently crashes for me (FreeBSD 6.3):

Thank you. Attached is a fix that I installed in the CVS.

Regards,
Sergey

2008-03-31  Sergey Poznyakoff  <address@hidden>

        * src/create.c (dump_file0): Count links only for actually dumped
        files.


Index: src/create.c
===================================================================
RCS file: /cvsroot/tar/tar/src/create.c,v
retrieving revision 1.132
diff -p -u -r1.132 create.c
--- src/create.c        7 Feb 2008 15:46:41 -0000       1.132
+++ src/create.c        31 Mar 2008 08:01:21 -0000
@@ -1616,6 +1616,7 @@ dump_file0 (struct tar_stat_info *st, co
            case dump_status_ok:
            case dump_status_short:
              mv_end ();
+             file_count_links (st);
              break;
 
            case dump_status_fail:
@@ -1625,8 +1626,6 @@ dump_file0 (struct tar_stat_info *st, co
              abort ();
            }
 
-         file_count_links (st);
-
          ok = status == dump_status_ok;
        }
 

reply via email to

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