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
|
2019-01-05 Colin Watson <cjwatson@debian.org>
* Version: 2.8.5.
2019-01-05 Colin Watson <cjwatson@debian.org>
Upgrade to Gnulib 20190105
In line with Gnulib, we now require Autoconf 2.63 and Automake 1.11.2.
* bootstrap: Sync to Gnulib d271f868a8df9bbec29049d01e056481b7a1a263.
* bootstrap.conf (GNULIB_REVISION): Set to
d271f868a8df9bbec29049d01e056481b7a1a263.
(buildreq): Bump required autoconf version to 2.63 and required automake
version to 1.11.2.
* configure.ac (AM_SILENT_RULES, AM_PROG_AR): Remove conditionals, which
were there for Automake 1.10 support.
(AC_PREREQ): Bump to 2.63.
* NEWS: Document this.
2019-01-05 Colin Watson <cjwatson@debian.org>
Use tar --sort=name if available
* m4/man-tar-sort-name.m4: New file.
* configure.ac: Call MAN_TAR_SORT_NAME.
2019-01-05 Colin Watson <cjwatson@debian.org>
Fix distcheck following addition of systemd timer
* Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): Add
--with-systemdsystemunitdir=\$${prefix}/lib/systemd/system.
2019-01-05 Colin Watson <cjwatson@debian.org>
Fix distribution of man-db.timer
Automake's "_DATA" primary defaults to "nodist_", not "dist_".
* init/systemd/Makefile.am (systemdsystemunit_DATA): Rename to ...
(dist_systemdsystemunit_DATA): ... this.
(nodist_systemdsystemunit_DATA): Rename to ...
(systemdsystemunit_DATA): ... this.
(EXTRA_DIST): Add man-db.timer if INSTALL_SYSTEMD_TIMER is false.
2019-01-05 Colin Watson <cjwatson@debian.org>
sandbox: Work around Microsoft SCEP
This is a proprietary antivirus program and I've only been able to guess
at how to handle it. Note that it is no longer supported by Microsoft
and so users should probably replace it with something else, but I still
want to minimise the number of support requests I get related to it.
* lib/sandbox.c (make_seccomp_filter): If libscep_pac.so is preloaded,
then allow some system calls related to sockets and System V message
queues.
* NEWS: Document this.
2018-12-24 Colin Watson <cjwatson@debian.org>
Use (void *) 0 as a variadic sentinel
NULL is formally incorrect here since the standard allows it to be an
integer constant expression.
* lib/decompress.c (decompress_open, decompress_fdopen): Use (void *)
rather than NULL as a sentinel for variadic functions.
* libdb/db_delete.c (dbdelete): Likewise.
* src/catman.c (catman, parse_for_sec, main): Likewise.
* src/check_mandirs.c (add_dir_entries): Likewise.
* src/compression.c (comp_file): Likewise.
* src/filenames.c (make_filename): Likewise.
* src/globbing.c (look_for_file): Likewise.
* src/lexgrog.l (find_name): Likewise.
* src/man.c (do_extern, run_mandb, make_roff_command, make_browser,
setenv_less, add_output_iconv, make_display_command, tmp_cat_filename,
format_display_and_save, format_display, display_catman, display,
local_man_loop): Likewise.
* src/manconv_client.c (add_manconv): Likewise.
* src/manconv_main.c (parse_opt): Likewise.
* src/manp.c (pathappend, add_nls_manpaths, add_system_manpath,
add_dir_to_path_list, get_catpath): Likewise.
* src/straycats.c (check_for_stray, open_catdir, straycats): Likewise.
* src/whatis.c (use_grep, display): Likewise.
2018-12-06 Colin Watson <cjwatson@debian.org>
Honour --enable-cache-owner in systemd timer
* init/systemd/Makefile.am (man-db.service): Substitute
@cache_top_owner@.
* init/systemd/man-db.service.in (ExecStart, User): Use
@cache_top_owner@ rather than hardcoding "man".
2018-12-06 Colin Watson <cjwatson@debian.org>
Improve systemd unit commentary
* init/systemd/man-db.service.in (ExecStart): Add comment.
2018-12-06 Colin Watson <cjwatson@debian.org>
Allow disabling installation of systemd components
* m4/man-arg-systemdtmpfilesdir.m4: Define an INSTALL_SYSTEMD_TMPFILES
Automake conditional (true unless --with-systemdtmpfilesdir=no).
* m4/man-arg-systemdsystemunitdir.m4: Define an INSTALL_SYSTEMD_TIMER
Automake conditional (true unless --with-systemdsystemunitdir=no).
* init/systemd/Makefile.am: Honour INSTALL_SYSTEMD_TMPFILES and
INSTALL_SYSTEMD_TIMER.
2018-12-06 Colin Watson <cjwatson@debian.org>
Ship a systemd timer for daily DB maintenance
Thanks to Christian Göttsche. Fixes Debian bug #858022.
* m4/man-arg-systemdsystemunitdir.m4: New file.
* configure.ac: Accept --with-systemdsystemunitdir option.
* init/systemd/Makefile.am (EXTRA_DIST): Add man-db.service.in.
(CLEANFILES): Add man-db.service.
(systemdsystemunit_DATA): Install man-db.timer.
(nodist_systemdsystemunit_DATA): Install man-db.service.
(man-db.service): New rule.
* init/systemd/man-db.service.in, init/systemd/man-db.timer: New files.
* .gitignore: Add init/systemd/man-db.service.
* NEWS: Document this.
2018-11-14 Colin Watson <cjwatson@debian.org>
Fix incorrect error message
Reported by Julian Gilbey. Fixes Debian bug #913721.
* src/man.c (check_standard_fds): Correct error message if stdout is not
open for writing (not "for reading", as previously claimed).
2018-11-09 Colin Watson <cjwatson@debian.org>
release.sh: Simplify Lex handling
release.sh had a hack to ensure that flex-generated scanners are fresh
in release tarballs. This is more easily achieved by configuring with
--enable-maintainer-mode, which causes Automake to enable the Lex
rebuild rule.
* release.sh: Configure with --enable-maintainer-mode; drop conditional
removals of src/lexgrog.c and src/zsoelim.c.
2018-11-09 Colin Watson <cjwatson@debian.org>
lexgrog: Fix handling of \- in RHS of NAME section
Fixes Debian bug #913351.
* src/lexgrog.l (MAN_NAME): Split into MAN_NAME (left-hand side) and
MAN_DESC (right-hand side). Most rules remain as before, except that \-
and similar are only handled specially in MAN_NAME and transition to
MAN_DESC, and rules that add a 0x11 marker (indicating the start of a
new whatis definition) transition to MAN_NAME.
(MAN_NAME_AT, MAN_NAME_BSX, MAN_NAME_BX, MAN_NAME_BX_RELEASE,
MAN_NAME_DQ, MAN_NAME_FX, MAN_NAME_NX, MAN_NAME_OX): Rename to
MAN_DESC_*.
(mdoc_text): Transition to MAN_DESC rather than MAN_NAME.
(newline_found): If adding 0x11, transition to MAN_NAME.
* src/tests/lexgrog-3: New file.
* src/tests/Makefile.am (ALL_TESTS): Add lexgrog-3.
* NEWS: Document this.
2018-11-09 Colin Watson <cjwatson@debian.org>
* NEWS: Document changes since 2.8.4.
2018-11-09 Colin Watson <cjwatson@debian.org>
lexgrog: Add test for multiple whatis definitions
* src/tests/lexgrog-2: New file.
* src/tests/Makefile.am (ALL_TESTS): Add lexgrog-2.
2018-11-09 Colin Watson <cjwatson@debian.org>
lexgrog: Tidy up rules section
No functional change.
* src/lexgrog.l: Make more use of start condition scopes. Reindent
rules somewhat to make better use of vertical space.
2018-11-03 Nikola Forró <nforro@redhat.com>
Fix several resource and memory leaks
* lib/decompress.c (decompress_zlib): Fix fd leak if gzdopen fails.
* lib/encodings.c (find_charset_locale): Free locale if setlocale fails.
* src/man.c (make_roff_command): Free fmt_prog.
* src/mandb.c (process_manpath): Free catpath if manpath is not a
directory.
* src/whatis.c (do_apropos): Free found_here.
2018-10-27 enolp <enolp@softastur.org>
Add Asturian translation
* po/ast.po: New from Translation Project.
* po/LINGUAS: Add ast.
* man/THANKS: Add translator credit.
2018-10-27 Pedro Albuquerque <palbuquerque73@gmail.com>
Update Portuguese manual page translation
* man/po4a/po/pt.po: Update from Translation Project.
2018-10-21 Colin Watson <cjwatson@debian.org>
Add Portuguese manual page translation
* man/po4a/po/pt.po: New from Translation Project (thanks, Pedro
Albuquerque).
* configure.ac (AC_CONFIG_FILES): Add man/pt/Makefile.
* man/LINGUAS.po4a: Add pt.
* man/Makefile.am (DIST_SUBDIRS): Add pt.
* man/pt/Makefile.am, man/pt/translator.add: New files.
* man/po4a/Makefile.am (POFILES): Add po/pt.po.
* man/po4a/po4a.cfg (po4a_langs): Add pt.
* man/THANKS: Add translator credit.
* .gitignore: Add man/pt/man1, man/pt/man5, and man/pt/man8.
2018-10-21 Colin Watson <cjwatson@debian.org>
Switch more language lists to one-per-line format
* man/LINGUAS.po4a: Switch to one language code per line, so that we
have better diffs in future.
* man/Makefile.am (DIST_SUBDIRS): Likewise.
* man/po4a/cfg (po4a_langs): Likewise.
2018-10-21 Pedro Albuquerque <palbuquerque73@gmail.com>
Add Portuguese translation
* po/pt.po: New from Translation Project.
* po/LINGUAS: Add pt.
* man/THANKS: Add translator credit.
2018-10-21 Colin Watson <cjwatson@debian.org>
Switch po/LINGUAS to one-per-line format
* po/LINGUAS: Switch to one language code per line, so that we have
better diffs in future.
2018-10-21 Chen Qi <Qi.Chen@windriver.com>
man-arg-config-file: fix to use config_file
* m4/man-arg-config-file.m4: Compute config_file_basename based on
config_file, not withval.
2018-08-20 Colin Watson <cjwatson@debian.org>
Fail to configure if flex is needed but missing
Fixes Savannah bug #54541.
* configure.ac: Issue an error if AC_PROG_LEX didn't find a lexer
generator and either src/lexgrog.c or src/zsoelim.c is missing (as may
be the case when building from a git clone rather than a released
tarball).
2018-08-02 Colin Watson <cjwatson@debian.org>
Fix warning from gcc -Wcast-function-type
This exposed the fact that errors from unlink in the cleanup path were
previously ignored. We now issue a warning in the same way that
commit_tmp_cat does.
* src/man.c (cleanup_unlink): New function.
(open_cat_stream, close_cat_stream, display_catman): Use cleanup_unlink
rather than an incorrect cast of unlink.
2018-08-02 Colin Watson <cjwatson@debian.org>
Fix build with Berkeley DB
Fixes Savannah bug #54425.
* libdb/db_btree.c: Include <stdlib.h> for free.
2018-07-27 Colin Watson <cjwatson@debian.org>
Update advertised file size
* docs/man-db.lsm (Primary-site): Update file size.
2018-07-27 Colin Watson <cjwatson@debian.org>
* Version: 2.8.4.
2018-07-27 Colin Watson <cjwatson@debian.org>
Work around Gnulib/gettext mismatch
The versions of gettext infrastructure files installed by gnulib-tool
don't necessarily match our configured AM_GNU_GETTEXT_VERSION, so we
need to fix things up in bootstrap.
* bootstrap.conf (gnulib_tool_option_extras): Set --po-base to gl/ref-po
rather than gnulib/po.
(bootstrap_post_import_hook): Merge temporary gl/ref-po directory into
gl/po.
2018-07-27 Colin Watson <cjwatson@debian.org>
Upgrade to Gnulib 20180726
* bootstrap: Sync to Gnulib 900ca5c0b092e50f9f17329feea3fbfe2b6e2139.
* bootstrap.conf (GNULIB_REVISION): Set to
900ca5c0b092e50f9f17329feea3fbfe2b6e2139.
2018-07-18 Colin Watson <cjwatson@debian.org>
Distribute man/es/translator.add
* man/es/Makefile.am (EXTRA_DIST): Add translator.add.
2018-07-16 Colin Watson <cjwatson@debian.org>
sandbox: Improve ESET compatibility further
* lib/sandbox.c (make_seccomp_filter): If libesets_pac.so is preloaded,
then allow msgset (second argument 0) and msgsnd.
* NEWS: Document this.
2018-07-15 Colin Watson <cjwatson@debian.org>
sandbox: Allow some shared memory operations
These were previously only allowed when ESET File Security is in use,
but the Astrill VPN seems to require something similar, there are
doubtless other such preload hacks, and they're relatively harmless.
* lib/sandbox.c (make_seccomp_filter): Allow shmat (third argument
SHM_RDONLY), shmctl (second argument IPC_STAT), shmdt, and shmget
regardless of preloads.
* NEWS: Document this.
2018-06-08 Colin Watson <cjwatson@debian.org>
Check for external formatter in correct directory
Check for mandb_nfmt and mandb_tfmt in the manual page hierarchy as
documented, not in the current directory. This was broken by the
working-directory-handling changes in 2.8.3.
Reported by Josh Triplett. Fixes Debian bug #901007.
* src/man.c (NFMT_PROG, TFMT_PROG): Remove leading "./".
(make_roff_command): Refactor confusing #ifdef forest. Prefix dir to
TFMT_PROG/NFMT_PROG rather than looking in the current directory. Don't
look for an external formatter at all if dir is NULL.
* NEWS: Document this.
2018-06-08 Colin Watson <cjwatson@debian.org>
Define an access(2) wrapper with clearer semantics
As usual for system calls, access(2) returns zero on success. However,
I generally think of it as "can we access this file in this way", where
boolean semantics would be more convenient, and find it too easy to
invert logic by accident when using the system call directly. Define a
CAN_ACCESS wrapper with boolean semantics.
* include/manconfig.h.in (CAN_ACCESS): New macro.
* lib/tempfile.c (path_search): Use CAN_ACCESS.
* src/catman.c (check_access): Likewise.
* src/filenames.c (make_filename): Likewise.
* src/man.c (make_roff_command, display): Likewise.
* src/ult_src.c (find_include): Likewise.
* src/whatis.c (use_grep): Likewise.
2018-06-07 Felipe Castro <fefcas@gmail.com>
Update Esperanto translation
* po/eo.po: Update from Translation Project.
2018-06-01 Francisco Javier F. Serrador <fserrador@gmail.com>
Update Spanish manual page translation
* man/po4a/po/es.po: Update from Translation Project.
* man/THANKS: Update translator credit.
2018-05-29 Colin Watson <cjwatson@debian.org>
Add po4a-based Spanish manual page translation
This supersedes the previous whole-file translations, which had not been
properly updated in many years.
* man/po4a/po/es.po: New from Translation Project (thanks, Francisco
Javier Serrador).
* man/LINGUAS: Remove es.
* man/LINGUAS.po4a: Add es.
* man/es/Makefile.am (PO4A_LINGUA): Set to yes.
(man1_MANS): Add man1/lexgrog.1 and man1/manconv.1.
(man8_MANS): Add man8/accessdb.8.
* man/es/man1/apropos.man1, man/es/man1/man.man1,
man/es/man1/manpath.man1, man/es/man1/whatis.man1,
man/es/man1/zsoelim.man1, man/es/man5/manpath.man5,
man/es/man8/catman.man8, man/es/man8/mandb.man8: Remove.
* man/es/translator.add: New file.
* man/po4a/Makefile.am (POFILES): Add po/es.po.
* man/po4a/po4a.cfg (po4a_langs): Add es.
* man/THANKS: Update translator credit.
* .gitignore: Add man/es/man1, man/es/man5, and man/es/man8.
2018-05-29 Colin Watson <cjwatson@debian.org>
Remove useless if-before-free tests
* lib/hashtable.c (plain_hashtable_free): Remove; this is precisely
equivalent to free.
* lib/hashtable.h (plain_hashtable_free): Remove.
* lib/orderfiles.c (order_files): Use free rather than
plain_hashtable_free.
* libdb/db_btree.c (btree_findkey): Likewise.
* lib/pathsearch.c (pathsearch, directory_on_path): Remove useless
if-before-free.
* libdb/db_lookup.c (free_mandata_elements): Likewise.
* src/check_mandirs.c (test_manfile, count_glob_matches): Likewise.
* src/descriptions.c (free_descriptions): Likewise.
* src/lexgrog_test.c (main): Likewise.
* src/man.c (display_filesystem, display_database, get_section_list):
Likewise.
* src/manp.c (add_system_manpath): Likewise.
* src/straycats.c (check_for_stray, straycats): Likewise.
* src/ult_src.c (ult_src): Likewise.
2018-05-29 Colin Watson <cjwatson@debian.org>
Use Gnulib progname module
This lets us produce more accurate error messages when programs are
invoked with an absolute path.
* bootstrap.conf (gnulib_modules): Add progname.
* include/manconfig.h.in (program_name): Remove.
* src/accessdb.c (main): Call set_program_name rather than similar
hand-rolled code.
* src/catman.c (main): Likewise. Don't free program_name.
* src/globbing_test.c (main): Likewise.
* src/lexgrog_test.c (main): Likewise.
* src/man.c (main): Likewise. Don't free program_name.
* src/manconv_main.c (main): Likewise.
* src/mandb.c (main): Likewise. Don't free program_name.
* src/manpath.c (main): Likewise.
* src/tests/fspause.c (main): Likewise.
* src/whatis.c (main): Likewise.
* src/zsoelim_main.c (main): Likewise.
* src/man.c (manopt_to_env): Run program_name through base_name, since
that's no longer necessarily done up-front.
* src/whatis.c (main): Run program_name through base_name before
comparing it to APROPOS_NAME, since that's no longer necessarily done
up-front.
2018-05-29 Colin Watson <cjwatson@debian.org>
Upgrade to Gnulib 20180527
* bootstrap.conf (GNULIB_URL): Remove.
(GNULIB_REVISION): Set to 90f289f249a266b1afb9c63e182f5d979d17df5f.
(gnulib_modules): Replace gettext with gettext-h.
(gnulib_tool_option_extras): Remove --no-cache-modules (accidental
leftover from earlier testing).
(local_gl_dir): Set to 'gnulib-local' to avoid confusion with 'gl' as
the local output directory. Remove 'rm -rf gl' hack, now superseded.
(buildreq): Bump minimum autopoint and gettext versions to 0.18.3,
matching previous change to configure.ac.
* configure.ac (AM_PROG_AR, LT_INIT): Move below gl_EARLY.
* patches/argp-domain.patch: Rebase.
* src/tests/Makefile.am (TESTS_ENVIRONMENT): Remove use of
@LOCALCHARSET_TESTS_ENVIRONMENT@, which is no longer needed by Gnulib.
2018-05-28 Colin Watson <cjwatson@debian.org>
Switch to bootstrap
We no longer keep autogenerated files in git.
* .gitignore: Add **/Makefile, **/Makefile.in, /ABOUT-NLS, /aclocal.m4,
/build-aux, /config.h.in, /configure, /gl, /gnulib,
docs/INSTALL.autoconf, po/Makefile.in.in, po/Makevars, po/Rules-quot,
po/boldquot.sed, po/en@boldquot.header, po/en@quot.header,
po/insert-header.sin, po/quot.sed, and po/remove-potcdate.sin. Remove
docs/Makefile, gnulib/*, init/Makefile, init/systemd/Makefile,
lib/Makefile, libdb/Makefile, man/Makefile, man/*/Makefile,
manual/Makefile, po/Makefile, po/Makefile.in, src/Makefile,
src/tests/Makefile, and tools/Makefile.
* ABOUT-NLS, Makefile.in, aclocal.m4, autogen.sh, build-aux,
config.h.in, configure, docs/INSTALL.autoconf, docs/Makefile.in, gnulib,
init/Makefile.in, init/systemd/Makefile.in, lib/Makefile.in,
libdb/Makefile.in, man/Makefile.in, man/da/Makefile.in,
man/de/Makefile.in, man/es/Makefile.in, man/fr/Makefile.in,
man/id/Makefile.in, man/it/Makefile.in, man/ja/Makefile.in,
man/nl/Makefile.in, man/pl/Makefile.in, man/po4a/Makefile.in,
man/pt_BR/Makefile.in, man/ru/Makefile.in, man/sr/Makefile.in,
man/sv/Makefile.in, man/tr/Makefile.in, man/zh_CN/Makefile.in,
manual/Makefile.in, po/Makefile.in.in, po/Makevars, po/Rules-quot,
po/boldquot.sed, po/en@boldquot.header, po/en@quot.header,
po/insert-header.sin, po/quot.sed, po/remove-potcdate.sin,
src/Makefile.in, src/tests/Makefile.in, tools/Makefile.in: Remove.
* bootstrap, bootstrap.conf: New files.
* Makefile.am (GNULIB_PO, SUBDIRS, EXTRA_DIST, ACLOCAL_AMFLAGS): Refer
to gl/ rather than gnulib/ (gnulib/ now contains pristine source).
(EXTRA_DIST): Replace autogen.sh with bootstrap and bootstrap.conf.
Replace gnulib/argp-domain.patch with patches/argp-domain.patch. Add
patches/fdutimens-hurd.patch. Remove gnulib/m4/gnulib-cache.m4 and
gnulib/m4/gnulib-tool.m4.
* gnulib/argp-domain.patch: Rename to ...
* patches/argp-domain.patch: ... this. Update target paths.
* gnulib/fdutimens-hurd.patch: Rename to ...
* patches/fdutimens-hurd.patch: ... this. Update target paths.
* configure.ac (AM_GNU_GETTEXT_VERSION): Upgrade to 0.18.3, for
compatibility with current Automake.
(HAVE_GNULIB_PO, AC_CONFIG_FILES): Refer to gl/ rather than gnulib/.
* lib/Makefile.am (libman_la_CPPFLAGS, libman_la_LIBADD): Likewise.
* libdb/Makefile.am (libmandb_la_CPPFLAGS): Likewise.
* src/Makefile.am (AM_CPPFLAGS, LIBMAN): Likewise.
* src/tests/Makefile.am (AM_CPPFLAGS, fspause_LDADD): Likewise.
* docs/HACKING: Describe new policy.
* release.sh: Call ./bootstrap rather than ./autogen.sh.
2018-05-17 pan93412 <pan93412@gmail.com>
Add Traditional Chinese translation
* po/zh_TW.po: New from Translation Project.
* po/LINGUAS: Add zh_TW.
* man/THANKS: Add translator credit.
2018-04-22 Colin Watson <cjwatson@debian.org>
sandbox: Allow sched_getaffinity
This is used by xz-utils >= 5.2.3 if the --threads=0 option is in use
(perhaps via XZ_DEFAULTS or XZ_OPT).
Reported by Axel Rohde.
* lib/sandbox.c (make_seccomp_filter): Allow sched_getaffinity.
* NEWS: Document this.
2018-04-06 Colin Watson <cjwatson@debian.org>
Fix invalid man-db.conf with --disable-cache-owner
Fixes Savannah bug #53575.
* m4/man-arg-cache-owner.m4: Set and substitute cache_top_owner.
* init/systemd/man-db.conf.in: Substitute cache_top_owner rather than
man_owner.
* init/systemd/Makefile.am (man-db.conf): Likewise.
* NEWS: Document this.
2018-04-06 Colin Watson <cjwatson@debian.org>
Remove redundant debugging information
* lib/decompress.c (decompress_open): Remove filename from
decompress_zlib command name. pipeline_dump already includes this
information from want_infile.
2018-04-06 Colin Watson <cjwatson@debian.org>
Rely on decompressors reading from stdin
This works better with downstream AppArmor confinement of decompressors.
* lib/decompress.c (decompress_open): Don't pass filename on
decompressor command lines.
* NEWS: Document this.
2018-04-05 Colin Watson <cjwatson@debian.org>
* Version: 2.8.3.
2018-04-05 Colin Watson <cjwatson@debian.org>
Suppress spurious gettext headers in --help output
Some of man-db's commands have post-options help text but no pre-options
help text. Unfortunately, the way this works in argp (separating the
two sections using a '\v' character) means that this results in argp
trying to translate the empty string, which produces gettext catalog
headers. The easiest way to suppress this odd behaviour seems to be to
use a help filter function, so do that.
Reported by Rafael Fontenelle.
* src/accessdb.c (help_filter): Return NULL for ARGP_KEY_HELP_PRE_DOC.
* src/lexgrog_text.c (help_filter): New function.
(argp): Add help_filter.
* src/whatis.c (help_filter): New function.
(apropos_argp): Add help_filter.
* NEWS: Document this.
2018-04-05 Colin Watson <cjwatson@debian.org>
Fix compiler warnings on x32
tv_nsec is __syscall_slong_t == long long there, so we need a cast.
* libdb/db_lookup.c (dbprintf): Cast tv_nsec to long for %ld format.
* libdb/db_store.c (make_content): Likewise.
* src/check_mandirs.c (testmandirs, update_db): Likewise.
* src/man.c (maybe_update_file): Likewise.
2018-04-05 Colin Watson <cjwatson@debian.org>
Fix broken test
* src/tests/man-8: Fix expected output to account for recent change to
locale_macros.
2018-04-05 Colin Watson <cjwatson@debian.org>
man: Only change directory in child processes
This avoids failures due to being unable to change back to the original
working directory.
Fixes Debian bug #894792.
* gnulib/m4/gnulib-cache.m4 (gl_MODULES): Remove save-cwd.
* src/man.c (make_display_command): Remove now-unnecessary code to run
the pager in the original working directory.
(chdir_commands): New function.
(format_display): Change directory just for format_cmd and disp_cmd
rather than in-process.
(display): Change directory just for format_cmd rather than in-process.
(main): Remove now-unnecessary code to save and restore the current
working directory.
* NEWS: Document this.
2018-04-04 Colin Watson <cjwatson@debian.org>
Upgrade config.guess/config.sub
* build-aux/config.guess: Upgrade to 2018-02-24.
* build-aux/config.sub: Upgrade to 2018-02-22.
2018-04-01 Colin Watson <cjwatson@debian.org>
Fix locale_macros version check for groff RCs
Thanks to Werner LEMBERG.
* src/man.c (locale_macros): Tolerate groff release candidates.
* NEWS: Document this.
2018-03-30 Colin Watson <cjwatson@debian.org>
sandbox: Allow sibling architectures on x86 etc.
Fixes Debian bug #891267.
* lib/sandbox.c (make_seccomp_filter): Allow sibling architectures on
x86/x86_64/x32.
* NEWS: Document this.
2018-03-17 Colin Watson <cjwatson@debian.org>
sandbox: Tighten up storage classes
* lib/sandbox.c (make_seccomp_filter, _sandbox_load): Declare as static.
2018-03-17 Colin Watson <cjwatson@debian.org>
sandbox: Allow kill and tgkill outright
This is unfortunate but unavoidable: groff uses kill to explicitly pass
on SIGPIPE to its child processes, and we can't do any more
sophisticated filtering in seccomp.
Based on a patch by Paul Wise. Fixes Debian bug #892309.
* lib/sandbox.c (make_seccomp_filter): Allow kill and tgkill
unconditionally.
(adjust_seccomp_filter): Remove.
(_sandbox_load): Remove call to adjust_seccomp_filter.
* NEWS: Document this.
2018-03-17 Colin Watson <cjwatson@debian.org>
sandbox: Allow madvise
Reported by Tobias Klausmann.
* lib/sandbox.c (make_seccomp_filter): Allow madvise.
* NEWS: Document this.
2018-03-02 Francisco Javier Serrador <fserrador@gmail.com>
Update Spanish translation
* po/es.po: Update from Translation Project.
* man/THANKS: Add translator credit.
2018-02-28 Colin Watson <cjwatson@debian.org>
* Version: 2.8.2.
2018-02-28 Colin Watson <cjwatson@debian.org>
sandbox: Handle qemu-user returning EFAULT
Fixes Debian bug #891109.
* lib/sandbox.c (_sandbox_load): Interpret EFAULT from seccomp_load as
meaning that seccomp is unavailable, since this can be returned by some
versions of qemu-user.
* NEWS: Document this.
2018-02-28 Colin Watson <cjwatson@debian.org>
sandbox: Add some more ESET affordances
* lib/sandbox.c (make_seccomp_filter): If libesets_pac.so is preloaded,
then allow some shared memory calls and checking for the existence of
other processes.
2018-02-25 Colin Watson <cjwatson@debian.org>
sandbox: Work around snoopy
Fixes Debian bug #890861.
* lib/sandbox.c (search_ld_preload): Cache /etc/ld.so.preload contents
between calls.
(make_seccomp_filter): Allow some socket-related system calls if
libsnoopy.so is preloaded.
2018-02-25 Colin Watson <cjwatson@debian.org>
sandbox: Generalise libesets_pac.so check slightly
* lib/sandbox.c (make_seccomp_filter): LD_PRELOAD or /etc/ld.so.preload
can just contain "libesets_pac.so" without an explicit path, so make the
search slightly more permissive.
2018-02-20 Colin Watson <cjwatson@debian.org>
sandbox: Handle /etc/ld.so.preload
At least ESET File Security may be configured using /etc/ld.so.preload
rather than the LD_PRELOAD environment variable, so unfortunately we
need to check that too.
* lib/sandbox.c (search_ld_preload): New function, handling both
LD_PRELOAD and /etc/ld.so.preload.
(can_load_seccomp, make_seccomp_filter): Use search_ld_preload.
2018-02-19 Colin Watson <cjwatson@debian.org>
sandbox: Work around ESET File Security
This is a proprietary antivirus program, so this is only a best guess
from strace output. The choices are to disable the sandbox entirely or
to allow a few socket-related system calls if this antivirus program is
detected, and the latter is probably slightly better.
Reported by John Sivak.
* lib/sandbox.c (make_seccomp_filter): If LD_PRELOAD contains the
substring "/libesets_pac.so", then allow some socket-related system
calls so that the preload wrapper can talk to its daemon.
* NEWS: Document this.
2018-02-19 Colin Watson <cjwatson@debian.org>
sandbox: Allow ioctl(fd, TIOCGWINSZ)
Patch from the anonymous reporter of
https://savannah.nongnu.org/bugs/?53183 (though I think is obvious for
copyright purposes given knowledge of the failing system call).
Fixes Savannah bug #53183 (maybe).
* lib/sandbox.c (make_seccomp_filter): Allow ioctl(fd, TIOCGWINSZ).
* NEWS: Document this.
2018-02-14 Colin Watson <cjwatson@debian.org>
sandbox: Allow kill/tgkill for current process
xz is multithreaded, so the threading library may need to use tgkill to
pass signals between threads, for example when it receives SIGPIPE.
Fixes Savannah bug #53143.
* lib/sandbox.c (SC_ALLOW, SC_ALLOW_ARG_1, SC_ALLOW_ARG_2): Move macro
definitions out of make_seccomp_filter.
(adjust_seccomp_filter): New function.
(sandbox_load): Call adjust_seccomp_filter.
* NEWS: Document this.
2018-02-09 Colin Watson <cjwatson@debian.org>
* Version: 2.8.1.
2018-02-09 Colin Watson <cjwatson@debian.org>
Use HTTPS URLs where possible
* Makefile.am, NEWS, README, docs/HACKING, docs/INSTALL.quick,
lib/sandbox.c, manual/misc.me, src/check_mandirs.c, src/man.c,
src/manconv.c, src/tests/man-1, src/tests/man-2, src/tests/mandb-2,
src/tests/mandb-4, src/tests/mandb-5, src/tests/zsoelim-1: Replace
http:// links with https:// equivalents.
* docs/HACKING: Replace git:// link with an https:// equivalent.
2018-02-09 Colin Watson <cjwatson@debian.org>
Chase some redirects
* NEWS: Link to https://bazaar.canonical.com/ rather than
http://bazaar-vcs.org/.
* man/fr/translator.add: Link to https://po4a.org/ rather than
http://po4a.alioth.debian.org/.
2018-02-08 Colin Watson <cjwatson@debian.org>
sandbox: Allow mremap
* lib/sandbox.c (make_seccomp_filter): Allow mremap, which may be used
by iconv when reading files, depending on libc configuration.
* NEWS: Document this.
2018-02-07 Lars Wendler <polynomial-c@gentoo.org>
Change libseccomp logic to not be automagic only
Introduce --without-libseccomp configure option so that users can
disable seccomp even if libseccomp is available on the system.
The default is unchanged from before this patch. If no
--with(out)-libseccomp has been given on the command line, the macro
looks for presence of libseccomp and uses that if found.
* m4/man-libseccomp.m4: Guard pkg-config test with a command-line
option.
2018-02-07 Colin Watson <cjwatson@debian.org>
* NEWS: Document changes since 2.8.0.
2018-02-07 Colin Watson <cjwatson@debian.org>
Reduce number of MAN_OWNER ifdefs
* lib/security.c (init_security, running_setuid): Define
unconditionally, with stub behaviour if MAN_OWNER is undefined.
* lib/security.h (get_man_owner): Only declare prototype if MAN_OWNER is
defined.
* src/check_mandirs.c (chown_if_possible) [!MAN_OWNER]: Mark path
argument as unused.
* src/lexgrog_test.c (main): Call init_security unconditionally.
* src/man.c (main): Likewise.
* src/manconv_client.c (manconv_pre_exec): Define unconditionally.
(add_manconv): Simplify, since running_setuid is now always defined.
* src/mandb.c (main): Call init_security unconditionally. Use
get_man_owner rather than equivalent inline code.
* src/manp.c (get_def): Define unconditionally.
* src/manp.h (get_def): Drop macro alternative.
2018-02-07 Colin Watson <cjwatson@debian.org>
Fix manconv under seccomp when man is setuid
We must drop privileges before loading the sandbox.
Reported by Lars Wendler.
* src/manconv_client.c (manconv_pre_exec): New function.
(manconv_stdin): Move setuid hack to ...
(add_manconv): ... here, now implemented using a custom pre-exec hook.
We no longer have a fall-through if dropping privileges fails, since
that's now harder to do and wasn't really necessary in the first place.
2018-02-07 Colin Watson <cjwatson@debian.org>
Refactor do_system_drop_privs
Now that we have pipecmd_pre_exec, this can be simplified quite a bit.
* lib/security.c (drop_privs): New function.
(do_system_drop_privs_child, do_system_drop_privs): Remove.
* lib/security.h (drop_privs): Add prototype.
(do_system_drop_privs): Remove prototype.
* src/man.c (make_browser): Add drop_privs pre-exec hook to browser
command.
(format_display): Call browser using pipeline_run rather than
do_system_drop_privs, since it now has a pre-exec hook to drop
privileges.
2018-02-07 Colin Watson <cjwatson@debian.org>
Refactor sandbox attachment to be more composable
The sandbox interface now exposes the necessary load/free primitives,
and callers use them directly with pipecmd_pre_exec. This allows the
sandbox to be composed with other pre-exec hooks.
* lib/sandbox.c (man_sandbox_op, sandbox_attach,
sandbox_attach_permissive): Remove.
(sandbox_load): Rename to ...
(_sandbox_load): ... this.
(sandbox_load, sandbox_load_permissive): New functions.
(sandbox_free): Expect a man_sandbox * rather than a man_sandbox_op *.
* lib/sandbox.h: Update prototypes.
* lib/decompress.c (decompress_open, decompress_fdopen): Update sandbox
attachment calls.
* src/lexgrog.l (find_name): Likewise.
* src/man.c (add_col, make_roff_command, add_output_iconv,
make_display_command, open_cat_stream, display_catman): Likewise.
* src/manconv_client.c (add_manconv): Likewise.
* src/straycats.c (check_for_stray): Likewise.
* src/whatis.c (use_grep): Likewise.
2018-02-07 Colin Watson <cjwatson@debian.org>
* NEWS: Fix typo in 2.6.5 notes
2018-02-05 Colin Watson <cjwatson@debian.org>
Fix seccomp sandbox build on Linux/POWER
* lib/sandbox.c [HAVE_LIBSECCOMP]: Include <termios.h>, since some
architectures need this for TCGETS as well as <sys/ioctl.h>.
2018-02-04 Colin Watson <cjwatson@debian.org>
* Version: 2.8.0.
2018-02-04 Colin Watson <cjwatson@debian.org>
Allow ioctl (..., TCGETS, ...)
* lib/sandbox.c (make_seccomp_filter): Allow ioctl (..., TCGETS, ...) in
non-permissive mode (ioctl in general is already allowed in permissive
mode).
2018-02-04 Mario Blättermann <mario.blaettermann@gmail.com>
Update German manual page translation
* man/po4a/po/de.po: Update from Translation Project.
2018-02-03 Rafael Fontenelle <rafaelff@gnome.org>
Update Brazilian Portuguese translations
* po/pt_BR.po, man/po4a/po/pt_BR.po: Update from Translation Project.
* man/THANKS: Update translator email address.
2018-01-27 Joe Hansen <joedalton2@yahoo.dk>
Update Danish manual page translation
* man/po4a/po/da.po: Update from Translation Project.
2018-01-25 Mario Blättermann <mario.blaettermann@gmail.com>
Update German manual page translation
* man/po4a/po/de.po: Update from Translation Project.
2018-01-23 Yuri Kozlov <yuray@komyakino.ru>
Update Russian translations
* po/ru.po, man/po4a/po/ru.po: Update from Translation Project.
2018-01-23 Boyuan Yang <073plan@gmail.com>
Update Simplified Chinese manual page translation
* man/po4a/po/zh_CN.po: Update from Translation Project.
2018-01-23 Sebastian Rasmussen <sebras@gmail.com>
Update Swedish manual page translation
* man/po4a/po/sv.po: Update from Translation Project.
2018-01-23 Rafael Fontenelle <rffontenelle@gmail.com>
Update Brazilian Portuguese manual page translation
* man/po4a/po/pt_BR.po: Update from Translation Project.
2018-01-22 Colin Watson <cjwatson@debian.org>
* Version: 2.8.0-pre2.
* man/po4a/po/man-db-manpages.pot, man/po4a/po/*.po: Update.
2018-01-21 Colin Watson <cjwatson@debian.org>
* Version: 2.8.0-pre1.
2018-01-16 Colin Watson <cjwatson@debian.org>
Minor style cleanups
* src/man.c (sh_lang_first_word, main): Minor style cleanups.
2018-01-16 Colin Watson <cjwatson@debian.org>
NEWS: Document previous commit.
2018-01-16 Neven Sajko <nsajko@gmail.com>
Add fallback pager if the compile-time default is not executable
A problem with man-db's man is that in the case of the user giving no
configuration via conf files, argv, or environment variables; man
defaults to less as pager (PAGER); but less may not be present on the
system. Sure, other pagers may be selected in aforementioned ways, but
then the defaults are overridden, making that unsuitable for
install-time configuration.
This patch makes man check (if that becomes relevant) if PAGER is
executable, further defaulting to cat (which is basically ubiquitous,
being in original Unix, POSIX, and GNU Coreutils) if it is not. Thus
the poor beginner Unix users without less installed will be able to
get man pages.
* src/man.c (sh_lang_first_word): New function.
(main): Skip configured pager if it is not executable.
* man/man1/man.man1 (Controlling formatted output, ENVIRONMENT):
Document fallback to cat.
* man/replace.sin.in: Substitute %cat%.
2018-01-16 Colin Watson <cjwatson@debian.org>
Fix a segfault in 'man -D --help'
Reported by Jiri Kucera.
* src/man.c (init_html_pager): New function.
(parse_opt): Call init_html_pager rather than setting html_pager to
NULL.
(help_filter): Assert that browser is non-NULL.
(main): Call init_html_pager rather than doing the same thing directly.
* NEWS: Document this.
2018-01-03 Colin Watson <cjwatson@debian.org>
Update Simplified Chinese manual page translation
* man/po4a/po/zh_CN.po: Update from Translation Project (trivial).
2018-01-03 Colin Watson <cjwatson@debian.org>
Upgrade config.guess/config.sub
* build-aux/config.guess: Upgrade to 2017-11-07.
* build-aux/config.sub: Upgrade to 2017-11-23.
2018-01-03 Colin Watson <cjwatson@debian.org>
sandbox: Cope with missing CONFIG_SECCOMP_FILTER
* lib/sandbox.c (gripe_seccomp_filter_unavailable): New function.
(can_load_seccomp): Return early if seccomp filtering has already been
detected as unavailable.
(sandbox_load): If seccomp_load returns an EINVAL error, assume that the
running kernel doesn't support seccomp filtering and emit a debugging
message rather than failing.
2018-01-03 Colin Watson <cjwatson@debian.org>
Allow sync_file_range2 syscall
* lib/sandbox.c (make_seccomp_filter): Add sync_file_range2.
2018-01-03 Colin Watson <cjwatson@debian.org>
Fix seccomp sandbox on Linux/ARM
* lib/sandbox.c (make_seccomp_filter): Add arm_fadvise64_64 and
arm_sync_file_range.
2017-12-03 Colin Watson <cjwatson@debian.org>
Use more conventional bullets in documentation
* docs/INSTALL.quick, NEWS, README: Use "*" for bullet points instead of
"o".
2017-12-03 Colin Watson <cjwatson@debian.org>
Confine most untrusted data handling using seccomp
Fixes Debian bug #877199.
* configure.ac: Require libpipeline >= 1.5.0. Call MAN_LIBSECCOMP.
* docs/INSTALL.quick: Bump minimum libpipeline version to 1.5.0. List
libseccomp as recommended.
* lib/Makefile.am (libman_la_CPPFLAGS): Add $(libseccomp_CFLAGS).
(libman_la_SOURCES): Add sandbox.c and sandbox.h.
(libman_la_LDFLAGS): Add $(libseccomp_LIBS).
* lib/sandbox.c: New file.
* lib/sandbox.h: New file.
* m4/man-libseccomp.m4: New file.
* src/man.c (set_term): Check that process ID matches original before
calling tcsetattr.
(get_term): Record original process ID to work around an arguable bug in
pipecmd_exec.
* src/lexgrog_test.c (main), src/man.c (main), src/manconv_main.c
(main), src/mandb.c (main), src/zsoelim_main.c (main): Initialise
sandbox.
* lib/decompress.c (decompress_open, decompress_fdopen): Attach sandbox
to decompression commands.
* src/lexgrog.l (find_name): Attach sandbox to 'col'.
* src/man.c (add_col): Attach sandbox to 'col'.
(make_roff_command): Attach sandbox to 'zsoelim' and to groff-related
programs.
(add_output_iconv): Attach sandbox to 'iconv'.
(make_display_command): Attach sandbox to 'tr'.
(open_cat_stream, display_catman): Attach sandbox to compression
commands.
* src/manconv_client.c (add_manconv): Attach sandbox to manconv_stdin.
* src/straycats.c (check_for_stray): Attach sandbox to 'col'.
* src/whatis.c (use_grep): Attach sandbox to 'grep'.
* src/accessdb.c, src/catman.c, src/globbing_test.c, src/manpath.c:
Define stub sandbox variable.
* docs/NEWS: Document this.
2017-12-02 Colin Watson <cjwatson@debian.org>
Document more installation requirements
* docs/INSTALL.quick: List a database library as required, and zlib as
recommended.
2017-11-22 Colin Watson <cjwatson@debian.org>
Remove Easter egg entirely
Six years is a reasonable shelf life for a joke, but I think its time
has passed now.
* src/man.c (main): Remove Easter egg.
2017-11-21 Philipp Gesang <phg@phi-gamma.net>
Add section 0 to defaults
m4/man-arg-sections.m4: Add 0 (zero) to the default list of sections as
advertised in ``configure --help``.
Cf. commit f3739b9bbde27c702c911ce8a511a499705a25f7
2017-11-21 Colin Watson <cjwatson@debian.org>
Stop Easter egg interfering with non-error cases
* src/man.c (main): Restrict Easter egg to the case where 'man' is run
without any options or arguments at all (which isn't useful for anything
else), not 'man -w' (which is).
https://unix.stackexchange.com/questions/405783/why-does-man-print-gimme-gimme-gimme-at-0030
2017-11-21 Colin Watson <cjwatson@debian.org>
Fix formatting error in Simplified Chinese translation
* man/po4a/po/zh_CN.po: Correct formatting of exit(3tcl) references.
2017-11-16 Boyuan Yang <073plan@gmail.com>
Update Simplified Chinese translations
* po/zh_CN.po, man/po4a/po/zh_CN.po: Update from Translation Project.
* man/THANKS: Add translator credit.
2017-11-13 Colin Watson <cjwatson@debian.org>
Fix docs for minimum libpipeline requirement
* docs/INSTALL.quick: Bump minimum libpipeline version to 1.4.0.
2017-07-18 Colin Watson <cjwatson@debian.org>
Fix formatting error in Turkish translation
* man/po4a/po/tr.po: Translate "\\e-" as itself rather than as "\\(e-".
2017-07-16 Colin Watson <cjwatson@debian.org>
Improve --with-systemdtmpfilesdir default
* m4/man-arg-systemdtmpfilesdir.m4: Get tmpfiles directory location from
pkg-config.
* configure.ac: Call PKG_PROG_PKG_CONFIG early to avoid problems with
conditional use of PKG_* macros.
2017-07-11 Colin Watson <cjwatson@debian.org>
Add Turkish manual page translation
* man/po4a/po/tr.po: New from Translation Project (thanks, Volkan Gezer
and Mesutcan Kurt).
* configure.ac (AC_CONFIG_FILES): Add man/tr/Makefile.
* man/LINGUAS.po4a: Add tr.
* man/Makefile.am (DIST_SUBDIRS): Add tr.
* man/tr/Makefile.am, man/tr/translator.add: New files.
* man/po4a/Makefile.am (POFILES): Add po/tr.po.
* man/po4a/po4a.cfg (po4a_langs): Add tr.
* man/THANKS: Add translator credit.
* .gitignore: Add man/tr/man1, man/tr/man5, and man/tr/man8.
2017-07-10 Colin Watson <cjwatson@debian.org>
* NEWS: Document changes since 2.7.6.1.
2017-07-10 Colin Watson <cjwatson@debian.org>
gnulib: Import memmem module
Needed to make the previous commit portable.
2017-07-10 Colin Watson <cjwatson@debian.org>
Fix preprocessor handling after insertions
If man has added prefixes to a page to handle such things as disabling
hyphenation, then it also needs to take account of that when looking for
a preprocessor line at the start of the page.
Reported by Bjarni Ingi Gislason. Fixes Debian bug #867857.
* src/man.c (get_preprocessors_from_file): Skip over as many blocks
ending with an .lf macro as there are prefixes.
(get_preprocessors): Pass the number of prefixes through to
get_preprocessors_from_file.
(make_roff_command): Take pp_string as an argument rather than
dbfilters; callers should now call get_preprocessors themselves.
(display): Rename seq_ncmds to prefixes. Call get_preprocessors before
calling make_roff_command.
2017-07-10 Colin Watson <cjwatson@debian.org>
Upgrade to Automake 1.15.1.
2017-07-10 Colin Watson <cjwatson@debian.org>
Handle \(en escapes in NAME section
* src/lexgrog.l (MAN_NAME): Treat "\(en" as another synonym for "\-",
and thus as a separator.
2017-04-08 Volkan Gezer <volkangezer@gmail.com>
Update Turkish translation
* po/tr.po: Update from Translation Project.
2017-04-04 Volkan Gezer <volkangezer@gmail.com>
Add Turkish translation
* po/tr.po: New from Translation Project.
* po/LINGUAS: Add tr.
* man/THANKS: Add translator credit.
2017-01-29 Felipe Castro <fefcas@gmail.com>
Update Esperanto translation
* po/eo.po: Update from Translation Project.
2017-01-07 Sebastian Rasmussen <sebras@gmail.com>
Update Swedish translation
* po/sv.po: Update from Translation Project.
2017-01-04 Colin Watson <cjwatson@debian.org>
Add Brazilian Portuguese manual page translation
* man/po4a/po/pt_BR.po: New from Translation Project (thanks, Rafael
Fontenelle).
* configure.ac (AC_CONFIG_FILES): Add man/pt_BR/Makefile.
* man/LINGUAS.po4a: Add pt_BR.
* man/Makefile.am (DIST_SUBDIRS): Add pt_BR.
* man/pt_BR/Makefile.am, man/pt_BR/translator.add: New files.
* man/po4a/Makefile.am (POFILES): Add po/pt_BR.po.
* man/po4a/po4a.cfg (po4a_langs): Add pt_BR.
* man/THANKS: Add translator credit.
* .gitignore: Add man/pt_BR/man1, man/pt_BR/man5, and man/pt_BR/man8.
2016-12-28 Sebastian Rasmussen <sebras@gmail.com>
Update Swedish manual page translation
* man/po4a/po/sv.po: Update from Translation Project.
2016-12-23 David Prévot <david@tilapin.org>
Update French manual page translation
* man/po4a/po/fr.po: Update from Translation Project.
2016-12-23 David Prévot <david@tilapin.org>
Update French translation
* po/fr.po: Update from Translation Project.
2016-12-22 Robert Luberda <robert@debian.org>
Update Polish manual page translation
* man/po4a/po/pl.po: Update from Translation Project.
2016-12-22 Robert Luberda <robert@debian.org>
Update Polish translation
* po/pl.po: Update from Translation Project.
2016-12-19 Colin Watson <cjwatson@debian.org>
Add Serbian manual page translation
* man/po4a/po/sr.po: New from Translation Project (thanks, Мирослав
Николић).
* configure.ac (AC_CONFIG_FILES): Add man/sr/Makefile.
* man/LINGUAS.po4a: Add sr.
* man/Makefile.am (DIST_SUBDIRS): Add sr.
* man/sr/Makefile.am, man/sr/translator.add: New files.
* man/po4a/Makefile.am (POFILES): Add po/sr.po.
* man/po4a/po4a.cfg (po4a_langs): Add sr.
* man/THANKS: Add translator credit.
* .gitignore: Add man/sr/man1, man/sr/man5, and man/sr/man8.
2016-12-19 Мирослав Николић <miroslavnikolic@rocketmail.com>
Update Serbian translation
* po/sr.po: Update from Translation Project.
2016-12-13 Joe Hansen <joedalton2@yahoo.dk>
Update Danish manual page translation
* man/po4a/po/da.po: Update from Translation Project.
2016-12-13 Colin Watson <cjwatson@debian.org>
Generate tmpfiles snippet based on cache owner
man-db.conf should honour --enable-cache-owner rather than hardcoding
"man".
* init/systemd/man-db.conf: Rename to ...
* init/systemd/man-db.conf.in: ... this. Replace "man" with
"@man_owner@".
* init/systemd/Makefile.am: Generate man-db.conf at build time.
* .gitignore: Add init/systemd/man-db.conf.
2016-12-13 Colin Watson <cjwatson@debian.org>
Fix locale macro loading for Chinese
The intent was always that we should load the macro file corresponding
to just the language part of the page's locale, and the debug output
agreed with this, but the actual implementation did not. Fix this.
See: https://savannah.gnu.org/bugs/?44941
* src/man.c (display): Pass bits.language rather than page_lang to
locale_macros. Adjust memory allocation.
2016-12-13 Colin Watson <cjwatson@debian.org>
Rename SECURE_MAN_UID to MAN_OWNER
The latter had always been defined to the former anyway, and now that
the cache owner can be changed without actually installing setuid the
latter is more descriptive.
* m4/man-arg-cache-owner.m4: Define MAN_OWNER rather than
SECURE_MAN_UID. Update all users.
* include/manconfig.h.in (MAN_OWNER): Remove definition.
2016-12-13 Colin Watson <cjwatson@debian.org>
Mark some parts of .TH sections as untranslatable
* man/po4a/Locale/Po4a/Manext.pm (translate): Don't translate anything
matching /^%.*%$/ or /^[A-Z]+$/ in .TH sections.
* man/po4a/po/man-db-manpages.pot, man/po4a/po/*.po: Update.
2016-12-13 Tianze Wang <zwpwjwtz@126.com>
Update Simplified Chinese manual page translation
* man/po4a/po/zh_CN.po: Update from Translation Project.
* man/THANKS: Update.
2016-12-13 Trần Ngọc Quân <vnwildman@gmail.com>
Update Vietnamese translation
* po/vi.po: Update from Translation Project.
2016-12-13 Colin Watson <cjwatson@debian.org>
Correct syntax of Danish manual page translation
* man/po4a/po/da.po: Fix a couple of font specifications.
2016-12-13 Rafael Fontenelle <rffontenelle@gmail.com>
Update Brazilian Portuguese translation
* po/pt_BR.po: Update from Translation Project.
* man/THANKS: Update.
2016-12-13 Joe Hansen <joedalton2@yahoo.dk>
Update Danish manual page translation
* man/po4a/po/da.po: Update from Translation Project.
2016-12-12 Joe Hansen <joedalton2@yahoo.dk>
Update Danish translation
* po/da.po: Update from Translation Project.
2016-12-12 Mario Blättermann <mario.blaettermann@gmail.com>
Update German manual page translation
* man/po4a/po/de.po: Update from Translation Project.
2016-12-12 Mario Blättermann <mario.blaettermann@gmail.com>
Update German translation
* po/de.po: Update from Translation Project.
* man/THANKS: Update.
2016-12-12 Colin Watson <cjwatson@debian.org>
* Version: 2.7.6.1.
2016-12-12 Colin Watson <cjwatson@debian.org>
Correct installation of Swedish manual pages
* man/sv/Makefile.am (LINGUA): Set to sv, not nl.
* NEWS: Document this.
2016-12-12 Colin Watson <cjwatson@debian.org>
* NEWS: Document previous change.
2016-12-12 Colin Watson <cjwatson@debian.org>
Don't chmod CACHEDIR.TAG if it doesn't exist
The containing directory might reasonably not exist. Fixes Debian
bug #847810.
* src/mandb.c (mandb): Only chown/chmod CACHEDIR.TAG if it exists.
2016-12-11 Colin Watson <cjwatson@debian.org>
* Version: 2.7.6.
2016-12-11 Colin Watson <cjwatson@debian.org>
Fix systemd tmpfiles group/perms of /var/cache/man
* init/systemd/man-db.conf: Change mode to 0755 and group to man.
2016-12-11 Colin Watson <cjwatson@debian.org>
Fix Polish mandb(8) "cannot adjust line" warnings
* man/man8/mandb.man8 (DATABASE CACHES): Set a width of 20em for the
"Type" column.
2016-12-11 Colin Watson <cjwatson@debian.org>
Drop documentation of gdbm < 1.6
gdbm 1.6 was released in 1993; it's no longer necessary to document
mandb's behaviour with older versions.
* man/man8/mandb.man8 (DATABASE CACHES): Remove "GNU gdbm v < 1.6" row.
Simplify "GNU gdbm v >= 1.6" to "GNU gdbm". Update all translations.
2016-12-11 Colin Watson <cjwatson@debian.org>
Fix table rendering with po4a 0.47
* man/po4a/Locale/Po4a/Manext.pm (initialize): Drop unused assignment.
(shiftline, pushline): Pass through to superclass if po4a version >=
0.47.
(translate): With po4a >= 0.47, don't process text blocks since po4a now
does that, but handle @-separation of columns and remove trailing
newlines from translatable strings.
* man/po4a/po/man-db-manpages.pot, man/po4a/po/*.po: Update (line
numbers only).
* NEWS: Document this.
2016-12-11 Colin Watson <cjwatson@debian.org>
Fix distcheck following cache-owner/setuid changes
We previously ignored chown failures on "make install", but that's not
really correct. Instead, configure with --disable-setuid during
distcheck.
* Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): Add --disable-setuid.
2016-12-11 Colin Watson <cjwatson@debian.org>
Update translation files
* po/man-db.pot, po/*.po: Update.
* man/po4a/po/man-db-manpages.pot, man/po4a/po/*.po: Update.
2016-12-11 Colin Watson <cjwatson@debian.org>
* NEWS: Document changes since 2.7.5.
2016-12-11 Mihail Konev <k.mvc@ya.ru>
src/tests: Use /tmp for temporary directories
Reduces disk reads/writes made by 'make check -C src'.
Fall back to ./tmp-* if 'mktemp -d' fails.
2016-12-10 Colin Watson <cjwatson@debian.org>
Eliminate dangerous setgid-root directories
man-db has created its cache directories as setgid root for nearly 20
years. This seems to have originated in https://bugs.debian.org/26002.
However, this has some dangerous consequences, such as:
http://www.halfdog.net/Security/2015/SetgidDirectoryPrivilegeEscalation/
It seems best to arrange for cache files and directories to be man:man
rather than man:root. To do this reliably, as well as adjusting various
chown and chmod calls, we make man and mandb be setgid man as well as
setuid man (except in the --disable-setuid case). This is a much
simpler and safer solution to the original problem, and doesn't
introduce any interesting new privilege since the man group's only real
purpose is to be the man user's primary group and nothing in cache
directories is group-writeable.
* configure.ac (AC_CHECK_FUNCS): Add lchown.
* lib/security.c (init_security): Record initial real and effective
group IDs as well as user IDs.
(drop_effective_privs, regain_effective_privs): Update gid.
* lib/xchown.c (xlchown) [HAVE_LCHOWN]: New function.
* lib/xchown.c (xlchown) [HAVE_LCHOWN]: Add prototype.
* m4/man-arg-setuid.m4: Set man_mode to 6755 rather than 4755 in the
--enable-setuid case.
* src/Makefile.am (install-exec-hook): Check for man_mode being 6755
rather than 4755. Set the group of man and mandb as well as their
owner.
* src/check_mandirs.c (chown_if_possible): New function. This is
somewhat more careful than previous implementations, changes the group
as well as the user if possible, and prefers lchown if it is available.
(mkcatdirs): Drop S_ISGID from cat directories. Use chown_if_possible.
(fix_permissions, fix_permissions_tree): New functions to remove setgid
bit from existing cat directories.
(testmandirs): Call fix_permissions_tree.
* src/check_mandirs.h (chown_if_possible): Add prototype.
* src/man.c (commit_tmp_cat): Set cat file group as well as owner.
* src/mandb.c (check_chown): Remove.
(do_chown): Stop taking a uid parameter. Use chown_if_possible.
(mandb): Use chown_if_possible for CACHEDIR.TAG. Set ownership and
permissions of CACHEDIR.TAG even if it already exists.
(process_manpath): Set ownership of database files even if they have not
been changed.
2016-12-10 Colin Watson <cjwatson@debian.org>
Make --disable-cache-owner imply --disable-setuid
* m4/man-arg-setuid.m4: Set man_mode="755" if --disable-cache-owner was
given and neither --enable-setuid nor --disable-setuid was given.
2016-12-10 Colin Watson <cjwatson@debian.org>
Update manual for cache-owner/setuid changes
* manual/intro.me (Arguments to configure): Add --enable-cache-owner and
--disable-cache-owner. Remove --enable-setuid[=ARG]. Adjust
description of --disable-setuid.
* manual/misc.me (Modes of operation): Add --disable-cache-owner to the
non-setuid modes. Mention --enable-setuid rather than
--enable-setuid=USER.
* README (Non-generic arguments to configure): Update.
2016-12-10 Colin Watson <cjwatson@debian.org>
Allocate dbpaths on the heap rather than the stack
process_manpath's stack may have gone out of scope by the time cleanup
functions are called.
* src/mandb.c (cleanup): Free dbpaths.
(process_manpath): Allocate dbpaths on the heap.
2016-12-10 Colin Watson <cjwatson@debian.org>
Handle cleanup stack more safely
If push_cleanup was called unexpectedly between a
push_cleanup/pop_cleanup pair, then the pop_cleanup would remove the
wrong cleanup function and chaos could ensue. Avoid this by being more
precise about which cleanup function should be popped.
* lib/cleanup.c (pop_cleanup): Take "fun" and "arg" arguments. Pop the
topmost matching function from the stack, rather than just the topmost
function. Update all callers and prototypes.
2016-12-09 Colin Watson <cjwatson@debian.org>
Upgrade config.guess/config.sub
* build-aux/config.guess: Upgrade to 2016-10-02.
* build-aux/config.sub: Upgrade to 2016-11-04.
2016-12-09 Colin Watson <cjwatson@debian.org>
Separate cache owner from --enable-setuid option
It's useful to have a notion of the cache owner even when man is not
installed setuid. --enable-setuid no longer takes an argument, and the
owner is now set by the --enable-cache-owner option instead.
* m4/man-arg-cache-owner.m4: New file.
* m4/man-arg-setuid.m4: Stop accepting an argument. Only set man_mode,
not man_owner.
* configure.ac: Call MAN_ARG_CACHE_OWNER.
* src/Makefile.am (install-exec-hook): Only chown man and mandb if
man_mode is 4755 (as well as the existing test for man_owner being
non-empty).
2016-11-21 Colin Watson <cjwatson@debian.org>
Restore ylwrap to distribution
* Makefile.in (am__DIST_COMMON): Regenerate to add build-aux/ylwrap back
again, since it mysteriously went missing in the last regeneration.
2016-11-21 Colin Watson <cjwatson@debian.org>
Update translation files
* po/man-db.pot, po/*.po: Update.
2016-11-21 Colin Watson <cjwatson@debian.org>
Upgrade to Libtool 2.4.6-2 (from Debian)
2016-11-21 Colin Watson <cjwatson@debian.org>
Upgrade config.guess/config.sub
* build-aux/config.guess: Upgrade to 2016-04-02.
* build-aux/config.sub: Upgrade to 2016-03-30.
2016-11-20 Mihail Konev <k.mvc@ya.ru>
src/tests: Fix testsuite
* src/tests/man-9: Set MANPATH.
2016-11-20 Mihail Konev <k.mvc@ya.ru>
man(1): Fix gcc warnings
* lib/xchown.c: New file.
* lib/xchown.h: New file.
* lib/Makefile.am (libman_la_SOURCES): Add xchown.c and xchown.h.
* po/POTFILES.in: Add lib/xchown.c.
* src/check_mandirs.c (mkcatdirs): Call xchown instead of chown.
* src/man.c (format_display): Ignore errors from chdir ("/").
2016-11-20 Colin Watson <cjwatson@debian.org>
Make split_page_name allocate its own memory
* src/man.c (split_page_name): Allocate *ret_name and *ret_section here.
Simplify using xstrdup and xstrndup.
(man): Remove allocation of page_name and page_section.
2016-11-20 Mihail Konev <k.mvc@ya.ru>
man(1): add .N names
`man chmod.2` is now the same as `man 2 chmod`
* src/man.c (split_page_name): New function.
(locate_page_in_manpath): New function.
(man): Factor out common locate_page loop into locate_page_in_manpath.
Add name/section splitting logic.
* src/tests/man-11: New file.
* src/tests/Makefile.am (ALL_TESTS): Add man-11.
* man/man1/man.man1 (SYNOPSIS): Document <page>.<section> form.
(EXAMPLES): Likewise.
2016-10-04 Colin Watson <cjwatson@debian.org>
Fix formatting error in Swedish translation
* man/po4a/po/sv.po: Translate "\\(rq" as itself rather than as "\\(".
2016-10-04 Colin Watson <cjwatson@debian.org>
Rename some anomalous x* functions
The usual (though not universal) pattern in gnulib is for xfoo to mean
"foo or exit". Rename x* to check_* so that they don't conflict with
this.
* src/mandb.c (xremove): Rename to ...
(check_remove): ... this.
(xrename): Rename to ...
(check_rename): ... this.
(xchmod): Rename to ...
(check_chmod): ... this.
(xchown): Rename to ...
(check_chown): ... this.
2016-05-16 Colin Watson <cjwatson@debian.org>
man(1): Fix incorrect font
* man/man1/man.man1 (SYNOPSIS): Make "--regex" bold. Thanks to Paul
Townsend.
* man/po4a/po/man-db-manpages.pot, man/po4a/po/*.po: Update; unfuzzy all
translations.
2016-05-16 Colin Watson <cjwatson@debian.org>
* man/po4a/po/man-db-manpages.pot, man/po4a/po/*.po: Update.
2016-02-04 Colin Watson <cjwatson@debian.org>
Note caveat with "man -K"
* man/man1/man.man1 (Main modes of operation): Note that -K searches
page source. Fixes Debian bug #813665.
2016-01-02 Sebastian Rasmussen <sebras@gmail.com>
* po/sv.po: Add missing translator credit comment.
2016-01-02 Colin Watson <cjwatson@debian.org>
Fix warnings with Perl 5.22
* man/po4a/Locale/Po4a/Manext.pm (shiftline, translate): Escape braces
in regular expressions.
2016-01-02 Colin Watson <cjwatson@debian.org>
Add Swedish manual page translation
* man/po4a/po/sv.po: New from Translation Project (thanks, Sebastian
Rasmussen).
* configure.ac (AC_CONFIG_FILES): Add man/sv/Makefile.
* man/LINGUAS.po4a: Add sv.
* man/Makefile.am (DIST_SUBDIRS): Add sv.
* man/sv/Makefile.am, man/sv/translator.add: New files.
* man/po4a/Makefile.am (POFILES): Add po/sv.po.
* man/po4a/po4a.cfg (po4a_langs): Add sv.
* man/THANKS: Add translator credit.
* .gitignore: Add man/sv/man1, man/sv/man5, and man/sv/man8.
2015-12-31 Colin Watson <cjwatson@debian.org>
Upgrade to pkg-config 0.29.
2015-12-26 Sebastian Rasmussen <sebras@gmail.com>
Update Swedish translation
* po/sv.po: Update from Translation Project.
* man/THANKS: Add translator credit.
2015-12-07 Colin Watson <cjwatson@debian.org>
Simplify database path handling in mandb
* src/mandb.c (struct dbpaths): Unconstify xtmpfile.
(finish_up): Free dbpaths->xtmpfile.
(cleanup): Update header comment. Remove unnecessary checks before
frees. Free all database paths for all database types, not just
GDBM. Free dbpaths->xtmpfile.
(mandb): Copy content of database to dbpaths->xtmpfile rather than
just copying the pointer.
2015-12-07 Colin Watson <cjwatson@debian.org>
Move some database paths out of global variables
* src/mandb.c (struct dbpaths): New structure.
(finish_up, do_chown, cleanup_sigsafe, cleanup, mandb): Take dbpaths
argument.
(process_manpath): Allocate dbpaths on the stack, zero it, and pass
it to functions that need it.
2015-12-07 Colin Watson <cjwatson@debian.org>
Remove lots of unnecessary inline qualifiers
It's 2015. The compiler almost certainly knows better than we do.
* lib/security.c (gripe_set_euid): Remove inline qualifier.
* libdb/db_btree.c (btree_findkey): Likewise.
* libdb/mydbm.h (gdbm_exists): Likewise.
* src/catman.c (catman): Remove obsolete comment.
(add_arg, check_access): Remove inline qualifier.
* src/check_mandirs.c (add_dir_entries): Likewise.
* src/man.c (gripe_system, gripe_no_man, manopt_to_env, escape_less,
is_section, do_prompt, gripe_converting_name): Likewise.
* src/mandb.c (xremove, xrename, xchmod, finish_up, xchown,
do_chown, update_db_wrapper): Likewise.
* src/manp.c (gripe_reading_mp_config, gripe_stat_file,
gripe_not_directory, has_mandir, fsstnd): Likewise.
* src/whatis.c (do_whatis_section): Likewise.
2015-11-06 Colin Watson <cjwatson@debian.org>
Belatedly update NEWS date.
* Version: 2.7.5.
* NEWS: Document changes since 2.7.4.
2015-11-06 Colin Watson <cjwatson@debian.org>
Build text manual with LC_ALL=C
nroff's UTF-8 output is a bit wonky in this case, but ASCII will do
fine.
* manual/Makefile.am (.pp.cat): Set LC_ALL=C.
2015-11-05 Colin Watson <cjwatson@debian.org>
Disable roff input insertion with --recode
Reported by Bjarni Ingi Gislason. Fixes Debian bug #751795.
* src/man.c (display): Don't insert roff input for --no-hyphenation,
--no-justification, or locale macros when the --recode option is used.
2015-11-05 Colin Watson <cjwatson@debian.org>
Adjust line number when inserting extra roff input
Reported by Bjarni Ingi Gislason. Fixes Debian bug #789219.
* src/man.c (heirloom_line_length, disable_hyphenation,
disable_justification, locale_macros): Emit ".lf 1" after inserted roff
input.
* src/zsoelim.l: Accept .lf without a file name argument.
2015-10-19 Colin Watson <cjwatson@debian.org>
Make a mandb error message clearer
* src/mandb.c (xcopy): Say which file name we failed to fopen.
2015-10-08 Colin Watson <cjwatson@debian.org>
Fix Plural-Forms header in Catalan translation
* po/ca.po (Plural-Forms): Add missing semicolon.
2015-10-08 Colin Watson <cjwatson@debian.org>
* Version: 2.7.4.
2015-10-08 Colin Watson <cjwatson@debian.org>
man: Honour MANWIDTH in conjunction with -Z
* src/man.c (get_roff_line_length): Also consider line_length if
ditroff is set.
(make_roff_command): Try add_roff_line_length regardless of troff.
The line length is passed to the macro package, not to the output
device, although get_roff_line_length will still sometimes not use
it (e.g. if using the "ps" device). Fixes Debian bug #801241.
* NEWS: Document this.
2015-10-08 Colin Watson <cjwatson@debian.org>
man: Exit 3 if formatter exits non-zero
* src/man.c (format_display): Keep track of exit statuses from both
format_cmd and disp_cmd, and exit CHILD_FAIL if either is non-zero
and non-SIGPIPE. Fixes Debian bug #801261.
* NEWS: Document this.
2015-09-22 Colin Watson <cjwatson@debian.org>
Fix replace.sed prerequisite syntax
Suffix rules may not have prerequisites. Thanks to Nikola Forró; fixes
Fedora bug #1263930.
* man/Rules.man: Declare dependency of $(MANS) on replace.sed
separately rather than trying to do so in suffix rules.
* NEWS: Document this.
2015-09-22 Colin Watson <cjwatson@debian.org>
Fix crash in manpath deduplication
* src/manp.c (create_pathlist): Handle NULL return from
canonicalize_file_name.
* NEWS: Document this.
2015-09-22 Colin Watson <cjwatson@debian.org>
Upgrade config.guess/config.sub
* build-aux/config.guess, build-aux/config.sub: Upgrade to
2015-08-20.
2015-09-21 Nikola Forró <nforro@redhat.com>
Fix typos in italian manpath man page
2015-09-16 zwpwjwtz <zwpwjwtz@126.com>
Update Simplified Chinese manual page translation
* man/po4a/po/zh_CN.po: Update from Translation Project.
* man/THANKS: Add translator credit.
2015-09-09 Colin Watson <cjwatson@debian.org>
* Version: 2.7.3.
2015-09-09 Colin Watson <cjwatson@debian.org>
Pacify gcc -Wlogical-not-parentheses
* src/man.c (find_cat_file): Add extra parentheses around
logical-not on the LHS of a comparison.
* lib/util.c (is_changed): Likewise in header comment.
2015-09-09 OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Restore the ability to use 'man -a' noninteractively
Fixes Debian bug #798094.
* src/man.c (do_prompt): Return 0 immediately (i.e. view) if neither
stdin nor stdout is a tty.
* NEWS: Document this.
2015-09-09 Mike Frysinger <vapier@gentoo.org>
Fix crash when current directory is unreadable
Fixes Savannah bug #45861.
* src/man.c (make_display_command): Check have_cwd before trying to
use cwd.
* NEWS: Document this.
2015-09-09 Colin Watson <cjwatson@debian.org>
Document squeeze-blank-lines fix
* NEWS: Document Rafael's squeeze-blank-lines fix.
2015-09-09 Colin Watson <cjwatson@debian.org>
Fix use-after-free in ult_src
Reported by Hanno Boeck. Fixes Savannah bug #45854.
* src/ult_src.c (ult_src): Take a copy of base when recursing rather
than passing it directly as the new name argument, since it may be
freed by the recursive call.
* NEWS: Document this.
2015-09-09 Colin Watson <cjwatson@debian.org>
Remove unnecessary check before free
* src/ult_src.c (ult_src): Don't check whether base is non-NULL
before freeing it.
2015-08-30 Rafael Kitover <rkitover@gmail.com>
Squeeze blank lines internally instead of pager -s
Add a pipecmd in make_display_command to combine multiple blank lines in
the output into one, which is what e.g. less -s does.
Stop automatically appending -s to pager command in configure.
Fixes Debian bug #796584.
* configure.ac: Stop automatically appending -s to pager command.
* src/man.c (squeeze_blank_lines): New function.
(make_display_command): Add squeeze_blank_lines to display pipeline.
2015-08-29 Colin Watson <cjwatson@debian.org>
Make sure CACHEDIR.TAG has correct ownership
* src/mandb.c (mandb): Change CACHEDIR.TAG's owner to
man_owner->pw_uid when running as root in global manpaths.
(process_manpath): Pass global_manpath to mandb.
2015-08-29 Colin Watson <cjwatson@debian.org>
Rewrite CACHEDIR.TAG and databases if they cannot be read
Fixes Debian bug #797019.
* src/mandb.c (mandb): Rewrite CACHEDIR.TAG and databases if they
cannot be read (probably due to incorrect ownership).
* NEWS: Document this.
2015-08-22 Colin Watson <cjwatson@debian.org>
Try to get terminal width from /dev/tty
If man is running within something like lesspipe, then there may be
a current tty that neither stdin nor stdout points to. Try to get
hold of it using /dev/tty. Fixes Fedora bug #1255930.
* lib/linelength.c (get_line_length): Try /dev/tty before either
stdout or stdin.
* NEWS: Document this.
2015-08-16 Colin Watson <cjwatson@debian.org>
* Version: 2.7.2.
2015-08-16 Jordi Mallach <jordi@gnu.org>
* po/ca.po: Update from Translation Project.
2015-08-16 Colin Watson <cjwatson@debian.org>
Upgrade to Automake 1:1.15-3 (from Debian).
* NEWS: Document a couple more changes since 2.7.1.
2015-08-02 Colin Watson <cjwatson@debian.org>
Upgrade to Automake 1.15.
2015-08-02 Colin Watson <cjwatson@debian.org>
Fix inaccurate description of "man -f"
It's equivalent to "whatis", not "whatis -r". Fixes Fedora
bug #1249377.
* man/man1/man.man1 (EXAMPLES): "man -k" and "man -f" are equivalent to
"apropos" and "whatis" respectively, not "apropos -r" and "whatis -r".
* man/po4a/po/man-db-manpages.pot, man/po4a/po/*.po: Update; unfuzzy all
translations.
2015-08-02 Lauri Nurmi <lanurmi@iki.fi>
* po/fi.po: Update from Translation Project.
2015-04-08 Colin Watson <cjwatson@debian.org>
Allow using GDBM's NDBM compatibility layer
This isn't very useful in practice since anyone using this could just
use GDBM directly instead, but it's helpful for testing.
* configure.ac: Check for gdbm-ndbm.h and libgdbm_compat.
2015-04-08 Colin Watson <cjwatson@debian.org>
Clean up freeing of datum structures
* libdb/mydbm.h (MYDBM_FREE): Remove.
(MYDBM_FREE_DPTR): New macro. This zeros the data pointer to avoid
double-free problems.
* libdb/db_delete.c (dbdelete): Use MYDBM_FREE_DPTR.
* libdb/db_gdbm.c (man_gdbm_open_wrapper, sortkey_hashtable_free):
Likewise.
* libdb/db_lookup.c (dblookup, dblookup_pattern): Likewise.
* libdb/db_store.c (dbstore): Likewise.
* libdb/db_ver.c (dbver_rd, dbver_wr): Likewise.
* src/accessdb.c (main): Likewise.
* src/catman.c (parse_for_sec): Likewise.
* src/check_mandirs.c (sanity_check_db, purge_pointers, purge_missing):
Likewise.
* src/whatis.c (do_apropos): Likewise.
2015-04-08 Colin Watson <cjwatson@debian.org>
Stop storing the database handle in a global variable
Fixes Ubuntu bug #1304261.
* libdb/db_delete.c (dbdelete): Take a dbf parameter. Update all
callers and prototypes.
* libdb/db_lookup.c (dblookup, dblookup_all, dblookup_exact,
dblookup_pattern): Likewise.
* libdb/db_store.c (replace_if_necessary, dbstore): Likewise.
* src/check_mandirs.c (test_manfile, add_dir_entries, sanity_check_db,
purge_pointers, purge_normal, purge_whatis): Likewise.
* src/descriptions_store.c (store_descriptions): Likewise.
* src/straycats.c (check_for_stray, open_catdir): Likewise.
* src/whatis.c (resolve_pointers, display, do_whatis_section, do_whatis,
do_apropos): Likewise.
* src/accessdb.c (main): Declare dbf here rather than at file scope.
* src/catman.c (parse_for_sec): Likewise.
* src/check_mandirs.c (testmandirs, update_db_time, update_db,
purge_missing): Likewise.
* src/man.c (dbdelete_wrapper, try_db): Likewise.
* src/mandb.c (update_one_file): Likewise.
* src/straycats.c (straycats): Likewise.
* src/whatis.c (search): Likewise.
* libdb/mydbm.h (dbf): Remove.
* src/catman.c (dbf): Rename to ...
(dbf_close_post_fork): ... this.
(rdopen_db): Merge into ...
(parse_for_sec): ... here.
2015-03-05 Colin Watson <cjwatson@debian.org>
man: Avoid dubious use of freopen to reopen base streams
freopen doesn't actually work properly when base streams have been
closed (at least with glibc), and it seems better to simply refuse to
operate in such a non-conforming environment.
* src/man.c (check_standard_fds): New function.
(main): Call it rather than using freopen.
2014-11-16 Colin Watson <cjwatson@debian.org>
Allow building from git without gnulib-tool
Since we don't want to keep Gnulib translations in revision control,
we need gnulib-tool on $PATH when generating the build system in
order to fetch them, but it's unnecessarily awkward to require
everyone to have this just in order to build man-db from git. Allow
building without this, although it is still required for "make
dist".
* configure.ac: No longer issue an error if gnulib/po/Makefile.in.in
is missing. Instead, set the Automake conditional HAVE_GNULIB_PO to
true if and only if gnulib/po/POTFILES.in exists, and only create
gnulib/po/Makefile.in if gnulib/po/Makefile.in.in exists.
* Makefile.am (SUBDIRS): Only include gnulib/po if HAVE_GNULIB_PO is
true.
2014-11-14 Colin Watson <cjwatson@debian.org>
apropos/whatis: Don't truncate names if long output was requested
* src/whatis.c (display): Leave page_name intact if long_output is
true. Reported by Calle Erlandsson.
2014-11-11 David Prévot <david@tilapin.org>
* man/po4a/po/fr.po: Update from Translation Project.
2014-11-08 Colin Watson <cjwatson@debian.org>
Pass -l through to apropos/whatis
Fixes Fedora bug #1161747.
* src/man.c (do_extern): Pass the -l option through.
2014-11-07 Colin Watson <cjwatson@debian.org>
* Version: 2.7.1.
2014-10-27 Colin Watson <cjwatson@debian.org>
Send 'man -a' prompts to /dev/tty
Fixes Debian bug #766113.
* src/man.c (locale_macros): Write prompts to and read replies from
/dev/tty, rather than stderr and stdin respectively.
* NEWS: Document this.
2014-10-27 Colin Watson <cjwatson@debian.org>
Make man run correctly from a deleted directory
Fixes Debian bug #764384.
* gnulib: Import save-cwd module.
* src/man.c (make_display_command): Use pipecmd_fchdir rather than
pipecmd_chdir if the working directory was saved using a file
descriptor.
(format_display, main): Save current working directory using
save_cwd rather than xgetcwd.
(format_display, local_man_loop, main): Restore previous working
directory using restore_cwd rather than chdir.
* src/tests/man-10: New file.
* src/tests/Makefile.am (TESTS_ENVIRONMENT): Insert the parent
directory into $PATH using an absolute path rather than a relative
one. Export abs_top_builddir rather than top_builddir.
(ALL_TESTS): Add man-10.
* src/tests/testlib.sh (init): Set abstmpdir. Adjust tests to use
this where applicable.
(run): Call libtool using an absolute path.
(skip): Remove abstmpdir.
(finish): Remove abstmpdir rather than tmpdir.
* configure.ac: Require libpipeline >= 1.4.0.
* NEWS: Document this.
2014-10-23 Colin Watson <cjwatson@debian.org>
NEWS: Document recent Solaris portability changes
2014-10-23 Colin Watson <cjwatson@debian.org>
Fix linking of fspause on Solaris
* src/tests/fspause.c (main): Set program_name. Patch by Peter Bray.
2014-10-23 Colin Watson <cjwatson@debian.org>
autogen.sh: Avoid "export VARIABLE=value" syntax
Older Solaris shells do not support this. Patch by Peter Bray.
2014-10-23 Colin Watson <cjwatson@debian.org>
gnulib: Import strcasestr module.
Suggested by Peter Bray.
2014-10-05 Joe Hansen <joedalton2@yahoo.dk>
* man/po4a/po/da.po: Update from Translation Project.
2014-09-28 Colin Watson <cjwatson@debian.org>
* Version: 2.7.0.2.
2014-09-28 Colin Watson <cjwatson@debian.org>
Work around lack of UTIME_* on GNU/Hurd
* gnulib/fdutimens-hurd.patch: New file.
* autogen.sh: Apply gnulib/fdutimens-hurd.patch.
* NEWS: Document this.
2014-09-27 Colin Watson <cjwatson@debian.org>
Avoid using or double-closing closed database handles
Thanks to Andreas Radke and Bruce Dubbs for reporting, and to
Andreas Radke for testing.
* src/check_mandirs.c (testmandirs): Close dbf if necessary before
(re-)opening it. Zero out dbf after closing it.
(update_db_time, purge_missing): Zero out dbf after closing it.
* src/man.c (dbdelete_wrapper, try_db): Likewise.
* src/mandb.c (update_one_file): Likewise.
* src/straycats.c (straycats): Likewise.
* src/whatis.c (search): Likewise.
* NEWS: Document this.
2014-09-24 Colin Watson <cjwatson@debian.org>
* Version: 2.7.0.1.
* Makefile.am (EXTRA_DIST): Add gnulib/m4/sockpfaf.m4.
2014-09-24 Colin Watson <cjwatson@debian.org>
Fix tests when build fs does not support high-precision timestamps
* gnulib: Import nanosleep module.
* configure.ac: Remove STAT_HAS_NSEC substitution.
* src/tests/Makefile.am (TESTS_ENVIRONMENT): Stop exporting
STAT_HAS_NSEC.
(AM_CPPFLAGS, AM_CFLAGS, check_PROGRAMS, fspause_SOURCES,
fspause_LDADD): Add.
* src/tests/fspause.c: New file.
* src/tests/mandb-2, src/tests/mandb-3, src/tests/mandb-4,
src/tests/mandb-5: Call ./fspause rather than next_second.
* src/tests/testlib.sh (next_second): Remove.
* .gitignore: Add src/tests/.deps and src/tests/fspause.
* NEWS: Document this.
2014-09-22 Colin Watson <cjwatson@debian.org>
* Version: 2.7.0.
2014-09-19 Yuri Kozlov <yuray@komyakino.ru>
* man/po4a/po/ru.po: Update from Translation Project.
2014-09-18 Mario Blättermann <mario.blaettermann@gmail.com>
* man/po4a/po/de.po: Update from Translation Project.
2014-09-18 Robert Luberda <robert@debian.org>
* man/po4a/po/pl.po: Update from Translation Project.
2014-09-18 Colin Watson <cjwatson@debian.org>
Move zsoelim to pkglibexecdir
This avoids clashes with other packages; for example, Slackware's groff
package installs zsoelim as a symlink to soelim.
* src/Makefile.am (bin_PROGRAMS): Move zsoelim to ...
(pkglibexec_PROGRAMS): ... here.
(AM_CPPFLAGS): Adjust ZSOELIM definition to match.
* NEWS: Document this.
2014-09-18 Colin Watson <cjwatson@debian.org>
Rename SOELIM definition to ZSOELIM for clarity
* src/Makefile.am (AM_CPPFLAGS): Define ZSOELIM rather than SOELIM.
* src/man.c (make_roff_command): Use ZSOELIM rather than SOELIM.
2014-09-17 Colin Watson <cjwatson@debian.org>
Make sure that generated shared libraries have no undefined symbols
Based on a change found in
https://github.com/Alexpux/MSYS2-packages/tree/master/man-db.
* lib/Makefile.am (libman_la_LDFLAGS): Add -no-undefined.
* libdb/Makefile.am (libmandb_la_LDFLAGS): Add -no-undefined.
2014-09-17 Colin Watson <cjwatson@debian.org>
Correct a couple of comments in m4/man-arg-*.m4
* m4/man-arg-automatic-update.m4: Correct header comment.
* m4/man-arg-systemdtmpfilesdir.m4: Likewise.
2014-09-17 Colin Watson <cjwatson@debian.org>
Fix "cannot adjust line" warning when formatting db.me
* manual/db.me (Contents of an index database): Insert several
zero-width break points in descriptions of entry formats.
2014-09-17 Colin Watson <cjwatson@debian.org>
Show a better error message if no browser is configured
Fixes Savannah bug #37814.
* src/man.c (format_display): Adjust error message if html_pager is
NULL or the empty string.
* NEWS: Document this.
2014-09-17 Colin Watson <cjwatson@debian.org>
Don't store canonicalised versions of manpath elements
We still compare canonicalised versions, but don't store them.
Storing them results in looking up the wrong catpath in the case
where one of the configured MANDB_MAP entries is a symlink.
Broken by commit 01e5a4febfc7b6cd53991455315ae7744c8f31dd; fixes
Fedora bug #1043401.
* src/manp.c (create_pathlist): Compare canonicalised versions of
manpath elements, but don't store them.
* NEWS: Document this.
2014-09-16 Colin Watson <cjwatson@debian.org>
Don't use pointed-to name as title for database-located pages
For a pointer record, the pointed-from name is a legitimate alias
for the located page, and is likely to be closer to the name that
the user requested.
Fixes Debian bug #709405.
* src/man.c (display_database): Don't use the pointed-to name to
construct the title for display.
2014-09-16 Colin Watson <cjwatson@debian.org>
* Version: 2.7.0-pre1.
2014-09-16 Colin Watson <cjwatson@debian.org>
Fix distcheck following addition of systemd tmpfiles snippet
* Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): Add
--with-systemdtmpfilesdir=\$${prefix}/lib/tmpfiles.d.
2014-09-16 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Formatting improvements to man(1)
Fixes Debian bug #726266.
* man/man1/man.man1: Protect "." at beginning or end of strings with
"\&". Start sentences on new lines. Insert italic corrections
between adjacent italic and roman characters. Use double quotation
marks around arguments rather than placing "\ " between strings.
* man/po4a/po/man-db-manpages.pot, man/po4a/po/*.po: Update.
2014-09-16 Colin Watson <cjwatson@debian.org>
Prioritise COLUMNS above TIOCGWINSZ
Fixes Ubuntu bug #1315282.
* lib/linelength.c (get_line_length): Prioritise COLUMNS above
TIOCGWINSZ.
* man/man1/apropos.man1 (DESCRIPTION): Describe new terminal width
priorities.
* man/man1/man.man1 (DESCRIPTION): Likewise.
* man/man1/whatis.man1 (DESCRIPTION): Likewise.
* man/po4a/po/man-db-manpages.pot, man/po4a/po/*.po: Update.
* NEWS: Document this.
2014-09-16 Colin Watson <cjwatson@debian.org>
Use xnrealloc rather than xrealloc in a few more places
* src/catman.c (parse_opt): Use xnrealloc rather than xrealloc.
* src/globbing.c (update_directory_cache): Likewise.
* src/ult_src.c (ult_trace): Likewise.
2014-09-16 Colin Watson <cjwatson@debian.org>
Order files by first physical extent before reading
Inspired by a similar change in dpkg. This takes 'mandb -c' from
104 to 32 seconds in a test installation, and 'man -K' from 74 to 38
seconds. On non-Linux systems where FIEMAP is not available, use
posix_fadvise instead to preload files.
Fixes Debian bug #574410.
* gnulib: Import nonblocking and openat modules.
* configure.ac: Check for <linux/fiemap.h> and posix_fadvise.
* lib/orderfiles.c: New file.
* lib/orderfiles.h: New file.
* lib/Makefile.am (libman_la_SOURCES): Add orderfiles.c and
orderfiles.h.
* src/check_mandirs.c (add_dir_entries): Order files before reading
them.
* src/man.c (try_section, do_global_apropos_section): Likewise.
* src/straycats.c (check_for_stray): Likewise.
* NEWS: Document this.
2014-09-16 Colin Watson <cjwatson@debian.org>
* NEWS: Document a couple more changes since 2.6.7.1.
2014-09-16 Colin Watson <cjwatson@debian.org>
Merge convert_name into man.c
* src/convert_name.c (gripe_converting_name): Move to ...
* src/man.c (gripe_converting_name): ... here.
* src/convert_name.c (convert_name): Move to ...
* src/man.c (convert_name): ... here. Make static.
* src/convert_name.h: Remove.
* src/Makefile.am (man_SOURCES): Remove convert_name.c and
convert_name.h.
* po/POTFILES.in: Remove src/convert_name.c.
* po/man-db.pot, po/*.po: Update.
2014-09-16 Colin Watson <cjwatson@debian.org>
* tools/README: Update heading to reflect moves to build-aux.
2014-09-16 Colin Watson <cjwatson@debian.org>
Make a few libdb functions static
* libdb/db_lookup.c (copy_if_set, split_data): Make static.
(make_content): Move to ...
* libdb/db_store.c (make_content): ... here. Make static.
* libdb/db_storage.h (split_data, make_content, copy_if_set): Remove
prototypes.
2014-09-16 Colin Watson <cjwatson@debian.org>
Make various functions static
These functions are only used within the same compilation unit, so
have no need for external linkage.
* src/check_mandirs.c (sanity_check_db): Make static.
* src/mandb.c (is_lang_dir, tried_catdirs_free, purge_catdir,
purge_catsubdirs, purge_catdirs): Likewise.
* src/zsoelim.l (try_compressed): Likewise.
2014-09-16 Colin Watson <cjwatson@debian.org>
Remove unused code in lexgrog
* src/lexgrog.l (rule_profile): Remove unused function and
associated global declarations.
2014-09-16 Colin Watson <cjwatson@debian.org>
Reorder functions in man to remove need for header file
man.h was only needed because of some poor function ordering in man.c.
Reorder functions so that definition comes before use, except in one
case of mutual recursion.
* src/man.c (main): Move to end of file.
(local_man_loop): Move to immediately before man.
(man): Add a prototype declaration just before local_man_loop, to
cope with mutual recursion.
(do_prompt): Move to immediately above display.
* src/man.h: Remove.
* src/Makefile.am (man_SOURCES): Remove man.h.
2014-09-15 Colin Watson <cjwatson@debian.org>
Move argument handling out of configure to new MAN_ARG_* macros
* m4/man-arg-automatic-create.m4, m4/man-arg-automatic-update.m4,
m4/man-arg-cats.m4, m4/man-arg-config-file.m4, m4/man-arg-db.m4,
m4/man-arg-device.m4, m4/man-arg-mandirs.m4,
m4/man-arg-override-dir.m4, m4/man-arg-sections.m4,
m4/man-arg-setuid.m4, m4/man-arg-systemdtmpfilesdir.m4,
m4/man-arg-undoc.m4: New files.
* configure.ac: Call new macros rather than inlining argument
handling.
2014-09-15 Colin Watson <cjwatson@debian.org>
* build-aux/config.sub: Upgrade to 2014-09-11.
2014-09-13 Colin Watson <cjwatson@debian.org>
Simplify <dirent.h> handling using Gnulib
* gnulib: Import dirent module.
* configure.ac: Remove obsolescent AC_HEADER_DIRENT macro.
* src/check_mandirs.c: Simplify a large conditional block to
"#include <dirent.h>".
* src/straycats.c: Likewise.
* src/ult_src.c: Likewise.
2014-09-13 Colin Watson <cjwatson@debian.org>
Remove old and broken FAST_BTREE code
This was marked as experimental and broken when I took over man-db
13 years ago, and I've hardly touched it. There's no point in
keeping it around.
* include/manconfig.h.in (FAST_BTREE): Remove commented definition.
* libdb/db_btree.c (test_insert, gripe_get, dbstore, dblookup):
Remove.
(btree_flopen): Expand B_FLAGS macro.
(btree_replace): Remove FAST_BTREE case.
* libdb/db_lookup.c (dblookup): Define unconditionally.
* libdb/db_store.c (dbstore): Likewise.
2014-09-11 Colin Watson <cjwatson@debian.org>
Speed up the test suite if we have high-precision file timestamps
* configure.ac: Substitute STAT_HAS_NSEC as "yes" or "no" depending
on whether high-precision file timestamps are available.
* src/tests/Makefile.am (TESTS_ENVIRONMENT): Export STAT_HAS_NSEC to
tests.
* src/tests/testlib.sh (next_second): Do nothing if STAT_HAS_NSEC is
"yes".
2014-09-11 Colin Watson <cjwatson@debian.org>
Use high-precision timestamps for manual pages
* lib/util.c (is_changed): Compare high-precision timestamps.
* libdb/db_storage.h (FIELDS): Increment to 10.
(struct mandata): Change "time_t _st_mtime" to "struct timespec
mtime".
* libdb/db_lookup.c (dbprintf): Update mtime display.
(split_content): Store two fields for the mtime (seconds and
nanoseconds).
(make_content): Expect two fields for the mtime.
* libdb/db_store.c (replace_if_necessary): Compare high-precision
timestamps.
* src/check_mandirs.c (test_manfile): Likewise.
* src/man.c (maybe_update_file): Likewise.
* src/straycats.c (check_for_stray): Update initialisation of struct
mandata.
* src/tests/testlib.sh (accessdb_filter): Adjust for new format.
* manual/db.me (Contents of an index database): Describe new format.
(Example database): Update example output.
* NEWS: Document this.
2014-09-10 Colin Watson <cjwatson@debian.org>
Move database mtime out of the database into file metadata
This makes the database reproducible between installations, as long
as the underlying database has predictable behaviour and the set of
installed manual pages (including their timestamps) remains
identical. As a bonus, we now use high-precision times in several
places.
Fixes Debian bug #760895.
* gnulib: Import futimens and timespec modules.
* libdb/db_btree.c (btree_get_time, btree_set_time): New functions.
* libdb/db_gdbm.c (man_gdbm_get_time, man_gdbm_set_time): New
functions.
* libdb/db_ndbm.c (ndbm_get_time, ndbm_set_time): New functions.
* libdb/mydbm.h (man_gdbm_get_time, man_gdbm_set_time,
ndbm_get_time, ndbm_set_time, btree_get_time, btree_set_time): Add
prototypes.
(MYDBM_GET_TIME, MYDBM_SET_TIME): New macros.
* src/check_mandirs.c (testmandirs, create_db, count_glob_matches,
purge_normal, purge_whatis, purge_missing): Use high-precision
times.
(update_db_time): Set file modification times rather than updating a
database row.
(create_db, purge_missing): Get database file modification times
rather than fetching a database row.
(purge_missing): If the new will_run_mandb argument is true, reset
the database mtime to its value before purging; this ensures that
mandb will still run as expected afterwards.
* src/check_mandirs.h (purge_missing): Update prototype.
* src/mandb.c (xcopy): Copy access and modification times.
(process_manpath): Work out in advance of purging whether we will
need to run mandb, and pass that to purge_missing.
* include/manconfig.h.in (VER_ID): Bump to 2.5.0.
(KEY): Remove.
* man/man8/accessdb.man8 (DESCRIPTION), man/it/man8/accessdb.man8
(DESCRIZIONE): Remove sample output, as it is of limited usefulness
compared to how awkward it is to maintain, especially in text
intended for translation.
* man/po4a/po/man-db-manpages.pot, man/po4a/po/*.po: Update.
* manual/db.me (Contents of an index database): Remove mention of
$mtime$.
(Example database): Remove $mtime$. Update $version.
* NEWS: Document this. Bump version to 2.7.0 to correspond to the
database version change.
2014-09-09 Colin Watson <cjwatson@debian.org>
Make update_db_time static
* src/check_mandirs.c (update_db_time): Make this static; its only
uses are within the same file.
* src/check_mandirs.h (update_db_time): Remove prototype.
2014-09-09 Colin Watson <cjwatson@debian.org>
Remove unused reset_db_mtime function
* src/check_mandirs.c (reset_db_mtime): Remove. This function has
been unused since man-db 2.4.2.
* src/check_mandirs.h (reset_db_mtime): Remove prototype.
* src/man.c: Stop including "check_mandirs.h".
2014-09-09 Colin Watson <cjwatson@debian.org>
Don't purge entries from databases that fail sanity checks
* src/check_mandirs.c (purge_missing): Return early if
sanity_check_db fails, for instance in the case of a version
mismatch.
2014-09-09 Colin Watson <cjwatson@debian.org>
Switch away from obsolescent utime function
POSIX.1-2008 marks utime as obsolescent. Switch to variants of the
futimens/utimensat family instead, via Gnulib. Use higher-precision
times for cat pages.
* gnulib: Import stat-time and utimens modules.
* src/man.c (man_modtime): Change type to struct timespec.
(commit_tmp_cat): Use utimens rather than utime.
(display): Store a higher-precision modification timestamp for
man_file.
2014-09-09 Colin Watson <cjwatson@debian.org>
catman: Honour program name transformations
* src/catman.c (parse_for_sec): Execute MAN rather than "man".
2014-09-09 Colin Watson <cjwatson@debian.org>
* man/po4a/po/da.po: Fix po4a syntax error.
2014-09-09 Colin Watson <cjwatson@debian.org>
Various autotools upgrades
* aclocal.m4: Upgrade to pkg-config 0.28.
* build-aux/config.guess: Upgrade to 2014-03-23.
* build-aux/config.sub: Upgrade to 2014-05-01.
* build-aux/ltmain.sh: Upgrade to Libtool 2.4.2-1.10 (from Debian).
2014-08-30 Joe Hansen <joedalton2@yahoo.dk>
* man/po4a/po/da.po: Update from Translation Project.
2014-08-12 Arif E. Nugroho <arif_endro@yahoo.com>
* man/po4a/po/id.po: Update from Translation Project.
2014-08-11 Arif E. Nugroho <arif_endro@yahoo.com>
* po/id.po: Update from Translation Project.
2014-06-18 Colin Watson <cjwatson@debian.org>
Fix cat page parsing (Debian bug #751934)
* src/lexgrog.l (find_name): Run "col -b -p -x" over cat pages if
possible before parsing them.
2014-06-17 Colin Watson <cjwatson@debian.org>
Add systemd tmpfiles snippet to clean up old cat files after a week
Fixes Fedora bug #1110274.
* configure.ac: Accept --with-systemdtmpfilesdir option.
(AC_CONFIG_FILES): Add init/Makefile and init/systemd/Makefile.
* Makefile.am (SUBDIRS): Add init.
* init/Makefile.am: New file.
* init/systemd/Makefile.am: New file.
* init/systemd/man-db.conf: New file.
* .gitignore: Add init/Makefile and init/systemd/Makefile.
2014-06-17 Colin Watson <cjwatson@debian.org>
Squash false positive from -Wmaybe-uninitialized
* src/globbing.c: Initialise pattern_start.
2014-04-10 Colin Watson <cjwatson@debian.org>
* Version: 2.6.7.1.
2014-04-10 Colin Watson <cjwatson@debian.org>
Remove test suite dependency on realpath(1)
* src/tests/mandb-7: Prepend "$(pwd -P)/" to $tmpdir in
configuration files rather than calling realpath.
* NEWS: Document this.
2014-04-10 Colin Watson <cjwatson@debian.org>
* Version: 2.6.7.
* Makefile.am (EXTRA_DIST): Add gnulib/argp-domain.patch.
2014-04-10 Peter Schiffer <pschiffe@redhat.com>
Only create a cache directory tag if catpath != manpath
* src/mandb.c (mandb): Don't create CACHEDIR.TAG if the catpath is
equal to the manpath.
* src/tests/mandb-7: New file.
* src/tests/Makefile.am (ALL_TESTS): Add mandb-7.
* NEWS: Document this.
2014-04-10 Colin Watson <cjwatson@debian.org>
Make cache directory tag creation more readable
* src/mandb.c (mandb): Move cache directory tag string to ...
(CACHEDIR_TAG): ... here (new macro).
2014-03-26 Colin Watson <cjwatson@debian.org>
Run the pager in man's original working directory
Reported by Peng Yu.
* src/man.c (make_display_command): Set pager_cmd's working
directory to man's original working directory.
* configure.ac: Require libpipeline >= 1.3.0.
* NEWS: Document this.
2014-03-26 Colin Watson <cjwatson@debian.org>
Upgrade to Automake 1:1.14.1-3 (from Debian).
2014-03-20 Mario Blättermann <mario.blaettermann@gmail.com>
Update German manual page translation
* man/po4a/po/de.po: Update from Translation Project.
* man/THANKS: Add translator credit.
2014-03-17 Robert Luberda <robert@debian.org>
* man/po4a/po/pl.po: Update from Translation Project.
2014-02-20 Colin Watson <cjwatson@debian.org>
Move Autotools auxiliary build files from tools to build-aux.
This keeps man-db's own tools separate, reducing confusion, and
"build-aux" is a more conventional location for the Autotools files.
2014-02-18 Colin Watson <cjwatson@debian.org>
Upgrade to Gnulib 20140202 and Libtool 2.4.2-1.7 (from Debian).
* lib/appendstr.c (appendstr): Use size_t type for string lengths.
2014-01-23 Colin Watson <cjwatson@debian.org>
Improve compatibility with archaic shells
* src/tests/man-5: Assign and export shell variables in two steps,
for improved compatibility with some archaic shells.
* src/tests/man-7: Likewise.
* src/tests/man-8: Likewise.
* src/tests/zsoelim-1: Likewise.
2014-01-23 Colin Watson <cjwatson@debian.org>
Fix test failure with --enable-undoc
* src/man.c (gripe_no_man): Don't print "See ... for help" message
when MAN_TEST_DISABLE_UNDOCUMENTED is set in the environment.
* src/tests/man-7: Export MAN_TEST_DISABLE_UNDOCUMENTED=1.
* NEWS: Document this.
2014-01-23 Colin Watson <cjwatson@debian.org>
* Version: 2.6.6.
* man/po4a/Makefile.am (all-local): Make staging files writeable.
* README: Update copyright to 2014.
2014-01-23 Colin Watson <cjwatson@debian.org>
Tidy up override directory support slightly
* src/manp.c (insert_override_dir): Drop braces.
(get_manpath_from_path): Standardise whitespace.
* src/tests/Makefile.am (TESTS_ENVIRONMENT): Use Automake-generated
substitution rather than substituting @override_dir@ again.
2014-01-23 Peter Schiffer <pschiffe@redhat.com>
Add support for override directory in search path
* configure.ac: Add --with-override-dir option.
* include/manconfig.h.in (OVERRIDE_DIR): New definition.
* src/manp.c (insert_override_dir): New function.
(get_manpath_from_path): Call it before add_dir_to_list.
* src/tests/man-9: New file.
* src/tests/Makefile.am (TESTS_ENVIRONMENT): Set and export
OVERRIDE_DIR.
(ALL_TESTS): Add man-9.
* NEWS: Document this.
2014-01-23 Colin Watson <cjwatson@debian.org>
Upgrade to Automake 1.14.1 and Libtool 2.4.2-1.6 (from Debian).
2014-01-19 Akihiro Sagawa <sagawa.aki@gmail.com>
Fix macro and hyphenation language handling
* src/man.c (display): Don't free page_lang if it's going to be used
by locale_macros.
* src/tests/man-8: New file.
* src/tests/Makefile.am (ALL_TESTS): Add man-8.
* NEWS: Document this.
2014-01-19 David Prévot <david@tilapin.org>
* man/po4a/po/fr.po: Update from Translation Project.
2014-01-18 Joe Hansen <joedalton2@yahoo.dk>
* man/po4a/po/da.po: Update from Translation Project.
2014-01-16 Yuri Kozlov <yuray@komyakino.ru>
* man/po4a/po/ru.po: Update from Translation Project.
2014-01-16 Colin Watson <cjwatson@debian.org>
* Version: 2.6.6-pre2.
2014-01-16 Мирослав Николић <miroslavnikolic@rocketmail.com>
Add Serbian translation
* po/sr.po: New from Translation Project.
* po/LINGUAS: Add sr.
* man/THANKS: Add translator credit.
2014-01-15 Colin Watson <cjwatson@debian.org>
* man/po4a/po: Update.
2014-01-15 Peter Schiffer <pschiffe@redhat.com>
Synchronise manual pages with usage messages
* man/man1/apropos.man1 (SYNOPSIS): Replace -h with -?.
(OPTIONS): Likewise. Add --usage.
* man/man1/lexgrog.man1 (SYNOPSIS): Add -d. Replace -h with -?.
(OPTIONS): Likewise. Add --usage.
* man/man1/man.man1 (SYNOPSIS): Replace -h with -?.
(OPTIONS): Likewise. Add --path (alias for -w). Add --usage.
* man/man1/manpath.man1 (SYNOPSIS): Replace -h with -?.
(OPTIONS): Likewise. Add --usage.
* man/man1/whatis.man1 (SYNOPSIS): Replace -h with -?.
(OPTIONS): Likewise. Add --usage.
* man/man8/accessdb.man8 (SYNOPSIS): Add -d. Replace -h with -?.
(OPTIONS): Likewise. Add --usage.
* man/man8/catman.man8 (SYNOPSIS): Replace -h with -?.
(OPTIONS): Likewise. Add --usage.
* man/man8/mandb.man8 (SYNOPSIS): Replace -h with -?.
(OPTIONS): Likewise. Add --usage.
2014-01-15 Colin Watson <cjwatson@debian.org>
Fix memory leaks related to make_filename
* src/check_mandirs.c (test_manfile): Remove now-redundant stat.
Free abs_filename.
* src/man.c (display_filesystem): Consolidate return paths.
Consistently free filename.
(display_database): Free file after using it.
(maybe_update_file): Likewise.
2014-01-15 Peter Schiffer <pschiffe@redhat.com>
Silence error messages for stale database entries (Fedora bug #841431)
* src/filenames.c (make_filename): Return NULL if the resulting file
is not readable. Update all callers to handle NULL returns.
* src/tests/man-7: New file.
* src/tests/Makefile.am (ALL_TESTS): Add man-7.
* NEWS: Document this.
2014-01-15 Colin Watson <cjwatson@debian.org>
* src/tests/man-5, src/tests/man-6: Mark executable.
2014-01-13 Robert Luberda <robert@debian.org>
* man/po4a/po/pl.po: Update from Translation Project.
2014-01-13 Colin Watson <cjwatson@debian.org>
Fix domain handling in argp
* gnulib/argp-domain.patch: New file.
* autogen.sh: Apply gnulib/argp-domain.patch.
* NEWS: Document this.
2014-01-12 Trần Ngọc Quân <vnwildman@gmail.com>
* po/vi.po: Update from Translation Project.
2014-01-11 David Prévot <david@tilapin.org>
* man/po4a/po/fr.po: Update from Translation Project.
2014-01-11 Yuri Kozlov <yuray@komyakino.ru>
* man/po4a/po/ru.po: Update from Translation Project.
2014-01-10 Colin Watson <cjwatson@debian.org>
* Version: 2.6.6-pre1.
2014-01-10 Colin Watson <cjwatson@debian.org>
Don't update man/po4a/po/ when nothing has changed
* man/po4a/Makefile.am (DOMAIN): New variable.
(EXTRA_DIST): Use $(DOMAIN).
(STAGING): New variable.
(PO4A_ARGS): Set new "podir" variable.
(RUN_PO4A): New variable.
(all-local): Abbreviate using RUN_PO4A. Copy POT/PO files to
$(STAGING) before running po4a, to avoid updating the master files.
(update-po): Move to ...
(update-po-real): ... here. Abbreviate using RUN_PO4A. Add
--force, since this target is only called when we really want to
update. Copy POT/PO files to $(STAGING) before running po4a, and
only copy them back if the POT file has changed by more than just
the POT-Creation-Date.
(update-po): New rule. Call update-po-real if and only if srcdir =
builddir.
(clean-local): New rule. Remove $(STAGING).
* man/po4a/po4a.cfg (po4a_paths): Refer to $(podir) rather than
$(srcdir)/po4a/po.
* release.sh: Stop removing man/po4a/po/man-db-manpages.pot; this
should no longer be necessary.
2014-01-03 victory <victory.deb@gmail.com>
* po/ja.po: Update from Translation Project.
2013-12-09 Colin Watson <cjwatson@debian.org>
Make it easier to prove that catman option parsing is safe
* src/catman.c (parse_opt): Check sections before assigning to
sections[i]. (Already always safe, but this makes it easier to
prove.)
2013-12-09 Colin Watson <cjwatson@debian.org>
Update documentation for git.
* docs/HACKING (Sending patches): Suggest 'git diff'.
(Revision control): Update for git. Remove comment about
ChangeLog handling for branches.
* NEWS: Document switch to git.
2013-12-09 Colin Watson <cjwatson@debian.org>
gnulib: Import gnupload module.
2013-12-09 Colin Watson <cjwatson@debian.org>
Automatically generate ChangeLog from git
* ChangeLog: Move to ...
* ChangeLog-2013: ... here.
* Makefile.am (EXTRA_DIST): Add ChangeLog-2013.
(dist-hook): Add gen-ChangeLog.
(gen-ChangeLog): New rule, based on that in coreutils.
* gnulib: Import gitlog-to-changelog module.
|