initial commit: 1.5.0
[systemrescuecd.git] / portage-overlay / app-arch / tar / files / tar-1.14-loneZeroWarning.patch
1 diff -ruNp tar-1.22.orig/src/list.c tar-1.22/src/list.c
2 --- tar-1.22.orig/src/list.c    2008-10-30 12:10:04.000000000 +0100
3 +++ tar-1.22/src/list.c 2009-03-06 00:03:05.925105425 +0100
4 @@ -136,6 +136,14 @@ read_and (void (*do_something) (void))
5  
6           if (!ignore_zeros_option)
7             {
8 +             /*
9 +              * According to POSIX tar specs, this is wrong, but on the web
10 +              * there are some tar specs that can trigger this, and some tar
11 +              * implementations create tars according to that spec.  For now,
12 +              * let's not be pedantic about issuing the warning.
13 +              */
14 +#if 0
15 +
16               char buf[UINTMAX_STRSIZE_BOUND];
17  
18               status = read_header (false);
19 @@ -143,6 +151,8 @@ read_and (void (*do_something) (void))
20                 break;
21               WARN ((0, 0, _("A lone zero block at %s"),
22                      STRINGIFY_BIGINT (current_block_ordinal (), buf)));
23 +#endif
24 +             status = read_header (false);
25               break;
26             }
27           status = prev_status;