]> Dogcows Code - chaz/tar/blobdiff - src/list.c
Fix bug in sparse file listing
[chaz/tar] / src / list.c
index 36552607336730428fe5aeedcc9f1e9e7b9066c5..22bec010e475516f8a19e89d10519627c756db69 100644 (file)
@@ -1,7 +1,7 @@
 /* List a tar archive, with support routines for reading a tar archive.
 
-   Copyright 1988, 1992-1994, 1996-2001, 2003-2007, 2010, 2012-2013
-   Free Software Foundation, Inc.
+   Copyright 1988, 1992-1994, 1996-2001, 2003-2007, 2010, 2012-2014 Free
+   Software Foundation, Inc.
 
    This file is part of GNU tar.
 
@@ -203,7 +203,8 @@ read_and (void (*do_something) (void))
                      mtime.tv_nsec = 0,
                      current_stat_info.mtime = mtime,
                      OLDER_TAR_STAT_TIME (current_stat_info, m)))
-             || excluded_name (current_stat_info.file_name))
+             || excluded_name (current_stat_info.file_name,
+                               current_stat_info.parent))
            {
              switch (current_header->header.typeflag)
                {
@@ -688,7 +689,6 @@ decode_header (union block *header, struct tar_stat_info *stat_info,
        }
     }
 
-  stat_info->archive_file_size = stat_info->stat.st_size;
   xheader_decode (stat_info);
 
   if (sparse_member_p (stat_info))
This page took 0.02584 seconds and 4 git commands to generate.