summaryrefslogtreecommitdiff
path: root/ChangeLog
blob: 7c7865dc7baba80169d7d3a71908b8beeb3404c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
2016-05-16  Sergey Poznyakoff  <gray@gnu.org.ua>

	Version 1.29

	Minor fix
	* src/names.c (new_name): rename to make_file_name. All uses
	changed.

2016-04-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix argument handling when running external commands.
	* src/system.c (xexec): Use sh -c to run the command.  This fixed
	bug introduced by 7b5e80396 (tar 1.27)
	* doc/tar.texi: Fix checkpoint examples: (1) $TAR_FILENAME
	is not available when creating archive and (2) --checkpoint
	can't be used as abbreviation of --checkpoint-action

2016-04-06  Sergey Poznyakoff  <gray@gnu.org.ua>

	Remove iotty test
	The auxiliary utility ttyemu proved to be unreliable.
	Given existing
	differences between pty implementations and termios ioctls
	on various
	platforms, writing it in a portable way requires effort
	disproportional
	to its actual purpose.
	* configure.ac: Remove check for grantpt
	* gnulib.modules: Remove posix_openpt, ptsname, and unlockpt
	* tests/Makefile.am (TESTSUITE_AT): Remove iotty.at
	(check_PROGRAMS): Remove ttyemu.
	* tests/testsuite.at: Remove iotty.at
	* tests/iotty.at: Remove.
	* tests/ttyemu.c: Remove.

2016-04-05  Pavel Raiskup  <praiskup@redhat.com>

	xattrs: fix build on Darwin
	Be careful to define HAVE_XATTRS when not all needed xattr-related
	functions are properly defined either in libc or libattr.
	Reported independently by Denis Excoffier and Dominyk Tille.
	* acinclude.m4 (TAR_HEADERS_ATTR_XATTR_H): Check for each xattr
	function separately.  Don't AC_CHECK_LIB (LIBS is filled by
	AC_SEARCH_LIBS when necessary).
	* src/Makefile.am: The LDADD -lattr was redundant.

2016-03-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	Remove --preserve option
	* src/tar.c: Remove --preserve option
	* NEWS: Update.
	* doc/tar.texi: Update.

	Fix testcase
	* tests/time02.at: Sort tar -d output

	Update THANKS file

2016-03-24  Jeremy Bobbio  <lunar@debian.org>

	New option --clamp-mtime
	The new `--clamp-mtime` option will change the behavior of
	`--mtime` to only
	use the time specified if the file mtime is newer than the
	given time.
	The `--clamp-mtime` option can only be used together with
	`--mtime`.
	Typical use case is to make builds reproducible: to loose less
	information, it's better to keep the original date of an archive,
	except for
	files modified during the build process. In that case, using
	a reference
	(and thus reproducible) timestamps for the latter is good
	enough. See
	<https://wiki.debian.org/ReproducibleBuilds> for more information.
	Patch submitted by Jeremy Bobbio and
	Daniel Kahn Gillmor <dkg@fifthhorseman.net>
	* doc/tar.1: Document --clamp-mtime
	* doc/tar.texi: Likewise.
	* src/common.h (set_mtime_option_mode): New enum
	(set_mtime_option): Change type to enum set_mtime_option_mode.
	(NEWER_OPTION_INITIALIZED): Rename to NEWER_OPTION_INITIALIZED.
	* src/create.c (start_header): Set mtime depending on
	set_mtime_option.
	* src/tar.c (options,parse_opt): New option --clamp-mtime
	(decode_options): Initialize mtime_option
	* tests/time02.at: New testcase.
	* tests/Makefile.am: Add new testcase
	* tests/testsuite.at: Likewise.

2016-03-21  Sergey Poznyakoff  <gray@gnu.org.ua>

	Acknowledgments
	* THANKS: Add Dagobert Michelsen

	Fix the testsuite
	* tests/sparse06.at: Don't use timeout: depending on the
	filesystem
	mounted, current LA and lots of other factors, creation of
	archive can
	take much more time than the expected 2 seconds.

	Fix ckmtime
	* gnulib.modules: Use timespec-sub
	* tests/ckmtime.c: Use second resolution.

2016-03-20  Sergey Poznyakoff  <gray@gnu.org>

	Fix the testsuite
	* tests/sparse05.at: Use autom4te magic to generate mapfile,
	instead of the shell command seq, which is not always available.
	* tests/listed03.at: Skip the test if xgetcwd fails.
	* tests/ckmtime.c: New file.
	* tests/Makefile.am: Build ckmtime
	* tests/testsuite.at (AT_CHECK_TIMESTAMP): Check whether newly
	created
	files have timestamps consistent with the creation time.
	Skip the test
	if not.
	* tests/incr01.at: Use AT_CHECK_TIMESTAMP
	* tests/incr02.at: Likewise.
	* tests/incr03.at: Likewise.
	* tests/incr04.at: Likewise.
	* tests/incr05.at: Likewise.
	* tests/incr06.at: Likewise.
	* tests/incr07.at: Likewise.
	* tests/incr08.at: Likewise.
	* tests/incr09.at: Likewise.
	* tests/incr10.at: Likewise.
	* tests/incr11.at: Likewise.
	* tests/incremental.at: Likewise.
	* tests/listed01.at: Likewise.
	* tests/listed02.at: Likewise.
	* tests/listed04.at: Likewise.
	* tests/listed05.at: Likewise.

2016-03-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	Testsuite fixes.
	* paxutils: Update.
	* src/unlink.c (flush_deferred_unlinks): OpenSolaris sets EEXIST
	instead of ENOTEMPTY if trying to remove a non-empty directory.
	* tests/numeric.at: Avoid using awk -v: some older awks don't
	support
	that option.  Also fix environment variable usage.
	* tests/onetop05.at: Skip test if unable to set initial directory
	mode bits.
	* tests/sparse06.at: Use --quiet option.

	Revise docs

	Fix build with --enable-gcc-warnings
	* configure.ac: Disable stack-protector warnings

2016-03-17  Sergey Poznyakoff  <gray@gnu.org.ua>

	Improve testsuite
	* tests/iotty.at: Skip test if ttyemu can't do its job

2016-03-16  Sergey Poznyakoff  <gray@gnu.org.ua>

	Document xattrs, ACL and SELinux-related options.
	* doc/tar.1: Document all options.
	* doc/tar.texi: Likewise.

2016-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix appending to archive with changed blocking factor.
	* src/buffer.c (flush_archive): If previous reading attempt
	resulted
	in short read, correctly use the remaining record space.
	(backspace_output): Fix position calculation (still has to be
	improved).
	* tests/append05.at: New test case.
	* tests/Makefile.am: Add new test.
	* tests/testsuite.at: Likewise.

2016-03-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix coredump on parsing invalid traditional option
	* src/tar.c (find_argp_option): Fix loop termination condition.

2016-01-20  Sergey Poznyakoff  <gray@gnu.org.ua>

	Update copyright years

	Allow escaped delimiters in transform expressions.
	Patch provided by Charles McGarvey and Flavio Poletti.
	* src/transform.c (parse_transform_expr): Allow escaped delimiters
	in transform expressions.
	* tests/xform02.at: New test case.
	* tests/Makefile.am: Add xform02.at
	* tests/testsuite.at: Include xform02.at
	* THANKS: Update.

2015-12-17  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix eventual dereference of uninitialized pointer.
	* src/exclist.c (hg_initfn): Initialize hgopt.

2015-12-17  Pavel Raiskup  <praiskup@redhat.com>

	sparse: fix use of indeterminate value
	* src/xheader.c (sparse_map_decoder): Move 'e' up from loop-block.

2015-12-11  Sergey Poznyakoff  <gray@gnu.org.ua>

	fix a typo
	* doc/tar.texi (Incremental Dumps): Add missing --file to the
	'--list' example.

	Minor fixes.
	* doc/tar.texi: Document position-sensitive options in a
	separate subsection.
	* src/names.c (names_argp,names_argp_children): Explicitly
	initialize
	all members.

2015-12-11  Sergey Poznyakoff  <gray@gnu.org>

	Minor fix

	Fix handling of filename-selection options.
	Filename-selection options are --wildcards, --recursive, etc. (see
	names.c for a complete list).  These options are
	position-sensitive,
	i.e. each such option affects all filenames and filename-selection
	options that appear after it until eventually cancelled by a
	corresponding counterpart option.
	These options can appear in "file-from" file lists, which
	means that
	they cannot be handled right away, but instead should be put on
	the "name_elt" list and processed sequentionally, as file name
	arguments
	are.
	* src/common.h (warn_regex_usage): Remove.
	(name_add_name): Change signature.
	(name_add_dir, name_add_file): Remove prototypes.
	* src/names.c (name_add_option, name_add_dir)
	(name_add_file): Static functions.
	(names_options, is_file_selection_option, names_parse_opt):
	Static functions.
	(names_argp_children): New variable.
	(NELT_NAME, NELT_CHDIR)
	(NELT_FILE, NELT_NOOP): Redefine as enum nelt_type.
	(NELT_FMASK): Remove.
	(NELT_OPTION): New constant.
	(name_elt) <type>: Change type.
	<v.opt>: New member.
	(name_elt_alloc_matflags): Remove.
	(name_add_name): Take one argument.
	(name_add_option): New static function.
	(name_add_file): Take one argument.
	(read_next_name): Use filename_terminator and
	verbatim_files_from_option to initialize file.term and
	file.verbatim.
	* src/tar.c: Move handling of filename-selection options to
	names.c
	* tests/T-dir00.at: Fix typo.
	* tests/T-recurse.at: Remove expected failure.

2015-12-10  Pavel Raiskup  <praiskup@redhat.com>

	better test --{,no-}recursion options
	* tests/recurs02.at: Also test --list mode.
	* tests/T-recurse.at: New test case.  Test that -T option works
	correctly together with --{,no-}recursion.
	* tests/Makefile.am: Mention new test T-recurse.at.
	* tests/testsuite.at: Likewise.

2015-12-06  Pavel Raiskup  <praiskup@redhat.com>

	Bugfix
	* src/buffer.c (try_new_volume): Warn if user supplied malformed
	tar archive.
	Consistently use WARN (instead of ERROR) when reporting.

2015-12-06  Sergey Poznyakoff  <gray@gnu.org>

	Fix segfault when extracting from a multi-volume archive.
	Fix suggested by Pavel Raiskup.
	* src/buffer.c (try_new_volume): Fix dereferencing NULL pointer.
	* tests/multiv09.at: New testcase.
	* tests/Makefile.am: Add new testcase.
	* tests/testsuite.at: Likewise.

	Fix NEWS

2015-12-06  Pavel Raiskup  <praiskup@redhat.com>

	numeric-owner: print big UID/GID correctly
	* src/list.c (simple_print_header): Do not parse ustar header
	for UID/GID again (tar_stat_info has already been correctly
	filled with respect to possible uid/gid extended headers).
	* tests/numeric.at: New testcase for --numeric-owner option.
	* tests/Makefile.am: Add new testcase.
	* tests/testsuite.at: Likewise.

2015-12-06  Sergey Poznyakoff  <gray@gnu.org.ua>

	Use SEEK_HOLE for hole detection
	Based on patch by Pavel Raiskup.
	Use SEEK_HOLE/SEEK_DATA feature of lseek on systems that support
	it.  This can make archiving of sparse files much faster.
	Implement the --hole-detection option to allow users to select
	hole-detection method.
	* src/common.h (hole_detection_method): New enum.
	(hole_detection): New global.
	* src/sparse.c	(sparse_scan_file_wholesparse): New function as a
	method for detecting sparse files without any data.
	(sparse_scan_file_raw): Rename from sparse_scan_file; with edits.
	(sparse_scan_file_seek): New function.
	(sparse_scan_file): Reimplement function.
	* src/tar.c: New option --hole-detection
	* tests/checkseekhole.c: New file.
	* tests/.gitignore: Mention two test binaries.
	* tests/Makefile.am: Add new tests.
	* tests/testsuite.at (AT_SEEKHOLE_PREREQ): New macro.
	Include sparse06.at.
	* tests/sparse06.at: New test case.
	* tests/sparse02.at: Force raw hole-detection method.
	* tests/sparsemv.at: Likewise.
	* tests/sparsemvp.at: Likewise.
	* doc/tar.1: Document --hole-detection option.
	* doc/tar.texi: Document hole-detection algorithms and
	command-line options.
	* NEWS: Document hole-detection.

2015-12-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	Catch compressor execution errors.
	* src/misc.c (write_fatal_details): Move to buffer.c
	* src/buffer.c (write_fatal_details): Close the archive and
	wait for
	the compressor program to terminate in order to catch eventual
	execution
	errors.
	* src/system.c (sys_child_open_for_compress): Ignore SIGPIPE so
	tar will
	not silently terminate when unable to write to the compressor.
	* tests/comperr.at: New file.
	* tests/Makefile.am: Add comperr.at
	* tests/testsuite.at: Include comperr.at

	Upgrade paxutils

2015-11-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix extraction from concatenated incremental archives with
	renamed directories.
	Complements 15c02c2b.
	* src/extract.c (delayed_set_stat): Change type of file_name.
	(delay_set_stat): Allocate file_name member.
	(free_delayed_set_stat): Free file_name.
	(fixup_delayed_set_stat): New function.
	(rename_directory): Call fixup_delayed_set_stat on success.
	* tests/incr11.at: New testcase.
	* tests/incr10.at: Improve description.
	* tests/Makefile.am: Add incr11.at
	* tests/testsuite.at: Add incr11.at

2015-11-21  Sergey Poznyakoff  <gray@gnu.org>

	Fix bug in the inplementation of --one-top-level.
	When extracting an archive that contains './' with the
	--one-top-level option,
	the mode and ownership of '.' would be incorrectly applied to
	the current
	working directory, instead of the requested top-level directory.
	* src/list.c (enforce_one_top_level): Map '.' to the top-level
	directory.
	* tests/Makefile.am: Add onetop05.at
	* tests/testsuite.at: Include onetop05.at.
	* tests/onetop05.at: New file.
	* tests/onetop01.at: Fix keywords.
	* tests/onetop02.at: Likewise.
	* tests/onetop03.at: Likewise.
	* tests/onetop04.at: Likewise.

2015-11-11  Sergey Poznyakoff  <gray@gnu.org>

	Work around unlinkat bug on FreeBSD and GNU/Hurd
	* src/unlink.c (dunlink_insert): New function.
	(flush_deferred_unlinks): Skip cwds and nonempty directories
	at the first pass.  If force is requested, run a second pass
	removing them.
	(queue_deferred_unlink): Make sure current working directory
	entries are sorted in descending order by the value of dir_idx.
	This makes sure they will be removed in right order, which works
	around unlinkat bug on FreeBSD and GNU/Hurd.
	* tests/remfiles08b.at: Remove expected failure.
	* tests/remfiles09b.at: Likewise.

2015-11-10  Sergey Poznyakoff  <gray@gnu.org>

	Fix coredump on FreeBSD when TAR_OPTIONS is set
	* src/tar.c (parse_default_options): Use program_name instead of
	program_invocation_short_name.	On some systems the latter is
	NULL when
	the function is called, which causes coredumps.
	(tar_set_quoting_style): Likewise.
	* src/names.c: Likewise.

2015-11-02  Sergey Poznyakoff  <gray@gnu.org>

	Use sort in T-dir tests.

	Fix distclean in tests/
	* tests/Makefile.am: Remove "download"

	New options: --owner-map and --group-map.
	* NEWS: Update.
	* doc/tar.1: Document --owner-map and --group-map
	* doc/tar.texi: Likewise.
	* src/map.c: New file.
	* src/Makefile.am: Add map.c
	* src/common.h (owner_map_read, owner_map_translate)
	(group_map_read, group_map_translate): New protos.
	* src/create.c (start_header): Use owner_map_translate
	and group_map_translate to optionally translate user/group
	names/ids.
	* src/tar.c: New options --owner-map and --group-map.
	* tests/map.at: New file.
	* tests/Makefile.am: Add map.at
	* tests/testsuite.at: Include map.at.

2015-09-24  Kir Kolyshkin  <kir@openvz.org>  (tiny change)

	doc: fix font and spelling typos
	* doc/tar.1: Fix font and spelling typos in man page.

2015-09-24  Paul Eggert  <eggert@cs.ucla.edu>

	Fix problems caught by static checking
	Most of these can be caught by configuring with
	--enable-gcc-warnings.
	Problem reported by Pavel Raiskup in:
	http://lists.gnu.org/archive/html/bug-tar/2015-09/msg00001.html
	* src/buffer.c (format_total_stats):
	Prefer pointer to const when it’s OK to use const.
	(default_total_format): Now const.
	* src/buffer.c (default_total_format):
	* src/exclist.c (excfile_head, excfile_tail, vcs_ignore_files):
	* src/misc.c (namebuf_add_dir, namebuf_finish):
	* src/tar.c (verbatim_files_from_option, option_set_in_cl)
	(optloc_eq, set_old_files_option):
	Now static.
	* src/common.h: Adjust to match the other changes described here.
	* src/exclist.c (info_cleanup_exclist):
	* src/tar.c (argp_program_version, argp_program_bug_address):
	Remove; unused.
	(parse_default_options): Define via prototype instead of old
	style.
	(parse_default_options, decode_options):
	Fill out incomplete initializers.

2015-08-31  Sergey Poznyakoff  <gray@gnu.org>

	Improve option sanity checking
	Any two conflicting options are reported only if they both
	occur in
	the command line.  Otherwise, options defined in the command line
	silently override those set in the TAR_OPTIONS environment
	variable.
	* src/common.h (option_source): New enum.
	(option_locus): New struct.
	* src/names.c (name_elt): New member: line.
	(name_add_file): Initialize line.
	(read_name_from_file): Keep track of input line number for
	diagnostic
	purposes.
	(handle_option): Take a pointer to struct name_elt as 2nd
	parameter;
	pass locus info to more_options().
	* src/tar.c (tar_args): New member: loc.
	(option_class): New enum.
	(optloc_save,optloc_lookup)
	(option_set_in_cl,optloc_eq): New functions.
	(set_use_compress_program_option): Take into account option
	location.
	(set_old_files_option): New function.
	(parse_opt): Keep track of option locations.
	(more_options): Improve error reporting.
	(parse_default_options): New function.
	(decode_options): Parse TAR_OPTION and command line separately.
	Options from the latter silently override those from the former.
	* lib/prepargs.c: Remove.
	* lib/prepargs.h: Remove.
	* lib/Makefile.am: Update.

2015-08-24  Sergey Poznyakoff  <gray@gnu.org>

	Improve check-full
	* tests/atlocal.in: Download external archives to
	$abs_builddir/download.
	(tarball_prereq): Create destination directory if necessary.
	* tests/.gitignore: Add download

	Fix check-full
	* tests/atlocal.in (TAR_DATA_URL): Berlios is dead.  Get
	test archives from gnu.org.ua

	Include gnulib and paxutils as submodules.
	* .gitmodules: New file.
	* README-alpha: Update.
	* README-hacking: Update.
	* bootstrap: Install slightly modified version from the gnulib
	repo.
	* bootstrap.conf: Add paxutils-related stuff.
	* .gitignore: Update.
	* doc/.gitignore: Update.
	* po/.gitignore: Update.
	* gnu/Makefile.am

	Update docs.
	* doc/tar.1: Document --verbatim-files-from option.

2015-08-20  Sergey Poznyakoff  <gray@gnu.org.ua>

	Add missing VCS files to --exclude-vcs list
	* src/tar.c (vcs_file_table): Add .gitmodules and .gitattributes
	* doc/tar.texi: Update.

2015-08-03  Sergey Poznyakoff  <gray@gnu.org.ua>

	Options to control option handling in file lists.
	The --verbatim-files-from option disables option handling in
	file lists.  The --no-verbatim-files-from reverts its effect.
	The --null option implies --verbatim-files-from.  This restores
	the documented behavior, broken by 26538c9b.
	* src/common.h (verbatim_files_from_option): New global.
	* src/names.c (name_elt): New member: file.verbatim
	(name_add_file): Take 'verbatim' state as its third parameter.
	(read_next_name): Don't call handle_option if file.verbatim
	is set.
	* src/tar.c: New options --verbatim-files-from and
	--no-verbatim-files-from.
	* doc/tar.texi: Document --verbatim-files-from and
	--no-verbatim-files-from options.
	* NEWS: Update.
	* configure.ac: Version 1.28.90
	* tests/T-null2.at: New testcase.
	* tests/Makefile.am: Update.
	* tests/testsuite.at: Update.

2015-07-25  Anders Jonsson  <anders.jonsson@norsjovallen.se>  (tiny
change)

	Fix typos (preceeded etc.)

2015-07-13  Paul Eggert  <eggert@cs.ucla.edu>

	tar: fix symlink race and symlink transform bug
	Problem reported by Tobias Stoeckmann in:
	http://lists.gnu.org/archive/html/bug-tar/2015-07/msg00004.html
	* gnulib.modules: Add areadlinkat-with-size.
	* src/create.c: Include areadlink.h.
	(dump_file0): Use areadlinkat_with_size, rather than trying to do
	it by hand, incorrectly.  This also avoids assumption that
	the symlink contents fit on the stack.	Also, use the transformed
	link name, not the original link name, when deciding whether the
	name is long enough to require writing a long link.

	tar: port -d to longer symlinks
	* src/compare.c (diff_symlink):
	Don't use alloca on symlink length; it might be too big for
	the stack.
	Don't assume that readlinkat's return value fits in 'int'.
	Prefer memcmp to strncmp where either will do.

	tar: port to recent gnulib
	* gnulib.modules: Remove 'acl' and add 'file-has-acl'.

	tar: pacify GCC 5.1 -Wformat-signedness
	* lib/wordsplit.c (struct wordsplit_node.flags):
	Now unsigned, so that 'printf ("%x", p->flags)' doesn't provoke
	GCC.
	* src/incremen.c (read_num, dumpdir_ok):
	Don't printf an int with %x or %o.

2015-04-16  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix extraction from concatenated incremental archives.
	* src/common.h (remove_delayed_set_stat): New proto.
	* src/extract.c (free_delayed_set_stat)
	(remove_delayed_set_stat): New function.
	(apply_nonancestor_delayed_set_stat): Use free_delayed_set_stat.
	* src/misc.c (safer_rmdir): Remove delayed_set_stat entry
	corresponding to the removed directory.
	* tests/incr10.at: New test case.
	* tests/Makefile.am: Add new test.
	* tests/testsuite.at: Likewise.

2015-04-10  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix make installcheck
	Make installcheck would fail unless make check had been run
	before it.
	Reported by Erik Brangs <erik.brangs@gmx.de>
	* tests/Makefile.am (installcheck-local): Depend on
	$(check_PROGRAMS)

2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>

	tar: don't assume GZIP
	* Makefile.am (dist-hook): Port to gzip implementations that
	warn about nontrivial settings in the GZIP environment var.

2015-03-17  Paul Eggert  <eggert@cs.ucla.edu>

	tar: don't suggest GZIP
	* doc/tar.texi (gzip): Don't suggest using the GZIP environment
	variable, as it will be deprecated in the next gzip release.

2015-02-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	Improve compression format recognition
	Some comressed archives can pass the checksum test, which
	makes tar
	treat them as uncompressed archives.
	* src/buffer.c (check_compressed_archive): Test the checksum only
	if the block we read looks like a valid tar header (i.e. has
	a magic string).

2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>

	tar: port xattr-at.c to Solaris 10
	* lib/xattr-at.c (setxattrat, lsetxattrat, getxattrat,
	lgetxattrat)
	(listxattrat, llistxattrat): Compile only if HAVE_XATTRS, so that
	the code doesn't call functions that are not declared.

	tar: port wordsplit attribute to Sun C
	Reported by Ted Carr in:
	http://lists.gnu.org/archive/html/bug-tar/2015-01/msg00002.html
	* lib/wordsplit.h (__WORDSPLIT_ATTRIBUTE_FORMAT):
	New macro, taken from Gnulib.
	(struct wordsplit): Use it.
	* lib/wordsplit.c (_wsplt_error): Use it.

2014-12-17  Sergey Poznyakoff  <gray@gnu.org>

	Silent a cc warning
	* src/xheader.c (xheader_string_end): Make sure pointer
	arithmetics applies on char*.

2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>

	tar: port ISFOUND, WASFOUND to C89
	Problem reported by Romano Maspero in:
	http://lists.gnu.org/archive/html/bug-tar/2014-12/msg00010.html
	* src/common.h (ISFOUND, WASFOUND): Port to C89.

2014-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix tar -c -l file file
	When the same file is added several times to the archive, count
	correctly the number of hard links.  See also 37ddfb0b.
	* src/create.c (dump_hard_link): Don't decrease nlink if it is 0.
	* tests/link04.at: Test -cl options.

2014-11-07  Sergey Poznyakoff  <gray@gnu.org>

	Honor the pax-option overrides when creating archive.
	Changes proposed by Denis Excoffier.
	* NEWS: Fix typos.
	* doc/tar.texi: Fix typos.  Improve recipe for creation of binary
	equivalent archives.
	* src/create.c (write_extended): Use the value of the
	--mtime option (if specified) as the default for exthdr.mtime.
	* src/xheader.c (xheader_store): Create the header if at least
	one override is supplied in --pax-option.

	Add testcase for the previous commit.
	* tests/sparse05.at: New file.
	* tests/Makefile.am: Add sparse05.at
	* tests/testsuite.at: Include sparse05.at

2014-11-07  Pavel Raiskup  <praiskup@redhat.com>

	Fix bug in sparse file listing
	List posix archives containing sparse files >8GB correctly and
	do not fail.
	This fixes also bug in format of listing for sparse files >8GB -
	now the
	real size is printed instead of the effective one (this is
	not strictly
	posix format related).
	* src/list.c: Remove redundant assignment.
	* src/tar.h: Add new 'real_size' and 'real_size_set' fields in
	  tar_stat_info struct.
	* src/xheader.c: Correctly handle (especially sparse) file sizes
	directly in
	  xheader_decode().

2014-10-15  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix a typo

2014-10-01  Sergey Poznyakoff  <gray@gnu.org>

	Fix README
	Remove the reference to PORTS

2014-09-25  Sergey Poznyakoff  <gray@gnu.org>

	Bugfixes.
	* doc/tar.1: Fix typo in font spec.
	* src/tar.c (sort_mode_arg, sort_mode_flag): Protect "inode"
	(SAVEDIR_SORT_INODE) with D_INO_IN_DIRENT

2014-09-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfix: entries read from the -T file did not get proper
	matching_flag.
	* src/common.h (name_add_file): Change signature.
	* src/names.c (name_elt_alloc_matflags): New function.
	(name_add_name): Use name_elt_alloc_matflags.
	(name_add_file): Take matching flags as third argument.
	(read_next_name): Remove trailing slashes.
	* src/tar.c (parse_opt): Pass matching_flags to name_add_file.
	* tests/T-dir00.at: New file.
	* tests/T-dir01.at: New file.
	* tests/Makefile.am: Add new testcases.
	* tests/testsuite.at: Likewise.

2014-08-16  Sergey Poznyakoff  <gray@gnu.org>

	Improve documentation.
	* doc/tar.1: Document --skip-old-files and --warning=existing-file
	* doc/tar.texi: Document --warning=existing-file

2014-07-27  Sergey Poznyakoff  <gray@gnu.org>

	Version 1.28

2014-07-27  Nathan Stratton Treadway  <nathanst@ontko.com>

	Minor change in docstrings. nor ch#

	Restructure the remfiles testsuite.

2014-07-22  Sergey Poznyakoff  <gray@gnu.org>

	Don't build ttyemu and run tty I/O test if grantpt is not
	available.
	* configure.ac (TAR_COND_GRANTPT): Define conditional depending
	on whether grantpt is available.
	* gnulib.modules: Remove grantpt. It relies upon a helper binary
	pt_chown which it installs and which is useless in the testsuite.
	* tests/Makefile.am [TAR_COND_GRANTPT]: Build ttyemu
	* tests/iotty.at: Skip test if ttyemu is not build.
	* tests/ttyemu.c (noecho): Fix error message
	(main): Use TIOCSCTTY if it is defined.

2014-07-22  Benno Schulenberg  <bensberg@justemail.net>

	Fix a typo and some wordings in the documentation.
	* doc/tar.texi: Fix some missing articles, and make it clearer
	that "any" does not mean "anything" but "either of the two".

2014-07-22  Nathan Stratton Treadway  <nathanst@ontko.com>

	Fix the testsuite
	* tests/incr07.at: Don't assume case-sensitive filesystem.

2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>

	tar: minor fixups related to recent checkpoint.c change
	* src/checkpoint.c (getwidth, format_checkpoint_string):
	Use long and strtol, not int, to avoid overflow issues.
	(getwidth): Don't assume termios.h defines TIOCGWINSZ,
	as it doesn't on some older hosts.

2014-07-11  Sergey Poznyakoff  <gray@gnu.org>

	Bugfixes
	* gnulib.modules: Add faccessat
	* src/checkpoint.c: Include termios.h

2014-06-29  Nathan Stratton Treadway  <nathanst@ontko.com>

	tar: document xgetcwd test case better
	* src/misc.c (normalize_filename): Add commentary for clarity.
	* tests/extrac09.at: Retitle test case and add comments for
	clarity.

2014-06-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix typos in ChangeLog
	* ChangeLog.CVS: Fix typos.
	* ChangeLog.amend: New file.
	* Makefile.am: Define changelog_amend_file.

2014-04-30  Paul Eggert  <eggert@cs.ucla.edu>

	tar: do not dereference NULL pointer with '--remove-files .'
	Problem reported by Thorsten Hirsch in:
	http://lists.gnu.org/archive/html/bug-tar/2014-04/msg00011.html
	* src/unlink.c (flush_deferred_unlinks):
	Do not attempt to find the parent of "." when "." is
	at the top level.
	* tests/remfiles10.at: New file.
	* tests/Makefile.am (TESTSUITE_AT):
	* tests/testsuite.at: Add it.

2014-03-27  Sergey Poznyakoff  <gray@gnu.org>

	Refuse to write archive contents to a tty.
	* NEWS: Update.
	* src/buffer.c (_open_archive): Refuse to write to a tty.
	* tests/iotty.at: Test output to a tty.

2014-03-26  Vitezslav Cizek  <vcizek@suse.cz>

	fix an eternal loop in handle_option
	* src/names.c (handle_option): increment loop counter

2014-03-20  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fail if archive comes from a terminal.
	Based on patch from Pavel Raiskup <praiskup@redhat.com>.
	* gnulib.modules: Add new modules.
	* src/buffer.c (_open_archive): Refuse to read archive from a tty.
	* tests/Makefile.am (TESTSUITE_AT): Add iotty.at
	(check_PROGRAMS): New program ttyemu
	* tests/testsuite.at: Include iotty.at
	* tests/iotty.at: New file.
	* tests/ttyemu.c: New file.

2014-03-13  Paul Eggert  <eggert@cs.ucla.edu>

	tar: port to Solaris 9
	Problem reported by Jesse C in:
	http://lists.gnu.org/archive/html/bug-tar/2014-03/msg00034.html
	* gnulib.modules: Add strtoimax and strtoumax, since tar invokes
	these functions directly and they don't exist on Solaris 9.

2014-02-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	Test the --[no-]recursive options (see commit 2bd9c153).
	* tests/recurs02.at: New test case.
	* tests/Makefile.am: Add new file.
	* tests/testsuite.at: Add new file.

2014-02-22  Sergey Poznyakoff  <gray@gnu.org.ua>

	Support exclusion patterns from various VCS ignore lists.
	* src/Makefile.am (tar_SOURCES): Add exclist.c
	* src/common.h (EXCL_DEFAULT, EXCL_RECURSIVE)
	(EXCL_NON_RECURSIVE): New flags.
	(excfile_add, info_attach_exclist)
	(info_cleanup_exclist,info_free_exclist)
	(exclude_vcs_ignores): New prototypes.
	* src/create.c (dump_dir0): Call info_attach_exclist.
	* src/exclist.c: New file.
	* src/incremen.c (scan_directory): Call info_attach_exclist.
	* src/names.c (excluded_name): Moved to exclist.c. Change
	signature.
	All uses updated.
	* src/tar.c: New options: --exclude-ignore,
	--exclude-ignore-recursive
	and --exclude-vcs-ignores.
	(tar_stat_destroy): Free exclist.
	* src/tar.h (tar_stat_info): New member exclude_list.
	* NEWS: Document new exclusion options.
	* doc/tar.texi: Likewise.
	* doc/tar.1: Likewise.

2014-02-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix in testsuite
	* acls03.at: Fix improper invocation of setfacl.

2014-02-14  Pavel Raiskup  <praiskup@redhat.com>

	testsuite: add test for buggy default ACLs
	* tests/Makefile.am: Mention acls03.at.
	* tests/testsuite.at: Likewise.
	* tests/acls03.at: New testcase.

	acls: bugfix for default ACLs extraction
	When --acls option is on (regardless of tarball contents or
	tarball format), we should explicitly set OR delete default ACLs
	for extracted directories.  Prior to this update, we always
	created arbitrary default ACLs based standard file permissions.
	* configure.ac (with_posix_acls): Check also for acl_free and
	acl_delete_def_file to mark IEEE 1003.1e ACLs as supported.
	* src/xattrs.c (acl_delete_def_file_at): New function.
	(xattrs__acls_set): Do not treat acls_option at all;  Delete
	default ACLs if appropriate.
	References:
	http://www.mail-archive.com/bug-tar@gnu.org/msg04355.html
	Thanks: Juan J. Martínez and Mark Steinborn

	tar: imply --xattrs when --xattrs-{inc,exc}lude used
	Options --xattrs-include=MASK and --xattrs-exclude=MASK now turn
	on the --xattrs option.
	Fix also bug in printing in xattrs.c - don't print when option is
	negative.
	* src/tar.c (set_xattr_option): New static function.
	(parse_opt): Call new function when --xatrrs, --xattrs-include or
	--xattrs-exclude option is used.
	* src/xattrs.c (xattrs_print, xattrs_print_char): Expect positive
	values in options.

2014-02-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	THANKS: Add Anthony G. Basile.

	Use correct headers/libraries when providing xattr support
	See https://savannah.gnu.org/patch/index.php?8252. Patch provided
	by Anthony G. Basile.
	* acinclude.m4 (TAR_HEADERS_ATTR_XATTR_H): Look for <sys/xattr.h>
	first and then for <attr/xattr.h>.  Link against libattr.so if
	needed.
	* lib/xattr-at.h: Include sys/xattr.h or attr/xattr.h, depending
	on which one is detected.
	* src/Makefile.am [TAR_LIB_ATTR] (tar_LDADD): Link against -lattr.

	Minor change
	* src/tar.c (decode_options): Silently ignore --one-top-level
	if used with a non-reading command.

2014-02-14  Sergey Poznyakoff  <gray@gnu.org>

	New option --sort=ORDER
	This option makes tar sort the entries of directories that will be
	added to an archive according to ORDER (none, name, or inode).
	Based on proposition by Dick Streefland
	(https://savannah.gnu.org/patch/?7892).
	* src/common.h (savedir_sort_order): New global.
	* src/create.c: Pass savedir_sort_order to streamsavedir.
	* src/misc.c: Likewise.
	* src/tar.c: New option --sort.
	* NEWS: Update.
	* doc/tar.texi: Document the --sort option.
	* doc/tar.1: Likewise.

2014-02-13  Sergey Poznyakoff  <gray@gnu.org>

	Fix the testsuite
	* tests/opcomp01.at: Update expected error messages.
	* tests/opcomp03.at: Likewise.

2014-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix --one-top-level used together with --list.
	* src/extract.c: Move one_top_level stuff to tar.c
	(decode_options).
	* src/tar.c (option_conflict_error): New function.
	(decode_options): Use option_conflict_error to complain about
	conflicting options in a uniform manner.
	Process one_top_level options here.
	(request_stdin): Fix error message.
	* tests/onetop04.at: New testcase: check --one-top-level with
	--list.
	* tests/Makefile.am: Add new testcase.
	* tests/testsuite.at: Add new testcase.

	Fix NEWS
	* NEWS: Remove duplicate description of the --one-top-level
	option.

2014-02-12  Sergey Poznyakoff  <gray@gnu.org.ua>

	configure.ac: look for host-prefixed ar
	See https://savannah.gnu.org/patch/?8183

2014-02-10  Sergey Poznyakoff  <gray@gnu.org>

	Bugfix
	* src/suffix.c (find_compression_suffix): Fix eventual coredump.

2014-02-10  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix docs.

	Update docs.
	* NEWS: Document --one-top-level
	* THANKS: Mention Connor Behan

2014-01-30  Sergey Poznyakoff  <gray@gnu.org.ua>

	Update copyright years.

2014-01-28  Sergey Poznyakoff  <gray@gnu.org.ua>

	Improve one-top-level functionality
	Make sure the changes become visible with
	--show-transformed-names.
	* src/common.h (strip_compression_suffix): New function.
	(one_top_level): Rename to one_top_level_dir. All uses changed.
	* src/extract.c (extr_init): Use strip_compression_suffix.
	Bail out if unable to determine top-level directory.
	(maybe_prepend_name): Remove. All uses removed.
	* src/tar.c (options): --one-top-level takes optional argument.
	(parse_opt): Handle it.
	* src/list.c (enforce_one_top_level): New function.
	(transform_stat_info): Call enforce_one_top_level if required.
	* src/suffix.c (compression_suffixes): List "tar" (no
	compression);
	terminate with NULL entry.
	(find_compression_suffix): New static.
	(strip_compression_suffix): New function.
	* doc/tar.1: Update.
	* doc/tar.texi: Update.
	* tests/onetop01.at: New testcase.
	* tests/onetop02.at: New testcase.
	* tests/onetop03.at: New testcase.
	* tests/Makefile.am: Add new testcases.
	* tests/testsuite.at: Likewise.

2014-01-27  Connor Behan  <connor.behan@gmail.com>

	Detect tarbombs while extracting
	* src/common.h (one_top_level_option): New global.
	(one_top_level): New global.
	* src/extract.c (extr_init): If one_top_level_option is set,
	determine
	the name one_top_level that might have to be prepended.
	(extract_archive): If one_top_level_option is set, prepend
	one_top_level
	to all names that don't already start with it.
	* src/tar.c (ONE_TOP_LEVEL_OPTION): New content.
	(options): New option --one-top-level.
	(parse_opt): Handle this option.
	(decode_options): Make it conflict with --absolute-names.

2014-01-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	Don't install rmt.8 if rmt is not built.
	* doc/Makefile.am [PU_RMT_COND]: Define RMT_8
	(dist_man_MANS): use RMT_8 instead of the hardcoded rmt.8

	Provide tar(1) and rmt(8) manpages.
	* NEWS: Update.
	* doc/Makefile.am: Add manpages.
	* doc/tar.1: New file.
	* src/tar.c (tar_help_filter): Handle LZOP_OPTION.

2014-01-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	Make sure transformed file names retain trailing slash in listing.
	* src/list.c (simple_print_header): Print trailing slash
	if using the transformed name.
	Use had_trailing_slash instead of analyzing last byte if temp_name

2014-01-22  Sergey Poznyakoff  <gray@gnu.org.ua>

	checkpoint actions: further improvements.
	* NEWS: Update.
	* doc/tar.texi: Update.
	* src/buffer.c (print_stats): Avoid use of additional string
	buffer.
	Allow for text to be NULL.
	Call gettext if it is not.
	(format_total_stats): Don't use gettext when calling print_stats.
	* src/checkpoint.c (def_format): Change default format.
	(format_checkpoint_string): Implement optional arguments for
	T conversion.
	(finish_checkpoint_actions): Rename to checkpoint_flush_actions,
	make extern.  All uses changed.
	* src/common.h (checkpoint_flush_actions): New proto.
	* src/tar.c (main): Set error_hook

2014-01-22  Sergey Poznyakoff  <gray@gnu.org>

	Improve checkpoint interface.
	* src/buffer.c (format_total_stats): The format arg is const
	All uses updated.
	(default_total_format): const
	* src/checkpoint.c (tty, tty_cleanup): New static.
	(format_checkpoint_string): New "canned" format %c
	(checkpoint_finish): New function.
	* src/common.h (checkpoint_finish): New proto.
	* src/tar.c (main): Call checkpoint_finish.`

2014-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>

	Implement statistics display in checkpoint actions.
	* NEWS: Update.
	* configure.ac: Version 1.27.90
	* gnulib.modules: Add fprintftime.
	* doc/tar.texi: Document the "totals" action and new format
	specifiers
	for echo and ttyout checkpoint actions.
	* src/buffer.c (compute_duration): Return computed value.
	(print_stats): Don't print trailing newline.  Return number of
	characters output.
	(format_total_stats): New function.
	(print_total_stats): Rewrite via format_total_stats.
	* src/checkpoint.c (checkpoint_opcode) <cop_totals>: New opcode.
	(checkpoint_compile_action): Handle cop_totals.
	(expand_checkpoint_string): Remove.
	(format_checkpoint_string): New function to be used instead of
	expand_checkpoint_string.  All callers updated.
	* src/common.h (TF_READ,TF_WRITE)
	(TF_DELETED): New constants.
	(format_total_stats,print_total_stats): New protos.

2014-01-10  Sergey Poznyakoff  <gray@gnu.org.ua>

	Remove shar archives from distribution.
	These are going to phase out in automake 2.0

2014-01-10  Sergey Poznyakoff  <gray@gnu.org>

	Fix the use of --no-recursion and --recursion options.
	Each option remains in effect until cancelled by the next
	occurrence
	of its counterpart, as stated in the documentation.
	* src/names.c (name_next_elt): Restore recursion_option from the
	value of matching_flags.

2014-01-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor bugfixes
	* src/compare.c (diff_dumpdir): Close descriptor if fstat failed.
	(diff_multivol): Make sure the descriptor is closed and eventual
	errors reported if lseek fails.
	Both reported by Jiri Kukacka.

2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>

	tar: work around IBM XL C bug
	* src/incremen.c (show_snapshot_field_ranges)
	(write_directory_file_entry): Use simpler array size expression,
	one that evaluates to the same value.  This works around
	a compiler
	bug with IBM XL C.  Problem reported by Yannick Bergeron in
	<http://lists.gnu.org/archive/html/bug-tar/2014-01/msg00009.html>.

2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>

	tar: update ancient configure cruft
	* configure.ac: Use AC_PROG_CC_STDC, not just AC_PROG_CC.
	Remove obsolete macros AC_ISC_POSIX, AC_HEADER_SYS_WAIT,
	AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC, AC_TYPE_SIGNAL,
	AC_TYPE_SIZE_T.
	* lib/prepargs.c (IN_CTYPE_DOMAIN): Remove.  All uses removed.
	* src/list.c (from_header): Use isspace, not ISSPACE.
	* src/system.c (pipe_handler, sys_exec_info_script):
	* src/tar.c (sigstat):
	Use void, not RETSIGTYPE.

2013-11-17  Sergey Poznyakoff  <gray@gnu.org.ua>

	Version 1.27.1

	Fix star compatibility (sparse headers)
	* src/sparse.c (star_get_sparse_info): Update file->dumped_size

	Fix GNU long link header.
	* src/create.c (write_gnu_long_link): Set timestamp to
	0 for backward compatibility.  Bug reported by David Barri.
	* THANKS: Update.

	Fix unquoting of input file names.
	* src/names.c (read_next_name): Unquote file names coming from the
	-T argument.  Bug reported by Nicolas Dudebout.
	* THANKS: Update.

2013-10-24  Paul Eggert  <eggert@cs.ucla.edu>

	build: fix bug where 'configure --with-posix-acls' disables ACLs
	Reported by Lars Wendler in
	<http://lists.gnu.org/archive/html/bug-tar/2013-10/msg00022.html>.
	* configure.ac (with_posix_acls): Fix typo.

2013-10-23  Paul Eggert  <eggert@cs.ucla.edu>

	Fix core dump on Solaris 10 when "." isn't readable.
	Reported by Peter Kruse in
	<http://lists.gnu.org/archive/html/bug-tar/2013-10/msg00017.html>.
	This doesn't fix all the Solaris 10 test failures, just the
	core dump.
	* src/common.h, src/misc.c (tar_getcdpath): Now static.
	* src/misc.c (normalize_filename): Report a fatal error
	if cdpath is null, since we don't know the absolute name
	of the working directory in that case.	FIXME: there should
	be no need to know absolute file names.
	(chdir_arg): Simplify wd allocation.
	Don't assume that xgetcwd returns non-null.

2013-10-06  Sergey Poznyakoff  <gray@gnu.org.ua>

	Version 1.27
	* NEWS: Update.
	* configure.ac: Update.

	Minor fixes.
	* src/names.c: Include argp.h
	* tests/testsuite.at (AT_XATTRS_UTILS_PREREQ)
	(AT_SELINUX_UTILS_PREREQ,AT_ACLS_UTILS_PREREQ)
	(AT_CAPABILITIES_UTILS_PREREQ)
	(AT_XATTRS_PREREQ,AT_SELINUX_PREREQ)
	(AT_ACLS_PREREQ): Use POSIX-compatible syntax for
	mktemp.
	* tests/incr08.at: Fix find usage.

2013-10-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	Xfail the remfiles09b test.
	* tests/remfiles09b.at: Turn into expected failure.

2013-10-05  Nathan Stratton Treadway  <nathanst@ontko.com>

	Tiny change
	* scripts/tar-snapshot-edit: Mention --show-snapshot-field-ranges
	option

2013-10-05  Pavel Raiskup  <praiskup@redhat.com>

	Tiny change
	* configure.ac (RSH): Define as AC_ARG_VAR.

2013-10-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix namespace contamination in testsuite.
	* tests/append01.at: Use m4_pushdef/m4_popdef to define local
	macros.
	* tests/delete03.at: Likewise.
	* tests/exclude06.at: Likewise.
	* tests/incr04.at: Likewise.
	* tests/link03.at: Likewise.
	* tests/long01.at: Likewise.
	* tests/longv7.at: Likewise.
	* tests/lustar01.at: Likewise.
	* tests/lustar02.at: Likewise.
	* tests/lustar03.at: Likewise.
	* tests/multiv05.at: Likewise.
	* tests/sparse04.at: Likewise.

2013-10-05  Nathan Stratton Treadway  <nathanst@ontko.com>

	Provide comprehensive testcases for various file removal modes.
	* tests/Makefile.am: Add new testcases.
	* tests/testsuite.at: Likewise.
	* tests/incr09.at: Add description.
	* tests/remfiles04a.at: New file.
	* tests/remfiles05.at: Rename to ...
	* tests/remfiles04b.at: ... this.
	* tests/remfiles04.at: Rename to ...
	* tests/remfiles04c.at: ... this.
	* tests/remfiles05a.at: New file.
	* tests/remfiles05b.at: New file.
	* tests/remfiles06.at: Rename to ...
	* tests/remfiles05c.at: ... this.
	* tests/remfiles06a.at: New file.
	* tests/remfiles06b.at: New file.
	* tests/remfiles06c.at: New file.
	* tests/remfiles07a.at: New file.
	* tests/remfiles07b.at: New file.
	* tests/remfiles07c.at: New file.
	* tests/remfiles08a.at: New file.
	* tests/remfiles08b.at: New file.
	* tests/remfiles08c.at: New file.
	* tests/remfiles08.at: Rename to ...
	* tests/remfiles09a.at: ... this.
	* tests/remfiles09b.at: New file.
	* tests/remfiles07.at: Rename to ...
	* tests/remfiles09c.at: ... this.

2013-10-03  Sergey Poznyakoff  <gray@gnu.org.ua>

	Tiny changes.
	* src/misc.c: Fix comments, rename wd.cwd to wd.abspath (Nathan
	Stratton
	Treadway);
	* src/tar.c (options): Reword description of the --starting-file
	and
	--preserve-order options.
	(decode_options): Both --starting-file and --preserve-order
	have meaning
	only when used together with an archive reading command. (Pavel
	Raiskup).

2013-10-01  Sergey Poznyakoff  <gray@gnu.org.ua>

	Revamp tar_getcwd/normalize_filename stuff.
	The changes are based on the discussion with Nathan.
	* src/common.h (normalize_filename): Take two arguments. All
	callers updated.
	(tar_getcwd): Replaced with ..
	(tar_getcdpath): New proto.
	* src/misc.c (normalize_filename): Take two arguments.
	(chdir_arg): Populate cwd along with creating the
	structure.
	(tar_getcwd): Removed.
	(tar_getcdpath): New function.
	* tests/incr09.at: New test case.
	* tests/Makefile.am: Add new tests.
	* tests/testsuite.at: Likewise.

2013-09-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfix
	* tests/remfiles08.at: Restore missing find

2013-09-26  Sergey Poznyakoff  <gray@gnu.org.ua>

	Use relative addressing in deferred unlinks.
	* src/common.h (tar_dirname): New function.
	* src/misc.c (normalize_filename_x): Make extern.
	(tar_dirname): New function.
	(tar_getcwd): Take into account absolute pathnames.
	* src/unlink.c (deferred_unlink) <dir_idx>: New member; keeps the
	value of chdir_current at the moment of structure allocation.
	(flush_deferred_unlinks): Use chdir_do and relative addressing.
	(queue_deferred_unlink): Initialize dir_idx.
	* tests/Makefile.am: Add new tests.
	* tests/testsuite.at: Add new tests.
	* tests/remfiles06.at: Fix description.
	* tests/remfiles07.at: Fix description.
	* tests/remfiles08.at: New test case.

2013-09-25  Nathan Stratton Treadway  <nathanst@ontko.com>

	Improve tar-snapshot-edit
	Support architecture-specific field ranges for the "-c" function.
	Better handle negative or larger-than-32-bit field values even
	when running in 32-bit Perl (for the default "print a summary"
	function)

2013-09-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	Improve tar_getcwd
	* src/common.h (tar_getcwd): Return pointer is const.
	* src/misc.c (wd) <cwd>: New member.
	(chdir_arg): Initialize cwd.
	(tar_getcwd): Use cwd member to cache the result.  Take into
	account absolute pathnames,
	(normalize_filename): Don't free the value
	returned from tar_getcwd.
	* src/names.c (name_next_elt): Remove leftover call chdir().
	* tests/Makefile.am: Add new tests.
	* tests/testsuite.at: Likewise.
	* tests/incr08.at: New testcase.
	* tests/remfiles04.at: New testcase.
	* tests/remfiles05.at: New testcase.
	* tests/remfiles06.at: New testcase.
	* tests/remfiles07.at: New testcase.

2013-09-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix normalize_filename.
	The function did not take into account eventual -C options, which
	in particular led to various problems when using -C and
	--remove-files
	together.
	* src/common.h (namebuf_add_dir,namebuf_finish)
	(tar_getcwd): New prototypes.
	* src/misc.c (namebuf_add_dir,namebuf_finish)
	(tar_getcwd): New functions.
	(normalize_filename): Use tar_getcwd.

2013-09-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	Changes for compatibility with Slackware installation scripts.
	* src/buffer.c (short_read): the "Record size" message
	is controlled by the WARN_RECORD_SIZE warning_option bit.
	* src/common.h (keep_directory_symlink_option): New global.
	(WARN_RECORD_SIZE): New constant.
	(WARN_VERBOSE_WARNINGS): Add WARN_RECORD_SIZE.
	* src/extract.c (extract_dir): If keep_directory_symlink_option is
	set, follow symlinks to directories.
	* src/suffix.c (compression_suffixes): Add support for txz
	suffix.
	* src/tar.c (KEEP_DIRECTORY_SYMLINK_OPTION): New constant.
	(options): New option --keep-directory-symlink.
	(parse_opt): Handle this option.
	* src/warning.c: Implement "record-size" warning control.
	* NEWS: Update.
	* doc/tar.texi: Document new features.

2013-09-21  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix error message (complements 0ea6e686)
	* src/tar.c (set_subcommand_option): Mention --delete in the
	error message.

2013-09-15  Sergey Poznyakoff  <gray@gnu.org.ua>

	Improve the incr07 test

2013-09-15  Nathan Stratton Treadway  <nathanst@ontko.com>

	Implement the --show-snapshot-field-ranges option
	* src/common.h (show_snapshot_field_ranges): New prototype.
	* src/incremen.c (show_snapshot_field_ranges): New function.
	* src/tar.c: New option --show-snapshot-field-ranges.
	* doc/snapshot.texi: Document the --show-snapshot-field-ranges
	option.
	* doc/tar.texi: Likewise.

2013-09-15  Sergey Poznyakoff  <gray@gnu.org.ua>

	Take into account chdir_fd when extracting from incremental dumps.
	* src/common.h (tar_savedir): New prototype.
	* src/misc.c (tar_savedir): New function.
	(remove_any_file): Use tar_savedir.
	* src/incremen.c (try_purge_directory): Use tar_savedir.
	* src/update.c (update_archive): Use tar_savedir.
	* tests/incr07.at: New testcase.
	* tests/Makefile.am (TESTSUITE_AT): Add new test.
	* tests/testsuite.at: Likewise.
	* THANKS: Updated.

	Minor fix
	* src/tar.c (main): Mention --delete in the error message.
	* THANKS: Update

2013-09-13  Paul Eggert  <eggert@cs.ucla.edu>

	* src/names.c (file_list_name): Properly prototype.

	tar: don't warn about zero timestamps
	* src/extract.c (check_time): Suppress warning when t.tv_sec == 0.
	Problem reported by Denis Excoffier.

2013-08-19  Pavel Raiskup  <praiskup@redhat.com>

	Minor fix in the testsuite.
	* tests/T-cd.at: sort the 'tar cf' output.

2013-08-17  Sergey Poznyakoff  <gray@gnu.org.ua>

	Improve error diagnostics
	* src/names.c (file_list_name): New static function.
	(add_file_id): If a filelist is being read twice, print the names
	of the files that caused it.
	* tests/T-rec.at: New test case.
	* tests/Makefile.am: Add new file.
	* tests/testsuite.at: Include new file.

2013-08-16  Sergey Poznyakoff  <gray@gnu.org.ua>

	Revamp initial name collection functions to ensure proper
	argument ordering.
	* src/names.c (NELT_NOOP): New constant
	(name_elt) <next,prev>: New members.
	(name_array,allocated_entries,entries,scanned): Remove.
	(check_name_alloc): Remove function.
	(name_elt_alloc): New static.
	(name_list_adjust,name_list_advance): New functions.
	(name_add_name,name_add_dir)
	(name_add_file): Use new allocation functions.
	(read_next_name): Advance list head pointer as necessary
	before returning.
	(name_next_elt): Read elements from list.
	* tests/T-cd.at: New file.
	* tests/T-mult.at: New file.
	* tests/T-nest.at: New file.
	* tests/Makefile.am: Add new testcases.
	* tests/testsuite.at: Likewise.

	Don't treat attempts to read an already read file list as
	fatal errors.
	* src/names.c (add_file_id): Report error and return 1 if the file
	has already been read.
	(read_next_name): Don't try to open file if add_file_id returns 1.
	(name_next_elt): Simplify conditional.

	Minor change.
	* src/names.c (name_next_elt): Simplify conditional.

2013-08-15  Pavel Raiskup  <praiskup@redhat.com>

	Fix use of uninitialized memory
	* src/names.c (name_add_file): Initialize the ep->v.file.fp
	pointer
	after structure allocation.

2013-08-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor changes
	* src/names.c (handle_option): Use program_invocation_short_name
	instead of the constant string.
	(read_next_name): Remove unused variable.

2013-08-04  Sergey Poznyakoff  <gray@gnu.org.ua>

	Update the docs.
	* doc/tar.texi: Parsing of the options found in the file list
	follows the same rules as for command line.  Remove the obsolete
	description.  This complements 26538c9b.

	Fix interaction of --verbose and --append.
	* src/buffer.c (_open_archive): don't overwrite existing archive
	if given the --verify option.
	* tests/append04.at: New file.
	* tests/Makefile.am: Add new testcase.
	* tests/testsuite.at: Add new testcase.
	* THANKS: Update.

	Bugfix.
	* src/names.c (read_name_from_file): Fix a typo. Remove
	unused variable.

	Reduce memory consumption when handling the -T option.
	The commit cdb27293 made the -T option more flexible, but
	incurred a very considerable memory overhead by storing
	all file names in the argument array.  In case of very
	big file lists this caused tar to run out of memory.  This
	was reported by Christian Wetzel <wetzel@phoenix-pacs.de>
	on March 14, 2013
	(http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00018.html).
	On the other hand, Michal Žeidl discovered that tar malfunctioned
	when given empty file lists or lists with the trailing newline
	missing in the last entry.  This was reported by Pavel Raiskup
	on July 23
	(http://lists.gnu.org/archive/html/bug-tar/2013-07/msg00009.html
	and
	msg00010.html).
	This change fixes both issues.
	* src/common.h (name_add_file,request_stdin): New prototype.
	(more_options): New prototype.
	* src/names.c (NELT_FILE): New entry type.
	(name_elt) <file>: New union member.
	(name_add_file): New function.
	(read_name_from_file): New function, a rewrite of
	the same function from tar.c
	(read_next_name,copy_name): New static functions.
	(name_next_elt): Handle NELT_FILE entries.
	* src/tar.c (request_stdin): Make extern.
	(read_name_from_file,add_file_id)
	(update_argv): Removed.
	(parse_opt): Change handling of the -T option.
	(more_options): New function.
	* tests/T-null.at: Rewrite test.
	* tests/T-zfile.at: New file.
	* tests/T-nonl.at: New file.
	* tests/Makefile.am: Add new testcases.
	* tests/testsuite.at: Likewise.
	* THANKS: Update.

2013-06-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix the compatibility check for the --occurrence option.
	* src/tar.c (SUBCL_OCCUR): New class.
	(subcommand_class): Update.
	(decode_options): Accept the --occurrence option
	with any subcommand from the SUBCL_OCCUR class.

2013-06-29  Pavel Raiskup  <praiskup@redhat.com>

	testsuite: do not resist on file order in archive
	On my Fedora 19 box, the exclude08 & exclude11 tests failed before
	this fix.  The reason was that the directory traversing chosen the
	file order differently than the testsuite expected.
	* tests/exclude08.at: Sort the tarball content output.
	* tests/exclude09.at: Likewise.
	* tests/exclude10.at: Likewise.
	* tests/exclude11.at: Likewise.
	* tests/exclude12.at: Likewise.
	* tests/exclude13.at: Likewise.
	* tests/exclude14.at: Likewise.
	* tests/exclude15.at: Likewise.
	* tests/exclude16.at: Likewise.

2013-06-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	Improve checks for incompatible options.
	* src/common.h (READ_LIKE_SUBCOMMAND): Remove define.
	* src/tar.c (IS_SUBCOMMAND_CLASS): New macro.
	(decode_options): Use IS_SUBCOMMAND_CLASS in checking
	option compatibility.
	Accept the --verify option only with subcommands that
	write to the archive.
	* tests/opcomp01.at: New test case.
	* tests/opcomp02.at: New test case.
	* tests/opcomp03.at: New test case.
	* tests/opcomp04.at: New test case.
	* tests/opcomp05.at: New test case.
	* tests/opcomp06.at: New test case.
	* tests/Makefile.am: Add new testcases.
	* tests/testsuite.at: Likewise.

2013-06-28  Paul Eggert  <eggert@cs.ucla.edu>

	tar: port to Mingw Shell
	* src/extract.c (extract_symlink) [!HAVE_SYMLINK]:
	Fix typo by replacing WARN_SYMBOLIC_CAST with WARN_SYMLINK_CAST.
	Problem reported by kaka in
	<http://lists.gnu.org/archive/html/bug-tar/2013-06/msg00008.html>.

2013-05-06  Paul Eggert  <eggert@cs.ucla.edu>

	maint: revert previous change
	It wasn't actually needed.  Reported by Stefano Lattarini in
	<http://lists.gnu.org/archive/html/bug-tar/2013-04/msg00041.html>.
	* configure.ac (AM_GNU_GETTEXT_VERSION): Decrease from 0.18.2
	back to 0.16.

2013-04-25  Paul Eggert  <eggert@cs.ucla.edu>

	maint: port to bleeding-edge Automake by assuming Gettext 0.18.2
	Reported by Stefano Lattarini in
	<http://lists.gnu.org/archive/html/bug-tar/2013-04/msg00009.html>.
	* configure.ac (AM_GNU_GETTEXT_VERSION): Increase from 0.16
	to 0.18.2.
	README-alpha says that we do not make any efforts to accommodate
	older versions of Gettext.

	tar: port to --without-xattrs --enable-gcc-warnings
	Reported by Pavel Raiskup in
	<http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00029.html>.
	* src/xattrs.c (xattrs__fd_set) [!HAVE_XATTRS]: Omit.

	doc: port to texinfo 5
	* doc/tar.texi (Reports, assumptions, Mixing):
	Put FIXMEs at line start.

2013-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>

	Continue extracting from a separate volume after skipping a
	partial member.
	Reported by Göran Udeborg on 2013-03-09.
	* src/extract.c (extract_skip): New function.
	(prepare_to_extract): Set extractor to extract_skip if starting
	at a partial member.

	Fix interaction of various --exclude-tag options with
	--listed-incremental.
	* src/incremen.c (procdir): Set directory->tagfile in
	the exclusion_tag_contents case.
	(makedumpdir): Mark all entries as ignored if directory->tagfile
	is set.
	Free new_dump before returning.
	(maketagdumpdir): New function.
	(scan_directory): If directory->children is set to
	NO_CHILDREN and directory->tagfile is set, create a
	dumpdir consisting of the tagfile only.
	* tests/exclude08.at: New testcase.
	* tests/exclude09.at: New testcase.
	* tests/exclude10.at: New testcase.
	* tests/exclude11.at: New testcase.
	* tests/exclude12.at: New testcase.
	* tests/exclude13.at: New testcase.
	* tests/exclude14.at: New testcase.
	* tests/exclude15.at: New testcase.
	* tests/exclude16.at: New testcase.
	* tests/Makefile.am: Add new tests.
	* tests/testsuite.at: Include new tests.
	* tests/atlocal.in (mkexcltest): New function.
	* tests/chtype.at: Update keywords.
	* tests/filerem01.at: Likewise.
	* tests/filerem02.at: Likewise.
	* tests/incremental.at: Likewise.
	* tests/multiv04.at: Likewise.

2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>

	tar: remove lint
	* lib/wordsplit.c (_wsplit_error): Mark with printf attribute.
	(expvar): "Use" defstr to pacify GCC.
	* src/system.c (xexec): Now _Noreturn, to pacify GCC.
	(run_decompress_program): Add cast to pacify GCC.
	(sys_exec_command, sys_exec_info_script,
	sys_exec_checkpoint_script):
	Remove unused variables.

2013-02-10  Sergey Poznyakoff  <gray@gnu.org.ua>

	Pass command line arguments to external commands.
	Any option taking a command name as its argument accepts
	additional arguments as well.
	* lib/wordsplit.c: New file.
	* lib/wordsplit.h: New file.
	* lib/Makefile.am: Add new files.
	* src/system.c (xexec): New function.
	(run_decompress_program): Use wordsplit.
	(sys_child_open_for_compress,sys_exec_command)
	(sys_exec_info_script)
	(sys_exec_checkpoint_script): Use xexec to invoke external
	command.
	* NEWS: Update.
	* doc/tar.texi: Update.

2013-01-29  Nathan Stratton Treadway  <nathanst@ontko.com>

	tar: improve compile-time diagnostics
	* src/misc.c (sysinttostr, strtosysint): Improve #error wording.

2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>

	tar: improve quality of diagnostics with incrementals
	Inspired by a prototype by Nathan Stratton Treadway in
	<http://lists.gnu.org/archive/html/bug-tar/2013-01/msg00000.html>.
	* src/incremen.c (read_num): Rewrite by merging read_negative_num
	and read_unsigned_num.	Use strtosysint rather than rolling this
	stuff ourselves.  Change return type to bool.  All uses changed.
	(read_negative_num, read_unsigned_num): Remove.
	(read_num, read_timespec, read_incr_db_2): Improve quality of
	diagnostics, e.g., by supplying byte offset of error.

2013-01-26  Paul Eggert  <eggert@cs.ucla.edu>

	tar: fix bug with sparse files with effective size of 8 GiB
	or more
	Reported by Pavel Raiskup in
	<http://lists.gnu.org/archive/html/bug-tar/2013-01/msg00001.html>.
	* NEWS: Document the fix.
	* src/sparse.c (pax_start_header): New function.
	(pax_dump_header_0, pax_dump_header_1): Use it.

2012-12-31  Paul Eggert  <eggert@cs.ucla.edu>

	maint: update copyrights for 2013 and as per current GNU standards

	maint: remove unnecessary file
	* src/configure.in: Remove.  This file has been obsolete for
	a while.

2012-12-24  Paul Eggert  <eggert@cs.ucla.edu>

	maint: don't enable warnings by default unless GCC 4.6 or later
	* configure.ac (gl_GCC_VERSION_IFELSE): New macro, from coreutils.
	(gl_gcc_warnings): By default, disable warnings for GCC versions
	before 4.6.  This works around a failure when building from git on
	Ubuntu 10, reported privately by Nathan Stratton Treadway.

2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>

	Handle incremental format 2 with negative numbers, too.
	* src/incremen.c (read_unsigned_num): Last arg is intmax_t *, not
	uintmax_t, for consistency with other readers.	All callers
	changed.
	Avoid signed integer overflow.
	(read_num):

	Fix some problems with negative and out-of-range integers.
	Original problem reported for HP-UX LVM v2.2 by Michael White in
	<http://lists.gnu.org/archive/html/bug-tar/2012-10/msg00000.html>.
	This patch fixes some other gotchas that I noticed.
	* gnulib.modules: Add extern-inline.
	* src/common.h: Use _GL_INLINE_HEADER_BEGIN,
	_GL_INLINE_HEADER_END.
	(COMMON_INLINE, max, min): New macros.
	(represent_uintmax, valid_timespec): New inline functions.
	(SYSINT_BUFSIZE): New constant.
	(sysinttostr, strtosysint, decode_timespec): New decls.
	* src/create.c (start_private_header): Silently bring the time_t
	value into range; it is now the caller's responsibility to deal
	with any overflow error.  Use uid 0 and gid 0 rather than the
	user's uid/gid, since the faked header isn't "owned" by the user
	and the uid/gid could in theory be out of range.  Leave major and
	minor zeroed.
	(FILL): Remove.
	(write_gnu_long_link): Let start_private_header zero things out.
	* src/create.c (write_gnu_long_link, write_extended):
	* src/xheader.c (xheader_write_global):
	Use start_time, not current time; no point hammering on the clock.
	* src/compare.c (diff_multivol): Check that offset, size are
	in range.
	* src/incremen.c (read_incr_db_01, write_directory_file_entry):
	Allow negative time_t, dev_t, and ino_t.
	* src/list.c (max): Remove (moved to common.h).
	(read_header): Check that size is in range.
	(from_header): Return intmax_t, not uintmax_t, to allow negative.
	All callers changed.  At compile time, check assumptions about
	intmax_t and uintmax_t.  Use bool for booleans.  Avoid overflow
	hassles on picky hosts.
	(mode_from_header): Last arg is now bool *, not unsigned *.
	All callers changed.
	(simple_print_header): Do not assume UID, GID fit in 'long'.
	* src/list.c (from_header):
	* src/xheader.c (out_of_range_header):
	Arg is now a plain minimum value, not minus minval converted to
	uintmax_t.  All callers changed.
	* src/misc.c (COMMON_INLINE): New macro.
	(sysinttostr, strtosysint, decode_timespec): New functions.
	* src/sparse.c (oldgnu_add_sparse, oldgnu_fixup_header)
	(star_fixup_header):
	Check for offset overflow.
	(decode_num): Clear errno before calling strtoumax.
	* src/tar.c (expand_pax_option): Don't discard nanoseconds.
	* src/xheader.c (assign_time_option): Allow negative time_t.
	(decode_record): Simplify, since out-of-range string is guaranteed
	to produce a value exceeding len_max.
	(xheader_read): Last arg is off_t, not size_t.
	Caller should diagnose negative arg, as needed.
	Check that it's in range.
	(enum decode_time_status): Remove.
	(_decode_time): Remove, folding into decode_time.
	(decode_time): Return bool, not enum decode_time_status.
	Rely on decode_timespec to do most of the work.
	(code_signed_num): New function.
	(code_num): Use it.
	(decode_signed_num): New function.
	(decode_num): Use it.
	(gid_coder, gid_decoder, uid_coder, uid_decoder,
	sparse_map_decoder)
	(sparse_map_decoder): Code and decode negative values.
	(sparse_map_decoder): Improve check for out-of-range values.
	* tests/time01.at: New file.
	* tests/Makefile.am (TESTSUITE_AT): Add it.
	* tests/testsuite.at: Include it.

2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>

	Port use of mkdirat etc. to Solaris 10.
	* gnulib.modules (fchmodat, fchownat, fstatat, mkdirat, unlinkat):
	Add.  These were split out in gnulib, so we now need to request
	them separately.  mkdirat, for example, is not in Solaris 10.

	Port ACL configuration to Solaris 10.
	* configure.ac (with_posix_acls): Fix misspellings.
	Stop checking at the first failure, to speed up 'configure'.

2012-12-19  Paul Eggert  <eggert@cs.ucla.edu>

	tar: remove unused externs, or make them static
	* src/buffer.c (record_buffer_aligned, flush_write_ptr,
	flush_read_ptr)
	(duration):
	* src/list.c (recent_global_header):
	* src/unlink.c (deferred_unlink_delay):
	* src/transform.c (transform_flags):
	* src/xattrs.c (acl_get_file_at, acl_set_file_at,
	file_has_acl_at):
	Now static.
	* src/common.h (rmt_command_option): Remove; unused.
	* src/tar.c (check_links_option, allocated_archive_names):
	Move decls here from common.h; these are now static.

	* .gitignore: Regenerate.

	build: new configure option --enable-gcc-warnings
	This has a similar meaning as in other GNU applications
	such as coreutils and Emacs.
	* NEWS: Document it.
	* .gitignore: Remove redundant build-aux.
	Remove gnu, since gnu/Makefile.am is now in git.
	Add gnu/.gitignore, gnu/charset.alias, gnu/*.h, gnu/*/ to cover
	autogenerated files.
	* bootstrap.conf (gnulib_mk): Remove.
	* configure.ac: Add support for --enable-gcc-warnings,
	taken from coreutils and simplified.
	* gnu/Makefile.am: New file.  Formerly this was autogenerated,
	but the autogenerated file has been renamed to gnulib.mk,
	its usual name when bootstrapping from gnulib.
	This way, AM_CFLAGS can incorporate warning options.
	* gnulib.modules: Add manywarnings.
	* lib/Makefile.am, src/Makefile.am (AM_CFLAGS): New macro,
	incorporating warning options.
	* lib/attr-xattr.in.h (ENOATTR): New macro, if not already
	defined.
	* src/buffer.c (magic): Don't rely on incomplete initializers.
	* src/common.h (report_difference): Add printf format attribute.
	* src/system.c (sys_exec_command, sys_exec_info_script)
	(sys_exec_checkpoint_script):
	* src/tar.c (update_argv):
	Add casts to char * to pacify GCC warnings about using string
	literals in a char * context.
	* src/xattrs.c, src/xattrs.h (xattrs_clear_setup):
	Declare parameters as (void), not ().
	* src/xheader.c (xheader_format_name): Initialize pptr to null,
	to pacify GCC.	Remove unnecessary test of nptr versus null.

	tar: don't truncate diagnostic
	* src/list.c (from_header): Fix buffer size calculation when
	generating a diagnostic.

2012-12-03  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfix.
	* tests/Makefile.am: Fix double AM_CPPFLAGS

2012-12-01  Sergey Poznyakoff  <gray@gnu.org.ua>

	Use AM_CPPFLAGS instead of INCLUDES.

2012-11-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	Housekeeping.
	* NEWS: Mention the support for POSIX ACLs, extended
	attributes and SELinux context.
	* THANKS: List James Antill and Pavel Raiskup.

	Fix indentation.

2012-11-19  Pavel Raiskup  <praiskup@redhat.com>

	Allow to store/extract '=' character in xattr keyword
	* src/xheader.c (xattr_decode_keyword)
	(xattr_encode_keyword): New functions.
	(xheader_print_n,xattr_decoder): Use them.
	* tests/xattr05.at: New test case.
	* tests/Makefile.am: Add new test case.
	* tests/testsuite.at: Likewise.

	Bugfixes.
	* configure.ac: Avoid linking against -lacl when
	--without-posix-acls is given.
	* tests/selacl01.at: Call restorecon
	* tests/selnx01.at: Likewise.
	* tests/testsuite.at (AT_SELINUX_UTILS_PREREQ): Likewise.
	(AT_SELINUX_PREREQ,AT_ACLS_PREREQ): Use the right _PREREQ macros.

	Fix bootstrapping.
	* bootstrap (gnulib_extra_files): Remove $build_aux/missing

2012-11-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	Various fixes.
	* src/xattrs.c: Don't mix variable declarations and statements.
	Use proper data types.	Remove improper use of const qualifiers.
	Use x2nrealloc to reallocate memory buffers.

2012-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor change.
	* src/xattrs.c: Fix indentation. Fix copyleft statement, promote
	to GPLv3+.
	* src/xattrs.h: Likewise

2012-11-18  Pavel Raiskup  <praiskup@redhat.com>

	Add SELinux context store/restore/list support.
	* gnulib.modules: Add selinux-at.
	* src/Makefile.am (tar_LDADD): Add LIB_SELINUX.
	* src/create.c (start_header, dump_file0): Handle selinux
	contexts.
	* src/extract.c (delayed_set_stat) <cntx_name>: New member.
	(delayed_link) <cntx_name>: New member.
	(set_stat, delay_set_stat)
	(apply_nonancestor_delayed_set_stat): Handle selinux contexts.
	* src/tar.c: New options: "--selinux", "--no-selinux".
	(tar_stat_destroy): Free cntx_name.
	* src/tar.h (tar_stat_info) <cntx_name>: New member.
	* src/xattrs.c (xattrs_selinux_get)
	(xattrs_selinux_set): New functions.
	(xattrs_print_char): Honor selinux_context_option.
	(xattrs_print): Print selinux context.
	* src/xheader.c: Handle new keyword "RHT.security.selinux".
	* tests/Makefile.am: Add new tests.
	* tests/testsuite.at: Likewise.
	* tests/selacl01.at: New test.
	* tests/selnx01.at: New test.

	Support for POSIX ACLs
	* configure.ac: Check whether ACLs are available on the
	host system.
	* gnulib.modules: Add acl
	* src/create.c (start_header): Store ACLs when creating
	a POSIX archive.
	(dump_file0): Handle ACLs.
	* src/extract.c (delayed_set_stat) <acls_a_ptr, acls_a_len>
	<acls_d_ptr, acls_d_len>: New members.
	(delayed_link): Likewise.
	(set_stat,delay_set_stat)
	(apply_nonancestor_delayed_set_stat): Set ACLs.
	* src/tar.c: New options: "--acls", "--no-acls"
	(tar_stat_destroy): Free acls_a_ptr and acls_d_ptr fields.
	* src/tar.h (tar_stat_info) <acls_a_ptr, acls_a_len>
	<acls_d_ptr, acls_d_len>: New members.
	* src/xattrs.c (xattrs_acls_get, xattrs_acls_set): New functions.
	* src/xheader.c: Support new keywors: "SCHILY.acl.access" and
	"SCHILY.acl.default".
	* tests/Makefile.am: Add new tests.
	* tests/testsuite.at: Likewise.
	* tests/acls01.at: New test.
	* tests/acls02.at: New test.

	Add basic support for extended attributes.
	* src/Makefile.am: Add xattrs.[ch]
	* src/xattrs.c: New file.
	* src/xattrs.h: New file.
	* src/common.h (READ_LIKE_SUBCOMMAND): New define.
	(selinux_context_option, acls_option, xattrs_option): New globals.
	(xheader_xattr_init, xheader_xattr_free)
	(xheader_xattr_copy, xheader_xattr_add): New protos.
	(WARN_XATTR_WRITE): New mask.
	* src/create.c (start_header): Handle xattrs pairs if in POSIX
	format.
	(dump_file0): Handle extended attributes.
	* src/extract.c (delayed_set_stat,delayed_link) <xattr_map_size>
	<xattr_map>: New members.
	(set_xattr): New static function.
	(open_output_file): Accept an additional argument indicating
	whether the file has already been created.
	(set_stat,delay_set_stat)
	(apply_nonancestor_delayed_set_stat)
	(extract_file): Handle extended attributes.
	* src/list.c (decode_header, simple_print_header): Display
	extended attributes.
	* src/tar.c: New options --xattrs, --no-xattrs, --xattrs-include,
	--xattrs-exclude
	(tar_stat_destroy): Free the xattr_map storage.
	* src/tar.h (xattr_array): New struct.
	(tar_stat_info) <xattr_map_size, xattr_map>: New members.
	* src/warning.c: New warning control keyword "xattr-write".
	* src/xheader.c (xheader_xattr_init)
	(xheader_xattr_free, xheader_xattr_add)
	(xheader_xattr_copy): New functions.
	(struct xhdr_tab) <prefix>: New member.
	(locate_handler): Permit selecting the keyword based on its
	prefix.
	(xheader_protected_pattern_p)
	(xheader_protected_keyword_p): Likewise.
	(xattr_coder, xattr_decoder): New functions.
	(xhdr_tab): Reflect the changes to struct xhdr_tab.
	New keyword "SCHILY.xattr".
	* tests/Makefile.am: Add new tests.
	* tests/testsuite.at: Likewise.
	(AT_CHECK_UTIL, AT_XATTRS_UTILS_PREREQ)
	(AT_CAPABILITIES_UTILS_PREREQ, AT_XATTRS_PREREQ): New defuns.
	* tests/xattr01.at: New test.
	* tests/xattr02.at: New test.
	* tests/xattr03.at: New test.
	* tests/xattr04.at: New test.
	* tests/capabs_raw01.at: New test.

2012-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	Prepare for implementing extended attribute support.
	This patch adds *xattr() stubs in case extended attribute
	support is
	not present and implements the *attrat() family of functions.
	Based
	on the patch by Pavel Raiskup <pavel@raiskup.cz> for gnulib.
	* acinclude.m4 (TAR_HEADERS_ATTR_XATTR_H): New defun.
	* configure.ac: Call TAR_HEADERS_ATTR_XATTR_H
	* lib/Makefile.am: Add xattr-at.[ch], distribute attr-xattr.in.h
	[!TAR_COND_XATTR_H]: Build attr/xattr.h
	* lib/attr-xattr.in.h: New file.
	* lib/xattr-at.c: New file.
	* lib/xattr-at.h: New file.

2012-11-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix creation of incremental archives when a subdirectory becomes
	a mountpoint.
	When used with --listed-incremental and --one-file-system, tar
	was unable to cope with directories that had once been part of the
	dumped system and became separate mount points afterward.  The bug
	has been reported and a fix proposed by Nathan Stratton Treadway.
	* src/incremen.c (procdir): If one_file_system_option is in
	effect,
	clear out dumpdir info from the directory.
	* tests/Makefile.am: Add new testcase.
	* tests/listed05.at: New testcase.
	* tests/testsuite.at (AT_PRIVILEGED_PREREQ): New macro.
	include listed05.at.
	* THANKS: Update.

2012-07-27  Jim Meyering  <jim@meyering.net>

	maint: try to avoid unwanted chatter in ChangeLog
	* bootstrap.conf: Do not alter ChangeLog if it already exists.

2012-07-26  Paul Eggert  <eggert@cs.ucla.edu>

	doc: improve discussion of compressed archives
	* doc/tar.texi (gzip): Don't claim that -I 'gzip --best' works.
	Problem reported by Davide Brini in
	<http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00025.html>.
	Also, improve some of the surrounding text.
	This file is a placeholder. It will be replaced with the actual
	ChangeLog
	by make dist.  Run make ChangeLog if you wish to create it
	earlier.

2012-06-27  Paul Eggert  <eggert@cs.ucla.edu>

	tests: fix permissions-assumption bug in test
	* tests/owner.at: Don't assume umask is 022.
	Reported by Pavel Raiskup in
	<http://lists.gnu.org/archive/html/bug-tar/2012-06/msg00015.html>.

	tar: don't assume root is uid 0
	This is not true for Tandem NonStop Kernel.  See Joachim Schmitz's
	comment in <http://bugs.gnu.org/10305#111>.
	* gnulib.modules: Add root-uid.
	* src/extract.c: Include <root-uid.h>.
	(extr_init): Don't assume root is uid 0.

2012-04-25  Paul Eggert  <eggert@cs.ucla.edu>

	* src/compare.c (diff_dumpdir): Omit useless 'stat'.

	* doc/tar.texi (Option Summary): Fix xref typo.
	Reported by Nathan Stratton Treadway in
	<http://lists.gnu.org/archive/html/bug-tar/2012-04/msg00035.html>.
	This file is a placeholder. It will be replaced with the actual
	ChangeLog
	by make dist.  Run make ChangeLog if you wish to create it
	earlier.

2012-03-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix unrecognized option.
	* src/tar.c (parse_opt): Handle OLD_ARCHIVE_OPTION.

2012-03-11  Paul Eggert  <eggert@cs.ucla.edu>

	tar: remove lint
	This lint was found by GCC 4.6.2 on Fedora 15 x86-64.
	* src/buffer.c (buffer_write_global_xheader, mv_end,
	set_start_time)
	(compute_duration, print_total_stats, flush_read, flush_write):
	* src/checkpoint.c (checkpoint_finish_compile):
	* src/list.c (test_archive_label):
	* src/misc.c (chdir_count):
	* src/names.c (const):
	* src/unlink.c (finish_deferred_unlinks):
	Define with (void) instead of with (), for slightly-better C type
	checking and to avoid a GCC warning.
	* src/compare.c (diff_dumpdir):
	* src/tar.c (parse_owner_group): Remove unused local.
	* src/misc.c (chdir_do):
	* src/tar.c (add_exclude_array): Rename local to avoid shadowing.
	(LOW_DENSITY_NUM, MID_DENSITY_NUM, HIGH_DENSITY_NUM):
	Define only if needed.
	* src/update.c (update_archive): Initialize a local; this fixes
	what appears to be a real bug.

2012-02-14  Paul Eggert  <eggert@cs.ucla.edu>

	doc: suggest Bash for large-fd script
	* doc/tar.texi (Multi-Volume Archives): Suggest Bash for shell
	script that might use >&10.  Problem reported by Edward F
	Eaglehouse in
	<http://lists.gnu.org/archive/html/bug-tar/2012-02/msg00002.html>.

2012-01-18  Paul Eggert  <eggert@cs.ucla.edu>

	tar: quote 'like this', not `like this'
	This fixes some test failures recently introduced by gnulib
	updates
	prompted by recent changes to the GNU coding standards,
	which now advise to use quotes 'like this' or "like this"
	rather than `like this'.
	* NEWS: Document this.
	* README, README-hacking, doc/Makefile.am, scripts/backup.in:
	* scripts/backup.sh.in, scripts/dump-remind.in:
	* src/buffer.c, src/checkpoint.c, src/create.c, src/incremen.c:
	* src/misc.c, src/names.c, src/sparse.c, src/transform.c:
	* tests/incr02.at, tests/incremental.at, tests/multiv08.at:
	* tests/sparse04.at, tests/star/README, tests/update01.at:
	Quote 'like this' in comments.
	* src/tar.h:
	Quote "like this" in comments, when quoting English phrases rather
	than code.
	* configure.ac:
	* scripts/xsparse.c (get_var, read_xheader, main):
	* src/compare.c (diff_archive):
	* src/extract.c (prepare_to_extract):
	* src/tar.c (request_stdin, tar_set_quoting_style, doc, options)
	(set_subcommand_option, report_textual_dates, parse_opt)
	(decode_options, main):
	* src/xheader.c (decx):
	Quote 'like this' in diagnostics.
	* doc/tar.texi (list, warnings, override)
	(Selecting Archive Members, quoting styles, after, hard links)
	(Sparse Recovery, Multi-Volume Archives, label):
	Adjust documentation to match new output.
	* tests/backup01.at, tests/incr01.at, tests/incr04.at:
	* tests/label04.at, tests/label05.at, tests/link03.at:
	* tests/listed02.at, tests/multiv03.at, tests/multiv05.at:
	* tests/rename01.at, tests/rename02.at, tests/rename03.at:
	* tests/volume.at:
	Adjust tests to match new quoting behavior.

	tar: port --overwrite symlink test to GNU/Hurd
	Problem reported by Pino Toscano in
	<http://lists.gnu.org/archive/html/bug-tar/2012-01/msg00040.html>.
	* gnulib.modules: Add fcntl-h, which defines
	HAVE_WORKING_O_NOFOLLOW.
	* src/extract.c (open_output_file): Use HAVE_WORKING_O_NOFOLLOW,
	not O_NOFOLLOW, when testing whther O_NOFOLLOW works.
	This file is a placeholder. It will be replaced with the actual
	ChangeLog
	by make dist.  Run make ChangeLog if you wish to create it
	earlier.

2012-01-11  Paul Eggert  <eggert@cs.ucla.edu>

	tar: fix core dump with --index-file=bad_path
	* src/tar.c (decode_options): Exit cleanly if index file won't
	open.
	Problem reported by Khanh-Dang Nguyen Thu Lam in
	<http://lists.gnu.org/archive/html/bug-tar/2012-01/msg00018.html>.

2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>

	tar: don't assume O_NONBLOCK is benign on regular files
	On Data Migration Facility (DMF), High Performance Storage System
	(HPSS),
	and presumably other file systems based on hierarchical storage,
	opening
	a regular file with O_NONBLOCK can cause later reads to fail with
	errno == EAGAIN.  We need the O_NONBLOCK to avoid some security
	races.
	Work around the problem by using fcntl to clear the O_NONBLOCK
	flag if I/O fails with that errno value.
	Problem reported by Vitezslav Cizek in
	<http://lists.gnu.org/archive/html/bug-tar/2012-01/msg00000.html>.
	* src/common.h (blocking_read, blocking_write): New decls.
	* src/misc.c (blocking_read, blocking_write): New functions.
	* src/compare.c (process_rawdata):
	* src/create.c (dump_regular_file):
	* src/extract.c (extract_file):
	* src/sparse.c (sparse_scan_file, sparse_extract_region):

2011-11-26  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix --keep-old-files option.
	The regression was introduced by 8f390db9.  This patch implements
	additional
	option --skip-old-files, which silently skips members which
	would cause
	writing over existing files, and restores --keep-old-files to
	its traditional
	behavior.
	* NEWS: Update.
	* configure.ac: Update.
	* doc/tar.texi: Document the changes.
	* src/common.h (SKIP_OLD_FILES): New old_files mode.
	* src/extract.c (maybe_recoverable): Restore KEEP_OLD_FILES
	behavior.
	Handle SKIP_OLD_FILES.
	* src/tar.c: New option --skip-old-files.
	* tests/extrac18.at: New file.
	* tests/extrac19.at: New file.
	* tests/Makefile.am: Add new test cases.
	* tests/testsuite.at: Likewise.

2011-11-17  Sergey Poznyakoff  <gray@gnu.org.ua>

	Warn about existing files in keep-old-files mode (complements
	8f390db9).
	This is controlled by "existing-file" warning code, which is off
	by default.
	* src/common.h (WARN_EXISTING_FILE): New warning code.
	(WARN_VERBOSE_WARNINGS): Add WARN_EXISTING_FILE.
	* src/extract.c (maybe_recoverable): warn about existing file
	if WARN_EXISTING_FILE is set.
	* src/warning.c: New warning type: "existing-file"

	Fix the "Creating directory:" output
	* src/list.c (print_for_mkdir): don't use unquoted name length for
	computing its output width.

2011-11-15  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix operation of --verify in conjunction with --listed-incremental
	* src/common.h (clear_directory_table): New proto.
	* src/incremen.c (clear_directory_table): New function.
	* src/compare.c (diff_dumpdir): Take a pointer to struct
	tar_stat_info as argument.
	Initialize its fd.
	(diff_archive): Update call to diff_dumpdir.
	(verify_volume): Call clear_directory_table.

2011-10-18  Paul Eggert  <eggert@cs.ucla.edu>

	* doc/tar.texi (Option Summary, absolute): Document -P better,
	by describing how it deals with symbolic links on extraction.

2011-09-28  Paul Eggert  <eggert@cs.ucla.edu>

	2011-09-27 Paul Eggert <eggert@cs.ucla.edu>
	* src/tar.c (stat_on_signal): Use SA_RESTART if available.

2011-09-20  Paul Eggert  <eggert@cs.ucla.edu>

	* doc/tar.texi: Remove front- and back-cover texts.
	These are no longer needed for this manual, according to the
	GNU maintainers guide.	Update copyright date to 2011.

2011-09-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor changes.
	* scripts/tar-snapshot-edit: License under GPLv3+.
	Remove trailing whitespace.

2011-09-19  Nathan Stratton Treadway  <nathanst+bugtar@ontko.com>

	Minor changes.
	* doc/snapshot.texi: Clarify the use of nfs field in 0 and
	1 formats.
	Give more precise information about which versions of tar
	used each
	format.

	Upgrade tar-snapshot-edit script.
	* scripts/tar-snapshot-edit: Update Perl syntax to work
	correctly with more recent versions of Perl.  (The original
	code worked with in the v5.8 timeframe but not with
	Perl v5.10.1 and later.)
	Add a "-c" option to check the snapshot file for invalid
	field values.
	Handle NFS indicator character ("+") in version 0 and 1 files.
	Preserve the original header/version line when editing version 1
	or 2 files.
	Tweak output formatting.
	* doc/tar-snapshot-edit.texi: Update documentation.

2011-08-13  Paul Eggert  <eggert@cs.ucla.edu>

	tar: --owner and --group names and numbers
	The --owner and --group options now accept operands of the form
	NAME:NUM, so that you can specify both symbolic name and numeric
	ID for owner and group.  Also, in these options, NAME no longer
	needs to be present in the current host's user and group
	databases; this implements Debian enhancement request 136231
	<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=136231> reported
	by Mark W. Eichin, communicated by Thayne Harbaugh to bug-tar in
	<http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00001.html>.
	* NEWS, doc/tar.texi (Option Summary, override): Document
	enhancement.
	* src/common.h (group_name_option, owner_name_option): New decls.
	* src/create.c (start_header): Don't assume owner and group names
	are in current host database.
	* src/tar.c (parse_owner_group): New function, for parsing
	NAME:NUM.
	(parse_opt): Use it.
	(decode_options): Initialize owner_name_option, group_name_option.
	* tests/owner.at: New file, to test this enhancement.
	* tests/Makefile.am (TESTSUITE_AT): Add it.
	* tests/testsuite.at: Include it.

	.gitignore: update
	* .gitignore: Add rmt.
	* lib/.gitignore: New file.

2011-07-30  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix the --exclude-backups option.
	* src/tar.c (add_exclude_array): Take exclude option flags in its
	second argument.
	(parse_opt): Register backup_file_table with the EXCLUDE_WILDCARDS
	flag.
	* tests/exclude07.at: New testcase.
	* tests/Makefile.am (TESTSUITE_AT): Add testsuite.at.
	* tests/testsuite.at: Include exclude07.at.

2011-06-08  Paul Eggert  <eggert@cs.ucla.edu>

	tar: simplify birthtime calculations
	* src/extract.c (same_birthtime): Remove.
	(extract_link, apply_delayed_links): Go back to using
	timestamp_cmp
	instead of same_birthtime, as this is a bit simpler.  This fix
	relies
	on an up-to-date gnulib.

	tar: use birthtime rather than ctime when checking identity
	Without this fix, tar would sometimes mishandle the extraction of
	hard links to symbolic links.  Problem reported in
	<http://lists.gnu.org/archive/html/bug-tar/2011-06/msg00000.html>
	by Andreas Stolcke.
	* src/extract.c (struct delayed_link): Change ctime member
	to birthtime.
	(same_birthtime): New function.
	(create_placeholder_file, extract_link, apply_delayed_links):
	Use it to compare birthtimes (when available) instead of ctime.

2011-05-26  Paul Eggert  <eggert@cs.ucla.edu>

	* doc/tar.texi (Old Options): Clarify distinction from short
	options.
	Adjust other parts of the manual to use examples that parse the
	same regardless of whether "-" is in front of the option clump.
	See
	<http://lists.gnu.org/archive/html/bug-tar/2011-05/msg00022.html>.

2011-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>

	Testsuite fix.
	* tests/sparse04.at: Use the -f option.

	Version 1.26
	* NEWS, configure.ac: Update.
	* po/POTFILES.in: Remove paxexit.c (see bb971a1e).

2011-03-08  Paul Eggert  <eggert@cs.ucla.edu>

	--atime-preserve=replace: fix correctness and performance bugs
	reported by Eric Blake in
	<http://lists.gnu.org/archive/html/bug-tar/2011-03/msg00000.html>.
	* src/compare.c (diff_file): Do not restore atime of size-zero
	files.
	* src/create.c (dump_file0): Likewise.	Also, do not restore atime
	when fd is zero, because that indicates a file we haven't opened.

2011-02-23  Paul Eggert  <eggert@cs.ucla.edu>

	* doc/tar.texi: Adjust example commands and output for accuracy.
	The original problem was reported by Michael Witten in
	<http://lists.gnu.org/archive/html/bug-tar/2011-02/msg00033.html>.

2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>

	tar: if (p) free (p); -> free (p);
	There is no longer (since SunOS 4) any need to guard against
	free (NULL), so replace each "if (p) free (p);" with "free (p);".
	From Jim Meyering in
	<http://lists.gnu.org/archive/html/bug-tar/2011-01/msg00026.html>.
	* src/incremen.c (scan_directory, read_directory_file): As above.
	(try_purge_directory): Likewise.
	* src/list.c (read_header): Likewise.
	* src/misc.c (assign_string): Likewise.

2010-12-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	Correctly store long sparse file names in PAX archives.
	* src/sparse.c (pax_dump_header_1): Make sure the created header
	name is
	shorter than NAME_FIELD_SIZE bytes.
	* tests/sparse04.at: New testcase.
	* tests/Makefile.am (TESTSUITE_AT): Add sparse04.at.
	* tests/testsuite.at: Include sparse04.at.
	* NEWS: Update.

2010-12-07  Paul Eggert  <eggert@cs.ucla.edu>

	tests: make the truncate test smaller and less buggy (tiny change)
	Reported by Solar Designer in
	<http://lists.gnu.org/archive/html/bug-tar/2010-12/msg00003.html>.
	* tests/truncate.at: Use a smaller test case, and make its
	race condition less likely.

2010-11-27  Paul Eggert  <eggert@cs.ucla.edu>

	tests: skip SIGPIPE-dependent tests in environments ignoring
	SIGPIPE
	Problem reported by Sven Joachim in
	<http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00043.html>.
	* tests/remfiles01.at: Use AT_SIGPIPE_PREREQ.
	* tests/sigpipe.at: Likewise.
	* tests/testsuite.at (AT_SIGPIPE_PREREQ): New macro.

2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>

	tar: work around NetBSD and Tru64 symlink incompatibility
	with POSIX
	Problem reported by Bruno Haible in
	<http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00306.html>.
	* src/extract.c (maybe_recoverable):  Also treat EFTYPE (if
	defined)
	and ENOTSUP like ELOOP.

2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>

	tar: adjust to paxutils change: paxexit.c -> paxexit-status.c
	* lib/Makefile.am (libtar_a_SOURCES): paxexit.c renamed to
	paxexit-status.c.

	tar: remove unused function dir_removed_diag
	* src/common.h (dir_removed_diag): Remove unused decl.
	* src/misc.c (dir_removed_diag): Remove unused function.

2010-11-23  Paul Eggert  <eggert@cs.ucla.edu>

	tar: work around FreeBSD symlink incompatibility with POSIX
	* src/extract.c (maybe_recoverable): Treat EMLINK like ELOOP, for
	FreeBSD.  Problem reported by Christian Weisgerber in
	<http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00080.html>.

	* src/names.c: tar: fix bug with --one-file-system
	--listed-incremental
	Problem (and idea for fix) reported by Martin Weigel
	<http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00071.html>.
	* src/common.h (is_individual_file): Remove decl.
	* src/create.c (dump_file0): Replace "is_individual_file (p)"
	with "top_level".
	* src/incremen.c (procdir): Replace "!is_individual_file
	(name_buffer)" with "st->parent".  Fix bug with --one-file-system
	and --listed-incremental.
	* src/names.c (individual_file_table, register_individual_file):
	(is_individual_file): Remove.  All uses removed.

	tests: new test listed04 for --one-file-system
	--listed-incremental
	* tests/Makefile.am (TESTSUITE_AT): Add listed04.at.
	* tests/listed04.at: New file.
	* tests/testsuite.at: Include it.

	scripts: fix option parsing
	Problem reported by Dennis Wydra in
	<http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00082.html>.
	* scripts/backup.in: Accept "-l LEVEL".  Be more systematic about
	backslashes inside ``; it shouldn't matter for modern shells but
	it might matter for older ones.
	* scripts/restore.in: Likewise.
	* scripts/backup.in: Adjust implementation of -t/--time to match
	the new implementation of -l/--level.

2010-11-15  Sergey Poznyakoff  <gray@gnu.org.ua>

	Issue a warning if the archive being compared contains transformed
	file names.
	* src/common.h (transform_program_p): New proto.
	* src/transform.c (transform_program_p): New function.
	* src/compare.c (verify_volume): Warn if the archive contains
	transformed file names.

	Minor change.
	* doc/tar.texi: Reword the description of decompress-program.

2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>

	tar: fix --verify option, which broke in 1.24
	* NEWS: Document this.
	* src/compare.c (verify_volume): Decode the header before invoking
	diff_archive, as diff_archive no longer does this as of the
	2010-06-28 commit.  Also, don't try to invoke diff_archive on a
	zero block.
	* tests/Makefile.am (TESTSUITE_AT): Add verify.at.
	* tests/testsuite.at: Include verify.at.
	* tests/verify.at: New file.

2010-11-08  Paul Eggert  <eggert@cs.ucla.edu>

	Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/tar

2010-11-08  Jim Meyering  <meyering@redhat.com>

	tests: avoid spurious failure when VERSION_CONTROL envvar is set
	* tests/backup01.at: Unset VERSION_CONTROL.  Otherwise,
	when set to e.g., 'always', it would cause this test to fail.

2010-11-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	Version 1.25
	* configure.ac: Version 1.25
	* NEWS: Describe the changes.

2010-11-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	Run alternative decompression programs if the principal one is
	not available.
	Some compression programs are able to handle various compression
	formats
	(e.g. `gzip' can decompress files created by `compress', `xz'
	is able
	to handle lzma, etc.)  Tar tries to use such programs for
	decompression
	if the principal decompressor cannot be started.
	* src/buffer.c (compress_type): Swap ct_none and ct_tar.
	(archive_compression_type): New static variable.
	(zip_magic): Remove program and option fields.
	(zip_program): New structure and static.
	(compress_program): Remove macro.
	(find_zip_program): New static function.
	(first_decompress_program,next_decompress_program): New functions.
	(open_compressed_archive): Set archive_compression_type instead of
	use_compress_program_option.
	* src/common.h (first_decompress_program)
	(next_decompress_program): New functions.
	(WARN_DECOMPRESS_PROGRAM): New flag.
	(WARN_VERBOSE_WARNINGS): Include WARN_DECOMPRESS_PROGRAM.
	* src/warning.c (warning_args): Add "decompress-program".
	(warning_types): Add WARN_DECOMPRESS_PROGRAM.
	* src/system.c (run_decompress_program): New function.
	(sys_child_open_for_uncompress): Use run_decompress_program
	instead of calling execlp directly.

2010-11-02  Paul Eggert  <eggert@cs.ucla.edu>

	tests: fix some issues with signals, timestamps, "test" typo
	* tests/extrac17.at: Add --warning=no-timestamp, to avoid
	bogus warning due to NFS clock skew.
	* tests/remfiles01.at: Discard diagnostics that some shells
	generate about broken pipes.
	* tests/sigpipe.at: Likewise.
	* tests/remfiles01.at: Fix typo: "test $EC" was written where
	"test $EC -ne 0" was intended.

2010-11-01  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix extraction of device nodes.
	* src/extract.c (extract_node): Do not mask out node type.
	The bug was introduced in commit ea964cce.

2010-10-28  Paul Eggert  <eggert@cs.ucla.edu>

	tar: don't cross struct member boundaries with OLDGNU_MAGIC
	* src/create.c (write_gnu_long_link, start_header): Access
	header->buffer + offsetof (struct posix_header, magic), instead of
	header->header.magic, when reading or writing the OLDGNU_MAGIC
	pattern.  The code violates the C standard without this change,
	and GCC warns about this if fortify checking is enabled.  It's not
	a bug on traditional (i.e., non-debugging) platforms, but it does
	violate the C standard so it should be fixed.  Problem originally
	reported by John Emil Karlson in
	<http://lists.gnu.org/archive/html/bug-tar/2010-04/msg00023.html>.
	* src/list.c (decode_header): Likewise.

	tests: port to sh variants that squirrel away file descriptors
	OpenBSD /bin/sh, and some other sh variants, squirrel away file
	descriptors before closing them.  For example, for "cat 3<&-" they
	first dup file descriptor 3 to a fd that is 10 or greater, then
	close 3 (because if "cat" had been a builtin command like ":" then
	they would have wanted to avoid the fork and restore the fd after
	":" finished); and they treat ordinary (forking) commands the same
	as builtin commands.  This approach fails after "ulimit -n 10".
	Work around this deficiency by closing the file descriptors before
	invoking ulimit.  Problem reported by Christian Weisgerber in
	<http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00041.html>;
	solution suggested by Jilles Tjoelker in
	<http://article.gmane.org/gmane.comp.shells.dash/415>.
	* tests/extrac11.at (scarce file descriptors): Close file
	descriptors before invoking ulimit -n.

2010-10-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	Transform file names when updating and appending to archives.
	This complements 28e91b48.
	* src/common.h (transform_stat_info): New prototype.
	* src/list.c (transform_stat_info): Remove static qualifier.
	* src/update.c (update_archive): Call transform_stat_info.
	* tests/Makefile.am (TESTSUITE_AT): Add append03.at
	* tests/testsuite.at: Include append03.at

2010-10-27  Paul Eggert  <eggert@cs.ucla.edu>

	tests: port to Solaris diff
	* tests/extrac13.at: Don't assume that "diff -c" outputs nothing
	when there are no differences.	This is not true on Solaris,
	where it outputs "No differences encountered".

	tar: fix -x --overwrite bug (no --dereference, ! O_NOFOLLOW)
	This bug was discovered on Solaris 8.  On older hosts lacking
	O_NOFOLLOW, tar -x --overwrite (without --dereference) follows
	symbolic links, causing the "extract over symlinks" test to fail.
	* src/extract.c (open_output_file): If O_NOFOLLOW is needed but
	does not work, check for a symlink separately.

	tar: don't use "((" in shell scripts
	* tests/extrac11.at: Replace "((" with "( (" in shell scripts, as
	"((" is not portable to the Korn shell, and POSIX 1003.1-2008 says
	that "((" is not portable.

2010-10-26  Sergey Poznyakoff  <gray@gnu.org.ua>

	Make sure name matching occurs before name transformation.
	The commit 9c194c99 altered that order.
	* src/list.c (transform_stat_info): New function.  Split off from
	decode_header.
	(read_and): Call transform_stat_info right before do_something,
	and after deciding if we should proceed with this member name,
	so that name matching occurs before name transformation.
	* tests/extrac17.at: New file.
	* tests/Makefile.am (TESTSUITE_AT): Add extrac17.at
	* tests/testsuite.at: Include extrac17.at.

2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>

	tar: don't assume stdin is open when testing fd limits
	* tests/extrac11.at: Redirect stdin from /dev/null, in case
	the parent 'make' is running with stdin closed.

2010-10-26  Sergey Poznyakoff  <gray@gnu.org.ua>

	Further fixes in bootstrap.
	* bootstrap: Restore the default for gnulib_path
	(symlink_to_dir): Re-apply 67cad07.

2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>

	tar: fix bug with -C and extracting directories
	Problem reported by Denis Excoffier in
	<http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00034.html>.
	* src/extract.c (extract_dir): Use mkdirat, not mkdir.
	* tests/extrac16.at: New file, to test for this bug.
	* tests/Makefile.am (TESTSUITE_AT): Add it.
	* tests/testsuite.at: Include it.
	This file is a placeholder. It will be replaced with the actual
	ChangeLog
	by make dist.  Run make ChangeLog if you wish to create it
	earlier.

2010-10-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	Version 1.24
	* configure.ac, NEWS: Version 1.24
	* bootstrap: Restore tar-specific code lost during last
	sync from gnulib (241b72ffad).
	* src/misc.c (chdir_do): Remove unused automatic variable.

2010-10-16  Paul Eggert  <eggert@cs.ucla.edu>

	tar: use more-accurate diagnostic when intermediate mkdir fails
	Without this change, if tar tried to extract a file A/B/C, noticed
	that A/B didn't exist, attempted to mkdir A/B, and the mkdir
	failed, it did not diagnose the mkdir failure, but simply reported
	the failure to open A/B/C.  This sometimes led to confusion
	because it wasn't clear what tar was trying to do, in particular
	that tar tried to mkdir A/B.  With this patch, tar issues two
	diagnostics in this case: one for A/B and the other for A/B/C.
	Problem reported by Hauke Laging in
	<http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00020.html>.
	* gnulib.modules: Remove faccessat.
	* src/extract.c (make_directories): New arg INTERDIR_MADE.
	Diagnose mkdir failure.  Return 0 on success, nonzero on failure,
	as opposed to nonzero iff some directory was created.  All callers
	changed.  Simplify the code when mkdir fails, by checking whether
	the desired file exists unless errno==EEXIST: this is more robust.
	* tests/extrac15.at: New test, to check this.
	* tests/Makefile.am (TESTSUITE_AT): Add it.
	* tests/testsuite.at: Include it.

	tests: port to NFS file servers with clock skew
	Several of the tests assumed that a newly created file cannot
	have a time stamp dated in the future.	This assumption is not
	true when files are served by a remote host whose clock is
	slightly in advance of ours.  Fix the problems that I observed
	when running "make check" a couple of times on such a server.
	* tests/backup01.at: Use --warning=no-timestamp to suppress
	clock-skew warnings.
	* tests/chtype.at, tests/comprec.at, tests/exclude06.at:
	* tests/extrac01.at, tests/extrac03.at, tests/extrac05.at:
	* tests/extrac06.at, tests/extrac08.at, tests/extrac13.at:
	* tests/extrac14.at, tests/incr01.at, tests/incr03.at,
	tests/link01.at:
	* tests/multiv01.at, tests/multiv02.at, tests/multiv03.at:
	* tests/pipe.at, tests/rename02.at, tests/rename03.at:
	* tests/rename05.at, tests/same-order01.at, tests/same-order02.at:
	* tests/sparse01.at:
	Likewise.

2010-10-12  Paul Eggert  <eggert@cs.ucla.edu>

	gnulib: sync from latest gnulib, notably bootstrap and
	parse-datetime
	* bootstrap: Sync from gnulib.
	* doc/.gitignore: Rename getdate.texi to parse-datetime.texi.
	* doc/Makefile.am (tar_TEXINFOS): Likewise.
	* doc/tar.texi (Top): Adjust to renaming of getdate to
	parse-datetime.
	* gnulib.modules: Likewise.  Also, remove ftruncate (now
	obsolete).
	And add inttostr (we missed this dependency).
	* src/tar.c: Include parse-datetime.h, not getdate.h.  All calls
	to get_date replaced with parse_datetime.

2010-09-24  Paul Eggert  <eggert@cs.ucla.edu>

	tar: -x -C symlink fix
	* src/misc.c (chdir_do): Don't use O_NOFOLLOW when opening the
	argument to -C.  This is for consistency with "tar -c -C FOO", and
	matches the new documentation.
	* tests/extrac14.at: New file.
	* tests/Makefile.am (TESTSUITE_AT): Add it.
	* tests/testsuite.at: Include it.

	tar: --dereference consistency
	This closes another race condition, that occurs when overwriting a
	symlink with a regular file.
	* NEWS (--dereference consistency): New section.
	* doc/tar.texi (Option Summary): Describe new --deference
	behavior.
	(dereference): Likewise.  Remove discussion that I didn't follow,
	even before --dereference was changed.
	* src/common.h (deref_stat, set_file_atime): Adjust signatures.
	* src/compare.c (diff_file, diff_multivol): Respect
	open_read_flags
	instead of rolling our own flags.  This implements the new
	behavior
	for --dereference.
	(diff_file, diff_dumpdir): Likewise, for fstatat_flags.
	* src/create.c: Adjust to set_file_atime signature change.
	* src/extract.c (mark_after_links, file_newer_p, extract_dir):
	Likewise.
	* src/incremen.c (try_purge_directory): Likewise.
	* src/misc.c (maybe_backup_file): Likewise.
	* src/extract.c (file_newer_p): New arg STP.  All callers changed.
	(maybe_recoverable): New arg REGULAR.  All callers changed.
	Handle the case of overwriting a symlink with a regular file,
	when --overwrite is specified but --dereference is not.
	(open_output_file): Add O_CLOEXEC, O_NOCTTY, O_NONBLOCK for
	consistency with file creation.  Add O_NOFOLLOW if
	overwriting_old_files && ! dereference_option.
	* src/incremen.c (update_parent_directory): Use fstat, not
	fstatat;
	there's less to go wrong.
	* src/misc.c (deref_stat): Remove DEREF arg.  All callers changed.
	Instead, use fstatat_flags.
	(set_file_atime): Remove ATFLAG arg.  All callers changed.
	Instead, use fstatat_flags.
	* src/names.c, src/update.c: Adjust to deref_stat signature
	change.
	* src/tar.c (get_date_or_file): Use stat, not deref_stat, as this
	is not a file to be archived.
	* tests/Makefile.am (TESTSUITE_AT): Add extrac13.at.
	* tests/extrac13.at: New file.
	* tests/testsuite.at: Include it.

2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>

	tar: do not crash with --listed-incremental
	Problem reported by Frantisek Hanzlik in
	<https://bugzilla.redhat.com/635318> via Kamil Dudka in
	<http://lists.gnu.org/archive/html/bug-tar/2010-09/msg00066.html>.
	I don't understand this code either, but Sergey can take a look at
	this patch, and perhaps install a better one, when he has
	the time.
	* src/incremen.c (append_incremental_renames): Don't actually
	append
	anything to DIR if DIR is null.

2010-09-19  Paul Eggert  <eggert@cs.ucla.edu>

	tar: prefer openat-style functions
	This change replaces traditional functions like 'open' with the
	POSIX.1-2008 functions like 'openat'.  Mostly this is an internal
	refactoring change, in preparation for further changes to close
	some races.
	* gnulib.modules: Add faccessat, linkat, mkfifoat, renameat,
	symlinkat.
	Remove save-cwd.
	* src/Makefile.am (tar_LDADD): Add $(LIB_EACCESS).
	* tests/Makefile.am (LDADD): Likewise.
	* src/common.h (chdir_fd): New extern var.
	* src/compare.c (diff_file, diff_multivol): Use openat instead
	of open.
	* src/create.c (create_archive, restore_parent_fd): Likewise.
	* src/extract.c (create_placeholder_file): Likewise.
	* src/names.c (collect_and_sort_names): Likewise.
	* src/update.c (append_file): Likewise.
	* src/compare.c (diff_symlink): Use readlinkat instead of
	readlink.
	* src/compare.c (diff_file): Use chdir_fd instead of AT_FDCWD.
	* src/create.c (subfile_open, dump_file0): Likewise.
	* src/extract.c (fd_chmod, fd_chown, fd_stat, set_stat):
	(repair_delayed_set_stat, apply_nonancestor_delayed_set_stat):
	Likewise.
	* src/extract.c (mark_after_links, file_newer_p, extract_dir):
	(extract_link, apply_delayed_links):
	Use fstatat rather than stat or lstat.
	* src/misc.c (maybe_backup_file, deref_stat): Likewise.
	* src/extract.c (make_directories): Use mkdirat rather than mkdir.
	Use faccessat rather than access.  This fixes a minor permissions
	bug when tar is running setuid (who would want to do that?!).
	(open_output_file): Use openat rather than open.
	In the process, this removes support for Masscomp's O_CTG files,
	which aren't compatible with openat's signature.  Masscomp!  Wow!
	That's a blast from the past.  As far as I know, that operating
	system hasn't been supported for more than 20 years.
	(extract_link, apply_delayed_links):
	Use linkat rather than link.
	(extract_symlink, apply_delayed_links):
	Use symlinkat rather than symlink.
	(extract_node): Use mknodat rather than mknod.
	(extract_fifo): Use mkfifoat rather than mkfifo.
	(apply_delayed_links): Use unlinkat rather than unlink or rmdir.
	* src/misc.c (safer_rmdir, remove_any_file): Likewise.
	* src/unlink.c (flush_deferred_unlinks): Likewise.
	* src/extract.c (rename_directory): Use renameat rather than
	rename.
	* src/misc.c (maybe_backup_file, undo_last_backup): Likewise.
	* src/misc.c: Don't include <save-cwd.h>; no longer needed now
	that we're using openat etc.
	(struct wd): Add member fd.  Remove members err and fd.  All uses
	changed.
	(CHDIR_CACHE_SIZE): New constant.
	(wdcache, wdcache_count, chdir_fd): New vars.
	(chdir_do): Use openat rather than save_cwd.  Keep the cache up
	to date.  This code won't scale well, but is good enough for now.
	* src/update.c (update_archive): Use openat + fdopendir +
	streamsavedir rather than savedir.
	This file is a placeholder. It will be replaced with the actual
	ChangeLog
	by make dist.  Run make ChangeLog if you wish to create it
	earlier.

2010-09-18  Paul Eggert  <eggert@cs.ucla.edu>

	tar: add utimens.h includes
	* src/extract.c: Include <utimens.h>, needed for fdutimens
	prototype.
	* src/misc.c: Likewise.

	tar: switch to gnulib fdutimensat module
	* gnulib.modules: Add fdutimensat.
	* src/common.h (fd_utimensat): Remove decl.
	* src/extract.c (set_stat): Call fdutimensat, not fd_utimensat.
	* src/misc.c (set_file_atime): Likewise.
	(fd_utimensat): Remove.

2010-09-17  Paul Eggert  <eggert@cs.ucla.edu>

	tar: extract permissions for . last
	* src/common.h (must_be_dot_or_slash): New decl.
	* src/extract.c (mark_after_links): New function, taking code
	that used to be in create_placeholder_file.
	(create_placeholder_file): Use it.
	(delay_set_stat): Always delay setting status for . and /.
	* src/misc.c (must_be_dot_or_slash): Now extern.
	* tests/extrac12.at: New file.
	* tests/Makefile.am (TESTSUITE_AT): Add it.
	* tests/testsuite.at: Likewise.

	tar: don't check for getdtablesize; use AC_CHECK_FUNCS_ONCE
	* configure.ac: Don't check for getdtablesize; no longer needed.
	Use AC_CHECK_FUNCS_ONCE rather than AC_CHECK_FUNCS, for
	efficiency.

	tar: extract symlink attributes, close some symlink-related races
	* NEWS: Describe symlink-extraction improvements.
	* src/extract.c (enum permstatus): Remove.
	(fchmod, fchown): Define dummy replacement macros if the system
	does not supply them.
	(implemented): New function.
	(struct delayed_set_stat): Remove members invert_permissions,
	permstatus.  They were too confusing, and tried to do too much
	in too-little space.  Instead, add members current_mode,
	current_mode_mask, interdir, atflag.  All users changed.
	(struct delayed_link): Add members mode, atime, mtime, to support
	platforms such as BSD where symlinks have these attributes.
	All users changed.
	(fd_chmod): Renamed from fdchmod.  New argument atflag.  Check for
	operation not supported at run-time, not at configure-time.  Put
	fd argument first.  All callers changed.
	(fd_chown): Likewise, renaming from fdchown.
	(fd_stat): Likewise, renaming from fdstat.
	(set_mode): Remove args stat_info, cur_info, invert_permissions,
	permstatus.  Add args mode, mode_mask, current_mode,
	current_mode_mask,
	atflag.  All callers changed.  Close some races.  Use an easier-to
	understand method for computing permissions.  Work around POSIX
	incompatibility in Linux fchmodat.  Support extraction of symlink
	modes, if the OS allows it.
	(set_stat): Remove args cur_info, invert_permissions, permstatus.
	Add args current_mode, current_mode_mask, interdir, atflag.
	All callers changed.  Close some races.  Support extraction of
	attributes on symlinks, if the OS allows it.
	(delay_set_stat): Remove args invert_permissions, permstatus.
	Add args current_mode, current_mode_mask, mode, atflag.
	The ST arg can be null now, indicating that it's an intermediate
	directory.  All callers changed.
	(repair_delayed_set_stat, apply_nonancestor_delayed_set_stat):
	Close some races.
	(extract_dir): Also be paranoid if only --same-permissions, due
	to semantics of setgid and setuid directories on some hosts.
	This closes a race on those hosts.  Simplify calculation of
	delay_set_stat arguments; the old code was truly strange and
	probably wrong in some border cases.
	(extract_dir, extract_file, extract_node, extract_fifo): Don't
	rely on
	unspecified behavior in mode arg of open, mknod, etc.  Instead,
	mask out those bits when creating the file, and add them later via
	fchmod or chmodat.
	(open_output_file): file_name is now const.  Add arg current_mode,
	current_mode_mask.  All callers changed.  When overwriting
	old files,
	refuse to overwrite something that is not a regular file, since
	we're extracting a regular file.
	(extract_file): Remove the FIXME comment.  Whatever the protection
	issues were, they should be fixed now.	As a result of all
	the other
	API changes, we now use fchmod etc. rather than chmod etc.,
	closing
	some races.
	(create_placeholder_file, apply_delayed_links): Record desired
	mode and times for symlinks, for OSes that support that.

2010-09-16  Paul Eggert  <eggert@cs.ucla.edu>

	tar: tar -x without --incremental no longer sets atime again
	* src/extract.c (set_stat): Use UTIME_OMIT rather than UTIME_NOW.
	The UTIME_NOW was there only to emulate the previous behavior of
	using the current time, and the previous behavior was there only
	because before we started assuming POSIX.1-2008 there was no
	portable way to get the effect of UTIME_NOW.

	tar: another --atime-preserve race fix
	* src/common.h (set_file_atime): Add parentfd arg.
	* src/compare.c (diff_file): Use it.
	* src/create.c (dump_file0): Likewise.	This closes yet another
	race condition with symbolic links.
	* src/misc.c (set_file_atime): Add parentfd arg.

	tar: --atime-preserve fixes for races etc.
	This patch fixes a race condition in the --atime-preserve=replace
	option, which might cause tar to improperly follow a symbolic
	link.
	It also drops the use of the _FIOSATIME ioctl of Solaris 2.x
	and later, which loses resolution on time stamps.  Modern Solaris
	systems support full-resolution time stamps in the kernel, and
	it's not worth the hassle of testing this call, useful only in
	no-longer-supported Solaris variants.
	Also, it undoes a change I recently introduced to the --compare
	option, which caused it to not follow symbolic links unless the
	--dereference option was also used.  Quite possibly this change is
	a good idea, but the old behavior was documented and the change
	should not have been installed casually.
	* configure.ac: Don't check for stropts.h and sys/filio.h.
	* gnulib.modules: Add futimens, utimensat.  Remove futimens.
	* src/common.h (fd_utimensat): New decl.
	* src/compare.c (diff_file, diff_multivol):
	Don't use open_read_flags: those are for --create only.
	* src/create.c (dump_file0): Adjust to set_file_atime changes.
	Pass fstatat_flags to set_file_atime, so that symbolic links are
	not followed inadvertently.
	* src/extract.c: Don't include utimens.h.
	(set_stat): Use fd_utimensat ant UTIME_NOW rather than fdutimens.
	* src/misc.c: Don't include utimens.h, stropts.h, sys/filio.h.
	(fd_utimensat): New function.
	(set_file_atime): Use it.  New arg atflag, controlling symlink
	handling.  All callers changed.

2010-09-14  Paul Eggert  <eggert@cs.ucla.edu>

	* configure.ac: tar: close some race conditions when extracting
	* configure.ac: Check for fchmod and fchown.  Don't check
	for utimes.
	* src/extract.c (fdchmod, fdchown, fdstat): New functions.
	(set_mode, set_stat): New arg FD.  All callers changed.
	This avoids some race conditions between closing a regular file
	and setting its metadata, and it's a bit faster.

2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>

	tar: don't worry about fdopendir closing its argument
	* NEWS: Don't mention dirfd; no longer needed.
	* gnulib.modules: Remove dirfd.
	* src/create.c (get_directory_entries): Remove the code dealing
	with dirfd failures, as the new fdopendir replacement doesn't
	close its argument so we don't need to call dirfd.  See
	<http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>
	and gnulib commit 970c9038e4cca46e1b037ae0a6d574dfae6a7327.

	* NEWS: Fix wording typo in previous change.
	Reported by Jim Meyering.

	tar: live within system-supplied limits on file descriptors
	* NEWS: Note the change.  Mention dirfd and fdopendir.
	* gnulib.modules: Add dirfd and fdopendir.  The code was already
	using fdopendir; dirfd is a new need.
	* src/common.h (open_searchdir_flags, get_directory_entries):
	(subfile_open, restore_parent_fd, tar_stat_close): New decls.
	(check_exclusion_tags): Adjust signature to match code change.
	* src/create.c (IMPOSTOR_ERRNO): New constant.
	(check_exclusion_tags): First arg is now a struct tar_stat_info
	const *, not an fd.  All callers changed.
	(dump_regular_file, dump_file0): A zero fd represents an unused
	slot, so play it safe if the fd member is zero here.  A negative
	fd represents the negation of an errno value, so play it safe and
	do not assign -1 to fd merely because an open fails.
	(open_failure_recover, get_directory_entries, restore_parent_fd):
	(subfile_open): New functions.	These help to recover from file
	descriptor exhaustion.
	(dump_dir, dump_file0): Use them.
	(dump_file0): Use tar_stat_close instead of rolling our own close.
	* src/incremen.c (scan_directory): Use get_directory_entries,
	subfile_open, etc., to recover from file descriptor exhaustion.
	* src/names.c (add_hierarchy_to_namelist): Likewise.
	(collect_and_sort_names): A negative fd represents the negation
	of an errno value, so play it safe and do not assign -1 to fd.
	* src/tar.c (decode_options): Set open_searchdir_flags.
	Add O_CLOEXEC to all the open flags.
	(tar_stat_close): New function, which knows how to deal with
	new convention for directory streams and file descriptors.
	Diagnose 'close' failures.
	(tar_stat_destroy): Use it.
	* src/tar.h (struct tar_stat_info): New member dirstream.
	fd now has the negative of an errno value, not merely -1, if
	the file could not be opened, so that failures to reopen
	directories
	are better-diagnosed later.
	* tests/Makefile.am (TESTSUITE_AT): Add extrac11.at.
	* tests/testsuite.at: Likewise.
	* tests/extrac11.at: New file.

2010-09-08  Paul Eggert  <eggert@cs.ucla.edu>

	tar: improve documentation of reliability and security issues
	* doc/tar.texi (Reliability and security, Reliability):
	(Permissions problems, Data corruption and repair, Race
	conditions):
	(Security, Privacy, Integrity, Live untrusted data):
	(Security rules of thumb): New nodes.

2010-09-06  Paul Eggert  <eggert@cs.ucla.edu>

	tar: more reliable directory traversal when creating archives
	* NEWS: Document this.
	* gnulib.modules: Add openat, readlinkat.
	* src/common.h (open_read_flags, fstatat_flags): New global
	variables.
	(cachedir_file_p, dump_file, check_exclusion_tags,
	scan_directory):
	Adjust to new signatures, described below.
	(name_fill_directory): Remove.
	* src/compare.c (diff_file, diff_multivol): Use open_read_flags.
	* src/create.c (struct exclusion_tag): Exclusion predicates
	now take
	a file descriptor, not a file name.
	(add_exclusion_tag): Likewise.	All uses changed.
	(cachedir_file_p): Likewise.
	(check_exclusion_tags): The directory is now a file descriptor,
	not a file name.  All uses changed.  Use openat for better
	traversal.
	(file_dumpable_p): Arg is now a struct stat, not a struct
	tar_stat_info.	All uses changed.  Check the arg's file types too.
	(dump_dir0, dump_dir, dump_file0, dump_file): Omit top_level and
	parent_device args, since st->parent tells us that now.  All uses
	changed.
	(dump_dir): Likewise.  Also, omit fd arg for similar reasons.
	Apply fdsavedir to a dup of the file descriptor, since we need a
	file descriptor for openat etc. as well, and fdsavedir (perhaps
	unwisely) consumes its file descriptor when successful.
	Do not consume st->fd when successful; this simplifies the caller.
	(create_archive): Allocate a file descriptor when retraversing
	a directory, during incremental dumps.
	(dump_file0): Use fstatat, openat, and readlinkat for better
	traversal.
	When opening a file, use the result of fstat on the file
	descriptor
	rather than the fstatat on the directory entry, to avoid some race
	conditions.  No need to reopen the directory since we now
	no longer
	close it.  Change "did we open the file?" test from 0 <= fd to
	0 < fd since fd == 0 now represents uninitialized.
	(dump_file): Now accepts struct tar_stat_info describing parent,
	not parent_device.  Also, accept basename and fullname of entry.
	All uses changed.
	* src/incremen.c (update_parent_directory): Accept struct
	tar_stat_info for parent, not name.  All callers changed.
	Use fstatat for safer directory traversal.
	(procdir): Accept struct tar_stat_info, not struct stat and
	dev_t, for info about directory.  All callers changed.
	(scan_directory): Accept struct tar_stat_info, not name,
	device, and cmdline, for info about directory.	All callers
	changed.  Do not consume the file descriptor, since caller
	might need it.	Use fstatat and openat for safer directory
	traversal; also, use fstat after opening to double-check.
	(name_fill_directory): Remove.
	* src/names.c (add_hierarchy_to_namelist): Accept struct
	tar_stat_info instead of device and cmdline.  All callers changed.
	When descending into a subdirectory, use openat and fstat for
	safer directory traversal.
	(collect_and_sort_names): Use open and fstat for safer directory
	traversal.  Set up struct tar_stat_info for callee's new API.
	* src/tar.c (decode_options): Initialize open_read_flags
	and fstatat_flags.
	(tar_stat_destroy): Close st->fd if it is positive (not zero!).
	* src/tar.h (struct tar_stat_info): New members parent, fd.
	* src/update.c (update_archive): Adjust to dump_file's API change.
	* tests/filerem02.at: Ignore stderr since its contents now depend
	on the file system implementation.

2010-09-05  Paul Eggert  <eggert@cs.ucla.edu>

	tar: remove lint discovered by Sun C compiler
	* src/common.h (WARN_ALL): Don't mask with 0xffffffff; on a 32-bit
	host, 0xffffffff is of type 'unsigned int', which makes WARN_ALL
	an unsigned int value that is too large to fit into an int, and
	the C standard says that this has undefined behavior.  The mask is
	not needed, so omit it.

2010-09-04  Paul Eggert  <eggert@cs.ucla.edu>

	tar: restore macros that are used in some cases
	* src/tar.c (LOW_DENSITY_NUM, MID_DENSITY_NUM, HIGH_DENSITY_NUM):
	Restore these macros, undoing the previous change to this file.
	The macros are used after all, in some cases.  Sorry about that.

2010-09-03  Paul Eggert  <eggert@cs.ucla.edu>

	tar: remove unused macros
	* src/create.c (UINTMAX_TO_CHARS): Remove; no longer used.
	* src/tar.c (LOW_DENSITY_NUM, MID_DENSITY_NUM, HIGH_DENSITY_NUM):
	Likewise.
	* src/incremen.c (DIR_IS_NEW): Comment out; not used.
	Mark this with a FIXME, since it looks like it should be used.

2010-08-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix --remove-files in update/append mode.
	* src/update.c (update_archive): Call finish_deferred_unlinks when
	done.

2010-08-26  Paul Eggert  <eggert@cs.ucla.edu>

	tar: avoid assumptions about root access and chmod -w in test
	cases
	* tests/extrac07.at, tests/extrac09.at, tests/listed03.at: Use
	AT_UNPRIVILEGED_PREREQ, since this test requires non-root
	privileges.
	* tests/extrac07.at: Don't use "chmod -w", as POSIX says it's not
	portable to start a chmod permissions-list with "-" as it may be
	confused with an option.  Use "chmod a-w" instead.

	tar: fix bug with -C and delayed setting of metadata
	* src/common.h (chdir_current): New decl.
	* src/extract.c (struct delayed_set_stat, struct delayed_link):
	New member change_dir.
	(delay_set_stat, create_placeholder_file): Set it.
	(apply_nonancestor_delayed_set_stat, apply_delayed_links): Use it.
	(extract_link): Check that the links are all relative to the same
	directory.
	(extract_archive): Restore the current directory after
	apply_nonancestor_delayed_set_stat has possibly changed it.
	* src/misc.c (chdir_current): New external var; this used to
	be the private static variable 'previous' inside chdir_dir.
	All uses changed.
	* tests/Makefile.am (TESTSUITE_AT): New test extrac10.at.
	* tests/extrac10.at: New file.
	* tests/testsuite.at: Include it.

2010-08-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	Don't apply file transformations to volume names.
	* src/list.c (decode_header): Don't apply file transformations
	to volume names.
	* tests/xform01.at: New testcase.
	* tests/xform-h.at (xform): Rename macro to xformtest. Use
	pushdef/popdef.
	* tests/Makefile.am, tests/testsuite.at: Add xform01.at

2010-08-25  Paul Eggert  <eggert@cs.ucla.edu>

	tar: optimize -c --sparse when file is entirely sparse
	* src/sparse.c (sparse_scan_file): If the file is entirely sparse,
	that is, if ST_NBLOCKS is zero, don't bother scanning for nonzero
	blocks.  Idea by Kit Westneat, communicated by Bernd Schubert in
	<http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00038.html>.
	Also, omit unnecessary lseek at start of file.

	tar: don't assume size of a sparse file chunk fits in size_t
	* src/tar.h (struct sp_array): Change numbytes from size_t
	to off_t.
	All uses changed.
	* scripts/xsparse.c (struct sp_array): Likewise.
	Include <stdint.h>, for SIZE_MAX.
	(expand_sparse): Don't try to allocate a buffer bigger than
	SIZE_MAX bytes.
	* src/common.h (SIZE_TO_CHARS, size_to_chars, SIZE_FROM_HEADER):
	(size_from_header): Remove decls.
	* src/create.c (size_to_chars): Remove.
	* src/list.c (size_from_header): Remove.
	* src/sparse.c (sparse_extract_region, check_data_region):
	(oldgnu_add_sparse, oldgnu_store_sparse_info, pax_decode_header):
	Don't assume chunk sizes fit in size_t.
	(oldgnu_add_sparse): Check for off_t overflow.
	* src/xheader.c (sparse_numbytes_decoder, sparse_map_decoder):
	Likewise.

	tar: use ctime, not mtime, when checking placeholders
	* src/extract.c (struct delayed_link): Rename member mtime
	to ctime.
	All uses changed to use ctime rather than mtime.

2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>

	tar: add comment to link04.at test
	* tests/link04.at: Add explanatory comment at head.

	tar: fix 1.23 Solaris regression related to PRIV_SYS_LINKDIR
	The idea was suggested by Petr Sumbera in the thread starting
	here:
	http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00000.html
	* src/extract.c (set_mode): Save the errno of the chmod that
	failed, for the benefit of chmod_error_details.  Do not bother
	retrying chmod unless the mode suggests setuid is the issue.
	(extract_archive): Remove redundant call to
	priv_set_remove_linkdir.
	* src/system.c: Include priv-set.h.
	(sys_spawn_shell, sys_child_open_for_compress):
	(sys_child_open_for_uncompress, sys_exec_command):
	(sys_exec_info_script, sys_exec_checkpoint_script):
	Invoke priv_set_restore_linkdir before execv or execlp, so that
	the subprocess has the same privileges that tar originally did.

	tar: handle files that occur multiple times but have link count 1
	This patch was inspired by the following patch that addressed a
	similar problem in GNU coreutils du:
	http://git.savannah.gnu.org/gitweb/?p=coreutils.git;h=efe53cc72b599979ea292754ecfe8abf7c839d22
	* src/common.h (name_count): New decl.
	* src/create.c (trivial_link_count): New static var.
	(create_archive): Initialize it.
	(dump_hard_link, file_count_links): Use it, so that files with
	link count 1 are handled correctly when they are found multiple
	times.
	* src/names.c (allocated_entries): Renamed from allocated_names,
	since the identifier's name was misleading.  All uses changed.
	(entries): Renamed from names.	All uses changed.
	(scanned): Renamed from name_index.  All uses changed.
	(name_count): New var.
	(name_add_name): Increment it.
	* tests/link04.at: New file.
	* tests/testsuite.at: Add it.
	* tests/Makefile.am (TESTSUITE_AT): Likewise.

2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>

	tar: use nlink_t for link counts
	* src/create.c (struct link): nlink is now of type nlink_t,
	not size_t.

	tar: don't export names that aren't used elsewhere
	* src/common.h (file_dumpable_p, gid_to_chars, major_to_chars):
	(minor_to_chars, mode_to_chars, uid_to_chars, uintmax_to_chars):
	(string_to_chars, dumpdir_creat0, dumpdir_create, dumpdir_free):
	(dumpdir_locate, dumpdir_next, dumpdir_first, gid_from_header):
	(major_from_header, minor_from_header, mode_from_header):
	(time_from_header, uid_from_header, quote_copy_string,
	request_stdin):
	(xheader_init, transform_header_name):
	Remove declarations; these are no longer exported from their
	modules.
	(GID_TO_CHARS, MAJOR_TO_CHARS, MINOR_TO_CHARS, MODE_TO_CHARS):
	(UID_TO_CHARS, UINTMAX_TO_CHARS, UNAME_TO_CHARS, GNAME_TO_CHARS):
	Move to src/create.c, since no other module uses these.
	(GID_FROM_HEADER, MAJOR_FROM_HEADER, MINOR_FROM_HEADER):
	(MODE_FROM_HEADER, TIME_FROM_HEADER, UID_FROM_HEADER):
	Move to src/extract.c, since no other module uses these.
	(dumpdir_t, dumpdir_iter_t): Remove; no longer used.
	* src/create.c (gid_to_chars, major_to_chars, minor_to_chars):
	(mode_to_chars, uid_to_chars, uintmax_to_chars, string_to_chars):
	(file_dumpable_p): Now static.
	* src/incremen.c (dumpdir_create0, dumpdir_create, dumpdir_free):
	(dumpdir_locate, dumpdir_next, dumpdir_first): Now static.
	(scan_directory, write_directory_file_entry):
	Use struct dumpdir_iter * rather than dumpdir_iter_t.
	* src/list.c (gid_from_header, major_from_header,
	minor_from_header):
	(mode_from_header, time_from_header, uid_from_header):
	(transform_member_name): Now static.
	* src/misc.c (quote_copy_string): #if 0 out, as it's not used
	anywhere.
	* src/system.c (wait_for_grandchild): Now static.
	* src/tar.c (request_stdin): Now static.
	* src/xheader.c (xheader_init): Now static.

	tar: fix misspelled identifier "set_comression_program_by_suffix"
	* src/suffix.c (set_compression_program_by_suffix): Renamed from
	set_comression_program_by_suffix.
	* src/buffer.c, src/common.h, src/tar.c: All uses changed.

2010-08-20  Paul Eggert  <eggert@cs.ucla.edu>

	tar: change interdir_made from int to bool
	* src/extract.c (maybe_recoverable, create_placeholder_file):
	Change interdir_made from int * to bool *, since the flag has just
	two values 0 and 1.  All uses changed.	This does not affect tar's
	behavior.

	tar: remove trailing white space from source files
	* ChangeLog.1, ChangeLog.CVS, Makefile.am, NEWS, README:
	* README-hacking, directory, doc/Makefile.am, doc/dumpdir.texi:
	* doc/gendocs_template, doc/intern.texi, doc/mastermenu.el:
	* doc/snapshot.texi, doc/sparse.texi, doc/tar-snapshot-edit.texi:
	* doc/value.texi, lib/Makefile.am, scripts/backup-specs:
	* scripts/dump-remind.in, scripts/tar-snapshot-edit,
	scripts/tarcat:
	* scripts/xsparse.c, src/arith.h, src/buffer.c, src/compare.c:
	* src/create.c, src/delete.c, src/exit.c, src/suffix.c, src/tar.c:
	* src/tar.h, src/update.c, src/warning.c, src/xheader.c:
	* tests/append01.at, tests/append02.at, tests/atlocal.in:
	* tests/delete03.at, tests/exclude.at, tests/exclude06.at:
	* tests/extrac04.at, tests/extrac05.at, tests/extrac06.at:
	* tests/extrac07.at, tests/filerem01.at, tests/filerem02.at:
	* tests/incr01.at, tests/incr02.at, tests/incr03.at,
	tests/incr06.at:
	* tests/label02.at, tests/label03.at, tests/label04.at:
	* tests/label05.at, tests/link02.at, tests/link03.at:
	* tests/listed01.at, tests/listed02.at, tests/long01.at:
	* tests/longv7.at, tests/multiv01.at, tests/multiv02.at:
	* tests/multiv03.at, tests/multiv05.at, tests/multiv06.at:
	* tests/multiv07.at, tests/multiv08.at, tests/options.at:
	* tests/options02.at, tests/remfiles03.at, tests/rename01.at:
	* tests/rename02.at, tests/rename03.at, tests/rename04.at:
	* tests/rename05.at, tests/same-order01.at, tests/same-order02.at:
	* tests/shortfile.at, tests/shortupd.at, tests/sparse01.at:
	* tests/sparse02.at, tests/sparsemv.at, tests/sparsemvp.at:
	* tests/star/README, tests/star/gtarfail2.at:
	* tests/star/multi-fail.at:
	* tests/star/pax-big-10g.at, tests/star/quicktest.sh:
	* tests/star/ustar-big-2g.at, tests/star/ustar-big-8g.at:
	* tests/update01.at, tests/update02.at, tests/volsize.at:
	* tests/volume.at:
	Remove trailing spaces and tabs from lines, and remove
	trailing empty lines from files.  This makes it a bit easier
	to share code among coreutils and other projects that do this.

2010-08-19  Paul Eggert  <eggert@cs.ucla.edu>

	tar: update licenses to latest versions from www.gnu.org
	* COPYING: Update to latest version; this is just minor
	formatting.
	* doc/fdl.texi: Update from GFDL 1.2 to 1.3.
	* doc/tar.texi: Adjust to new format of fdl.texi.  Omit trailing
	white space.

2010-07-18  Paul Eggert  <eggert@cs.ucla.edu>

	* src/misc.c (struct wd): Fix comment to match code.

2010-07-18  Paul R. Eggert  <eggert@cs.ucla.edu>

	tar: no need to report getcwd error if never using the result
	* src/misc.c (struct wd): Rename 'saved' to 'err', with new
	semantics.
	(chdir_arg, chdir_do): Adjust to new semantics.  Do not report an
	error merely because save_cwd fails; report an error only if
	save_cwd's result is needed later.
	* tests/extrac09.at: New file, to test for bug that was fixed.
	* tests/testsuite.at: Include it.
	* tests/Makefile.am (TESTSUITE_AT): Add it.

	tar: go back to absolutifying filenames in normalize_filename
	for now
	* src/misc.c (normalize_filename): For now, go back to making
	filenames absolute, even though this causes 'tar' to fail when
	getcwd fails.  However, do not attempt to resolve ".." as this
	does not work with symlinks.  Also, do the right thing with
	leading file system prefixes and on hosts where // != /.

2010-07-17  Sergey Poznyakoff  <gray@gnu.org.ua>

	Allow for size suffixes in -L and --record-size options.
	* src/tar.c (TAR_SIZE_SUFFIXES): New define.
	(parse_opt): Allow for size suffixes in arguments to
	-L and --record-size options.
	* NEWS, doc/tar.texi: Update.

2010-07-15  Paul R. Eggert  <eggert@cs.ucla.edu>

	tar: don't crash if getcwd fails
	* src/extract.c: Don't include xgetcwd.h.
	(extract_dir): stat "." rather than statting getcwd's output.
	* src/misc.c (normalize_filename_x): Rewrite so as not to resolve
	/../, which can't be done reliably in the presence of symlinks.
	Don't reject valid names such as ".".
	(normalize_filename): Don't make it absolute; that way, we don't
	have to invoke xgetcwd which might fail.  Don't bother to realloc
	at the end, since that uses time and now saves little space.
	(chdir_do): Don't crash if xgetcwd fails.
	* tests/Makefile.am (TESTSUITE_AT): Add listed03.at.
	* tests/listed03.at: New file.
	* tests/testsuite.at: Include listed03.at.

2010-07-11  Sergey Poznyakoff  <gray@gnu.org.ua>

	Keep a detailed map of archive members stored in the record
	buffer.
	A separate map (bufmap) provides information for creating
	multi-volume continuation headers.
	* src/buffer.c (bufmap): New struct.
	(bufmap_head, bufmap_tail, inhibit_map): New variables.
	(mv_begin_write): New function.
	(mv_begin): Rename to mv_begin_read. Rewrite using mv_begin_write.
	All callers changed.
	(mv_total_size): Remove.
	(bufmap_locate, bufmap_free, bufmap_reset): New functions.
	(_flush_write): Update bufmap.
	(close_archive): Free bufmap.
	(add_chunk_header): Take a bufmap argument.
	(gnu_add_multi_volume_header): Likewise.
	(add_multi_volume_header): Likewise.
	(_gnu_flush_write): Rewrite using bufmap.
	(real_s_name, real_s_totsize)
	(real_s_sizeleft)
	(save_name, save_totsize, save_sizeleft): Removed. All
	uses updated.
	(mv_size_left): Update bufmap_head.
	(mv_end): Rewrite.
	(multi_volume_sync): Remove.
	* src/common.h (mv_begin_write): New prototype.
	(mv_begin): Rename to mv_begin_read.
	* src/create.c: Use mv_begin_write instead of mv_begin.
	Remove calls to mv_size_left and mv_end.
	* src/sparse.c: Likewise.
	* tests/multiv07.at: Close stdin.
	* tests/spmvp00.at: Update AT_KEYWORDS.
	* tests/spmvp10.at: Likewise.
	* tests/multiv08.at: New testcase.
	* tests/Makefile.am, tests/testsuite.at: Add multiv08.at.

	Version 1.23.90
	* NEWS, configure.ac: Version 1.23.90
	* doc/tar.texi: Document the use of lbzip2.

2010-06-28  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix exclusion of long file names when extracting from pax format
	archives.
	* src/list.c (read_and): Call decode_header before attempting
	name_match.
	(list_archive): Remove call to decode_header.
	* src/compare.c (diff_archive): Remove call to decode_header.
	* src/extract.c (extract_archive): Likewise.
	* test/exclude06.at: New test case.
	* tests/testsuite.at: Include exclude06.at.
	* tests/Makefile.am (TESTSUITE_AT): Add exclude06.at.

	Minor fix.
	* src/buffer.c (magic): Split the character constant to help
	cc recognize character boundaries (7 is a valid hex character).

2010-06-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fix.
	* src/buffer.c (magic): Fix xz magic.

2010-06-16  Paul Eggert  <eggert@cs.ucla.edu>

	Remove some lint, found by gcc -W etc.
	* src/common.h (label_notfound): New decl.
	* src/buffer.c (set_volume_start_time, compress_type):
	(guess_seekable_archive, open_compressed_archive, init_buffer):
	(_flush_write, archive_is-dev, increase_volume_number):
	(change_tape_menu, try_new_volume, add_chunk_header):
	(multi_volume_sync):
	Declare as 'static' if it's not exported.
	Use function prototype (void) rather than old-style ().
	* src/checkpoint.c (expand_checkpoint_string): Likewise.
	* src/incremen.c (dirlist_replace_prefix, makedumpdir,
	read_incr_db_2):
	Likewise.
	* src/list.c (print_volume_label): Likewise.
	* src/misc.c (normalize_filename_x): Likewise.
	* src/names.c (make_name, free_name, check_name_alloc,
	name_next_elt):
	Likewise.
	* src/tar.c (tar_list_quoting_style, add_exclude_array):
	(set_stat_signal): Likewise.
	* src/transform.c (new_transform,
	_single_transform_name_to_obstack):
	(_transform_name_to_obstack): Likewise.
	* src/unlink.c (dunlink_alloc): Likewise.
	* src/buffer.c (struct zip_magic): Use const when appropriate.
	* src/incremen.c (obstack_code_rename,
	write_directory_file_entry):
	Likewise.
	* src/sparse.c (COPY_STRING): Likewise.
	* src/system.c (dec_to_env, time_to_env, oct_to_env, str_to_env):
	(chr_to_env): Likewise.
	* src/tar.c (tar_list_quoting_style, set_stat_signal): Likewise.
	* src/extract.c (extract_node): Don't return garbage.
	* src/names.c: Remove old-style declarations of getgrnam etc.
	All modern systems declare these, and it's not worth the hassle
	of ignoring the warnings on modern systems for old-style decls.

2010-05-17  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfix.
	* src/incremen.c (make_directory): Retain the slash if it is the
	only character in a filename.

2010-04-02  Sergey Poznyakoff  <gray@gnu.org.ua>

	Recode NEWS back to UTF-8

2010-04-01  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix the gzip.at test case.
	* tests/gzip.at: Suppress gzip error output, as it can differ
	depending on its version etc. Bug reported by Ludovic Courtès.

2010-03-28  Sergey Poznyakoff  <gray@gnu.org.ua>

	New option --full-time.
	* src/common.h (full_time_option): New global.
	* src/tar.c (FULL_TIME_OPTION): New constant.
	(options): New option --full-time.
	(parse_opt): Handle the --full-time option.
	* src/list.c (simple_print_header): Pass full_time_option
	as the 2nd argument to tartime.
	* doc/tar.texi: Update.
	* NEWS: Update.

2010-03-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fixes in the testsuite.
	* tests/extrac07.at: Fix a typo (invalid number
	of arguments before format list).
	* tests/link02.at: Use `ln' instead of `link'.
	* tests/link03.at: Likewise.

	Fix coredump.
	* src/names.c (collect_and_sort_names): Remove
	entry from the table before freeing it.

	Fix dead loop on extracting existing symlinks with the -k option.
	* src/extract.c (create_placeholder_file)
	(extract_link, extract_symlink)
	(extract_node, extract_fifo): Handle all possible
	return values from maybe_recoverable. This complements
	8f390db92fc. Reported by Ico Doornekamp <bug-tar@zevv.nl>.
	* NEWS: Update.

2010-03-20  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix undesired error exit on receiving SIGPIPE.
	* src/tar.c: Do not ignore SIGPIPE.
	* tests/sigpipe.at: New testcase.
	* tests/Makefile.am, tests/testsuite.at: Add sigpipe.at
	* tests/remfiles01.at: Fix error code expectation.
	* NEWS: Update.

2010-03-17  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix --remove-files.
	Tar --remove-files relied on canonicalize_file_name,
	which replaces symlinks in file name components with
	the directories they point to. Due to this, tar
	effectively ignored existence of symbolic links and
	was unable to remove a directory that contained any
	(Alexander Kozlov <akozlov@nada.kth.se>, 2010-03-15).
	* gnulib.modules: Remove canonicalize.
	* src/misc.c (normalize_filename): Rewrite
	from scratch. The function operates only on
	its input string, it makes no attempt to test
	components for existence or to resolve symbolic
	links.
	* tests/Makefile.am (TESTSUITE_AT): Add remfiles03.at.
	* tests/testsuite.at: Likewise.
	* tests/remfiles03.at: New test case.
	* NEWS: Update.

2010-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfixes.
	* src/buffer.c (check_label_pattern): Initialize result.
	* tests/remfiles01.at: Skip if run with root privileges.

2010-03-11  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix `--test-label' and `--label -r' behavior.
	* doc/tar.texi (Including a Label in the Archive): Revise
	the section.
	* NEWS: Update
	* src/buffer.c (open_archive): Check volume label on
	ACCESS_UPDATE as well.
	* src/list.c (test_archive_label): Rewrite to match the
	documentation.
	* src/names.c (regex_usage_warning): Return int.
	(names_notfound): Rewrite the conditional.
	(label_notfound): New function.
	* tests/label03.at: New testcase.
	* tests/label04.at: New testcase.
	* tests/label05.at: New testcase.
	* tests/Makefile.am: Add new testcases.
	* tests/testsuite.at: Likewise.

	Doc fixes.
	* doc/tar.texi: Consistently use lowercase `see' within sentences.
	More fixes spotted by Denis Excoffier.
	* THANKS: Update.

	Shut up a gcc warning message.
	* src/tar.c (tar_help_filter): Use a separate const
	variable to hold returns from gettext. Reported by
	Peter Breitenlohner.

	Bugfix.
	* src/names.c (collect_and_sort_names): Initialize prev_name.
	Reported by Dmitry V. Levin.

2010-03-10  Sergey Poznyakoff  <gray@gnu.org.ua>

	Version 1.23
	* configure.ac, NEWS: Update version number.

	Doc changes.
	* NEWS: Update.
	* THANKS: Update.
	* doc/snapshot.texi, doc/snapshot.texi,
	doc/sparse.texi, doc/tar-snapshot-edit.texi,
	doc/tar.texi: Spellchecked and proof-read. Thanks
	to Denis Excoffier.
	* gnulib.modules: Remove utime.

2010-03-08  Kamil Dudka  <kdudka@redhat.com>

	Fix possible overflow in code_timespec (tiny change)
	* src/misc.c (code_timespec): ignore invalid values of ns

2010-03-08  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fix in the testsuite.
	* tests/extrac05.at: Skip test if creating
	sparse file fails.

	Fix eventual memory override and fd exhaustion in create.c Both
	bugs reported by Kamil Dudka.
	* src/create.c (check_exclusion_tags): Do not keep
	pointer to a location within tagname: it may change
	after xrealloc. Use byte offset instead.
	(dump_file0): Close fd before returning without
	dumping the directory.

2010-03-02  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor change.
	* doc/tar.texi: Improve some wording.

2010-03-02  Antonio Diaz Diaz  <ant_diaz@teleline.es>

	Add Lzip support
	* configure.ac: Add TAR_COMPR_PROGRAM(lzip)
	* doc/tar.texi: Reflect lzip support.
	* src/buffer.c (compress_type) <ct_lzip>: New constant.
	(magic): Add magic for lzip.
	* src/suffix.c (compression_suffixes): Add lz.
	* src/tar.c: New option --lzip.

2010-03-02  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fix.
	* tests/exclude05.at: Rewrite awk invocation to avoid
	overflowing awk's file table on Solaris.

2010-03-02  Eric Blake	<ebb9@byu.net>

	Fix large file support.
	* scripts/xsparse.c (read_map): Use fseeko.
	* src/incremen.c (write_directory_file): Likewise.

2010-03-02  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfix
	* src/buffer.c (seek_archive): Rewrite size computation
	to prevent it from reaching negative values. Based on
	report by Denis Excoffier <Denis.Excoffier@free.fr>.

2010-02-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	Supply more information to the --to-command script.
	* src/system.c (stat_to_env): Pass information about the current
	volume in variables TAR_ARCHIVE, TAR_VOLUME, TAR_BLOCKING_FACTOR,
	TAR_FORMAT.
	* doc/tar.texi: Document new environment variables.
	* NEWS: Likewise.
	* configure.ac: Version number 1.22.91.

2010-02-17  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor change.
	* src/names.c (regex_usage_warning): Fix warning message.

2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	Update THANKS

2010-02-05  Ondřej Vašík  <ovasik@redhat.com>

	Bugfix (tiny change)
	* src/xheader.c (xheader_read): Remove unnecessary call
	to xheader_init.

2010-01-26  Sergey Poznyakoff  <gray@gnu.org.ua>

	Enable silent build mode.
	* configure.ac: Require automake 1.11, autoconf 2.63. Enable
	silent rules.
	* NEWS: Update.
	* lib/Makefile.am (rmt-command.h): Silent the rule.

2010-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	Read POSIX multivolume archives split at the header boundary.
	* src/common.h (read_header_mode): New enum.
	(read_header): Change type of the 3rd argument.
	* src/list.c (read_header): Change type of the 3rd argument.
	All callers updated.
	* src/buffer.c (try_new_volume): Allow for volumes split at the
	extended/ustar header boundary. This is against POSIX specs, but
	we must be able to read such archives anyway.
	* tests/multiv07.at: New test case.
	* tests/Makefile.am: Add multiv07.at
	* tests/testsuite.at: Likewise.
	* src/compare.c: Update calls to read_header.
	* src/delete.c: Likewise.
	* src/update.c: Likewise.

2010-01-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor change.
	* NEWS: Update.
	* doc/tar.texi: Update.
	* src/create.c (finish_header): Minor change.

2010-01-24  Rob Vermaas  <rob.vermaas@gmail.com>

	Bugfix (tiny change).
	* src/tar.c (format_default_settings)[REMOTE_SHELL]: Fix
	misplaced comma.

2010-01-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fix.
	* src/incremen.c (read_incr_db_01)
	(read_directory_file): Initialize bufsize to 0.
	Suggested by noordsij@cs.helsinki.fi.

	Improve handling of --test-label.
	* src/list.c (print_volume_label): New function.
	(print_header): Call print_volume_label.
	(test_archive_label): New function.
	* src/buffer.c (VOLUME_LABEL_APPEND): Remove.
	(VOLUME_TEXT, VOLUME_TEXT_LEN): New macros
	(drop_volume_label_suffix): New function.
	(check_label_pattern): Use drop_volume_label_suffix.
	* src/common.h (subcommand): New constant TEST_LABEL_SUBCOMMAND.
	(test_label_option): Remove.
	(drop_volume_label_suffix): New proto.
	(test_archive_label): New proto.
	* src/names.c (all_names_found): Remove test for
	test_label_option.
	* src/tar.c (subcommand_string): Handle TEST_LABEL_SUBCOMMAND.
	(set_subcommand_option): Improve diagnostics.
	(parse_opt): Set subcommand if --test-label is given.
	(main): Handle TEST_LABEL_SUBCOMMAND.

	Fix listing of volume labels (in particular in PAX archives).
	* src/buffer.c (match_volume_label): Call set_volume_label.
	(check_label_pattern): Get label string
	as argument.
	(match_volume_label): Handle volume labels stored in
	global PAX headers.
	* src/common.c (print_header,read_header): Change signature.
	(read_header_primitive): Remove prototype.
	* src/list.c (recent_global_header): New static.
	(list_archive): Always print volume labels.
	(read_header_primitive): Remove.
	(read_header): Change the signature (all callers updated)
	Save the recent global header.
	(volume_label_printed): New static.
	(simple_print_header): New function (ex-print_header).
	(print_header): Change the signature (all callers updated).
	For POSIX formats, print first volume header (if set).
	* src/xheader.c (xheader_write_global): Write the data
	accumulated in xhdr->stk even if keyword_global_override_list
	is empty.
	(xheader_read): On unexpected EOF, report error instead of
	coredumping.
	(XHDR_PROTECTED, XHDR_GLOBAL): New defines.
	(struct xhdr_tab): Remove `protected' with `flags'. All uses
	updated.
	(decg): If XHDR_GLOBAL bit is set, call the keyword's decode
	method instead of adding it to `kwl'.
	* src/compare.c: Update calls to read_header.
	* src/create.c: Likewise.
	* src/delete.c: Likewise.
	* src/update.c: Likewise.
	* src/extract.c: Likewise.
	(extract_volhdr): Do not print "Reading <label>" statement,
	because
	it is inconsistent: it is not printed if the volume begins with a
	member continued from the previous volume.
	* tests/label01.at: New testcase.
	* tests/label02.at: New testcase.
	* tests/Makefile.am, tests/testsuite.at: Add new testcases.

2010-01-22  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix prefix length calculation in ustar mode.
	* src/create.c (split_long_name): Fix prefix length
	calculation.
	(write_ustar_long_name): Improve ustar mode compatibility
	with the Sun version.

2009-10-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	Rewrite update algorithm.
	* src/common.h (namebuf_t): New typedef.
	(namebuf_create, namebuf_free)
	(namebuf_name): New prototypes.
	(remname): New prototype.
	* src/misc.c (struct namebuf): New structure.
	(namebuf_create, namebuf_free)
	(namebuf_name): New functions.
	* src/create.c (dup_dir0): Remove is_avoided_name
	checks. This is taken care of in update_archive.
	* src/incremen.c (scan_directory): Use namebuf
	to produce full file names.
	* src/names.c (nametail): Remove extra level of
	indirection. All uses updated.
	(avoided_name_table, add_avoided_name)
	(is_avoided_name): Remove.
	* src/update.c (update_archive): Change algorithm.
	Instead of adding unmodified files to the avoided_name
	table, create namelist so that it contains only
	modified files.
	* tests/Makefile.am: Add update01.at, update02.at
	* tests/testsuite.at: Likewise.
	* tests/update.at (AT_KEYWORDS): Add update00.

	Minor changes.
	* src/tar.c (main): Ignore SIGPIPE.
	* src/system.c (sys_child_open_for_compress)
	(sys_child_open_for_uncompress): Reset SIGPIPE
	in child to default.
	* tests/remfiles01.at: Avoid race conditions.
	* tests/remfiles02.at: Likewise.

	Bugfix.
	* src/buffer.c (_open_archive): Call guess_seekable_archive
	only if the call to open_compressed_archive succeeded.

2009-10-10  Sergey Poznyakoff  <gray@gnu.org.ua>

	Improve previous changes.
	* acinclude.m4: Fix typos.
	* gnulib.modules: Add xvasprintf.
	* src/common.h: Include xvasprintf.h.
	* src/tar.c (options): Remove docstrings for --gzip, --bzip2,
	--compress, --lzop, --lzma and --xz.
	(tar_help_filter): Generate these using actual values of
	*_PROGRAM constants.
	(format_default_settings): Use xasprintf.
	(parse_opt): Use *_PROGRAM defines instead of hardcoded
	program names.

	Allow installers to specify alternative program names for
	compression programs.
	This adds --with-gzip, --with-bzip2 etc. switches to the
	configure, so that
	one can do, e.g. ./configure --with-bzip2=lbzip2 and have
	lbzip2 executed
	whenever user calls `tar --bzip2'.
	* acinclude.m4: New file.
	* configure.ac: Add TAR_COMPR_PROGRAM invocations for
	the supported compressors.
	* src/buffer.c (magic): Use *_COMPRESSOR defines instead
	of hardcoded program names.
	* src/suffix.c (compression_suffixes): Likewise.

2009-10-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fix.
	* src/buffer.c (magic): Fix `xz' entry: add the name of the
	program.
	* src/suffix.c (compression_suffixes, nsuffixes): Mark as static.

2009-10-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	Provide a way to explicitly set mtime for extended header
	ustar blocks.
	* src/tar.c (struct textual_date): ts is a copy of the structure,
	not a pointer to it. Date is a copy as well, hence the `const' is
	taken away.
	(get_date_or_file): Return 0/1 depending on success/failure.
	Copy timestamp to the `ts' member. Store a copy of the string
	in `date'.
	(report_textual_dates): Report only if verbose_option is set,
	but always free the list.
	(expand_pax_option): New function.
	(parse_opt): Preprocess the argument to xheader_set_option with
	expand_pax_option.
	(decode_options): Call report_textual_dates unconditionally.
	* src/xheader.c (exthdr_mtime_option, exthdr_mtime)
	(globexthdr_mtime_option, globexthdr_mtime): New statics.
	(xheader_set_keyword_equal): handle exthdr.mtime and
	globexthdr.mtime.
	(xheader_write): Override `t' argument if a corresponding
	exthdr.mtime or globexthdr.mtime option is set.
	* NEWS: Update
	* doc/tar.texi: Document the changes.

	Use file's mtime as mtime for its extended header.
	This makes two pax archives binary equivalent if they
	have the same contents and care is taken to make extended
	headers otherwise reproducible, e.g. by using:
	  --pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0
	Proposed by Michael D. Adams <mdmkolbe@gmail.com>.
	* src/common.h (start_private_header): Take time_t as 3rd param.
	(xheader_write): Likewise.
	* src/create.c (start_private_header): Take time_t as 3rd param.
	All callers updated.
	(write_extended): Use file's mtime as mtime for its extended
	header,
	Use current time stamp as mtime for global headers.
	(xheader_write): Take time_t as 3rd param.

	Fix bugs in handling the --remove-files option.
	Make sure the files are deleted only if they were successfully
	stored
	to the archive.
	* src/exit.c: New file.
	* src/unlink.c: New file.
	* src/Makefile.am (tar_SOURCES): Add exit.c and unlink.c.
	* src/common.h: Include progname.h
	(program_name): Remove global.
	(records_written): New extern.
	(queue_deferred_unlink, finish_deferred_unlinks): New prototypes.
	(fatal_exit_hook): New extern.
	* src/create.c (create_archive): Call finish_deferred_unlinks.
	(dump_hard_link, dump_file0): Don't actually unlink the file,
	queue it to deferred_unlinks instead.
	* src/delete.c (records_written): Remove extern: declared in
	common.h.
	* src/extract.c (extract_archive): Set fatal_exit_hook.
	(fatal_exit, xalloc_die): Move to exit.c
	* src/system.c (sys_wait_for_child): Exit immediately
	if the child dies or exits with a non-zero status.
	(sys_child_open_for_compress)
	(sys_child_open_for_uncompress): Use set_program_name,
	instead of setting program_name directly.
	* src/tar.c (main): Use set_program_name,
	instead of setting program_name directly.
	* tests/Makefile.am (TESTSUITE_AT): Add remfiles01.at
	and remfiles02.at.
	* tests/testsuite.at: Likewise.
	* tests/gzip.at: Reflect the above changes.

2009-10-04  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix bug in OLDGNU format creation.
	See tests/append02.at for a detailed description
	* src/common.h (MODE_FROM_HEADER): Take additional argument.
	(mode_from_header): Likewise.
	* src/create.c (mode_to_chars): Store all mode bits if
	using OLDGNU_FORMAT. This reverses f4e4adea80a.
	* src/list.c (decode_header): Use header mode field
	to discern between GNU and OLDGNU formats.
	(mode_from_header): Store unrecognized mode bits (from 10th up)
	in the location pointed to by the third parameter.
	* tests/append02.at: Update documentation and references.

2009-09-16  Sergey Poznyakoff  <gray@gnu.org.ua>

	Restore extra help output.
	* src/tar.c (tar_list_quoting_styles): Change first argument to
	struct obstack.
	(format_default_settings): New function.
	(show_default_settings)
	(show_default_settings_fs): Removed.
	(tar_help): Removed.
	(tar_help_filter): New function.
	(argp): Set help_filter.
	(parse_opt): Fix error message.

2009-09-08  Sergey Poznyakoff  <gray@gnu.org.ua>

	Improve command line option handling.
	* gnulib.modules: Add argp-version-etc and progname,
	use getopt-gnu instead of getopt.
	* src/tar.c (HANG_OPTION, USAGE_OPTION)
	(VERSION_OPTION): Remove.
	(options): Remove corresponding options. Let argp
	handle them.
	(parse_opt): Likewise.
	(_argp_hang): Removed.
	(tar_authors): New variable.
	(decode_options): Call argp_version_setup.
	Do not use ARGP_NO_HELP flag in the call to argp_parse.

	Avoid overwriting exit_status with a value indicating less
	important condition.
	* src/tar.c (set_exit_status): New function.
	* src/common.h (set_exit_status): New prototype.
	* src/compare.c: Use set_exit_status instead of
	exit_status assignments.
	* src/create.c: Likewise.
	* src/misc.c: Likewise.
	* src/system.c (wait_for_grandchild): Use auto variable
	instead of the global exit_status.
	* src/incremen.c (scan_directory): Use file_removed_diag
	instead of stat_diag.

	Automatic detection of seekable archives.
	* src/buffer.c (guess_seekable_archive): New function.
	(_open_archive): Call guess_seekable_archive for archives
	open for reading.
	(new_volume): Likewise.
	* src/common.h (seek_option): New global.
	* src/tar.c (options): New option --no-seek.
	(parse_opt): --seek and --no-seek set seek_option,
	not seekable_archive.
	(decode_options): Initialize seek_option to -1.
	* NEWS: Update.
	* doc/tar.texi: Update.

2009-08-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix testcases.
	* tests/extrac08.at: Ensure a predictable umask value.
	* tests/xform-h.at (xform): do not depend on file name
	ordering.

2009-08-13  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix interaction between --listed-incremental and -C
	* src/incremen.c (read_directory_file): Execute eventual -C dir
	after opening the snapshot file.
	(collect_and_sort_names): Remove call to chdir_do
	* tests/incr05.at, tests/incr06.at: Use relative file names for
	snapshot files.

2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>

	Update for new exclude module from gnulib. Add testcases by
	Phil Proudman.
	* src/names.c (is_pattern): Remove.
	(regex_usage_warning): Use fnmatch_pattern_has_wildcards
	instead of
	is_pattern.
	* src/tar.c: New option --exclude-backups.
	(vcs_file_table, backup_file_table): New globals.
	(add_exclude_array): New function.
	* tests/exclude01.at, tests/exclude02.at,
	tests/exclude03.at, tests/exclude04.at,
	tests/exclude05.at: New testcases. Supplied by Phil Proudman.
	* tests/Makefile.am (TESTSUITE_AT): Add new tests.
	* tests/testsuite.at: Add new tests.
	* THANKS: Update.

2009-08-10  Sergey Poznyakoff  <gray@gnu.org.ua>

	Remove src/version.c (reappeared after migration to Git)

2009-08-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fixes.
	* src/misc.c (file_removed_diag): Set exit code to
	TAREXIT_DIFFERS.

2009-08-08  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fixes

	Fix handling of files removed during incremental dumps.
	Changes to src/create.c and src/incremen.c are partially
	based on patch from Alexander Peslyak <solar at openwall.com>.
	The new testcases require paxutils commit f653a2b or later.
	* src/common.h (struct name): New member `cmdline'.
	(dump_file): Change type of the 2nd argument to bool.
	(file_removed_diag, dir_removed_diag): New prototypes.
	(addname): New argument `cmdline'.
	(name_from_list): Change return value.
	* src/create.c (dump_dir0, dump_dir): top_level is bool.
	(create_archive): Update calls to name_from_list.
	Take advantage of the name->cmdline to set top_level argument
	during incremental backups.
	(dump_file0): top_level is bool.
	Do not bail out if a no-top-level file disappears during
	incremental
	backup, use file_removed_diag instead.
	(dump_filed): top_level is bool.
	* src/incremen.c (update_parent_directory): Silently ignore
	ENOENT.  It should have already been reported elsewhere.
	(scan_directory): Use dir_removed_diag to report missing
	directories.
	* src/misc.c (file_removed_diag, dir_removed_diag): New functions.
	* src/names.c (name_gather): Set ->cmdname.
	(addname): Likewise. All uses updated.
	(name_from_list): Return struct name const *. All uses updated.
	* tests/filerem01.at: New testcase.
	* tests/filerem02.at: New testcase.
	* tests/Makefile.am, tests/testsuite.at: Add filerem01.at,
	filerem02.at
	* tests/grow.at, test/truncate.at: Use new syntax for genfile
	--run.
	* NEWS: Update.
	* doc/tar.texi: Minor fix.

	Optimize searches for directory structures by keeping a pointer
	to struct directory in struct name.
	* src/common.h (struct name): New member `directory' replaces
	dir_contents. Rearrange members.
	(rebase_directory): Change signature.
	(scan_directory): Change signature.
	(name_fill_directory)
	(directory_contents, safe_directory_contents): New prototypes.
	(append_incremental_renames): Change signature.
	(replace_prefix): New proto.
	* src/compare.c (diff_dumpdir): Use directory_contents +
	scan_directory.
	* src/create.c
	* src/incremen.c (replace_prefix): Move to misc.c
	(rebase_directory): Rewrite.
	(scan_directory): Return pointer to struct directory.
	(directory_contents, safe_directory_contents): New functions.
	(get_directory_contents): Remove.
	(name_fill_directory): New function.
	(append_incremental_renames): Rewrite. This also fixes a memory
	leak.
	* src/names.c (name_gather, addname): Reflect changes in struct
	name.
	(add_hierarchy_to_namelist): Rewrite using name_fill_directory and
	directory_contents.
	(rebase_child_list): Update call to rebase_directory.
	(collect_and_sort_names): Optimize
	* src/misc.c (replace_prefix): New function.
	* src/names.c (add_hierarchy_to_namelist): Use new
	get_directory_contents.
	* tests/incr05.at: New test case.
	* tests/incr06.at: New test case.
	* tests/Makefile.am, test/testsuite.at: Add incr05.at and
	incr06.at.
	* doc/Makefile.am (check-options): Improve rule.
	* doc/tar.texi, NEWS: Update.

2009-08-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fixes.
	* src/common.h (rebase_directory): New prototype.
	* src/incremen.c (rebase_directory): Use replace_prefix.
	* src/names.c (collect_and_sort_names): Abort if
	hash_insert fails.

	Improve listed incremental dumps.
	The modified algorithm tries to avoid dumping the same
	directory twice and ensures the order of the directories
	in the resulting archive is the same, whatever their order
	on the command line.  It also fixes the operation of
	--listed-incremental -C.
	* gnulib.modules: Add canonicalize
	* src/common.h (incremental_level): New global.
	(check_exclusion_tags): first argument is const.
	(get_directory_contents): Add third argument.
	(zap_slashes, normalize_filename): New prototypes.
	(chdir_count): New prototype.
	(WARN_VERBOSE_WARNINGS): New define.
	(WARN_ALL): Exclude WARN_VERBOSE_WARNINGS.
	* src/compare.c (diff_dumpdir): Update the call to
	get_directory_contents.
	* src/create.c (check_exclusion_tags): First argument is const.
	Use ISSLASH and DIRECTORY_SEPARATOR instead of referring to '/'.
	* src/incremen.c (struct directory): New member `caname'.
	(hash_directory_name): Rename to
	hash_directory_canonical_name. Operate
	on the canonical name.
	(compare_directory_names): Rename to
	compare_directory_canonical_names.
	Operate on the canonical name.
	(make_directory): Take two arguments.
	(free_directory): Free caname.
	(attach_directory): Create caname.
	(find_directory): Use caname for lookups.
	(PD_VERBOSE): Remove.
	(PD_FORCE_INIT): New define.
	(procdir): First argument is const.
	Reinitialize directory if PD_FORCE_INIT bit is set.
	Do not use PD_VERBOSE or verbose_option for issuing warnings.
	Rely on WARNOPT instead.
	Always set *entry.
	(scan_directory): Take three arguments. The third one is a boolean
	which is true if the directory is explicitly mentioned on
	the command
	line.
	(get_directory_contents): Remove.  Use scan_directory instead.
	All callers updated.
	(read_directory_file): Truncate the file if --level=0 is given.
	* src/misc.c: Include canonicalize.h
	(zap_slashes, normalize_filename): New functions.
	(chdir_count): New function.
	* src/names.c (add_hierarchy_to_namelist): Take three arguments,
	as
	get_directory_contents and scan_directory.
	(collect_and_sort_names): Allow at most one -C, before file name
	arguments.
	Read directory file after eventual changing to another directory.
	Avoid adding the same directory under different pathnames to
	the list.
	* src/tar.c: New option --level.
	* tests/incr03.at, tests/incr04.at, tests/listed01.at,
	tests/listed02.at, tests/rename01.at, tests/rename02.at,
	tests/rename03.at: Update for new tar behavior.
	* tests/multiv01.at: Do not use --listed-incremental.

2009-08-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	Forgotten to push src/warning.c

	Implement the --warning option.
	* src/warning.c: New file.
	* src/Makefile.am: Add warning.c
	* src/common.h: Provide definitions for warning classes.
	(warning_option): New global.
	(WARNOPT): New define.
	(set_warning_option): New prototype.
	* src/tar.c: New option `--warning'.
	* src/compare.c: When applicable WARNOPT instead of WARN.
	* src/create.c: Likewise.
	* src/extract.c: Likewise.
	* src/incremen.c: Likewise.
	* src/list.c: Likewise.
	* NEWS, doc/tar.texi: Update.

2009-08-05  Carl Worth	<cworth@cworth.org>

	Fix descriptions of some options (tiny change)

2009-08-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix backup handling and restoring file modes of existing
	directories
	* NEWS, THANKS: Update
	* src/extract.c (extract_dir): reset status to 0 if the
	directory already exists.
	* src/misc.c (maybe_backup_file): Assign before_backup_name
	and clear after_backup_name before checking if we really need
	to backup the file.
	* tests/backup01.at: New testcase.
	* tests/extrac08.at: New testcase.
	* tests/Makefile.am, tests/testsuite.at: Add extrac08.at and
	backup01.at

2009-07-30  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix hard links recognition with -c --remove-files
	* src/create.c (dump_hard_link): Always look up in the link table
	if remove_files_option is set. Patch suggested by Theodore Ts'o
	<tytso@mit.edu>.
	(check_links): Remove extra newline from the warning message.
	* tests/link02.at, tests/link03.at: New testcases.
	* tests/Makefile.am (TESTSUITE_AT): Add link02.at and link03.at
	* tests/testsuite.at: Include link02.at and link03.at

	Fix handling of hard link targets by -c --transform
	* src/create.c (file_count_links): Transform link target
	before the look up.
	* tests/xform-h.at: New test case.
	* tests/Makefile.am (TESTSUITE_AT): Add xform-h.at.
	* tests/testsuite.at: Add xform-h.at

2009-06-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fix.
	* src/extract.c (file_newer_p): Do not report error on ENOENT

2009-06-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	Remove rebox.el (reappeared after migration to Git)

2009-06-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	Remove files that were removed in CVS, but reappeared after
	migration to Git

2009-06-18  David Bartley  <dtbartle@csclub.uwaterloo.ca>

	Fix Solaris bug where chmod fails if we don't have
	PRIV_SYS_LINKDIR
	* gnulib.modules: Add priv-set.
	* src/extract.c (set_mode, extract_archive): Restore
	PRIV_SYS_LINKDIR on chmod failure.
	* src/tar.c (main): Drop PRIV_SYS_LINKDIR on startup.

2009-06-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	Ensure default behavior for SIGPIPE
	* src/tar.c (main): Install default handler for SIGPIPE.
	Proposed by Bastian Blank.

2009-06-18  Eric Blake	<ebb9@byu.net>

	Follow autoconf recommendation for TESTSUITEFLAGS.
	* tests/Makefile.am (check-local, installcheck-local): Honor
	TESTSUITEFLAGS.

2009-06-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix handling of sub-subprocess returns.
	* src/system.c (wait_for_grandchild): New function.
	(sys_child_open_for_compress)
	(sys_child_open_for_uncompress): Use wait_for_grandchild
	to manage grandchild return.

2009-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	Report record size only if the archive refers to a device.
	* Makefile.am (INCLUDES): Add ../lib, for rmt-command.h
	* src/buffer.c (short_read): Report the actual record size
	only if the archive descriptor refers to a device.
	* tests/pipe.at, tests/shortrec.at,
	tests/sparsemvp.at: Reflect the above change.
	* NEWS, configure.ac: Version 1.22.90

2009-05-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	Do not issue errors on existing files when given the -k option
	* Makefile.am (dist-hook): Fix rule.
	* src/extract.c (maybe_recoverable): Return three-state value.
	(extract_dir): Skip extraction if maybe_recoverable indicates so.
	(extract_file): Likewise.

2009-05-12  Eric Blake	<ebb9@byu.net>

	Avoid undefined behavior
	* src/xheader.c (xheader_set_keyword_equal): Pass correct type to
	ctype macros.
	* src/transform.c (run_case_conv): Likewise.

2009-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>

	Remove src/Makefile.in

2009-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfixes.
	* bootstrap (symlink_to_dir): Fix symlink calculation.
	* doc/tar.texi: Minor fixes by Victor Villa and Stepan Kasal.

2009-03-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	Remove Makefile.in

	Migrate to Git

Currently the ChangeLog is generated automatically from the Git
revision history, but from 1997 to 2009 the ChangeLog file was
maintained by hand, under CVS.  This file records the older log.

Copyright 1997-2001, 2003-2009, 2013 Free Software Foundation, Inc.

This file is part of GNU tar.

GNU tar is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

GNU tar is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

2009-03-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/incremen.c: --no-recursive works with --incremental.

2009-03-04  Sergey Poznyakoff  <gray@gnu.org.ua>

	Add xz support.

	* src/buffer.c, src/suffix.c: Add support for xz compression.
	* src/tar.c: New option --xz, for compression/decompression using xz.
	Re-assign -J as a short equivalent of --xz.

2009-01-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Fix typo.

2008-12-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	* bootstrap.conf: Include size_max.
	* gnulib.modules: Remove memset, rmdir. Replace strdup with
	strdup-posix. Patch by Eric Blake.
	* src/tar.c: Implement -I as a shorthand for --use-compress-program.
	* doc/tar.texi: Document -I.
	* tests/pipe.at, tests/shortrec.at: Account for eventual 'Record
	size' output.
	* tests/testsuite.at (AT_TAR_CHECK_HOOK): New define
	(AT_TAR_WITH_HOOK, TAR_IGNREC_HOOK): New macros.

2008-11-30  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/xheader.c: Remove duplicate inclusion of fnmatch.h. Reported
	by Jim Meyering.

2008-11-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	Do not try to drain the input pipe before closing the
	archive.

	* src/buffer.c (close_archive): Remove call to
	sys_drain_input_pipe. Pass hit_eof as the second
	argument to sys_wait_for_child.
	* src/common.h (sys_drain_input_pipe): Remove
	(sys_wait_for_child): Declare second argument.
	* src/system.c (sys_drain_input_pipe): Remove.
	(sys_wait_for_child): Take two arguments. The second one helps to
	decide whether to tolerate child termination on SIGPIPE.

2008-11-03  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/buffer.c (_write_volume_label): Fix typo, which prevented
	`-V label -M' from working.

2008-10-30  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS, configure.ac: Version 1.20.91
	* doc/tar.texi: Document transformation scope flags.
	* src/common.h (transform_symlinks_option): Remove in favor of
	transformation scope flags.
	(XFORM_REGFILE, XFORM_LINK, XFORM_SYMLINK, XFORM_ALL): New macros.
	(transform_name, transform_member_name, transform_name_fp): Take
	an additional argument, specifying scope flags.
	* src/create.c: Reflect changes to transform_name.
	* src/extract.c (extract_link, extract_symlink): Remove calls to
	transform_member_name. It is done in read_header.
	* src/list.c (decode_xform): Reflect change in data type of 2nd
	argument.
	(transform_member_name): 2nd arg is int.
	(decode_header): Transform file name and link target names.
	* src/tar.c: Remove --transform-symlinks.
	* src/transform.c (struct transform): New member `flags'.
	(transform_flags): New variable.
	(parse_transform_expr): Parse transformation scope flags. Allow to
	set global flags using `flags=' syntax.
	(_transform_name_to_obstack, transform_name_fp)
	(transform_name): Take an additional argument, specifying scope
	flags.

2008-10-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	* THANKS: Add Ed Leaver.
	* src/buffer.c (short_read): Remove !read_full_records condition,
	which was always false on a first record and thus disabled record
	size autodetection.  Thanks Ed Leaver for the patch.
	(_gnu_flush_read): Handle blocking_factor == 1.
	* tests/sparsemv.at: Reflect changes to buffer.c.
	* tests/sparsemvp.at: Likewise.
	* tests/volsize.at: Likewise.
	* NEWS: Update.

2008-10-16  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/common.h (transform_symlinks_option): New global.
	* src/create.c (dump_file0): Transform symlink targets only if
	explicitly required.  Thanks Cyril Strejc for reporting the
	problem.
	* src/tar.c (parse_opt): New options --transform-symlinks and
	--no-transform-symlinks. New alias --xform to the --transform
	option.
	* doc/tar.texi: Document --transform-symlinks
	* NEWS: Update.
	* THANKS: Update.

	* src/names.c (name_gather): Use xzalloc.
	* src/buffer.c (short_read): Move record size detection before
	the loop.

2008-10-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/tar.c (options): Add --lzop option.

2008-10-05  Xavier Hienne <xavier.hienne@free.fr> (tiny change)

	* src/checkpoint.c (checkpoint_compile_action): Add missing
	`else'.

2008-09-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS: Update.
	* doc/tar.texi: Update.
	* src/tar.c: New option --no-null.

2008-09-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/common.h (filename_terminator): Remove global.
	* src/tar.c (filename_terminator): New static.
	* src/names.c (name_next_elt): Do not depend on
	filename_terminator, this was a leftover from 1.13.

2008-09-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Remove incorrect example.

2008-09-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/incremen.c (dumpdir_create0): Eliminate gcc warning.
	(attach_directory): Bugfix - add missing return statement.
	* THANKS: Add Enric Hernandez

2008-07-31  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/incremen.c (struct directory): New member `next'.  Change
	type of `name'.
	(dirhead, dirtail): New statics.
	(make_directory): Reflect changes to struct directory.
	(free_directory, attach_directory): New functions.
	(dirlist_replace_prefix): New function.
	(note_directory): Use attach_directory, instead of make_directory,
	(find_directory, find_directory_meta): Use free_directory.
	(procdir): Replace directory prefixes in directory list to avoid
	marking subdirectories as renamed after renaming their parent
	directory.
	(append_incremental_renames): Iterate over directory list, not
	hash table, to preserve logical ordering of renames.
	* tests/rename04.at, tests/rename05.at: New test cases.
	* tests/Makefile.am, tests/testsuite.at: Add rename04.at and
	rename05.at.
	* tests/atlocal.in (decho): New function.
	* tests/multiv06.at: Use decho instead of echo2.
	* tests/incremental.at: Raise wait interval to 2 seconds.

2008-07-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/tar.c (decode_options): Do not allow volume length less
	than record size.
	* src/buffer.c (_gnu_flush_write): Compensate for the effect
	of eventual flush_archive occurring in the middle of buffer
	move.
	Increment records_written only if _flush_write was able to write
	something.
	* tests/multiv06.at: New testcase.
	* tests/Makefile.am, test/testsuite.at: Add tests/multiv06.at

2008-06-26  Sergey Poznyakoff  <gray@gnu.org.ua>

	* configure.ac, NEWS: Version 1.20.90
	* doc/tar.texi: Document -J, --no-auto-compress, etc.
	* src/buffer.c (ct_tar): New constant.
	(magic): Add lzop support.  Proposed by Kevin Day
	<thekevinday@gmail.com>.
	(check_compressed_archive): Do not use autodetect if the
	compression program was specified explicitly.
	Fall back to analyzing archive name, if the autodetection fails.
	* src/suffix.c: Add .lzo
	* src/tar.c: New options --lzop and --no-auto-compress.
	New short option -J (alias for --lzma).

	* src/buffer.c (try_new_volume): Print more information with error
	diagnostics.
	(_gnu_flush_write): Improve error checking.  Adjust
	real_s_sizeleft before calling new_volume to avoid creating
	malformed multivolume headers.
	* tests/delete05.at, tests/gzip.at, tests/ignfail.at,
	tests/longv7.at, tests/lustar01.at, tests/lustar02.at,
	tests/shortfile.at: Update to match new diagnostic wording
	(see 2008-05-06).

	* NEWS: Update.

2008-06-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi (exclude): Document support for new VCS.
	* THANKS: Update.
	* NEWS: Update.
	* tests/multiv05.at: Fix typos.
	* tests/volsize.at: Remove a TZ dependency.

2008-06-14  Dan Drake <dan@dandrake.org> (tiny change)

	* src/tar.c (exclude_vcs_files): Support for Bazaar, Mercurial and
	Darcs.

2008-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/tar.c (main): Reword the "delayed error" message. New
	wording proposed by Karl Berry.

2008-02-20  Sergey Poznyakoff  <gray@gnu.org.ua>

	* configure.ac: Raise version number to 1.20
	* src/compare.c (diff_dumpdir): const.
	* src/common.h (dumpdir_t,dumpdir_iter_t): New data types.
	(dumpdir_create0,dumpdir_create,dumpdir_free,dumpdir_locate)
	(dumpdir_first,dumpdir_next): New functions.
	* src/incremen.c (dumpdir_create0,dumpdir_create,dumpdir_free)
	(dumpdir_first,dumpdir_next): New functions.
	(dumpdir_locate): Rewrite using binary search.
	(struct directory): Change members char *contents, *icontents to
	struct dumpdir *dump, *idump. All references updated.
	(note_directory): Last arg is const.
	* src/names.c (add_hierarchy_to_namelist): buffer is const.
	* tests/incr03.at, tests/incr04.at, tests/rename02.at,
	tests/rename03.at: Insert calls to sleep between creation of files
	and adding them to the archive.

2008-03-31  Sergey Poznyakoff  <gray@gnu.org.ua>

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

2008-03-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS: Document --no-check-device and --check-device.
	* doc/rendition.texi: Change the way FIXME-*refs are handled in
	!PROOF.
	* doc/intern.texi, doc/tar.texi: Update.
	* doc/untabify.el: New file.
	* doc/Makefile.am (EXTRA_DIST): Add untabify.el
	(untabify, final, check-format, check-refs, check-fixmes)
	(check-unrevised, all-check-docs, check-docs): New rules.

	* src/common.h (check_device_option): New global.
	* src/incremen.c (procdir): Use boolean and instead of bitwise
	one. Patch by Jean-Louis Martineau.
	Compare device numbers only if check_device_option is set.
	* src/tar.c: New command line options --no-check-device and
	--check-device. Proposed by Jean-Louis Martineau.
	(parse_opt): Hanlde new options.
	(decode_options): Initialize check_device_option to true.

	* THANKS: Update

2008-03-06  Sergey Poznyakoff  <gray@gnu.org.ua>

	* bootstrap: Use rsync to get translations.
	* doc/tar.texi: Minor change.
	* lib/.cvsignore: Update
	* po/.cvsignore: Update
	* src/system.c: Remove include setenv.h.
	* tests/atlocal.in (STAR_DATA_URL): Update.
	* tests/star/README: Update URL.

2008-02-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Fix a typo. Reported by Denis Excoffier.

2008-02-08  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS: Update.
	* configure.ac: Version 1.19.90
	* po/POTFILES.in: Add missing files.
	* src/compare.c (verify_volume): Honor --ignore-zeros.
	Proposed by Jan-Benedict Glaw.
	* tests/shortfile.at (AT_KEYWORDS): Add shortfile0.

2008-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS: Update.
	* src/create.c (dump_file0): Apply transform_name to symlink
	targets.

2008-02-04  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/transform.c: Support multiple --transform options. Support
	semicolon-separated lists of replace expressions.
	* NEWS, tar.texi: Document changes to the --transform option.

2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>

	* doc/tar.texi: Update Back-Cover text to reflect new GNU wording.

2007-12-17  Paul Eggert  <eggert@cs.ucla.edu>

	Exit with nonzero status if a close fails on an archive.
	Problem (and initial trivial fix)
	* src/buffer.c (close_archive, new_volume): close_error, not
	close_warn.

2007-12-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/buffer.c (check_compressed_archive): Do not bail out if the
	file is too short, set boolean flag, passed as an argument
	instead.  This fixes a bug introduced on 2007-08-24. See also
	tests/shortupd.at.

	* tests/Makefile.am, tests/testsuite.at: Add shortupd.at.
	* tests/shortupd.at: New test.

2007-11-12  Jim Meyering  <meyering@redhat.com>

	Don't read from name[-1].
	* src/incremen.c (make_directory): Handle namelen == 0, since
	find_directory_meta calls make_directory ("").

2007-11-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	* bootstrap (checkout): Use URL of the gnulib CVS mirror.
	* gnulib.modules: Add fseeko and snprintf.

2007-10-31  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/checkpoint.c: New actions: bell and ttyout
	* src/system.c (sys_exec_info_script)
	(sys_exec_checkpoint_script): pass the current blocking factor in
	TAR_BLOCKING_FACTOR environment variable.
	* doc/tar.texi: Update
	* NEWS: Update

2007-10-30  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/Makefile.am: Use texi2html and the CVS version of gendocs.sh
	to create HTML versions of the manual.
	* doc/gendocs_template: Likewise.
	* doc/tar.texi: Document --hard-dereference and
	--checkpoint-action options. Improve documentation of
	--check-links.

2007-10-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS: Update
	* configure.ac: Version 1.19.1
	* po/POTFILES.in: Add src/checkpoint.c
	* src/Makefile.am (tar_SOURCES): add checkpoint.c
	* src/checkpoint.c: New file - checkpoint handling.
	* src/buffer.c (checkpoint, do_checkpoint): Remove.
	(_flush_write, simple_flush_read, _gnu_flush_read): Use
	checkpoint_run.
	* src/common.h (enum checkpoint_style): Remove.
	(checkpoint_style): Remove.
	(DEFAULT_CHECKPOINT): New define.
	(hard_dereference_option): New variable.
	(sys_exec_checkpoint_script): New declaration.
	* src/create.c (file_count_links): do nothing if
	hard_dereference_option is set.
	* src/system.c (sys_exec_checkpoint_script): New function.
	(sys_exec_info_script): Restore SIGPIPE handler.
	* src/tar.c: (parse_opt): New options --hard-dereference,
	--checkpoint-action.
	(decode_options): Call checkpoint_finish_compile.

	* src/system.c (sys_exec_info_script): Initialize buf. Problem
	reported by Bengt-Arne Fjellner.

2007-10-18  Jim Meyering  <jim@meyering.net>

	Avoid compiler warnings.
	* src/list.c (read_header_primitive): Define two locals, to
	avoid incorrect "may be used uninitialized" warnings.
	* src/incremen.c (procdir): Remove decl of unused local, "len".

2007-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi (gzip): Remove compression patent
	warning. According to Brett Smith, the patent is
	expired.

2007-10-17  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/suffix.c: New file. Compress format detection by archive
	suffix (when creating). Suggested by Jean-Pierre Demailly.
	* src/Makefile.am: Add suffix.c
	* src/buffer.c (magic): Add an entry for new lzma format. Proposed
	by Lasse Collin.
	* src/common.h (set_comression_program_by_suffix): New prototype.
	* src/tar.c: New options --auto-compress (-a) and --lzma
	* THANKS: Add Lasse Collin and Jean-Pierre Demailly.
	* NEWS: Update
	* doc/tar.texi: Update

2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>

	* src/utf8.c (string_ascii_p): Recode to avoid bogus GCC 4.2.1
	warning about "comparison is always true due to limited range of
	data type" when char is unsigned.

2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>

	Adjust to recent gnulib changes.
	* configure.ac: Dont' check for strerror, since gnulib now does this.
	* .cvsignore: Add m4, tar-[0-9]*.
	* lib/.cvsignore: Adjust to various gnulib file name changes.
	Add .deps, rmt-command.h.

2007-10-10  Sergey Poznyakoff  <gray@gnu.org.ua>

	* configure.ac, NEWS: Raise version number to 1.19
	* tests/star/README: Update

2007-10-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/create.c (dump_regular_file): Fix file padding in case of
	truncation to zero size.
	* NEWS: Update

2007-10-04  Sergey Poznyakoff  <gray@gnu.org.ua>

	* tests/T-null.at: Use AT_DATA for sample output.

2007-10-03  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/incremen.c (try_purge_directory): Ensure that arguments to T
	and R are safe.

2007-09-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/incremen.c (obstack_code_rename): Apply safer_name_suffix to
	name arguments before storing them in T and R records. Reported by
	Nicholas Cole.

2007-09-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	* configure.ac: Raise version number to 1.18.90
	* NEWS: Likewise

	* doc/snapshot.texi: Document version 2.
	* doc/dumpdir.texi: Update.

	Implement --exclude-tag* and --exclude-cache* options for listed
	incremental archives.
	New option --exclude-vcs to exclude VCS-specific files and
	directories.

	* NEWS: Update
	* doc/tar.texi: Document --exclude-vcs option
	* src/common.h (exclusion_tag_warning, check_exclusion_tags): New
	prototypes.
	* src/create.c (exclusion_tag_warning, check_exclusion_tags):
	Remove static qualifier.
	(check_exclusion_tags): account for dirname without terminating
	slash.
	(dump_dir0): exclusion_tag_all is handled elsewhere.
	* src/incremen.c (struct directory): New member tagfile
	(make_directory): Initialize tagfile to NULL
	(procdir): New argument: entry
	Hanlde exclusion tags.
	(makedumpdir): Take into account directory->tagfile.
	(scan_directory): Hanlde exclusion tags.
	* src/tar.c: New option --exclude-vcs
	(exclude_vcs_files): New function

2007-09-14  Paul Eggert  <eggert@cs.ucla.edu>

	* AUTHORS: Remove unnecessary information.  Just list the
	principal authors.
	* THANKS: Remove info duplicated from AUTHORS.

2007-08-25  Jim Meyering  <jim@meyering.net>

	Don't include <getline.h>.  No longer needed.
	* src/incremen.c: Don't include <getline.h>.  No longer needed.
	* src/buffer.c: Likewise.
	* src/system.c: Likewise.
	* src/tar.c: Likewise.

	Avoid shadowing and unused-variable warnings.
	* src/create.c (check_exclusion_tags): Remove declaration of unused
	local, "ret".
	* src/compare.c (diff_dumpdir): Rename stat->stat_data to avoid
	shadowing the syscall.
	* src/buffer.c (do_checkpoint): Don't shadow the write syscall.
	(try_new_volume): Avoid shadowing "access".
	* src/tar.c (decode_options): Rename index->idx to avoid shadowing.
	(find_argp_option): Rename option->o to avoid shadowing.
	* src/incremen.c (scan_directory): Rename local, dir_name->dir,
	to avoid shadowing the function.
	(get_directory_contents): Likewise.
	* src/system.c (global_pid): Rename from "pid", to avoid being
	shadowed by locals.
	* src/extract.c (apply_nonancestor_delayed_set_stat):
	Rename st->sb to avoid shadowing another local.

2007-08-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	* configure.ac, NEWS: Raise version number to 1.18.1

	* src/buffer.c (check_compressed_archive): Detect files smaller
	than 512 bytes.
	* tests/shortfile.at: New test case for the above change.
	* tests/testsuite.at, tests/Makefile.am: Add shortfile.at

2007-08-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	* bootstrap: Gnulib initialization destroyed paxutils m4 files.
	Initialize paxutils structure after that of gnulib.

2007-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/names.c (contains_dot_dot): Fix double-dot recognition in
	case of duplicate /. Patch by Dmitry V. Levin.

	* bootstrap (symlink_to_gnulib): Make sure the target directory
	exists and create it if it does not.

	* doc/tar.texi: Fix a typo.

2007-06-28  Sergey Poznyakoff  <gray@gnu.org.ua>

	* bootstrap: Update for the change of the TP URL

2007-06-27  Sergey Poznyakoff  <gray@gnu.org.ua>

        Relicense under GPLv3

2007-06-21  Sergey Poznyakoff  <gray@gnu.org.ua>

	* tests/testsuite.at (AT_TAR_MKHIER): Skip test if genfile is
	unable to create the file
	* tests/lustar01.at: Likewise

2007-06-21  Eric Blake  <ebb9@byu.net>

        Resolve testsuite failures 40-42 on cygwin.
        * tests/testsuite.at (AT_TAR_MKHIER): Skip tests when long
        file names cannot be created.

2007-06-16  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/Makefile.am (tar_TEXINFOS): Add tar-snapshot-edit.texi
	* doc/tar-snapshot-edit.texi: New file
	* doc/tar.texi (Fixing Snapshot Files): New appendix

	* scripts/tar-snapshot-edit: New file
	* tests/extrac07.at: Add back write permissions on dir

2007-06-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	* tests/exclude.at: Sort the output.

2007-06-08  Sergey Poznyakoff  <gray@gnu.org.ua>

	* configure.ac, NEWS: Raise version number to 1.17

	* doc/tar.texi, doc/intern.texi: Replace: s/filename/file name/;
	s/(ASCII|ID|BSD)/@acronym{&}/;s/"[^"]+"/``&''/
	Use `path' only when it refers to search paths, use
	`file name' otherwise.
	Fix various errors (based on patch by Benno Schulenberg)

	* doc/tar.texi (Operation Summary): Restore alphabetical order of
	the options.

2007-06-02  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix bug, introduced on 2007-03-30.

	* src/common.h (xform_type): New data type
	(transform_member_name): Last argument is of xform_type type
	All callers updated

	* src/extract.c: Update calls to transform_member_name
	* src/list.c (decode_xform): Exempt symbolic links from component
	stripping and name suffix normalization.

	* tests/extrac07.at: Update

2007-05-30  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/xheader.c (decx): Unknown pax keywords produce a warning,
	not error.

2007-05-29  Paul Eggert  <eggert@cs.ucla.edu>

	* src/misc.c (set_file_atime): Use gl_futimens, not futimens,
	due to gnulib change.

2007-05-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/common.h (buffer_write_global_xheader): New function
	(struct xheader): Move definition to tar.h
	(extended_header): Remove global
	(xheader_init): New function
	(xheader_decode_global,xheader_store,xheader_read)
	(xheader_write_global,xheader_write,xheader_string_begin)
	(xheader_string_add,xheader_string_end): Take xhdr as first
	argument.
	* src/tar.h (struct xheader): New definition
	(struct tar_stat_info): New member xhdr (extended header).

	* src/xheader.c (xheader_init): New function
	(xheader_decode_global,xheader_store,xheader_read)
	(xheader_write_global,xheader_write,xheader_string_begin)
	(xheader_string_add,xheader_string_end): Take xhdr as first
	argument.

	* src/buffer.c (buffer_write_global_xheader): New function
	Update to use new xheader calls.

	* src/compare.c, src/create.c, src/delete.c, src/list.c,
	src/sparse.c, src/tar.c, src/update.c: Global extended_header
	removed, use new xheader calls instead.

	* tests/T-null.at: Minor fix
	* tests/atlocal.in (tarball_prereq): Discard eventual md5sum
	output.

2007-05-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/create.c (dump_file0): Original ctime cannot be used as a
	directory change indicator if --remove-files is given.

2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>

	Adjust to latest Gnulib.
	* lib/.cvsignore: Add dirfd.c, dirfd.h, float+.h, mbscasecmp.c,
	stdio.h, stdio_.h, stdlib.h, stdlib_.h, time.h, time_.h, unistd.h.
	Remove exit.h, getcwd.h, mempcpy.h, memrchr.h, mkdtemp.h, stpcpy.h,
	strcase.h, strchrnul.h, strdup.h, strndup.h, strnlen.h, time_r.h,
	vsnprintf.h.
	* m4/.cvsignore: Remove localedir.h.  Sort.

2007-04-03  Paul Eggert  <eggert@cs.ucla.edu>

	* src/common.h (closeopen): Remove decl.
	* src/misc.c: Don't include <sys/time.h>, <sys/resource.h>; no longer
	needed.
	(get_max_open_files, closeopen): Remove.  All callers removed.
	(chdir_dir): Use a different technique, which doesn't rely on closing
	all open files.
	* src/tar.c (main): Don't call closeopen.

2007-04-04  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS: Update
	* doc/tar.texi: Update
	* src/system.c (sys_exec_info_script): Store the
	inter-communication fd in the environment variable TAR_FD

2007-04-03  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/tar.c (main): Move closeopen after decode_options to
	allow shell process substitution to work.
	* tests/extrac07.at: Expect a warning on stderr.

2007-03-30  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/common.h (transform_name_fp): Change signature
	(transform_member_name): New function
	* src/extract.c (extract_link, extract_symlink): Use
	transform_member_name instead of safer_name_suffix so that
	--transform and --strip-components affect links as well.
	* src/list.c (transform_member_name): New function
	(decode_header): Use transform_member_name
	* src/names.c (all_names_found): Remove check for matching_flags.
	* NEWS: Update

	* TODO: Update
	* bootstrap (slurp): Remove any occurrences of $bt from the
	generated gnulib.mk
	* src/incremen.c: Do not include mkdtemp.h

2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>

	Adjust to recent gnulib changes.
	* lib/.cvsignore: Add fchownat.c, rmt-command.h, strerror.c, string.h,
	string_.h, sys, sys_time_.h, unistd_.h, wchar_.h, wctype_.h.
	Remove localedir.h, size_max.h, xsize.h.
	* src/xheader.c: Don't include stpcpy.h; no longer needed, now that
	gnulib string.h defines stpcpy on all platforms.

2007-01-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Document --exclude-caches* and --exclude-tag*
	options.
	* src/common.h (exclude_caches_option): Remove
	(enum exclusion_tag_type): New data type
	(add_exclude_tag): Rename to add_exclusion_tag
	(cachedir_file_p): New prototype
	* src/create.c (struct exclude_tag): rename to exclusion_tag
	(check_exclusion_tags): New function
	(cachedir_file_p): New function (from check_cache_directory)
	(dump_dir0,dump_file0): Use check_exclusion_tags
	* src/tar.c: New options --exclude-caches-all,
	--exclude-caches-under, --exclude-tag-all, --exclude-tag-under
	* tests/exclude.at: New file
	* tests/Makefile.am (TESTSUITE_AT): Add exclude.at
	* tests/testsuite.at: Add exclude.at

2007-01-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	* gnulib.modules: Require strerror
	* doc/gendocs_template: Fix typos
	* scripts/xsparse.c (expand_sparse): use ftruncate to handle the
	trailing hole
	* src/sparse.c (sparse_skip_file,pax_dump_header_1)
	(pax_decode_header): Keep track of the number of bytes
	written.
	* configure.ac: Version 1.16.2
	* NEWS: Update

2007-01-04  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/compare.c (diff_dumpdir): Compare directory contents using
	dumpdir_cmp.  Do not free dumpdir_buffer, it will leave the
	incremental directory table in the inconsistent state and trigger
	full dump.
	(read_and_process): Process dumpdirs no matter what the archive
	format.
	* src/incremen.c (list_dumpdir): Minor fixes.

	* src/compare.c (read_and_process): Fix type of "size"

2006-12-13  Sergey Poznyakoff  <gray@gnu.org.ua>

	* tests/T-null.at: Skip the test if genfile is not able to create
	the filename with an embedded newline.

2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>

	Port to Forte Developer 7 C 5.4 and C99.
	* src/common.h (add_exclude_tag): Add decl; C99 requires this
	and Forte warns about it.
	* src/incremen.c: Include <mkdtemp.h> for mkdtemp prototype,
	for same reason.
	* src/misc.c (get_max_open_files): Rewrite to avoid code that
	Forte C complains about as being unreachable.
	* src/xheader.c (mtime_code): Rewrite to avoid Forte error
	reported by Trond Hasle Amundsen.

	* src/incremen.c (compare_dirnames): Rewrite to avoid casts.
	* src/utf8.c (string_ascii_p): Likewise.
	* src/xheader.c (mtime_coder, volume_size_coder, volume_offset_coder):
	Likewise.

2006-12-08  Sergey Poznyakoff  <gray@gnu.org.ua>

	* bootstrap: Add paxutils files to dot_ignore.

	* configure.ac: Raise version number to 1.16.1
	* bootstrap (slurp): Create .(cvs|git)ignore if not present
	* po/.cvsignore, m4/.cvsignore: Remove automatically generated
	files.

2006-12-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS: Update
	* Makefile.am (distclean-local): Fixed
	* doc/tar.texi: Update documentation of --exclude-tag
	* src/create.c (dump_dir0): Move checks for exclude tags to
	dump_file0.
	(dump_dir): Move calls to ensure_slash to dump_file0
	* src/extract.c (extract_file): Call skip_member if open fails.
	Patch proposed by Jan-Benedict Glaw <jbglaw@lug-owl.de>
	* tests/truncate.at: Use genfile instead of dd, because on some
	systems /dev/zero is not available.

2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>

	* NEWS: Fix some race conditions with tar -x --same-owner.
	* src/extract.c (ARCHIVED_PERMSTATS): Add a comment saying that
	S_IRWXG | S_IRWXO might be masked out.
	(set_mode): Set the mode if some bits were masked out originally.
	(set_stat): Don't chmod before chown, as that might temporarily
	grant permissions that we don't want to grant.  The chmod was
	there only to work around broken hosts, so add a comment advising
	users not to use those broken hosts instead.
	(repair_delayed_set_stat, extract_dir):
	Remember to mask out current umask before inverting permissions.
	(extract_dir): If the owner might change, or if the mode has
	special bits, create the directory 700 at first, but restore it later.
	(open_output_file): New arg mode; all uses changed.
	(extract_file, extract_node, extract_fifo): If the owner might
	change, omit group and other bits at first, but restore them after
	changing the owner.

2006-12-04  Jim Meyering  <jim@meyering.net>

	* doc/tar.texi (Long Options): Remove doubled word.

2006-11-30  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/xheader.c (xheader_read): Remove unused variable

	* po/POTFILES.in: Remove src/mangle.c

	* bootstrap: Implement --update-po and .bootstrap

	* src/create.c (dump_dir0): Implement --exclude-tag option
	* src/tar.c: Likewise
	* doc/tar.texi (exclude): Document --exclude-tag

2006-11-29  Paul Eggert  <eggert@cs.ucla.edu>

	* NEWS: Remove support for mangled names.
	* doc/tar.texi (verbose tutorial): Likewise.
	* src/Makefile.am (tar_SOURCES): Remove mangle.c.
	* src/common.h (extract_mangle): Remove decl.
	* src/extract.c (extract_mangle_wrapper): Remove.
	(prepare_to_extract): Remove support for mangled names.
	* src/list.c (read_and, print_header): Likewise.
	* src/mangle.c: Remove.
	* src/tar.h (GNUTYPE_NAMES): Remove.

	Port to latest gnulib.  There were a lot of changes, so the
	simplest way to get this up and running was to switch to coreutils
	bootstrap procedure.  I noticed one feature missing after this
	merge: the ability to update a single .po file.  I can add that
	later if need be.
	* README-cvs, bootstrap.conf: New files.
	* lib/.cvsignore: Remove Makefile.am, printf-parse.c, vasnprintf.c.
	Add fstatat.c, gnulib.mk, openat-proc.c, same-inode.h, stat_.h,
	tempname.c, tempname.h, uinttostr.c.
	* lib/printf-parse.c, lib/vasnprintf.c: New files, from coreutils,
	to override gnulib, so that we don't need xsize.h.
	* bootstrap: Replace with coreutils bootstrap, except add support
	for paxutils.
	* configure.ac (gl_USE_SYSTEM_EXTENSIONS): Remove, as gl_EARLY now
	does this.
	(gl_EARLY, gl_INIT): Add.
	(tar_GNULIB): Remove.
	* gnulib.modules: Add configmake.
	* lib/Makefile.tmpl: Remove, replacing with....
	* lib/Makefile.am: New file.
	* src/Makefile.am (tar.o): Remove dependency: Automake does this
	for us.
	* src/tar.c: Include <configmake.h> and <rmt-command.h>, not
	<localedir.h>.

2006-11-13  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/xheader.c (mtime_coder): Treat non-null data as a pointer to
	struct timespec, overriding st->mtime
	* src/create.c (start_header): Pass mtime as a call-specific data
	to xheader_store.

	* tests/truncate.at: Do not use 'k' modifier in dd options.
	* tests/append02.at: Do not depend on command timing.

2006-11-01  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/tar.c (enum read_file_list_state.file_list_skip): New value
	(read_name_from_file): Skip zero-length entries

	* tests/T-empty.at: New test case
	* tests/T-null.at: New test case
	* tests/extrac07.at: New test case
	* tests/Makefile.am: Add new test cases.
	* tests/testsuite.at: Add new test cases.
	* tests/extrac02.at: Add more keywords
	* tests/extrac04.at: Likewise
	* tests/extrac06.at: Likewise
	* tests/shortrec.at: Do not assume tar's default archive is stdout

2006-10-31  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/extract.c, src/xheader.c: Call last_component instead of
	base_name. The latter returns a malloced string since 2006-03-11.

2006-10-21  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS, configure.ac: Version 1.16
	* Makefile.am (distclean-local): New rule

2006-10-17  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/tar.c: Fix help output formatting.  Thanks Benno
	Schulenberg.

2006-10-16  Sergey Poznyakoff  <gray@gnu.org.ua>

	* Makefile.am (dist-hook): Create a cpio archive.
	* NEWS: Update

2006-10-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi (Synopsis): Document tar exit codes.
	* src/create.c (dump_regular_file,dump_file0): Set exit_status to
	TAREXIT_DIFFERS if the file being dumped was truncated or
	otherwise changed.
	* src/tar.c: Do not attempt to close stderr after call to
	close_stdout.
	* tests/grow.at: New test case
	* tests/Makefile.am: New test grow.at
	* tests/testsuite.at: Likewise
	* tests/truncate.at (AT_KEYWORDS): Keyword `filechange'
	Test tar exit status.

	* src/buffer.c (_open_archive): Make sure stdlis is set to stderr
	when we are writing archive to stdout (unless --index-file is
	used). Bug introduced on 2006-07-06.
	* tests/Makefile.am: New test verbose.at
	* tests/testsuite.at: Likewise
	* tests/indexfile.at (AT_KEYWORDS): Add stdout keyword
	* tests/verbose.at: New test case

2006-10-02  Sergey Poznyakoff  <gray@gnu.org.ua>

	* THANKS: Add Joerg Weilbier
	* src/buffer.c (new_volume): Initialize current_block
	* src/xheader.c (xheader_string_end): Fix diagnostic message.
	* tests/multiv05.at: New testcase.
	* tests/Makefile.am, tests/testsuite.at: Add multiv05.at

2006-09-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	* bootstrap: Use ${package} instead of hardcoding package name
	* doc/tar.texi: Minor fix
	* src/tar.c (doc0, doc1, initialize_argp_doc): Removed.  Rely on
	the new argp method instead.

2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>

	* README: Fix a typo

2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>

	Adjust to latest gnulib.
	* lib/.cvsignore: Add at-func.c, configmake.h, fchmodat.c,
	fcntl.h, fcntl_.h, inttypes_.h, lstat.c, lstat.h.
	* tests/testsuite.at (AT_TAR_MKHIER): Use install-sh -d
	rather than the no-longer-included mkinstalldirs.

2006-09-08  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/incremen.c (try_purge_directory): Initialize struct st.  Fix
	condition for selecting candidates for removal.
	* README-alpha: List texinfo among build prerequisites for the CVS
	version.

	* bootstrap (intl_files_to_remove): Do not remove m4/inttypes-h.m4
	and m4/inttypes-pri.m4

2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>

	* bootstrap: Set XGETTEXT_OPTIONS to flag our printf-format functions,
	so that translators are warned about strings that are formats but
	don't look like formats.  This might help prevent core dumps.
	* configure.ac (AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.
	Suggested by Eric Blake to avoid problems like
	<http://lists.gnu.org/archive/html/bug-coreutils/2006-07/msg00087.html>.
	(AM_GNU_GETTEXT_VERSION): Upgrade from 0.12.1 to 0.15.  The gettext
	manual says we should use the version number normally expected of
	maintainers, neither more nor less.

	* bootstrap (get_translations):
	Don't exclude ky.po; it is working again.

2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>

	* bootstrap (get_translations):
	Don't exclude ja.po; it is working again.
	Don't remove all old .po files if we're merely updating one.
	* po/.cvsignore: Add Makevars.

2006-08-07  Paul Eggert  <eggert@cs.ucla.edu>

	* src/tar.c: Work around limitation imposed by gettext 0.15
	by concatenating strings with "\v" after translation.
	(doc): Remove, splitting into:
	(doc0, doc1): New constants.
	(argp): Don't use doc; just initialize to NULL.
	(initialize_argp_doc): New function.
	(decode_options): Use it.

	* bootstrap: Redo po file retrieval to match Bison's method,
	since the translation project changed its index format.
	Don't use --assume-autoconf; it's now replaced
	by looking in configure.ac.
	(m4/codeset.m4, m4/intdiv.m4, m4/inttypes-pri.m4, m4/isc-posix.m4):
	(m4/lcmessage.m4, m4/onceonly_2_57.m4, m4/gettext.m4, m4/glibc21.m4):
	(m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-prefix.m4, m4/po.m4):
	(m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4):
	Don't rename to ..._gl.m4, as this is no longer needed.
	(m4/geteext.m4): Patch to remove the need for intl/*.
	Use autopoint manually, then remove the intl files,
	then undo changes to gnulib files that autoreconf made,
	and then run aclocal/autoconf/autoheader/automake.
	This makes our bootstrap procedure closer to Bison's.
	(po/Makevars): Generate automatically.
	* configure.ac (AC_PREREQ): Update from 2.59 to 2.60.
	(gl_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Remove.
	* gnulib.modules: Add inttypes, stdint.
	* lib/.cvsignore: Add close-stream.c, close-stream.h,
	stdint.h, stdint_.h.
	* po/Makefile: Remove; now automatically generated.

	* src/incremen.c (read_incr_db_01): Check input strings more
	carefully.  Do not pass arbitrary char values to isspace, as
	this has undefined behavior.  Likewise for assigning arbitrary
	uintmax_t values to other types.
	(read_negative_num, read_unsigned_num, read_timespec):
	New functions, to check input values a bit more carefully.
	(read_num): Use read_unsigned_num.  New arg MAX_VAL;
	all callers changed.
	(read_incr_db_2): Use these new functions.
	Use a consistent diagnostic for unexpected EOF.
	(read_directory_file): Do not assign arbitrary uintmax_t value
	to int.
	(read_timespec, write_directory_file_entry, write_directory_file):
	Handle negative time_t values correctly.  We don't bother to do
	this with pre-2 formats, since presumably the time stamps were
	output incorrectly.

	* src/tar.c (doc): Don't use \v in an argument to gettext;
	gettext 0.15 rejects this.

2006-07-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/tar.c (decode_options): Do not require -L with -M -Hpax.
	It could be needed in future, but currently it is not.
	* src/create.c (to_chars_subst): Update comment regarding OLDGNU
	vs. GNU format differences.
	(mode_to_chars): Treat OLDGNU_FORMAT same as GNU_FORMAT. Fixes bug
	reported by TAMUKI Shoichi <tamuki@linet.gr.jp>, which caused
	equivalent `tar cf ...' and `tar rf ...' commands to produce
	different archives.

	* tests/append02.at: New test case
	* tests/Makefile.am, tests/testsuite.at: Add append02.at

2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>

	* bootstrap: Adjust to today's change to gnulib-tool by invoking
	it with --assume-autoconf='latest-stable'.

2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>

	Adjust to recent gnulib changes.
	* lib/.cvsignore: Remove atexit.c, exit.c, getndelim2.c, getndelim2.h,
	pathmax.h, paxconvert.c, paxerror.h, xstrdup.c.
	Add inttypes.h, mktime.c, wcwidth.h, xstrndup.c, xstrndup.h.
	* src/create.c (start_header): Adjust to API change to mode_adjust.

2006-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	* THANKS: Add Ralf Wildenhues
	* NEWS: Update

2006-07-09  Ralf Wildenhues   <Ralf.Wildenhues@gmx.de>

	* doc/dumpdir.texi, doc/snapshot.texi, doc/sparse.texi,
        doc/tar.texi: Fix some typos.

2006-07-06  Sergey Poznyakoff  <gray@gnu.org.ua>

	tar --index-file=FILE --file=- sent the archive to FILE, and
	the listing to stderr. Bug reported by Marcin Gryszkalis
	<mg@fork.pl>

	* src/buffer.c (_open_archive): Remove stdlis initialization
	* src/tar.c (decode_options): Initialize stdlis
	* tests/indexfile.at: New test case
	* tests/testsuite.at: Include indexfile.at
	* tests/Makefile.am (TESTSUITE_AT): Add indexfile.at

2006-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/Makefile.am (manual): Fix TEXINPUTS
	* doc/rendition.texi (FIXME): Do not use deprecated @quote-args.
	Do not use @allow-recursion. In its current form the macro is not
	recursive.

2006-07-03  Sergey Poznyakoff  <gray@gnu.org.ua>

	* bootstrap (update_po): Fix single translation update

2006-07-03  Sergey Poznyakoff  <gray@gnu.org.ua>

	* configure.ac (AC_CHECK_FUNCS): Check for getdtablesize
	* src/common.h (closeopen): New function
	* src/misc.c (chdir_arg): Use x2nrealloc to reallocate wd.
	(get_max_open_files,closeopen): New functions
	(chdir_do): Do not use save_cwd if it was already used more than
	max_open_files-4 times to avoid running off the file
	descriptors.
	* src/tar.c (main): Call closeopen
	* doc/tar.texi: Update --directory description
	* NEWS: Update

2006-06-26  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Update. Add cross-references.
	* doc/sparse.texi: Add cross-references.

2006-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	* scripts/xsparse.c: A sample utility to expand sparse files
	extracted by third-party tars. It is not meant to be installed nor
	to be included in the distribution. It is here, so that it can be
	obtained either from CVS or from the tar web site.
	* doc/Makefile.am (tar_TEXINFOS): Sorted
	* doc/tar.texi (Other Tars): New node describing how to extract
	GNU-specific member formats using third-party tars.
	* src/common.h (sparse_file_p): Remove
	* src/sparse.c: Likewise
	* src/create.c: Use ST_IS_SPARSE instead of sparse_file_p (update
	paxutils first)
	* src/tar.c: --sparse-version turns on --sparse

2006-06-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/buffer.c (print_total_stats): Add default case.
	* src/common.h (name_init): New prototype.
	(xheader_string_end): Return bool.
	* src/extract.c (extract_volhdr): Add missing return
	* src/incremen.c: Remove not used variables
	* src/sparse.c (pax_dump_header_0): Return false if
	xheader_string_end fails (for 0.1 formats).
	(pax_dump_header): Return meaningful value
	* src/transform.c (segm_count): Change type to size_t
	* src/xheader.c (xhdr_tab.decoder): pass keyword as a second
	argument. All callers changed.
	(decode_record): Check for numeric overflow
	(xheader_string_end): Return boolean value. Check for possible
	numeric overflow

2006-06-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/sparse.texi: New file
	* doc/Makefile.am (tar_TEXINFOS): Add sparse.texi
	* doc/intern.texi (Sparse Formats): New node
	* doc/tar.texi: Update master menu

	* src/common.h (tar_sparse_major,tar_sparse_minor): New globals.
	* src/sparse.c: Implement sparse format versioning. Implement new
	version (1.0) of PAX sparse format.
	(pax_sparse_member_p): Fix condition
	(pax_dump_header): A dispatcher function
	(pax_dump_header_0,pax_dump_header_1): New functions.
	(pax_optab): Update
	(oldgnu_dump_header): Minor fix: make sure
	sparse_header.isextended is set before calling
	set_next_block_after
	* src/tar.c: New option --sparse-version
	* src/tar.h (struct tar_stat_info.sparse_major,sparse_minor): New
	members.
	* src/xheader.c: Implement new keywords: GNU.sparse.name,
	GNU.sparse.major, GNU.sparse.minor, GNU.sparse.realsize

	* tests/spmpv00.at, tests/spmvp01.at, tests/spmvp10.at: New
	testcases.

	* tests/Makefile.am: Add spmvp00.at, spmpv01.at, spmpv10.at
	* tests/shortrec.at: Explicitely give `-f -' to the tar invocation
	* tests/sparsemvp.at: Rewritten as an include file.
	(TAR_MVP_TEST): New macro
	* tests/testsuite.at: Include sparsemvp.at, spmvp00.at,
	spmvp01.at, spmvp10.at

2006-06-21  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi (Overriding File Metadata): New node
	Document --mtime option.
	* src/common.h (set_mtime_option,mtime_option): New globals
	* src/create.c (start_header): Override mtime if requested
	* src/tar.c: Implement new option, --mtime, allowing to set
	modification times for all archive members during creation.
	(struct tar_args): textual_date_option replaced with a linked list
	textual_date. All references updated.
	(get_date_or_file,report_textual_dates): New functions.
	* configure.ac: Raise version number to 1.15.92
	* NEWS: Update

2006-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/common.h (struct name.explicit): Remove
	Use variable names in all declarations
	(name_scan): Remove second argument
	* src/delete.c: Remove second argument from calls to name_scan
	* src/update.c: Likewise
	* src/incremen.c (procdir): Use is_individual_file to check for
	files explicitly specified in the command line. Fixes bug
	reported by Dat Head on 19 Jun 2006 (descending into mountpoints
	with --one-file-system in use)
	* src/misc.c (maybe_backup_file): Second argument is bool
	* src/names.c (name_next_elt): Call register_individual_file
	(namelist_match): Remove third argument
	(name_match): Change return type to bool
	(name_scan): Remove second argument
	* src/sparse.c (pax_dump_header): Store original sparse file name
	in GNU.sparse.name variable. The name field in the ustar header
	now contains generated name (%d/GNUSparseFile.%p/%f), so that
	non-pax-aware tars won't extract the file under the original
	filename.
	* src/xheader.c (GNU.sparse.name): New variable for storing sparse
	file name.

2006-06-13  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/Makefile.am (check-options): Expand macros before grepping
	in $(info_TEXINFOS)
	* doc/rendition.texi (FIXME) [!PROOF_FOOTNOTED]: Enclose in a
	cartouche
	* doc/tar.texi: Define op as codeindex. Use special macros to
	populate it
	Consequently prefer @dfn{long options} over @dfn{mnemonic
	options}.
	Document --unquote, --no-unquote
	(Short Option Summary): Build a table of cross-references to the
	corresponding long options.
	(Using Multiple Tapes,Multi-Volume Archives): Rewritten

	* doc/value.texi (xopindex,opsummary): New macros

	* doc/Makefile.am (check-options): New goal
	* doc/tar.texi: Update
	* src/tar.c: Implement --overwrite-dir option (long ago
	documented).

2006-06-12  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Document better the --totals option
	* NEWS: Update
	* src/buffer.c (total_blocks_deleted): New variable
	(set_start_time): Set volume_start_time and last_stat_time as well
	(set_volume_start_time): New function
	(compute_duration): Do not call set_start_time, update
	last_stat_time instead. Use it in calculation instead of
	start_time, which is now set only once, upon startup.
	(print_total_written): Removed.
	(print_total_stats): New function for printing byte/speed statistics.
	(_open_archive): Detect attempts to update compressed archives.
	(_gnu_flush_write): Always update prev_written.
	(open_archive): Call set_volume_start_time.
	* src/common.h (volume_start_time,last_stat_time): New globals
	(print_total_written): Replaced with:
	(print_total_stats): New function
	* src/delete.c (records_skipped): Remove static qualifier, the
	variable is used by print_total_stats in buffer.c
	* src/extract.c (check_time): Use volume_start_time when checking
	for timestamp plausibility.
	* src/tar.c: (options, parse_opt): Allow for optional argument to
	the --totals option, which specifies a signal upon delivery of which
	the statistics must be output.
	(main): Call print_total_stats if total_option is set.

2006-06-11  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/xheader.c (xheader_set_single_keyword): Fix typo.
	(decode_time): Avoid using gotos.

	* doc/mastermenu.el: New file
	* doc/Makefile.am (master-menu): New goal
	* doc/tar.texi: Update master menu

2006-06-10  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Remove leftover include

2006-06-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/Makefile.am (tar_TEXINFOS): Add intern.texi
	(EXTRA_DIST): Remove convtexi.pl, add texify.sed
	* doc/intern.texi: New file
	* doc/convtexi.pl: Remove
	* doc/texify.sed: Auxiliary script to convert ../src/tar.h to
	header.texi
	* doc/rendition.texi: Fix typo
	* doc/tar.texi: Update
	* src/tar.h: Fix indentation, introduce end-of-format marker for
	texify.sed

	* THANKS: Add Jason Armistead
	* doc/tar.texi: Update
	* NEWS: Update
	* src/buffer.c: Implement more flexible checkpoint style
	* src/common.h (checkpoint_option): Change type to unsigned
	(checkpoint_style): New variable.
	* src/tar.c: --checkpoint takes an optional argument specifying
	number of records between two successive checkpoints (proposed
	by Jason Armistead on 2004-06-22).  Optional dot starting the
	argument means "print dots instead of textual checkpoints".
	(tar_help): New function
	* src/transform.c: Minor fixes.

2006-06-08  Sergey Poznyakoff  <gray@gnu.org.ua>

	* gnulib.modules: Add mkdtemp
	* doc/dumpdir.texi: New file
	* doc/Makefile.am (tar_TEXINFOS): Add dumpdir.texi
	* doc/tar.texi: Document dumpdir format
	* src/incremen.c (dumpdir_locate,obstack_code_rename):
	(purge_directory): Re-implement renaming. Introduce
	'X' control code.
	(make_tmp_dir_name): Remove

	* src/transform.c (set_transform_expr,_transform_name_to_obstack):
	Implement NUMBER flag.
	(add_char_segment): Fix length assignment

	* doc/tar.texi: Update

2006-06-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/transform.c (transform_name_fp): Run fun even if
	_transform_name_to_obstack returns false.
	(_transform_name_to_obstack,set_transform_expr): Implement GNU
	extension case conversion operations.

	* doc/tar.texi (transform): Document the option.

2006-06-02  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS: Update
	* src/common.h (set_transform_expr): New function
	* tests/Makefile.am: Add incr04.at
	* tests/testsuite.at: Likewise
	* tests/incr04.at: New test case
	* tests/long01.at: Fix typo in the comment
	* tests/multiv04.at: Use genfile --files-from

	(Above changes need new genfile.c from paxutils)

	* TODO: Update
	* NEWS: Update
	* doc/tar.texi: Update
	* src/transform.c: New file
	* src/Makefile.am (tar_SOURCES): New module transform.c
	* src/common.h (transform_name, transform_name_fp): New functions
	(show_stored_names_option): Renamed to
	show_transformed_names_option. All uses changed
	* src/create.c (dump_file0): Transform file name
	* src/extract.c (extract_archive): safer_name_suffix and
	stripped_prefix_len are now called by decode_header
	* src/list.c (print_header): Update displayable name selection.
	* src/tar.c: New option --transform
	New option --show-transformed-names generalizes
	--show-stored-names. The latter is retained as an alias.

2006-05-31  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/incremen.c (make_directory): Fix initialization of struct
	directory.

2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Document use of globbing patterns.
	* src/tar.c (parse_opt): Add comment before --preserve case.

2006-05-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS: Update
	* doc/tar.texi: Update
	* configure.ac (AM_INIT_AUTOMAKE): Use tar-ustar option. Raise
	version requirement to 1.9
	* src/common.h (struct name): Refactored
	(warn_regex_usage): New variable.
	(dump_file): First argument is const char*.
	(name_init,name_add): Removed
	(name_add_name,name_add_dir): New functions
	(name_next): Return const char*.
	* src/create.c: (dump_file,dump_file0): First argument is const
	char*. All callers updated.
	* src/names.c: Rewritten handling of member names in the command
	line. Tar no longer attempts to guess globbing patterns, instead
	it relies on --wildcard option.
	(init_names): Removed.
	(struct name_elt): New structure.
	(name_array): Change type to struct name_elt. All references updated
	(name_add_name,name_add_dir): New functions
	(name_next_elt): New function
	(name_next): Rewritten using name_next_elt.
	(namelist_match): Rewritten pattern matching using
	exclude_fnmatch.
	(names_notfound): Warn if globbing patterns were used without
	--wildcards option
	* src/tar.c (options): Move globbing-related options into a
	separate group. Set -l as an alias to --check-links, as required
	by UNIX98
	(struct tar_args): New fields
	wildcards,matching_flags,include_anchored
	(MAKE_EXCL_OPTIONS,MAKE_INCL_OPTIONS): New macros
	(parse_opt): Use x2nrealloc to grow archive_name_array.
	Use MAKE_EXCL_OPTIONS,MAKE_INCL_OPTIONS to create appropriate
	fnmatch options, and name_add_name,name_add_dir to handle member
	name and -C arguments.
	(decode_options): Likewise
	(main): Remove call to init_names.

	* tests/append.at, tests/append01.at, tests/extrac01.at,
	tests/options.at, tests/options02.at, tests/same-order01.at,
	tests/same-order02.at: Make AT_SETUP more readable.

2006-05-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/buffer.c (change_tape_menu): Fix typo (uninitialized
	variable) introduced yesterday.

2006-05-22  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Use @var{file_name} instead of @var{file name}
	* src/buffer.c (change_tape_menu): Break the loop after obtaining
	new archive name. Check for empty input line.

2006-05-15  Sergey Poznyakoff  <gray@gnu.org.ua>

	* tests/atlocal.in (XFAILFILE): New variable
	* tests/version.at: Create $XFAILFILE on failure
	* tests/testsuite.at (AT_TAR_CHECK): Declare expected failure if
	$XFAILFILE exists.

2006-05-13  Sergey Poznyakoff  <gray@gnu.org.ua>

	* THANKS: Update
	* src/buffer.c (read_header0): Use read_header_primitive to avoid
	clubbering current_tar_info. All callers updated.
	* src/common.h (read_header_primitive): New function
	* src/extract.c (extract_volhdr): New function
	(prepare_to_extract): Use extract_volhdr as extractor for volume
	names.
	* src/list.c (read_header_primitive): New function
	(read_header): Front end for read_header_primitive
	* tests/chtype.at: New file
	* tests/volsize.at: New file
	* tests/Makefile.am (TESTSUITE_AT): Add chtype.at, volsize.at
	(check-full): New target.
	* tests/atlocal.in (TEST_DATA_URL,STAR_DATA_URL)
	(STAR_TESTSCRIPTS): Provide default values.
	(tarball_prereq): New function
	* tests/testsuite.at (AT_TARBALL_PREREQ): New defun
	(AT_STAR_PREREQ): Rewrite using tarball_prereq
	Include chtype.at and volsize.at
	* tests/volume.at: Add keywords.

	* tests/star/gtarfail.at, tests/star/gtarfail2.at,
	tests/star/multi-fail.at, tests/star/pax-big-10g.at,
	tests/star/ustar-big-2g.at, tests/star/ustar-big-8g.at
	(AT_STAR_PREREQ): Provide md5 sum.

	* lib/.cvsignore: Update

2006-05-08  Sergey Poznyakoff  <gray@gnu.org.ua>

	* tests/testsuite.at (AT_SORT_PREREQ, AT_UNPRIVILEGED_PREREQ): New
	defines

	* tests/extrac04.at, tests/incr03.at, tests/listed02.at,
	tests/pipe.at, tests/rename01.at, tests/rename02.at,
	tests/rename03.at, tests/same-order01.at: Call
	AT_SORT_PREREQ. Remove fd 2 redirection after calls to sort
	* ignfail.at: Call AT_UNPRIVILEGED_PREREQ

2006-05-08  Sergey Poznyakoff  <gray@gnu.org.ua>

	Listed incremental backups: keep more information about
	directories. Handle renamed directories more effectively
	(initial implementation, more updates to follow).
	Source tree before this point is tagged
	alpha_1_15_90_incremental_1.

        * NEWS: Update
        * configure.ac: Raise version number to 1.15.91
	* src/common.h (rename_directory,append_incremental_renames): New
	functions.
	* src/extract.c (rename_directory): New function
        * src/incremen.c (struct directory.contents, flags): New members
	(nfs,found,new): Remove. Replaced by appropriate bitmask values in
	`flags' field. All uses updated.
	(directory_meta_table): New table.
	(hash_directory): Rename to hash_directory_name
	(compare_directories): Rename to compare_directory_names
	(hash_directory_meta,compare_directory_meta,find_directory_meta):
	New functions
	(compare_dirents): Removed
        (note_directory): Get 7th argument: directory contents.
        All callers updated
        (dumpdir_locate,makedumpdir): New functions
        (scan_directory): Rewritten. Use makedumpdir to create a sorted
        dumpdir array. This makes the obstack argument unnecessary. Besides,
        ALL_CHILDREN flag is set only for new directories.
	(procdir): Change return type to struct directory. Return
	immediately if the directory was already initialized. Discover
	directory renames using directory_meta_table.
	(append_incremental_renames): New function.
        (read_directory_file, write_directory_file): Use new snapshot file
        format.
	* src/names.c (collect_and_sort_names): Update dir_contents of the
	first non-fake name entry when in listed incremental mode.

        * tests/incr03.at: New testcase
	* tests/rename01.at: New testcase
	* tests/rename02.at: New testcase
	* tests/rename03.at: New testcase
        * tests/Makefile.am: Add
	incr03.at,rename01.at,rename02.at,rename03.at
        * tests/testsuite.at: Likewise.
	* tests/listed02.at: Update for the new behavior
        * tests/multiv04.at (AT_KEYWORDS): Add missing incremental kw.

2006-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/buffer.c (try_new_volume): Attempt to continue if the name
	is apparently truncated in a GNU format volume.

	* tests/comprec.at, tests/delete01.at, tests/delete02.at,
	tests/delete04.at, tests/delete05.at, tests/extrac05.at,
	tests/listed01.at, tests/multiv01.at, tests/multiv02.at,
	tests/pipe.at, tests/same-order01.at, tests/same-order02.at,
	tests/sparse01.at, tests/sparse03.at: Always use genfile --file,
	this enables extra error checking.

	* tests/multiv03.at: Attempt to extract a member with truncated
	file name from the archive.

	* src/buffer.c (_open_archive): Remove unnecessary argument to
	check_compressed_archive.

2006-04-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	* tests/sparse01.at, tests/sparse02.at, tests/sparse03.at,
	tests/sparsemv.at, tests/sparsemvp.at: Skip the test if the file
	system does not support sparse files.
	* doc/tar.texi (@copying): Remove the reference to not existing
	invariant section.

2006-04-11  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/extract.c (extract_dir): Fix toggling existing directory
	permissions (Debian bug #361077). Use parts of patch provided by
	Ian Jackson <iwj@ubuntu.com>.
	* src/compare.c: Minor changes
	* src/incremen.c (directory.new): New member
	(note_directory,find_directory: Use make_directory to create
	struct directory entries
	(procdir): Avoid duplicating  directories in the incremental
	backup map.
	* tests/Makefile.am (TESTSUITE_AT): Add extrac06.at
	* tests/testsuite.at: Include extrac06.at

2006-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (trivial change)

	* tests/atlocal.in (PATH): Add build-aux from the source tree,
	not the build tree.

2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>

	* THANKS: Add Benno Schulenberg

2006-03-13  Jim Meyering <jim@meyering.net>

	* tests/listed02.at:  Sort the two lines of stderr from the
	first `tar -v --listed-incremental'.  They would come out
	reversed and provoke a test failure on a tmpfs
	file system.

2006-03-13  Benno Schulenberg <benno@nietvergeten.nl>

	* doc/tar.texi: Minor fixes.
	* src/tar.c (options): Consistently begin help messages with a
	lowercase letter.

2006-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>

	* tests/Makefile.am (AM_CPPFLAGS): Define LOCALEDIR

2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>

	* src/buffer.c (record_buffer_aligned): New var.
	(init_buffer): Use it to ensure that the buffer is aligned.
	This doesn't result in any measurable performance improvement
	on my host (Debian GNU/Linux 3.1 stable, with default block size),
	but I assume it does help on some hosts.

	* lib/.cvsignore: Sort.

2006-03-04  Sergey Poznyakoff  <gray@gnu.org.ua>

	* tests/shortrec.at: Use -f - to read from stdin.

2006-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Fix typo: --to-command instead of --to-program

2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>

	* tests/multiv04.at (split directory members in a MV archive):
	Don't use %X in an awk printf format; this doesn't work with
	Solaris 10 /usr/bin/awk.  Use %x instead.

2006-02-20  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/create.c (split_long_name): Fix maximum length estimation.
	Patch by Jim Lowe.
	* tests/Makefile.am (lustar01.at,lustar02.at,lustar03.at): New
	tests.
	* tests/atlocal.in: Add build-aux to the PATH
	* tests/long01.at: Remove mkhier, use AT_TAR_MKHIER instead
	* tests/longv7.at: Reword test title
	* tests/lustar01.at: New test
	* tests/lustar02.at: New test
	* tests/lustar03.at: New test
	* tests/testsuite.at (AT_TAR_MKHIER): New macro
	(lustar01.at,lustar02.at,lustar03.at): New tests.

2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>

	* bootstrap: Don't claim lib/Makefile.am is generated automatically
	from itself.

	Avoid installation glitches on Solaris 8 with Sun C 5.4.
	* lib/.cvsignore: Add system-ioctl.h.
	* lib/Makefile.tmpl (noinst_HEADERS): Add system-ioctl.h.
	* src/buffer.c: Include system-ioctl.h.
	* src/compare.c: Likewise.
	* src/delete.c: Likewise.
	* src/system.c: Include <getline.h>, <setenv.h>.
	* src/tar.c: Include <getline.h>.

2006-02-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/buffer.c (add_chunk_header): Free st.orig_file_name after
	calling	finish_header().
	(new_volume): Prompt the user for archive name if unable to open
	next archive.

	* src/create.c (dump_file0): Restore file_count_links,
	accidentally removed on 2005-11-29.
	* configure.ac: Raise version number to 1.15.90
	* NEWS: Likewise.

2006-02-08  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/tar.c (tar_set_quoting_style): Provide second argument to
	the format spec: program_invocation_short_name. Reported by Jim
	Meyering.

2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>

	* gnulib.modules: Add closeout, exitfial.
	* lib/.cvsignore: Add __fpending.c, __fpending.h, closeout.c,
	closeout.h.
	* src/buffer.c: Incluse closeout.h.
	(_open_archive): Use freopen rather than fopen, so
	that stdlis is always either stdout or stderr.  Use
	close_stdout_set_file_name to report its name.
	* src/tar.c: Include closeout.h and exitfail.h.
	(parse_opt, usage): Call close_stdout as appropriate, to check for
	write errors.
	(decode_options): Exit with status TAREXIT_FAILURE, not 1.
	(main): Set exit_failure, to exit with proper status on memory
	allocation failure and the like.
	Use close_stdout rather than rolling our own test.

	* NEWS: --version now outputs copyright etc., to conform to the
	GNU coding standards.  Remove --license.
	* gnulib.modules: Add version-etc-fsf.
	* doc/tar.texi: Document the change.
	* lib/.cvsignore: Add version-etc-fsf.c, version-etc.c, version-etc.h.
	* scripts/Makefile.am (SED_CMD): Update PAKCAGE_NAME, not PACKAGE.
	* scripts/backup.in: Remove --license.  Change --version to conform
	to GCS.
	* scripts/restore.in: Likewise.
	* scripts/backup.sh.in (license): Output briefer license in the
	style of coreutils, for consistency with other changes.
	* src/tar.c: Include <version-etc.h>.
	(LICENSE_OPTION): Remove.
	(options): Remove --license.
	(license): Remove.
	(parse_opt): Use version_etc instead of rolling it ourselves.
	Remove --license.
	* tests/version.at (tar --version): Check only the first line of
	output.

	* ChangeLog, NEWS, src/common.h, src/extract.c, src/incremen.c:
	* src/list.c, src/names.c, src/tar.h, src/xheader.c:
	Update copyright year to 2006.

2006-02-07  Jim Meyering  <jim@meyering.net>

	* src/xheader.c (sparse_map_decoder): Fix misleading diagnostic.

2006-01-31  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/common.h (get_gnu_dumpdir): Remove prototype
	(is_dumpdir): New function
	* src/extract.c (prepare_to_extract): Use is_dumpdir member to
	check for dumpdirs.
	* src/incremen.c (get_gnu_dumpdir): Static
	(is_dumpdir): New function
	(purge_directory): Use is_dumpdir
	* src/list.c (list_archive): Use is_dumpdir
	Do not wrap skip_member in mv_begin/mv_end, the function itself
	takes care of it.
	(decode_header): Set stat_info->is_dumpdir
	(skip_member): Do nothing if skipped is true
	* src/tar.h (struct tar_stat_info): New members is_dumpdir and skipped.

2006-01-22  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/tar.c (decode_options): Refuse using --delete with
	compression options.

2006-01-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS: Updated.
	* configure.ac (DEFAULT_QUOTING_STYLE): New configuration variable
	* doc/tar.texi: Initial documentation for --quoting-style,
	--quote-chars and --no-quote-chars option.
	* src/tar.c: Implement new options --quoting-style, --quote-chars
	and --no-quote-chars.

2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>

	* bootstrap: Default to pserver, and switch to cvs.sv.gnu.org,
	to accommodate recent changes to the GNU CVS server.
	* lib/.cvsignore: Add argp-pin.c, mkdirat.c, openat-priv.h.

2005-12-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/names.c (name_scan): Take an additional argument requesting
	exact matching.
	* src/common.h (name_scan): Change prototype.
	* src/delete.c, src/incremen.c, src/update.c: Update invocations
	of name_scan.

2005-12-13  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/common.h (struct name): New member `explicit'. Remove unused
	member `isdir'.
	* src/incremen.c (procdir): If name_scan() returns something,
	check if it was explicitly given in the command line
	* src/names.c (addname,add_hierarchy_to_namelist): Initialize
	explicit member appropriately.

	* src/incremen.c (procdir): If --one-file-system is given and a
	directory is found to be on another device, *and* this directory
	is explicitly given in the command line, then do not omit it.

2005-12-11  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS: Update
	* doc/tar.texi: Document --delay-directory-restore option.
	(Configuring Help Summary): Document usage of ARGP_HELP_FMT
	variable to customize help output.
	* src/common.h (delay_directory_restore_option): New global.
	* src/extract.c (directories_first): Replaced by
	delay_directory_restore_option. All uses changed.
	* src/tar.c (options,parse_opt): New options
	--delay-directory-restore and --no-delay-directory-restore

2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/buffer.c (open_archive): Add default case to shut up gcc.
	* src/common.h (set_file_atime): Add prototype.
	* src/create.c (to_chars_subst): Remove unused variable
	Make sure useful result code is returned.
	* src/incremen.c (read_directory_file): Fix format string
	Thanks Eric Blake for reporting.

2005-12-08  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi (Current status): Renamed to 'Changes' and moved to
	appendices.
	(Large or Negative Values): Rewritten
	* src/common.h (gid_to_chars, major_to_chars, minor_to_chars)
	(mode_to_chars, off_to_chars, size_to_chars, time_to_chars)
	(uid_to_chars, uintmax_to_chars): Return bool
	* src/create.c (gid_to_chars, major_to_chars, minor_to_chars)
	(mode_to_chars, off_to_chars, size_to_chars, time_to_chars)
	(uid_to_chars, uintmax_to_chars): Return bool
	(to_chars): Return bool
	(start_header): Check return values of conversion routines. Fail
	if unable to store data in the header.

2005-12-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Following the discussion with Karl Berry,
	discontinue using @value{} substitutions for Texinfo commands.
	Properly index all long options. Print a
	separate long option index.
	* doc/value.texi: Remove @set's

	* doc/tar.texi: Update --info-script documentation
	Resolve some more FIXMEs.
	* scripts/dump-remind.in: Use TAR_VOLUME instead of reading volno
	file.
	* src/buffer.c (new_volume): Update invocation
	(change_tape_menu): New function. Disable '!' command if given
	--restrict option.
	* src/common.h (sys_exec_info_script): Update declaration
	(restrict_option): New global
	* src/system.c (sys_exec_info_script): The script can supply new
	archive name to use by writing it to file descriptor 3.
	* src/tar.c (options): Add --restrict option. Use macros for
	option grouping.
	(license): Print full list of copyright years
	* NEWS: Update

2005-12-06  Eric Blake  <ebb9@byu.net> (trivial changes)

	* configure.ac (DENSITY_LETTER): Fix m4 overquoting.
	* .cvsignore: Ignore .bootstrap.

2005-12-06  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Document --to-command and --info-script
	options. Add missing xrefs.
	* src/buffer.c (new_volume): Use sys_exec_info_script() instead of
	system().
	* src/common.h (archive_format_string,subcommand_string)
	(sys_exec_info_script): New prototypes.
	* src/system.c (sys_exec_info_script): New function.
	* src/tar.c (archive_format_string): Remove static qualifier.
	(subcommand_string): New function.

2005-12-01  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/extract.c: Fix restoring of directory timestamps from
	incremental archives.
	(directories_first): New variable.
	(prepare_to_extract): Set directories_first
	(extract_archive): Call apply_nonancestor_delayed_set_stat() only
	if not extracting from an incremental archive
	(extract_dir): Obtain root_device here, to make sure it works
	correctly with -C.

	* src/incremen.c (purge_directory): Skip the member and return if
	the archive is not in incremental format.
	* tests/incr02.at: New testcase
	* tests/Makefile.am: Add incr02.at
	* tests/testsuite.at: Likewise

	* THANKS: Add Guerkan Karaman.
	* NEWS: Update

2005-11-30  Paul Eggert  <eggert@cs.ucla.edu>

	* doc/tar.texi (Option Summary): Rewrite the
	--atime-preserve=system description in response to Ian Turner's
	proposed patch.

2005-11-30  Ian Turner  <ian@zmanda.com>

	* doc/tar.texi (Extracting Specific Files): Remove obsolescent
	FIXME.

2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>

	* NEWS: New option --atime-preserve=system, which uses O_NOATIME.
	* THANKS: Add Ian Turner.

	* configure.ac: Prefer AC_CHECK_HEADERS_ONCE to AC_CHECK_HEADERS.
	Check for stropts.h and sys/filio.h too, for _FIOSATIME.
	* doc/tar.texi: Change "modification time" to "data modification
	time", "change time" to "status change time", and "filesystem" to
	"file system", so that we use terminology consistent with POSIX.
	Use American spacing rather than French for sentence ends.
	"non-dependable" -> "undependable".
	(Option Summary, Attributes): Explain better the pitfalls of the
	--atime-preserve option, and suggest read-only mounts,loopback
	mounts, and noatime mounts for older systems.
	* doc/value.texi (op-atime-preserve-system): Renamed from
	op-atime-preserver-system to fix a misspelling.
	* src/common.h (enum atime_preserve): Use lower case for enum values.
	* src/compare.c: Don't include utimens.h; no longer needed.
	(diff_file): Use set_file_atime rather than utimens; avoid closing
	diff_handle until after this, so that we can set the file time stamp
	via the file descriptor rather than via its name.
	* src/create.c: Don't include utimens.h; no longer needed.
	(dump_regular_finish): Remove.  All callers now do its work inline.
	(dump_dir): New arg FD.  All callers changed.
	Use fdsavedir rather than savedir.
	(unknown_file_error): Arg is a const pointer now.
	(dump_file0): 2nd arg is a const pointer now.
	Treat directories more like files, with respect to --atime-preserve.
	For example, also warn if a directory changes while we are dumping it.
	Prefer file descriptors to file names when retrieving/setting file
	attributes; this saves path-resolution time and allows us to avoid
	changing mtime/ctime on Solaris when restoring atime as root.
	Use O_DIRECTORY when opening directories, to avoid some race conditions.
	Do not reset atime if mtime has changed.  Report an error if
	we cannot reset atime.

	* lib/.cvsignore: Add malloc.h, regcomp.c, regex.c, regex.h,
	regex_internal.c, regex_internal.h, regexc.c; used by rpmatch.

2005-11-29  Ian Turner  <ian@zmanda.com>

	First cut at adding support for --atime-preserve=system.
	* doc/tar.texi (Option Summary): First cut at documenting it.
	All other uses of --atime-preserve changed to --atime-preserve=replace.
	* doc/value.texi (op-atime-preserve-replace, op-atime-preserver-system):
	New.
	(op-atime-preserve): Mention METHOD.
	* src/common.h (atime_preserve): New enum.
	(atime_preserve_option): Now of the enum type rather than bool.
	All uses changed.
	* src/compare.c (diff_file): Read with O_NOATIME if asked for.
	* src/create.c (dump_file0): Read regular and CTG files with O_NOATIME
	if asked for.
	* src/tar.c (usage): Mention new usage.
	(parse_opt): Parse new usage.

2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>

	* THANKS: Convert back to UTF-8, sort (using LC_ALL=C on Debian
	stable), and consistently use tabs rather than spaces.

2005-11-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/xheader.c: Remove parts of code prematurely introduced
	yesterday. Thanks Eric Blake.

2005-11-26  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/xheader.c (xheader_format_name): Fix memory leak.

2005-11-11  Sergey Poznyakoff  <gray@gnu.org.ua>

	* gnulib.modules: Add rpmatch
	* lib/stdopen.h, lib/stdopen.c: New file. Imported from coreutils.
	* lib/Makefile.tmpl: Add stdopen.h, stdopen.c
	* po/POTFILES.in: Add rpmatch.c
	* src/tar.c (confirm): Rewritten using rpmatch.
	(decode_options): Minor optimizations
	(main): Call stdopen() to ensure the first three descriptors are
	open.

	* tests/multiv01.at, tests/multiv02.at, tests/multiv03.at,
	tests/multiv04.at, tests/sparsemv.at, tests/sparsemvp.at,
	tests/star/multi-fail.at: Close stdin so that if something fails
	causing tar to ask for the next volume, it won't hang the
	testsuite.

	* src/buffer.c (flush_write,flush_read): Change data type.
	(flush_archive): Compute actual buffer fill level before calling
	low level function.
	(close_archive): Call flush_archive again if the first call
	resulted in partially filled buffer.
	(try_new_volume): Rewritten handling of initial headers.
	(add_chunk_header): New function. Write an additional header
	before the continuation chunk. The purpose of the header is to
	allow third-party tars to extract the member.
	(simple_flush_write): Take an argument.
	(_gnu_flush_write): Correctly handle partially filled buffers.
	* src/common.h (flush_read,flush_write): Functions, again.
	(write_extended): Changed declaration
	(xheader_format_name): New declaration
	* src/create.c (write_extended): Change type and meaning of
	the first argument. All callers updated
	* src/xheader.c (xheader_format_name): Remove static
	qualifier. Change last argument.
	Correct buffer size calculation (allocated too much space).
	(xheader_write): Increase global_header_count here ...
	(xheader_write_global): ... instead of here

	* tests/testsuite.at (AT_TAR_CHECK): Define TEST_TAR_FORMAT
	* tests/multiv01.at: Update
	* tests/multiv02.at: Update
	* tests/multiv03.at: Update
	* tests/sparsemvp.at: Update
	* tests/star/multi-fail.at: Update

	* scripts/tarcat: Handle archives in pax format. Improve handling
	of traditional archives.
	* doc/tar.texi (Tarcat): New node

2005-11-10  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix splitting of sparse files between the volumes.

	* src/buffer.c (try_new_volume): Bugfix. Always check
	continued_file_name. If it is absent, the volume is out
	of sync.
	(add_multi_volume_header): Create GNU.volume.filename keyword in
	the extended header.
	* src/sparse.c (sparse_dump_region): Call mv_size_left.
	(sparse_dump_file): Enclose the loop in mv_begin/mv_end.
	* src/system.c: Do not pad compressed output if it goes to
	stdout.
	* src/xheader.c (xhdr_tab): New keyword GNU.volume.filename.

	* tests/sparsemv.at: New testcase
	* tests/sparsemvp.at: New testcase
	* tests/Makefile.am: Add sparsemv.at and sparsemvp.at.
	* tests/testsuite.at: Likewise.

2005-11-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/buffer.c: Rewritten in a more modular fashion to provide
	GNU extensions (multi-volume archives and archive labels) in
	pax format.
	NOTICE, that some of the aspects (e.g. splitting the archive
	on the extended header boundary) are still not solved, others
	(splitting a sparse file between the volume) require additional
	testing. Wait for the next commit.

	(volume_label,continued_file_name,continued_file_size)
	(continued_file_offset): New globals.
	(save_name,save_totsize,save_sizeleft): Make static
	(mv_begin,mv_end,mv_total_size,mv_size_left): New functions
	(open_archive,flush_write,flush_read): Rewritten

	* src/common.h (save_name,save_sizeleft,save_totsize): Remove
	globals.
	(volume_label,continued_file_name,continued_file_size): New
	variables.
	(flush_read,flush_write): Pointers to functions
	(mv_begin,mv_end,mv_total_size,mv_size_left): New functions
	(write_extended): New function.

	* src/compare.c, src/create.c, src/extract.c, src/incremen.c,
	src/list.c: Use mv_.* functions uniformly instead of fiddling
	with the global variables.
	* src/sparse.c: Use mv_.* functions where necessary.
	* src/tar.c (decode_options): Allow to use --multi-volume and
	--label with pax archives.
	* src/xheader.c (xhdr_tab): Support for new GNU keywords.

	* tests/delete01.at, tests/delete02.at, tests/delete03.at,
	tests/delete04.at, tests/delete05.at, tests/extrac01.at,
	tests/extrac02.at, tests/extrac03.at, tests/extrac04.at,
	tests/extrac05.at, tests/incr01.at, tests/incremental.at,
	tests/listed01.at, tests/listed02.at, tests/long01.at,
	tests/longv7.at, tests/multiv01.at, tests/multiv02.at,
	tests/multiv03.at, tests/multiv04.at, tests/options.at,
	tests/options02.at, tests/same-order01.at, tests/same-order02.at,
	tests/sparse01.at, tests/sparse02.at, tests/sparse03.at,
	tests/star/multi-fail.at (AT_KEYWORDS): Improve to allow execution
	of related tests in groups.

	* doc/tar.texi: Update

2005-11-07  Paul Eggert  <eggert@cs.ucla.edu>

	* src/xheader.c (struct xhdr_tab.coder): Last arg is void const *,
	not void *, to avoid create.c warning from GCC "passing argument 3
	of 'xheader_store' discards qualifiers from pointer target type".
	(dummy_coder, atime_coder, gid_coder, gname_coder, linkpath_coder):
	(ctime_coder, mtime_coder, path_coder, size_coder, uid_coder):
	(uname_coder, sparse_size_coder, sparse_numblocks_coder):
	(sparse_offset_coder, sparse_numbytes_coder, dumpdir_coder):
	(xheader_store): Likewise.
	* src/common.h (xheader_store): Likewise.

2005-11-07  Sergey Poznyakoff  <gray@gnu.org.ua>
       and  Paul Eggert  <eggert@cs.ucla.edu>

	* src/tar.c (NS_PRECISION_FORMAT_MASK): New macro.
	(tar_timespec_cmp): New function. Wrapper over
	timespec_cmp using the timespec precision provided by the
	current archive format.
	* src/common.h (tar_timespec_cmp): New declaration.
	* src/compare.c (diff_file): Use tar_timespec_cmp.
	* src/extract.c (file_newer_p): Likewise.
	* src/update.c (update_archive): Likewise.
	* tests/truncate.at: Reverted changes
	* tests/update.at: Reverted changes

2005-11-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	Support for incremental formats in pax archives.
	Fixed POSIX compatibility of `sparse' extended header keywords.

	* src/common.h (dumpdir_size,get_gnu_dumpdir)
	(xheader_string_begin,xheader_string_add)
	(xheader_string_end): New functions.
	* src/create.c (dump_dir0): Handle incremental backups in pax
	archives.
	* src/incremen.c (dumpdir_size, get_gnu_dumpdir): New functions.
	(purge_directory): Use stat_info.dumpdir instead of getting its
	value explicitly.
	* src/list.c (list_archive): Handle incremental backups in pax
	format.
	(decode_header): Initialize stat_info.dumpdir
	* src/sparse.c (sparse_diff_file): Bugfix: set seekable.
	(pax_dump_header): Store sparse map in GNU.sparse.map. If this
	variable has been explicitly deleted, use GNU.sparse.offset/
	GNU.sparse.numbytes variables.
	* src/tar.c (decode_options): Incremental options are allowed with
	--format=pax
	(tar_stat_destroy): Free dumpdir
	* src/tar.h (struct tar_stat_info.dumpdir): New member.
	* src/xheader.c (xheader_keyword_deleted_p): Remove static
	qualifier.
	(struct xhdr_tab.decoder): Change prototype. POSIX allows string
	values to contain embedded nulls, so take an extra argument
	specifying the length of the string.
	(decx,decg,dummy_decoder,atime_decoder,gid_decoder)
	(gname_decoder,linkpath_decoder,ctime_decoder,mtime_decoder)
	(path_decoder,size_decoder,uid_decoder,uname_decoder)
	(sparse_size_decoder,sparse_numblocks_decoder)
	(sparse_offset_decoder,sparse_numbytes_decoder): Likewise.
	(decode_record): Pass value length to the handler
	(run_override_list): Pass value length to the decoder
	(xheader_print_n): New function
	(xheader_print): Rewritten using xheader_print_n
	(xheader_finish): Do not rely om strlen to compute the length of
	the collected string: it can contain embedded nulls
	(xheader_string_begin,xheader_string_add,xheader_string_end): New
	functions.
	(sparse_map_decoder,dumpdir_coder,dumpdir_decoder): New
	functions. Handle GNU.sparse.map and GNU.dumpdir variables.
	(xhdr_tab): Add new variables.

	* tests/incr01.at: Test gnu, oldgnu, and posix formats
	* tests/incremental.at: Likewise

2005-11-06  Paul Eggert  <eggert@cs.ucla.edu>

	* NEWS: Minor language and white space fixes.

	* tests/truncate.at: Create files whose time stamps must fall on
	1-second boundaries.  This prevents tests from failing on hosts
	like Solaris 8 that have nanosecond-resolution file time stamps.
	* tests/update.at: Likewise.

	* src/xheader.c (strtoimax, strtoumax): Remove decls; now done
	in system.h.

2005-11-06  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Properly document incremental dumps
	* doc/value.texi: Likewise.
	* doc/snapshot.texi: Likewise.

2005-11-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	Improve listed incremental format:

	* src/common.h (update_parent_directory): New prototype.
	* src/create.c (dump_file): Call update_parent_directory.
	* src/incremen.c (struct directory.mtime): New member.
	(note_directory): Take additional arguments. All callers updated.
	(scan_directory): Updated to use more metadata. In particular,
	this allows to correctly detect renamed files.
	(read_directory_file,write_directory_file)
	(write_directory_file_entry): Support new directory file format.
	* tests/listed01.at: Sleep 1 sec before creating second file.
	* tests/listed02.at: Never skip the test. It should work on any
	filesystem.

	* doc/snapshot.texi: New file
	* doc/tar.texi: Update.
	* doc/Makefile.am: Update.

2005-11-04  Paul Eggert  <eggert@cs.ucla.edu>

	* src/extract.c (set_stat): Rewrite to avoid bug in Forte
	Developer 7 C 5.4 Patch 111708-09 (2004-02-19).

2005-11-04  Sergey Poznyakoff  <gray@gnu.org.ua>

	* bootstrap: Fix quoting in help output.
	(update_po): Use backward-compatible wget option --cache instead
	of deprecated -C to accommodate for wget 1.10.
	Changes proposed by Eric Blake
	* THANKS: Add Eric Blake

2005-11-02  Paul Eggert  <eggert@cs.ucla.edu>

	* doc/tar.texi: Consistently put two spaces after sentences,
	and put commas after "i.e." and "e.g.".  This is the usual GNU
	style in manuals.

	* lib/.cvsignore: Add creat-safer.c, fcntl--.h, fcntl-safer.h,
	open-safer.c, openat-die.c, verify.h, to accommodate recent gnulib
	changes.

2005-10-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/compare.c (diff_dumpdir): Pass a valid device number to
	get_directory_contents.

	* THANKS: Add John Thomas McDole

	* bootstrap: If file `.bootstrap' exists in the cwd and is
	readable, prepend its contents to the command line

2005-10-21  Sergey Poznyakoff  <gray@gnu.org.ua>

	* tests/link01.at: Skip test if ln fails (suppose the OS does
	not support hard links).

2005-10-04  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/tar.c (decode_options): Report error if -A or -r is used
	together with compression option.

2005-09-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	* doc/tar.texi: Use @option and @kbd consistently.
	Document new options.

2005-09-28  Sergey Poznyakoff  <gray@gnu.org.ua>

	* NEWS: Updated
	* src/common.h (show_stored_names_option): New variable
	* src/list.c (print_header): If show_stored_names_option is given,
	list member names as stored in the archive. Patch proposed by Erik
	Cumps <erik.cumps@icos.be>
	* src/tar.c: Implement --show-stored-names option

	* src/common.h (test_label_option): New variable;
	* src/list.c (print_header): Special handling if test_label_option
	is set.
	* src/names.c (all_names_found): If test_label_option is set
	return true.
	* src/tar.c: New option --test-label tests the archive volume
	label. The option proposed by Wouter Verhelst <wouter@nixsys.be>

2005-09-21  Paul Eggert  <eggert@cs.ucla.edu>

	* tests/Makefile.am (clean-local): Don't attempt to run
	$(TESTSUITE) if it doesn't exist.  Problem reported by
	Eric Blake.

2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>

	Don't filter time stamps through the resolution supported
	by struct stat; keep them to full nanosecond resolution.
	This affects behavior only on older hosts or file systems
	that have lower-resolution time stamps.
	* src/common.h (OLDER_STAT_TIME): Parenthesize arg.
	(OLDER_TAR_STAT_TIME): New macro.
	(code_timespec): New function.
	(BILLION, LOG10_BILLION, TIMESPEC_STRSIZE_BOUND): New constants.
	* src/compare.c (diff_file): Use full time stamp resolution.
	* src/create.c (start_header, dump_file0): Likewise.
	(start_header, dump_file0): Adjust to new structure layout.
	(dump_regular_finish): Simplify by using timespec_cmp.
	* src/extract.c (struct delayed_set_stat): Don't store stat info
	that we don't need, to save space.  All uses changed.
	(struct delayed_set_stat, struct delayed_link, file_newer_p):
	(create_placeholder_file, extract_link, apply_delayed_links):
	Use full time stamp resolution.
	(check_time): Use code_timespec rather than rolling our own code.
	(set_stat, delay_set_stat): Arg now points to tar_stat_info to
	avoid losing time information.  All callers changed.
	* src/list.c (read_and, decode_header, print_heaeder):
	Use full time stamp resolution.
	* src/misc.c (code_timespec): New function.
	* src/tar.h (struct tar_stat_info): Record atime, mtime, ctime
	separately, for benefit of hosts with lower resolution.
	* src/update.c (update_archive): Use full time stamp resolution.
	* src/xheader.c (code_time): Use new code_timespec function
	to simplify code.
	(atime_coder, atime_decoder, ctime_coder, ctime_decoder):
	(mtime_coder, mtime_decoder): Use full time stamp resolution.

	Report time stamps to full resolution in environment.
	Report memory allocation failures rather than ignoring them.
	* src/system.c (time_to_env): New function.
	(oct_to_env, str_to_env, chr_to_env): Report memory allocation failures.
	(stat_to_env): Report full resolution in time stamps.

2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>

	Merge changes from gnulib for file system sub-second time stamps.
	* configure.ac: Remove checks for struct stat.st_spare1, struct
	stat.st_atim.tv_nsec, struct stat.st_atimespec.tv_nsec, struct
	stat.st_atimensec, as gnulib now does this for us.
	Similarly for LIB_CLOCK_GETTIME.
	* gnulib.modules: Add stat-time.
	* lib/.cvsignore: Add stat-time.h.
	* src/common.h: Include stat-time.h.
	(timespec_lt): Remove.  All callers changed to use timespec_cmp.
	(get_stat_atime, get_stat_ctime, get_stat_mtime):
	(set_stat_atime, set_stat_ctime, set_stat_mtime):
	Remove; now defined by stat-time.h.

2005-09-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/incremen.c (list_dumpdir): New function. Used to dump
	contents of GNUTYPE_DUMPDIR blocks.
	* src/common.h (list_dumpdir): Likewise.
	* src/list.c (list_archive): Use list_dumpdir() to display
	GNUTYPE_DUMPDIR blocks. Do that only if two or more -v options are
	given.

2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>

	* lib/.cvsignore: Adjust to current gnulib and modules used.
	Add getdelim.c, getdelim.h, mbchar.c, mbchar.h, mbuiter.h, memchr.c,
	pipe-safer.c, size_max.h, strdup.c, strdup.h, strnlen.h, strnlen1.c,
	strnlen1.h, unistd--.h.
	Remove getndelim2.c, getndelim2.h, pathmax.h, sysexits.h, xstrdup.c.

	Treat fishy-looking hard links like fishy-looking symlinks.
	* src/extract.c (struct delayed_set_stat): Rename after_symlinks
	member to after_links.  All uses changed.
	(struct delayed_link): Renamed from struct delayed_symlink.
	All uses changed.  New member is_symlink.
	(delayed_link_head): Renamed from delayed_symlink_head.  All uses
	changed.
	(create_placeholder_file): New function, taken from extract_symlink.
	(extract_link): Create placeholders for fishy-looking hard links.
	(extract_symlink): Move code into create_placeholder_file.
	(apply_delayed_links): Renamed from apply_delayed_symlinks.
	All uses changed.  Create both hard links and symlinks.

2005-09-03  Paul Eggert  <eggert@cs.ucla.edu>

	* README-alpha: Modernize description of software required for
	developers.

2005-09-03  Sergey Poznyakoff  <gray@gnu.org.ua>

	* gnulib.modules: Add strdup
	* src/incremen.c (purge_directory): Do not dereference symbolic
	links. Bug reported by Ralph Corderoy <ralph@inputplus.co.uk> and
	David Brown <davidb@davidb.org>
	* tests/incr01.at: New test.
	* tests/Makefile.am: Add incr01.at
	* tests/testsuite.at: Likewise
	* THANKS: Updated

2005-08-17  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/incremen.c (read_directory_file): Use strtoumax to read
	snapshot file contents.
	(write_directory_file_entry): Use umaxtostr().

2005-07-31  Sergey Poznyakoff  <gray@gnu.org.ua>

	* src/create.c (file_dumpable_p,dump_file0): Fix handling of
	sparse files to /dev/null with --totals option.
	* tests/update.at: Remove dependency on file order.

2005-07-08  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* doc/tar.texi: Fix typo.

2005-07-07  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* tests/pipe.at: Pipe the output from `tar xfv' through sort.

2005-06-25  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/sparse.c (tar_sparse_init): Fill structure with zeros. Call
	sparse_select_optab(). All callers updated.
	(sparse_member_p, sparse_fixup_header): Use tar_sparse_init().

2005-06-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/sparse.c (pax_sparse_member_p): Checking member size
	vs. file size is not reliable enough. Use sparse_map_avail.

	* tests/star/gtarfail.at: Adapt to the new output format
	* tests/star/gtarfail2.at: Likewise
	* tests/star/multi-fail.at: Likewise
	* tests/star/pax-big-10g.at: Likewise
	* tests/star/ustar-big-2g.at: Likewise
	* tests/star/ustar-big-8g.at: Likewise

	* tests/sparse03.at: New test.
	* tests/Makefile.am: Add sparse03.at
	* tests/testsuite.at: Likewise

	* src/xheader.c (size_decoder): Do not set archive_file_size.

	Fix bugs introduced yesterday:

	* src/sparse.c (tar_sparse_init):  Initialize
	dimped_size to 0.
	(sparse_scan_file): Initialize archive_file_size to 0. The
	variable keeps size of the file *as stored in the archive*, not
	the size reported by stat.

2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>

	A sweep of the sparse code prompted by a bug report by Jim Meyering.
	* src/sparse.c: Include <inttostr.h>.
	(struct tar_sparse_file): offset and dumped_size are off_t, not
	size_t.  optab is now const *.
	(dump_zeros): Return bool success flag, not off_t.
	All callers changed.
	Use a constant-zero buffer rather than clearing a buffer each time.
	Don't mess up if write fails.
	(dump_zeros, check_sparse_region):
	Don't assume off_t is no wider than size_t.
	(tar_sparse_init): Don't bother clearing a field that is already clear.
	(zero_block_p): First arg is const *, not *.
	(clear_block, SPARSES_INIT_COUNT): Remove.
	(sparse_add_map): First arg is now struct start_stat_info *, not
	struct tar_sparse_file *.  All callers changed.
	Use x2nrealloc to check for size_t overflow.
	(parse_scan_file): Cache commonly-used parts of file.
	Use an auto buffer, not a static one.
	Don't bother clearing the buffer; not needed.
	Don't bother clearing items that are already clear.
	(oldgnu_optab, star_optab, pax_optab): Now const.
	(sparse_dump_region): Don't bother clearing the buffer before
	reading into it; just clear the parts that aren't read into.
	(sparse_dump_file): Clear the whole local variable 'file'.
	(diff_buffer): Remove; now a local var.
	(check_sparse_region): Don't bother clearing buffer before
	reading into it.  Don't assume off_t is promoted to long.
	(oldgnu_get_sparse_info, star_get_sparse_info):
	Use an auto status, not static.
	* src/tar.h (struct tar_stat_info): had_trailing_slash is
	now bool, not int.
	* src/xheader.c (sparse_offset_coder, sparse_numbytes_coder):
	Rewrite to avoid cast.
	(sparse_offset_decoder, sparse_numbytes_decoder):
	Diagnose excess entries rather than crashing.

2005-06-22  Jim Meyering  <jim@meyering.net>

	* src/common.h (timespec_lt): Add a return type: bool.

2005-06-21  Paul Eggert  <eggert@cs.ucla.edu>

	Further improvements inspired by Jim Meyering's fixes.

	* NEWS: Better support for full-resolution time stamps.
	The -v option now prints time stamps only to 1-minute resolution.
	* gnulib.modules: Add utimens.
	* lib/.cvsignore: Add imaxtostr.c, inttostr.c, inttostr.h,
	offtostr.c, umaxtostr.c, utimens.c, utimens.h.  Remove paxconvert.c.
	* lib/Makefile.tmpl (libtar_a_SOURCES): Remove paxconvert.c.
	* lib/paxconvert.c: Remove; superseded by umaxtostr.c.
	* po/POTFILES.in: Remove lib/paxconvert.c.  Add lib/xalloc-die.c,
	lib/obstack.c.
	* src/buffer.c (set_start_time, compute_duration, start_time):
	Use gettime rather than rolling our own code.
	* src/common.h (OLDGNU_NAME_FIELD_SIZE, MAXOCTAL11, MAXOCTAL7): Remove.
	(newer_ctime_option): Remove.
	(timespec_lt): New function.
	(OLDER_STAT_TIME): Use it.
	(string_to_chars): First arg is char const *, not char *.
	(tartime): Time arg is now struct timespec.  New bool arg.
	All callers changed.
	(code_ns_fraction): New decl.
	(sys_stat_nanoseconds): Remove decl.
	(get_stat_atime, get_stat_ctime, get_stat_mtime): New functions.
	(set_stat_atime, set_stat_ctime, set_stat_mtime): New functions.
	* src/compare.c: Include utimens.h rather than rolling our own.
	(diff_dir, diff_file, diff_link, diff_symlink, diff_special):
	Prototype.
	(diff_dumpdir, diff_multivol): Prototype.
	(diff_file): Support higher-resolution time stamps.
	* src/create.c: Include utimens.h rather than rolling our own.
	(MAX_OCTAL_VAL): New macro.
	(tar_copy_str, string_to_chars): Don't bother to zero-fill;
	the destination is already zeroed.
	(string_to_chars): First arg is char const *.
	(start_private_header): Use MINOR_TO_CHARS, not MAJOR_TO_CHARS,
	for minor device number.
	(write_header_name, dump_hard_link, dump_file0):
	Simplify test for old GNU format.
	(start_header): Put in placeholders for uid, etc., even when
	using extended headers, for benefit of older "tar" implementations.
	Don't assume uintmax_t is wider than 32 bits.
	Output extended header for mtime if needed.
	(dump_regular_finish, dump_file0):
	Support extended time stamp resolution.
	* src/extract.c: Include utimens.h rather than rolling our own.
	(check_time): Support extended time stamp resolution.
	* src/list.c: Include <inttostr.h>.
	(tartime): Use umaxtostr rather than stringify_uintmax_t_backwards.
	* src/xheader.c: Include <inttostr.h>.
	Do not include <xstrtol.h>.
	(strtoimax) [!HAVE_DECL_STRTOIMAX && !defined strtoimax]: New decl.
	(strtoumax) [!HAVE_DECL_STRTOUMAX && !defined strtoumax]: New decl.
	(BILLION, LOG10_BILLION): New constants.
	(to_decimal): Remove; superseded by inttostr.  All callers changed
	to use umaxtostr.
	(xheader_format_name): Don't assume pids and uintmax_t values
	fit in 63 bytes (!) when printed.
	(decode_record): Don't bother to check for ERANGE; an out of range
	value must be treater than len_max anyway.
	If the length is out of range, output it in the diagnostic.
	(format_uintmax): Remove; all callers changed to use umaxtostr.
	(xheader_print): Don't assume sizes can be printed in 99 bytes (!).
	(out_of_range_header): New function.
	(decode_time): Use it.
	(code_time): Accept struct timespec, not time_t and unsigned long.
	All callers changed.  Size sbuf properly, and remove unnecessary check.
	Don't assume time stamps can fit in 199 bytes.
	Handle negative time stamps.  Handle fractional time stamps
	more consistently.  Don't output unnecessary trailing zeros.
	(decode_time): Yield struct timespec, not time_t and unsigned long.
	All callers changed.
	Handle negative time stamps.  Truncate towards minus infinity
	consistently.  Improve overflow checks, and output a better
	diagnostic on overflow.
	(code_num): Don't assume uintmax_t can be printed in 99 bytes (!).
	(decode_num): New function, for better diagnostics.
	(atime_coder, atime_decoder, gid_decoder, ctime_coder):
	(ctime_decoder, mtime_coder, mtime_decoder, size_decoder):
	(uid_decoder, sparse_size_decoder, sparse_numblocks_decoder):
	(sparse_offset_decoder, sparse_numbytes_decoder):
	Use decode_num, etc., instead of xstrtoumax, etc.

2005-06-21  Jim Meyering  <jim@meyering.net>

	Carefully crafted invalid headers can cause buffer overrun.
	Invalid header fields go undiagnosed.
	Some valid time strings are ignored.

	* src/xheader.c (sparse_numblocks_decoder): Remove unchecked use
	of `calloc'.  Use xcalloc instead.
	(decode_time, gid_decoder, size_decoder, uid_decoder):
	(sparse_size_decoder, sparse_offset_decoder, sparse_numblocks_decoder):
	Ensure that the result of calling xstrtoumax is no larger than
	the maximum value for the target type.  Upon any failure, exit with
	a diagnostic.
	(sparse_numblocks_decoder): Avoid buffer overrun/heap corruption:
	use x2nrealloc, rather than `n *= 2' and xrealloc(p, n,....
	(decode_time): Rewrite to accept time strings like
	1119018481.000000000.  Before, such strings were always ignored.

2005-06-13  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/create.c (dump_file0): Check for is_avoided_name()
	first. Fixes bug reported by Martin Lohmeier
	<martin@mein-horde.de>
	* tests/update.at: New file
	* tests/Makefile.am (TESTSUITE_AT): Add update.at
	* tests/testsuite.at: Likewise

2005-06-13  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac (AC_STRUCT_ST_BLKSIZE)
	(AC_STRUCT_ST_BLOCKS): Removed. Handled by system.m4.

2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>

	* src/names.c (excluded_name): excluded_filename ->
	excluded_file_name, because the name was changed in gnulib.

2005-05-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/tar.c (read_name_from_file,update_argv): Automatically
	detect nul-terminated list files.
	* NEWS: Updated

2005-05-27  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* scripts/backup.sh.in: Bugfixes.

2005-05-26  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* scripts/backup.in: Minor fixes
	* scripts/backup.sh.in (mt_begin,mt_rewind)
	(mt_offline,mt_status):	Use $MT to invoke mt
	(init_common): Set --rsh-command option for mt if TAPE_FILE is a
	remote archive.
	* doc/tar.texi: Document new backup scripts behavior

2005-05-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* lib/.cvsignore: Updated
	* lib/Makefile.tmpl: Add new paxutils files
	* po/POTFILES.in: Likewise
	* src/buffer.c: Update invocations of safer_name_suffix()
	* src/create.c: Likewise
	* src/extract.c: Likewise
	* src/xheader.c: Likewise
	* src/common.h: Include paxlib.h instead of paxerror.h
	(safer_name_suffix,removed_prefixes_p): Removed. The functions are
	imported from paxutils
	* src/names.c (hash_string_hasher,hash_string_compare)
	(hash_string_insert,hash_string_lookup,removed_prefixes_p)
	(safer_name_suffix): Moved to paxutils

2005-05-19  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* bootstrap (copy_files): Accept optional third argument: a prefix
	to be appended to destination file names.
	Import paxutils/paxlib files.
	* configure.ac: Remove checking for LIB_SETSOCKOPT, it is handled
	by paxutils.
	* lib/Makefile.tmpl (libtar_a_SOURCES): Add paxerror.c paxexit.c
	paxconvert.c
	* po/POTFILES.in: Likewise.
	* src/common.h: Remove defines and declarations imported from
	paxutils
	* src/misc.c: Likewise
	* src/list.c (stringify_uintmax_t_backwards): Moved to paxutils

2005-05-17  Paul Eggert  <eggert@cs.ucla.edu>

	* src/misc.c (remove_any_file): Fix typo in previous change.

2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>

	Port to Solaris 10's treatment of unlinking directories.
	* gnulib-modules: Add unlinkdir.
	* lib/.cvsignore: Add unlinkdir.h, unlinkdir.c.
	* src/common.h (we_are_root): Remove extern decl; it's now static.
	* src/extract.c (we_are_root): Now static.
	* src/misc.c: Include <unlinkdir.h>.
	(remove_any_file): Use cannot_unlink_dir () rather than	we_are_root.

	* ChangeLog, ChangeLog.1, Makefile.am, NEWS, PORTS, README,
	README-alpha, TODO, bootstrap, configure.ac, doc/Makefile.am,
	doc/convtexi.pl, doc/fdl.texi, doc/gendocs_template,
	lib/Makefile.tmpl, lib/prepargs.c, lib/waitpid.c, po/POTFILES.in,
	scripts/Makefile.am, scripts/backup-specs, scripts/backup.in,
	scripts/backup.sh.in, scripts/restore.in, src/Makefile.am,
	src/arith.h, src/buffer.c, src/common.h, src/compare.c,
	src/create.c, src/delete.c, src/extract.c, src/incremen.c,
	src/list.c, src/mangle.c, src/misc.c, src/names.c, src/sparse.c,
	src/system.c, src/tar.c, src/tar.h, src/update.c, src/utf8.c,
	src/xheader.c, tests/Makefile.am, tests/append.at,
	tests/append01.at, tests/comprec.at, tests/delete01.at,
	tests/delete02.at, tests/delete03.at, tests/delete04.at,
	tests/delete05.at, tests/extrac01.at, tests/extrac02.at,
	tests/extrac03.at, tests/extrac04.at, tests/extrac05.at,
	tests/gzip.at, tests/ignfail.at, tests/incremental.at,
	tests/link01.at, tests/listed01.at, tests/listed02.at,
	tests/long01.at, tests/longv7.at, tests/multiv01.at,
	tests/multiv02.at, tests/multiv03.at, tests/multiv04.at,
	tests/old.at, tests/options.at, tests/options02.at, tests/pipe.at,
	tests/recurse.at, tests/same-order01.at, tests/same-order02.at,
	tests/shortrec.at, tests/sparse01.at, tests/sparse02.at,
	tests/testsuite.at, tests/truncate.at, tests/version.at,
	tests/volume.at, tests/star/gtarfail.at, tests/star/gtarfail2.at,
	tests/star/multi-fail.at, tests/star/pax-big-10g.at,
	tests/star/quicktest.sh, tests/star/ustar-big-2g.at,
	tests/star/ustar-big-8g.at:
	Update FSF postal mail address.

2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* NEWS: Updated
	* THANKS: Updated
	* bootstrap: Install files from paxutils/doc
	* doc/Makefile.am (tar_TEXINFOS): Add genfile.texi
	* doc/tar.texi (Genfile): New appendix
	* src/compare.c (diff_file): diff_handle was not initialized
	* src/create.c (dump_regular_file): Correctly pad archive members
	that shrunk during archiving. Repored by Frank Heckenbach.
	* src/extract.c (file_newer_p): Return false if file does not
	exist
	(prepare_to_extract): Correct warning wording.
	* tests/truncate.at: New test case
	* tests/Makefile.am: Add truncate.at
	* tests/testsuite.at: Likewise.

	* doc/.cvsignore: Updated
	* lib/.cvsignore: Updated
	* tests/.cvsignore: Updated

2005-05-02  Paul Eggert  <eggert@cs.ucla.edu>

	* tests/multivol04.at: Tell awk to read from /dev/null.

	Adjust to recent gnulib changes.
	* lib/.cvsignore: Add dup-safer.c, fd-safer.c, unistd-safer.h.
	* src/common.h (initial_umask): New var.
	* src/create.c (start_ueader): Use it, and adjust to new modechange
	API.
	(hash_link): unsigned -> size_t parameters and result.
	* src/incremen.c (hash_directory): Likewise.
	* src/names.c (hash_string_hasher): Likewise.
	* src/tar.c (parse_opt): Set it, and adjust to new modechange API.

2005-04-19  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* tests/Makefile.am: Add shortrec.at.

2005-04-18  Paul Eggert  <eggert@cs.ucla.edu>

	* src/buffer.c (reading_from_pipe): Remove.  All uses removed.
	(short_read): Don't warn about short reads; they're normal.
	* tests/shortrec.at: New file.
	* tests/testsuite.at: Include it.

	* bootstrap (gnulib_modules): Don't create a file modlist.tmp, as
	it is sometimes left behind as a garbage file (maybe due to the
	multiple traps?).

2005-04-14  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/list.c: Handle Solaris 'X' type flag
	* src/tar.h (SOLARIS_XHDTYPE): New define

2005-04-06  Sergey Poznyakoff  <gray@mirddin.farlep.net>

	* src/tar.c: Minor fixes to text messages. Proposed by Benno
	Schulenberg.
	* src/extract.c: Likewise
	(extract_file): Assign orig_file_name
	to save_name uniformly over the program. This fixes matching
	directory names at the start of an archive volume.
	* src/buffer.c (flush_write): Warn when the name of the archive
	straddling volume boundary is longer than 100 characters. Earlier
	behavior was to issue a fatal error.
	(struct zip_magic): Reverted part of changes from 2005-04-04.
	They make the maintenance too costly. Removing `unsigned'
	qualifier from `magic' member should be enough.
	* src/compare.c (diff_init): Read directory file if in listed
	incremental. This prevents spurious 'Contents differ' diagnostics.
	(diff_archive): Minor fixes to text messages
	(diff_file,diff_dumpdir,diff_multivol): Assign orig_file_name
	to save_name uniformly over the program. This fixes matching
	directory names at the start of an archive volume.
	* src/create.c: Assign orig_file_name
	to save_name uniformly over the program. This fixes matching
	directory names at the start of an archive volume.
	* src/list.c: Likewise

	* tests/multiv03.at: Modified to match the new behavior
	* tests/multiv04.at: New file. Test splitting directory members between
	the archive volumes.
	* tests/Makefile.am: Add multiv04.at
	* tests/testsuite.at: Likewise.

2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>

	* configure.ac (AC_CONFIG_AUX_DIR): Rename from config to build-aux,
	for reasons discussed in the thread beginning at
	<http://lists.gnu.org/archive/html/bug-gnulib/2005-03/msg00119.html>.
	* .cvsignore: Remove config; add build-aux.

	* src/buffer.c (struct zip_magic): Use char arrays, not pointers.
	The unsigned char * pointer ran afoul of pedantic C compilers, and
	we didn't need pointers anyway.  Put the size field before the
	data to avoid unnecessary padding.  All uses changed.
	(magic) Make it const, since it doesn't change.  All uses changed.

2005-04-02  Paul Eggert  <eggert@cs.ucla.edu>

	* src/xheader.c (decode_record): Don't dump core when given
	a corrupted extended header.  Problem reported by Jim Meyering.
	Also, check for other ways that the header might be invalid,
	e.g., missing newline at end.  Do not allow keys with nulls.
	Allow blanks before and after length, as POSIX requires.
	Do not allow leading "-" in length.  Check for length overflow.
	(xheader_decode, xheader_decode_global): Let decode_record
	check for exhaustion of record.
	(xheader_read): Null-terminate the extended record;
	decode_record relies on this.

2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>

	* bootstrap (TP_URL): Change from
	<http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/> to
	<http://www.iro.umontreal.ca/translation/maint/tar/> to avoid
	some redirection glitches.
	Use "trap - 0" rather than "trap 0" to fix a POSIX-conformance bug.
	* doc/.cvsignore: Change "tar.info" to "tar.info*".  Sort.
	* lib/.cvsignore: Add intprops.h (new gnulib file).

2005-03-04  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/list.c (print_header): Print UID/GID in case of
	empty user/group name. This could occur when dumping
	files belonging to non-existing users and when listing
	broken archives.
	Reported by Igor Lautar.

	* src/create.c: Correctly parse empty uname/gname
	* src/sparse.c (sparse_scan_file): Bugfix. offset had
	incorrect type.

	* scripts/backup.in: Use `head -n 1'. Provide missing
	argument to ${MT_STATUS}. Proposed by Jan Merka.
	* scripts/backup.sh.in: Likewise. Fixed typo in
	MT_OFFLINE assignment.
	* scripts/restore.in (restore_fs): Use root_fs

2005-02-15  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/create.c: Replace strdup with xstrdup
	* src/names.c: Likewise
	* src/tar.c: Likewise

	* tests/append01.at: Added reference to bug-tar archive
	* tests/listed02.at: Use -print with find.

2005-02-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* THANKS: Added Tim Adye. Fixed UTF.
	* src/list.c (read_header): Removed assignment to
	oldgnu_header.isextended. It was breaking append mode.

	* tests/append01.at: New test.
	* tests/Makefile.am: Added append01.at
	* tests/testsuite.at: Likewise

2005-02-06  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* gnulib.modules: New file. List of required gnulib
	modules.
	* bootstrap: Merge list of required modules from
	paxutils with that from tar proper.
	* src/tar.c: Various fixes in help and diagnostic messages.

2005-02-05  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/common.h (EXTRACT_OVER_PIPE): New macro
	* src/compare.c: Code clean up.
	* src/extract.c (extract_archive): Do not check for
	EXTRACT_OVER_PIPE, decode_options() does this.
	* src/misc.c (exec_error,fork_error,dup2_error)
	(pipe_error): Removed unneeded functions.
	* src/system.c (sys_exec_command): Use xclose, xpipe,
	xfork, xdup2 and exec_fatal.
	* src/tar.c (options): Improved sorting. Document --backup=off.
	(decode_options): Clear backup_option if necessary.

2005-02-05  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	Initial implementation of --to-command option proposed
	by Hansjoerg Lipp.

	* bootstrap: Get setenv module from gnulib
	* src/buffer.c: Do not use 8-bit chars in comments
	* src/common.h (to_command_option)
	(ignore_command_error_option): New globals
	(sys_exec_command,sys_wait_command): New commands
	* src/extract.c (extract_file): Handle to_command_option
	Fix error recovery: decrease `size' by `written', not
	by `count', otherwise tar misses the next header
	Do not diagnose write error if to_command_option
	is set, since the command may have exited prematurely.
	It would be better to check for sigpipe, though.
	(prepare_to_extract): Handle to_command_option
	* src/misc.c (exec_error, fork_error, dup_error)
	(pipe_error): New functions
	* src/system.c (sys_exec_command)
	(sys_wait_command): New functions
	* src/tar.c: Handle new options --to-command,
	--ignore-command-error
	* THANKS: Added Hansjoerg Lipp

2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>

	* src/list.c (from_header): New arg OCTAL_ONLY, normally false.
	All uses changed.  Fix typo that sometimes suppressed all "Archive
	contains obsolescent base-64 headers" warnings, not just the first
	one.
	(tar_checksum): Accept only octal checksums, since they aren't
	supposed to overflow into weird formats.

	Adjust to gnulib changes.
	* lib/.cvsignore: Add chdir-long.c, chdir-long.h, memrchr.c,
	memrchr.h, openat.c, openat.h.  Remove pathmax.h (added by
	mistake, perhaps?), sysexit.h (my typo), xstrdup.c (gnulib removed
	this file).  Sort entries.

2005-02-04  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/extract.c: Further rewrite.
	* src/buffer.c: Removed unused variables.
	* src/list.c: Likewise
	* src/tar.c (update_argv): Changed type to void

	* src/common.h (OLDGNU_NAME_FIELD_SIZE): New constant
	* src/create.c (start_private_header,write_header_name)
	(dump_hard_link): Restore compatibility with 1.13.25
	* src/extract.c (extract_archive): Rewritten
	* src/list.c: Add translators' comments
	* src/tar.c (options) Minor spelling fix
	* tests/star/quicktest.sh: Determine path to the tar executable.

2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* po/POTFILES.in: Added tests/genfile.c
	* src/buffer.c (short_read): Use ngettext()
	(new_volume): use quote().
	* src/create.c: Use quote()
	* src/extract.c: Likewise
	* src/xheader.c: Likewise
	* src/misc.c: Add comments to translators

	* tests/same-order01.at: sort ls output
	* tests/sparse01.at (RE_CHECK): Added missing space

	* tests/sparse02.at: Test extracting sparse files over a pipe.
	* tests/Makefile.am: Added sparse02.at
	* tests/testsuite.at: Likewise
	* tests/listed02.at: Skip the test on filesystems that do not
	update ctime of a file when renaming it. To be reverted when
	the new incremental mode is ready.
	* tests/sparse01.at: Extract and compare sparse file

2005-02-02  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/sparse.c: Extract sparse files even if the output
	fd is not seekable.

2005-02-01  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* bootstrap: Add a comment to lib/Makefile.am saying that this
	is an autogenerated file.
	Exit with code 1 if any of autotools fails.
	* lib/Makefile.tmpl: Insert Emacs magic to the first line.
	* tests/Makefile.am: Add append.at

	* m4/.cvsignore: Ignore all *.m4 files

2005-01-18  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	Rewritten handling of -T (--files-from) option. Now it
	inserts the file names immediately into argv array which allows
	for:
	1) any valid tar options (including another -T) to be used in the file
	2) any number of -T options to be given in command line

	* configure.ac: Raised version number to 1.15.2
	* src/common.h: Include obstack.h
	(files_from_option): Removed
	(unquote_option): New variable
	(stat_fatal): New function
	(name_close): Removed function.
	* src/incremen.c: Remove inclusion of obstack.h
	* src/xheader.c: Likewise.
	* src/misc.c (stat_fatal): New function
	* src/names.c (name_file): Removed variable.
	(read_name_from_file): Removed function. All callers changed.
	(name_close): Removed function. All callers changed.
	* src/tar.c: New options --unquote (--no-unquote) and
	--add-file
	(add_file_id,read_name_from_file,update_argv): New functions
	(parse_opt): Rewritten handling of -T option. Handle hidden
	--HANG option for debugging purposes.
	(decode_options): Init unquote_option to true. Init argv_stk.
	Remove unneeded references to files_from_option

	* doc/tar.texi: Document new options.
	Moved rendition macros and option value definitions into
	separate files
	* doc/rendition.texi: New file
	* doc/value.texi: New file
	* doc/Makefile.am: Updated

2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>

	* tests/testsuite.at (RE_CHECK): Use "join - file", not
	"join file -", to work around a bug in Solaris 8 join.
	Problem reported by Tomohiro Suzuki.

2005-01-13  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/list.c (read_header): Fixed calculation of the
	size for GNU long name/link. Tar was reading one block
	more if name_size was divisible by 512. Thanks Josef
	Bauer.
	* tests/long01.at: New file. Test listing of GNU long names
	divisible by 512.
	* tests/pipe.at: Sort tar output.
	* tests/Makefile.am: Added long01.at
	* tests/testsuite.at: Likewise.
	* THANKS: Added Josef Bauer
	* lib/.cvsignore: Updated
	* m4/.cvsignore: Updated
	* NEWS: Updated

2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* directory: Updated for 1.15.1
	* doc/Makefile.am: Use gendocs.sh to generate web documentation
	* doc/gendocs_template: Template file for gendocs.sh
	* doc/tar.texi: Updated docs for --[no-]same-permissions
	* src/tar.c: Reworded docstrings for --[no-]same-permissions

2005-01-06  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* bootstrap: Create m4/paxutils.m4
	* configure.ac: Call tar_PAXUTILS
	* tests/options02.at: Test that tar correctly handles non-option
	arguments interspersed with options.
	* tests/Makefile.am: Add options02.at
	* tests/testsuite.at: Likewise
	* tests/listed02.at: Do not create useless directory

2005-01-05  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/tar.c (parse_opt): Bugfix: Use ARGP_KEY_ARG. Thanks
	Mike Frysinger <vapier@gentoo.org> for reporting.

2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>

	* lib/Makefile.tmpl (localedir.h): Omit needless quotes and a
	needless sed command.  Problem reported by Paul Jarc.

2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>

	Accommodate latest gnulib.
	* doc/.cvsignore: Add getdate.texi.
	* bootstrap: Do not treat alloca-opt specially; this is no
	longer needed (and breaks builds) with latest gnulib.

2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/tar.c (main): Reverted recent changes (#ifdef).

2004-12-21  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Raise version number to 1.15.1
	Check for locale.h
	* NEWS: Entry for 1.15.1
	* src/buffer.c: Bugfix. Changes introduced 2004-11-26
	broke extraction from stdin.
	* src/list.c (from_header, tar_checksum): Changed declaration.
	All callers updated.
	* src/common.h: Likewise
	* src/tar.c (main): Protect invocation of setlocale by
	ifdef.

	* tests/comprec.at: New test
	* tests/pipe.at: New test
	* tests/Makefile.am (comprec.at,pipe.at): New tests
	* tests/testsuite.at: Likewise
	* tests/gzip.at: Use AT_GZIP_PREREQ
	* tests/star/pax-big-10g.at: Likewise
	* tests/star/ustar-big-2g.at: Likewise
	* tests/star/ustar-big-8g.at: Likewise

	* tests/extrac04.at: Discard stderr from sort, on some
	systems it spits out lots of irrelevant info.
	* tests/listed02.at: Likewise

	* doc/index.html.in: Rewritten in xhtml to follow recent
	GNU site standards.
	* THANKS: Updated

2004-12-20  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	Released version 1.15. Sources up to this point are
	tagged release_1_15.

	* configure.ac: Raised version number to 1.15
	* NEWS: Likewise
	* directory: Updated
	* bootstrap (update_po): Give -r to wget. Always remove index.html
	Ignore alloca-opt module (it duplicates alloca)

	* tests/Makefile.am: Distribute star/quicktest.sh
	* tests/star/README: Document quicktest.sh
	* tests/star/qucktest.sh: Removed.
	* tests/star/quicktest.sh: New file.

2004-12-18  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* NEWS: Updated
	* doc/tar.texi: Document auto-detection of compressed archive
	formats.
	* src/tar.c (decode_options): Ignore --seek if used with --delete.
	Delete.c is based on the assumption that the archive is being
	actually read, not lseeked.

	* tests/delete05.at: New file
	* tests/extrac02.at: Fixed typo in AT_SETUP
	* tests/Makefile.am: Added delete05.at
	* tests/testsuite.at: Likewise.

2004-12-17  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/delete.c (delete_archive_members): Bugfix: when
	attempting to delete an nonexistent member, the last
	blocking_factor blocks were zeroed.

2004-12-14  Paul Eggert  <eggert@cs.ucla.edu>

	* TODO: Mention sub-second resolution, lutimes, lchmod.

2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>

	Adjust to recent gnulib changes.
	* doc/getdate.texi: Remove, since bootstrap gets it from gnulib now.
	* .cvsignore: Add rmt, rmt/*, rmt/*/*.
	* lib/.cvsignore: Add allocsa.c, allocsa.h, allocsa.valgrind,
	charset.alias, config.charset, getcwd.c, getcwd.h, localcharset.c,
	localcharset.h, ref-add.sed, ref-add.sin, ref-del.sed,
	ref-del.sin, setenv.c, setenv.h, unsetenv.c.  Remove pathmax.h,
	xstrdup.c.
	* m4/.cvsignore: Add allocsa.m4, eealloc.m4, getcwd-path-max.m4,
	localcharset.m4, realloc.m4, setenv.m4.  Remove malloc.m4,
	pathmax.m4, realloc.m4.

2004-11-26  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Raised version number to 1.14.91
	* scripts/tarcat: New file
	* scripts/Makefile.am: Added tarcat
	* src/buffer.c (hit_eof): Changed type to boolean
	(read_full_records,reading_from_pipe): New variables
	(check_compressed_archive,open_compressed_archive): New functions
	(open_archive): Autodetect compressed archives and act accordingly.
	Set reading_from_pipe. This fixes controversial set of changes
	introduced 2004-05-11,2004-03-22.
	* src/list.c (tar_checksum): New function
	(read_header): Use tar_checksum().
	* src/common.h (tar_checksum): New function

	* tests/star/README: Updated
	* NEWS: Updated
	* PORTS: Updated

2004-11-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/tar.c (decode_options): Fixed -o semantics. Thanks
	Jean Delvare <khali@linux-fr.org>

2004-10-25  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* bootstrap: Add localcharset
	* lib/Makefile.tmpl: Initialize SUFFIXES and CLEANFILES since the
	makefile snippet from localcharset uses '+=' on them.
	* src/Makefile.am (LDADD): Add LIBICONV
	* src/list.c (decode_header): Set uname/gname to NULL if their
	header counterparts are empty
	* src/tar.c (options): Use OPTION_NO_TRANS
	* src/utf8.c: Use locale_charset() from gnulib

	* tests/star/README: Updated

	* NEWS: Updated
	* TODO: Minor fix

2004-10-04  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* THANKS: Added Bryan Ford
	* doc/Makefile.am (.text): Fixed rule
	* po/POTFILES.in: Added argp-help.c

2004-10-04  Bryan Ford  <baford@mit.edu>

	* src/tar.c: New option --exclude-caches, to exclude
	cache directories automatically on archive creation.
	Cache directories are directories containing a
	standardized tag file, as specified at:
		http://www.brynosaurus.com/cachedir/spec.html
	* src/common.h: New variable exclude_caches_option.
	* src/create.c: New function check_cache_directory(),
	called from dump_dir0() if exclude_caches_option is set,
	to check for a cache directory tag and exclude the directory
	if such a tag is found.
	* doc/tar.texi: Updated accordingly.

2004-09-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* doc/tar.texi: Minor fix
	* src/tar.c (options): Minor fix

2004-09-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* TODO: Updated
	* lib/Makefile.tmpl: Added 'rtapelib.o: localedir.h' dependency
	* src/common.h: Comment WANT_DIRECTORY_REMOVE_OPTION.
	* src/extract.c: Normalized use of remove_any_file().
	* src/misc.c: Likewise.
	* src/tar.c (parse_opt): Emit warning if -l option is used.
	(show_default_settings): REMOTE_SHELL may be undefined

2004-09-07  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	Test suite rewritten in autotest.

	* configure.ac: Updated for autotest
	* src/tar.c (argp_program_version): Modified.
	* tests/Makefile.am: Rewritten for autotest.

	* tests/.cvsignore: Updated
	* tests/append.at: New file
	* tests/atlocal.in: New file
	* tests/delete01.at: New file
	* tests/delete02.at: New file
	* tests/delete03.at: New file
	* tests/delete04.at: New file
	* tests/extrac01.at: New file
	* tests/extrac02.at: New file
	* tests/extrac03.at: New file
	* tests/extrac04.at: New file
	* tests/extrac05.at: New file
	* tests/gzip.at: New file
	* tests/ignfail.at: New file
	* tests/incremental.at: New file
	* tests/link01.at: New file
	* tests/listed01.at: New file
	* tests/listed02.at: New file
	* tests/longv7.at: New file
	* tests/multiv01.at: New file
	* tests/multiv02.at: New file
	* tests/multiv03.at: New file
	* tests/old.at: New file
	* tests/options.at: New file
	* tests/recurse.at: New file
	* tests/same-order01.at: New file
	* tests/same-order02.at: New file
	* tests/sparse01.at: New file
	* tests/testsuite.at: New file
	* tests/version.at: New file
	* tests/volume.at: New file
	* tests/star/gtarfail.at: New file
	* tests/star/gtarfail2.at: New file
	* tests/star/multi-fail.at: New file
	* tests/star/pax-big-10g.at: New file
	* tests/star/ustar-big-2g.at: New file
	* tests/star/ustar-big-8g.at: New file

	* tests/preset.in: Removed
	* tests/before: Removed
	* tests/after: Removed
	* tests/version.sh: Removed.
	* tests/append.sh: Removed.
	* tests/delete01.sh: Removed.
	* tests/delete02.sh: Removed.
	* tests/delete03.sh: Removed.
	* tests/delete04.sh: Removed.
	* tests/extrac01.sh: Removed.
	* tests/extrac02.sh: Removed.
	* tests/extrac03.sh: Removed.
	* tests/extrac04.sh: Removed.
	* tests/extrac05.sh: Removed.
	* tests/gzip.sh: Removed.
	* tests/incremen.sh: Removed.
	* tests/ignfail.sh: Removed.
	* tests/link01.sh: Removed.
	* tests/listed01.sh: Removed.
	* tests/listed02.sh: Removed.
	* tests/longv7.sh: Removed.
	* tests/multiv01.sh: Removed.
	* tests/multiv02.sh: Removed.
	* tests/multiv03.sh: Removed.
	* tests/old.sh: Removed.
	* tests/options.sh: Removed.
	* tests/same-order01.sh: Removed.
	* tests/same-order02.sh: Removed.
	* tests/volume.sh: Removed.
	* tests/recurse.sh: Removed.
	* tests/sparse01.sh: Removed.
	* tests/star/gtarfail.sh: Removed.
	* tests/star/gtarfail2.sh: Removed.
	* tests/star/multi-fail.sh: Removed.
	* tests/star/ustar-big-2g.sh: Removed.
	* tests/star/ustar-big-8g.sh: Removed.
	* tests/star/pax-big-10g.sh: Removed.

2004-09-07  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* bootstrap: Install genfile.c from paxutils
	* tests/genfile.c: Removed. Integrated into
	paxutils.
	* tests/mksparse.c: Removed. Integrated into
	(paxutils) genfile.c
	* tests/Makefile.am: Removed mksparse
	* tests/sparse01.sh: Use genfile instead of mksparse

2004-09-06  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	Started merging with cpio into paxutils. Sources before
	this point are tagged alpha-1_14_90

	* Makefile.am: Updated for use with paxutils
	* README-alpha: Likewise
	* bootstrap: Likewise
	* configure.ac: Likewise
	* lib/Makefile.tmpl: Likewise
	* po/POTFILES.in: Likewise
	* src/Makefile.am: Likewise
	* src/buffer.c: Likewise
	* src/common.h: Likewise
	* src/compare.c: Likewise
	* src/create.c: Likewise
	* src/delete.c: Likewise
	* src/extract.c: Likewise
	* src/incremen.c: Likewise
	* src/list.c: Likewise
	* src/mangle.c: Likewise
	* src/misc.c: Likewise
	* src/names.c: Likewise
	* src/sparse.c: Likewise
	* src/system.c: Likewise
	* src/tar.c: Likewise
	* src/update.c: Likewise
	* src/utf8.c: Likewise
	* src/xheader.c: Likewise

	* src/system.h: Removed
	* src/rmt.c: Removed
	* src/rmt.h: Removed
	* src/rtapelib.c: Removed

2004-09-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* tests/listed02.sh: Do not depend on any particular ordering
	of output.

2004-09-02  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* doc/tar.texi: Document the use of -C option in
	file lists. Document --seek option.
	* configure.ac: New option --with-rmt. New configuration variable
	DEFAULT_RMT_DIR. Removed DEFAULT_RMT_COMMAND.
	* src/Makefile.am: Install rmt into rmtdir
	* src/tar.c (usage): Minor fix.
	* NEWS: Updated.
	* README: Updated.

2004-09-01  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Raised version number to 1.14.90
	* src/common.h (is_individual_file): New prototype
	* src/create.c (dump_file0): Fix bug introduced
	2004-02-21.
	* src/names.c (register_individual_file)
	(is_individual_file): New functions.
	* tests/listed01.sh: Use genfile instead of dd.
	* tests/listed02.sh: New file.
	* tests/Makefile.am: Added listed02.sh

	* NEWS: Updated

2004-08-31  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/sparse.c (sparse_add_map): Fixed improper initializations
	of sparse_map_size. We assume that whatever number it contains
	describes adequately the current size of sparse_map. The only
	number we need to reset is sparse_map_avail.
	* src/compare.c (verify_volume): Call set_next_block_after
	if read_header returns HEADER_FAILURE
	Destroy and reinitialize content of current_stat_info and
	extended_header after each iteration (bug reported by
	John L. Males <jlmales@yahoo.com>).
	Issue a warning if the created archive contains some members
	whose file names were stripped off their leading prefixes.
	This is a temporary fix of the issue reported by Bdale Garbee
	<bdale@gag.com> (Refs: Debian bug 230064, Message-Id
	<87n07kyzhi.fsf@rover.gag.com>, Sun, 15 Feb 2004 11:22:17 -0700)

	* src/names.c (removed_prefixes_p): New function.

	* src/buffer.c: When computing write rate do not take
	into account the time needed to verify the archive(s).
	The bug reported by John L. Males <jlmales@yahoo.com>
	(set_start_time,compute_duration): New functions.
	(print_total_written): Use the result of compute_duration().
	(close_archive): Call compute_duration.
	* src/common.h (set_start_time, removed_prefixes_p): New prototypes.
	* src/list.c (decode_header): Fixed initialization
	of stat_info->is_sparse
	* src/tar.c (main): Call set_start_time().

	* src/misc.c (unquote_string): Unquote '\a' and '\v'.
	Reported by Helmut Waitzmann <helmut.waitzmann@web.de>.

	* NEWS: Updated
	* THANKS: Updated

2004-08-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/tar.c: Fix copy-n-paste errors in the license

2004-08-19  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* scripts/backup.in: Renamed LIBPATH to LIBDIR.
	Use ROOT_FS with -C option. Do not send mail
	if ADMINISTRATOR is set to NONE.
	* scripts/backup.sh.in (test_root): Append / to
	ROOT_FS if it does not already end in it.
	* scripts/restore.in: Renamed LIBPATH to LIBDIR.
	New option -a (--all). Do not start restore unless
	-a or patterns are given.
	(restore_fs,restore_files): Fixed use of --listed option.
	* doc/tar.texi: Updated
	* NEWS: Updated

2004-08-17  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/tar.c (find_argp_option): Fixed typo

2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>

	Merge argp, getopt, xalloc changes from gnulib.
	* bootstrap (gnulib_modules): Add xalloc-die.
	Remove code to test for patches; we don't have patches now.
	Set LC_ALL=C so that file names sort consistently.
	Prefer the gnulib copies of gettext.m4, glibc21.m4,
	lib-ld.m4, lib-prefix.m4, po.m4 too.

	* patches/getopt.diff: Remove; gnulib now works unpatched.
	* configure.ac (_getopt_long_only_r): Remove check.
	gl_ARGP now does this for us.
	* lib/.cvsignore: Add fnmatch.h, getopt_.h, sysexit.h,
	xalloc-die.c.
	* src/extract.c: Adjust to changes to gnulib xalloc module.
	(extr_init): Remove assignment to xalloc_fail_func; no longer needed.
	(xalloc_die): New function.

2004-08-10  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* NEWS: Updated

	* src/buffer.c (flush_write): Limit filenames
	of the members that straddle multivolume archive
	boundary to 100 characters.
	(flush_read): Use strncmp when comparing multivolume member
	names.
	* tests/multiv03.sh: New file
	* tests/Makefile.am: Added multiv03.sh

2004-08-09  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/list.c (read_and): Call decode_header before
	calling skip_member()
	(skip_member): Use is_sparse field to determine if the
	member is a sparse file.

	* tests/Makefile.am: Added extrac05.sh
	* tests/extrac05.sh: New file
	* tests/append.sh: Rearranged leading comments. Added explicit
	references to report messages wherever available.
	* tests/delete01.sh: Likewise
	* tests/delete02.sh: Likewise
	* tests/delete03.sh: Likewise
	* tests/delete04.sh: Likewise
	* tests/extrac01.sh: Likewise
	* tests/extrac02.sh: Likewise
	* tests/extrac03.sh: Likewise
	* tests/extrac04.sh: Likewise
	* tests/gzip.sh: Likewise
	* tests/ignfail.sh: Likewise
	* tests/incremen.sh: Likewise
	* tests/link01.sh: Likewise
	* tests/listed01.sh: Likewise
	* tests/longv7.sh: Likewise
	* tests/multiv01.sh: Likewise
	* tests/multiv02.sh: Likewise
	* tests/old.sh: Likewise
	* tests/options.sh: Likewise
	* tests/recurse.sh: Likewise
	* tests/same-order01.sh: Likewise
	* tests/same-order02.sh: Likewise
	* tests/sparse01.sh: Likewise
	* tests/version.sh: Likewise
	* tests/volume.sh: Likewise

2004-08-08  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* bootstrap: Extended --update-po option to take an
	optional argument specifying the po file to update.
	* src/create.c: Improved compatibility with 1.13.25
	* tests/link01.sh: New file.
	* tests/Makefile.am: Added link01.sh

2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>

	Merge from gnulib.

	* patches/argp.diff: Remove; no longer needed.

	* lib/.cvsignore: Add stat-macros.h.
	Remove addext.c, malloc.c, realloc.c.

	* src/extract.c: Include <getcwd.h>.
	(extract_archive): Rewrite with new macro IS_ABSOLUTE_FILE_NAME.
	* src/extract.c (make_directories):
	FILESYSTEM_PREFIX_LEN -> FILE_SYSTEM_PREFIX_LEN.
	* src/misc.c (must_be_dot_or_slash): Likewise.
	* src/names.c (excluded_name, safer_name_suffix, stripped_prefix_len):
	Likewise.
	* src/tar.c (parse_opt): Likewise.
	* src/incremen.c (purge_directory): Fix format buffer typos in warning
	strings.
	* src/tar.c (options): Add missing initializers to pacify gcc.
	(decode_options): Remove unused var.

2004-08-02  Paul Eggert  <eggert@cs.ucla.edu>

	* bootstrap (gnulib_modules): Add getpagesize.
	* configure.ac (valloc): Remove check; valloc no longer used.
	* lib/.cvsignore: Add getpagesize.h.
	* m4/.cvsignore: Add getpagesize.m4.
	* src/buffer.c (record_buffer): New var.
	(open_archive): Don't use valloc; on older or buggy hosts, you can't
	free the result.  Use page_aligned_alloc instead.
	* src/compare.c (diff_init): Likewise.
	* src/buffer.c (open_archive): Record the pointer to be freed
	into record_buffer.
	(close_archive): Free record_buffer.
	* src/common.h (page_aligned_alloc): New decl.
	* src/misc.c (quote_n, quote): Remove these redundant functions.
	(ptr_align): New function, from coreutils/src/system.h.
	(page_aligned_alloc): New function.
	* src/system.h (valloc): Remove.

2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>

	* src/extract.c (extract_archive): Do not report an error
	when hard-linking X to X when X exists.  Problem reported by
	Toby Peterson.
	* lib/.cvsignore: Add fchown-stub.c.

2004-06-29  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* NEWS: Updated
	* src/common.h (root_device): New global.
	(gnu_restore): Renamed to purge_directory().
	* src/extract.c (extr_init): Save the device number
	of the root device.
	(extract_archive): Renamed gnu_restore() to purge_directory().
	* src/incremen.c (gnu_restore): Renamed to purge_directory().
	Do not attempt to purge the directory if it is on a different
	device and one_file_system_option is set.

2004-06-25  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* doc/tar.texi: The actual default for exclude patterns
	is --no-anchored. Fixed.
	* src/tar.c (options): Likewise.
	Thanks "Felix Natter" <felix.natter@ldc.de> for noticing.

2004-06-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* doc/tar.texi: Fixed several inconsistencies.
	* src/tar.c: Fixed docstring for --checkpoint option.

2004-05-19  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/buffer.c (seek_archive): New function
	* src/common.h (seek_archive): New function
	(seekable_archive): New global.
	* src/list.c (skip_file): Use seek_archive() if
	possible.
	* src/tar.c (struct fmttab): Accept 'pax' as alias
	for 'posix'
	(options): New option -n (--seek).
	* src/update.c: Determine type of the archive before
	appending to it.

	* TODO: Updated.

2004-05-19  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* bootstrap: New option --update-po
	* src/tar.c: New option -H (short alias to --format)
	* doc/tar.texi: Document -H option
 	* src/names.c (safer_name_suffix): Fixed bug introduced
	2004-05-11.

2004-05-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* bootstrap: Apply patches from patch subdirectory
	* patches: New dir
	* patches/argp.diff: New file
	* patches/getopt.diff: New file
	* configure.ac: Check for _getopt_long_only_r and
	force using included version of getopt if the function
	is not available.
	* src/tar.c: Use argp for command line parsing.
	* src/system.h: Minor formatting fix
	* m4/.cvsignore: Updated
	* lib/.cvsignore: Updated
	* doc/tar.texi: Minor fix.
	* src/extract.c: Fix improper use of 'path' term
	* src/incremen.c: Likewise
	* src/list.c: Likewise
	* src/misc.c: Likewise
	* src/names.c: Likewise
	* src/rmt.h: Likewise
	* src/rtapelib.c: Likewise
	* src/update.c: Likewise
	* src/xheader.c: Likewise
	* tests/star/README: Minor fix

2004-05-13  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Raised version number to 1.14.1
	* src/tar.c: Renamed --strip-path to --strip-components
	Changed improper use of _() to ngettext().
	* src/extract.c: Renamed strip_path_option to strip_components_option
	* src/common.h: Likewise.
	* NEWS: Updated.
	* doc/tar.texi: Updated

2004-05-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/system.c (sys_child_open_for_uncompress): Do not
	set read_full_records_option: the compressed archive is
	likely not to contain integer number of records. Should
	the user wish to use reblocking, he may always give tar
	-B option. This is a minor improvement over the change
	dated 2004-03-22.
	* src/buffer.c (open_archive): Removed assignment to
	read_full_records_option.

	* src/names.c (safer_name_suffix): (safer_name_suffix): Use "%s"
	as the format argument, rather than a possibly-translated variable
	string. Patch provided by Jim Meyering  <jim@meyering.net>
	* src/tar.c (decode_options): Fixed typo in the comment.
	* tests/star/README: Minor correction

2004-05-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* directory: New file. GNU directory entry for tar.
	* doc/Makefile.am: Rewritten. Added rules for generating
	documentation for the project's website.
	* doc/.cvsignore: Updated
	* doc/index.html.in: New file.

2004-05-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Raised version number to 1.14
	* NEWS: Updated.
	* tests/after: Added copyleft statement
	* tests/before: Added copyleft statement
	* tests/preset.in: Added copyleft statement

	Tar 1.14 is released. Sources up to this point are tagged
	release_1_14

2004-05-10  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Fixed prerequisite headers for sys/buf.h
	(needed on FreeBSD)
	* src/system.h: Likewise.
	* tests/after (compare): Fixed argument quoting under eval
	* tests/before: Quote TAR_ARCHIVE_FORMATS

2004-05-10  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* NEWS: Updated
	* README: Updated
	* PORTS: Updated
	* configure.ac: Call gl_AC_TYPE_INTMAX_T. Document
	DEFAULT_.* variables. Use DEFAULT_RMT_COMMAND to set
	the pathname of the rmt utility.
	New option --enable-backup-scripts.
	* doc/tar.texi: Updated
	* scripts/Makefile.am: Install the scripts only if requested
	by the configure.
	* scripts/backup.in: Fixed --version output.
	Fixed initialization of the listing files and printing
	the time of the last previous level dump.
	* scripts/restore.in: Fixed --version output.
	* src/Makefile.am (localedir.h rule): Generate correct
	DEFAULT_RMT_COMMAND variable.
	* src/common.h (rmt_command_option): New variable.
	* src/list.c (read_and): Print block number before
	issuing 'Skipping to next header' diagnostics, if
	requested by block_number_option.
	* src/rtapelib.c: Use rmt_command_option instead of
	hardcoded "/etc/rmt".
	* src/tar.c: New option --rmt-command.
	(decode_options): Handle --rmt-command. Initialize
	rmt_command_option to DEFAULT_RMT_COMMAND.

2004-05-09  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* doc/tar.texi: Further update.

2004-05-08  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Minor fix
	* scripts/Makefile.am: Updated
	* scripts/backup-specs: Updated
	* scripts/backup.in: Minor fixes
	* scripts/backup.sh: Removed
	* scripts/backup.sh.in: New file. Source for backup.sh
	* scripts/restore.in: New file
	* scripts/.cvsignore: Updated
	* scripts/WARNING: Removed
	* doc/tar.texi: Updated
	* NEWS: Updated

2004-05-07  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/names.c (name_gather): Bugfix: Honor single -C with
	--same-order.
	* tests/same-order01.sh: New file
	* tests/same-order02.sh: New file
	* tests/Makefile.am: Updated

	* tests/append.sh: Added copyleft header
	* tests/delete01.sh: Likewise
	* tests/delete02.sh: Likewise
	* tests/delete04.sh: Likewise
	* tests/extrac01.sh: Likewise
	* tests/extrac02.sh: Likewise
	* tests/extrac03.sh: Likewise
	* tests/extrac04.sh: Likewise
	* tests/gzip.sh: Likewise
	* tests/ignfail.sh: Likewise
	* tests/incremen.sh: Likewise
	* tests/multiv01.sh: Likewise
	* tests/old.sh: Likewise
	* tests/options.sh: Likewise
	* tests/recurse.sh: Likewise
	* tests/version.sh: Likewise
	* tests/volume.sh: Likewise
	* tests/star/gtarfail.sh: Likewise
	* tests/star/gtarfail2.sh: Likewise
	* tests/star/multi-fail.sh: Likewise
	* tests/star/pax-big-10g.sh: Likewise
	* tests/star/qucktest.sh: Likewise
	* tests/star/ustar-big-2g.sh: Likewise
	* tests/star/ustar-big-8g.sh: Likewise

	* doc/.cvsignore: Updated

2004-05-06  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Check whether date accepts +format argument
	(for backup scripts).
	* scripts/level-0: Removed
	* scripts/level-1: Removed
	* scripts/weekly.new: Removed
	* scripts/dump-remind: Removed
	* scripts/backup.in: New file
	* scripts/backup.sh: New file
	* scripts/dump-remind.in: New file
	* scripts/backup-specs: Updated
	* scripts/Makefile.am: Updated for new directory contents.
	* scripts/.cvsignore: Updated

2004-05-05  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* TODO: Updated
	* doc/tar.texi:	Updated
	* src/tar.c: --utc implies -vv

2004-04-28  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/utf8.c: Make sure ICONV_CONST is defined. AM_ICONV
	does not define it if it fails to find iconv.h.

2004-04-26  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* bootstrap: Use gnulib-tool to generate lib/Makefile.am
	and parts of configure.ac
	* configure.ac: Invoke tar_GNULIB to configure gnulib stuff.
	* lib/Makefile.am: Removed
	* lib/Makefile.tmpl: New file.
	* lib/.cvsignore: Updated
	* m4/.cvsignore: Updated
	* src/xheader.c: Include stpcpy.h

	* src/create.c: Produce an error, not warning, if the
	filename is too long.
	* tests/longv7.sh: Synchronized with the recent changes.

2004-04-20  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Fixed test for iconv_t
	* src/rmt.h: Bugfix by Jürgen Weigert
	* THANKS: Add Jürgen Weigert
	* tests/star/README: Fixed typo

2004-04-04  Paul Eggert  <eggert@twinsun.com>

	Merge getdate documentation changes from coreutils.

	* doc/getdate.texi: Update from coreutils CVS.
	* doc/tar.texi: Fix getdate menu to match getdate.texi's.

	Merge recent gnulib changes, and remove some lint.

	Improve support for nanosecond-resolution time stamps.
	* bootstrap: Add gettime, timespec modules.
	* configure.ac (gl_GETTIME, gl_TIMESPEC): Add.
	* lib/.cvsignore (getopt_int.h, gettime.c, gettimeofday.c,
	timespec.h): Add.
	* lib/Makefile.am (libtar_a_SOURCES): Add gettime.c, timespec.h.
	* m4/.cvsignore: Add clock_time.m4, gettime.m4, gettimeofday.m4,
	st_mtim.m4, timespec.m4.  Remove malloc.m4, realloc.m4.
	* src/common.h (newer_mtime_option): Now a struct timespec, not
	time_t.  All uses changed.
	(NEWER_OPTION_INITIALIZED, OLDER_STAT_MTIME): New macros.
	* src/create.c (dump_file0): Use OLDER_STAT_TIME to compare times.
	* src/incremen.c (scan_path): Likewise.
	* src/list.c (read_and): Likewise.
	* src/list.c (read_and): Use NEWER_OPTION_INITIALIZED to decide
	whether newer_mtime_option is initialized.
	* src/tar.c (decode_options): Likewise.
	* src/tar.c (decode_options): Adjust to new signature for get_date.

	* src/buffer.c (short_read, flush_read): Use size_t, not ssize_t, for
	result of safe_read, full_write, and similar functions.
	Detect safe_read error by comparing to SAFE_READ_ERROR;
	detect full_write error by comparing to 0.
	All uses changed.
	* src/common.h (write_error_details, sys_write_archive_buffer):
	Likewise.
	* src/misc.c (write_error_details): Likewise.
	* src/rmt.c (main): Likewise.
	* src/rmt.h (rmt_read__, rmt_write__): Likewise.
	* src/rtapelib.c (rmt_read__, rmt_write__, rmt_ioctl__): Likewise.
	* src/sparse.c (sparse_scan_file, sparse_dump_region,
	check_sparse_region, check_data_region): Likewise.
	* src/system.c (sys_write_archive_buffer, sys_drain_input_pipe,
	sys_child_open_for_compress, sys_child_open_for_uncompress): Likewise.
	* src/update.c (append_file): Likewise.

	* src/buffer.c (clear_read_error_count): Use explicit (void)
	to indicate a function with no arguments.
	* src/create.c (check_links): Likewise.
	* src/system.c (sys_get_archive_stat, sys_save_archive_dev_ino,
	sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell,
	sys_reset_uid_gid, sys_get_archive_stat, sys_save_archive_dev_ino,
	sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell):
	Likewise.
	* src/utf8.c (get_input_charset): Likewise.
	* src/xheader.c (xheader_ghdr_name, xheader_write_global,
	xheader_decode_global, extended_header_init): Likewise.
	* tests/mksparse.c (usage): Likewise.

	* src/buffer.c (new_volume): Rename local variables to avoid
	shadowing warnings.
	* src/common.h (file_dumpable_p, sys_stat_nanoseconds,
	sparse_file_p, sparse_member_p, sparse_fixup_header,
	sparse_dump_file, sparce_extract_file, sparse_skip_file,
	sparse_diff_file): Likewise.
	* src/compare.c (diff_archive): Likewise.
	* src/create.c (file_dumpable_p, dump_regular_file, dump_dir0,
	dump_dir, dump_hard_link, file_count_links, dump_file0, dump_file):
	Likewise.
	* src/extract.c (repair_delayed_set_stat): Likewise.
	* src/misc.c (maybe_backup_file, add_hierarchy_to_namelist):
	Likewise.
	* src/sparse.c (struct tar_sparse_optab, tar_sparse_dump_region,
	tar_sparse_extract_region, sparse_dump_region, sparse_extract_region,
	sparse_dump_file, sparse_file_p, sparse_member_p,
	sparse_fixup_header, sparse_extract_file, sparse_skip_file,
	check_data_region, sparse_diff_file): Likewise.
	* src/system.c (sys_stat_nanoseconds): Likewise.
	* src/xheader.c (xheader_format_name): Likewise.

	* src/common.h (enum old_files): Remove comma before }; not portable.

	* src/common.h (read_fatal_details): Add __attribute__ ((noreturn)).
	* src/rmt.c (usage): Likewise.
	* src/xheader.c (xheader_set_single_keyword): Likewise.
	* tests/genfile.c (usage): Likewise.
	* tests/mksparse.c (die, usage): Likewise.  Also add printf attribute
	to die.

	* src/common.h (gname_to_gid, uname_to_uid): Add const to avoid
	some gcc warnings.
	* src/names.c (uname_to_uid, gname_to_gid): Likewise.
	* src/utf8.c (struct langtab.lang, struct langtab.terr, struct
	langtab.charset, charset_lookup): Likewise.

	* src/common.h (name_init): Remove unused args.  All callers changed.
	* src/names.c (name_init): Likewise.

	* src/common.h (usage, xheader_write, xheader_write_global,
	sys_reset_uid_gid): New decls.

	* src/compare.c (report_difference, process_noop): Add
	__attribute__ ((unused)) for unused attributes.
	* src/sparse.c (oldgnu_sparse_member_p, star_sparse_member_p):
	Likewise.
	* src/xheader.c (dummy_coder, dummy_decoder, atime_coder,
	gid_coder, gname_coder, linkpath_coder, ctime_coder, mtime_coder,
	path_coder, size_coder, uid_coder, uname_coder,
	sparse_numblocks_coder): Likewise.

	* src/create.c (dump_regular_finish, dump_dir0, dump_dir,
	dump_file0): Now static.
	* src/utf8.c (charset_lookup): Likewise.
	* src/xheader.c (xheader_protected_pattern_p,
	xheader_protected_keyword_p, xheader_set_single_keyword,
	xheader_keyword_deleted_p, xheader_keyword_override_p,
	xheader_list_append, xheader_list_destroy, xheader_set_keyword_equal):
	Likewise.
	* tests/genfile.c (usage): Likewise.
	* tests/mksparse.c (die, mkhole, mksparse, usage, xlat_suffix):
	Likewise.

	* src/create.c (hash_link): Rewrite to avoid cast.

	* src/extract.c (file_newer_p): Use parameter, not global var.
	* src/misc.c (write_error_details): Likewise.

	* src/extract.c (prepare_to_extract): Remove directory arg; not
	used.  All callers changed.

	* src/misc.c (close_fatal): Remove; not used.
	* src/system.c (sys_utimes): Likewise.

	* src/rmt.c (get_string): Avoid buffer overrun (off by 1 error).

	* src/rmt.c (main): Update copyright date to 2004.
	* src/tar.c (decode_options): Likewise.

	* src/rtapelib.c (get_status_string): Don't lose errno when
	skipping the error messages.
	(get_status): Report an error if atol returns a negative number.

	* src/utf8.c (struct langtab, langtab, charset_lookup,
	get_input_charset) [!defined HAVE_LIBCONV]: Omit unused
	definitions.
	(iconv_open, iconv, iconv_close) [!defined HAVE_LIBCONV]:
	Use macros, not definitions, to avoid type clashes with system
	headers.
	(charset_lookup): Local var is now auto, not static.
	(utf8_convert): Use ICONV_CONST instead of const, to avoid
	type clashes.

	* src/utf8.c (langtab): Initialize all elements of struct, to
	avoid gcc warning.
	* src/xheader.c (xhdr_tab): Likewise.

	* src/xheader.c: Include fnmatch.h, since we use fnmatch.

	* tests/mksparse.c (mkhole): Fix typo: bool was assigned to off_t.

2004-04-04  Sergey Poznyakoff  <gray@Noldor.runasimi.org>

	* NEWS: Updated
	* configure.ac: Raised version number to 1.13.94
	* src/system.h: Protect inclusion of <sys/time.h>
	by ifdef.
	Declare time() if HAVE_DECL_TIME is 0
	* tests/.cvsignore: Added mksparse

	* tests/sparse01.sh: New file
	* tests/multiv02.sh: New file
	* tests/Makefile.am: Add sparse01.sh and multiv02.sh
	* tests/longv7.sh: Added missing call to 'after'

	* src/common.h: Added missing prototypes
	* src/compare.c (diff_archive): Use is_sparse member
	instead of GNUTYPE_SPARSE.
	* src/create.c: Removed unused variables
	* src/extract.c (extract_archive): Use sparse_member_p instead
	of GNUTYPE_SPARSE.
	Removed unused variables
	* src/list.c (decode_header): Use sparse_fixup_header to correct
	the st_size value.
	(print_header): Do not rely on GNUTYPE_SPARSE type.
	Use st->stat.st_size to print real file size.
	(skip_member): Assign stat_info.file_name to save_name. This fixes
	bug reported by Mads Martin Joergensen <mmj@suse.de>
	Use sparse_skip_file() to skip sparse members.
	* src/rtapelib.c: include "common.h"
	* src/sparse.c (struct tar_sparse_optab.sparse_member_p)
	(struct tar_sparse_optab.fixup_header): New member
	(tar_sparse_member_p): New function.
	(tar_sparse_init): Return true if decode_header is not provided
	(tar_sparse_fixup_header)
	(sparse_member_p,sparse_fixup_header)
	(sparse_skip_file)
	(oldgnu_sparse_member_p,oldgnu_fixup_header,star_sparse_member_p)
	(star_fixup_header, pax_sparse_member_p): New function
	(pax_decode_header): Remove
	* src/system.h: Include <sys/time.h> and <utime.h> when available
	* src/tar.c (usage): Prototype moved to common.h
	* src/tar.h (struct tar_stat_info.is_sparse): New member
	* src/utf8.c (utf8_convert): Changed prototype
	(get_input_charset): Removed unused variable
	* src/xheader.c: include <fnmatch.h>
	(size_decoder): Assign to both st->archive_file_size and
	st->stat.st_size.
	(st->stat.st_size): Assign to st->stat.st_size
	(sparse_numbytes_decoder): Removed unused variable
	* src/.cvsignore: Added .gdbinit
	* THANKS: Added Mads Martin Joergensen

2004-03-26  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/create.c (write_long_name): Do not allow more than
	NAME_FIELD_SIZE-1 characters in a file name for V7 format
	archives.
	* tests/longv7.sh: New file.
	* tests/Makefile.am: Add longv7.sh

2004-03-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/buffer.c (open_archive): Clear read_full_records_option
	if reading from a pipe.
	(short_read): Display warning about the deduced record size
	if version > 1
	* tests/star/pax-big-10g.sh: Updated to match the above changes.
	* tests/star/ustar-big-2g.sh: Likewise.
	* tests/star/ustar-big-8g.sh: Likewise.

	* configure.ac: Added gl_FUNC_STRTOULL
	* src/create.c (start_header): Check for GNU_FORMAT
	if incremental_option is set.
	* src/xheader.c (to_decimal): New function.
	(xheader_format_name): Use to_decimal() instead of snprintf.
	* tests/listed01.sh: Use genfile instead of dd
	* tests/multiv01.sh: Likewise.

2004-03-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/list.c (read_and): Stop processing the archive after
	encountering a single zero record. Many old archives contain
	arbitrary garbage after it.
	The warning is issued anyway.

2004-03-02  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/rtapelib.c (rmt_lseek__,rmt_ioctl__): Bugfix. The
	conversion buffer was not null terminated. Fix provided
	by Leland Lucius <llucius@tiny.net>
	* THANKS: Added Leland Lucius
	* src/utf8.c (utf8_convert): Indentation fix.

2004-02-29  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/buffer.c (flush_read): Bugfix: the
	condition at line 714 included

	      || (status > 0 && !read_full_records_option)

	which is grossly wrong, since even if new_volume() below succeeds,
	the subsequent call to rmtread will overwrite the chunk of data
	already read in the buffer and thus spoil everything.
	* src/system.c (sys_child_open_for_uncompress): Minor stylistic
	fix.
	* tests/star/multi-fail.sh: New test.
	* tests/Makefile.am: Added multi-fail.sh
	* tests/star/README: Updated

2004-02-29  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* NEWS: Updated
	* configure.ac: Removed spurious AC_CHECK_LIB(iconv)
	* src/common.h (utc_option): new global
	(enum old_files.KEEP_NEWER_FILES): New element
	* src/extract.c: Handle --keep-newer-files option
	* src/list.c (tartime): Print UTC if --utc was given.
	* src/tar.c: New options: --utc and keep-newer-files

	* tests/Makefile.am: Added new tests
	* tests/after: Rewritten
	* tests/before: Rewritten
	* tests/preset.in: Rewritten
	* tests/delete03.sh: Accommodate for the new testsuite logic
	* tests/gzip.sh: Likewise
	* tests/incremen.sh: Likewise
	* tests/listed01.sh: Likewise
	* tests/multiv01.sh: Likewise
	* tests/old.sh: Likewise
	* tests/options.sh: Likewise
	* tests/version.sh: Likewise
	* tests/volume.sh: Likewise

	* tests/star: New directory
	* tests/star/README: New file
	* tests/star/gtarfail.sh: New file
	* tests/star/gtarfail2.sh: New file
	* tests/star/pax-big-10g.sh: New file
	* tests/star/qucktest.sh: New file
	* tests/star/ustar-big-2g.sh: New file
	* tests/star/ustar-big-8g.sh: New file

2004-02-26  Paul Eggert  <eggert@twinsun.com>

	* doc/tar.texi (dircategory Individual utilities): Append period,
	as suggested by Karl Berry.

2004-02-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/list.c (decode_header): Call xheader_decode before
	the assignment to current_stat_info.archive_file_size.

2004-02-23  Paul Eggert  <eggert@twinsun.com>

	* configure.ac: Invoke AM_ICONV, to define ICONV_CONST if needed.

2004-02-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	1.13.93 released.

	* NEWS: Updated
	* tests/before: Move testing of the prerequisite archive formats
	to the separate function 'prereq'. Do not expect any arguments
	* tests/delete03.sh: Use prereq() instead of passing arguments
	to 'before'.
	* tests/incremen.sh: Likewise.
	* tests/listed01.sh: Likewise.
	* tests/multiv01.sh: Likewise.

2004-02-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	Added UTF-8 support. Finished global extended header
	support.

	* NEWS: Minor fix
	* configure.ac: Detect libiconv
	* src/utf8.c: New file. Conversions to and from utf-8.
	* src/Makefile.am: Added utf8.c
	* src/create.c (write_header_name) In pax format, use
	"path" keyword if the file name is not ASCII
	(start_header): Likewise for uname and gname.
	* src/list.c: Decode encountered global headers.
	* src/xheader.c: Use keywords from the global
	headers.
	Correctly handle UTF-8 conversions.
	(xheader_list_destroy): New function.
	(xheader_set_single_keyword,xheader_set_keyword_equal): Added
	missing gettext markers
	(decode_record): Rewritten using caller-provided handler and
	data closure.
	* tests/listed01.sh: Give credit to Andreas Schuldei.

2004-02-21  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/create.c (dump_file0): The conditional at line
	1296 prevented incremental backups on individual files
	from working, as reported by Andreas Schuldei
	<andreas@schuldei.org>.

	This is due to the condition

	  (0 < top_level || !incremental_option)

	Removing it makes incremental backups work for individual
	files as well as for directories. On the other hand, it does
	not affect other functionality, as shown by the reasoning below:

	To begin with, the two parts of this condition are mutually
	superfluous, because

	  1) when top_level < 0, incremental_option == 1
	  so the condition yields false
	  2) when top_level >= 0, incremental_option == 0
	  so the condition yields true.

	In other words, it is completely equivalent to

	      (!incremental_option)

	Now, let's consider the effect of its removal. There are two cases:

	1) when incremental_option==1
	This means incremental backup in progress. In this case dump_file
	is invoked only for directories or for files marked with 'Y' by
	get_directory_contents. The latter are those that did not meet the
	condition in incremen.c:242, which is exactly the same condition
	as this at create.c:1296. So, for these files the check
	(!incremental_option) is useless, since the rest of the
	conditional will yield false anyway. On the other hand, if
	dump_file is invoked on a directory, the conditional will yield
	false due to !S_ISDIR assertion, so these will be processed as usual.

	Thus, for this case the extra condition (!incremental_option) is
	irrelevant, and its removal won't alter the behavior of tar,
	*except* that it will enable incremental backups on individual
	files, which is the wanted effect.

	2) when incremental_option==0
	In this case the condition yields true and its removal does not
	affect the functionality.

	* THANKS: Updated
	* configure.ac: Raised patchlevel to 93
	* src/incremen.c: Minor stylistic fixes.
	* tests/listed01.sh: New test. Check listed incremental
	backups on individual files.
	* tests/Makefile.am: Added listed01.sh

2004-02-20  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/common.h (simple_finish_header,start_private_header): New
	declarations
	(xheader_ghdr_name): Changed declaration
	* src/create.c (start_private_header): Removed static qualifier.
	(write_extended): Removed superfluous last argument. Use
	xheader_write()
	(simple_finish_header): New function.
	(finish_header): Use simple_finish_header() to break recursive
	dependency between this function and write_extended().
	* src/tar.c (assert_format): Do not bail out if several
	--format arguments are given. This is a common case when
	TAR_OPTIONS are used.
	(decode_options): New option --show-defaults displays the
	compiled-in defaults.
	Use POSIX format if no --format option was given and
	--pax-option was specified.
	Do not allow to use --pax-option unless the archive format is
	set to POSIX (or reading subcommand is requested).

	* src/update.c (update_archive): Write global extended header if
	constructed.
	* src/xheader.c (xheader_format_name): Bugfix.
	(xheader_xhdr_name): Changed the default extended header name
	to '%d/PaxHeaders.%p/%f', as POSIX requires.
	(xheader_ghdr_name): Removed unused argument.
	(xheader_write,xheader_write_global): New function.
	(xheader_decode): Modified to honor overrides whatever
	the current archive format is.

	* src/delete.c (delete_archive_members): Call xheader_decode
	unconditionally.
	* src/list.c (decode_header): Likewise.
	* src/incremen.c (sort_obstack): Fixed typo in the comment

	* doc/tar.texi: Document new default for extended
	header names.

	* tests/before: Accept an optional list of allowed archive
	formats. Exit with the status 77 if the current archive
	format does not match any of them.
	* tests/delete03.sh: Require gnu, oldgnu or posix format
	* tests/incremen.sh: Require gnu or oldgnu format
	* tests/multiv01.sh: Likewise

2004-02-20  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* doc/tar.texi (Option Summary): Documented --pax-option
	* src/tar.c: Likewise.
	* NEWS: Likewise.
	* src/create.c (to_chars): Added a comment.
	* src/tar.h: Comment to GNU_FORMAT

2004-02-18  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* README: Updated
	* configure.ac: Added stpcpy
	* bootstrap: Likewise
	* lib/Makefile.am: Likewise
	* src/common.h (xheader_xhdr_name,xheader_ghdr_name): New
	functions
	* src/create.c (write_extended): Call xheader_xhdr_name
	instead of using hardcoded "././@PaxHeader" name.
	* src/tar.c: New option --pax-option (equivalent to -o option
	of pax).
	* src/xheader.c: Implement pax -o option. Fixed misleading
	heading comment (introduced 2003-09-02).
	* src/incremen.c: Minor fixes
	* m4/.cvsignore: Updated

2004-02-17  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/incremen.c: Removed accumulator stuff in favor of obstack.
	(get_directory_contents): Split into two functions
	* src/update.c: Minor changes
	* doc/tar.texi: Fixed typo

2004-02-15  Paul Eggert  <eggert@twinsun.com>

	Fix Debian bug 230872, originally reported by Jeff King in
	<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=230872>.

	* doc/tar.texi (posix compliance): Remove.  The whole section
	was a misunderstanding of what POSIXLY_CORRECT is supposed to
	mean.  The GNU Coding Standards says that POSIXLY_CORRECT
	is for disabling extensions that are incompatible with POSIX:
	it is not for disabling compatible extensions.  All references
	to this section removed.
	(posix): This format is created only if the posix format is
	specified; it is no longer created if gnu format is specified
	and POSIXLY_CORRECT is set.
	* src/tar.c (decode_options): Ignore POSIXLY_CORRECT.
	POSIX does not specify the behavior of tar, so we should
	not worry about POSIXLY_CORRECT here.

2004-01-21  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* Makefile.am: Removed m4
	* configure.ac: Require automake-1.8/autoconf-2.59. Removed
	m4/Makefile.
	* README-alpha: Updated
	* bootstrap: Updated TP URL, improved help output. Default
	to :ext:anoncvs and set CVS_RSH, unless already set.
	* m4/Makefile.am: Removed

2004-01-21  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* bootstrap: Bugfix by Marco Gerards <metgerards@student.han.nl>:
	Use $option instead of $1 so all options will be parsed.

2004-01-04  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	Started rewriting buffer.c ...

	* bootstrap: New option --no-po
	* src/buffer.c (new_volume,check_label_pattern): Changed return type.
	(time_to_start_writing): Changed data type
	(file_to_switch_to): Removed. Variable never assigned to.
	(open_archive) Moved option compatibility checks to tar.c
	Other minor changes.
	* src/common.h (maybe_backup_file): Changed return type
	* src/misc.c: Likewise.
	* src/create.c: Updated invocations of safer_name_suffix
	* src/extract.c: Likewise
	* src/delete.c: Updated assignment to write_archive_to_stdout
	* src/tar.c (decode_options): More option compatibility checks
	(moved from buffer.c)
	* src/update.c (time_to_start_writing): Changed data type.
	* tests/recurse.sh: New test case.
	* tests/mksparse.c: New file.
	* tests/Makefile.am: Added recurse.sh and mksparse.c

2004-01-02  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/sparse.c (sparse_diff_file): Bugfix. Thanks
	Martin Simmons for the patch.
	* src/create.c (dump_dir0): Bugfix. Thanks Piotr Czerwinski
	<pius@pld-linux.org> for the patch.

2003-12-26  Paul Eggert  <eggert@twinsun.com>

	Synchronize with Gettext 0.13.1, Automake 1.8, Autoconf 2.59,
	and translation website.

	* bootstrap: Don't bother skipping codeset.m4, glibc21.m4,
	intdiv0.m4, inttypes_h.m4, inttypes.m4, inttypes-pri.m4,
	isc-posix.m4, and lcmessage.m4 from gnulib.  This list of files is
	a bit obsolete anyway, now that gettext 0.13.1 is out.  Also, the
	files are replaced by autoreconf.  Also, there seems to be a bug
	in gettext/autoconf/automake if we try to omit these files after
	autoreconf has replaced them, even though the gettext manual says
	they're optional.  So give up and just include them for now, even
	though they make 'configure' longer and slower.

	Change translation URL from
	<http://www.iro.umontreal.ca/contrib/po/maint/tar/> to
	<http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/> to
	accommodate translator website revamp.

	Fail if autoreconf fails.

	* m4/.cvsignore: Add intmax.m4, longdouble.m4, printf-posix.m4,
	signed.m4, size_max.m4, wchar_t.m4, wint_t.m4, xsize.m4, to
	ignore files now supplied by gettext 0.13.1.

2003-12-25  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	Synchronized with the backup repository on Mirddin

2003-12-19  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Check for varios members of struct stat
	that may represent file modification times with a subsecond
	precision.
	Check for utimes (for future use)
	* src/buffer.c (short_read): Issue a warning on short reads.
	* src/common.h (sys_stat_nanoseconds): New function
	* src/create.c (dump_file0): Use sys_stat_nanoseconds().
	* src/list.c (read_and): Treat only two successive zero
	filled blocks as an EOF indicator. Issue a warning if
	a single one is encountered.
	* src/system.c (sys_stat_nanoseconds): New function
	* src/tar.h (tar_stat_info.atime_nsec,mtime_nsec,ctime_nsec): New
	members.
	* src/xheader.c (code_time,decode_time): Support for subsecond
	precision.
	(atime_coder,atime_decoder,ctime_coder,ctime_decoder)
	(mtime_coder,mtime_decoder): Update invocations of code_time and
	decode_time.
	(gid_decoder,size_decoder,uid_decoder,sparse_size_decoder)
	(sparse_numblocks_decoder,sparse_offset_decoder)
	(sparse_numbytes_decoder): Updated

2003-12-18  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/names.c (safer_name_suffix): Reverted change made
	2003-11-14. Reason: Discussion with Paul Eggert and
	Jean-Louis Martineau. See also ChangeLog entry from
	1999-08-14.
	* tests/delete03.sh: Likewise.
	* tests/extrac04.sh: Likewise.
	* tests/multiv01.sh: Likewise.

2003-12-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/incremen.c (write_directory_file): Use sys_truncate
	* src/list.c (print_header): Use archive_file_size member
	when printing real file size.
	* src/sparse.c (sparse_scan_file): Correctly handle files with
	a hole at the end.
	(sparse_dump_region,sparse_extract_region): Allow for zero size
	trailing blocks

2003-12-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Raised version number to 1.13.92
	* src/list.c (decode_header): Discern between pax and ustar
	formats
	Initialize current_stat_info.archive_file_size.

	NOTE: Modifications from this date on are temporarily
	stored on local CVS on mirddin. This repository will
	be synchronized with Savannah as soon as the latter
	becomes operational again.

2003-12-01  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* TODO: Updated
	* src/sparse.c: Initial implementation of GNU/pax sparse
	file format.
	* src/common.h (xheader_store): Changed prototype.
	* src/create.c: Update calls to xheader_store
	* src/extract.c (extract_archive): Check reported size vs.
	archive file size to determine if we have to do with a
	sparse file.
	* src/tar.c (usage): Cleaned up the sample argument to --newer
	option.
	(decode_options): Allow --sparse for POSIX_FORMAT archives.
	* src/xheader.c (struct xhdr_tab.coder; all coder function): Added
	extra argument
	Implemented GNU.sparse.* keywords.

2003-11-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Check for setlocale. Thanks Bruno Haible for
	reporting.

2003-11-25  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/create.c (write_gnu_long_link): Use oldgnu
	magic with @LongLink blocks.

2003-11-17  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/tar.h: Support for star sparse format.
	* src/sparse.c: Likewise.

2003-11-17  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/sparse.c (sparse_diff_file): New function
	* src/common.h (sys_compare_uid,sys_compare_gid): New functions
	(sys_compare_uid_gid): Removed.
	(sys_compare_links,report_difference): Changed prototype
	(sparse_diff_file): New function
	* src/system.c (sys_compare_uid,sys_compare_gid): New functions
	(sys_compare_uid_gid): Removed.
	(sys_compare_links): Changed declaration
	* src/compare.c (diff_archive): Use sparse_diff_file.

2003-11-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	Rewritten sparse file handling.

	* src/sparse.c: New file. Provides a universal framework
	for various methods for sparse files handling.
	* src/Makefile.am: Added sparse.c
	* src/common.h (struct sp_array,sparsearray,sp_array_size)
	(init_sparsearray,fill_in_sparse_array): Removed
	(enum dump_status): New data type
	(pad_archive,close_diag,open_diag,read_diag_details)
	(readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
	functions.
	(sparse_file_p,sparse_dump_file,sparse_extract_file): New
	functions.
	(print_header): Changed prototype declaration.
	* src/tar.h (struct sp_array): Declaration from common.h
	(struct tar_stat_info): New members archive_file_size,
	sparse_map_avail,sparse_map.
	* src/create.c: Major rewrite.
	* src/extract.c: Use new sparse file interface.
	* src/compare.c (diff_sparse_files): Temporary placeholder.

	* src/buffer.c: Minor changes
	* src/tar.c: Likewise.
	* src/list.c: Likewise.
	* src/misc.c (close_diag,open_diag,read_diag_details)
	(readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
	diagnostics functions.
	* src/incremen.c: Use new diagnostics functions.
	* src/names.c: Likewise.

2003-11-14  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Fixed check for setsockopt

	* src/create.c: Do not zero-terminate name field if
	the name is exactly 100 characters long.
	(write_ustar_long_name): Fixed checking for unsplittable
	names.

2003-11-14  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/create.c (start_header): Removed debugging hook
	(dump_file): Fixed handling of linkname field.
	* src/names.c (safer_name_suffix): If the input
	file name ends with a slash, output one should do so
	as well.
	* doc/tar.texi: Documented --format=ustar

2003-11-14  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/tar.h (archive_format): USTAR_FORMAT: New type.
	* src/create.c: Added POSIX.1-1988 support.
	* src/names.c (safer_name_suffix): Skip leading ./
	* src/tar.c: New option --format=ustar forces
	POSIX.1-1988 archive format.
	* tests/delete03.sh: Updated.
	* tests/extrac04.sh: Updated.
	* tests/multiv01.sh: Updated.

2003-11-13  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/list.c (read_and): Initialize current_stat_info
	and extended_header at the start of the loop.
	* src/names.c (all_names_found): Check if the argument
	contains valid filename. Fixes coredump on `not_a_tar_file'
	* src/xheader.c (atime_decoder,gid_decoder,ctime_decoder)
	(mtime_decoder,size_decoder,uid_decoder): Use xstrtoumax.
	Fixes `pax-big-10g' bug.

2003-11-12  Paul Eggert  <eggert@twinsun.com>

	Fix some C compatibility bugs reported by Joerg Schilling.

	* src/common.h (stripped_prefix_len): Fix misspelling
	"stripped_path_len" in declaration.
	* src/rmt.c (main): Use "return FOO;" rather than
	"exit (FOO);"; we no longer have to worry about
	pre-ANSI hosts that mishandled returned values from "main".
	* src/tar.c (main): Likewise.  This avoids warnings on some
	compilers.
	* src/system.c: Include signal.h, for 'kill'.
	* src/system.h (DEV_BSIZE): Remove.
	(DEFAULT_ST_BLKSIZE): New macro.
	(ST_BLKSIZE): Use it, instead of DEV_BSIZE.
	* src/tar.c (enum): Remove comma just before }.

2003-11-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/list.c (decode_header): Initialize st_atime and
	st_ctime.

2003-11-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac (tar_save_LIBS): Bugfix. Thanks Adrian
	Bunk <bunk@fs.tum.de> for reporting.
	* doc/tar.texi: Fixed spelling. Thanks Martin Buchholz
	<martin@xemacs.org> for spotting.

2003-11-04  Paul Eggert  <eggert@twinsun.com>

	* src/xheader.c (xhdr_tab): Make it extern, not static, as C89 and
	C99 require this.

2003-10-26  Paul Eggert  <eggert@twinsun.com>

	* src/system.c (sys_spawn_shell): Cast trailing null to (char *).
	Bug reported by Christian Weisgerber.

2003-10-19  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* AUTHORS: Updated
	* NEWS: Updated
	* src/tar.c (decode_options): Removed superfluous archive format
	check
	* doc/tar.texi: Documented new features.

2003-10-08  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* NEWS: Updated
	* THANKS: Added Wojciech Polak
	* configure.ac: Added checks for missing functions. Raised
	version number to indicate alpha release.
	* lib/Makefile.am: Added missing headers
	* lib/waitpid.c: Added missing includes.
	* src/extract.c: Likewise.
	* src/names.c: Removed spurious includes.
	* src/xheader.c: Likewise.
	* src/system.h [MSDOS]: Fixed spelling of EACCES. Added
	macro overriding broken mkdir prototypes.

2003-10-04  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Check for dev_t and ino_t.
	* m4/Makefile.am: Added missing files.
	* src/system.c: New file.
	* src/Makefile.am: Added system.c
	* src/common.h: Prototypes for functions from system.c
	* src/system.h (SET_BINARY_MODE, ERRNO_IS_EACCESS): New defines
	* src/buffer.c: Moved system dependencies to system.c
	* src/compare.c: Likewise.
	* src/create.c: Likewise.
	* src/delete.c: Likewise.
	* src/extract.c: Likewise.
	* src/rtapelib.c: Likewise.

2003-10-04  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	Implemented --occurrence option.

	* NEWS: Updated.
	* src/tar.c: New option --occurrence.
	* src/common.h (occurrence_option): New global
	(struct name): Changed `found' member to `uintmax_t
	found_count'.
	(names_done): Removed
	(all_names_found): Changed prototype.
	(ISFOUND,WASFOUND): New macros
	* src/delete.c (delete_archive_members): Honor --occurrence
	option.
	* src/list.c (read_and): Likewise.
	* src/names.c: Count number of occurrences of each name in the
	archive.
	(name_match): Honor --occurrence option.
	(names_done): Removed
	(all_names_found,names_notfound): Rewritten.

2003-10-02  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/tar.c: Removed extra precaution regarding
	subcommand_option == CAT_SUBCOMMAND
	* lib/Makefile.am: Updated

2003-10-02  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/common.h (names_done): New function.
	* src/names.c: Likewise.
	* src/list.c (read_and): Use all_names_found() as `while'
	condition.
	* src/tar.c: New option --first-copy
	* NEWS: Updated

2003-09-24  Paul Eggert  <eggert@twinsun.com>

	* src/rmt.c (main): Don't translate Copyright string; international
	law says the word "Copyright" should be in English.
	* src/tar.c (decode_options): Likewise.

2003-09-22  Paul Eggert  <eggert@twinsun.com>

	* doc/tar.texi (extracting untrusted archives): New section.

	* src/common.h (stripped_path_len): Renamed from cut_path_elements.
	Return size_t, not pointer, so that we don't have to worry about
	violating the C standard by converting char const * to char *.
	All callers changed.
	* src/names.c (stripped_path_len): Likewise.  Strip file system
	prefix, too.  Count adjacent slashes as if they were one slash;
	that is the POSIX standard.

2003-09-17  Paul Eggert  <eggert@twinsun.com>

	* README-alpha: Document maintainer tool assumptions a bit.  GNU
	'sed' is no longer required.  For GNU m4 1.4, suggest the patch in
	Debian bug 211447.  Fix minor misspellings/whitespace nits.

	* configure.ac (AC_AIX, AC_MINIX): Remove; subsumed by
	gl_USE_SYSTEM_EXTENSIONS.

	* lib/.cvsignore: Add exit.h, time_r.c, time_r.h.
	* m4/.cvsignore: Add restrict.m4, time_r.m4.

2003-09-17  Paul Eggert  <eggert@twinsun.com>

	* bootstrap: Don't use "for option; do";
	Solaris 8 /bin/sh doesn't like that.

2003-09-17  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* README-alpha: Updated
	* bootstrap: Updated

2003-09-17  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* README-alpha: Updated
	* bootstrap: Updated
	* po/POTFILES.in: Added src/xheader.c
	* src/common.h (cut_path_elements): Added proto.

2003-09-05  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/buffer.c: Use ngettext where appropriate.
	* src/compare.c: Likewise.
	* src/create.c: Likewise.
	* src/misc.c: Likewise.
	* src/tar.c: Likewise.
	* src/update.c: Likewise.

2003-09-04  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* .cvsignore: Added *.shar.gz
	* NEWS: Updated
	* TODO: Updated
	* src/common.h (strip_path_elements): New variable.
	* src/extract.c (extract_archive): Implemented --strip-path
	* src/names.c (cut_path_elements): New function.
	* src/tar.c: New option --strip-path=NUM.
	(decode_options) Assign boolean values to bool variables.

2003-09-04  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/delete.c: Fixed deletion from the POSIX archives.
	* src/list.c (read_header): Minor change.
	* src/tar.c (main): Do not check for volume_label_option
	if subcommand_option is not CREATE_SUBCOMMAND.
	* src/xheader.c (xheader_decode): Store the header as
	well (for eventual delete).

	* tests/incremen.sh: Explicitly request GNU format. This will
	disappear when GNU extended header keywords are working.
	* tests/multiv01.sh: Likewise
	* tests/volume.sh: Likewise

2003-09-04  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/create.c: Support for "linkpath" extended keyword.
	* src/xheader.c (decode_record): Reversed the return
	condition.

2003-09-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* configure.ac: Allow to redefine the default output format.
	* src/tar.c: Use DEFAULT_ARCHIVE_FORMAT macro
	(archive_format_string): New function.
	(usage): Updated help output.
	* README: Updated.
	* NEWS: Updated.
	* TODO: Updated.

2003-09-02  Paul Eggert  <eggert@twinsun.com>

	* src/common.h (destroy_stat, xheader_decode, xheader_store,
	xheader_read, xheader_finish, xheader_destroy): Add decls;
	C99 requires this.

	* src/create.c (write_extended): Remove unused local 'bufsize'.

	* src/delete.c (delete_archive_members): Handle case of
	HEADER_SUCCESS_EXTENDED followed by HEADER_FAILURE.
	* src/list.c (read_and): Abort if HEADER_SUCCESS_EXTENDED
	occurs, as it's not possible.
	* src/update.c (update_archive): Likewise.

	Use "const" when possible in new code.
	* src/tar.c (struct fmttab.name): Now char const *.  All uses changed.
	(fmttab): Now const.  All uses changed.
	* src/xheader.c (struct xhdr_tab.keyword): Now pointer to const.
	(struct xhdr_tab.coder, struct xhdr_tab.decoder, locate_handler,
	decode_record, xheader_store, xheader_print, code_string, code_time,
	code_num, dummy_coder, dummy_decoder, atime_coder, atime_decoder,
	gid_coder, gid_decoder, gname_coder, gname_decoder, linkpath_coder,
	linkpath_decoder, ctime_coder, ctime_decoder, mtime_coder,
	mtime_decoder, path_coder, path_decoder, size_coder, size_decoder,
	uid_coder, uid_decoder, uname_coder, uname_decoder):
	Use pointers to const when possible.
	(xhdr_tab): Now const.

	* src/tar.c (fmttab): Avoid GCC warning by not eliding initializers.
	(set_archive_format): Report an error if no format name matches,
	instead of returning an undefined value.

	* src/xheader.c (struct xhdr_tab.decoder, dummy_decoder,
	atime_decoder, gid_decoder, gname_decoder, linkpath_decoder,
	ctime_decoder, mtime_decoder, path_decoder, size_decoder,
	uid_decoder, uname_decoder): Remove unused keyword arg.
	All uses changed.

	* src/tar.c (set_archive_format): Now static.
	* src/xheader.c (xhdr_tab, format_uintmax): Now static.

	* src/xheader.c (dummy_coder, dummy_decoder, atime_coder,
	atime_decoder, gid_coder, gid_decoder, gname_coder, gname_decoder,
	linkpath_coder, linkpath_decoder, mtime_coder, mtime_decoder,
	ctime_coder, ctime_decoder, path_coder, path_decoder, size_coder,
	size_decoder, uid_coder, uid_decoder, uname_coder, uname_decoder):
	Remove forward decls; no longer needed.
	(xhdr_tab): Move to end, so that the forward decls aren't needed.
	Add a forward declaration.

	Use 'bool' in new code, when appropriate.
	* src/xheader.c (decode_record): Return bool, not int.
	* src/common.h (read_header): Since it accepts bool, change
	all callers to use false and true rather than 0 and 1.

	* src/xheader.c (decode_record): Fix misspelling in diagnostic
	"extended headed" -> "extended header".

	GNU coding style fixes.
	* src/xheader.c (decode_record, xheader_decode):
	Do not use decls like "char *p, *q;".

	Minor style fixes.
	(xheader_store): Avoid parentheses around object operand of sizeof.

2003-09-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/create.c (start_header): Store long file names
	in "path" keyword of an extended header if in POSIX
	mode.
	(finish_header): print header before calling write_extended().
	* src/list.c (list_archive): Always decode the header. This
	is necessary so the extended header is processed and the correct
	filename is printed no matter what the state of verbose_option.
	* src/xheader.c (xhdr_tab): Reserved GNU keywords (commented out
	for the time being).

2003-09-01  Paul Eggert  <eggert@twinsun.com>

	Update from gnulib, and correct fnmatch to fnmatch-gnu.
	* bootstrap (gnulib_modules): Change fnmatch to fnmatch-gnu.
	Sort.
	* configure.ac (gl_USE_SYSTEM_EXTENSIONS): Use this instead
	of AC_GNU_SOURCE.
	* lib/.cvsignore: Add alloca.h, stdbool.h.  Sort.  Append newline.
	* lib/Makefile.am (lib_OBJECTS): New macro, for convenience when
	copying rules from gnulib module descriptions.
	(BUILT_SOURCES, EXTRA_DIST, all-local, alloca.h):
	Update from gnulib modules alloca, fnmatch, getline, stdbool.
	* m4/.cvsignore: Add utimes-null.m4.  Sort.

2003-09-01  Sergey Poznyakoff

	Added initial support for creating POSIX headers.

	* src/common.h (MAXOCTAL11,MAXOCTAL7): New defines
	(string_to_chars): New functions
	(struct xheader): Changed structure
	(gid_to_gname,gname_to_gid,uid_to_uname,uname_to_uid): Changed
	prototypes.
	* src/create.c (string_to_chars): New function.
	(write_extended): New function
	(start_header): Create extended POSIX headers if necessary.
	(finish_header): Likewise.
	* src/list.c (print_header): Take user/group from
	current_stat_info.
	* src/names.c (gid_to_gname,gname_to_gid)
	(uid_to_uname,uname_to_uid): Changed prototypes.
	* src/tar.c: New option --format.
	* src/tar.h (OLDGNU_COMPATIBILITY): Removed
	(struct extra_header): Removed unused structure.
	(union block.extra_header): Removed unused member.
	* src/xheader.c: Implemented coder functions.
	* bootstrap: Added obstack.
	* lib/.cvsignore: Likewise.
	* configure.ac: Added 'gl_OBSTACK'
	* m4/Makefile.am: Added new files.
	* m4/.cvsignore: Likewise.
	* TODO: Minor formatting change

2003-08-31  Sergey Poznyakoff

	Added initial support for POSIX extended and STAR headers
	(only for listing/extracting).

	* src/xheader.c: New file.
	* src/Makefile.am: Added xheader.c
	* src/tar.h (struct star_header): New datatype
	(XHDTYPE,XGLTYPE): New defines
	(enum archive_format:STAR_FORMAT): New member
	(struct tar_stat_info): New datatype.
	(union block.star_header): New member.
	* src/common.h (orig_file_name,current_file_name)
	(current_trailing_slash,current_link_name): Removed variables.
	(current_stat_info): New variable
	(current_stat): Removed
	(extended_header): New variable
	(decode_header): Changed prototype.
	* src/list.c (decode_header): Added initial support for POSIX extended
	and STAR headers.
	(skip_member): Check oldgnu_header only if current_format is set
	to OLDGNU_FORMAT.
	* src/buffer.c: Use current_stat_info
	* src/compare.c: Likewise.
	* src/create.c: Likewise.
	* src/delete.c: Likewise.
	* src/incremen.c: Likewise.
	* src/mangle.c: Likewise.
	* src/update.c: Likewise.
	* src/extract.c: Likewise.
	(make_directories): Improved check for the existence of the directory
	* src/tar.c (destroy_stat): New function.

2003-08-29  Paul Eggert  <eggert@twinsun.com>

	* NEWS, bootstrap: Drop en_GB locale; it was more trouble than it
	was worth (e.g., different users in en_GB disagree about -ize
	versus -ise).
	* po/en_GB.po: Remove.

2003-07-28  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* TODO: Updated
	* NEWS: Updated
	* src/tar.c: Removed support for the obsolete command line
	options.
	* doc/tar.texi: Removed references to the obsolete command
	line options.

2003-07-27  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* TODO: Updated
	* NEWS: Updated
	* doc/tar.texi: Updated
	* src/common.h (check_links_option): New variable
	(orig_file_name): New variable
	(check_links): New proto.
	* src/create.c (struct link.nlink): New member
	(link_table): Static for the module.
	(dump_file): Update `link' member when adding new links
	to the link_table.
	(check_links): New function.
	* src/list.c (print_header): Use orig_file_name.
	* src/tar.c: New option --check-links. Changed semantics of
	-o to comply to UNIX98 when extracting and to its previous
	semantics otherwise.
	(main): Call check_links if --check-links. was given.

2003-07-25  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* src/list.c (print_header): Revised
	* NEWS: Started the entry for 1.13.26
	* doc/Makefile.am (tar.dvi): Fixed TEXINPUTS value.

2003-07-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>

	* .cvsignore: Added to the repository.
	* doc/.cvsignore: Likewise.
	* lib/.cvsignore: Likewise.
	* m4/.cvsignore: Likewise.
	* po/.cvsignore: Likewise.
	* scripts/.cvsignore: Likewise.
	* src/.cvsignore: Likewise.
	* tests/.cvsignore: Likewise.

	* lib/Makefile.am: Added exitfail.[hc]
	* src/misc.c (chdir_do): Fixed call to restore_cwd
	* src/buffer.c (flush_read): Fixed behavior on short
	reads right after opening the new archive (multiv01.sh test).
	(new_volume): Special handling for "-".
	* src/list.c (print_header): Print trailing slash if
	current_trailing_slash was set (extrac03.sh,extrac04.sh tests).
	* tests/multiv01.sh: Minor changes.
	* m4/Makefile.am: Added missing files.

2003-07-05  Paul Eggert  <eggert@twinsun.com>

	Finish the checkin begin yesterday.

	* NEWS: Document the user-visible changes installed in the last
	two days.

	* TODO: New file (actually, resurrected; but with new contents).

	* src/list.c (read_and): Give full type for procedure arg.
	(read_header): Strip trailing slashes, setting current_trailing_slash.
	(tartime): Avoid int overflow when printing year (!).
	(print_header): New arg specifying block ordinal.  All uses changed.
	Print link as 'h' type.  Give labels for long links and names.

	* src/misc.c (contains_dot_dot): Moved to names.c
	(must_be_dot_or_slash): New function.
	(safer_rmdir): Use it.
	(remove_any_file): Now takes enum as option, not boolean.
	Check for (Linux) EISDIR as well as (POSIX) EPERM when attempting
	to unlink a directory.
	(deref_stat): Accept bool, not int.

	* src/names.c (namelist_match): Allow partial matches only if
	recursive.
	(hash_string_hasher): Renamed from hash_avoided_name.
	(hash_string_compare): Renamed from compare_avoided_anames.
	(hash_string_insert, hash_string_lookup): New functions.
	(add_avoided_name, is_avoided_name): Use them.
	(safer_name_suffix): New function.
	(contains_dot_dot): Moved here from misc.c.  Now returns bool, not int.

	* src/rmt.c: Don't include print-copyr.h.
	(prepare_input_buffer): New arg FD.
	Do not read more than INT_MAX bytes at once,
	since it breaks on some brain damaged Tru64 hosts.
	Divide size by two
	when retrying instead of subtracting 1024; for speed.
	(main): Use gettext to translate (C), not print_copyright.

	* src/system.h: Include <alloca.h> and <stdbool.h> unconditionally,
	now that gnulib handles this.
	Include <stddef.h> and <limits.h> unconditionally, now that we assume
	C89 or better.
	Assume that offsetof is defined in stddef.h.
	Do not include <sys/param.h>.
	(realloc, lseek): Do not declare.
	(HAVE_DECL_VALLOC): Renamed from HAVE_VALLOC.
	(CHAR_BIT, CHAR_MAX, UCHAR_MAX, LONG_MAX): Remove
	declarations, since we now assume C89 or better.
	(PARAMS): Remove, as we now assume C89.  All uses changed.
	(bindtextdomain, textdomain): Include <gettext.h> to define.
	Include <unlocked-io.h>.
	(valloc): Define if not defined, and if valloc is not declared.
	(xstrdup): Remove decl.

	* src/tar.c: Do not include <print-copyr.h>.
	Include <getdate.h>.
	(get_date): Remove decl.
	(ATIME_PRESERVE_OPTION, CHECKPOINT_OPTION, FORCE_LOCAL_OPTION,
	IGNORE_FAILED_READ_OPTION, INDEX_FILE_OPTION, NO_OVERWRITE_DIR_OPTION,
	NUMERIC_OWNER_OPTION, RECURSIVE_UNLINK_OPTION, REMOVE_FILES_OPTION,
	SHOW_OMITTED_DIRS_OPTION, TOTALS_OPTION): New constants.
	(long_options, decode_options): Use them.
	(OVERWRITE_DIR_OPTION): Remove.
	(long_options): New options --index-file, --no-overwrite-dir.
	Remove --overwrite-dir option.
	(usage): Use PACKAGE_BUGREPORT.
	(decode_options): Terminate new argv properly.
	Use PACKAGE_NAME, PACKAGE_VERSION.
	If verbose, report how we grokked any textual date option.
	(main): Add support for index-file.

	* tests/Makefile.am: Convert to UTF-8.
	(AUTOMAKE_OPTIONS): Remove.
	(TESTS): Add delete04.sh, multiv01.sh, options.sh.
	(INCLUDES): Remove ../intl.
	(LDADD): Don't link libtar.a twice.

	* tests/genfile.c: Convert to UTF-8.
	Don't include <print-copyr.h>.
	(DEFAULT_PATTERN): Renamed from DEFAULT.
	(ZEROS_PATTERN): Renamed from ZEROS.
	(main): Use gettext to translate (C), not print_copyright.

2003-07-04  Paul Eggert  <eggert@twinsun.com>

	Revamp to meet current standards of autoconf, automake,
	gettext, and gnulib, and incorporate new translations.

	* config/config.guess, config/config.sub, config/depcomp,
	config/install-sh, config/mdate-sh, config/missing,
	config/mkinstalldirs, config/texinfo.texi:
	Moved here from parent directory, or from doc.
	* config.hin: Renamed from config.h.in.
	* config/config.rpath: New file.

	* intl: Remove this subdirectory.

	* lib/fnmatch_.h: Renamed from lib/fnmatch.hin.

	* lib/getstr.c, lib/getstr.h, lib/msleep.c, lib/print-copyr.c,
	lib/print-copyr.h, lib/readutmp.c, lib/rename.c, lib/stpcpy.c,
	lib/strstr.c, lib/strtoimax.c, lib/strtoll.c, lib/strtoull.c,
	lib/strtoumax.c, lib/unicodeio.c, lib/unicodeio.h,
	lib/xstrtoimax.c, m4/c-bs-a.m4, m4/ccstdc.m4, m4/check-decl.m4,
	m4/decl.m4, m4/jm-mktime.m4, m4/prereq.m4, m4/xstrtoimax.m4,
	stamp-h.in: Remove.

	* lib/alloca_.h, lib/fnmatch_loop.c, lib/gettext.h, lib/pathmax.h,
	lib/safe-write.c, lib/safe-write.h, lib/stdbool_.h, lib/strcase.h,
	lib/stripslash.c, lib/unlocked-io.h, lib/xgetcwd.h, m4/alloca.m4,
	m4/backupfile.m4, m4/bison.m4, m4/chown.m4, m4/dirname.m4,
	m4/dos.m4, m4/exclude.m4, m4/fileblocks.m4, m4/ftruncate.m4,
	m4/getdate.m4, m4/getopt.m4, m4/hash.m4, m4/human.m4,
	m4/intdiv0.m4, m4/intmax_t.m4, m4/inttypes-pri.m4,
	m4/inttypes_h.m4, m4/isc-posix.m4, m4/lchown.m4, m4/lib-ld.m4,
	m4/lib-link.m4, m4/lib-prefix.m4, m4/memset.m4, m4/mktime.m4,
	m4/modechange.m4, m4/nls.m4, m4/onceonly.m4, m4/pathmax.m4,
	m4/po.m4, m4/quote.m4, m4/quotearg.m4, m4/rmdir.m4,
	m4/safe-read.m4, m4/safe-write.m4, m4/save-cwd.m4, m4/savedir.m4,
	m4/ssize_t.m4, m4/stdbool.m4, m4/stdint_h.m4, m4/strcase.m4,
	m4/strtoimax.m4, m4/strtol.m4, m4/strtoll.m4, m4/strtoul.m4,
	m4/strtoull.m4, m4/strtoumax.m4, m4/tm_gmtoff.m4, m4/uintmax_t.m4,
	m4/unlocked-io.m4, m4/xalloc.m4, m4/xgetcwd.m4, m4/xstrtol.m4,
	po/LINGUAS, po/Makevars, po/Rules-quot, po/boldquot.sed,
	po/en@boldquot.header, po/en@quot.header, po/en_GB.po,
	po/insert-header.sin, po/remove-potcdate.sin, po/stamp-po: New files.

	* ABOUT-NLS, INSTALL, lib/addext.c, lib/alloca.c, lib/argmatch.c,
	lib/argmatch.h, lib/backupfile.c, lib/backupfile.h, lib/dirname.c,
	lib/dirname.h, lib/error.c, lib/exclude.c, lib/exclude.h,
	lib/fnmatch.h, lib/full-write.c, lib/full-write.h, lib/getdate.h,
	lib/getdate.y, lib/getline.c, lib/getline.h, lib/getopt.c,
	lib/getopt.h, lib/getopt1.c, lib/hash.c, lib/hash.h, lib/human.c,
	lib/human.h, lib/lchown.c, lib/malloc.c, lib/mktime.c,
	lib/modechange.c, lib/modechange.h, lib/quote.c, lib/quote.h,
	lib/quotearg.c, lib/quotearg.h, lib/realloc.c, lib/safe-read.c,
	lib/safe-read.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
	lib/savedir.h, lib/strcasecmp.c, lib/utime.c, lib/xalloc.h,
	lib/xgetcwd.c, lib/xmalloc.c, lib/xstrdup.c, lib/xstrtol.c,
	lib/xstrtol.h, lib/xstrtoumax.c, m4/codeset.m4, m4/d-ino.m4,
	m4/error.m4, m4/fnmatch.m4, m4/getcwd.m4, m4/getline.m4, m4/gettext.m4,
	m4/glibc21.m4, m4/iconv.m4, m4/inttypes.m4, m4/lcmessage.m4,
	m4/longlong.m4, m4/malloc.m4, m4/mbrtowc.m4, m4/mbstate_t.m4,
	m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4, m4/ulonglong.m4,
	m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4, m4/xstrtoumax.m4,
	po/Makefile.in.in:
	Upgrade to latest version from external source.  The file "bootstrap"
	now grabs these automatically, so we needn't keep track of them
	in this change long any longer.

	* Makefile.am (AUTOMAKE_OPTIONS): Remove.  Now done by configure.ac.
	(SUBDIRS): Remove intl.
	* PORTS: Update for star, Macintosh.
	* README, README-alpha: Suggest Autoconf 2.57, Automake 1.7.5,
	Bison 1.875, gettext 0.12.1.
	* THANKS: Add Bernhard Rosenkraenzer, Solar Designer.
	* configure.ac (AC_INIT, AM_INIT_AUTOMAKE): Convert to modern form.
	(AC_CONFIG_AUX_DIR): New.
	(AC_CONFIG_HEADERS): Rename config.h.in to config.hin, to be more
	like coreutils.
	(AC_PREREQ): Bump from 2.52 to 2.57.
	(AC_GNU_SOURCE): New.
	(AC_PROG_GCC_TRADITIONAL, AM_C_PROTOTYPES, AC_C_CONST): Remove;
	we no longer support K&R C.
	(YACC): Remove.
	(AC_CHECK_HEADERS): Remove limits.h, poll.h, stdbool.h, stropts.h,
	sys/ioccom.h, sys/param.h, sys/time.h, sys/timeb.h, wchar.h, wctype.h.
	(AC_MBSTATE_T): Remove.
	(HAVE_UTIME_H, HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
	HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
	HAVE_DECL_STRTOULL, HAVE_MKNOD): Remove our special code.
	(AM_STDBOOL_H): Add.
	(AC_HEADER_TIME, AC_STRUCT_TIMEZONE,
	jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Remove.
	(AC_CHECK_TYPE): Remove ssize_t.
	(gt_TYPE_SSIZE_T): Add.
	(jm_AC_PREREQ_XSTRTOUMAX, jm_PREREQ_ADDEXT, jm_PREREQ_ERROR,
	jm_PREREQ_HUMAN, jm_PREREQ_QUOTEARG, jm_PREREQ_XGETCWD,
	AC_FUNC_ALLOCA, AC_FUNC_CLOSEDIR_VOID, AC_FUNC_STRERROR_R,
	AC_FUNC_FNMATCH, AC_FUNC_VPRINTF, AM_FUNC_GETLINE, jm_FUNC_MALLOC,
	jm_FUNC_MKTIME, jm_FUNC_REALLOC):
	Remove.  Switch to gnulib macros like gl_BACKUPFILE instead.
	(tar_LDADD): Rename to LIB_CLOCK_GETTIME.  All uses changed.
	(rmt_LDADD): Rename to LIB_SETSOCKOPT.  All uses changed.
	(AC_CHECK_FUNCS): Remove fchdir, ftime, getcwd, isascii, nap,
	napms, poll, select, strstr, usleep.
	(AC_REPLACE_FUNCS): Remove ftruncate, lchown, memset, rename,
	rmdir, strcasecmp, strncasecmp, strtol, strtoul.
	(AM_GNU_GETTEXT): Use external and need-ngettext options.
	(AM_GNU_GETTEXT_VERSION): New.
	(AC_OUTPUT): Remove intl/Makefile.

	* doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
	($(srcdir)/tar.info, tar.dvi): Remove obsolete warnings.
	* doc/fdl.texi: Update to current GNU version.
	* doc/gettext.texi: Update to current coreutils version,
	plus a copyright notice.
	* doc/tar.texi: Switch to new method for doing copyright notices.
	Use @acronym instead of @sc where appropriate.
	Remove empty examples.  Give a few more examples.

	* lib/Makefile.am (AUTOMAKE_OPTIONS): Remove.
	(EXTRA_DIST, libtar_a_SOURCES): Switch to gnulib, so that they
	are built up in pieces with +=.
	(noinst_HEADERS, INCLUDES): Remove.
	(BUILT_SOURCES, MAINTAINERCLEANFILES, MOSTLYCLEANFILES): New.
	(libtar_a_LIBADD): Use $ rather than @.
	(all-local, alloca.h, fnmatch.h, stdbool.h): New rules, from gnulib.

	* m4/Makefile.am (EXTRA_DIST): Add alloca.m4, backupfile.m4,
	bison.m4, chown.m4, dirname.m4, dos.m4, exclude.m4, fileblocks.m4,
	ftruncate.m4, getdate.m4, getopt.m4, hash.m4, human.m4,
	intdiv0.m4, intmax_t.m4, inttypes_h.m4, inttypes-pri.m4,
	isc-posix.m4, lcown.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
	memset.m4, mktime.m4, modechange.m4, nls.m4, onceonly.m4,
	pathmax.m4, po.m4, quotearg.m4, quote.m4, rmdir.m4, safe-read.m4,
	safe-write.m4, save-cwd.m4, savedir.m4, ssize_t.m4, stdbool.m4,
	stdint_h.m4, strcase.m4, strtoimax.m4, strtoll.m4, strtol.m4,
	strtoull.m4, strtoul.m4, strtoumax.m4, tm_gmtoff.m4, uintmax_t.m4,
	unlocked-io.m4, xalloc.m4, xgetcwd.m4, xstrtol.m4.
	Remove c-bs-a.m4, ccstdc.m4, check-decl.m4, decl.m4, jm-mktime.m4,
	prereq.m4, xstrtoimax.m4.

	* po/POTFILES.in: Remove tests/genfile.c; it doesn't need to
	be translated, since it's not a user-visible tool.

	* scripts/Makefile.am (AUTOMAKE_OPTIONS): Remove.

	* src/Makefile.am (AUTOMAKE_OPTIONS): Remove.
	(INCLUDES): Remove ../intl.  Put top-srcdir before ., for
	consistency with coreutils.
	(LDADD): Link LIBINTL after libtar.a, since
	it's now external and should stand by itself.

	* src/buffer.c (print_total_written): Adjust to new human.h
	interface.
	(child_open_for_compress): Do not increase size to BLOCKSIZE.
	(open_archive): Open index file name.
	Strip trailing slashes from file names.
	(flush_write): Set size to 0 if not saving names.
	(flush_write, flush_read): Use safer_name_suffix rather than
	inline code.

	* src/common.h: Include <quote.h>.
	(absolute_names_option, atime_preserve_option, backup_option,
	block_number_option, checkpoint_option, dereference_option,
	force_local_option, ignore_failed_read_option, ignore_zeros_option,
	incremental_option, interactive_option, multi_volume_option,
	numeric_owner_option, one_file_system_option, recursive_unlink_option,
	read_full_records_option, remove_files_option, same_order_option,
	show_omitted_dirs_option, sparse_option, starting_file_option,
	to_stdout_option, totals_option, touch_option, verify_option,
	dev_null_output, now_verifying, we_are_root): Now bool, not int.
	(current_trailing_slash, index_file_name, recent_long_name_blocks,
	recent_long_link_blocks): New vars.
	(NO_OVERWRITE_DIR_OLD_FILES): New constant.
	(OVERWRITE_OLD_DIRS): Remove.
	(enum remove_option): New enum.
	(remove_any_file): Use it as option arg, not int.
	(is_avoided_name, contains_dot_dot): Return bool, not int.
	(safer_name_suffix): New decl.

	* src/compare.c (now_verifying): Now bool, not int.
	(fill_in_sparse_array): Move to extract.c.  Now returns bool;
	all callers changed to test for failure.
	(diff_sparse_files): Take size from current_stat, not from param.
	(diff_archive): Do not count trailing slashes in archives.
	(verify_volume): Test for header failure after loop, not before.

	* src/create.c (relativize): Remove; replaced by safer_name_suffix.
	All callers changed.
	(start_header): Clear devmajor and devminor fields, too.
	(finish_header): New arg block_ordinal.
	(init_sparsearray): Now extern.  Set sp_array_size to
	SPARSES_IN_OLDGNU_HEADER if it is zero.
	(dump_file): Keep link table as a hash.
	Do not count "file changed as we read it" as a failure.

	* src/delete.c (recent_long_name_blocks, recent_long_link_blocks):
	Move extern decl to common.h.

	* src/extract.c (we_are_root): Now bool, not int.
	(check_time): Warn about implausibly old time stamps.
	(set_stat): Use utimbuf, not stat_info.
	(prepare_to_extract): New arg DIRECTORY.
	(fill_in_sparse_array): Moved here from compare.c.
	(extract_sparse_file): Now returns off_t, giving size left.
	Truncate file at end.
	(extract_archive): Use safer_name_suffix rather than rolling our own.
	Use fill_in_sparse_array rather than rolling our own.
	Strip trailing slashes more effectively.
	Check for unsafe names.

	* src/incremen.c (struct directory): nfs and found are now of type
	bool, not int.
	(gnu_restore): Now takes directory name as argument, not offset
	of directory name in a global.  All uses changed.
	(CURRENT_FILE_NAME): Remove.

	New tests.
	* tests/delete04.sh, tests/multiv01.sh, tests/options.sh: New
	files.

2002-09-30  Paul Eggert  <eggert@twinsun.com>

	* src/rmt.c (prepare_input_buffer): Renamed form
	prepare_record_buffer.  All uses changed.  Do not assume that
	size_t is the same width as int.

2002-03-29  Paul Eggert  <eggert@twinsun.com>

	* src/incremen.c (get_directory_contents):
	If ignore_failed_read_option, only warn about
	get_directory_contents failures.  Fix suggested by
	Mark Costlow.

2002-01-31  Mark W. Eichin  <eichin@thok.org>

	* src/buffer.c (child_open_for_compress): Don't try to read
	past the end of the buffer.

2001-10-11  Jim Meyering  <meyering@lucent.com>

	* argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
	and quote_n (1, ... to avoid clobbering a buffer.

2001-09-26  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.25.

	* src/buffer.c (flush_read): Don't diagnose partial blocks before
	end of file; just ignore them silently.

	* src/list.c (read_header): Don't keep around extended name
	and link info indefinitely; keep it only for the next file.
	This fixes a bug introduced in 1.13.24, and removes the need
	for some static variables.  Set recent_long_name and
	recent_long_link to zero if there were no long links; this
	avoids a violation of ANSI C rules for pointers in delete.c.
	* THANKS: Add Christian Laubscher.

2001-09-26  Jim Meyering  <meyering@lucent.com>

	* doc/tar.texi (Remote Tape Server): is know -> is known

2001-09-25  Paul Eggert  <eggert@twinsun.com>

	* lib/unicodeio.c (EILSEQ): Include <iconv.h> first, since
	<iconv.h> may define EILSEQ (e.g. libiconv).  Define a
	replacement EILSEQ to be ENOENT, not EINVAL, since callers may
	want to distinguish EINVAL and EILSEQ.

2001-09-24  Christophe Kalt  <Christophe.Kalt@kbcfp.com>

	* src/extract.c (maybe_recoverable):
	Treat OVERWRITE_OLD_DIRS like DEFAULT_OLD_FILES.

2001-09-22  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.24.

	* ABOUT-NLS, intl/*: Update to gettext-0.10.40, replacing LGPL
	with GPL.

	* INSTALL, mkinstalldirs: Update to autoconf 2.52 version.
	* PORTS: Add copyright notice, 'star' reference.
	* README-alpha: Add copyright notice, autoconf 2.52 patch.
	* THANKS: Add Christophe Kalt.
	* config.sub: Upgrade to 2001-09-14 version.

	* configure.ac (ALL_LINGUAS): Add ko.
	* po/ko.po: Resurrected file.

	* doc/convtexi.pl: Add coding advice for Emacs.

	* doc/getdate.texi: Add copyright notice.

	* doc/mdate-sh: Upgrade to automake 1.5 version.

	* doc/tar.texi (extracting files): Mention --to-stdout.
	(Option Summary, Dealing with Old Files): New option --overwrite-dir.
	(Overwrite Old Files): Likewise.

	* lib/Makefile.am (noinst_HEADERS):
	Remove copysym.h.  Add print-copyr.h, unicodeio.h.
	(libtar_a_SOURCES): Remove copysym.c, Add print-copyr.c, unicodeio.c.

	* lib/copysym.c, lib/copysym.h: Remove.
	* lib/print-copyr.c, lib/print-copyr.h, lib/unicodeio.c,
	lib/unicodeio.h: New files.

	* lib/error.c, lib/getopt.c, lib/getopt.h, lib/getopt1.c,
	lib/mktime.c, lib/strtoll.c: Switch from LGPL to GPL.

	* lib/quotearg.c (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
	(mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.

	* m4/Makefile.am (EXTRA_DIST): Remove isc-posix.m4.
	* m4/isc-posix.m4: Remove.

	* m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit.

	* po/POTFILES.in: Add copyright notice.

	* src/Makefile.am (LDADD): Like libtar.a before @INTLLIBS@ as
	well as after.
	* tests/Makefile.am (LDADD): Likewise.

	* src/buffer.c (write_archive_buffer, close_archive):
	If an archive is a socket, treat it like a FIFO.
	(records_read, records_written): New vars.
	(write_archive_to_stdout): Now bool, not int.
	(open_archive, flush_write, flush_read): Keep records_read and
	records_written up to date.

	* src/common.h (enum old_files): New value OVERWRITE_OLD_DIRS.
	(write_archive_to_stdout): Now bool, not int.
	(enum read_header): New value HEADER_SUCCESS_EXTENDED.
	(read_header): Now takes bool arg.  Existing callers modified
	to pass 0, unless otherwise specified.

	* src/delete.c (records_read): Remove; now a global.
	(acting_as_filter): Now bool, not int.
	(recent_long_name, recent_long_link, recent_long_name_blocks,
	recent_long_link_blocks, records_read, records_written): New decls.
	(records_skipped): New var.
	(move_archive): Don't divide by zero if arg is 0.
	Use the above vars to compute how far to move.
	(write_recent_blocks): New function.
	(delete_archive_member): Pass 1 to read_header, so that it doesn't
	read more than 1 block.  Handle resulting HEADER_SUCCESS_EXTENDED code.
	Keep track of how many records have been skipped.
	Let the buffer code count records.
	When copying a header, copy any extended headers that came before it.

	* src/extract.c (extract_archive): When marking a directory to be
	updated after symlinks, stat all directories after it in the
	delayed-set-stat list too, since they will be checked after
	symlinks.  Add support for --overwrite-dir.

	* src/list.c (recent_long_name, recent_long_link,
	recent_long_name_blocks, recent_long_link_blocks): New vars.
	(read_and): Pass 0 to read_header.
	(read_header): New arg RAW_EXTENDED_HEADERS.  Store away extended
	headers into new vars.  Null-terminate incoming symbolic links.

	* src/rmt.c: Include print-copyr.h, not copysym.h.
	(main): Use print_copyright, not copyright_symbol.
	* src/tar.c (decode_options): Likewise.
	(OVERWRITE_DIR_OPTION): New constant.
	(long_options, usage, decode_options): Add --overwrite-dir.

	* src/tar.h: Put copyright notice into documentation.

	* tests/Makefile.am (TESTS): Add delete03.sh.
	* tests/delete03.sh: New file.

	* tests/genfile.c: Include print-copyr.h, not copysym.h.
	(main): Use print_copyright, not copyright_symbol.
	Include <argmatch.h>.
	(pattern_strings): Remove.
	(pattern_args, pattern_types): New constants.
	(main): Use XARGMATCH, not argmatch.

2001-09-20  Jim Meyering  <meyering@lucent.com>

	* lib/xstrtol.c (strtoimax): Guard declaration with
	`#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
	The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
	have their own, conflicting declaration of strtoimax in sys/inttypes.h.
	(strtoumax): Likewise, for completeness (it wasn't necessary).
	* m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
	Check for declaration of strtoimax.
	* m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
	Check for declaration of strtoumax.

2001-09-16  Paul Eggert  <eggert@twinsun.com>

	* fnmatch.m4 (jm_FUNC_FNMATCH): Fix typo in previous patch: yes -> no.

2001-09-14  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.23.

	* README-alpha: Describe automake patch.

	* configure.ac (LIBOBJS):
	Remove automake 1.4 workaround, as we're using 1.5 now.
	(USE_INCLUDED_LIBINTL): New AC_DEFINE.

	* lib/copysym.c: Include stddef.h, for size_t.
	Include langinfo.h if needed.
	Use locale_charset only if USE_INCLUDED_LIBINTL;
	if not, use nl_langinfo (CODESET) if available.

2001-09-13  Paul Eggert  <eggert@twinsun.com>

	* config.guess, config.sub: Sync with canonical versions.

	* configure.ac (jm_PREREQ_XGETCWD): Add.

	* lib/Makefile.am (noinst_HEADERS): Add copysym.h.
	(libtar_a_SOURCES): Add copysym.c.
	* copysym.c, copysym.h: New files.

	* lib/error.c: Sync with fileutils version.

	* m4/Makefile.am (EXTRA_DIST): Add getcwd.m4; remove uintmax_t.m4.
	* m4/getcwd.m4: New file.
	* m4/uintmax_t.m4: Remove.

	* m4/gettext.m4 (AM_WITH_NLS):
	Fix bug with calculating version of Bison 1.29.
	Reported by Karl Berry.

	* src/Makefile.am (datadir): Remove.

	* src/rmt.c: Include copysym.h.
	(main): Use copyright_symbol to translate copyright notice,
	instead of gettext.
	* src/tar.c: Likewise.
	* tests/genfile.c: Likewise.

	* src/system.h (MB_LEN_MAX): New symbol.

2001-09-11  Paul Eggert  <eggert@twinsun.com>

	* src/extract.c (struct delayed_set_stat): New member
	'after_symlinks'.
	(delay_set_stat): Initialize it to 0.
	(set_mode): New arg current_stat_info.  Use it (if nonnull) to avoid
	taking an extra stat ourselves.  All callers changed.
	(set_stat): Likewise.
	(apply_nonancestor_delayed_set_stat): New arg 'after_symlinks'.
	If false, stop when encountering a struct whose 'after_symlinks'
	member is true.  Otherwise, go through all structures but check
	them more carefully.  All callers changed.
	(extract_archive): When extracting a deferred symlink, if its parent
	directory's status needs fixing, then mark the directory as needing
	to be fixed after symlinks.
	(extract_finish): Fix status of ordinary directories, then apply
	delayed symlinks, then fix the status of directories that are
	ancestors of delayed symlinks.

	* src/rtapelib.c (rexec):
	Remove declaration; it ran afoul of prototypes on Crays.
	Reported by Wendy Palm of Cray.

2001-09-06  Paul Eggert  <eggert@twinsun.com>

	* lib/strtoimax.c (HAVE_LONG_LONG):
	Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
	(strtoimax): Use sizeof (long), not
	sizeof strtol (ptr, endptr, base),
	to work around bug in IBM C compiler.

2001-09-04  Paul Eggert  <eggert@twinsun.com>

	* lib/xgetcwd.c: Include "xalloc.h".
	(xgetcwd): Do not return NULL when memory is exhausted; instead,
	report an error and exit.

	* m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
	(jm_PREREQ): Use it.

2001-09-03  Paul Eggert  <eggert@twinsun.com>

	* m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
	(jm_PREREQ_XGETCWD): New macro.

	* lib/exclude.c (fnmatch_no_wildcards):
	Fix typo that caused us to do case-folding
	search even when that was not desired.  This occurred only in the
	no-wildcard case.

	* lib/xgetcwd.c: Include pathmax.h if not HAVE_GETCWD.
	Do not include xalloc.h.
	(INITIAL_BUFFER_SIZE): New symbol.
	Do not use xmalloc / xrealloc, since the caller is responsible for
	handling errors.  Preserve errno around `free' during failure.
	Do not overrun buffer when using getwd.

	* lib/xgetcwd.c (xgetcwd):
	Use HAVE_GETCWD_NULL, not defined __GLIBC__ && __GLIBC__ >= 2,
	to decide whether to use getcwd (NULL, 0).

2001-09-02  Paul Eggert  <eggert@twinsun.com>

	* lib/xgetcwd.c: Fix typo in local var; from Jim Meyering.

2001-09-01  Jim Meyering  <meyering@lucent.com>

	* exclude.c: Use `""', not `<>' to #include non-system header files.
	(fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
	and strncasecmp as r-values.  Unixware didn't have declarations.

2001-08-31  Jim Meyering  <meyering@lucent.com>

	* lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
	Use an initial, malloc'd, buffer of length 128 rather than
	a statically allocated one of length 1024.

2001-08-30  Paul Eggert  <eggert@twinsun.com>

	* lib/utime.c: Include full-write.h.
	* lib/xstrtol.c (strtoimax): New decl.

2001-08-29  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.22.

	* src/create.c (dump_file): Relativize link names before dumping.
	This fixes a bug reported by Jose Pedro Oliveira.

	* src/create.c (dump_file): Use offsetof when computing sizes for
	struct hack; this avoids wasted space in some cases.
	* src/incremen.c (note_directory, find_directory): Likewise.
	* src/names.c (name_gather, addname): Likewise.

	* src/extract.c (extract_archive): Use strcpy, not memcpy,
	for consistency with other code that does similar things.
	* src/names.c (name_gather): Likewise.

	* src/names.c (read_name_from_file, name_next, name_gather,
	add_hierarchy_to_namelist): Avoid quadratic behavior when
	reallocating buffers.  Check for buffer size overflow.
	(addname): Avoid unnecessary clearing of memory.

2001-08-29  "Jan D."  <Jan.Djarv@mbox200.swipnet.se>

	* src/extract.c (delay_set_stat): Fix off-by-one error in file
	name size allocation that caused core dumps.

2001-08-28  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.21.

	* configure.ac (GNU_SOURCE): Define to 1, not /**/.
	(major_t, minor_t, ssize_t): Use new-style AC_CHECK_TYPE.
	(daddr_t): Remove; no longer used.
	(jm_PREREQ_HUMAN): Add.

	* acconfig.h: Remove; no longer needed.

	* config.guess, config.sub:
	New files, from automake 1.5.  Gettext 0.10.39 needs them.
	* depcomp, missing, mkinstalldirs: Upgrade to automake 1.5.

	* Makefile.am (AUTOMAKE_OPTIONS): Add dist-bzip2.
	(SUBDIRS): Put intl before lib, as gettext requires.

	* ABOUT-NLS: Upgrade to gettext 0.10.39.
	* intl: Upgrade entire directory to gettext 0.10.39.
	* m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4:
	New files, from gettext 0.10.39.
	* m4/gettext.m4, m4/isc-posix.m4, m4/lcmessage.m4, m4/progtest.m4,
	Upgrade to gettext 0.10.39,
	* po/Makefile.in.in: Likewise, except fix a typo in its copying
	permissions.
	* po/cat-id-tbl.c, po/stamp-cat-id:
	Remove; no longer used by gettext 0.10.39.
	* po/ChangeLog: New file.

	* doc/Makefile.am (EXTRA_DIST): Add freemanuals.texi.
	$(srcdir)/tar.texi: Likewise.
	* doc/freemanuals.texi: New file.
	* doc/tar.texi (Free Software Needs Free Documentation): New appendix.
	`fileds' -> `fields'
	* doc/texinfo.tex: Upgrade to version 2001-07-25.07.

	* lib/Makefile.am (EXTRA_DIST): Add strtoll.c, strtoimax.c.
	(noinst_HEADERS): Add quote.h.
	(libtar_a_SOURCES): Add quote.c, xstrtoimax.c.

	* lib/exclude.c: Fix typo in '#include <stdint.h>' directive.

	* lib/full-write.c, lib/savedir.c: Comment fix.

	* lib/pathmax.h: Remove.

	* lib/quote.c, lib/quote.h: New files.

	* lib/xgetcwd.c: Don't include pathmax.h.
	Include stdlib.h and unistd.h if available.
	Include xalloc.h.
	(xmalloc, xstrdup, free): Remove decls.
	(xgetcwd): Don't assume sizes fit in unsigned.
	Check for overflow when computing sizes.
	Simplify reallocation code.

	* lib/xmalloc.c: Quote failure tests.

	* lib/strtoumax.c, lib/xstrtoimax.c: New files.

	* lib/strtoimax.c: Renamed from strtouxmax.c.  Make it more
	similar to strtol.c.
	(UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.
	(verify): New macro.
	(strtoumax, uintmax_t, strtoull, strtol): Remove.
	(intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
	(strtoimax): Renamed from strtoumax.  All uses of unsigned values
	changed to signed values.  Check sizes at compile-time, not
	run-time.  Prefer strtol to strtoll if both work.
	(main): Remove.

	* lib/xstrtol.h (xstrtoimax): New decl.

	* m4/Makefile.am (EXTRA_DIST):
	Add codeset.m4, glibc21.m4, iconv.m4, inttypes.m4,
	longlong.m4, xstrtoimax.m4.

	* m4/inttypes.m4 (jm_AC_HEADER_INTTYPES_H):
	Remove; now done by autoconf.
	(jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Replace with
	Use AC_CHECK_TYPE instead of merely looking for the header.

	* m4/uintmax_t.m4: Use shorter comment.

	* m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
	Quote first arg of AC_DEFUN.
	Require jm_AC_TYPE_INTMAX_T and jm_AC_TYPE_LONG_LONG since they
	is needed to parse the include file.
	Simplify logic behind the args to AC_REPLACE.

	* src/Makefile.am (OMIT_DEPENDENCIES): Remove.

	* src/ansi2knr.1, src/ansi2knr.c: Remove; wasn't being used.

	* src/rmt.c (main):
	Use "Copyright %d" to simplify the translator's job in the future.
	Advise translator about circle-C.
	* src/tar.c: (decode_options): Likewise.
	* tests/genfile.c (main): Likewise.

2001-08-28  Jim Meyering  <meyering@lucent.com>

	* lib/argmatch.c: Include "quote.h".
	(argmatch_invalid): Quote the context.

	* lib/dirname.c (dir_name): Fix typo on PC platforms.

	* lib/backupfile.c, lib/basename.c, lib/dirname.c, lib/strtoul.c:
	Use single-quote for local .h files.

	* lib/error.h (__attribute__): Don't depend on __STRICT_ANSI__.

	* lib/getopt.c, lib/getopt.h, lib/getopt1.c: Upgrade to recent
	glibc versions.

	* lib/getdate.y (get_date): Initialize tm_isdst to -1 before
	invoking mktime the last time.

	* lib/pathmax.h: Use #if rather than #ifdef for HAVE_UNISTD_H.

	* lib/rename.c: Major rewrite by Volker Borchert to use system
	rename function, but to work around problems with trailing
	slashes.

	* lib/strtoll.c: New file, from glibc.
	* lib/strtoul.c: Update from glibc.

	* lib/strtouxmax.c: Renamed from lib/strtoumax.c.
	Add support for signed numbers, too.
	(strtoul, strtoull): Do not declare if STRTOUXMAX_UNSIGNED
	is not defined.
	(strtol, strtoll): Declare as needed, if STRTOUXMAX_UNSIGNED is
	not defined.
	(strtoumax, uintmax_t, strtoull, strtoul): New macros.
	(main): Use generic names in debugging output.
	* lib/strtoimax.c: Plus add the following changes of my own:
	(main): Use accurate names in debugging output.

	* lib/xgetcwd.c (xgetcwd): Use getcwd if glibc 2 or later.
	Don't use PATH_MAX.

	* m4/c-bs-a.m4, m4/check-decl.m4, m4/d-ino.m4, m4/error.m4,
	m4/getline.m4, m4/jm-mktime.m4, m4/malloc.m4, m4/mbrtowc.m4,
	m4/mbstate_t.m4, m4/realloc.m4, m4/uintmax_t.m4, m4/utimbuf.m4,
	m4/utime.m4, m4/utimes.m4:
	Quote the first argument in each use of AC_DEFUN.

	* m4/getline.m4: Don't use string.h.

	* m4/inttypes.m4, m4/longlong.m4, m4/xstrtoimax.m4: New files.

	* m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): @%:@ -> #.

2001-08-27  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.20.

	The biggest change is the new --exclude semantics and options.
	The basic idea was suggested by Gerhard Poul; thanks!

	* NEWS: Describe new --exclude semantics and options, and bug fixes.
	* README: ignfail.sh fails on some NFS hosts.
	* NEWS, README, lib/xstrtol.h: Add copyright notice.

	* Makefile.am (ACLOCAL_AMFLAGS): Add -I m4.
	(M4DIR, ACINCLUDE_INPUTS, $(srcdir)/acinclude.m4):
	Remove; the automake bug has been fixed.
	* acinclude.m4: Remove.

	* configure.ac: Renamed from configure.in.
	(AC_PREREQ): Bump from 2.13 to 2.52.
	(ALL_LINGUAS): Add id, tr.  Remove ko, as po/ko.po (dated
	1997-05-30) has an encoding error.
	(jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf.
	(AC_FUNC_FNMATCH): Use AC_CONFIG_LINKS, not AC_LINK_FILES.

	* doc/fdl.texi: Update to current GNU version.

	* doc/tar.texi: Put leading '*' in direntry.
	Accommodate new gfdl sectioning.
	New option --recursion (the default) that is the inverse of
	--no-recursion.

	New options --anchored, --ignore-case, --wildcards,
	--wildcards-match-slash, and their negations (e.g., --no-anchored).
	Along with --recursion and --no-recursion, these control how exclude
	patterns are interpreted.  The default interpretation of exclude
	patterns is now --no-anchored --no-ignore-case --recursion
	--wildcards --wildcards-match-slash.

	* lib/Makefile.am (OMIT_DEPENDENCIES): Remove.

	* lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
	(<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
	(<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
	Include	if available.
	(<xalloc.h>): Include
	(SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
	(verify): New macro.  Use it to verify that EXCLUDE macros do not
	collide with FNM macros.
	(struct patopts): New struct.
	(struct exclude): Use it, as exclude patterns now come with options.
	(new_exclude): Support above changes.
	(new_exclude, add_exclude_file):
	Initial size must now be a power of two to simplify overflow checking.
	(free_exclude, fnmatch_no_wildcards): New function.
	(excluded_filename): No longer requires options arg, as the options
	are determined by add_exclude.  Now returns bool, not int.
	(excluded_filename, add_exclude):
	Add support for the fancy new exclusion options.
	(add_exclude, add_exclude_file): Now takes int options arg.
	Check for arithmetic overflow when computing sizes.
	(add_exclude_file): xrealloc might modify errno, so don't
	realloc until after errno might be used.

	* lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
	New macros.
	(free_exclude): New decl.
	(add_exclude, add_exclude_file): Now takes int options arg.
	(excluded_filename): No longer requires options arg, as the options
	are determined by add_exclude.  Now returns bool, not int.

	* lib/prepargs.c: Include <string.h>; required for C99 since
	we use strlen.

	* lib/quotearg.c:
	BSD/OS 4.1 wchar.h requires FILE and struct tm to be declared.

	* lib/xstrtol.h (_DECLARE_XSTRTOL): Improve quality of
	diagnostic for LONGINT_INVALID_SUFFIX_CHAR.

	* m4/Makefile.am (EXTRA_DIST): Add check-decl.m4, mbrtowc.m4.
	Remove inttypes_h.m4, largefile.m4, mktime.m4.

	* m4/inttypes_h.m4, m4/largefile.m4, m4/mktime.m4: Remove;
	subsumed by Autoconf 2.50.

	* m4/error.m4: Upgrade to serial 2.

	* m4/fnmatch.m4 (jm_FUNC_FNMATCH): Upgrade to serial 4, but
	remove test for GNU C library.  It's not correct, as some
	older glibcs are buggy.

	* m4/getline.m4, m4/malloc.m4: Upgrade to serial 4.

	* m4/prereq.m4: Upgrade to serial 20, but then:
	(jm_PREREQ): Add jm_PREREQ_EXCLUDE.
	(jm_PREREQ_EXCLUDE): New macro.
	(jm_PREREQ_HUMAN): Remove jm_AC_HEADER_INTTYPES_H, as it is subsumed
	by autoconf 2.5x.

	* m4/realloc.m4: Upgrade to serial 4.

	* m4/strerror_r.m4: Revert to serial 1002.

	* m4/uintmax_t.m4: Upgrade to autoconf 2.5x.

	* m4/utimes.m4: Upgrade to latest version (still "serial 3").

	* m4/xstrtoumax.m4: Upgrade to serial 3, but then:
	(jm_AC_PREREQ_XSTRTOUMAX): Remove jm_AC_HEADER_INTTYPES_H, as
	it is now subsumed by autoconf.  Add inttypes.h.

	* po/cs.po, po/da.po, po/de.po, po/es.po, po/et.po, po/fr.po,
	po/it.po, po/pl.po, po/sl.po, po/sv.po: Sync with translation project.

	* src/buffer.c (new_volume): Stop if the script exits with an error.

	* src/common.h (excluded_with_slash, excluded_without_slash):
	Remove, replacing by:
	(excluded): New decl.
	(link_error): New decl.
	(excluded_name): Now returns bool.

	* src/extract.c:
	(struct delayed_symlinks, extract_archive, apply_delayed_symlinks):
	Support hard links to symbolic links.

	(struct delayed_symlink): Remove 'names' member, replacing it with
	'sources' and 'target' member.  All uses changed.

	(struct string_list): New type.

	(delayed_set_stat, extract_archive): Use offsetof when computing sizes
	for struct hack; this avoids wasted space in some cases.

	(extract_archive): Fix test for absolute pathnames and/or "..".
	Use link_error to report errors for links.
	Remove redundant trailing '/' at "really_dir", for all uses, not
	just before invoking mkdir.
	If overwriting old files, do not worry so much about existing
	directories.
	Fix mode computation in the case where the directory exists.

	(apply_delayed_symlinks): If we can't make a hard link to a symbolic
	link, make a copy of the symbolic link.

	* src/incremen.c (get_directory_contents):
	If ignore_failed_read_option, only warn about
	stat failures.

	* src/list.c (from_header): Do not issue a diagnostic if TYPE is zero.
	However, check for error even for '-' or '+' case.

	(print_header): Try parsing uids and gids as unsigned integers first,
	and as a uid_t or gid_t only if that fails.  This adds support for
	listing positive uids and gids that are greater than UID_MAX and
	GID_MAX.

	* src/misc.c (link_error): New function.

	* src/names.c (collect_and_sort_names):
	If ignore_failed_read_option, only warn about
	stat errors.

	(excluded_name): Now returns bool.  Simplify, as the fancy
	features are now all in excluded_filename.

	* src/rtapelib.c (base_name): Remove decl, as system.h now
	declares it.

	* src/system.h: Include stddef.h if available.
	(offsetof): Declare if stddef.h doesn't.

	Include <dirname.h>.
	(FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now defined by dirname.h.

	* src/tar.c (ANCHORED_OPTION, IGNORE_CASE_OPTION,
	NO_ANCHORED_OPTION, NO_IGNORE_CASE_OPTION, NO_WILDCARDS_OPTION,
	NO_WILDCARDS_MATCH_SLASH_OPTION, WILDCARDS_OPTION,
	WILDCARDS_MATCH_SLASH_OPTION):
	New enum values.

	(long_options, usage, decode_options): Add support for --anchored,
	--ignore-case, --no-anchored, --no-ignore-case, --no-wildcards,
	--no-wildcards-match-slash, --recursion, --wildcards,
	--wildcards-match-slash.

	(decode_options): Implement the new way of interpreting exclude
	patterns.

	(usage): --newer-mtime takes a DATE operand.  DATE may be a file name.

	(OPTION_STRING, decode_options): Add -I, -y.  Currently these options
	just print error messages suggesting alternatives.

	(add_filtered_exclude): Remove.

	* tests/Makefile.am (TESTS): Alphabetize, except put version.sh first.

	* tests/extrac04.sh (out): Remove
	directory/subdirectory/file1, as the new semantics for
	--exclude exclude it.

	* tests/genfile.c (main): Don't use non-ASCII char in msgid.

2001-08-12  Paul Eggert  <eggert@twinsun.com>

	* lib/addext.c (<errno.h>): Include.
	(errno): Declare if not defined.
	(addext): Work correctly on the Hurd, where pathconf returns -1 and
	leaves errno alone, because there is no limit.  Also, work even if
	size_t is narrower than long.

2001-07-08  Paul Eggert  <eggert@twinsun.com>

	* lib/alloca.c (alloca): Arg is of type size_t, not unsigned.

2001-05-10  Paul Eggert  <eggert@twinsun.com>

	* lib/addext.c (ISSLASH, base_name): Remove decls; now in dirname.h.
	Include <backupfile.h> and <dirname.h> after size_t is defined.
	(addext): Use base_len to trim redundant trailing slashes instead of
	doing it ourselves.

	* lib/backupfile.c (ISSLASH, base_name):
	Remove decls; now in dirname.h.
	Include <argmatch.h>, <backupfile.h>, <dirname.h> after size_t
	is defined.
	(find_backup_file_name): Rename locals to avoid new functions.
	Use base_len instead of rolling it ourselves.
	Work even if dirlen is 0.
	Use a dir of '.' if given the empty string.

	* lib/basename.c:
	Do not include <stdio.h>, <assert.h>; no longer needed.
	(FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.
	Include <string.h>, <dirname.h>.
	(base_name): Allow file names ending in slashes, other than names
	that are all slashes.  In this case, return the basename followed
	by the slashes.

	* lib/dirname.c: Include <string.h> instead of <stdlib.h>.
	(FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
	(dir_len): Renamed from dirlen.
	All callers changed.

	* lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
	New macros.
	(base_name, base_len, dir_len, strip_trailing_slashes): New decls.

2001-02-16  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.c (mbrtowc, mbrtowc, mbsinit):
	Do not declare or define if HAVE_MBRTOWC,
	since the test for HAVE_MBRTOWC now requires proper declarations.

	* lib/alloca.c (malloc): Undef before defining.

2001-02-13  Paul Eggert  <eggert@twinsun.com>

	* src/compare.c (read_and_process): Use off_t for size.
	From Maciej W. Rozycki.

2001-01-26  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.c: Include stddef.h.  From Jim Meyering.

2001-01-12  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.19.

	* lib/savedir.h (savedir): Remove size arg.

	* doc/tar.texi: Add @setchapternewpage odd.
	Remove -I as an alias for -T, for now.
	Add @dircategory.
	Update copyright.  Remove "Published by".
	Dates beginning with / or . are taken to be file names.

	* src/tar.c (<time.h>): Do not include;
	(time): Do not declare.
	(usage): Remove -I as an alias for -T.
	(OPTION_STRING): Remove -I.
	(decode_options): Dates that look like an absolute path name,
	or that start with '.', are presumed to be file names whose
	dates are taken.
	Remove 'I' as an alias for 'T'.
	Update copyright.

	* src/extract.c (<time.h>): Do not include; system.h now does this.
	(make_directories): Skip filesystem prefixes.
	Don't assume '/' is the only separator.
	(extract_sparse_file): Use new full_write semantics.
	On write error, return instead of invoking skip_file.
	Do not free sparsearray; caller does this now.
	(apply_nonancestor_delayed_set_stat): Do not assume '/' is the only
	separator.
	(extract_archive): Don't assume file name lengths fit in int.
	Report what got stripped from member name; it might be more than '/'.
	Use new full_write semantics.
	Do not pass redundant trailing "/" to mkdir, as POSIX does not allow
	mkdir to ignore it.
	Do not report mkdir error if old_files_option == KEEP_OLD_FILES.

	* src/buffer.c (<time.h>): Do not include; system.h now does this.
	(time): Remove decl; likewise.
	(child_open_for_uncompress): Use new full_write semantics.
	(flush_write): Use ISSLASH instead of testing for '/'.
	(flush_read): Likewise.

	* src/rmt.h (_remdev): Look for / anywhere in Path.

	* src/misc.c (contains_dot_dot): Skip filesystem prefix.
	Don't assume '/' is the only separator.
	(safer_rmdir): Don't assume '/' is the only separator.

	* src/compare.c (diff_archive): Don't assume '/' is the only separator.

	* lib/dirname.h (dirlen): New decl.

	* src/incremen.c (get_directory_contents):
	Remove path_size arg; all callers changed.
	Don't assume '/' is the only directory separator.
	(gnu_restore): Work even if file name length doesn't fit in int.

	* lib/addext.c (ISSLASH): New macro.
	(addext): Trim any redundant trailing slashes.

	* src/names.c (name_next):
	Don't assume '/' is the only directory separator.
	(namelist_match): Likewise.
	(add_hierarchy_to_namelist): Remove dirsize arg.
	Do not assume '/' is the only directory separator.
	(new_name): Likewise.

	* lib/Makefile.am (noinst_HEADERS): Add dirname.h, full-write.h.
	(libtar_a_SOURCES): Add dirname.c.

	* src/create.c (relativize):
	New function, with much of old start_header's guts.
	Handle filesystem prefixes.
	(start_header): Use this new function.
	(init_sparsearray): Don't bother to zero out the new array;
	it's not needed.
	(deal_with_sparse): Fix array allocation bug.
	(create_archive): Don't assume '/' is the only separator.
	(dump_file): Likewise.
	Don't worry about leading / in symlink targets.

	* lib/savedir.c (savedir):
	Remove size arg; it wasn't portable.  All callers changed.

	* lib/utime.c (utime_null): Adjust to new full_write convention.

	* configure.in (YACC): Avoid portability problem with Ultrix sh.

	* lib/backupfile.c: Include <dirname.h>.
	(ISSLASH): New macro.
	(find_backup_file_name): Use dirlen to calculate directory lengths.
	(max_backup_version): Strip redundant trailing slashes.

	* src/common.h: Include <full-write.h>.
	(get_directory_contents): No longer has size arg.
	(gnu_restore): Arg is size_t, not int.

	* src/system.h: Include <time.h>.
	(time): Declare if not defined.

	* lib/full-write.c: Include full-write.h, not safe-read.h.
	full_write returns size_t, with short writes meaning failure.
	All callers changed.

	* src/rtapelib.c: Include full-write.h.

	* src/rmt.c: Include full-write.h.
	(main): Update copyright.

	* doc/getdate.texi: Mention that only English is supported.
	Show how to use "date" so that the output is acceptable to getdate.
	Mention Z as an abbreviation for UTC.

	* lib/full-write.h: New file.

	* src/list.c: system.h now does time.h stuff.

	* lib/dirname.c:
	Use HAVE_STDLIB_H, not STDC_HEADERS, to decide whether to include
	stdlib.h.
	Do not include string.h, strings.h, or assert.h; no longer needed.
	(strrchr, memrchr, malloc): Remove decls; no longer needed.
	Include <xalloc.h>.
	(base_name): New decl.
	(BACKSLASH_IS_PATH_SEPARATOR): Remove.
	(dir_name_r): Remove.
	(dirlen): New function.
	(dir_name): Use dirlen instead of dir_name_r.
	(<string.h>, <strings.h>): Include only if test program.
	(main): Use "return 0", not "exit (0)".

2000-12-08  Paul Eggert  <eggert@twinsun.com>

	* lib/dirname.h: New file.

2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>

	* lib/fnmatch.c: Do not comment out all the code if we are using
	the GNU C library, because in some cases we are replacing buggy
	code in the GNU C library itself.

2000-10-30  Paul Eggert  <eggert@twinsun.com>

	* lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.

2000-10-29  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.18.

	* src/tar.c: Include <fnmatch.h>, for FNM_LEADING_DIR.

2000-10-28  Paul Eggert  <eggert@twinsun.com>

	* doc/tar.texi: --no-recursion now applies to extraction, too.
	* src/create.c (dump_file): no_recurse_option -> ! recursion_option
	* src/names.c (namelist_match, excluded_name):
	Do not match subfiles of a directory
	if --no-recursion is specified.
	* src/tar.c (NO_RECURSE_OPTION): Remove.
	(long_options): Have getopt set the --no-recursion flag.
	(decode_options): Initialize recursion_option to FNM_LEADING_DIR.
	Remove case for NO_RECURSE_OPTION.
	* src/common.h (recursion_option):
	Renamed from no_recurse_option, with sense
	negated, and with FNM_LEADING_DIR being the nonzero value.

	* names.c (namelist_match): New function.
	(name_match, name_scan): Use it to eliminate duplicate code.
	(names_notfound): Remove special case for Amiga.

2000-10-27  Paul Eggert  <eggert@twinsun.com>

	* src/misc.c (read_error_details, read_warn_details,
	read_fatal_details): Don't assume size_t is unsigned long.

	* src/buffer.c (flush_read): If read_full_records_option, try to
	fill the input buffer, as --delete -f - needs this.

2000-10-24  Paul Eggert  <eggert@twinsun.com>

	* m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Port to autoconf 2.13.

	* src/buffer.c (check_label_pattern):
	Make sure header name is a string before
	passing it to fnmatch.
	(init_volume_number): Check for global_volno overflow.
	(new_volume): Check for global_volno overflow.

	* src/tar.c (decode_options):
	Check that volume label is not too long to overflow
	name in tar header block.

	* Makefile.am (EXTRA_DIST): Remove rebox.el.

	* configure.in (HAVE_DECL_STRERROR_R): Remove our handwritten code.
	(AC_FUNC_STRERROR_R): Use this instead.

2000-10-23  Paul Eggert  <eggert@twinsun.com>

	* src/extract.c: Include <time.h>, since we invoke "time".

	* lib/prepargs.c (prepend_default_options):
	Don't use NULL, for portability.

	* m4/fnmatch.m4: Add "working" to message.

	* src/names.c: (_GNU_SOURCE): Remove; autoconf now does this.
	Include <hash.h>.
	(getpwuid, getgrgid): Declare only if system headers don't.
	(gid_to_gname): Don't invoke setgrent.
	(namelist): Now static, not global.
	(nametail): New var.  All uses of namelast changed to use
	nametail, with one extra level of indirection.
	(name_gather): Use memcpy instead of strncpy + assignment of NUL.
	(name_match): Set nametail too, when setting namelist to null.
	(add_hierarchy_to_namelist): Change type of dir arg from char * to
	struct name *, so that we don't have to look up the name again
	here.  Get change_dir from dir rather than as a separate arg.  Add
	dirsize arg, and pass it along to get_directory_contents.  Remove
	unnecessary check of directory type.
	(new_name): Do not append a slash if PATH already ends in one.
	(avoided_names, struct avoided_name): Remove.
	(avoided_name_table): New var, replacing avoided_names.
	(hash_avoided_name, compare_avoided_names): New function.
	(add_avoided_name, is_avoided_name): Use hash table rather than
	linked list.

	* src/buffer.c (_GNU_SOURCE): Remove; autoconf now does this.
	(child_open_for_compress, child_open_for_uncompress,
	close_archive): Propagate any failure of the compression process
	back to "tar".
	(open_archive, flush_write, flush_read, close_archive): Do not
	allocate an array of size PATH_MAX, as PATH_MAX might be (size_t)
	-1.  Instead, allocate an array with the size that's needed.
	(open_archive): Don't bother checking S_ISCHR of /dev/null.
	(backspace_output): Don't try to backspace past start of archive.
	(close_archive): Remove special case for DELETE_SUBCOMMAND.

	* acconfig.h (_GNU_SOURCE, DEFAULT_ARCHIVE, DEFAULT_BLOCKING,
	DENSITY_LETTER, DEVICE_PREFIX, EMUL_OPEN3, HAVE_GETGRGID,
	HAVE_GETPWUID, HAVE_MKNOD, HAVE_RTAPELIB, HAVE_ST_FSTYPE_STRING,
	HAVE_UNION_WAIT, HAVE_UTIME_H, HAVE_VALLOC, MTIO_CHECK_FIELD, PACKAGE,
	PROTOTYPES, REMOTE_SHELL, STD_INC_PATH, VERSION, WITH_CATALOGS,
	WITH_DMALLOC, WITH_REGEX):
	Remove; now generated automatically.

	* configure.in (_GNU_SOURCE): Define to empty, not 1, for
	compatibility for glibc fragments.
	(_GNU_SOURCE, HAVE_UTIME_H, MTIO_CHECK_FIELD,
	HAVE_ST_FSTYPE_STRING, HAVE_MKNOD, REMOTE_SHELL, DENSITY_LETTER,
	DEVICE_PREFIX, DEFAULT_ARCHIVE, DEFAULT_BLOCKING): Add comment so
	that we needn't put an entry into acconfig.h.
	(ALL_LINGUAS): Add da.
	(AC_C_BACKSLASH_A): Remove; jm_PREREQ_QUOTEARG now does this.
	(AC_CHECK_HEADERS): Add stdbool.h (for hash.h users), wctype.h
	(for strtol.c).
	(AC_MBSTATE_T): Add.
	(RMT): Append $(EXEEXT).
	(HAVE_GETGRGID, HAVE_GETPWUID, pe_AC_TYPE_SIGNED_CHAR): Remove.
	(HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
	HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
	HAVE_DECL_STRTOULL, HAVE_DECL_STRERROR_R): New macros.
	(jm_PREREQ_ADDEXT, jm_PREREQ_ERROR, jm_PREREQ_QUOTEARG): Add.
	(AC_REPLACE_FUNCS): Remove execlp; no longer needed.
	(AC_CHECK_FUNCS): Add clock_gettime; AC_SEARCH_LIBS wasn't enough.
	Remove mbrtowc; jm_PREREQ_QUOTEARG now does this.
	(EMUL_OPEN3): Remove; no longer needed.
	(DENSITY_LETTER, DEVICE_PREFIX): Simplify m4 quoting.

	* m4/fnmatch.m4 (AC_FUNC_FNMATCH): Detect d*/*1 vs d/s/1 bug.

	* src/common.h: Do not include basename.h.
	* src/rtapelib.c (base_name): Do not include basename.h;
	declare base_name instead.

	* lib/basename.h, lib/execlp.c, lib/getpagesize.h, lib/mkdir.c:
	Remove these files.
	* lib/getstr.c, lib/getstr.h, lib/hash.h, lib/hash.h, lib/prepargs.c,
	lib/prepargs.h, lib/savedir.c, lib/savedir.h: New files.
	* lib/Makefile.am (EXTRA_DIST, noinst_HEADERS, libtar_a_SOURCES):
	Adjust to the above changes.

	* lib/Makefile.am (AUTOMAKE_OPTIONS): Remove ../src/ansi2knr.

	* src/open3.c: Remove.

	* src/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr.
	(tar_SOURCES): Remove open3.c.
	(INCLUDES): Remove -I.., as automake does that.
	(OMIT_DEPENDENCIES): ../lib/fnmatch.h -> fnmatch.h.  Add localedir.h.

	The following changes are to put LOCALEDIR into localedir.h instead
	of passing it on the command line.
	(DEFS): Remove.
	(DISTCLEANFILES): New macro.
	(localedir.h): New rule.
	(rmt.o tar.o): Now depend on localedir.h.

	* tests/delete02.sh, tests/extrac04.sh: New files.

	* tests/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr.
	(TESTS): Add extrac04.sh, and restore delete02.sh.
	(DEFS): Remove; LOCALEDIR is now done via localedir.h.
	(INCLUDES): Remove -I.. as automake does this now.

	* src/rtapelib.c (rexec): Don't declare unless using it.
	(do_command): Simplify signal-handling code slightly.

	* src/delete.c (blocks_needed): Remove.  All uses changed to use
	blocking_factor - new_blocks.
	(acting_as_filter): New var.
	(write_record, delete_archive_members): Use acting_as_filter
	rather than archive == STDIN_FILENO to detect whether we're acting
	as a filter, as open can return STDIN_FILENO in some cases.
	(delete_archive_members): Ignore zero blocks if
	ignore_zeros_option is nonzero.  Fix bug that messed up last
	output block: write_eot can't be used here, as it gets confused
	when the input is at end of file.

	* src/compare.c (diff_archive): Do not impose an arbitrary limit on
	symbolic link contents length.  Pass directory size to
	get_directory_contents.

	* m4/decl.m4, m4/error.m4, m4/mbstate_t.m4, m4/prereq.m4,
	m4/strerror_r.m4: New files.
	* m4/signedchar.m4: Remove this file.
	* Makefile.am (ACINCLUDE_INPUTS): Adjust to above changes.
	* m4/Makefile.am (EXTRA_DIST): Likewise.

	* Makefile.am (DISTCLEANFILES): Add intl/libintl.h.

	* po/da.po: New translation file.

	* src/mangle.c (extract_mangle):
	Fix diagnostic with wrong number of %s'es.

	* lib/fnmatch.c (fnmatch):
	Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
	e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.

	* lib/full-write.c (full_write): Some buggy drivers return 0 when you
	fall off a device's end.  Detect this.

	* src/system.h (IN_CTYPE_DOMAIN): Renamed from CTYPE_DOMAIN.  All
	uses changed.
	(open): Remove macro; we no longer support EMUL_OPEN3.  Do not
	include <pathmax.h> and directory include files like <dirent.h>;
	no longer used.  Include <savedir.h> instead.
	(closedir, signed_char): remove macro; no longer used.
	(bool, false, true): Include <stdbool.h> if you have the include
	file, otherwise define.

	* src/misc.c:
	(is_dot_or_dotdot, closedir_error, closedir_warn, opendir_error,
	opendir_warn, readdir_error): Remove; no longer needed.
	(safer_rmdir): Strip leading ./ (or .// or ./// or ././ or etc.)
	before deciding whether we're trying to remove ".".
	(remove_any_file): Try unlink first if we are not root.  Use
	savedir when recursively removing directories, to avoid exhausting
	file descriptors.
	(savedir_error, savedir_warn, symlink_error): New functions.

	* src/list.c: (read_and): Do not invoke
	apply_nonancestor_delayed_set_stat; DO_SOMETHING is now
	responsible for that.  Do not invoke apply_delayed_set_stat; our
	caller is now responsible for that.
	(read_header): Use signed char instead of signed_char.  Prevent
	later references to current_header from mistakenly treating it as
	an old GNU header.
	(from_header): Quote invalid base-64 strings in diagnostics.
	(time_from_header): Do not warn about future timestamps in
	archive; check_time now does that.
	(print_header): Quote unknown file types.
	(skip_member): New function, replacing skip_extended_headers and
	now skipping the whole member instead of just the extended
	headers.  All callers changed.  This makes the code handle
	extended headers uniformly, and fixes some bugs.

	* src/update.c (update_archive): Use skip_member.

	* src/extract.c (we_are_root): Now global.
	(struct delayed_symlink): New type.
	(delayed_symlink_head): New var.
	(extr_init, fatal_exit): Invoke extract_finish on fatal errors,
	not apply_delayed_set_stat.
	(set_mode, set_stat): Pointer args are now const pointers.
	(check_time): New function.
	(set_stat): Warn if setting a file's timestamp to be the future.
	(make_directories): Do not save and restore errno.
	(maybe_recoverable): Set errno to ENOENT if we cannot make missing
	intermediate directories.
	(extract_archive): Invoke apply_nonancestor_delayed_set_stat here,
	not in caller.  Extract potentially dangerous symbolic links more
	carefully, deferring their creation until the end, and using a
	regular file placeholder in the meantime.  Do not remove trailing
	/ and /. from file names.  Do not bother checking for ".." when
	checking whether a directory loops back on itself, as loopbacks
	can occur with symlinks too.  Also, in that case, do not bother
	saving and restoring errno; just set it to EEXIST.
	(apply_nonancestor_delayed_set_stat): A prefix is a potential
	ancestor if it ends in slash too (as well as ending in a char just
	before slash).
	(apply_delayed_set_stat): Remove.
	(apply_delayed_symlinks, extract_finish): New functions.

	* doc/fdl.texi: New file.
	* doc/Makefile.am (EXTRA_DIST): Add fdl.texi.
	($(srcdir)/tar.info): Add fdl.texi.  Invoke makeinfo with --no-split.
	* doc/tar.texi: Add Free Documentation License.  New section
	"Overwrite Old Files", and revamp that section to make it easier to
	follow.  "tar" -> "GNU tar" where appropriate.  Migrate getdate
	documentation into getdate.texi.  Fix several minor typos.  Describe
	TAR_OPTIONS.  Describe incompatibility between incremental backups and
	--atime-preserve.  Describe incompatibility between --verify and other
	options.  Mention that tar normally removes symbolic links rather than
	following them, when extracting a file of the same name.

	* THANKS: Add gpoul.  Change skip's address.

	* po/POTFILES.in: Add lib/human.c.

	* src/common.h (namelist, namelast): Remove decls.
	(we_are_root, extract_finish, skip_member, savedir_error,
	savedir_warn, symlink_error, gnu_list_name): New decls.
	(apply_delayed_set_stat, apply_nonancestor_delayed_set_stat,
	skip_extended_headers, is_dot_or_dotdot, closedir_error,
	closedir_warn, opendir_error, opendir_warn, readdir_error,
	readdir_warn): Remove decls.
	(get_directory_contents): New off_t arg.
	(addname): Now returns struct name *.

	* src/tar.h, tests/genfile.c: Fix comments.

	* src/create.c: Include hash.h.
	(gnu_list_name): Remove decl.
	(struct link): Remove "next" member.
	(linklist): Remove.
	(start_header): Say "leading `FOO'" rather than "`FOO' prefix" for
	consistency with other diagnostics.
	(deal_with_sparse): Check for I/O error when closing the file.
	(create_archive): Do not allocate an array of size PATH_MAX, as
	PATH_MAX might be (size_t) -1.  Instead, allocate an array with
	the size that's needed.
	(hash_link, compare_links): New functions.
	(dump_file): Do not exhaust open file descriptors when descending
	deeply into a directory, by using savedir rather than
	opendir/readdir.  Do not zero-fill the name buffer unnecessarily.
	Hash the set of links already created, instead of using a linked
	list.  Fix some bugs in outputting sparse files which caused the
	sparse tables to be incorrect.  When a file unexpectedly shrinks,
	output zeros rather than garbage.  Do not allocate an array of
	size PATH_MAX, as PATH_MAX might be (size_t) -1.  Instead,
	allocate an array with the size that's needed.

	* src/incremen.c: Include hash.h.
	(struct directory): Remove "next", "dir_text".  Change "name" to
	be char[1] with struct hack, not const char *.  Add "found".
	(directory_list): Remove.  Replaced by directory_table.
	(directory_table): New var.
	(nfs_string): Renamed from nfs.
	(hash_directory, compare_directories): New functions.
	(note_directory): Now returns struct directory *.  First arg is
	now const pointer.  struct stat arg is now dev_t, ino_t, nfs.
	Remove text arg.  New "found" arg, basically corresponding to the
	old text arg not being null.  All callers changed.
	(note_directory, find_directory): Use hash table rather than
	linked list.
	(get_directory_contents): New arg "device".  Use savedir to do the
	hard work.  Save the nfs-ness of stat_data, since it might change
	under us.  Use note_directory instead of find_directory to save
	some work.  When adding an "A" record, do it with
	add_to_accumulator instead of cheating with strcat.
	(read_directory_file): Use "+" flag before device to indicate
	whether it was NFS.  Fix typo in checking for strtoul error.
	(write_directory_file_entry): New function.
	(write_directory_file): Use it, and use the hash routines to
	traverse the directory table.
	(gnu_restore): Use savedir rather than opendir/readdir.

	* src/tar.c: Include localedir.h, prepargs.h.
	(long_options): Now static.
	(long_options, usage, decode_options): -j is now short for
	--bzip2, and -I is now an alias for -T.
	(decode_options, main): argv is not const pointer now.
	(decode_options): Invoke prepend_default_options to support
	TAR_OPTIONS.  In diagnostic, mention the string that was the
	invalid blocking factor, tape length, group, owner, or record
	size.  --delete is no longer incompatible with -f -, undoing
	2000-01-07 change.
	(main): Invoke extract_finish at end of extraction.

	* src/rmt.c: Include localedir.h.
	(main): Update copyright date to 2000.

	* doc/getdate.texi: New file, taken from fileutils 4.0.27, with the
	following changes: Use @sc where appropriate.  Document the ranges of
	supported times more precisely.  Add Eggert to getdate authors.
	Document old Latin 12m/12pm tradition.  Remove list of alphabetic time
	zone names, as it wasn't correct and people shouldn't be relying on it
	anyway.  Relative items also account for non-DST adjustments.  Fix
	some misspellings.

	* lib/prepargs.c, lib/prepargs.h, tests/extrac04.sh: New file.

	* tests/ignfail.sh: opendir -> savedir in diagnostics.

	* tests/preset.in: Set LANGUAGE to the empty string, for some
	brain damaged host.

2000-10-20  Paul Eggert  <eggert@twinsun.com>

	* m4/fnmatch.m4: Mention the GNU C library.

2000-10-19  Paul Eggert  <eggert@twinsun.com>

	* m4/fnmatch.m4: Add a couple more test cases to catch bugs in
	glibc 2.1.95.

2000-10-17  Paul Eggert  <eggert@twinsun.com>

	* lib/human.c (<limits.h>): Do not include; human.h does it if needed.
	(CHAR_BIT): Remove.

	* lib/human.h (<limits.h>): Include if HAVE_LIMITS_H.
	(CHAR_BIT): Define if not defined.

2000-09-09  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.c: From fileutils: rename ISASCII to IN_CTYPE_DOMAIN.

2000-08-07  Paul Eggert  <eggert@twinsun.com>

	* lib/xmalloc.c: Memory exhausted -> memory exhausted

	* lib/xalloc.h (xalloc_msg_memory_exhausted):
	change to array from char *.

2000-08-06  Paul Eggert  <eggert@twinsun.com>

	* m4/mbstate_t.m4: Define mbstate_t to be int, not char, for
	compatibility with glibc 2.1.3 strftime.c.

2000-07-31  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.c (quotearg_n_options):
	Don't make the initial slot vector a constant,
	since it might get modified.

	* lib/quotearg.c: Add support for more than one preallocated slot.

2000-07-30  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.c (quotearg_n_options):
	Preallocate a slot 0 buffer, so that the caller
	can always quote one small component of a "memory exhausted" message
	in slot 0.

2000-07-23  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.c:
	Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), so that
	mbstate_t is always defined.

	Do not inspect MB_LEN_MAX, since it's incorrectly defined to be 1 in
	some GCC installations, and this configuration error is likely to be
	common.

2000-07-22  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.c:
	When the system forces us to redefine mbstate_t, shadow its mbsinit
	function.  From Bruno Haible.

2000-07-14  Paul Eggert  <eggert@twinsun.com>

	* lib/xmalloc.c: Simplify exhausted message.

	* lib/quotearg.h: Update copyright date; from Jim Meyering.

2000-07-13  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.h (enum quoting style):
	New constant clocale_quoting_style.

	* lib/quotearg.c:
	(quoting_style_args, quoting_style_vals, quotearg_buffer_restyled):
	Add support for clocale_quoting_style, undoing previous change to
	locale_quoting_style.

2000-07-10  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.c:
	<wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX,
	since otherwise we don't need it.
	(MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
	since we don't do multibytes in that case.
	(quotearg_buffer_restyled): If a unibyte locale, don't bother to
	invoke multibyte primitives.

	* m4/mbstate_t.m4 (AC_MBSTATE_T):
	Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
	Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
	and mbstate_t, to a single-part test that simply defines mbstate_t.

	* lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
	Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
	to decide whether to define the BeOS workaround macro;
	this adjusts to the change to AC_MBSTATE_T.

	* m4/strerror_r.m4: New file.

2000-07-05  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.c: Use double-quote to quote.

	* lib/quotearg.c (N_): New macro.
	(gettext_default): New function.
	(quotearg_buffer_restyled): Use gettext_default ("{LEFT QUOTATION MARK}",
	"\"") for left quote, and gettext_default ("{RIGHT QUOTATION MARK}", "\"")
	for right quote.

	* lib/quotearg.c (struct quoting_options):
	Simplify quote_these_too dimension.
	From Bruno Haible  <haible@clisp.cons.org>.

	* m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT):
	Test for mbstate_t only if the test
	for an object-type mbstate_t fails.

	* lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.

2000-07-03  Paul Eggert  <eggert@twinsun.com>

	* m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
	Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.

	* lib/quotearg.c (mbrtowc):
	Assign to *pwc, and return 1 only if result is nonzero.
	(iswprint): Define to ISPRINT if we are substituting our own mbrtowc.

2000-07-02  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.c (mbstate_t):
	Do not define; it should be defined with AC_CHECK_TYPE.

2000-06-26  Paul Eggert  <eggert@twinsun.com>

	* m4/mbstate_t.m4: Include stdio.h before wchar.h, to work around
	a bug in glibc 2.1.3.

	* lib/xmalloc.c: Fix inaccurate comment for xrealloc.

2000-06-19  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.c (ISASCII): Add #undef and move definition to follow
	inclusion of wctype.h to work around solaris2.6 namespace pollution.
	(ISPRINT): Likewise.
	Reported by Tom Tromey.

2000-06-15  Paul Eggert  <eggert@twinsun.com>

	* lib/human.c (adjust_value): New function.
	(human_readable_inexact): Apply rounding style even when printing
	approximate values.

	* lib/human.c: Avoid shadowing warnings.
	From Jim Meyering.

2000-06-14  Paul Eggert  <eggert@twinsun.com>

	* lib/human.c (human_readable_inexact): Allow an input block size
	that is not a multiple of the output block size, and vice versa.

	* lib/getdate.y (get_date): Apply relative times after time zone
	indicator, not before.

2000-05-31  Paul Eggert  <eggert@twinsun.com>

	* m4/largefile.m4: Rewrite so that we don't need to run getconf,
	and thus don't need AC_CANONICAL_HOST.

	(AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
	(AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
	(AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
	CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.  All uses
	changed.  Instead of inspecting the output of getconf, try to
	compile the test program without and with the macro definition.
	(AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check for
	getconf.  Instead, check for the needed flags by compiling test
	programs.

	* configure.in (AC_CANONICAL_HOST): Remove; the largefile stuff no
	longer needs it.
	* config.guess, config.sub: Remove these files, for similar reasons.

2000-05-03  Paul Eggert  <eggert@twinsun.com>

	* m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to be
	500, instead of _GNU_SOURCE to be 1, to work around glibc 2.1.3
	bug.  This avoids a clash when files like regex.c that define
	_GNU_SOURCE.

2000-05-02  Paul Eggert  <eggert@twinsun.com>

	* m4/largefile.m4 (AC_SYS_LARGEFILE):
	Define _GNU_SOURCE if this is needed to make
	ftello visible (e.g. glibc 2.1.3).  Use compile-time test, rather than
	inspecting host and OS, to decide whether to define _LARGEFILE_SOURCE.

	* lib/quotearg.c (mbrtowc, mbstat_t):
	Add definitions if !HAVE_MBSTATE_T_OBJECT.
	(<wctype.h>): Include if HAVE_WCTYPE_H.
	(iswprint): Define to 1 if we lack it

2000-04-18  Paul Eggert  <eggert@twinsun.com>

	* m4/mbstate_t.m4: New file.

2000-04-17  Bruno Haible  <haible@clisp.cons.org>

	* tests/ignfail.sh: Test for uid 0 along with user "root".

2000-04-05  Paul Eggert  <eggert@twinsun.com>

	* m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS):
	Don't use -n32 on IRIX if the installer said
	otherwise.

2000-02-28  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.c (ALERT_CHAR): New macro.
	(quotearg_buffer_restyled): Use it.

2000-02-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* src/list.c (tartime): Fix off-by-one error when copying year if
	OLD_CTIME.

2000-02-18  Paul Eggert  <eggert@twinsun.com>

	* lib/getdate.y: Handle two-digit years with leading zeros correctly.
	(textint): New typedef.
	(parser_control): Changed from struct parser_control to typedef
	(for consistency).  Member year changed from int to textint.  All
	uses changed.
	(YYSTYPE): Removed; replaced by %union with int and textint
	members.
	(tID): Removed; not used.
	(tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE,
	tMERIDIAN, tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER,
	tUNUMBER, tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
	(tSNUMBER, tUNUMBER): Now of type <textintval>.
	(date, number, to_year): Use width of number in digits, not its
	value, to determine whether it's a 2-digit year, or a 2-digit
	time.
	(yylex): Store number of digits of numeric tokens.  Return '?' for
	unknown identifiers, rather than (unused) tID.

2000-01-16  Paul Eggert  <eggert@twinsun.com>

	* lib/quotearg.c (quotearg_buffer_restyled):
	Do not quote alert, backslash, formfeed,
	and vertical tab unnecessarily in shell quoting style.

2000-01-15  Paul Eggert  <eggert@twinsun.com>

	* m4/c-bs-a.m4:
	Change quoting to be compatible with future autoconf versions.

2000-01-11  Paul Eggert  <eggert@twinsun.com>

	* lib/exclude.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove unused macros.

2000-01-07  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.17.

	Fix bug with fnmatch.h dependency, as follows:
	* src/Makefile.am (OMIT_DEPENDENCIES): New macro.
	* lib/Makefile.am (OMIT_DEPENDENCIES): New macro.

	* src/common.h (apply_nonancestor_delayed_set_stat):
	Renamed from apply_delayed_set_stat.
	(apply_delayed_set_stat, decode_mode, chmod_error_details,
	chown_error_details, close_warn, closedir_warn, mkdir_error,
	read_error_details, read_fatal_details, read_warn_details,
	seek_error_details, seek_warn_details, utime_error,
	write_error_details, write_fatal_details): New decls.

	Make diagnostic messages more regular.
	* src/create.c (dump_file): Quote file names with colons if possible.
	* src/compare.c	(diff_archive): Likewise.
	* src/extract.c (repair_delayed_set_stat, extract_archive): Likewise.
	* src/incremen.c (get_directory_contents, gnu_restore): Likewise.
	* src/mangle.c (extract_mangle): Likewise.
	* src/misc.c (call_arg_error, call_arg_fatal, call_arg_warn):
	Likewise.
	* src/buffer.c (archive_write_error, flush_archive, close_archive,
	new_volume, xclose):
	Use error message functions to report errors consistently.
	* src/compare.c (diff_sparse_files, diff_archive): Likewise.
	* src/create.c (finish_sparse_file, dump_file): Likewise.
	* src/extract.c (set_mode, set_stat, extract_sparse_file,
	extract_archive): Likewise.
	* src/list.c (list_archive): Likewise.
	* src/update.c (append_file): Likewise.
	* src/compare.c (diff_init, diff_sparse_files):
	Use xalloc_die to report memory exhaustion.
	* src/incremen.c (gnu_restore): Likewise.
	* src/list.c (read_header): Likewise.
	* src/mangle.c (extract_mangle): Likewise.
	* src/misc.c (maybe_backup_file): Likewise.
	* src/tar.c (decode_options): Likewise.
	* src/compare.c (read_and_process, fill_in_sparse_array,
	diff_sparse_files):
	Use consistent terminology for unexpected-EOF message.
	* src/extract.c (extract_sparse_file, extract_archive): Likewise.
	* src/list.c (list_archive, read_header, skip_file,
	skip_extended_headers): Likewise.
	* src/buffer.c (archive_write_error): Add noreturn attribute to decl.
	(xdup2): Regularize messages with rest of tar.

	* src/buffer.c (flush_read): Don't read past EOF.

	* src/extract.c (extr_init):
	If we run out of memory, invoke apply_delayed_set_stat.
	(prepare_to_extract): Don't complain if we can't remove ".".
	(apply_delayed_set_stat): New function.
	(apply_nonancestor_delayed_set_stat):
	Renamed from apply_delayed_set_stat.  All uses changed.
	Don't remove head if it doesn't apply.

	* src/create.c (find_new_file_size):
	Return size instead of storing through pointer.
	All callers changed.
	(deal_with_sparse): Don't keep reading after read errors.
	(finish_sparse_file): Just abort if there is an internal error.
	(dump_file): Fix typo: stat_warn and stat_error were interchanged.
	Don't restore access times on directories during incremental dumps
	until after dealing with the directory.
	If ignoring failed reads, count closedir, read, and unknown
	file errors as warnings, not errors.
	Fix buffer overrun problem when dumping sparse files.

	* src/list.c (read_and):
	Invoke apply_nonancestor_delayed_set_stat on file names
	after handling them.
	(decode_mode): Remove; moved to misc.c.

	* src/misc.c (safer_rmdir): New function.
	(remove_any_file): Use it to avoid problems with rmdir(".").
	(maybe_backup_file): Regularize diagnostics.
	(undo_backup_file): Likewise.
	(decode_mode): Moved here from list.c.
	(chmod_error_details, chown_error_details, close_fatal,
	close_warn, closedir_warn, mkdir_error, read_error_details,
	read_warn_details, read_fatal_details, seek_error_details,
	seek_warn_details, utime_error, write_error_details,
	write_fatal_details): New functions.

	* src/delete.c (save_record): Remove static variable (now local).
	(move_archive): Don't position before start of archive.
	(write_record): Abort if count is zero at inopportune time.
	Plug memory leak.

	* src/tar.c (decode_options): --delete and -f - are now
	incompatible, since we didn't have time to fix their bugs.

	* tests/Makefile.am (TESTS): Remove delete02.sh.
	* tests/ignfail.sh: Adjust to new quoting scheme again.

2000-01-06  Paul Eggert  <eggert@twinsun.com>

	* lib/getdate.y: Sync tm_diff with the GNU C Library.
	(TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN.  All uses changed.
	(tm_diff): Renamed from difftm.  All uses changed.
	Replace body with that taken from GNU C Library 2.1.3pre1.
	(get_date): Prefer tm_gmtoff to tm_diff if available.

1999-12-29  "Melissa O'Neill"  <oneill@cs.sfu.ca>

	* tests/incremen.sh: Invoke stat on newly created file so that its
	ctime is updated on Nextstep.

1999-12-21  Machael Stone  <mstone@cs.loyola.edu>

	* lib/getdate.y (get_date):
	Fix typo when checking for time_t overflow in time zone calculations.

1999-12-13  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.16.

	* README-alpha: New file.
	* README: New sections for gzip and bzip2, Solaris.
	Remove mention of BACKLOG.

	* configure.in (AC_C_BACKSLASH_A): Add.
	(AC_CHECK_HEADERS): Add wchar.h.
	(AC_CHECK_FUNCS): Add mbrtowc.
	(AC_FUNC_CLOSEDIR_VOID): Add.

	* tests/Makefile.am (TESTS): Add delete02.sh.
	(POSTPONED_TESTS): Remove.
	(EXTRA_DIST): Remove $(POSTPONED_TESTS).

	* tests/preset.in:
	Set LC_ALL rather than LANGUAGE, LANG, and LC_MESSAGES.

	* tests/ignfail.sh (err): Adjust to new quoting scheme.

	* tests/delete02.sh: Fix typo: need to list archive2, not archive.

	* tests/extrac03.sh: Use -P option, so that .. doesn't get diagnosed.

	* src/tar.c ("quotearg.h"): New include.
	(usage): Now has __attribute__ ((noreturn)).
	(confirm): Report errno if we can't open tty.
	(confirm, decode_options):
	Quote arbitrary strings in diagnostics.
	(OVERWRITE_OPTION): New constant.
	(long_options, usage, decode_options): New --overwrite option.
	(decode_options): --keep-old-files, --overwrite, and --unlink-first
	are now mutually exclusive.
	Don't assume that gettext preserves errno.
	(main): Set default quoting style to escape_quoting_style.

	* src/update.c (<quotearg.h>): New include.
	(append_file):
	Don't assume that gettext preserves errno.
	Quote arbitrary strings in diagnostics.
	Check for close error.

	* src/names.c (<quotearg.h>): New include.
	(name_init, name_next, name_close, names_notfound,
	collect_and_sort_names): Don't assume that gettext preserves
	errno.  Quote arbitrary strings in diagnostics.
	(excluded_name): Fix typo that caused empty patterns to be
	mishandled.

	* src/misc.c (<quotearg.h>): New include.
	(quote_copy_string): Quote only newline and backslash; the output is no
	longer meant for humans, and is locale-independent.
	(contains_dot_dot): New function.
	(remove_any_file): Don't use lstat; just rmdir the file and then use
	unlink if the rmdir fails because the file isn't a directory.
	Check for readdir and closedir errors.
	(maybe_backup_file): Report "stat" for stat errors.
	(maybe_backup_file, chdir_do):
	Quote arbitrary strings in diagnostics.
	(maybe_backup_file, undo_last_backup):
	Don't assume that gettext preserves errno.
	(call_arg_error, call_arg_fatal, call_arg_warn,
	chdir_fatal, close_error, closedir_error, exec_fatal, mkfifo_error,
	mknod_error, open_error, open_fatal, open_warn, opendir_error,
	opendir_warn, read_error, read_fatal, readdir_error, readdir_warn,
	readlink_error, readlink_warn, seek_error, seek_warn, stat_error,
	stat_warn, truncate_error, truncate_warn, unlink_error, waitpid_error,
	write_error, write_fatal, xfork, xpipe, quote_n, quote): New functions.

	* src/system.h (__attribute__): New macro.
	(O_NDELAY, O_NONBLOCK, O_APPEND): Remove.
	(S_ISDOOR): New macro.
	(closedir): New macro, if CLOSEDIR_VOID.

	* src/rmt.c, src/rtapelib.c (decode_oflag):
	O_APPEND might not be defined.

	* src/list.c: (read_and, list_archive):
	Quote arbitrary strings in diagnostics.
	(from_header): Use locale_quoting_style to quote diagnostics.
	(print_header, print_for_mkdir): Quote with quotearg, not quote_copy_string.

	* src/rmt.h (REM_BIAS): Increase from 128 to (1 << 30).

	* src/Makefile.am: Use ## for copyright comments.

	* src/extract.c (<quotearg.h>): New include.
	(enum permstatus): New enum.
	(struct delayed_set_stat): file_name is now at end of buffer, to avoid
	two mallocs.  New members file_name_len, invert_permissions, permstatus.
	(extr_init): Remove hack that silently adjusted newdir_umask.
	(set_mode, set_stat): New args invert_permissions, permstatus, typeflag.
	Use these args to decide whether and how to set modes.
	(set_mode, set_stat, prepare_to_extract, extract_sparse_file, extract_archive):
	Don't assume that gettext preserves errno.
	(set_stat): Remove arg symlink_flag; subsumed by typeflag.
	(delay_set_stat, repair_delayed_set_stat): New functions.
	(make_directories): Avoid mkdir where last part of path is "..".
	Create a struct delayed_set_stat for each directory made.
	(prepare_to_extract): Renamed from unlink_destination, and
	return 0 immediately if to_stdout_option; all callers changed.
	(maybe_recoverable): New parameter interdir_made.
	Add support for --overwrite.
	(extract_sparse_file, extract_archive):
	Quote arbitrary strings in diagnostics.
	(extract_archive): By default, warn about ".." in member names, and skip them.
	Don't open files with O_NONBLOCK or O_APPEND.
	Open with O_TRUNC only if --overwrite; otherwise, use O_EXCL to avoid
	overwriting them.  Pass only rwxrwxrwx permissions to `open' and `mkdir',
	minus the current umask.  Keep track of intermediate directories made,
	to avoid looping when making x/../x when x doesn't exist; the
	earlier code solved this in a different way that didn't fit well
	into the new scheme.  Don't extract permissions onto existing
	directories unless --overwrite is given.  Do not add -wx------
	permissions to new directories permanently; just do it temporarily.
	Remove no-longer-needed hack with MSDOS and directory time stamps.
	(apply_delayed_set_stat): New argument specifies which directories to
	fix statuses of.  Do not wait until the end of extraction to fix
	statuses; instead, fix a directory's status once we exit that directory.
	This requires less memory and does the right thing in some cases
	where the old method didn't.
	(fatal_exit): New function.

	* src/incremen.c (<quotearg.h>): New include.
	(get_directory_contents, gnu_restore):
	Check for readdir and closedir errors.
	(get_directory_contents, read_directory_file, gnu_restore):
	Quote arbitrary strings in diagnostics.
	(get_directory_contents, read_directory_file, write_directory_file):
	Don't assume that gettext preserves errno.

	* src/create.c (<quotearg.h>): New include.
	(start_header): Use `member names' to refer to archive member names, not
	`archive names'.  Warn about `..' in member names.
	(finish_sparse_file, dump_file):
	Quote arbitrary strings in diagnostics.
	(finish_sparse_file, dump_file):
	Don't assume that gettext preserves errno.
	(dump_file): Don't use `access' to determine whether a directory is readable;
	this isn't reliable if tar is setuid.  Use `opendir' instead.
	Check for readdir and closedir failures.
	Don't dump sockets as if they were fifos; just warn and skip.

	* src/delete.c (move_archive):
	Don't report fatal error merely because sizes don't fit
	into struct mtop values; fall back on lseek instead.
	Say `Cannot' uniformly, instead of `Could not' sometimes and `Cannot' others.
	Say `reposition' instead of `re-position'.
	(delete_archive_members):
	Set archive to STDOUT_FILENO before outputting trailing buffer.

	* src/compare.c (<quotearg.h>): New include.
	(diff_init): Use `Cannot' uniformly, instead of `Could not' sometimes
	and `Cannot' others.
	(report_difference, diff_archive):
	Quote arbitrary strings in diagnostics.
	(process_rawdata, diff_sparse_files, get_stat_data, diff_archive, seek_warn):
	Don't assume that gettext preserves errno.
	(diff_archive): Don't open regular files with O_NONBLOCK.
	Preserve access times of files if --atime.

	* src/common.h (FATAL_ERROR): Use new fatal_exit function to exit.
	(FATAL_ERROR, USAGE): Don't return 0.
	(enum old files): New enum.
	(old_files_option): New variable, replacing keep_old_files_option and
	unlink_first_option.
	(apply_delayed_set_stat): Now takes char const * param.
	(fatal_exit, contains_dot_dot, chdir_fatal, close_error,
	closedir_error, exec_fatal, mkfifo_error, mknod_error, open_error,
	open_fatal, open_warn, opendir_error, opendir_warn, read_error,
	read_fatal, readdir_error, readdir_warn, readlink_error,
	readlink_warn, seek_error, seek_warn, stat_error, stat_warn,
	truncate_error, truncate_warn, unlink_error, waitpid_error,
	write_error, write_fatal, xfork, xpipe, quote, quote_n): New decls.

	* src/buffer.c:
	(xclose, xdup2, child_open_for_compress, child_open_for_uncompress,
	archive_write_error, archive_read_error, flush_archive, close_archive,
	init_volume_number, new_volume):
	Don't assume that gettext preserves errno.

	(xdup2): Don't report errno if dup returns an unexpected nonnegative value.
	(open_archive): Reject multivolume verify attempts a bit earlier.
	Rename local variable `access', in case it's defined by system header.

	(open_archive, backspace_output): Use `Cannot' uniformly, instead of
	`Could not' sometimes and `Cannot' others.

	(open_archive, flush_read, flush_archive, close_archive, new_volume):
	Quote arbitrary strings in diagnostics.

	(read_error): Set archive to STDOUT_FILENO temporarily when writing
	archive buffer.

	(init_volume_number): Check for input and output errors in volno_file.

	(new_volume): Use new fatal_exit function to exit, and new xfork
	function to fork.

	* m4/Makefile.am (EXTRA_DIST): Add c-bs-a.m4.

	* Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/c-bs-a.m4.

	* doc/tar.texi: Add --overwrite.
	--absolute-names rejects ".." in names.

	* lib/quotearg.c: Add support for multibyte characters.
	(ISGRAPH): Remove.
	(ISPRINT): New macro.
	(<wchar.h>): Include if HAVE_MBRTOWC && HAVE_WCHAR_H.
	(isprint, mbrtowc, mbsinit, mbstate_t): New macros,
	defined if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
	(quotearg_buffer_restyled): New function, with most of the old
	quotearg_buffer's contents.
	Major rewrite to support multibyte characters.
	(quotearg_buffer): Now just calls quotearg_buffer_restyled.

	* m4/c-bs-a.m4: New file.

	* lib/Makefile.am: Use ## for copyright notice.

	* scripts/Makefile.am: Use ## on copyright notice.

	* doc/Makefile.am:
	($(srcdir)/tar.info, tar.dvi): We now use texinfo 4.0.

1999-12-05  Paul Eggert  <eggert@twinsun.com>

	* doc/ChangeLog, lib/ChangeLog, scripts/ChangeLog,
	src/ChangeLog, tests/ChangeLog: Remove these files.
	* ChangeLog.1: New file, incorporating the above files, plus old
	ChangeLog entries.
	* Makefile.am (EXTRA_DIST): Add ChangeLog.1.

1999-12-05  Dale Worley  <worley@ariadne.com>

	* src/compare.c (<utime.h>, struct utimbuf): Add.
	(diff_archive): Restore access times if --atime.
	* doc/tar.texi: Explain that --atime also preserves modification time.

1999-12-04  Gerhard Poul  <gpoul@gnu.org>

	* ABOUT-NLS: Update to latest version from ftp.gnu.org.
	* BACKLOG, TODO: Remove.
	* Makefile.am (all-local, BABYL, dist-zoo, id, ID): Remove.
	* README: Bring up to date.

1999-12-03  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.15.

	* src/compare.c (diff_archive):
	Do not set errno to EPIPE; we no longer use perror.

	* src/create.c (dump_file):
	If a parent directory said that a file should be there but it is
	absent, diagnose it as being removed in the meantime.
	Do not pass meaningless errno to ERROR when reporting that the
	file changed as we read it.
	Report that a file changed if its ctime changes; this is more
	sensitive than mtime+size, and more accurate.

	* src/incremen.c (enum children): New type.
	(struct directory): Change old char allnew member to new enum children
	children member.
	All uses changed.
	(get_directory_contents): When doing an incremental dump that does
	not cross filesystem boundaries, dump the mount points, even though
	they are in a different filesystem.  This is for convenience when
	restoring, and for consistency with non-incremental dumps.
	This requires a 3-way flag for keeping track of which children we want,
	so we use enum children rather than boolean.

	* src/open3.c (modes): Remove.
	(open3): Remove unportable assumptions about flag encodings.
	Use `stat' instead of `access' for testing file existence,
	to avoid problems with setuid programs.

	* src/names.c (name_next): If file names are given both in the
	command line (e.g. via -C) and in a file (via -T), do not
	ignore the command-line names.

	* m4/uintmax_t.m4: Backport to autoconf 2.13.

	* doc/tar.texi: Clarify getdate authorship.

1999-11-23  Paul Eggert  <eggert@twinsun.com>

	* lib/Makefile.am (DISTCLEANFILES): New macro.

	* configure.in (tar_fnmatch_hin):
	Remove; it runs afoul of a bug in autoconf 2.13.
	Instead, always link fnmatch.h to some file, even if it's a throwaway.

1999-11-19  Paul Eggert  <eggert@twinsun.com>

	* m4/largefile.m4: Update serial.

1999-11-18  Paul Eggert  <eggert@twinsun.com>

	* m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a bug in
	the QNX shell, which doesn't propagate exit status of failed
	commands inside shell assignments.

1999-11-07  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.14.

	* configure.in (AC_PREREQ): Bump to 2.13.
	(ALL_LINGUAS): Add pt_BR, ja.
	(AC_FUNC_FNMATCH): Remove lib/funmatch.h before invoking, not after.
	(tar_cv_path_RSH): Prefer a non-symlink rsh to a symlink one,
	for AIX crossbuilds.

	* doc/tar.texi: New node create options for --ignore-failed-read.
	Remove unused version control symbols.
	Modernize texinfo usage.

	* src/tar.c (usage): Add examples.

	* m4/fnmatch.m4 (AC_FUNC_FNMATCH):
	Include fnmatch.h when testing fnmatch.

	* src/common.h (collect_and_sort_names): New decl.

	* src/list.c (from_header):
	Handle 32-bit two's complement negative time stamps
	even if the leading octal digit is 2 or 3.

	* src/extract.c (set_stat): Remove duplicate code.

	* src/create.c (to_chars): Remove trailing newline from warning.
	(dump_file): Ignore doors.
	(finish_header): Report block numbers with origin 0, not origin 1.

	* src/rmt.c: Include getopt.h.
	(long_opts): New constant.
	(usage): New function.
	(main): Implement --help and --version.
	Output usage message if arguments are bad.

1999-10-10  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.13.

	* README: Remove --with-dmalloc.
	Add --disable-largefile.
	Remove old NeXT dirent problems, or AIX valloc problems.
	Remove old union wait advice, and old %lld advice.
	Remove advice about FreeBSD 2.1.7, ISC 4.1mu, Ultrix `make'.

	* doc/tar.texi: Clarify documentation for portable file names.

	* configure.in (AM_WITH_DMALLOC): Remove.
	(ALL_LINGUAS): Add ja.

	* src/tar.c (decode_options):
	Invalid dates are now treated as (time_t) -1.
	Redo version message to conform to GNU standards.

	* src/create.c (dump_file):
	Fix typo: last two args to dump_file were interchanged.
	* src/update.c (update_archive): Likewise.

	* src/common.h (tartime): New decl.

	* src/list.c (tartime): Now extern.
	(read_and): Invalid headers cause errors, not warnings.

1999-10-03  Paul Eggert  <eggert@twinsun.com>

	* lib/getdate.y (__attribute__):
	Don't use if GCC claims to be before 2.8; this is
	needed for OPENStep 4.2 cc.  Also, don't use if strict ANSI.

1999-09-25  Paul Eggert  <eggert@twinsun.com>

	* lib/fnmatch.c, lib/fnmatch.hin: Merge changes from latest glibc.
	* lib/getopt.c, lib/getopt.h, lib/getopt1.c: Likewise.

	* tests/incremen.sh: Add yet another sleep.

1999-09-24  Paul Eggert  <eggert@twinsun.com>

	* NEWS: A read error now causes a nonzero exit status.

	* src/create.c (to_chars): Fix base-256 output.

	* src/buffer.c (write_error):
	Read error is an error, not just a warning.

1999-09-24  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.12.

	* src/tar.c (<time.h>): Include.
	(time): Declare if not defined.
	(confirm): Don't read past EOF.
	(long_options, usage): Add --no-same-owner, --no-same-permissions.
	(main): Use clock_gettime if available.

	* tests/Makefile.am (TESTS): Add incremen.sh
	(INCLUDES): Add -I../lib, for fnmatch.h.

	* src/update.c (update_archive):
	Remove call to name_expand; had no effect.
	Use chdir_do to change into directory.
	Use deref_stat instead of stat.
	Use add_avoided_name to mark names to be avoided; the old method of
	setting a bit with the name caused all descendants of that name to
	be avoided, in some circumstances.

	* tests/incremen.sh: Remove unnecessary sleeps.

	* src/names.c (name_next): Go back to using plain chdir.
	(name_gather): Use chdir_arg to keep track of arguments to chdir.
	(addname): Likewise.
	(name_match): Use chdir_do to act on chdir args.
	(merge_sort): Moved here from incremen.c.
	(compare_names, add_hierarchy_to_namelist, collect_and_sort_names):
	Likewise.
	(name_expand): Remove.
	(name_from_list): Skip fake names.
	Use chdir_do to act on chdir args.
	(struct avoided_name): New struct.
	(avoided_names): New var.
	(add_avoided_name, is_avoided_name): New functions.

	* src/system.h (stat, lstat): Define in terms of statx on
	STX_HIDDEN && !_LARGE_FILES /* AIX */ hosts.
	(UCHAR_MAX): New macro.
	(TYPE_MAXIMUM): Cast to arg type, for types narrow than int.

	* m4/largefile.m4: Work around GCC 2.95.1 bug with HP-UX 10.20.

	* src/incremen.c (<time.h>): Remove include; no longer used.
	(time): Remove decl.
	(time_now): Remove.
	(get_directory_contents): Use deref_stat.
	Consider a subdirectory to be all new only if
	listed_incremental_option or if it its timestamp is newer than the
	cutoff.
	(add_hierarchy_to_namelist, merge_sort): Move to names.c.
	(read_directory_file): Now extern.  Do not set time_now.
	(write_directory_file): Renamed from write_dir_file.
	Use start_time instead of time_now.
	(compare_names, collect_and_sort_names): Move to names.c.

	* src/mangle.c (<time.h>): Remove; not used.
	(time): Do not declare.

	* src/misc.c (chdir_from_initial_wd): Remove.
	(deref_stat): New function.
	(struct wd): New struct.
	(wd, wds, wd_alloc): New variables.
	(chdir_arg, chdir_do): New function.

	* src/compare.c (get_stat_data): Use deref_stat.

	* src/common.h (name_expand): Remove.

	* src/list.c (time): Declare if not defined.
	(base_64_digits): Moved here from create.c.
	(base64_map): Use UCHAR_MAX for size, not less-clear (unsigned char)
	-1.
	(read_and): Don't get time from header unless we need it now;
	as getting time can cause duplicate diagnostics if bogus.
	Remove "Hmm, " from diagnostic.
	Use "Skipping to next header" uniformly.
	(from_header): Renamed from from_chars.  All uses changed.
	Allow different forms for unportable 2's complement numbers.
	Don't check for extended forms when parsing checksums.
	Parse base-256 output.
	(gid_from_header): Renamed from gid_from_chars.  All uses changed.
	(major_from_header): Renamed from major_from_chars.  All uses changed.
	(minor_from_header): Renamed from minor_from_chars.  All uses changed.
	(mode_from_header): Renamed from mode_from_chars.  All uses changed.
	(off_from_header): Renamed from off_from_chars.  All uses changed.
	(size_from_header): Renamed from size_from_chars.  All uses changed.
	(time_from_header): Renamed from time_from_chars.  All uses changed.
	Warn about future timestamps.
	(uid_from_header): Renamed from uid_from_chars.  All uses changed.
	(uintmax_from_header): Renamed from uintmax_from_chars.
	All uses changed.
	(tartime): New function, incorporating isotime.
	(isotime): Delete.
	(print_header): Use tartime.

	* src/create.c (to_chars): Fix typo in decl.
	Don't assign through char const *.
	Rename name_expand back to collect_and_sort_names.

	* src/extract.c (<time.h>): No need to include.
	(time): No need to declare.
	(now): Remove variable.
	(extr_init): Don't initialize `now'.
	Increment same_permissions_option and same_owner_option if we_are_root
	is nonzero; this supports the new --no-same-owner option.
	(set_stat): Use start_time instead of `now'.

	* src/create.c (struct link): Remove unused linkcount member.
	(base_64_digits): Move to list.c.
	(base_8_digits): Remove.
	(to_octal): New function, with some of old contents of to_base.
	(to_base): Remove.
	(to_base256): New function.
	(to_chars): Use base 256, not base 64, for huge values.
	(mode_to_chars): Don't use two's complement in GNU format or POSIX
	format.
	(dump_file): Interchange last two arguments. If TOP_LEVEL is negative,
	it means we have an incremental dump where we don't know whether this
	is a top-level call.
	Use deref_stat instead of statx / stat / lstat.
	Cast result of alloca.
	Check for dates if 0 < top_level, not if listed_incremental_option.
	Move multiple-link check after directory check.
	Do not dump avoided names.
	Dump hard links to symbolic names as links, not as separate
	symbolic links.
	start_header cannot return a null pointer, so don't test for it.
	Likewise for find_next_block.

	* src/buffer.c, src/common.h (<human.h>): Include.
	(read_error): Read error is an error, not just a warning.
	(print_total_written): Also print human-readable byte count, and
	bytes/s.
	(open_archive, flush_write): Use start_time, not current time.
	(flush_read): Report about garbage bytes ignored at end of archive,
	but act on non-garbage bytes (instead of ignoring them).
	(new_volume): Use WARN for warnings.

	* doc/Makefile.am:
	($(srcdir)/tar.info): Add -I$(srcdir) so that subdir builds work.

	* Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/fnmatch.m4.

	* m4/Makefile.am (EXTRA_DIST): Add fnmatch.m4.

	* lib/Makefile.am (noinst_HEADERS):
	Rename fnmatch.h to fnmatch.hin; add human.h.
	(libtar_a_SOURCES): Add human.c, xstrtoul.c.
	(INCLUDES): Remove -I.. -I$(srcdir) -- automake adds this for us.

	* src/Makefile.am (rmt_LDADD, tar_LDADD): New macros.

	* lib/fnmatch.c (strchrnul):
	Define to __strchrnul if _LIBC, to our own replacement otherwise.
	Do not define if !_LIBC and if it already exists.
	(internal_fnmatch): Use it.

	* configure.in (tar_LDADD): New variable, used only when linking tar.
	(rmt_LDADD): Similarly, for rmt.
	(AC_FUNC_FNMATCH): Link fnnmatch.hin to fnmatch.h if we're using our
	fnmatch.c; otherwise, use the system fnmatch.h.

	* doc/tar.texi: Add --no-same-owner, --no-same-permissions.
	Modernize sample backup script.

	* THANKS: Martin Goik's email address has changed.

	* m4/fnmatch.m4: New file.

1999-09-03  Paul Eggert  <eggert@twinsun.com>

	* lib/lchown.h (ENOSYS): Don't use ENOMSG; it's not in NeXTStep3.3.
	Use EINVAL instead.

1999-08-29  Paul Eggert  <eggert@twinsun.com>

	* lib/getdate.y (get_date):
	Rename outermost local `probe' to `quarter'.
	Rename latter local `tm' to probe_tm.
	From: Jim Meyering <meyering@ascend.com>
	Message-ID: <uryn1vafyyc.fsf@ixi.eng.ascend.com>

1999-08-28  Paul Eggert  <eggert@twinsun.com>

	* lib/getdate.y (PC): New macro; use it when possible.
	(number): Handle `Nov 11 1996' example correctly.
	See Risks Digest 20.55 (1999-08-27)
	http://catless.ncl.ac.uk/Risks/20.55.html#subj18

1999-08-23  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.11.

	Remove minor cases of lint from many source files: this includes
	unnecessary casts, uses of NULL, etc.

	* configure.in (AC_PROG_YACC): Remove.
	(YACC): Always use bison.
	(AC_STRUCT_TIMEZONE): Add.
	(AC_REPLACE_FUNCS): Add strcasecmp, strncasecmp.

	* doc/tar.texi: --bzip2 is now -I.  Remove obsolete time zone info.
	Fix spelling.

	* lib/Makefile.am (EXTRA_DIST): Add strcasecmp.c, strncasecmp.c.
	($(srcdir)/getdate.c): Rename y.tab.c to getdate.c only if successful.

	* lib/strcasecmp.c, lib/strncasecmp.c: New files.

	* src/common.h (merge_sort): Remove decl; no longer exported.

	* src/system.h (voidstar): Remove.
	(memcpy, memcmp): Cast args.
	("xalloc.h"): Add include.
	(xmalloc, xrealloc): Remove decl.

	* src/mangle.c (time): Do not declare if defined.
	(first_mangle, mangled_num): Remove.

	* src/list.c (from_chars): Report out-of-range values more precisely.
	(off_from_chars): Do not allow negative offsets.
	(uid_from_chars): Allow negative uids.

	* src/create.c (linklist): Now static.
	(to_chars): Fix wording of message to match from_chars.

	* src/misc.c (merge_sort): Move to incremen.c.
	* src/incremen.c (merge_sort): Move here from misc.c; now static.
	It's too painful to make it both generic and portable.
	(read_directory_file): "timestamp" -> "time stamp" in messages.

	* src/tar.c (long_options, usage, main): -y is now -I (for --bzip).
	(usage): Fix misspelling.
	(OPTION_STRING): -y is now -I.
	(decode_options): Use -1, not EOF, for getopt_long result.
	Fix typo when invoking xstrtoumax: look for LONGINT_OK, not LONG_MAX.
	Handle operands after any "--" argument.
	(main): Report any output errors.

	* src/rmt.c (main): status is ssize_t, not long.

	* src/names.c (name_gather): Handle trailing -C option correctly.
	(addname): use memcpy, not strncpy, to copy a string of known length.
	(name_match): Handle trailing -C option correctly.
	Propagate -C option to following files.
	(name_match, name_scan): Remove redundant matching code.

	* src/buffer.c (open_archive): Use American spelling in diagnostic.

	* lib/getdate.y: Major rewrite.  Add copyright notice.
	(<stdio.h>): Include only if testing.
	(ISUPPER): Remove.
	(ISLOWER): New macro.
	(<string.h>): Include if HAVE_STRING_H, not USG.
	(bcopy): Remove.
	(yymaxdepth, ..., yycheck): Don't bother to redefine, since we assume
	bison.
	(EPOCH_YEAR): Renamed from EPOCH.
	(table): Renamed from TABLE.
	(meridian): Now an anonymous enum.
	(struct parser_control): New type.
	(YYLEX_PARAM, YYPARSE_PARAM, YYSTYPE): New macros.
	(yyInput, ..., yyRelYear): Migrated into struct parser_control.
	(%pure_parser): Added, so that the parser is pure.
	(%union): Removed; the type is now just plain int.
	All %type directives removed.
	(tLOCAL_ZONE): New %token.
	(month_day_table): Renamed from MonthDayTable.
	(gmtime, localtime, mktime, time): Declare only if not defined.
	(meridian_table): New table.
	(dst_table): New table.
	(units_table): renamed from UnitsTable.
	(relative_time_table): Renamed from OtherTable.
	(time_zone_table): Renamed from TimezoneTable.  Modernized.
	(military_table): Renamed from MilitaryTable.
	(to_hour): Renamed from ToHour.
	(to_year): Renamed from ToYear.
	(lookup_zone): New function.
	(LookupWord): Renamed from lookup_word.  Use lookup_zone for time
	zones.
	(yylex): Now reentrant.  All callers changed.
	(get_date): Add support for local time zone abbreviations.
	Make it reentrant.

1999-08-20  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.10.

	* src/create.c (to_chars): Generate GNU base-64 representation
	if we are generating an old or new GNU format tar file for a
	number that can't be represented with the POSIX format.

	* configure.in (AC_CHECK_FUNCS): Add fchdir.
	(AM_FUNC_GETLINE): Add.
	(LIBOBJS): Add getline.o to workaround comment.
	* Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/getline.m4.
	* m4/Makefile.am (EXTRA_DIST): Add getline.m4.
	* lib/Makefile.am (noinst_HEADERS): Add getline.h, save-cwd.h.
	(libtar_a_SOURCES): Add save-cwd.c, xgetcwd.c.
	* lib/getline.c, lib/getline.h, lib/save-cwd.c,
	lib/save-cwd.h, m4/getline.m4: New files.

	* src/misc.c (<save-cwd.h>): Include.
	(chdir_from_initial_wd): New function.

	* src/names.c (name_next): Use chdir_from_initial_wd, not chdir.
	(name_gather): Handle `-C x -C y' correctly.
	Do not rely on addname to handle -C.
	(addname): New CHANGE_DIR parameter.  All callers changed.
	Remove ugly calls to getcwd; no longer needed.
	(name_match, name_from_list): Use chdir_from_initial_wd, not chdir.

	* src/incremen.c (listed_incremental_stream): New var.
	(read_directory_file): Remove arbitrary limits on file name length.
	Do not attempt to get the working directory; we can bypass this
	on fchdir hosts.  Open the listed_incremental_option file for both
	read and write instead of opening it twice.  Check for I/O errors
	when doing I/O to this file.  Check for invalid data in the file,
	and report line numbers of invalid data.
	(write_dir_file): Likewise.
	(collect_and_sort_names): Use chdir_from_initial_wd, not chdir.
	Do not invoke write_dir_file; that's our caller's responsibility.

	* src/list.c (max): New macro.
	(isotime): Now takes time_t, not time_t *.  Report the decimal values
	of times that can't be broken down.
	(print_header): Don't assume that major and minor device numbers can
	fit into uintmax_t.

	* src/common.h (struct name): change_dir is now char const *.
	(write_directory_file): Remove unused decl.
	(STRINGIFY_BIGINT): Assume b always points to UINTMAX_STRSIZE_BOUND
	chars; the old `sizeof (b)' broke when b was a pointer not an array.
	(chdir_from_initial_wd): New decl.
	(addname): New 2nd arg.

	* THANKS: Torsten Lull -> Catrin Urbanneck

1999-08-18  Paul Eggert  <eggert@twinsun.com>

	* configure.in (HAVE_GETHOSTENT, HAVE_SETSOCKOPT):
	Don't depend on ac_cv_func variables.
	From Albert Chin-A-Young <china@thewrittenword.com>.

1999-08-18  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.9

	* m4/signedchar.m4: New file.
	* configure.in (pe_AC_TYPE_SIGNED_CHAR): Add.
	* src/system.h (signed_char): New macro.
	* Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/signedchar.m4.
	* m4/Makefile.am (EXTRA_DIST): Add signedchar.m4.

	* src/create.c (write_eot): Write at least two zero blocks.

	* src/extract.c (extract_archive): Fix sparse array bug:
	we did not find end of array correctly.

	* src/compare.c: (fill_in_sparse_array, diff_sparse_files):
	Don't assume find_next_block yields nonnull.
	* src/extract.c (extract_sparse_file, extract_archive): Likewise.
	* src/list.c (skip_extended_headers): Likewise.

	* src/list.c (read_and, list_archive): Simplify code.
	(read_header): Fix computation of signed checksums on machines where
	char is unsigned.
	Do not consider a block to be zero unless all its bytes are zero,
	even the checksum bytes.  Do not attempt to parse the checksum of
	a zero block.  Fix memory leak with long names and links.
	(from_chars): Accommodate a buggy tar that outputs leading NUL
	if the previous field overflows.

	* src/misc.c (quote_copy_string): Generate \177 for '\177', not
	\?, for portability to non-ASCII hosts.

1999-08-16  Paul Eggert  <eggert@twinsun.com>

	* configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.8.

	* src/extract.c (make_directories): Do not chown intermediate
	directories, even if we are root.

	* src/list.c (read_header): Fix bugs when interpreting
	POSIX-compliant headers that do not contain null bytes in the
	header or link names.

1999-08-14  Paul Eggert  <eggert@twinsun.com>

	* configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.7.

	* configure.in (AC_CHECK_HEADERS): Remove sys/wait.h.
	(AC_HEADER_SYS_WAIT): Add.
	(AC_REPLACE_FUNCS): Add waitpid.
	(tar_cv_header_union_wait, HAVE_UNION_WAIT): Remove.
	* lib/waitpid.c: New file.
	* lib/Makefile.am (EXTRA_DIST): Add waitpid.c.
	* src/system.h (WCOREDUMP): Remove; no longer used.
	(WIFSTOPPED): Likewise.
	(WEXITSTATUS, WIFSIGNALED): Default to Solaris 7 versions.
	* src/buffer.c (child_open_for_compress): Undo previous change.
	(close_archive): Use waitpid, POSIX-style, instead of old BSD style.
	(new_volume): Likewise.

	* src/buffer.c, src/extract.c, src/incremen.c (time):
	Don't declare if defined.
	* src/extract.c (extr_init): Remove unneeded cast around 0 arg to time.
	* src/incremen.c (read_directory_file):
	Invoke `time' the same way everyone else does.
	Check validity of --listed-incremental file contents a bit better.
	Do not worry about --after-date-option; tar.c now checks this.
	* src/list.c (isotime): Report ??? if localtime returns null.
	Don't assume years fit into four digits.
	Don't append trailing newline.
	(print_header): Report ??? if localtime returns null;
	Don't assume years fit into four digits.

	* src/compare.c (diff_archive): Do not fall back on absolute name
	when --absolute-names is not specified.

	* src/create.c (start_header):
	Include text of ignored filesystem prefix in warning.
	(create_archive): Check for excluded names when doing incremental
	pass through directory.
	(dump_file): Do not dump old files explicitly given on command line
	when using --listed-incremental.  Do not strip ./ prefix from names.

	* src/tar.c: -g now implies after_date_option = 1.
	-g and -N are now incompatible options.

	* doc/tar.texi: Explain --exclude better.  Don't strip leading `./'.

1999-08-11  Jeff Dairiki  <dairiki@dairiki.org>

	* src/list.c (read_header): Don't parse OLDGNU_FORMAT
	incremental headers as POSIX prefixes.

1999-08-11  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in: Version 1.13.6.

	* configure.in (ALL_LINGUAS): Add pt_BR.
	* po/pt_BR.po: New file.

	* doc/Makefile.am ($(srcdir)/tar.info, $(srcdir)/header.texi):
	Renamed from tar.info and header.texi; adjust actions so that
	they work in other directories.

	* doc/tar.texi: Add -y and --bzip2.
	Patterns containing / now exclude only file names whose prefix match.

	* lib/exclude.h (excluded_filename): New option parameter.
	(add_exclude_file): New ADD_FUNC parameter.
	(excluded_pathname): Remove decl.
	* lib/exclude.c (_GNU_SOURCE):
	Remove; no longer needed since we don't use FNM_ macros.
	(excluded_filename): Renamed from excluded_filename_opts.
	(excluded_filename, excluded_pathname): Remove.
	(add_exclude_file): New ADD_FUNC parameter.

	* po/POTFILES.in: Add lib/quotearg.c.

	* src/buffer.c (_GNU_SOURCE): Define.
	(<fnmatch.h>): Include unconditionally.
	(child_open_for_compress): Dup after closing, to avoid possible file
	descriptor exhaustion.
	(flush_write): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
	(flush_read): Likewise.

	* src/common.h (LG_8, LG_64): New macros.
	(excluded_with_slash, excluded_without_slash): New vars.
	(excluded): Remove.
	(base_64_digits): New decl.
	(gid_to_chars, major_to_chars, minor_to_chars, mode_to_chars,
	off_to_chars, size_to_chars, time_to_chars, uid_to_chars,
	uintmax_to_chars,
	GID_TO_CHARS, MAJOR_TO_CHARS, MINOR_TO_CHARS, MODE_TO_CHARS,
	OFF_TO_CHARS, SIZE_TO_CHARS, TIME_TO_CHARS, UID_TO_CHARS,
	UINTMAX_TO_CHARS):
	Renamed from gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct,
	off_to_oct, size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
	GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, OFF_TO_OCT,
	SIZE_TO_OCT, TIME_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT,
	respectively.  All definitions and uses changed.
	(excluded_name): New decl.

	* src/compare.c (diff_archive):
	Open files with O_NONBLOCK instead of O_NDELAY.

	* src/create.c (base_64_digits): New constant.
	(base_8_digits): New macro.
	(MAX_VAL_WITH_DIGITS): New macro.
	(to_base): First half of old to_oct.  Support base 64 too.
	(to_chars): Other half of old to_oct, for 64-bit support.
	(GID_NOBODY, UID_NOBODY): Don't define if the headers don't.
	(gid_substitute, uid_substitute): Look up names dynamically if
	GID_NOBODY and UID_NOBODY aren't defined; use -2 if all else fails.
	(mode_to_chars): Renamed from mode_to_oct.
	Support negative values in all the _to_chars functions.
	(start_header): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
	Abort if archive format is DEFAULT_FORMAT when it shouldn't be.
	(dump_file): Inspect entire pathname, not just new file name
	component, when deciding whether to exclude it.

	* src/extract.c (extract_archive):
	Open files with O_NONBLOCK instead of O_NDELAY.

	* src/incremen.c (get_directory_contents):
	Inspect entire pathname, not just new file name
	component, when deciding whether to exclude it.

	* src/list.c (<fnmatch.h>): Do not include.
	(from_chars): Renamed from from_oct.  New parameter specifying
	the negative of the minimum allowed value.  Support negative
	and base-64 values.
	(base64_map): New var.
	(base64_init): New function.
	(print_header): Output numeric uids and gids if numeric_owner_option.

	* src/misc.c (quote_copy_string): Use LG_8 instead of constants.

	* src/names.c (_GNU_SOURCE): Define.
	(<fnmatch.h>): Include unconditionally.
	(excluded_name): New function, taking over duties of excluded_pathname.
	All uses changed.

	* src/rmt.c (decode_oflag): New function.
	(main): Use it to support symbolic open flags.

	* src/rtapelib.c (encode_oflag): New function.
	(rmt_open__): Do not allow newlines in the path.
	Propagate errno correctly.
	Decode symbolic open flags, if present.

	* src/system.h (FILESYSTEM_PREFIX_LEN, ISSLASH, O_ACCMODE, O_NONBLOCK):
	New macros.

	* src/tar.c: (long_options, usage, OPTION_STRING, decode_options):
	New -y or --bzip2 option.
	(add_filtered_exclude): New function.
	(decode_options): Put excluded patterns with / into
	excluded_with_slash, and without / into excluded_without_slash.
	Compare newer_mtime_option to its new initial value
	TYPE_MINIMUM (time_t) when deciding whether more than one
	threshold date was specified.

1999-07-20  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in: Version 1.13.5.

	* src/common.h (FATAL_ERROR): Invoke apply_delayed_set_stat
	before exiting.
	* src/buffer.c (new_volume): Likewise.
	* src/incremen.c (read_directory_file): Likewise.
	* src/tar.c (decode_options):
	ERROR ((TAREXIT_FAILURE, ... -> FATAL_ERROR ((0,
	for consistency.

	* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.4.
	* configure.in (AC_CHECK_FUNCS): Add lstat, readlink, symlink.

	* src/system.h (lstat): Define only if !HAVE_LSTAT && !defined lstat.
	(S_ISMPB, S_ISMPC, S_ISNWK): Remove unused macros.
	(S_ISBLK, S_ISCHR, S_ISCTG, S_ISFIFO, S_ISLNK, S_ISSOCK):
	Define to 0 if the corresponding S_IF* macro is not defined.
	(mkfifo): Do not define if already defined, or if S_IFIFO
	is not defined.

	* src/compare.c (diff_archive): Use HAVE_READLINK, not
	S_ISLNK, to determine whether to invoke readlink.
	* src/create.c (dump_file): Likewise.

	* src/extract.c (set_mode):
	Do not chmod unless we are root or the -p option was given;
	this matches historical practice.
	(unlink_destination): New function, which checks for unlink failures.
	(maybe_recoverable): Stay quiet if -U.
	(extract_archive): Use O_EXCL if unlink_first_option.
	Report unlink failures.
	Use HAVE_SYMLINK, not S_ISLNK, to determine whether symlink exists.
	Use HAVE_MKFIFO || defined mkfifo, not S_ISFIFO, to determine whether
	mkfifo exists.

	* src/incremen.c (get_directory_contents): Depend on
	S_ISHIDDEN, not AIX, to determine whether to invoke S_ISHIDDEN.

	* src/list.c: Remove S_IS* ifdefs.
	* src/misc.c (maybe_backup_file): Likewise.

	* src/misc.c (maybe_backup_file):
	"Virtual memory exhausted" -> "Memory exhausted",
	to conform to the other places this message is issued.

	* src/mangle.c (extract_mangle):
	Replace #ifdef S_ISLNK with #ifdef HAVE_SYMLINK.

	* src/rtapelib.c (rmt_open__):
	Remove typo that caused us to omit the first char
	of the basename.

1999-07-16  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.13.3.

	* doc/tar.texi: A path name is excluded if any of its file name
	components matches an excluded pattern, even if the path name was
	specified on the command line.
	* src/create.c (create_archive): Likewise.
	* src/list.c (read_and): Likewise.
	* src/update.c (update_archive): Likewise.
	* lib/exclude.h (excluded_pathname): New decl.
	* lib/exclude.c (_GNU_SOURCE): Define.
	(FILESYSTEM_PREFIX_LEN, ISSLASH): New macros.
	(excluded_filename_opts): New function.
	(excluded_pathname): New function.

	* lib/Makefile.am (EXTRA_DIST):
	xstrtol.c moved here from libtar_a_SOURCES.
	(libtar_a_SOURCES): Move xstrtol.c to EXTRA_DIST.
	Remove xstrtoul.c; no longer needed.
	* lib/xstrtol.c: Remove.

	* src/tar.c (decode_options):
	Set newer_time_option to TYPE_MINIMUM, so that
	negative timestamps are handled correctly.
	Replace invocations of xstrtol and xstrtoul with xstrtoumax, for
	uniformity (and so that we don't need to have the other fns).
	(main): Remove call to init_total_written; no longer needed.

	* configure.in (AC_CHECK_SIZEOF): Remove no-longer-needed
	checks for unsigned long and long long.
	* src/arith.c: Remove.
	* src/Makefile.am (tar_SOURCES): Remove arith.c.
	* po/POTFILES.in: Remove src/arith.c.
	* src/arith.h: Use double, to simplify configuration gotchas.
	(tarlong): Now double.
	(TARLONG_FORMAT): New macro.
	(BITS_PER_BYTE, BITS_PER_TARLONG, SUPERDIGIT, BITS_PER_SUPERDIGIT,
	LONGS_PER_TARLONG, SIZEOF_TARLONG, struct tarlong,
	zerop_tarlong_helper, lessp_tarlong_helper, clear_tarlong_helper,
	add_to_tarlong_helper, mult_tarlong_helper, print_tarlong_helper,
	zerop_tarlong, lessp_tarlong, clear_tarlong, add_to_tarlong,
	mult_tarlong, print_tarlong): Remove.  All callers replaced with
	arithmetic ops.

	* src/common.h (init_total_written): Remove decl.

	* src/buffer.c (total_written):
	Remove; replaced with prev_written + bytes_written.
	(prev_written): New var.
	(init_total_written): Remove.
	(print_total_written): Use TARLONG_FORMAT instead of print_tarlong.

	* m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG):
	Make sure that we can shift, multiply
	and divide unsigned long long values; Ultrix cc can't do it.

	* lib/modechange.c (mode_compile): Use uintmax_t, not unsigned long.
	Check for any unknown bits, not just unknown bits left of the leftmost
	known bit.

	* lib/quotearg.c (quotearg_buffer):
	Don't quote spaces if C quoting style.
	* src/list.c (from_oct):
	Use C quoting style for error; omit trailing NULs.

1999-07-14  Paul Eggert  <eggert@twinsun.com>

	* configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.2.

	* m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
	<inttypes.h> defines strtoumax as a macro (and not as a function).
	HP-UX 10.20 does this.

	* src/tar.c (usage): tar-bugs@gnu.org -> bug-tar@gnu.org
	* PORTS, README, TODO, doc/tar.texi: Likewise.

1999-07-12  Paul Eggert  <eggert@twinsun.com>

	* configure.in (AM_INIT_AUTOMAKE): Version 1.13.1.
	(LIBOBJS): Add mktime.o to automake 1.4 bug workaround.

	* src/list.c (decode_header):
	Do not assume that S_IFBLK and S_IFCHR are defined.

	* src/create.c (start_header): Do not assume S_IFMT is defined.
	(dump_file): Remove unnecessary check for screwy apollo lossage.
	Do not assume S_IFBLK and S_IFCHR are defined.

	* src/extract.c (extract_archive):
	Test whether S_IFCHR and S_IFBLK are nonzero,
	not whether they are defined, for consistency with other tests.

	* src/buffer.c (is_regular_file):
	Don't succeed on files that we can't access due to
	permissions problems.
	(open_archive): Fix wording on fatal error message.
	Don't bother to stat /dev/null if the archive is not a character
	special device.

	* src/compare.c (process_rawdata, diff_sparse_files, diff_archive):
	Report an error, not a warning, for I/O errors.
	(process_rawdata, process_dumpdir, diff_sparse_files):
	Change ungrammatical "Data differs" to "Contents differ".
	(get_stat_data): Find hidden files on AIX.
	Accept file name as argument; all uses changed.
	(get_stat_data, diff_archive): Use system error message for
	nonexistent files rather than rolling our own.
	(diff_archive): Unknown file types are errors, not warnings.
	Normalize spelling of message to "File type differs".
	Use get_stat_data to get link status, for consistency.
	Do not inspect st_rdev for fifos.
	Do not assume st_mode values contain only file types and mode bits.
	Check for mode changes and device number changes separately.

	* src/update.c (append_file):
	Open the file before statting it, to avoid a race.
	Complain about file shrinkage only when we reach EOF.

1999-07-08  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13 released.

	* configure.in (AC_EXEEXT): Add.

	* lib/Makefile.am (noinst_HEADERS):
	Add basename.h, exclude.h.  Remove full-write.h.
	(libtar_a_SOURCES): Add exclude.c.

	* lib/basename.h, lib/exclude.c, lib/exclude.h, lib/safe-read.h:
	New files.
	* lib/full-write.c: Include safe-read.h instead of full-write.h.
	* lib/safe-read.h (safe_read): New decl.
	* src/rmt.c: Include safe-read.h.
	* src/rtapelib.c: Include basename.h, save-read.h.
	(rmt_open__): Use base_name to compute base name.

	* src/common.h:
	Include basename.h, exclude.h; don't include full-write.h.
	(exclude_option): Remove decl.
	(excluded): New decl.
	(add_exclude, add_exclude_file, check_exclude): Remove decls.

	* src/list.c (read_and):
	Use excluded_filename instead of check_exclude.
	Check base name of incoming file name, not entire file name, when
	deciding whether to exclude it.

	* src/create.c (finish_sparse_file):
	Use excluded_filename instead of check_exclude.
	Don't bother to stat excluded file names.
	* src/incremen.c (get_directory_contents): Likewise.

	* src/names.c (exclude_pool, exclude_pool_size,
	allocated_exclude_pool_size, simple_exclude_array,
	simple_excludes, allocated_simple_excludes,
	pattern_exclude_array, pattern_excludes,
	allocated_pattern_excludes, add_exclude, add_exclude_file,
	check_exclude):
	Remove; now done in ../lib/exclude.c.

	* src/tar.c (decode_options): Initialize `excluded'.
	Use new add_exclude_file and add_exclude functions.

1999-07-05  Paul Eggert  <eggert@twinsun.com>

	* m4/gettext.m4: Use changequote rather than [[ ]].

	* lib/safe-read.c: Renamed from lib/full-read.c.
	(safe_read): Renamed from full_read.  All uses changed.
	* lib/safe-read.h, lib/full-write.h: New files.
	* lib/Makefile.am (noinst_HEADERS): Add full-write.h, safe-read.h.
	(libtar_a_SOURCES): Rename full-read.c to safe-read.c.
	* lib/full-write.c: Include full-write.h.
	* src/common.h: Include full-write.h, safe-read.h.
	* src/system.h: (full_read, full_write): Remove decls.

	* src/Makefile.am (datadir): New var; needed for Solaris gettext.

	* src/system.h (bindtextdomain, textdomain): undef before
	defining, to avoid preprocessor warnings with --disable-nls
	on hosts whose locale.h includes libintl.h.

	* lib/xstrtol.c (__strtol): Remove decl; it doesn't work if __strtol
	expands to a macro, which occurs in HP-UX 10.20 with strtoumax.
	(strtol, strtoul): New decls (for pre-ANSI hosts), to replace
	the above decl.

1999-07-02  Paul Eggert  <eggert@twinsun.com>

	* Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/mktime.m4.
	* m4/mktime.m4: New file.
	* m4/Makefile.am.in, m4/README: Remove these files.
	* m4/Makefile.am (EXTRA_DIST): Add mktime.m4;
	remove README, Makefile.am.in.
	(Makefile.am): Remove rule; it didn't work in BSD/OS 4.0.
	* m4/jm-mktime.m4 (jm_FUNC_MKTIME): Invoke AC_FUNC_MKTIME,
	not AM_FUNC_MKTIME.

	* src/tar.c: Include signal.h.
	(SIGCHLD): Define to SIGCLD if SIGCLD is defined but SIGCHLD is not.
	(main): Ensure SIGCHLD is not ignored.

	(BACKUP_OPTION, DELETE_OPTION, EXCLUDE_OPTION, GROUP_OPTION,
	MODE_OPTION, NEWER_MTIME_OPTION, NO_RECURSE_OPTION, NULL_OPTION,
	OWNER_OPTION, POSIX_OPTION, PRESERVE_OPTION, RECORD_SIZE_OPTION,
	RSH_COMMAND_OPTION, SUFFIX_OPTION, USE_COMPRESS_PROGRAM_OPTION,
	VOLNO_FILE_OPTION, OBSOLETE_ABSOLUTE_NAMES,
	OBSOLETE_BLOCK_COMPRESS, OBSOLETE_BLOCKING_FACTOR,
	OBSOLETE_BLOCK_NUMBER, OBSOLETE_READ_FULL_RECORDS, OBSOLETE_TOUCH,
	OBSOLETE_VERSION_CONTROL): Make sure they can't be valid chars, so
	they don't overlap with char codes.  Use an enum instead of a lot
	of #defines.

	* src/system.h (ISASCII): Remove.
	(CTYPE_DOMAIN, ISDIGIT, ISODIGIT, ISPRINT, ISSPACE, S_ISUID,
	S_ISGID, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP,
	S_IROTH, S_IWOTH, S_IXOTH, MODE_WXUSR, MODE_R, MODE_RW,
	MODE_RWX, MODE_ALL, SEEK_SET, SEEK_CUR, SEEK_END, CHAR_MAX,
	LONG_MAX): New macros.

	* src/incremen.c (ISDIGIT, ISSPACE): Remove; now in system.h.
	(read_directory_file): Cast ISSPACE arg to unsigned char.
	* src/misc.c (ISPRINT): Remove; now in system.h.
	(remove_any_file): Add brackets to pacify gcc -Wall.
	* src/list.c: Don't include <ctype.h>; system.h already does this.
	(ISODIGIT, ISSPACE): Remove; now in system.h.
	(decode_header): No need to AND mode with 07777; MODE_FROM_OCT
	does this now.
	(from_oct): Cast ISSPACE arg to unsigned char.

	* src/create.c (mode_to_oct): Translate modes from internal to
	external form.
	* src/list.c (mode_from_oct): Translate modes from external to
	internal form.  Do not complain about unrecognized mode bits.
	* src/common.h (TSUID, TSGID, TSVTX, TUREAD, TUWRITE, TUEXEC,
	TGREAD, TGWRITE, TGEXEC, TOREAD, TOWRITE, TOEXEC): Remove undefs.

	* src/extract.c: (extr_init, make_directories, extract_archive):
	Do not assume mode bits have traditional Unix values.
	* src/list.c (decode_mode): Likewise.
	* src/create.c (start_header, dump_file): Likewise.
	* src/buffer.c (child_open_for_compress,
	child_open_for_uncompress, open_archive, (close_archive): Likewise.
	* src/compare.c (diff_archive): Likewise.

	* src/extract.c (set_mode): Use %04 not %0.4 format.
	(extract_sparse_file): Do not use data_block uninitialized.
	Check for lseek failures.

	* src/rtapelib.c (rmt_lseek__):
	Convert lseek whence values to portable integers on the wire.
	* src/rmt.c (main): Likewise.  Check for whence values out of range.

	* src/create.c (finish_sparse_file): Use lseek whence macros
	instead of integers.
	* src/buffer.c (backspace_output): Likewise.
	* src/compare.c (diff_archive, verify_volume): Likewise.
	* src/delete.c (move_archive): Likewise.
	* src/extract.c (extract_sparse_file): Likewise.

	* src/create.c (dump_file): Do not invoke finish_sparse_file
	on a negative file descriptor.

	* src/buffer.c: Add braces to pacify gcc -Wall.

	* src/compare.c (diff_sparse_files): Report lseek errors.

	* configure.in (ALL_LINGUAS): Add cs, es, ru.

	* PORTS, TODO: gnu.ai.mit.edu -> gnu.org

	* src/arith.c, src/buffer.c (new_volume): Don't put ^G in
	message to be internationalized; \a doesn't work with msgfmt.

	* src/tar.c (long_options, main, usage, OPTION_STRING):
	Remove -E or --ending-file.
	* src/list.c (read_and): Likewise.
	* src/common.h (ending_file_option): Likewise.
	* src/buffer.c (close_archive): Likewise.

	* tests/after: Don't run two commands together in a pipeline,
	as some old shells mishandle pipeline exit status.

1999-06-28  Paul Eggert  <eggert@twinsun.com>

	* configure.in (AM_INIT_AUTOMAKE): version 1.12.64015.
	* NEWS: Describe changes since 1.12.
	* README: Update bug reporting address; move paxutils ref to NEWS.

	Handle EINTR correctly.
	* lib/Makefile.am (libtar_a_SOURCES): Add full-read.c, full-write.c.
	* lib/full-read.c, lib/full-write.c: New files.
	* src/buffer.c (child_open_for_compress, child_open_for_uncompress):
	Prefer full_read to read and full_write to write.
	* src/compare.c (process_rawdata, diff_sparse_files): Likewise.
	* src/create.c (deal_with_sparse, finish_sparse_file, dump_file):
	Likewise.
	* src/extract.c (extract_sparse_file): Likewise.
	* src/rmt.c (get_string, main, report_error_message,
	report_numbered_error): Likewise.
	* src/rmt.h (rmtread, rmtwrite): Likewise.
	* src/rtapelib.c (do_command, get_status_string, rmt_read__,
	rmt_write__, rmt_ioctl__): Likewise.
	* src/update.c (append_file): Likewise.
	* src/system.h (full_read, full_write): New decls.

	* po/POTFILES.in: Add lib/argmatch.c, lib/error.c lib/getopt.c,
	lib/xmalloc.c, src/arith.c, src/misc.c.

	* src/system.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
	New macros.  All uses of STDIN and STDOUT changed.
	* src/rmt.c (prepare_record_buffer, main): Use STDIN_FILENO
	instead of 0 and STDOUT_FILENO instead of 1.
	* src/rtapelib.c (_rmt_rexec): Use STDIN_FILENO and STDOUT_FILENO
	instead of fileno (stdin) and fileno (stdout) or 0 and 1.

	* src/rmt.c (private_strerror): Avoid const.  Translate results.

	* tests/Makefile.am (TESTS): Remove incremen.sh; it doesn't work
	in the presence of NFS clock skew.

1999-06-25  Paul Eggert  <eggert@twinsun.com>

	* configure.in (AM_INIT_AUTOMAKE): version 1.12.64014.

	* src/buffer.c (write_archive_buffer): New function.
	(child_open_for_compress, flush_write, flush_read): Use it to write
	buffers.
	(open_archive): Report error if fstat of archive fails.
	Improve efficiency of check for /dev/null.
	Also, fix some corner cases with remote archives and /dev/null checking.
	(close_archive): Test for input fifo only if not remote.
	Truncate output archive only if it's not remote.

	* src/misc.c (remove_any_file):
	Don't terminate if you see . or ..; just skip them.

1999-06-18  Paul Eggert  <eggert@twinsun.com>

	* configure.in (AM_INIT_AUTOMAKE): version 1.12.64013.

	Output sizes using a format that's more compatible with
	traditional tar (and with GNU Emacs).
	* src/common.h (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT,
	MODE_TO_OCT, SIZE_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT):
	Don't subtract 1 from size.
	* src/create.c (to_oct): Prepend leading zeros, not spaces.
	Output a trailing NUL unless the value won't fit without it.
	(finish_header): No need to append NUL to chksum, now that
	to_oct is doing it.

1999-06-16  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64012.

	* src/Makefile.am (LDADD): Link libtar.a after @INTLLIBS@, since
	@INTLLIBS@ might invoke rpl_realloc.

	* src/tar.c (backup_type): Remove decl; backupfile.h now has it.
	(intconv): Remove; use xstrto* fns instead.
	("xstrtol.h"): Include.
	(check_decimal): Remove.
	(long_options, usage, OPTION_STRING, decode_options):
	Remove -y, --bzip2, --unbzip2.
	(decode_options): Use xget_version instead of get_version.
	Check for overflow with -b and -L and RECORD_SIZE_OPTION.
	Replace invocations of check_decimal  with xstrtoumax.

	* tests/preset.in (echo_n, echo_c): Remove.

	* tests/after: Don't rely on $echo_c and $echo_n.

	* lib/addext.c, lib/dirname.c, lib/lchown.c, lib/lchown.h,
	lib/malloc.c, lib/mktime.c, lib/realloc.c, lib/strtol.c, lib/strtoul.c,
	lib/strtoull.c, lib/strtoumax.c, lib/utime.c, lib/xstrtol.c,
	lib/xstrtol.h, lib/xstrtoul.c, lib/xstrtoumax.c,
	m4/Makefile.am.in, m4/README, m4/ccstdc.m4, m4/d-ino.m4,
	m4/gettext.m4, m4/inttypes_h.m4, m4/isc-posix.m4,
	m4/jm-mktime.m4, m4/largefile.m4, m4/lcmessage.m4,
	m4/malloc.m4, m4/progtest.m4, m4/realloc.m4, m4/uintmax_t.m4,
	m4/ulonglong.m4, m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4,
	m4/xstrtoumax.m4: New files.

	* configure.in(fp_PROG_ECHO): Remove; no longer needed.
	(AC_SYS_LARGEFILE): Renamed from AC_LFS.
	(jm_AC_HEADER_INTTYPES_H): Replaces inline code.
	(jm_STRUCT_DIRENT_D_INO, jm_AC_TYPE_UINTMAX_T, jm_AC_PREREQ_XSTRTOUMAX): Add.
	(AC_CHECK_FUNCS): Remove lchown.
	(AC_REPLACE_FUNCS): Remove basename, dirname.
	Add lchown, strtol, strtoul.
	(jm_FUNC_MKTIME): Add.
	(LIBOBJS): Replace .o with $U.o, so that the .o files in LIBOBJS
	are also built via the ANSI2KNR-filtering rules.
	Use a no-op line to work around bug in automake 1.4 with malloc and
	realloc.
	(AC_OUTPUT): Add m4/Makefile.

	* lib/Makefile.am (EXTRA_DIST):
	Add lchown.c, malloc.c, mktime.c, realloc.c,
	strtol.c, strtoul.c, strtoull.c, strtoumax.c, utime.c.
	(noinst_HEADERS): Add lchown.h, modechange.h, xstrtol.h.
	(libtar_a_SOURCES): Add addext.c, basename.c, xstrtol.c,
	xstrtoul.c, xstrtoumax.c.  Remove getversion.c.
	($(srcdir)/getdate.c:): Remove `expect conflicts' line.

	* src/system.h (uintmax_t): Don't declare; configure now does this.

	* src/common.h (backup_type): New decl.
	* src/common.h, src/misc.c, src/tar.c:
	Move include of backupfile.h to common.h.

	* src/misc.c (maybe_backup_file):
	Pass backup_type to find_backup_file_name.

	* src/list.c (print_header): Change sizes of uform and gform from 11 to
	UINTMAX_STRSIZE_BOUND.

	* doc/tar.texi: Remove --bzip2.
	Fix @xref typos reported by latest makeinfo.

	* Makefile.am (ACLOCAL_AMFLAGS): New macro.
	(SUBDIRS): Add m4.
	(M4DIR, ACINCLUDE_INPUTS): New macros.
	($(srcdir)/acinclude.m4): New rule.

	* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
	HAVE_INTTYPES_H, HAVE_LC_MESSAGES, HAVE_STPCPY): Remve #undefs;
	now generated automatically by autoconf.

1999-05-15  Paul Eggert  <eggert@twinsun.com>

	* doc/tar.texi: Remove -y.

1999-04-09  Paul Eggert  <eggert@twinsun.com>

	* src/system.h (INT_STRLEN_BOUND): Fix off-by-factor-of-10 typo
	(we were allocating too much storage).
	(uintmax_t): Don't declare; configure now does this.

	* ABOUT-NLS: Update to gettext 0.10.35 edition.

1999-03-22  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64010

	* acinclude.m4 (AC_LFS_FLAGS):
	Don't use -mabi=n32 with GCC on IRIX 6.2; it's the default.
	(AC_LFS): -n32, -o32, and -n64 are CPPFLAGS, not CFLAGS.
	(jm_FUNC_MALLOC, jm_FUNC_REALLOC): New macros.

	* configure.in (jm_FUNC_MALLOC, jm_FUNC_REALLOC):
	New macros; needed for latest GNU xmalloc.c.

	* Makefile.am (noinst_HEADERS): Add quotearg.h, xalloc.h.
	(libtar_a_SOURCES): Add quotearg.c.
	* list.c: Include <quotearg.h>.
	(from_oct): Add forward decl.
	(read_header): Return HEADER_FAILURE if we can't parse the checksum.
	(from_oct): Report an error only if TYPE is nonzero.
	Quote any funny characters in bad header.

1999-03-20  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64009

	* acinclude.m4 (AC_LFS_FLAGS): Add support for IRIX 6.2 and later.
	(AC_LFS_SPACE_APPEND): Assume $2 is quoted properly; all callers
	changed.
	(AC_LFS): Simplify AIX revision number test.

1999-03-17  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64008

	* configure.in (AC_VALIDATE_CACHED_SYSTEM_TUPLE):
	Remove; it doesn't work that well
	with AC_CANONICAL_HOST.
	(fp_WITH_INCLUDED_MALLOC): Remove; we'll just use the system malloc.

	* Makefile.am (EXTRA_DIST): Remove AC-PATCHES, AM-PATCHES, BI-PATCHES.

	* Makefile.am (EXTRA_DIST): Remove gmalloc.c.

	* acinclude.m4 (fp_WITH_INCLUDED_MALLOC): Remove.

	* tar.texi: Fix bug-report addr.

	* README: Remove --with-included-malloc.
	Upgrade version numbers of build software.

1999-03-07  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64007.

	* acinclude.m4 (AM_WITH_NLS): Port to Solaris 2.5.1,
	where bindtextdomain and gettext require -lintl.
	(AC_LFS_FLAGS): Simplify so that it only gets the flags;
	`no' means it failed.
	(AC_LFS_SPACE_APPEND, AC_LFS_MACRO_VALUE): New macros.
	(AC_LFS): Use them.  Set _FILE_OFFSET_BITS, _LARGEFILE_SOURCE, and
	_LARGE_FILES from LFS_CFLAGS, so that in the normal case we don't need
	to add anything to the command line (it's all in config.h).
	Put any extra -D and -I options into CPPFLAGS, the rest into CFLAGS.

1999-03-01  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64006.

	* acinclude.m4 (AC_LFS_FLAGS): Port to AIX 4.2.

	* src/list.c: (gid_from_oct, major_from_oct, minor_from_oct,
	mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
	uid_from_oct, uintmax_from_oct): Use TYPE_MAXIMUM instead of macros
	like OFF_MAX, which are not reliable
	(e.g. OFF_MAX in AIX 4.2 is incorrect).
	* src/system.h (GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX, OFF_MAX,
	SIZE_MAX, TIME_MAX,UID_MAX, UINTMAX_MAX):  Remove; no longer used.

	* src/incremen.c (get_directory_contents):
	Don't use statx if _LARGE_FILES; it doesn't work under AIX 4.2.
	Have statx depend on STX_HIDDEN, not AIX.

	* src/create.c (to_oct):
	New parameter substitute, giving a substitute value to use
	when the original value is out of range.  Do not append a space to the
	output; modern tars don't.  When a value is out of range, specify the
	maximum value, not the number of bits.
	(GID_NOBODY, UID_NOBODY): New macros.
	(gid_to_oct, uid_to_oct): Use them as substitutes.
	(finish_header): Do not assume that UINTMAX_TO_OCT appends a space.
	(dump_file): Check whether the file changed as we read it.

	* src/rmt.c (main): Remove suspicious AIX/386 code.

1999-02-19  Paul Eggert  <eggert@twinsun.com>

	* intl/localealias.c (read_alias_file): Don't assume that memcpy
	returns a type compatible with char *; it doesn't on SunOS
	4.1.4 with Sun cc, since <string.h> doesn't declare memcpy.

	* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64005.

	* src/tar.c (long_options, usage): Prefer --unbzip2 to --bunzip2.
	* doc/tar.texi: Add --bzip2, --unbzip2 options.

	* configure.in (AC_CANONICAL_HOST, AC_VALIDATE_CACHED_SYSTEM_TUPLE):
	Add.
	(AC_LINK_FILES): Omit; AM_GNU_GETTEXT now does this.
	(AC_OUTPUT): Omit munging of po/Makefile; AM_GNU_GETTEXT now does this.
	* acinclude.m4 (AM_WITH_NLS):
	Update to latest gettext version (serial 5).
	(AC_LFS_FLAGS): New macro
	(AC_LFS): Use it.  Append to CFLAGS, LDFLAGS, LDLIBS instead of
	working only with unset variables.  Append to CFLAGS, not CPPFLAGS.
	Work properly in cross-compilation scenario, by checking for getconf
	with AC_CHECK_TOOL and by ditching uname in favor of
	AC_CANONICAL_HOST and $host_os.  Add --disable-lfs option.

	* lib/getdate.y: Update to fileutils 4.0 getdate.y, with one patch:
	replace FORCE_ALLOCA_H with HAVE_ALLOCA_H.
	* lib/Makefile.am (AUTOMAKE_OPTIONS): Append ../src/ansi2knr,
	since getdate.y now uses ANSI code.

	* config.guess, config.sub: New files; taken from automake 1.4.

	* intl/Makefile.in, intl/VERSION, intl/bindtextdom.c,
	intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c,
	intl/explodename.c, intl/finddomain.c, intl/gettext.c,
	intl/gettext.h, intl/gettextP.h, intl/hash-string.h,
	intl/l10nflist.c, intl/libgettext.h, intl/loadinfo.h,
	intl/loadmsgcat.c, intl/localealias.c, intl/textdomain.c:
	Update to GNU gettext 0.10.35, with patches as per GCC snapshot 990109.

1999-02-01  Paul Eggert  <eggert@twinsun.com>

	* src/tar.c: Update copyright.

	* NEWS: 1.12.64004

1999-02-01  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in: Version 1.12.64004

	* configure.in (AC_LFS): Use this macro, instead of open-coding it.

	* acinclude.m4 (AC_LFS, AM_PROG_CC_STDC): New macros.

	* src/extract.c (extract_archive): Fix bug when extracting sparse
	files: they were trashing the tar file header.

	* src/tar.c: (long_options, usage, OPTION_STRING, decode_options):
	Add -y or --bzip2 or --bunzip2 option.

1999-01-30  Paul Eggert  <eggert@twinsun.com>

	* src/names.c (cached_no_such_uname, cached_no_such_gname,
	cached_no_such_uid, cached_no_such_gid): New vars.
	(uid_to_uname, gid_to_gname, uname_to_uid, gname_to_gid):
	Cache failures, too.

	* src/tar.c (decode_options):
	Don't pass names longer than UNAME_FIELD_SIZE to
	uname_to_uid, as it messes up the cache.  Similarly for gname_to_uid.

1999-01-27  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in: Version 1.12.64003

	* src/buffer.c (backspace_output, close_archive):  Cast
	rmtlseek position arg to off_t, for benefit of K&R compilers
	with long long.
	* src/compare.c (verify_volume): Likewise.

	* NEWS, configure.in: Version 1.12.64002

	* src/create.c (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct,
	off_to_oct, size_to_oct, time_to_oct, uid_to_oct):
	Cast arg to uintmax_t for benefit of pre-ANSI compilers with long long.
	* src/list.c: (gid_from_oct, major_from_oct, minor_from_oct,
	mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
	uid_from_oct): Likewise.

1999-01-25  Paul Eggert  <eggert@twinsun.com>

	* incremen.sh: Fix timing bug in regression test.

1999-01-22  Paul Eggert  <eggert@twinsun.com>

	* NEWS, configure.in: Update version

	* Makefile.am (localedir): Change to $(datadir)/locale.
	(DEFS): New macro, defining LOCALEDIR.
	(tar.o, tar._o, rmt.o, rmt._o): Remove.
	(INCLUDES): Add -I..

	* Makefile.am (localedir): Change to $(datadir)/locale.

1999-01-21  Paul Eggert  <eggert@twinsun.com>

	* NEWS, README, configure.in: Unofficial version 1.12.64001.

	* tests/Makefile.am (localedir): Change to $(datadir)/locale.
	* src/Makefile.am (localedir): Likewise.
	(DEFS): New macro, defining LOCALEDIR.
	(tar.o, tar._o, rmt.o, rmt._o): Remove.
	(INCLUDES): Add `-I..'.

	* tests/incremen.sh: Fix timing bug.

1999-01-20  Paul Eggert  <eggert@twinsun.com>

	* NEWS, README, configure.in: Unofficial version 1.12.64000.
	`lfs.7' changed to `64000' in version number
	to conform to gnits standards.

	* COPYING, INSTALL, doc/texinfo.tex, install-sh, missing,
	mkinstalldirs, ansi2knr.c: Update to latest public versions.

	Rebuild with automake 1.4 and autoconf 2.13, to work around some
	porting problems.

1998-12-07  Paul Eggert  <eggert@twinsun.com>

	* NEWS, README, configure.in: Unofficial version 1.12.lfs.6.

	* src/list.c (read_header):
	Accept file names as specified by POSIX.1-1996 section 10.1.1.

1998-11-30  Paul Eggert  <eggert@twinsun.com>

	* configure.in: Quote the output of uname.

	* src/extract.c (set_stat): chmod after chown even when not root;
	if we are using --same-owner this is needed e.g. on Solaris 2.5.1.

1998-11-15  Paul Eggert  <eggert@twinsun.com>

	* NEWS, README, configure.in: Unofficial version 1.12.lfs.5.

	* configure.in (ac_test_CPPFLAGS, ac_test_LDFLAGS, ac_test_LIBS,
	ac_getconfs, ac_result): Special case for HP-UX 10.20 or later.

1998-10-28  Paul Eggert  <eggert@twinsun.com>

	* NEWS, README, configure.in: Unofficial version 1.12.lfs.4.

	* src/system.h (voidstar): Use void * if __STDC__ is defined,
	not merely nonzero.

	* src/rtapelib.c: Don't use rexec code unless compiled with WITH_REXEC.
	On many installations, rexec is disabled.

1998-08-07  Paul Eggert  <eggert@twinsun.com>

	* NEWS, README, configure.in: Unofficial version 1.12.lfs.3.

	* src/names.c (uid_to_uname, gid_to_gname): Don't used cached name
	for nameless users and groups.

1998-02-17  Paul Eggert  <eggert@twinsun.com>

	* NEWS, README, configure.in: Unofficial version 1.12.lfs.2.
	* NEWS, README: Add explanation of why this isn't an official version.

1998-02-02  Paul Eggert  <eggert@twinsun.com>

	* NEWS, README, configure.in: Unofficial version 1.12.lfs.1.
	This is an unofficial version.

1997-12-17  Paul Eggert  <eggert@twinsun.com>

	* src/incremen.c (ST_DEV_MSB): New macro.
	(NFS_FILE_STAT): Use most significant bit of st_dev,
	even if it's unsigned.

1997-12-08  Paul Eggert  <eggert@twinsun.com>

	* src/system.h (ST_NBLOCKS): Fix typo in definition.

1997-11-19  Paul Eggert  <eggert@twinsun.com>

	* configure.in (HAVE_INTTYPES_H):
	Don't ignore cache variable if it's already set.

1997-11-10  Paul Eggert  <eggert@twinsun.com>

	* src/rmt.c (main): Don't assume mt_count is of type daddr_t.
	* src/delete.c (records_read): Now off_t.
	(move_archive): Don't assume mt_count is of type daddr_t.

1997-10-30  Paul Eggert  <eggert@twinsun.com>

	* configure.in (CPPFLAGS, LDFLAGS, LIBS):
	Set to appropriate values if large file support
	needs explicit enabling.
	(HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING, daddr_t, major_t, minor_t,
	ssize_t):
	New macros to configure.
	(AC_TYPE_MODE_T, AC_TYPE_PID_T, AC_TYPE_OFF_T): Add.

	* acconfig.h (daddr_t, HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING,
	major_t, minor_t, ssize_t): New macros.

	* src/arith.h (TARLONG_FORMAT):
	Fix typo: %uld -> %lu.  Use unsigned when long long
	(%lld -> %llu).
	(add_to_tarlong_helper, mult_tarlong_helper): 2nd arg is now unsigned long.
	(add_to_tarlong, mult_tarlong): Cast 2nd arg to unsigned long.

	* src/arith.c (add_to_tarlong_helper, mult_tarlong_helper):
	2nd arg is now unsigned long.

	* src/rmt.c (allocated_size): Now size_t, and now initialized to 0.
	(prepare_record_buffer): Arg is now size_t.
	Remove now-useless casts.

	(main): Use `long' for status, so that it can store ssize_t.
	Use daddr_t, mode_t, size_t, off_t when appropriate.
	Convert daddr_t and off_t values ourselves, since they might be longer
	than long.  Convert other types using `long' primitives.
	When processing MTIOCTOP, do not try to pass resulting
	count back, since it won't work (it could be too large) and it's
	not expected anyway.

	* src/update.c:
	(append_file) Use off_t, size_t, ssize_t when appropriate.  Remove
	now-useless casts.  Use unsigned long to print *_t types, except use
	STRINGIFY_BIGINT for off_t.
	(update_archive): Cast -1 to dev_t when necessary.

	* src/tar.c (check_decimal):
	Now returns 1 if successful, 0 otherwise, and returns
	uintmax_t value into new arg.  Check for arithmetic overflow.
	(decode_options): Avoid overflow if record_size fits in size_t but not int.
	Check for overflow on user or group ids.

	* src/compare.c (diff_init, process_rawdata, read_and_process,
	diff_sparse_files, diff_archive):
	Use off_t, pid_t, size_t, ssize_t when appropriate.
	Remove now-useless casts.  Use unsigned long to print *_t types,
	except use STRINGIFY_BIGINT for off_t.

	(process_noop, process_rawdata, process_dumpdir, read_and_process):
	Size arg is now size_t.

	(diff_sparse_files): Arg is now off_t.  Check for size_t overflow
	when allocating buffer.

	* src/rtapelib.c:
	(do_command, rmt_open__, rmt_read__, rmt_lseek__, rmt_ioctl__):
	Use pid_t, size_t, ssize_t when appropriate.  Remove now-useless casts.
	Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for
	off_t.

	(get_status_string, get_status_off): New function.
	(get_status): Now returns long, so that it can store ssize_t.
	Invoke get_status_string to do the real work.
	(rmt_read__, rmt_write__): Now returns ssize_t. Size arg is now size_t.
	(rmt_lseek__): Now returns off_t, using new get_status_off function.
	(rmt_ioctl__): Convert mt_count by hand,
	since it might be longer than long.

	* src/mangle.c (extract_mangle):
	Check for overflow when converting off_t to size_t.
	Use off_t, size_t when appropriate.  Remove now-useless casts.

	* src/system.h (mode_t): Remove; now done by autoconf.
	(ST_NBLOCKS): Do not overflow if st_size is near maximum.
	Return number of ST_NBLOCKSIZE-byte blocks,
	not number of 512-byte blocks;
	this also helps to avoid overflow.
	(st_blocks): Declare if needed.
	(ST_NBLOCKSIZE): New macro.
	(<limits.h>, <inttypes.h>): Include if available.
	(CHAR_BIT): New macro.
	(uintmax_t): New typedef.
	(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND,
	UINTMAX_STRSIZE_BOUND, GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX,
	OFF_MAX, SIZE_MAX, TIME_MAX, UID_MAX, UINTMAX_MAX): New macros.

	* src/names.c (name_init):
	Fix typo in error message: FILE* was passed, but char*
	was wanted.

	(read_name_from_file, name_gather, addname, name_match, name_scan,
	add_exclude): Use size_t when appropriate.  Remove now-useless casts.

	(exclude_pool_size, allocated_exclude_pool_size): Now size_t.

	* src/extract.c (newdir_umask, current_umask): Now mode_t.
	(extract_sparse_file): Args now use off_t.

	(set_mode, set_stat, make_directories, extract_sparse_file,
	extract_archive): Use off_t, size_t, ssize_t when appropriate.  Remove
	now-useless casts.  Use unsigned long to print *_t types, except use
	STRINGIFY_BIGINT for off_t.

	* src/misc.c (quote_copy_string):
	Use size_t when appropriate.  Remove now-useless casts.

	* src/list.c (read_and, list_archive, read_header, decode_mode,
	print_header, print_for_mkdir):
	Use mode_t, off_t, size_t when appropriate.  Remove
	now-useless casts.  Use unsigned long to print *_t types, except use
	STRINGIFY_BIGINT for off_t.

	(read_header): Check for overflow when converting header size.

	(from_oct): Now static.  Now returns uintmax_t.  `where' arg is now
	const char *.  Size arg is now size_t.  Now takes new type and maxval
	args.  Compute result using uintmax_t, not long.  Report error if
	field does not contain octal number in range.
	(gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct,
	off_from_oct, size_from_oct, time_from_oct, uid_from_oct,
	uintmax_from_oct): New functions.

	(stringify_uintmax_t_backwards): New function.

	(decode_mode, print_for_mkdir): Mode arg is now mode_t.
	(skip_file): Offset arg is now off_t.

	* src/buffer.c (record_start_block, save_totsize, save_sizeleft,
	real_s_totsize, real_s_sizeleft, current_block_ordinal):
	Now off_t.
	(write_error): Arg is now ssize_t.
	(child_pid): Now pid_t.
	(available_space_after): Now size_t.

	(child_open_for_compress, child_open_for_uncompress, flush_write,
	open_archive, flush_write, write_error, flush_read, close_archive):
	Use pid_t, ssize_t, size_t when appropriate.  Remove now-useless
	casts.  Use unsigned long to print *_t types, except use
	STRINGIFY_BIGINT for off_t.

	* src/delete.c (records_read): Now daddr_t.
	(move_archive): Arg is now daddr_t.  Check for overflow when
	computing offset.
	(move_archive, delete_archive_members): Use daddr_t, off_t when
	appropriate.  Remove now-useless casts.

	* src/rmt.h (rmt_read__, rmt_write__): Now returns ssize_t.
	(rmt_lseek): Now returns off_t.

	* src/create.c (to_oct):
	Now static.  Value arg is now uintmax_t.  Accept new args
	giving name of type of octal field, for error messages.  Report an
	error if the value is too large to fit in the field.
	(gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
	size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct): New functions.

	(write_eot, write_long, finish_header, deal_with_sparse,
	finish_sparse_file, dump_file): Use dev_t, off_t, ssize_t, size_t when
	appropriate.  Remove now-useless casts.  Use unsigned long to print
	*_t types, except use STRINGIFY_BIGINT for off_t.

	(find_new_file_size): 1st arg is now off_t*.
	(finish_sparse_file): Args now use off_t, not long.
	Check for lseek error.
	(create_archive, dump_file): Cast -1 to dev_t when necessary.
	(dump_file): Device arg is now dev_t.
	Avoid overflow when testing whether file has holes
	by using the new ST_NBLOCKSIZE macro.

	* src/incremen.c (struct accumulator, add_to_accumulator,
	get_directory_contents, add_hierarchy_to_namelist, gnu_restore):
	Use size_t for sizes.
	(struct directory, get_directory_contents, add_hierarchy_to_namelist):
	Use dev_t, ino_t for devices and inodes.
	(gnu_restore): Use off_t for file offsets.
	(struct directory): Use char for flags.  Add new flag `nfs'.
	(nfs): New constant
	(NFS_FILE_STAT): New macro.
	(note_directory): Accept struct stat * instead of
	device and inode number.  All callers changed.
	(note_directory, get_directory_contents):
	Use NFS_FILE_STAT to determine whether directory is an NFS directory.
	(write_dir_file): Cast time_t to unsigned long before printing as %lu.

	* src/common.h (record_size, struct name, struct sp_array,
	available_space_after):
	Use size_t for sizes.
	(save_sizeleft, save_totsize, current_block_ordinal, skip_file):
	Use off_t for file offsets.
	(struct name): dir_contents is now const char *, not char *.
	(dump_file, get_directory_contents): Use dev_t for devices.
	(to_oct): Remove decl.
	(GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, SIZE_TO_OCT,
	UID_TO_OCT, UINTMAX_TO_OCT, OFF_TO_OCT, TIME_TO_OCT, STRINGIFY_BIGINT,
	GID_FROM_OCT, MAJOR_FROM_OCT, MINOR_FROM_OCT, MODE_FROM_OCT,
	OFF_FROM_OCT, SIZE_FROM_OCT, TIME_FROM_OCT, UID_FROM_OCT,
	UINTMAX_FROM_OCT): New macros.
	(gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
	size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
	stringify_uintmax_t_backwards, gid_from_oct, major_from_oct,
	minor_from_oct, mode_from_oct, off_from_oct, size_from_oct,
	time_from_oct, uid_from_oct, uintmax_from_oct): New decls.
	(print_for_mkdir): 2nd arg is now mode_t.

	-----

	See ChangeLog.1 for earlier changes.

	-----

Local Variables:
mode: change-log
version-control: never
buffer-read-only: t
End: