Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

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

	* expand_path.c (expand_path): Fix memory leaks.

2005-09-29  Mark D. Baushke  <mdb@gnu.org>

	* main.c (main): Simplify commitid creation.

	* main.c (main): Not all hosts support O_NOCTTY for open.
	Try to use more random data when time() returns -1.
	
2005-09-29  Derek Price  <derek@ximbiot.com>

	* main.c (main): Check for error return from time().

2005-09-29  Paul Eggert  <eggert@CS.UCLA.EDU>
	    Derek Price  <derek@ximbiot.com>

	* client.c (handle_m, handle_e): Remove incomplete workaround for
	O_NONBLOCK problem; no longer needed because of the fix below.
	* cvs.h (piped_child): New bool argument saying whether O_NONBLOCK
	fix is needed.  All uses changed.
	* rsh-client.c (start_rsh_server): We need the O_NONBLOCK fix,
	so pass 'true' to piped_child to enable the workaround.
	* run.c (work_around_openssh_glitch): New function.
	(piped_child): Use it if the fix is requested.  Avoid call call to
	vfork with undefined behavior.

2005-09-29  Mark D. Baushke  <mdb@gnu.org>

	* main.c (main): Rename N as COMMITID_RAW_SIZE.
	Use base62 encoding for non-urandom case.

2005-09-29  Derek Price  <derek@ximbiot.com>

	* buffer.c (fd_buffer_input), client.c (handle_m, handle_e): Use new
	fd_select in place of select.

	* subr.c: Remove select includes - the sleep functions are now in
	lib.

2005-09-28  Mark D. Baushke  <mdb@gnu.org>

	* main.c (N, RANDOM_BYTES): New constants for base62 conversion.
	(divide_by): Used in base62 conversion.
	(convert): Ditto.
	(main): Set global_session_id using more random data and the
	current time in base62 if possible, otherwise fallback to the old
	method.

2005-09-25  Conrad T. Pino  <Conrad@Pino.com>

	* rcs.c: Use "#ifdef HAVE_FSYNC" just like every where else.

2005-09-25  Conrad T. Pino  <Conrad@Pino.com>

	* buffer.c client.h socket-client.h:  Remove HAVE_WINSOCK_H macro &
	change <winsock.h> to <sys/socket.h> include.

	* server.c:  Remove HAVE_WINSOCK_H and <winsock.h> include.

2005-09-25  Derek Price  <derek@ximbiot.com>

	* rcs.c (rcs_internal_unlockfile): Fsync files before renaming them.
	Patch from Rahul Bhargava <rahul@wandisco.com>.

	* cvs.h, filesubr.c, main.c, server.c:
	s/push_cvs_tmp_dir/push_cvs_temp_dir/.

	* main.c (get_cvs_temp_dir): Use new get_system_temp_dir function.
	(push_env_temp_dir): Move to...
	* filesubr.c (push_env_temp_dir): ...here to split from Windows.
	(get_system_temp_dir): New function.
	* cvs.h (get_cvs_temp_dir, push_env_temp_dir): Add protos.

	* buffer.c (fd_buffer_input): Fix spelling in header comment block.

2005-09-24  Derek Price  <derek@ximbiot.com>

	* socket-client.c: Check HAVE_CONFIG_H, not HAVE_CONFIG.

	* socket-client.c, socket-client.h: Minor cleanup.

	* Makefile.am (cvs_SOURCES): Move socket-client.[ch] to...
	(EXTRA_cvs_SOURCES): ...here to avoid compiling them.
	* socket-client.c (init_sockaddr), socket-client.h (init_sockaddr):
	Move to...
	* client.c (init_sockaddr), client.c (init_sockaddr): ...here.

	* socket-client.c (socket_buffer_input): Avoid overflow problems.

	* socket-client.c: General cleanup.

2005-09-23  Larry Jones  <lawrence.jones@ugs.com>

	* checkout.c (export_usage): Note that -r requires a tag.

2005-09-22  Derek Price  <derek@ximbiot.com>

	* classify.c (Classify_File): Correct comment.

2005-09-22  Larry Jones  <lawrence.jones@ugs.com>

	* patch.c (patch_usage): Document -k option.

2005-09-22  Derek Price  <derek@ximbiot.com>

	* classify.c (Classify_File): If a file had a conflict and the
	timestamp hasn't changed, it still has a conflict.  Add comment about
	how T_MODIFIED could later turn out to have conflict markers and why
	it should not be checked in this function.
	* client.c (send_fileproc): Don't send contents for files known to have
	conflicts unless this is for `cvs diff'.
	* commit.c (check_fileproc): T_CONFLICT should be handled like
	T_MODIFIED, since force could be requested.  Simplify logic since
	T_CONFLICT can now be trusted.
	* rcs.c (RCS_Checkout): Comment noexec behavior in header block.
	* server.c (serve_unchanged, serve_is_modified): Handle conflicts.
	* status.c (status_fileproc): Trust T_CONFLICT to simplify.
	* subr.c (file_has_conflict): Removed.
	* subr.h (file_has_conflict): Remove proto.
	* update.c (update_fileproc): Trust T_CONFLICT.
	(RegisterMerge): New function factored from...
	(merge_file, join_file): ...these two functions.
	* vers_ts.c (time_stamp_server): Handle = conflict timestamps in server
	entdata.
	* sanity.sh (files-12): Account for slight behavior improvement.
	(status, conflicts, mwrap): Account for corrected behavior.
	(join-readonly-conflict-10): Correct comment.
	(binfiles-con1b): New test for correct behavior.

	* classify.c (Classify_File): Consolidate redundant conditionals.

2005-09-21  Derek Price  <derek@ximbiot.com>

	* entries.c: Remove obsolete comment.

2005-09-20  Derek Price  <derek@ximbiot.com>

	* myndbm.c: #include getdelim.h for Windows.

	* main.c: #include setenv.h for Windows.

2005-09-19  Derek Price  <derek@ximbiot.com>

	* sanity.sh (modules5-8): Rename...
	(modules5-8r): ...to this and comment Mac OS X failure.
	Comment Solaris 9 failure below with a `FIXME?' tag.

	* sanity.sh: Remove previous hack in favor of setting TESTDIR on
	Solaris (and Mac OS X) until problem is solved correctly.

2005-09-15  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Use /bin/pwd to verify current dir since Solaris 9 is
	sometimes resolving symlinked paths.

2005-09-14  Derek Price  <derek@ximbiot.com>

	* edit.c (edit_usage, unedit_usage, editors_usage), watch.c
	(watch_usage, watchers_usage): Add quotes and reword for clarity and
	consistency.

	* edit.c (edit_usage): Add missing syntax.  Reword description for
	clarity.  Mention default behavior.

2005-09-13  Derek Price  <derek@ximbiot.com>

	* sanity.sh ($anyusername): Reduce charset to that allowed on Linux.

	* sanity.sh ($anyusername): Make more robust and expand comments.
	Reported by Mark D. Baushke <mdb@gnu.org>.

	* sanity.sh: Split $username into $username & $username8.  Rename
	$author as $anyusername.

2005-09-12  Derek Price  <derek@ximbiot.com>

	* sanity.sh (username): Cut $username down to 8 characters when longer,
	since that is all that appears in output.

2005-09-11  Derek Price  <derek@ximbiot.com>

	[bug #14504]
	* main.c (main): Set server_hostname before it is used by
	gserver_authenticate_connection.
	(Report from Serguei E. Leontiev <leo@sai.msu.ru>.)

2005-09-08  Larry Jones  <lawrence.jones@ugs.com>

	* server.c (parseServerOptions): getopt() returns int, not char.

2005-09-07  Derek Price  <derek@ximbiot.com>

	* rcs.c (RCS_parse): Minor reformatting.

	Close <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14462>.
	* rcs.c (RCS_parse): Free variable *after* using it for the last time.

2005-09-06  Derek Price  <derek@ximbiot.com>

	* sanity.sh (tempfile): All CVS temp files start with "cvs".

	* sanity.sh (tempfile): New var.
	(tempname): Set to $TMPDIR/$tempfile after $TMPDIR is set.
	(info): s#$TMPDIR/##.

	* rcs.c (RCS_putdtree): Remove unused variable.

2005-09-06  Mark D. Baushke  <mdb@gnu.org>

	Close <https://savannah.nongnu.org/bugs/?func=detailitem&item_id=14435>.
	* rcs.c (RCS_putdtree): Avoid stack overflow which may be
	possible with excessive recursive calls to RCS_putdtree().
	(Patch from Serg Masyutin.)

2005-09-06  Derek Price  <derek@ximbiot.com>

	Close <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14448>.
	* kerberos-client.c (start_kerberos4_server): Pass new root arg to
	make_bufs_from_fds.
	(Patch from <Manuel.Guijarro.AT.cern.ch>.)

	* server.c: Reorganize includes slightly and alphabetize sections.

	* server.c: #include canon-host.h.
	(gserver_authenticate_connection): Print out canon-host errors.
	* subr.c: #include canon-host.h.
	(isThisHost): Print out canon-host errors.

	* parseinfo.c (parse_config): Don't check hostname without client
	or server support.

	* main.c (main): Set cvs_cmd_name before calling parseServerOptions.

2005-09-05  Derek Price  <derek@ximbiot.com>

	* cvs.h (Tmpdir): Remove global decl.
	(get_cvs_tmp_dir, push_env_tmp_dir): New protos.
	* filesubr.c (cvs_temp_file): Use get_cvs_tmp_dir.
	* main.c (Tmpdir): Remove global.
	(tmpdir_cmdline, tmpdir_env): New globals.
	(get_cvs_tmp_dir, push_env_tmp_dir): New functions.
	(main): Discard most tmpdir overhead in favor of new globals and
	functions.
	* parseinfo.c (parse_config): Parse TmpDir.
	* sanity.sh (config4): New tests.
	* server.c (serve_root): Set env TMPDIR after parsing config.  Create
	tmpdir here instead of...
	(serve_co, server): ...either of thse locations.
	(server_cleanup): Use new function in favor of obsolete Tmpdir.

	* sanity.sh (config2): Don't overwrite potentially significant config.

	* sanity.sh (info): Use $tempfile instead of reproducing the regex.

	* sanity.sh (info): Accept `.' in temp file names.

	* main (main): Set the actual PID, not a pointer to a string.

2005-09-04  Derek Price  <derek@ximbiot.com>

	* sanity.sh (config3): Generalize.

	* main.c (main), server.c (serve_root, switch_to_user): Replace putenv
	with GNULIB setenv.
	* sanity.config.sh.in (HAVE_PUTENV): Remove.
	* sanity.sh (env): Remove reference to $HAVE_PUTENV.

	* sanity.sh (tests): Add config2 & config3.

	* server.c (isSamePath, isThisHost): Move to...
	* subr.c (isSamePath, isThisHost): ...here.
	* subr.h (isSamePath, isThisHost): Add protos.
	* parseinfo.c (parse_config): Handle [rootspec] syntax.
	* main.c (main): Always set server_hostname.
	* sanity.sh (config3): New tests for same.

	* server.c (gserver_authenticate_connection): Output hostname in
	error message.

	* server.c (isThisHost): Fix typo.

	* server.c (isThisHost, gserver_authenticate_connection): Simplify
	using canon_host().

	* root.c (free_cvsroot_t): Update header comment.

	* root.c (new_cvsroot_t): directory is not client-specific.
	(free_cvsroot_t): Declare static.
	* root.h (free_cvsroot_t): Remove proto.
	* server.c (server_init): Don't free cvsroot_t when finished with it.

2005-09-03  Derek Price  <derek@ximbiot.com>

	* root.h (cvsroot_t->isremote): Update comment.

	* history.c (read_hrecs_file): Suppress signed/unsigned char warning.

	* root.h (cvsroot_t->isremote): Declare bool.
	* root.c (new_cvsroot_t): Initialize isremote to false instead of 0.

	* add.c (add_usage): Standardize usage message somewhat.

2005-09-02  Larry Jones  <lawrence.jones@ugs.com>

	* commit.c (checkaddfile): Improve error messages for lock_RCS failure.
	* release.c (release): Improve error message for pclose failure.

	* root.h (struct cvsroot_s): Always declare isremote to simplify
	other code.  Simplify referencing code.
	* root.c (new_cvsroot_t): Always initialize isremote.
	* server.h: Always declare server_active to simplify other code.
	Simplify referencing code.
	* server.c: Always define server_active.

2005-09-02  Larry Jones  <lawrence.jones@ugs.com>

	* parseinfo.c (parse_config): Variable declarations must precede
	executable code for pre-C99 compilers.  Pass correct line number
	variable to expand_path.

2005-09-01  Derek Price  <derek@ximbiot.com>

	* recurse.c: Update bug report email address.

2005-08-31  Derek Price  <derek@ximbiot.com>

	* cvs.h (expand_path): Update proto.
	* expand_path.c (expand_variable): Accept and use cvsroot arg inplace
	of global.
	(expand_path): Accept and pass through cvsroot arg.
	* main.c (main): Prescan args for config path before config options are
	used.  Pass config path on as needed.  Update comment. 
	* modules.c (do_module): Update expand_path call.
	* parseinfo.ci (Parse_Info): Ditto.
	(allowed_config_prefixes): New global.
	(parse_config): Accept configPath arg, update expand_path calls, and
	expand LockDir path.
	* parseinfo.h (parse_config): Update proto.
	* root.c (root_allow_add, get_root_allow_config): Accept new configPath
	arg and pass through to parse_config.
	* root.h (root_allow_add, get_root_allow_config): Update protos.
	* server.c (gConfigPath, server_usage): New globals.
	(parseServerOptions): New function.
	(server): Use new usage var.
	(pserver_authenticate_connection): Update get_root_allow_config call.
	* server.h (parseServerOptions): New proto.
	* wrapper.c (wrap_add): Update expand_path calls.
	* sanity.sh (server): New tests for setting config file path.

2005-08-31  Derek Price  <derek@ximbiot.com>

	* sanity.sh (close-stdout): Remove archive dir when done.

2005-08-31  Larry Jones  <lawrence.jones@ugs.com>

	* import.c (import_descend): Lock repository directory during import.

2005-08-31  Derek Price  <derek@ximbiot.com>

	* server.c (isSamePath): Compare args rather than assuming values.

2005-08-29  Derek Price  <derek@ximbiot.com>

	Add %{sV} format string to verifymsg script.
	* logmsg.c (do_verify): Accept change list arg, pass through to...
	(verifymsg_proc): ...here, to pass through to format_cmdline.
	* commit.c (commit_fileproc, commit_direntproc), import.c (update):
	Update all callers of do_verify.
	* cvs.h (do_verify): Update proto.
	* sanity.sh (info): Test new verifymsg format strings.

2005-08-09  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Remove debugging echo.
	(watch6, watch6-0): Clean up properly.

2005-08-03  Jim Hyslop <jhyslop@dreampossible.ca>

	* edit.c, watch.c, watch.h, sanity.sh: fixed problems with watch not
	setting default attributes, when directory specified.

2005-07-20  Derek Price  <derek@ximbiot.com>

	* main.c: s/cvshome.org/nongnu.org.etc.../.

2005-07-12  Derek Price  <derek@ximbiot.com>

	* buffer.c, buffer.h, client.h, expand_path.c, history.c, myndbm.h,
	release.c: Add copyright notices.

2005-07-12  Derek Price  <derek@ximbiot.com>

	* client.c: Update fwrite usage to use size & count in the standard
	order.

2005-07-11  Derek Price  <derek@ximbiot.com>

	* buffer.c, buffer.h, client.h, expand_path.c, history.c, myndbm.h,
	release.c: Update license notices.

2005-06-28  Derek Price  <derek@ximbiot.com>

	* server.c (serve_co): Remove obsolete support for Repository request.

2005-06-10  Derek Price  <derek@ximbiot.com>

	* filesubr.c, ignore.c, import.c, vers_ts.c: Include "lstat.h".

2005-06-10  Derek Price  <derek@ximbiot.com>

	* logmsg.c (logmsg_list_to_args_proc): Add format character for
	destination tag.
	(Original patch from Todd Vierling <tv@duh.org>).

	* tag.c (pretag_list_to_args_proc): Likewise.
	(check_fileproc): Set destination tag name.
	(tag_delproc): Delete destination tag name.
	* sanity.sh (info, taginfo): Test new format strings.

2005-06-08  Derek Price  <derek@ximbiot.com>

	* parseinfo.c: Restore comparison to NULL in assignment within
	conditional to placate non-GNU compilers.  Eliminate assignments in
	conditionals where possible by GNU coding standards.  Eliminate other
	comparisons to NULL where possible.
	(Parse_Info): Make int a true bool.

2005-06-03  Derek Price  <derek@ximbiot.com>

	* client.c (force_gzip): New static global.
	(handle_force_gzip): New function.
	(responses): Add `Force-gzip'.
	(start_server): Turn on encryption and compression before potentially
	sending other rooted requests.  Turn on compression when requested by
	the user or the server.
	* main.c (opt_usage):  Note that -z<level> *requests* compression
	<level> from the server.
	* parseinfo.c (new_config):  Initialize MaxCompressionLevel.
	(parse_config): Parse MinCompressionLevel & MaxCompressionLevel.
	* parseinfo.h (struct config): Add MinCompressionLevel &
	MaxCompressionLevel.
	* server.c (pending_warning_text):  New static global.
	(print_pending_error): Print pending warnings too.
	(warning_pending): New macro.
	(alloc_pending_internal): New function with much content...
	(alloc_pending): ...previously from here.
	(alloc_pending_warning): New function.
	(server_root, serve_gzip_contents, gzip_stream): Force gzip_level into
	configured restrictions.
	(serve_command_prep): Print pending errors.
	(requests): Make `Gzip-stream', `gzip-file-contents',
	`Kerberos-encrypt', `Gssapi-encrypt', & `Gssapi-authenticate' requests
	rootless to allow them before compression starts.
	(serve_valid_requests): Send `Force-gzip' response when needed.
	(server): Abort if a rootless compression request forced compression
	outside restricted levels.
	* zlib.c (struct compress_buffer, compress_buffer_initialize): Store
	compression level.
	(compress_buffer_output): Reset compression level when global
	gzip_level has changed.
	* sanity.sh (config2): New tests for compression restrictions.

2005-06-03  Derek Price  <derek@ximbiot.com>

	* zlib.c (compress_buffer_input): Update comment.

2005-06-03  Derek Price  <derek@ximbiot.com>

	* error.c (error): Correct spelling and grammar in comment.

2005-06-03  Derek Price  <derek@ximbiot.com>

	* modules.c (my_module), wrappers.c (wrap_add): Use new expand_path
	API.

2005-06-03  Derek Price  <derek@ximbiot.com>

	* cvs.h (expand_path): Rearrange args and use bool for formatsafe flag.
	* expand_path.c: Globally: Remove init of globals to NULL by C89,
	reformat to CVS conventions, remove unnecessary comparisons to NULL and
	0, & remove unnecessary typecasts.
	(expand_variable): Remove proto and move function above first use.
	Make return value const.
	(expand_path): Don't refer to var when contents are known.  Rearrange
	args per cvs.h changes.  Improve header comment block.
	* parseinfo.c (Parse_Info): Use new expand_path API.

2005-06-02  Derek Price  <derek@ximbiot.com>

	* client.c: Don't set NULL for globals by C89.  Globally remove
	comparisons to NULL or replace with !.  Similarly remove or replace
	comparisons of strcmp and strncmp return value to 0.  Remove some
	unneeded braces around single-element blocks.
	(handle_*): Remove unecessary protos.
	(handle_notified, notified_a_file): Move up before first use.

2005-06-02  Derek Price  <derek@ximbiot.com>

	* sanity.sh (config): Simplify cleanup.

2005-06-02  Derek Price  <derek@ximbiot.com>

	* zlib.c (compress_buffer_input): Don't request more bytes from the
	underlying buffer than asked for.
	(compress_buffer_shutdown_input): Don't attempt to read EOF from the
	client during shutdown.  It might never be sent.
	* sanity.sh (abspath2): Test for this.

2005-05-31  Derek Price  <derek@ximbiot.com>

	* rcscmds.c (call_diff_argc_allocated): Rename to...
	(call_diff_arg_allocated): ...to match similar usage in other files.

2005-05-31  Derek Price  <derek@ximbiot.com>
	for Alexander Taler <alex@0--0.org>

	* rcscmds.c: Change type of call_diff_argc_allocated from int to
	size_t, to match the prototype of run_add_arg_p().  This fixes a
	bus error in OpenBSD 3.6 sparc64.

2005-05-27  Derek Price  <derek@ximbiot.com>

	* client.c (send_arg): Make arg const.  Remove unnecessary copy to
	buffer.
	(send_option_string): Rename to...
	(send_options): ...this and accept argc/argv in place of string.
	* client.h: Update protos to match the changes to client.c.
	* cvs.h (RCS_exec_rcsdiff, diff_exec): Update protos.
	(run_add_arg_p, run_arg_free_p): New protos.
	* diff.c (opts, opts_allocated): Replace with...
	(diff_argv, diff_argc, diff_arg_allocated): ...these.
	(add_diff_args): New convenience function.
	(diff): Use new constructs and APIs.
	* patch.c (patch_fileproc, RCS_checkin, RCS_delete_revs), rcscmds.c
	(call_diff_add_arg, call_diff_setup, RCS_merge, RCS_exec_rcsdiff,
	diff_exec, RCS_output_diff_options), update.c (patch_file): Use new
	APIs.
	* run.c (run_add_arg_p, run_arg_free_p): New functions.
	(run_argc_allocated): Make size_t.
	(run_setup, run_add_arg): Use new functions.
	* sanity.sh: Accomodate above changes.
	(rcslib-diffrgx-3): Slip in test for space splitting.

2005-05-26  Derek Price  <derek@ximbiot.com>

	* subr.c (isabsolute), subr.h (isabsolute): Remove this function.
	* root.c: Likewise, plus some reformatting.
	* checkout.c, client.c, find_names.c, import.c, modules.c, parseinfo.c,
	repos.c, root.c, server.c, subr.c: s/isabsolute/ISABSOLUTE/.

2005-05-26  Derek Price  <derek@ximbiot.com>

	* cvs.h: Move "system.h" include before GNULIB includes.  Move some
	GNULIB includes from "system.h".

2005-05-26  Conrad T. Pino <Conrad@Pino.com>

	* buffer.c, buffer.h: Add & use typedefs for function pointer arguments
	and struct buffer function pointers.  New typedefs are useful in casts.
	* socket-client.c: Function pointers passed to buf_initialize use size_t
	not int arguments.  buf_initialize warnings are gone from Windows build.

2005-05-24  Derek Price  <derek@ximbiot.com>

	* client.c, entries.c, filesubr.c, hardlink.c, ignore.c, import.c,
	lock.c, logmsg.c, mkmodules.c, rcs.c, rcscmds.c, server.c, subr.c,
	update.c, vers_ts.c: s/CVS_STAT/stat/ & s/CVS_LSTAT/lstat/.

2005-05-23  Derek Price  <derek@ximbiot.com>

	* filesubr.c (xresolvepath): Move to...
	* subr.c (xcanonicalize_file_name): ...here and rename.  Use new
	GNULIB canonicalize module.
	* cvs.h (xresolvepath): Move proto...
	* subr.h (xcanonicalize_file_name): ...here.
	* checkout.c (safe_location), server.c (isSamePath): Use new function
	name.

2005-05-23  Derek Price  <derek@ximbiot.com>

	* sanity.sh (rcslib-symlink-10): Accept empty result due to broken glob
	in glibc 2.3.5.

2005-05-18  Derek Price  <derek@ximbiot.com>

	* sanity.sh (config-9): Split to local/remote tests to avoid unportable
	expr characters.

2005-05-17  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Use a predictable umask.

2005-05-13  Derek Price  <derek@ximbiot.com>

	* login.c (password_entry_parseline): Placate gcc -Wall.

2005-05-11  Derek Price  <derek@ximbiot.com>

	* cvs.h (find_files): New proto.
	* find_names.c (find_files, strip_rcsext): New functions.
	(find_rcs): Make arg const.  Use new find_files.  Improve header
	comment block.
	* history.c (histfile): Remove global.
	(get_history_log_name): New function.
	(history, history_write): Use new functions.
	(read_hrecs_file): New function containing most content from...
	(read_hrecs): ...this function, which now accepts a file list and calls
	read_hrecs_file once for each file.
	* parseinfo.c (parse_config): Parse HistoryLogPath & HistorySearchPath.
	* parseinfo.h (struct config): Add HistoryLogPath & HistorySearchPath.
	* sanity.sh (basic2-64): Remove obsolete comment.
	(config): Test new history options.
	(crerepos): Cleanup.

2005-05-09  Derek Price  <derek@ximbiot.com>

	* error.c (error): Avoid unportable calls to vsyslog.

2005-05-09  Derek Price  <derek@ximbiot.com>

	* history.c (history_write): Add FIXME.

2005-05-09  Derek Price  <derek@ximbiot.com>

	* hash.c (removenode, mergelists): New function.
	(delnode): Use removenode.
	* hash.h (mergelists): New proto.

2005-05-04  Derek Price  <derek@ximbiot.com>

	* error.c (error): Avoid recursion and syslog the problem.

2005-05-03  Derek Price  <derek@ximbiot.com>

	* tag.c (is_in_val_tags): Remove unnecessary existance checking for the
	val-tags file and just rely on open() to create it when necessary.

2005-05-03  Derek Price  <derek@ximbiot.com>

	* tag.c (tag_check_valid): Don't verify the_val_args.found when it is
	not initialized.

2005-05-03  Derek Price  <derek@ximbiot.com>

	* add.c: Update comment to include the -k option.  This resolves issue
	#226 on cvshome.org.

2005-05-02  Derek Price  <derek@ximbiot.com>

	Remove unnecessary level of indirection.
	* lock.c (L_HISTORY_LOCK, L_VAL_TAGS_LOCK): Remove macros.
	(internal_lock, internal_clear_lock): Accept lock as argument.
	(history_lock, clear_history_lock, val_tags_lock, clear_val_tags_lock):
	Replace old macro arg with an actual lock pointer.

2005-05-02  Derek Price  <derek@ximbiot.com>

	* lock.c (internal_lock, internal_clear_lock): Add protos.
	(history_lock, val_tags_lock): Return the chartered true/false status.

2005-05-02  Derek Price  <derek@ximbiot.com>

	* cvs.h (CVSHISTLCK): Rename macro to...
	(CVSHISTORYLCK): ...this.
	(CVSVALTAGSLCK): New macro.
	(val_tags_lock, clear_val_tags_lock): New functions.
	* lock.c (global_val_tags_lock): New global.
	(Lock_Cleanup): Clean up after val-tags lock if necessary.
	(L_HISTORY_LOCK, L_VAL_TAGS_LOCK): New local macros.
	(internal_lock, val_tags_lock, clear_val_tags_lock): New functions.
	(history_lock): Use new internal function.
	* tag.c (is_in_val_tags, add_to_val_tags): New functions using the
	write lock for val-tags and factored from...
	(tag_check_valid): ...this function.
	* sanity.sh (lockfiles-22): Add val-tags lock test.

2005-04-30  Mark D. Baushke  <mdb@cvshome.org>

	* lock.c (global_readlock, global_writelock, global_history_lock):
	Add missing alternatives for non-LOCK_COMPATIBILITY initialization.

2005-04-28  Derek Price  <derek@ximbiot.com>

	* cvs.h (history_lock, clear_history_lock): New protos.
	* lock.c (struct lock): Add lockdirname.
	(global_history_lock): New global.
	(global_read_lock): Initialize.
	(lock_name): Handle const args.
	(lock_simple_remove): Factor out code in favor of clear_lock call.
	(set_lock): Handle variable lockdirname.
	(lock_filesdoneproc): Set new lockdirname.
	(history_lock, clear_history_lock): New functions.
	(clear_lock): Avoid segfault on missing lock.
	(Lock_Cleanup): Clean up history locks when necessary.
	* history.c (history_write): Use new lock.
	* sanity.sh (lockfiles-20): Test new lock.

2005-04-28  Derek Price  <derek@ximbiot.com>

	* sanity.sh (lockfiles): Port some locking tests over from 1.12.x.

2005-04-28  Derek Price  <derek@ximbiot.com>

	* lock.c (clear_lock): Improve comment.

2005-04-28  Derek Price  <derek@ximbiot.com>

	* lock.c (struct lock): Store lockdir name.
	(masterlock): Remove global.
	(remove_lock_files, clear_lock, set_lock): Update to compensate.

2005-04-25  Mark D. Baushke  <mdb@cvshome.org>

	* server.c: Add support for <pam/pam_appl.h> to allow
	--enable-pam to work on MacOSX 10.2 and newer.
	(Pach from Moriyoshi Koizumi <moriyoshi@at.wakwak.com>.)

2005-04-25  Derek Price  <derek@ximbiot.com>

	* mkmodules.c (mkmodules): Remove `#if 0' and reformat comment.

2005-04-22  Mark D. Baushke  <mdb@cvshome.org>

	* expand_path.c (expand_variable): Add SESSIONID and COMMITID
	internal variables. Both return the unique global session id of
	the CVS process. Passing this information to administrative
	triggers seems reasonable. (The same feature exists in CVSNT and
	the names were chosen to be the same as the CVSNT names.)

	* sanity.sh (info): Add a test for $COMMITID and $SESSIONID.

2005-04-20  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (rcs4): Fix a typo.

2005-04-20  Derek Price  <derek@ximbiot.com>

	* sanity.sh (rcs5): Minor cosmetic change.

2005-04-20  Derek Price  <derek@ximbiot.com>

	* sanity.sh (tests): Add rcs4.
	(rcs5): Add comments.

2005-04-20  Derek Price  <derek@ximbiot.com>

	* rcs.c (expand_keywords): Avoid buffer overflow.
	(Original patch from Stewart Brodie <stewart@eh.org>.)

	* sanity.sh (rcs5): New tests for the above.

2005-04-08  Derek Price  <derek@ximbiot.com>

	* edit.c (edit_fileproc, unedit_fileproc): s/GMT/-0000/.
	* rcs.c (RCS_getrevtime): Ditto, & replace a sprintf into a static
	buffer with an Xasprintf which creates a dynamic one.
	* sanity.sh: Update tests to compensate.
	(Original bug report from Ian Abbott <abbotti@mev.co.uk>.)

2005-03-26  Mark D. Baushke  <mdb@cvshome.org>

	* checkout.c (checkout_proc): Use Xasprintf/xstrdup instead of
	xmalloc/strcpy+strcat.

2005-03-22  Mark D. Baushke  <mdb@cvshome.org>

	* Makefile.in: Regenerated.

2005-03-22  Mark D. Baushke  <mdb@cvshome.org>

	* rcs.c (linevector_add): Use xnrealloc.
	* server.c (serve_argument): Ditto.

2005-03-22  Mark D. Baushke  <mdb@cvshome.org>

	* rcs.c (linevector_copy): Use xtimes in argument.

	* patch.c (patch): Remove dead code.

	* lock.c (set_readlock_name): Use Xasprintf instead of
	xmalloc/sprintf.
	(lock_exists, set_promotable_lock, lock_wait): Ditto.
	(lock_obtained, lock_dir_for_write): Ditto.
	* log.c (rlog_proc): Ditto.

	* ignore.c (ign_dir_add): Use xnrealloc.
	* modules.c (save_d): Ditto.
	* rcs.c (linevector_copy): Ditto.

	* add.c (add): Use xstrdup instead of xmalloc/strcpy.
	* client.c (client_process_import_file): Ditto.
	* kerberos4-client.c (start_kerberos4_server): Ditto.
	* logmsg.c (verifymsg_proc): Ditto.
	* log.c (log_expand_revlist): Ditto.
	* patch.c (patch_fileproc): Ditto.
	* rcs.c (RCS_tag2rev, RCS_nodeisbranch, RCS_getbranch): Ditto.
	(RCS_getdatebranch, expand_keywords, RCS_addbranch): Ditto.
	(RCS_checkin): Ditto.
	* remove.c (remove_fileproc): Ditto.

2005-03-18  Derek Price  <derek@ximbiot.com>

	* server.c: Reindent pragmas.
	(become_proxy): Add parentheses for -Wall.

2005-03-18  Derek Price  <derek@ximbiot.com>

	* error.c (error): Simplify using vasnprintf.

2005-03-17  Mark D. Baushke  <mdb@cvshome.org>

	* admin.c (postadmin_proc): Cast NULL when it is an argument to
	stdarg function to ensure it is the correct type.
	* commit.c (precommit_proc): Ditto.
	* edit.c (notify_proc): Ditto.
	* fileattr.c (postwatch_proc): Ditto.
	* logmsg.c (logfile_write, verifymsg_proc): Ditto.
	* server.c (prepost_proxy_proc): Ditto.
	* subr.c (cmdlineescape): Ditto.
	* tag.c (posttag_proc): Ditto.
	(Thanks to a report from Derek Price <derek@ximbiot.com>.)
	
2005-03-17  Derek Price  <derek@ximbiot.com>

	* rcs.h (RCSNode): Improve comment.
	* rcs.c (RCS_head): Ditto, plus gratuitous reformatting.

2005-03-17  Derek Price  <derek@ximbiot.com>

	* rcs.c (RCS_deltas): Use rcs->print_path.

2005-03-17  Derek Price  <derek@ximbiot.com>

	* login.c (password_entry_parseline): Avoid using uninitialized
	variable.
	* rcs.c (RCS_deltas): Avoid buffer overflow.
	(RCS_checkout): Avoid using uninitialized loglen.
	* patch.c (patch_fileproc): Free original pointer, not one that may
	have been incremented.
	(Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)

2005-03-17  Derek Price  <derek@ximbiot.com>

	* commit.c (checkaddfile): Avoid dereferencing a NULL pointer in
	response to a rare error.
	* admin.c (admin_fileproc), log.c (log_expand_revlist), mkmodules.c
	(checkout_file), rcs.c (RCS_getdate, RCS_deltas, RCS_findlock_or_tip,
	RCS_tag2rev): Avoid dereferencing NULL pointer.
	(Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)

2005-03-17  Derek Price  <derek@ximbiot.com>

	* rcs.c (RCS_reparsercsfile): Avoid memory leak.
	(Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)

2005-03-17  Derek Price  <derek@ximbiot.com>

	* log.c (log_expand_revlist): Suppress message and not error handling
	when really_quiet.

2005-03-16  Mark D. Baushke  <mdb@cvshome.org>

	* buffer.c (fd_buffer_shutdown): Replace (int *) 0 with NULL.
	* server.c (do_cvs_command): Ditto.

	* client.c (update_entries): Use xnmalloc.

	* checkin.c (Checkin): Replace (char *) 0 with NULL.
	* patch.c (patch_fileproc): Ditto.
	* update.c (update_fileproc): Ditto.
	* no_diff.c (No_Difference): Ditto.
	* patch.c (patch_fileproc): Ditto.
	* rcscmds.c (call_diff_setup, call_diff_add_arg): Ditto.

	* update.c (join_file): Replace (RCSCHECKOUTPROC)0 with NULL.
	* rcs.c (RCS_checkin, RCS_cmp_file, RCS_delete_revs) 
	(RCS_delete_revs): Ditto.
	* rcscmds.c (RCS_merge, RCS_exec_rcsdiff): Ditto.
	
	* annotate.c, checkin.c, classify.c, fileattr.c, find_names.c,
	hash.c, lock.c, login.c, logmsg.c, main.c, modules.c, myndbm.c,
	no_diff.c, patch.c, rcs.c, rcscmds.c, remove.c, server.c,
	status.c, subr.c, tag.c, update.c, vers_ts.c: Avoid casting NULL.

2005-03-17  Derek Price  <derek@ximbiot.com>

	* client.c (call_in_directory): Put function call after var decls.

2005-03-16  Derek Price  <derek@ximbiot.com>

	* client.c (call_in_directory), commit.c (commit_filesdoneproc), log.c
	(log_expand_revlist, log_version), logmsg.c (logfile_write), modules
	(my_module), no_diff.c (No_Difference), parseinfo.c (Parse_Info), rcs.c
	(RCS_deltas, RCS_checkin, RCS_addbranch, do_locks, do_symbols),
	rcscmds.c (RCS_merge), root.c (parse_cvsroot, normalize_cvsroot),
	update.c (merge_file): Verify assumptions via assertions.
	(Thanks to (probably) incorrect reports from Alen Zukich
	<alen.zukich@klocwork.com>.)

2005-03-16  Mark D. Baushke  <mdb@cvshome.org>

	* rcs.c (RCS_check_kflag): Use Xasprintf instead of
	sprintf/xstrdup.

	* mkmodules.c (checkout_file): Use Xasprintf instead of
	xmalloc/strcpy+strcat.
	* wrapper.c (wrap_unparse_rcs_options): Ditto.
	(wrap_rcsoption): Ditto.

	* subr.c (getcaller): Use Xasprintf instead of sprintf/xstrdup.

	* history.c (history): Use Xasprintf instead of xmalloc/sprintf.
	* lock.c (lock_name, set_lockers_name): Ditto.
	* main.c (cmd_synonyms, main): Ditto.
	* mkmodules.c (rename_rcsfile, init): Ditto
	* modules.c (cat_module): Ditto.
	* parseinfo.c (Parse_Info): Ditto.
	* rcscmds.c (diff_exec, RCS_output_diff_options): Ditto.
	* recurse.c (start_recursion, do_dir_proc): Ditto.
	* remove.c (remove_fileproc): Ditto.
	* repos.c (Name_Repository): Ditto.
	* root.c (Name_Root, Create_Root): Ditto.
	* status.c (status_fileproc, tag_list_proc): Ditto. 
	* wrapper.c (wrap_setup, wrap_tocvs_process_file): Ditto.

	* hash.c (sortlist): Use xnmalloc.
	* main.c (cmd_synonyms): Ditto.
	* server.c (cvs_pam_conv): Ditto.

	* create_adm.c (Create_Admin): Clean up use of Xasprintf/xstrdup.
	* entries.c (WriteTag, base_walk): Ditto.
	* modules.c (my_module): Ditto.

	* wrapper.c (wrap_fromcvs_process_file): Use Xasprintf instead of
	xmalloc/sprintf and clean up control flow.

2005-03-16  Derek Price  <derek@ximbiot.com>

	* history.c (history_write): Remove test that always evaluates to
	false.

2005-03-16  Derek Price  <derek@ximbiot.com>

	* server.c (become_proxy): Close pipe to primary when pipe from it
	closes.

2005-03-16  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (debug-log-nonfatal): Only set CVS_CLIENT_LOG to the
	old value if it was previously set.

2005-03-16  Derek Price  <derek@ximbiot.com>

	* server.c (create_adm_p, serve_entry), tag.c (rtag_proc): Avoid memory
	leaks.
	(Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)

2005-03-16  Derek Price  <derek@ximbiot.com>

	* logmsg.c (do_verify): Don't check for NULL return from xfopen().

2005-03-16  Derek Price  <derek@ximbiot.com>

	* sanity.sh (debug-log-nonfatal): New test.

2005-03-16  Derek Price  <derek@ximbiot.com>

	* sanity.sh (writeproxy-ssh-noredirect): Don't unconditionally create
	a primary debug log.

2005-03-16  Derek Price  <derek@ximbiot.com>

	* cvs.h (open_file): Move proto...
	* subr.h (xfopen): ...here and rename.
	* filesubr.c (open_file): Move function...
	* subr.c (xfopen): ...here, with additional commenting and minor
	cosmetic changes.
	* add.c, checkout.c, client.c, cvsrc.c, edit.c, entries.c, filesubr.c,
	logmsg.c, mkmodules.c, modules,c, patch.c, root.c, subr.c:
	s/open_file/xfopen/.

2005-03-16  Derek Price  <derek@ximbiot.com>

	* log-buffer.c (setup_logfiles): Failure to open a debug log file
	should be non-fatal.

2005-03-16  Derek Price  <derek@ximbiot.com>

	* server.c (cvs_outerr): Quote error text in syslog messages.

2005-03-15  Mark D. Baushke  <mdb@cvshome.org>

	* history.c (select_hrec): Avoid possible memory leak.

2005-03-15  Derek Price  <derek@ximbiot.com>

	* patch.c (patch_proc): Avoid memory leak.
	(Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)

2005-03-12  Mark D. Baushke  <mdb@cvshome.org>

	* server.c (receive_partial_file): Use ssize_t to deal with < 0
	return value from write().

2005-03-12  Mark D. Baushke  <mdb@cvshome.org>

	* history.c (save_file): Bug fix from last change.

2005-03-11  Mark D. Baushke  <mdb@cvshome.org>

	* update.c (get_linkinfo_proc): Use Xasprintf instead of
	xmalloc/sprintf.  Gratuitous reformatting.
	(update_ignproc, update_dirent_proc, checkout_file): Ditto.
	(patch_file, merge_file, join_file): Ditto.
	* modules.c (open_module): Ditto.

	* modules (my_module): Use Xasprintf instead of xmalloc/sprintf
	and avoid possibility of trying to free(NULL).

	* subr.c (backup_file): Use Xasprintf instead of xmalloc/sprintf.
	(cmdlinequote): Use Xasprintf instead of xmalloc/strcat+strlen.
	* modules.c (my_module): Ditto.

	* client.c (handle_module_expansion): Use xnmalloc, xnrealloc,
	and xstrdup in place of xmalloc, xrealloc, and xmalloc/strcpy.
	(start_server): Do not assume gzip_level precision encoding.
	(send_modified): Do not assume 1024 bytes is sufficient for
	a temporary filename.

	* modules.c (my_module): Use xnmalloc and xnrealloc. Gratuitous
	reformatting.
	* subr.c (line2argv): Ditto.

2005-03-11  Mark D. Baushke  <mdb@cvshome.org>

	* modules.c (my_module): Protect against free (NULL) code path.

2005-03-11  Derek Price  <derek@ximbiot.com>

	* annotate.c (rannotate_proc), fileattr.c (fileattr_write), rcs.c
	(RCS_deltas), server.c (check_repository_password), update.c (update):
	Avoid memory leaks.
	(Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)

2005-03-10  Derek Price  <derek@ximbiot.com>

	* diff.c (diff_fileproc): Remove unnecessary check for NULL.

2005-03-10  Mark D. Baushke  <mdb@cvshome.org>

	* commit.c: Gratuitous reformatting.
	* entries.c: Ditto.
	* import.c (import, import_descend): Ditto.

	* commit.c (commit): Use xnmalloc. Gratuitous reformatting.
	* history.c (save_user, save_file, save_module, read_hrecs): Ditto.
	* ignore.c (ign_add): Ditto.

	* hardlink.c (lookup_file_by_inode): Use Xasprintf instead of
	xmalloc/sprintf.  Gratuitous reformatting.
	(update_hardlink_info, list_linked_files_on_disk): Ditto.
	(find_checkedout_proc): Ditto.
	* history.c (history, history_write, save_file): Ditto.
	(select_hrec): Ditto. 
	* ignore.c (ign_setup, ignore_files): Ditto.
	* import.c (process_import_file, import_descend_dir): Ditto.

	* import.c (import_descend_dir): Use Xasprintf instead of
	xmalloc/strcpy+strcat+strcat.

	* history.c (read_hrecs): Make function argument a const.
	
2005-03-10  Derek Price  <derek@ximbiot.com>

	* fileattr.c (fileattr_read): Only eat a newline when it really is a
	newline.

2005-03-10  Mark D. Baushke  <mdb@cvshome.org>

	* zlib.c: Include "pagealign_alloc.h".

2005-03-09  Derek Price  <derek@ximbiot.com>

	* add.c (add, add_directory), buffer.c (allocate_buffer_datas),
	client.c (update_entries), commit.c (checkaddfile), entries.c
	(Entries_Open), fileattr.c (fileattr_read), ignore.c (ign_add),
	import.c (import), main.c (main), parseinfo.c (parse_config), rcs.c
	(RCS_reparsercsfile, RCS_getbranchpoint, RCS_checkout,
	RCS_delete_revs, apply_rcs_changes): Avoid memory leaks.
	(Thanks to report from Alen Zukich <alen.zukich@klocwork.com>.)

	* hardlink.c, hardlink.h: Avoid compiling entire contents of these
	files w/o preserve permissions support.

2005-03-09  Mark D. Baushke  <mdb@cvshome.org>

	* history.c (history, save_file): Cleanup the API to match the
	comments.

2005-03-08  Derek Price  <derek@ximbiot.com>

	* rcs.c: Define MAP_FILE & MAP_FAILED when necessary.

2005-03-08  Derek Price  <derek@ximbiot.com>

	* zlib.c (compress_buffer_input): Use pagealign_xalloc when allocating
	buffer datas.
	(compress_buffer_output, compress_buffer_flush,
	compress_buffer_shutdown_output): Don't assume that BUFFER_DATA_SIZE is
	a constant.
	(Thanks to report from Larry Jones <lawrence.jones@ugs.com>.)

2005-03-08  Larry Jones  <lawrence.jones@ugs.com>

	* release.c (release): Remove unneeded code.

2005-03-07  Conrad T. Pino  <Conrad@Pino.com>

	* buffer.h (buf_free_data): Compile with proxy disabled.
	(Thanks to report from Larry Jones <lawrence.jones@ugs.com>.)

2005-03-07  Mark D. Baushke  <mdb@cvshome.org>

	* add.c (add_directory): Xasprintf instead of xmalloc/sprintf+strcat.
	* admin.c (arg_add): Ditto.
	(admin_fileproc, postadmin_proc, admin_fileproc): Gratuitous
	reformatting.

	* client.c (mode_to_string): Use Xasprintf.
	
	* checkout.c (checkout): Xasprintf instead of xmalloc/sprintf.
	Gratuitous reformatting.
	* entries.c (WriteTag): Ditto
	(subdir_record, base_walk): Ditto.
	* fileattr.c (fileattr_read, fileattr_set, fileattr_write): Ditto.
	* filesubr.c (deep_remove_dir, cvs_temp_file): Ditto.
	(strcat_filename_onto_homedir): Ditto.
	* find_names.c (Find_Names): Ditto.

	* filesubr.c (expand_wild): Use xnmalloc instead of xmalloc.

2005-03-07  Derek Price  <derek@ximbiot.com>

	* buffer.c (buf_free_data): Compile with proxy disabled.
	(Thanks to report from Larry Jones <lawrence.jones@ugs.com>.)

2005-03-07  Derek Price  <derek@ximbiot.com>

	* buffer.c (packetizing_buffer_input, packetizing_buffer_output): Don't
	assume BUFFER_DATA_SIZE is a constant.
	(Thanks to report from Larry Jones <lawrence.jones@ugs.com>.)

2005-03-03  Derek Price  <derek@ximbiot.com>

	Use new pagealign_alloc() and pagealign_free() functions in
	lieu of maintaining pointers for reuse.  On most systems this should be
	faster.
	* buffer.c: Include "pagealign_alloc.h".
	(free_buffer_data): Remove this global.
	(allocate_buffer_datas): Remove this function.
	(buf_free, buf_send_output): Call buf_free_data().
	(get_buffer_data): Use pagealign_alloc().
	(buf_free_datas): New function.
	(buf_send_output, buf_free_data, buf_read_file, buf_read_file_to_eof,
	buf_read_short_line, buf_read_data, buf_copy_counted): Call
	buf_free_datas().
	* buffer.h: Include "getpagesize.h".
	(BUFFER_DATA_SIZE): Default to getpagesize ();
	* rcs.c: Lean on m4/mmap-anon.m4 to simplify mmap setup.

2005-03-02  Jim Meyering  <jim@meyering.net>

	Detect and report write failure for e.g., cvs up -p FILE > /dev/full
	* main.c: Include "closeout.h".
	(main): Arrange to close standard output upon exit.
	* sanity.sh (close-stdout): New test for this fix.

2005-03-01  Mark D. Baushke  <mdb@cvshome.org>

	* checkout.c (emptydir_name): Xasprintf instead of
	xmalloc/sprintf.

	* add.c (add): Xasprintf instead of xmalloc/sprintf.
	Gratuitous reformatting.
	(add_directory, build_entry): Ditto.
	* annotate.c (rannotate_proc): Ditto.
	* checkout.c (checkout_proc): Ditto.
	* client.c (call_in_directory): Ditto.
	(template, send_dirent_proc): Ditto.
	(client_process_import_file): Ditto.
	* commit.c (check_fileproc, precommit_proc): Ditto.
	(commit_fileproc, finaladd): Ditto.
	(checkaddfile): Ditto.
	* create_adm.c (Create_Admin): Ditto.
	* edit.c (notify_do): Ditto.

2005-03-01  Derek Price  <derek@ximbiot.com>

	* subr.c (get_date): Minor reformatting.

2005-03-01  Derek Price  <derek@ximbiot.com>

	* subr.c (get_date): Replace obsolete timeb cruft in this stub.

2005-02-28  Mark D. Baushke  <mdb@cvshome.org>

	* admin.c (arg_add): Use xnmalloc and xnrealloc.
	(admin): Use xnmalloc. Minor reformatting.
	Xasprintf instead of xmalloc/strcpy+strcat.
	* client.c (client_expand_modules): Use xnmalloc.
	Minor reformatting.
	* cvsrc.c (read_cvsrc): Use xnmalloc and xnrealloc.
	Minor reformatting.
	* history.c (read_hrecs): Use xnrealloc. Minor reformatting.
	* ignore.c (ign_add): Use xnrealloc. Minor reformatting.
	* rcscmds.c (call_diff_add_arg): Use xnrealloc.
	* wrapper.c (wrap_add_entry): Use xnrealloc. Gratuitous
	reformatting.

2005-02-28  Derek Price  <derek@ximbiot.com>

	* edit.c (notify_proc), logmsg.c (logfile_write): Minor reformatting.

2005-02-28  Derek Price  <derek@ximbiot.com>

	* root.c (parse_root): Trigger a later error message rather than
	maintaining two copies.

2005-02-27  Mark D. Baushke  <mdb@cvshome.org>

	* client.c (connect_to_pserver): Use TRACE_FUNCTION, not 1 in
	TRACE() calls.
	(connect_to_pserver,send_modified): Ditto.
	* create_adm.c (Create_Admin): Ditto.
	* entries.c (Register, Scratch_Entry, WriteTemplate): Ditto.
	* filesubr.c (copy_file, xchmod, rename_file): Ditto.
	* history.c (history_write): Ditto.
	* kerberos4-client.c (start_kerberos4_server): Ditto.
	* no_diff.c (No_Difference): Ditto.
	* parseinfo.c (Parse_Info): Ditto.
	* rcs.c (RCS_checkout): Ditto.
	* server.c (server_register): Ditto.
	* update.c (join_file): Ditto.

	* no_diff.c (No_Difference): Gratuitous reformatting.
	* kerberos4-client.c (start_kerberos4_server): Ditto.

2005-02-27  Jim Meyering  <jim@meyering.net>

	* login.c (password_entry_operation): Exit nonzero when
	failing to close a just-appended-to .cvspass file.

2005-02-26  Derek Price  <derek@ximbiot.com>

	* root.c: Gratuitous reformatting.

2005-02-26  Mark D. Baushke  <mdb@cvshome.org>

	* root.c (parse_cvsroot): Handle another Bad CVSROOT.
	* sanity.sh (parseroot-8r): Test for it.
	(Problem report from Hiroyuki Ikezoe <poincare@ikezoe.net>.)

2005-02-26  Derek Price  <derek@ximbiot.com>

	* server.c: Include netdb.h with server support.  Other reformatting.

2005-02-25  Derek Price  <derek@ximbiot.com>

	* sanity.sh (multiroot2-9a): Correct for new TRACE message.

2005-02-25  Derek Price  <derek@ximbiot.com>

	* cvs.h (tag_check_valid): Declare NAME arg const.
	* tag.c (tag_check_valid): Ditto, update to account for this.
	Xasprintf instead of xmalloc/sprintf.

2005-02-25  Derek Price  <derek@ximbiot.com>

	* client.c (send_modified): Suppress a -Wall warning.

2005-02-25  Derek Price  <derek@ximbiot.com>

	* cvs.h (global_session_id): New global declaration.
	* import.c (add_rcs_file), rcs.c (RCS_checkin): Save commitid.
	* log.c (log_version), status.c (status_fileproc): Output commitid.
	* main.c (global_session_id): Define new global.
	(main): Create session ID.
	* sanity.sh: Update to compensate.
	(Original patch from Frank Hemer <frank@hemer.org>.)

2005-02-24 Derek Price <derek@ximbiot.com>

	* subr.h (cvs_trace, TRACE*): Move to...
	* server.h: ...here.
	* subr.c: Ditto, but to...
	* server.c: ...here, and print out 'P' instead of 'S' for traces from
	secondary (proxy) servers.

2005-02-24 Derek Price <derek@ximbiot.com>

	* admin.c (admin): Suppress warning with -Wall and --disable-client.
	* server.c: Don't declare functions that won't be defined when
	--disable-server.

2005-02-24 Derek Price <derek@ximbiot.com>

	* sanity.sh (primary-wrapper): Rename CVS_SERVER_LOG for the primary in
	writeproxy mode to avoid overwriting.

2005-02-24 Derek Price <derek@ximbiot.com>

	* client.c (open_connection_to_server): Fail with an expressive error
	message when connection is attempted via an unsupported protocol since
	this is no longer caught in parse_root().
	* edit.c (edit_fileproc), import.c (import): Don't verify
	current_parsed_root->isremote without client support.
	* parseinfo.c (parse_config): Parse PrimaryServer without proxy
	support.  Postpone method verification until the connect phase.
	* parseinfo.h (struct config): Always include PrimaryServer.
	* root.c (primary_root_translate, primary_root_inverse_translate):
	Don't declare vars without PROXY_SUPPORT when they won't be used.
	(parse_cvsroot): Parse remote connection methods with server support
	for PrimaryServer/Redirects.  Delay method support verification until
	the connect phase.
	* root.h (cvsroot_t): Include remote elements with SERVER_SUPPORT.
	* server.c (isProxyServer): Delay method verification until the connect
	phase.

2005-02-23 Derek Price <derek@ximbiot.com>

	* tag.c (tag): Handle -r<tag>:<date>.
	* sanity.sh (tagdate-13.*): New tests.

2005-02-23 Derek Price <derek@ximbiot.com>

	* annotate.c (annotate), ls.c (ls): Handle -r<tag>:<date>.

2005-02-23 Derek Price <derek@ximbiot.com>

	* diff.c: Some reformatting.
	(diff): Handle -r<tag>:<date>.
	* sanity.sh (tagdate-13b): New test.

2005-02-23 Derek Price <derek@ximbiot.com>

	* checkout.c (checkout): Use parse_tagdate.
	* tag.c (tag_check_valid_join): Remove this function.
	* cvs.h (tag_check_valid_join): Ditto for the proto.
	(parse_tagdate): New proto.
	(Make_Date): Make arg const.
	* main.c (Make_Date): Ditto.
	(parse_tagdate): New function.
	* update.c (date_rev1, date_rev2): Rename these globals...
	(join_date1, join_date2): ...to this.
	(update): Use parse_tagdate.
	(do_update): Use new API.
	* update.h (do_update): Update proto.
	* sanity.sh: Misc reformatting.
	(tagdate-12): This test now passes.
	(tagdate-12b): New test.
	(multiroot-9a): Handle new TRACE.

2005-02-23 Derek Price <derek@ximbiot.com>

	* rsh-client.c (start_rsh_server): Update comment.  Replace
	malloc/sprintf combo with a call to Xasprintf.

2005-02-22 Derek Price <derek@ximbiot.com>

	* error.c (error): Handle unsigned int format char.
	* parseinfo.c (parse_error): New function.
	(parse_config): Keep track of line number and output it in error
	messages.
	* rcs.c (RCS_setlocalid): Accept file path and line number for error
	messages.  Add header comment block.
	* rcs.h (RCS_setlocalid): Update prototype to match.
	* parseinfo.h (parse_error): Declare new function.
	* sanity.sh: Accept new --noredirect argument.
	(checklongoptarg): Accept longoptmode as an argument
	rather than via an environment variable.
	(notnoredirect): New function.
	(newroot): Handle root options.
	(keywordexpand, config): Skip in noredirect mode.  Update for new
	config error messages.
	(multiroot): Some reformatting.
	(writeproxy, writeproxy-noredirect): Skip in noredirect mode.
	(commit, writeproxy-noredirect): Quote CVSROOT arguments since they
	might contain semicolons.

2005-02-21  Mark D. Baushke  <mdb@cvshome.org>

	* import.c (import): Avoid using assert with side effects it may
	be configured away using NDEBUG.
	(Patch from Frank Hemer <frank@hemer.org>.)

2005-02-20  Mark D. Baushke  <mdb@cvshome.org>

	* main.c (main): Check the results from xgethostname(). Print a
	message with the errno and use "localhost" if NULL is returned.

2005-02-20 Derek Price <derek@ximbiot.com>

	* cvs.h (run_arg): Rename to...
	(run_add_arg): New function.
	* run.c (run_arg): Remove.
	(run_add_arg): Remove static declaration.
	(run_piped): New function.
	* logmsg.c, modules.c: s/run_arg/run_add_arg/.
	* release.c (release): Replace use of piped_child with a call
	to run_piped to avoid quoting issues.
	* sanity.sh (info-cleanup-0): Expect success.

2005-02-19 Derek Price <derek@ximbiot.com>

	* edit.c (unedit_fileproc, mark_up_to_date): Replace xmallc/strcat
	sequence with single call to Xasprintf.

2005-02-08 Derek Price <derek@ximbiot.com>

	* rsh-client.c: Some reformatting.

2005-02-04 Derek Price <derek@ximbiot.com>

	* zlib.c (compress_buffer_input): Don't return EOF when there is data
	pending.

2005-02-01 Derek Price <derek@ximbiot.com>

	* main.c: Update year in copyright notice to match GNU standards.
	* sanity.sh (version-1): Update to match.

2005-02-01  Larry Jones  <lawrence.jones@ugs.com>

	* log.c (log_fileproc, log_expand_revlist): Add support for BASE tag.
	* sanity.sh (log): New tests for above.

2005-01-31 Derek Price <derek@ximbiot.com>

	* main.c: Rephrase --version message.
	* sanity.sh (version-1): Update to match.

2005-01-31 Derek Price <derek@ximbiot.com>

	* Makefile.am, add.c, admin.c, annotate.c, checkin.c, checkout.c,
	classify.c, commit.c, create_adm.c, cvs.h, cvsrc.c, diff.c, entries.c,
	find_names.c, hash.c, hash.h, history.h, import.c, lock.c, log.c,
	login.c, logmsg.c, main.c, mkmodules.c, modules.c, myndbm.c, no_diff.c,
	parseinfo.c, patch.c, rcs.c, rcs.h, rcscmds.c, recurse.c, remove.c,
	repos.c, root.c, root.h, server.h, stack.c, stack.h, status.c, subr.c,
	tag.c, update.c, vers_ts.c, version.c: Update copyright notices.

2005-01-29 Derek Price <derek@ximbiot.com>

	* log.c (log_usage): Add note about using -S with revision info
	supression and selection.
	(Suggestion from Dan Peterson <dbpete@aol.com>.)

2005-01-29 Derek Price <derek@ximbiot.com>

	* sanity.sh (writeproxy-ssh-noredirect): Remove some commented out
	code.

2005-01-25  Larry Jones  <lawrence.jones@ugs.com>

	* expand_path.c (expand_path): Rewrite using offsets instead of
	pointers to simplify and avoid reallocation bugs.
	(Inspired by Jeremy Bopp <jeremy@motive.com>.)

2005-01-20 Brian Murphy <brian@murphy.dk>

	* server.c fixing the style of the pam function calls and if
	statements

2005-01-19 Brian Murphy <brian@murphy.dk>

	* server.c (pam_username, pam_password) new global static
	variables to hold the username and pasword for cvs_pam_conv.
	(cvs_pam_conv) using pam_username and pam_password.
	(check_pam_password) set pam_username, pam_password before
	authentication and clear them when authentication is finished.
	(server, switch_to_user) Check for pamh being set before using
	pam functionality, NULL indicating that this user was authenticated
	using the repository password file.

2004-12-09 Derek Price <derek@ximbiot.com>

	* log-buffer.c (buf_count_mem): Compile this for PROXY_SUPPORT.
	(Report from Brad L. Chisholm <blc@bsdwins.com>.)

2004-12-09 Derek Price <derek@ximbiot.com>

	* sanity.sh (modules7): New test group.
	(Based on a patch from Mark D. Baushke <mdb@cvshome.org>, based on a
	report from Richard Verhoeven <Richard_Verhoeven@WestLB.de>.)

2004-12-09  Derek Price  <derek@ximbiot.com>

	* client.c (start_server): Avoid advertising the Redirect response when
	the user asked us not to.
	* root.h (cvsroot_t): Add redirect field.
	* root.c (new_cvsroot_t): Init redirect field.
	(parse_cvsroot_t): Parse Redirect method option.
	* server.c (serve_command_prep): Don't throw proxy_log away when
	Redirect isn't supported and it might be needed later.
	* sanity.sh (parseroot): Improve comment, add a few new tests.
	(writeproxy-ssh): Specify Redirect=yes explicitly.
	(writeproxy-ssh-noredirect): New test group.

2004-12-09  Mark D. Baushke  <mdb@cvshome.org>

	* main.c (usg): Remove Dr. Pascal Molli's CVS URL from the
	documentation.

2004-12-08  Derek Price  <derek@ximbiot.com>

	* root.c (Name_Root): s/TRACE_FUNCTION/TRACE_FLOW/.

2004-12-08  Derek Price  <derek@ximbiot.com>

	* root.c (parse_cvsroot): Suppress -Wall warning.

2004-12-08  Derek Price  <derek@ximbiot.com>

	* root.c (parse_cvsroot): findnode() compares LIST to NULL w/o help.

2004-12-08  Derek Price  <derek@ximbiot.com>

	* root.c (Name_root), server.c (serve_referrer): Don't free cvsroot_t.
	* server.sh (reposmv): Reaccount for multiple potential warnings and
	comment.

2004-12-07  Derek Price  <derek@ximbiot.com>

	* root.c (parse_cvsroot): Cache parsed values for efficiency and to
	avoid printing warnings about non-fatal parsing errors multiple times.
	* client.c,, login.c, main.c, recurse.c: Don't dispose of parsed roots,
	parse_cvsroot() has control.
	* sanity.sh (reposmv): Stop accounting for multiple warnings.

2004-12-03  Mark D. Baushke  <mdb@cvshome.org>

	* root.h (cvsroot_t): Add cvs_rsh and cvs_server for bookkeeping
	purposes.
	* root.c (new_cvsroot_t, free_cvsroot_t): Add support for case
	insensitive options CVS_RSH and CVS_SERVER.
	(parse_cvsroot): Ditto and make all keywords case insensitive.
	* client.c (connect_to_forked_server): Add support for the new
	"CVS_SERVER" option to CVSROOT.
	* rsh-client.c (connect_to_forked_server): Ditto
	(start_rsh_server): Ditto and add support for the new "CVS_RSH"
	option to CVSROOT.
	* sanity.sh (parseroot3): New tests for the new options to
	CVSROOT.

2004-11-30  Larry Jones  <lawrence.jones@ugs.com>

	* mkmodules.c (config_contents): Add LocalKeyword and KeywordExpand,
	misc. cleanup.

2004-11-30  Derek Price  <derek@ximbiot.com>

	* parseinfo.c (readBool): Update quotes in error message for
	consistency.  Move function to...
	* subr.c (readBool): ...here.
	(*): Gratuitous reformatting.
	* cvs.h: Move all subr.c function prototypes to...
	* subr.h: ...this new file.
	* Makefile.am (cvs_SOURCES): Add subr.h.

2004-11-30  Derek Price  <derek@ximbiot.com>

	* parseinfo.c (readBool): Reorder arguments to error() and improve
	header comment.

2004-11-30  Derek Price  <derek@ximbiot.com>

	* client.c (handle_referrer): New function.
	(handle_redirect): Handle possibility that CLIENT_REFERRER was set via
	a response.
	* server.c (serve_command_prep): Send a normalized Referrer response
	before a Redirect when the client supports it.

2004-11-29  Mark D. Baushke  <mdb@cvshome.org>

	* rcs.c (RCS_setlocalid): Do more configuration validation.
	Include some gratuitous reformatting.
	* sanity.sh (keywordexpand): Add tests for new validation code.

2004-11-24  Derek Price  <derek@ximbiot.com>

	* server.c (become_proxy): Note assumptions about syncronized primary
	and secondary versions with `FIXME?' note.

2004-11-22  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (info): Ignore comments in verifymsg test.

2004-11-22  Mark D. Baushke  <mdb@cvshome.org>

	* mkmodules.c (loginfo_contents, verifymsg_contents,
	commitinfo_contents, taginfo_contents, preproxy_contents,
	postadmin_contents, postproxy_contents, posttag_contents,
	postwatch_contents, notify_contents): Add comments regarding the
	additional format strings that are available. Include some
	gratuitous reformatting.

2004-11-19  Derek Price  <derek@ximbiot.com>

	* subr.c (Xasnprintf): Improve header comment block.

2004-11-19  Derek Price  <derek@ximbiot.com>

	* root.c (normalize_cvsroot): Improve header comment block.

2004-11-19  Derek Price  <derek@ximbiot.com>

	* server.c: Misc reformatting and comment corrections.

2004-11-19  Derek Price  <derek@ximbiot.com>

	* cvs.h (hostname): Redeclare as pointer rather than array.
	* main.c: Include xgethostname.h.  Declare server_hostname.
	(main): Use xgethostname().  Set server_hostname.
	* server.c (MAXHOSTNAMELEN): Remove this macro.
	(isThisHost): Reference global HOSTNAME rather than looking it up.
	Improve header comment block.
	(gserver_authenticate_connection): Likewise.
	(serve_command_prep): Correct comment.
	(serve_hostname): Don't bother to validate hostname length.

2004-11-19  Derek Price  <derek@ximbiot.com>

	* server.c (isThisHost): strcasecmp before consulting the DNS as an
	optimization.

2004-11-18  Mark D. Baushke  <mdb@cvshome.org>

	* checkout.c (checkout_proc): Passing the repository to
	tag_check_valid seems to stop the assertion failure in recurse.c
	do_recursion.
	* sanity.sh (basic2-21a): Removed.
	(basic2-21c): Fixed.

2004-11-18  Derek Price  <derek@ximbiot.com>

	* sanity.sh (skip_always, notproxy): New functions.
	(skip, remoteonly, sshstdio, client): Use new functions.

2004-11-17  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (basic2-21a): The val-tags file should have
	at least 'rtagged-by-head y' in it. Test from cvs 1.11.18 that
	shows fixed result.
	(basic2-21b, basic2-21c): New tests showing a cvs bug when
	val-tags is not present.
	(Report from "John Elgin" <John@JCElgin.com>.)

	* sanity.sh (basicb-21): POSIX 1003.2 specifies 'illegal option'
	while lots of getopt implementations still use 'invalid option'.
	Allow either form for this test.

2004-11-17  Mark D. Baushke  <mdb@cvshome.org>

	* buffer.c (fd_buffer_block): Deal with BSD and BSDI problems to
	set block/nonblock on /dev/null.

2004-11-17  Derek Price  <derek@ximbiot.com>

	* Makefile.am (distclean-local): Clean check.plog~.

2004-11-11  Derek Price  <derek@ximbiot.com>

	* sanity.sh: s/cp -r/cp -R/ to meet POSIX specification.
	(Thanks to report from Paul Eggert <eggert@cs.ucla.edu>.)

2004-11-10  Mark D. Baushke  <mdb@cvshome.org>

	* ms-buffer.c (ms_buffer_input): Avoid UNICOS cc error where
	'Both sides of the assignment operator are not compatible.'

	* sanity.sh (importc, rcs, rcs4, tagdate): Use TZ=UTC0 not TZ=UTC
	to get proper POSIX behavior on MacOS X.

2004-11-10  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Actually parse -e option like we claim to.

2004-11-10  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Maintain pass/skip/warn status and output at end.
	(usage): Note new functionality of -e.
	(warn): New function.
	(verify_tmp_empty): Warn instead of failing.  Delete turds if warn()
	doesn't exit.

2004-11-10  Derek Price  <derek@ximbiot.com>

	* sanity.sh (verify_tmp_empty): New function.
	(dotest_internal_*): Call verify_tmp_empty as needed.

2004-11-09  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (expr_tooltest3): Bugfix. Use $expr rather than $EXPR.

2004-11-08  Derek Price  <derek@ximbiot.com>

	* sanity.sh (version_test): Echo good version data to the log, even
	when it went to stderr.  Don't echo bad version data.

2004-11-08  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (tool_find): Rewrite. API changed to allow a list of
	tests to be used against a list of possible command names found on
	the SEARCHPATH.
	(version_test): Obtain the version of tools under test if
	possible.
	(id_tool_test): Check that 'id -u' and 'id -un' work.
	(expr_tooltest1): Check for NextStep 3.3 expr bug.
	(expr_tooltest2): Check for SunOS expr multi-line pattern bug.
	(expr_create_bar): Create a test file for expr testing.
	(expr_tooltest3): Use it and test for big multi-line identity
	matches.
	(expr_set_ENDANCHOR): Find and set the right value for ENDANCHOR.
	(expr_set_DOTSTAR): Find and set the right value for DOTSTAR.
	(expr_tooltest_DOTSTAR): Ensure that DOTSTAR works with big
	matches.
	(tr_tooltest1): Verify that tr handles NUL bytes.
	(ls_tooltest): See if /bin/ls returns true even if wildcard does
	not match any files.
	(awk_tooltest1): Verify that awk the BEGIN clause works properly.
	(awk_tooltest2): Verify that print %c format item works properly.

2004-11-08  Derek Price  <derek@ximbiot.com>

	* sanity.sh (verify_tmp_empty): New function.
	(dotest_internal_*): Call verify_tmp_empty as needed.

2004-11-08  Derek Price  <derek@ximbiot.com>

	* sanity.sh (run_filter): Add function header comment block.

2004-11-07  Larry Jones  <lawrence.jones@ugs.com>

	* sanity.sh: Remove trailing / from cp -r commands.

2004-11-04  Derek Price  <derek@ximbiot.com>

	* gssapi-client.c (connect_to_gserver): Silence gcc -Wall.

2004-11-04  Derek Price  <derek@ximbiot.com>

	* sanity.sh (set_bad_tool): Remove unnecessary quotes.

2004-11-04  Derek Price  <derek@ximbiot.com>

	* sanity.sh: s/depends_on_/require/.

2004-11-04  Derek Price  <derek@ximbiot.com>

	* sanity.sh (find_tool): Eliminate variable with single reference.

2004-11-04  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (SEARCHPATH): Unify the PATHs that are to be searched.
	(Which,find_tool): Use SEARCHPATH.
	(LS): Use default $SEARCHPATH for Which.
	(depend_on_rsync): Use default $SEARCHPATH for Which.

2004-11-04  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (depends_on_rsync): Do not echo rsync information to
	stdout. Look for rsync in more directories.

2004-11-04  Derek Price  <derek@ximbiot.com>

	* sanity.sh (depends_on_rsync): Minor simplifications.  Make sure that
	an rsync that doesn't understand `--version' sends its error message to
	the log file too.

2004-11-04  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (set_bad_tool, is_bad_tool): Avoid printing errors
	about the same tool multiple times.

2004-11-03  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (depends_on_rsync): Deal with missing rsync.

2004-11-03  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (depends_on_rsync): Include rsync version information
	in output.

2004-11-03  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (depends_on_rsync): More rigorous tests for rsync
	2.3.1 problems with --delete --include dir --exclude '*/.

2004-11-03  Derek Price  <derek@ximbiot.com>

	* sanity.sh (depends_on_rsync): Verify that `rsync --delete' actually
	does what it is supposed ot do.

2004-11-03  Derek Price  <derek@ximbiot.com>

	* subr.c (Xreadlink): Remove MAXSIZE macro.  Minor reformatting.

2004-11-03  Mark D. Baushke  <mdb@cvshome.org>

	* filesubr.c (xreadlink): Remove and use GNULIB version.
	(islink): Return ssize_t instead of bool.
	(copy_file): Use Xreadlink().
	* cvs.h: Add include "xreadlink.h"
	(islink): Return ssize_t instead of bool.
	* import.c (preserve_initial_permissions): Use Xreadlink.
	* rcs.c (RCS_checkin): Ditto.
	* update.c (special_file_mismatch): Ditto.
	* subr.c (get_file): Ditto.
	(resolve_symlink): Ditto.
	(Xreadlink): New interface to xreadlink(), never return NULL.

2004-11-02  Mark D. Baushke  <mdb@cvshome.org>

	* filesubr.c (MAXSIZE): New macro.
	(xreadlink): Ensure initial buffer size does not exceed MAXSIZE.
	Avoid cast. If readlink fails with buffer size just under MAXSIZE,
	try again with MAXSIZE.

2004-11-02  Mark D. Baushke  <mdb@cvshome.org>

	* filesubr.c (xreadlink): AIX and HP-UX readlink() returns ERANGE
	when there is not enough room in the buffer.

2004-11-01  Derek Price  <derek@ximbiot.com>

	* cvs.h: Remove getdate proto in favor of including getdate.h.
	* client.c (handle_mod_time), history.c (history), main.c (Make_Date,
	format_date_alloc), rcs.c (RCS_getrevtime), server.c
	(serve_checkin_time): Use new get_date API.

2004-11-01  Derek Price  <derek@ximbiot.com>

	* sanity.sh (rcslib): Fix typo in path.

2004-11-01  Derek Price  <derek@ximbiot.com>

	* sanity.sh (rcslib): Test a link to a path longer than 128
	characters.

2004-10-30  Mark D. Baushke  <mdb@cvshome.org>

	* patch.c (patch_cleanup): Add signal argument and use it.

2004-10-30  Mark D. Baushke  <mdb@cvshome.org>

	* client.c: Adjust include files to avoid problems with incomplete
	types under --disable-client.
	* msg-buffer.c: Deal with --disable-client --disable-server
	implicitly meaning --disable-proxy.
	* server.c: Adjust include files to avoid problems with incomplete
	types under --disable-server.

2004-10-30  Mark D. Baushke  <mdb@cvshome.org>

	* server.c (isThisHost): Deal with possibility of a missing
	hstrerror() function.

2004-10-29  Derek Price  <derek@ximbiot.com>

	* server.c (server_root, move_file_offset, replace_file_offset):
	Remove dead code.

2004-10-29  Derek Price  <derek@ximbiot.com>

	* filesubr.c (xreadlink): Make sure allocation is tried once at the
	maximum buffer size.  Protect against overflow.

2004-10-29  Derek Price  <derek@ximbiot.com>

	* server.c (isSameHost): Handle gethostname & gethostbyname errors.

2004-10-29  Derek Price  <derek@ximbiot.com>

	* server.c (isSameHost): Use strcasecmp to compare host names.

2004-10-29  Mark D. Baushke  <mdb@cvshome.org>

	* server.c: Need to #include <netdb.h> for either PROXY_SUPPORT or
	HAVE_GSSAPI to get gethostbyname() declarations for

2004-10-29  Mark D. Baushke  <mdb@cvshome.org>

	* filesubr.c (SIZE_MAX, SSIZE_MAX): Use #include "xsize.h" instead.
	(xreadlink): Use xrealloc instead of xmalloc/free.

2004-10-29  Mark D. Baushke  <mdb@cvshome.org>

	* filesubr.c (SIZE_MAX, SSIZE_MAX): New constants.
	(xreadlink): Deal with symlinks longer than 127 bytes.
	(Problem reported as issue 190 by Gottfried Ganssauge
	<gotti@cvshome.org>.)

2004-10-29  Derek Price  <derek@ximbiot.com>

	* server.c (isSameHost): New fuction.
	(same_path): Rename to...
	(isSamePath): ...this.
	(isProxyServer): Use new functions/names.

2004-10-29  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (writeproxy): Use DOTSTAR to avoid problems with
	a missing Gssapi-authenticate in Valid-requests.

2004-10-28  Derek Price  <derek@ximbiot.com>

	* server.c (same_path): New function.
	(isProxyServer): Use new function.
	* sanity.sh (writeproxy): Test that server resolves symlinks when
	deciding whether it is a primary server.

2004-10-28  Derek Price  <derek@ximbiot.com>

	* cvs.h (isdir, isfile, islink, isdevice, isreadable, iswritable,
	isaccessible, isabsolute): Return boolean rather than int.
	* filesubr.c (isdir, isfile, islink, isdevice, isreadable, iswritable,
	isaccessible), subr.c (isabsolute): Ditto.  Some reformatting.
	* filesubr.c (xresolvepath): Use save_cwd in place of xgetwd.  Some
	reformatting.

2004-10-28  Derek Price  <derek@ximbiot.com>

	* client.c (handle_redirect): Detect redirect loops.
	* sanity.sh (client-20): Test that client detects redirect loops.

2004-10-28  Mark D. Baushke  <mdb@cvshome.org>

	* release.c (release): Allow builds of cvs with --disable-server
	--disable-client both used for local installation configuration.
	* root.c (Name_Root): Ditto.
	* update.c (checkout_file): Ditto.
	* edit.c (edit_fileproc): Ditto.
	* import.c (import): Ditto.
	(Problem reported by Jean Olivier Caron <jecar@mlab.t.u-tokyo.ac.jp>.)

2004-10-27  Mark D. Baushke  <mdb@cvshome.org>

	* cvs.h (RCS_FLAGS_USETIME): New flag.
	* rcs.c (RCS_checkin): Add citime argument.
	* rcs.h (RCS_checkin): Ditto.
	* checkin.c (Checkin): Pass new RCS_checkin argument.
	* commit.c (remove_file, checkaddfile): Ditto.
	* import.c (add_rev): Ditto.

	* sanity.sh (tagdate): Delete tagdate-19b as an incorrect test.

2004-10-27  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (tagdate): Provide more output.

2004-10-26  Mark D. Baushke  <mdb@cvshome.org>

	* commit.c (checkaddfile): Create a dead version for a new file
	added to a branch. Fixes FIXCVS for tagdate tests.
	* sanity.sh (tagdate): Update to expect correct results.
	(death2, branch-after-import, join, ignore-on-branch): Ditto.

2004-10-26  Mark D. Baushke  <mdb@cvshome.org>

	* server.c (isProxyServer): Fix hostname setup.

2004-10-26  Derek Price  <derek@ximbiot.com>

	Call all exit handlers via atexit() & exit().  Signal handlers exit().
	Eliminates a compiler warning.

	* exithandle.c (cleanup_register): Don't register a signal handler.
	Register a function to block signals before the exit handler is called.
	* lock.c (Lock_Cleanup): Remove never_run_again cruft and assoc. cmts.
	* rcs.c (rcs_cleanup), server.c (server_cleanup): Ditto, plus assume
	signals are blocked.
	* main.c (main_cleanup): Declare noreturn attribute.

2004-10-26  Derek Price  <derek@ximbiot.com>

	* gssapi-client.c (connect_to_gserver): Avoid truncating error messages
	from the GSSAPI server.
	(Report from Dan Peterson <dbpete@aol.com>.)

2004-10-26  Derek Price  <derek@ximbiot.com>

	* sanity.sh (import-quirks): Test an even branch number.

2004-10-25  Derek Price  <derek@ximbiot.com>

	* import.c (import): Repair regex for regressions introduced in last
	commit.
	* sanity.sh (import-quirks): Test a few branch numbers import shouldn't
	have a problem with.

2004-10-25  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (modes3): Quiet rsync messages in proxy mode when
	permissions are removed. They are expected and not a problem here.

2004-10-25  Derek Price  <derek@ximbiot.com>

	* import.c (import): Anchor and simplify branch verification regex.
	* sanity.sh (import-quirks): Test another pattern that should fail.

2004-10-25  Derek Price  <derek@ximbiot.com>

	* cvs.h (yesno): Remove prototype.
	* edit.c, release.c: Include yesno.h.  Flush output before calling
	yesno().

2004-10-25  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (tagdate): Added some additional tests and FIXCVS
	comments for dealing properly with a 'cvs add' of a file to
	a branch that already exists on the mainline.
	(Problem reported by Renny Barrett <rbarrett@curamsoftware.com>.)

	* sanity.sh (getrlogdate): New shell function.
	(tagdate-{13,14,16}): Use it to avoid 'sleep 60' by using
	the exact 1.1.4.1 timestamp for tagdate-14 and tagdate-16.

2004-10-25  Derek Price  <derek@ximbiot.com>

	* sanity.sh (depends_on_rsync): Redirect rsync output to /dev/null when
	just testing.

2004-10-23  Mark D. Baushke  <mdb@cvshome.org>

	* socket-client.c (socket_buffer_initialize): Drop obsolete
	arguments to buf_initialize().

2004-10-22  Mark D. Baushke  <mdb@cvshome.org>

	* client.c (handle_m, handle_e): Winsock is returning
	SOCK_ERRNO == WSAENOTSOCK for select() problems and not
	setting errno. Do not bother with printing an error from a
	select() that is not returning an non-zero errno.
	(Report from Conrad T. Pino <Conrad@Pino.com>.)

2004-10-22  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (proxy): proxycheck depends on rsync, but skip all if
	no rsync is found rather than generate an error return.

2004-10-22  Mark D. Baushke  <mdb@cvshome.org>

	* Makefile.am (proxycheck): New test target.
	* sanity.sh: Keep one more level of check.log backup.
	* Makefile.in: Regenerated.

2004-10-22  Derek Price  <derek@ximbiot.com>

	* client.c, update.c: Use new MD5 interface.

2004-10-22  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (find_tool): Search /usr/pkg/bin for NetBSD tools
	like rsync.

2004-10-22  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (tagdate): Fix typo.

2004-10-21  Derek Price  <derek@ximbiot.com>

	* subr.c: #include vasnprintf.h to avoid compiler warning.

2004-10-21  Derek Price  <derek@ximbiot.com>

	* cvs.h (error_use_protocol): Move decl here from lib/error.h so that
	we may use an unforked error.h from GNULIB.

2004-10-21  Derek Price  <derek@ximbiot.com>

	* main.c: #include strftime.h.
	(format_time_t, gmformat_time_t): Supply missing args to my_strftime.

2004-10-21  Derek Price  <derek@ximbiot.com>

	* buffer.c: Don't maintain last_index & last_count for buffers.
	* buffer.h (struct buffer): Update struct.
	(buf_initialize): Update proto.
	* log-buffer.c, ms-buffer.c, zlib.c: Update all callers.

2004-10-21  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Fail gracefully in proxy mode when rsync is defective.
	(depends_on_rsync): New function.
	(writeproxy, writeproxy-noredirect, writeproxy-ssh): Skip these tests
	gracefully when rsync is missing.

2004-10-21  Mark D. Baushke  <mdb@cvshome.org>

	* add.c (add): Pay attention to cvswrite mode when resurrecting a
	file that was not yet committed.
	(Report from Frank Hemer <frank@hemer.org>.)
	* sanity.sh (resurrection): Add new tests to deal with read-only
	mode on a cvs add durring a resurrection. Verify that -r is not
	honored when the resurrected file must be committed to be seen.

2004-10-21  Derek Price  <derek@ximbiot.com>

	* ls.c (ls_fileproc): Deal with files specified on the command line.
	(ls_delproc): Move to a more accessible location.

2004-10-20  Derek Price  <derek@ximbiot.com>

	* add.c (add): Avoid unnecessary typecast.

2004-10-20  Mark D. Baushke  <mdb@cvshome.org>

	* Makefile.in: Regenerate for new configure.in.

2004-10-19  Mark D. Baushke  <mdb@cvshome.org>

	* add.c (add): Backout last typecasts cleanup.

2004-10-19  Derek Price  <derek@ximbiot.com>

	* add.c (add): Avoid attempting to resurrect a dead rev 1.1.
	* sanity.sh (resurrection): Add test for the above.
	(Report from Dan Peterson <dbpete@aol.com>.)

2004-10-19  Derek Price  <derek@ximbiot.com>

	* add.c (add): Avoid unnecessary typecasts.

2004-10-19  Derek Price  <derek@ximbiot.com>

	* cvs.h: Prototype new function.
	* subr.c (Xasnprintf): New function.
	* root.c (primary_root_translate, primary_root_inverse_translate):
	s/asnprintf/Xasnprintf/.
	* client.c (connect_to_pserver): Store line length for efficiency.

2004-10-19  Derek Price  <derek@ximbiot.com>

	* history.c: Remove unecessary typecasts.  Some reformatting.

2004-10-18  Derek Price  <derek@ximbiot.com>

	* server.c (serve_modified): Eliminate >= 0 check since size_t may not
	be negative.
	(Originally reported by Martin Neitzel <neitzel@sco.gaertner.de>.)

2004-10-18  Derek Price  <derek@ximbiot.com>

	* cvs.h (DEVNULL): This is system dependant.  Move it to lib/system.h.
	* client.c (copy_a_file): Consolidate USE_VMS_FILENAMES stuff under a
	single #ifdef.

2004-10-15  Derek Price  <derek@ximbiot.com>

	* cvs.h: Don't include vasnprintf.h.
	(Xasprintf): New prototype.
	* client.c, edit.c, history.c, import.c, ls.c, main.c, parseinfo.c,
	recurse.c, release.c, repos.c, root.c, server.c, status.c, subr.c,
	vers_ts.c: s/asnprintf/Xasprintf/.
	* root.c: Include vasnprintf.h.
	(primary_root_translate, primary_root_inverse_translate): Use
	asnprintf() properly.
	* subr.c: Include vasprintf.h.
	(Xasprintf): New function.

2004-10-14  Derek Price  <derek@ximbiot.com>

	* import.c (import): Remove an unecessary level of nesting.  Simplify
	xmalloc/sprintf with asnprintf.  Remove useless comment.

2004-10-14  Derek Price  <derek@ximbiot.com>

	* import.c (import): Verify branch specifications more thoroughly.
	* sanity.sh (importb): Adapt to new error message.
	(import-quirks): New test.

2004-10-14  Mark D. Baushke  <mdb@cvshome.org>

	* server.c (server_pause_check, do_cvs_command, server_cleanup):
	Avoid typecasts.

2004-10-14  Derek Price  <derek@ximbiot.com>

	* gssapi-client.c: Use new size_t buffer APIs.

2004-10-11  Mark D. Baushke  <mdb@cvshome.org>

	* buffer.h, buffer.c (buf_output, buf_input_data, buf_read_line,
	buf_read_data, struct packetizing_buffer,
	packetizing_buffer_initialize) Use size_t instead of int.
	Silences warnings in buffer.c, server.c, and zlib.c on OpenBSD
	sparc64 where sizeof(int) is not the same as sizeof(size_t).
	* client.c (read_line_via, read_line, try_read_from_server,
	get_server_response, handle_ok, handle_error,
	handle_valid_requests, handle_checked_in, handle_new_entry,
	handle_checksum, handle_copy_file, handle_updated, handle_merged,
	handle_patched, handle_rcs_diff, handle_removed,
	handle_remove_entry, handle_set_static_directory,
	handle_clear_static_directory, handle_set_sticky,
	handle_clear_sticky, handle_clear_template,
	handle_module_expansion, handle_wrapper_rcs_option, handle_m,
	handle_e, handle_f, handle_notified): Ditto
	* client.h (struct response): Ditto.
	* server.c (receive_partial_file, receive_file, serve_modified,
	do_cvs_command): Ditto.
	* zlib.c (compress_buffer_input, compress_buffer_shutdown_input):
	Ditto.
	(Patch from Alexander Taler <dissent@cvshome.org>.)

2004-10-08  Derek Price  <derek@ximbiot.com>

	* client.c (send_args): Carry through a const to silence gcc -Wall.
	* hardlink.c (delhardlist): New function.
	(lookup_file_by_inode): Use new function as delproc since it should
	work.  Carry through a const to silence gcc -Wall.
	* ms-buffer.c (ms_buffer_initialize): Use a working delproc.

2004-10-08  Derek Price  <derek@ximbiot.com>

	* client.c (open_connection_to_server, close_connection_to_server,
	handle_redirect): Add traces.

2004-10-07  Derek Price  <derek@ximbiot.com>

	* Makefile.am (cvs_SOURCES): Add parseinfo.h.

2004-10-07  Mark D. Baushke  <mdb@cvshome.org>

	* vers_ts.c (entries_time): Use size_t pointers. sizeof(int)
	may not be the same as sizeof(size_t) on OpenBSD sparc64.
	(Patch from Alexander Taler <dissent@cvshome.org>.)

	* wrapper.c (wrap_clean_fmt_str): Make static.

2004-10-07  Mark D. Baushke  <mdb@cvshome.org>

	* client.h (struct response): Make name a const.
	* cvs.h (RETSIGTYPE): Use a full prototype.
	* hash.h (struct node): Use a full prototype for delproc.

	* client.c (send_arg, send_option_string, option_with_arg): Make
	args of function const.
	* client.h (send_arg, send_option_string, option_with_arg): Ditto.

	* checkout.c (checkout): Make valid_options const.

2004-10-06  Derek Price  <derek@ximbiot.com>

	* release.h: Silence gcc -Wall.

2004-10-06  Derek Price  <derek@ximbiot.com>

	* cvs.h: Move include of getopt.h to system.h with similar headers.

2004-10-06  Derek Price  <derek@ximbiot.com>

	* login.c: Include getpass.h.

2004-10-06  Derek Price  <derek@ximbiot.com>

	* cvs.h: Include strcase.h.
	(cvs_casecmp): remove proto.
	* subr.c (cvs_casecmp): Remove function.
	* parseinfo.c: s/cvs_casecmp/strcasecmp/.

2004-10-06  Derek Price  <derek@ximbiot.com>

	* cvs.h: Move getopt.h and regex.h into the GNULIB include section.

2004-10-06  Derek Price  <derek@ximbiot.com>

	* main.c (cmds): Release calls unedit, to it modifies the repository.
	(struct cmd): Add const and full prototype where needed.
	* sanity.sh (edit-check): Use modify_repo where needed.
	(release): No more special case for release in proxy mode.
	(Patch from Mark D. Baushke  <mdb@cvshome.org>.)

	* release.c (release): Simplify login in if statement.

2004-10-06  Derek Price  <derek@ximbiot.com>

	* client.c (send_file_names): Back out broken portion of previous
	change.

2004-10-06  Derek Price  <derek@ximbiot.com>

	* client.c (call_in_directory): Make args of function arg const.
	* client.h, client.c, edit.h, edit.c, server.h, zlib.c: Carry change
	through to called functions and functions passed in as args.

2004-10-06  Derek Price  <derek@ximbiot.com>

	* checkout.c, commit.c, edit.c, rcs.c: Avoid typecasts.  Some
	reformatting.

2004-10-06  Derek Price  <derek@ximbiot.com>

	* client.c: Avoid more typecasts.  Some reformatting.

2004-10-06  Mark D. Baushke  <mdb@cvshome.org>

	* client.c (send_file_names): Use new save-cwd API.
	(connect_to_pserver): Use a union to avoid incompatible pointer
	type warnings.

2004-10-05  Derek Price  <derek@ximbiot.com>

	* cvs.h (Xstrdup): New proto mapped via define to xstrdup.
	* subr.c (Xstrdup): New function.

2004-10-05  Derek Price  <derek@ximbiot.com>

	* add.c, client.c, history.c, import.c, mkmodules.c, modules.c,
	recurse.c, release.c, tag.c, update.c: Use new save-cwd API.

2004-10-05  Derek Price  <derek@ximbiot.com>

	* checkout.c, client.c, commit.c, create_adm.c, cvs.h, filesubr.c,
	hardlink.c, history.c, logmsg.c, main.c, recurse.c, update.c:
	s/xgetwd/xgetcwd/.

2004-10-04  Derek Price  <derek@ximbiot.com>

	* client.c (responses): Add "Edit-file".
	(handle_edit_file): New function.
	* commit.c (usage): Add -c option.
	(check_fileproc): Check for edit when requested.
	(commit_fileproc): Use new notify_do API.
	* edit.c (check_edited): New global.
	(setting_tedit, setting_tunedit, setting_tcommit): s/int/bool/.
	(ncheck_fileproc): Use new notify_do API.
	(send_notifications): Remove redundant proto.  Remove unnecessary
	repository lock.
	(editors_output, find_editors_and_output, edit_file): New functions.
	edit_file() factored from...
	(edit_fileproc): ...here.  Skip files with existing editors when
	requested.
	(usage): Add -c and -f.
	(edit): Handle new -c and -f options.
	(notify_do): Accept update_dir as an argument for user messages.
	(editors_fileproc): Factor most content to find_editors_and_output()
	and edit_file().
	* edit.h (notify_do): Proto new API.
	(editors_output, edit_file): New functions.
	* rcs.c (RCS_unlock): Use new notify_do() API.
	* sanity.sh: Update assorted tests to compensate for new output.
	(edit-check): New tests.
	* server.c (gupdate_dir): New global.
	(struct notify_note): Keep track of update_dir.
	(serve_notify): Use update_dir.
	(serve_hostname, serve_localdir, serve_edit, server_edit_file): New
	functions.
	(server_notify): Use new notify_do() API.
	(requests): Add Hostname, LocalDir, and edit.
	* server.h (server_edit_file): New proto.
	(Note: Original design of new advisory lock behavior came from Noel Yap
	<yap_noel@yahoo.com>'s original advisory locks patch, originally ported
	forward and enhanced by Matthew Ogilvie <mmo9317bd@mailcan.com>.)

2004-10-04 Derek Price <derek@ximbiot.com>

	* admin.c (postadmin_proc), edit.c (notify_proc), fileattr.c
	(postwatch_proc), logmsg.c (logfile_write, verifymsg_proc), server.c
	(prepost_proxy_proc), tag.c (pretag_proc, posttag_proc): Pass referrer
	to called scripts when possible.
	* client.c (handle_redirect): Save the original server.
	(start_server): Send referrer to the new server if possible.
	* sever.c (referrer): New global.
	(serve_referrer): Save referrer.
	(requests): Add "Referrer" response.
	* server.h (referrer): Add extern decl.
	* sanity.sh (ssh-wrapper): Use in remote mode too.
	(writeproxy-ssh): New tests.

2004-10-04 Derek Price <derek@ximbiot.com>

	* cvs.h (CVSROOT_DFLT): Undef rather than defining to NULL.
	* main.c (main): Untangle parsing of CVSROOT, eliminating several
	variables in the process.  Simplify xmalloc/sprintf with asnprintf.

2004-10-04 Derek Price <derek@ximbiot.com>

	* root.c (primary_root_translate, primary_root_inverse_translate,
	get_local_root_dir, local_cvsroot): Simplify logic without proxy
	support.

2004-10-02  Mark D. Baushke  <mdb@cvshome.org>

	* root.c (primary_root_translate, primary_root_inverse_translate,
	get_local_root_dir): Protect PrimaryServer with #ifdef
	PROXY_SUPPORT

2004-10-01  Mark D. Baushke  <mdb@cvshome.org>

	* main.c (main): Initialize CVSroot before it is used.
	(Report and patch by Martin Neitzel <neitzel@sco.gaertner.de>.)
	* sanity.sh (status): Test it.

2004-10-01  Derek Price <derek@ximbiot.com>

	* checkout.c (checkout_proc), fileattr.c (fileattr_read), find_names.c
	(Find_Names), myndbm.c (mydbm_open, mydbm_load_file), parseinfo.c
	(Parse_Info), rcs.c (RCS_parsercsfile_i, rcsbuf_getkey,
	rcsbuf_getrevnum, rcsbuf_valword): Root translation functions no longer
	allocate.
	* commit.c (commit): Use send_a_repository rather than reimplementing.
	* main.c (main): Remove --primary-root option.
	* root.c (primary_root_add): Remove this function.
	(primary_root_in, primary_root_out): Remove globals.
	(primary_root_translate, primary_root_inverse_translate): Return const.
	Don't allocate return value.  Rely on parsed root and confg's
	PrimarServer rather than separately maintained globals.
	(get_local_root_dir): New function.
	(local_cvsroot): Translate requests for primary roots when necessary.
	* root.h (primary_root_add, primary_root_translate,
	primary_root_inverse_translate): Update protos to match.
	* sanity.sh (top level, writeproxy): Simplify $proxy setup.
	(client): Don't execute $proxy.  Simplify skips and reindent.
	(writeproxy-noredirect): Use --allow-root in place of --primary-root.
	Save and restore $PRIMARY_CVSROOT*.
	* server.c (serve_root): Rely on local_cvsroot() to do any necessary
	root translation.
	(serve_directory): Root translation functions no longer allocate.

2004-10-01  Derek Price <derek@ximbiot.com>

	* client.c (arg_should_not_be_sent_to_server), create_adm.c
	(Create_Admin), recurse.c (start_recursion, do_recursion, do_dir_proc),
	release.c (release), repos.c (Name_Repository, Short_Repository),
	update.c (update_filesdone_proc):
	s/original_root/original_parsed_root->MEMBER/.
	* main.c (set_root_directory): Set original_parsed_root when setting
	current_parsed_root.
	(main): s/original_root/original_parsed_root->MEMBER/.
	* root.c (original_root): Make cvsroot_t and rename to...
	(original_parsed_root): ...this.
	* root.h: Update extern decl to match.
	* server.c (serve_root): Set original_parsed_root.

2004-10-01  Derek Price <derek@ximbiot.com>

	* server.c (serve_questionable): Use pending errors per API.

2004-10-01  Derek Price <derek@ximbiot.com>

	* repos.c (Name_Repository): asnprintf, not sprintf.

2004-10-01  Derek Price <derek@ximbiot.com>

	* sanity.sh (ignore-11r): Rename second occurance to...
	(ignore-11ar): ...this.

2004-10-01  Derek Price <derek@ximbiot.com>

	* sanity.sh (1): Rename to...
	(init-1): ...this.

2004-10-01  Derek Price <derek@ximbiot.com>

	* repos.c (Name_Repository): Simplify string construction with
	asnprintf().  Improve comment.  Some reformatting.

2004-10-01  Derek Price <derek@ximbiot.com>

	* release.c (release): Simplify string construction with asnprintf().

2004-10-01  Derek Price <derek@ximbiot.com>

	* recurse.c (do_file_proc): Improve header comment.  Replace
	xmalloc()/strcat() combination with asnprintf().

2004-09-29  Derek Price <derek@ximbiot.com>

	* sanity.sh (config): Handle $SECONDRY_ROOT_DIRNAME output in $proxy
	mode.

2004-09-29  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh: Workaround MacOS X '/bin/ls' is not returning false
	when no files are listed.  Label some old tests.

2004-09-29  Derek Price <derek@ximbiot.com>

	* cvs.h: Include parseinfo.h.
	(top_level_admin, UseNewInfoFmtStrings,
	ImportNewFilesToVendorBranchOnly, PrimaryServer, MaxProxyBufferSize,
	MaxCommentLeaderLength, UseArchiveCommentLeader, RereadLogAfterVerify,
	lock_dir, UserAdminOptions):  Move extern decls for global config opts
	to config struct in parseinfo.h.
	(config): New global.
	(parse_config): Move proto to...
	* parseinfo.h: This new file.
	* parseinfo.c (parse_config): Return struct config.
	(new_config): New function.
	* admin.c: Remove global UserAdminOptions.
	(admin): Don't check config on client.
	* checkin.c (Checkin), checkout.c (checkout_proc), filesubr.c (xchmod),
	import.c (import, add_rcs_file, expand_and_copy_contents):
	Use config instead
	of globals.  Some reformatting.
	* history.c (logHistory): Move to struct config.
	(history_write): Use config instead of globals.
	* lock.c (lock_dir): Move global to struct config.
	(lock_name): Use config instead of globals.
	* logmsg.c (RereadLogAfterVerify): Move global to struct config.
	(do_verify, logfile_write, verifymsg_proc): Prefer config to globals.
	* main.c (top_level_admin, UseNewInfoFmtStrings, PrimaryServer,
	MaxProxyBufferSize, MaxCommentLeaderLength, UseArchiveCommentLeader,
	ImportNewFilesToVendorBranchOnly): Move globals to struct config.
	(config): New global.
	(main): Use new parse_config API.
	* rcs.c (preserve_perms, keywords): Move globals to struct config.
	(keyword_local): Move to struct rcs_keyword.
	(new_keywords, free_keywords): New functions.
	(expand_keywords, RCS_setlocalid, RCS_setincexc): Prefer config to
	globals.
	* rcs.h (free_keywords): New proto.
	(RCS_setincexc, RCS_setlocalid): Accept opaque keywords element.
	* root.c (delconfig, get_root_allow_config): New functions.
	* root.h (get_root_allow_config): New proto.
	* server.c (system_auth): Move global to struct config.
	(isProxyServer, become_proxy, serve_command_prep): Prefer config to
	globals.
	(serve_root): Ditto.  Set config.
	* server.h (system_auth): Move extern decl for global moved to config.

2004-09-29  Derek Price <derek@ximbiot.com>

	* history.h: Protect against multiple include.

2004-09-29  Derek Price <derek@ximbiot.com>

	* root.c (root_allow_count, root_allow_vector, root_allow_size):
	Replace with...
	(root_allow): ...this single List *.
	(root_allow_add, root_allow_free, root_allow_ok): Use new List API.
	Make args const.  Return bool rather than int when necessary.
	* root.h (root_allow_add, root_allow_ok): Update protos to match.

2004-09-29  Derek Price <derek@ximbiot.com>

	* admin.c (admin): s/int/bool/ as appropriate.  Some reformatting.

2004-09-29  Derek Price <derek@ximbiot.com>

	* history.c (history_write): Use asnprintf().  Some reformatting.

2004-09-29  Derek Price <derek@ximbiot.com>

	* import.c (killnew): s/int/bool/.
	(add_rcs_file): Ditto for do_killnew.
	* rcs.h (add_rcs_file): Change proto to match.

2004-09-29  Derek Price <derek@ximbiot.com>

	* client.c (start_server): Use bool in place of int.

2004-09-29  Derek Price <derek@ximbiot.com>

	* subr.c (cvs_trace): Correct header comment.  Some reformatting.

2004-09-28  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (ssh-wrapper-env): New script to avoid the assumption
	that the remote end of a $CVS_RSH is running a bourne shell.
	(ssh-wrapper): Use it.

2004-09-28  Derek Price <derek@ximbiot.com>

	* sanity.sh (writeproxy): Remove some setup obsoleted by redirects.

2004-09-27  Derek Price <derek@ximbiot.com>

	Use original_root for client comparisons with CVS/Root since
	current_parsed_root may be the product of a redirect.

	* client.c (handle_redirect): Don't free current_parsed_root.  Validate
	new roots.
	(args_should_not_be_sent_to_server):
	s/current_parsed_root->original/original_root/.
	* create_adm.c (Create_Admin): Likewise.
	* cvs.h (current_parsed_root): Move extern decl...
	* root.h: ...here.  Decl original_root extern.
	* main.c (set_root_directory): Store original_root.
	(main): s/current_parsed_root->original/original_root/.
	* recurse.c, release.c, update.c: Likewise.
	* root.c: Declare original_root.

2004-09-24  Derek Price <derek@ximbiot.com>

	* sanity.sh (parseroot2): Correct two test names.  Restore CVSROOT.

2004-09-24  Derek Price <derek@ximbiot.com>

	* root.c (parse_cvsroot): Use TRACE_FLOW, not TRACE_FUNCTION since this
	routine is called repeatedly by the recursion routines.
	* sanity.sh (multiroot2): Adjust to compensate.

2004-09-24  Derek Price <derek@ximbiot.com>

	* sanity.sh (parseroot2): Use remoteonly.

2004-09-24  Derek Price <derek@ximbiot.com>

	* sanity.sh (tests): Add parseroot2.

2004-09-24  Derek Price <derek@ximbiot.com>

	* recurse.c (do_recursion, do_dir_proc): Make process_this_directory a
	boolean.

2004-09-24  Derek Price <derek@ximbiot.com>

	* sanity.sh (parseroot2): New test for root parsing consistency.
	(Original patch from Alexander Taler <dissent@cvshome.org>.)

	* cvs.h (Name_Root, free_cvsroot_t, parse_cvsroot, local_cvsroot,
	Create_Root, root_allow_add, root_allow_free, root_allow_ok): Move
	these protos to...
	* root.h: ...here.
	* client.c (arg_should_not_be_sent_to_server), recurse.c
	(start_recusrion, do_recursion): Use new Name_Root API.
	* main.c (current_root): Remove global.
	(set_root_directory): Set current_parsed_root directly.
	(main): Use new Name_Root API.  Restore deletion of root directories
	list.
	* root.c (Name_Root): Return a parsed cvsroot_t rather than a string.

2004-09-24  Mark D. Baushke  <mdb@cvshome.org>

	* buffer.c (buf_append_buffer): Fix typo in comment.

2004-09-23  Mark D. Baushke  <mdb@cvshome.org>

	* buffer.c (buf_read_file): Fix typo in comment.
	(buf_read_file_to_eof): Ditto.
	* server.c (serve_command_prep): Ditto.

2004-09-23  Derek Price <derek@ximbiot.com>

	* sanity.sh (depends_on_ssh, sshstdio): Don't use skip() to skip
	remote-only tests.

2004-09-23  Derek Price <derek@ximbiot.com>

	* sanity.sh (crerepos, sshstdio): Minor modifications to make use of
	the new depends_on_?sh API.

2004-09-23  Derek Price <derek@ximbiot.com>

	* sanity.sh: Accept new -e option to interpret non-fatal calls to skip
	as errors.
	(skip, depends_on_rsh, depends_on_ssh): New functions.

2004-09-23  Mark D. Baushke  <mdb@cvshome.org>

	* server.c (cvs_output, cvs_output_binary): fflush (stderr)
	here to avoid problems with 'cvs status 2>&1'.
	(Report by Frank Hemer <frank@hemer.org>.)

2004-09-17  Derek Price  <derek@ximbiot.com>

	* buffer.c, buffer.h, log-buffer.c, log-buffer.h, main.c, mkmodules.c,
	parseinfo.c, server.c: Remove TRUST_OS_FILE_CACHE.

2004-09-17  Derek Price  <derek@ximbiot.com>

	* buffer.c (fd_set_block): Ignore FreeBSD /dev/null problem.

2004-09-17  Derek Price  <derek@ximbiot.com>

	* cvs.h (strip_trailing_slashes): Remove proto in favor of including
	dirname.h from GNULIB.
	* sever.c (dir_name): Rename to...
	(gDirname): ...this to avoid conflicts with the GNULIB function.

2004-09-16  Derek Price  <derek@ximbiot.com>

	* expand_path.c (expand_path): Silence `gcc -Wall'.  Reformat some
	comments to fit in 80 characters.

2004-09-15  Derek Price  <derek@ximbiot.com>

	* sanity.sh (sync-secondary, writeproxy, writeproxy-noredirect): Remove
	redundant checks for $RSYNC readability.

2004-09-15  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Only find $RSYNC once.

2004-09-15  Derek Price  <derek@ximbiot.com>

	* sanity.sh (writeproxy, writeproxy-noredirect): Find $RSYNC in a
	portable manner.

2004-09-15  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh: Find $RSYNC in a portable manner.

2004-09-15  Derek Price  <derek@ximbiot.com>

	* parseinfo.c (parse_config): Complete parsing of the remainder of the
	config file when errors are encountered.  Accept and ignore
	UseNewInfoFmtStrings=yes when !SUPPORT_OLD_INFO_FMT_STRINGS.

2004-09-15  Derek Price  <derek@ximbiot.com>

	* buffer.c (buf_copy_data): Pass args to buf_append_data correctly.

2004-09-15  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Set $RSYNC in proxy mode.

2004-09-15  Derek Price  <derek@ximbiot.com>

	* main.c: Fix typo in comment.

2004-09-15  Derek Price  <derek@ximbiot.com>

	* rcs.c: s/abort/assert/.  Reformat function headers.  Remove
	unnecessary typecasts & prototypes.

2004-09-14  Mark D. Baushke  <mdb@cvshome.org>

	* parseinfo.c (readBool): Remove dead code.

	* filesubr.c (cvs_casecmp): Move to...
	* subr.c (cvs_casecmp): ...here.
	* cvs.h (cvs_casecmp): No longer ifdef under SERVER_SUPPORT

	* parseinfo.c (readBool): Return false when there was no boolean
	found.

2004-09-14  Derek Price  <derek@ximbiot.com>

	* cvs.h (top_level_admin, ImportNewFilesToVendorBranchOnly):
	s/int/bool/.
	(MaxCommentLeaderLength, UseArchiveCommentLeader): New vars.
	* main.c: Ditto, for all four vars above.
	* mkmodules.c (config_contents): Add default info for
	MaxCommentLeaderLength & UseArchiveCommentLeader.
	* parseinfo.c (readBool, readSizeT): New functions.
	(parse_info): Use new functions.  Parse MaxCommentLeaderLength &
	UseArchiveCommentLeader.
	* rcs.c (expand_keywords): Limit the size of the comment leader to
	MaxCommentLeaderLength & fall back to the comment leader specified in
	the RCS archive when requested.
	(preserve_perms): s/int/bool/.
	* rcs.h (preserve_perms), server.c (system_auth), server.h
	(system_auth): Likewise.
	* sanity.sh (keywordlog): Add new tests for the above.

2004-09-12  Mark D. Baushke  <mdb@cvshome.org>

	* rcs.c (RCS_checkout): Allow noexec to do checkouts when
	server_active is true.
	* sanity.sh (join7): Test above change (fixes a FIXCVS).

2004-09-09  Derek Price  <derek@ximbiot.com>

	* buffer.c (stuct packetizing_buffer): Use size_t & bool as appropriate
	in preference to int.
	(packetizing_buffer_output): s/int/size_t/ as appropriate.

2004-09-09  Derek Price  <derek@ximbiot.com>

	* buffer.c (packetizing_buffer_input): s/int/size_t/ as appropriate.

2004-09-09  Mark D. Baushke  <mdb@cvshome.org>

	* root.c (primary_root_inverse_translate): No longer inline.

2004-09-09  Conrad T. Pino  <Conrad@Pino.com>

	* server.c: Add comment before #if at line 5580 to move it further
	into the file which seems to work around an apparent buffer managment
	bug in Microsoft Visual C++ 6.0 compiler.

2004-09-08  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (join7): Fix if-then-else conditional.

	* sanity.sh (join7): Re-order join7-5 and join7-6 tests.

2004-09-08  Conrad T. Pino  <Conrad@Pino.com>

	* server.c: Remove extra token in conditional compile line 5580
	causing error in Windows Visual C++ 6.0 compile.

2004-09-08  Mark D. Baushke  <mdb@cvshome.org>

	* buffer.c (fd_buffer_block): Protect fcntl calls when F_GETFL,
	O_NONBLOCK and F_SETFL are not available.
	* server.c (move_file_offset): Ditto.
	(set_nonblock_fd): Ditto.

	* buffer.c (packetizing_buffer_input): Use size_t rather than int.
	(struct packetizing_buffer): Ditto.

2004-09-07  Mark D. Baushke  <mdb@cvshome.org>

	* server.c (server_updated): Deal with cvs -n update -jt1 -jt2
	"protocol error: uncounted data discarded" problem.
	* sanity.sh (join7): New test for this case.

2004-09-04  Derek Price  <derek@ximbiot.com>

	* socket-client.c (socket_client_initialize): Pass new args to
	buf_initialize.

2004-09-04  Derek Price  <derek@ximbiot.com>

	Silence `gcc -Wall'.

	* buffer.c (buf_initialize): Remove unnecessary typecasts by using
	size_t instead of int or bool as args.
	* buffer.c, import.c, log-buffer.c, ms-buffer.c, zlib.c: Change all
	callers.
	* buffer.h, cvs.h: Update protos.
	* client.c, ls.c, main.c, rcs.c, root.c, server.c: Remove unused vars,
	add parens, as requested by `gcc -Wall'.

2004-09-04  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (writeproxy-noredirect): Between "Set" and
	"expand-modules" are the optional Kerberos-encrypt, Gssapi-encrypt
	and Gssapi-authenticate entries. Use ${DOTSTAR} to deal with
	these optionally configured requests.

2004-09-04  Mark D. Baushke  <mdb@cvshome.org>

	* import.c (expand_at_signs): Typecasting for fwrite results.
	* log-buffer.c (log_buffer_input, log_buffer_output,
	log_buffer_initialize): Ditto.

	* log-buffer.c (log_buffer_initialize): Protect reference to
	fatal_errors.

	* parseinfo.c (parse_config): Protect reference to PrimaryServer
	using #ifdef PROXY_SUPPORT.

	* ls.c (ls_fileproc): Remove unused variables.
	* subr.c (increment_revnum): Ditto.
	* vers_ts.c (time_stamp): Ditto.

2004-09-03  Derek Price  <derek@ximbiot.com>

	* rcs.c (RCS_checkin), commit.c (remove_file): Accept UPDATE_DIR
	argument and use it to output full relative path on commit.
	* rcs.h (RCS_checkin): Update prototype.
	* checkin.c, commit.c, import.c: Change all callers.
	* sanity.sh: Adjust to compensate.

2004-09-03  Derek Price  <derek@ximbiot.com>

	* client.c (call_in_directory): Change passed in function to accept
	void * to avoid typecasting.  Change all functions using this API.

2004-09-03  Derek Price  <derek@ximbiot.com>

	* sanity.sh (secondary-wrapper, writeproxy-secondary-wrapper): Improve
	comments.  Use exec to launch server.
	(writeproxy-noredirect): New tests for writeproxy functionality in
	conjunction with clients that cannot handle the `Redirect' response.

2004-09-03  Derek Price  <derek@ximbiot.com>

	* log-buffer.c, rsh-client.c, client.c: Reformat function headers.
	Remove unnecessary typecasts and prototypes.
	* client.h: Remove unnecessary extern declarations on protos.

2004-09-03  Derek Price  <derek@ximbiot.com>

	* sanity.sh (skip): New function.
	(sshstdio): Use new function.
	(writeproxy): Skip test when rsync isn't found.

2004-09-02  Mark D. Baushke  <mdb@cvshome.org>

	* server.c (serve_directory): C89 compilers do not like mixed
	declarations and code.

2004-08-19  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (sync-secondary): 'dirname -b' fails during the
	spacefiles-5 test on FreeBSD, so use 'dirname -- "\$dir"' for now
	and look to AS_DIRNAME at some future date.

2004-08-19  Derek Price  <derek@ximbiot.com>

	* sanity.sh (ssh-wrapper): Create for $proxy mode too & forward CVS_PID
	for crerepos.

2004-08-18  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (writeproxy): Use CVS_PID instead of PPID as the
	former environment variable is set by cvs and the latter is
	NOT set by all bourne shells.

2004-08-18  Mark D. Baushke  <mdb@cvshome.org>

	* log-buffer.c (log_buffer_rewind): Avoid FreeBSD compilation
	error for dereferencing a void * pointer tmp as well as using it
	as a buffer pointer under some conditions.

2004-08-17  Derek Price  <derek@ximbiot.com>

	* server.c (isProxyServer): Always compile.  Cache hostname lookup.
	(serve_notify): Ignore notifications in conjunction with redirects.
	(do_cvs_command): Send an error when !PROXY_SUPPORT and a client does
	not support redirects.  Only close proxy logs when they exist.
	(serve_command_prep): New function.
	* sanity.sh (secondary-wrapper, writeproxy): Dynamically switch the
	servers proxy/primary status for testing.
	(basica): Gratuitous reformatting.
	(devcom3, config, release): Handle some new proxy/redirect error
	messages.

2004-08-17  Derek Price  <derek@ximbiot.com>

	* main.c (PrimaryServer): Include without PROXY_SUPPORT to support
	redirects.
	(main): Handle --primary-root without PROXY_SUPPORT.
	* mkmodules.c (PrimaryServer), parseinfo.c (parse_config), root.c
	(primary_root_add, primary_root_translate,
	primary_root_inverse_translate): Likewise.

2004-08-17  Derek Price  <derek@ximbiot.com>

	* client.c: Misc reformatting.
	(handle_redirect, close_connection_to_server): New functions.
	(failure_exit,*): s/int/bool/.
	(responses): Add `Redirect'.
	(get_server_responses): Handle response_type_redirect.
	(get_responses_and_close): Use close_connection_to_server().
	(supported_request): Change API to use bool & const.
	(start_server): Handle response_type_redirect.
	* client.h (supported_request): Update proto.
	(type): Add response_type_redirect.
	* main.c (lookup_command_attribute): Declare arg const.
	* cvs.h (lookup_command_attribute): Ditto.
	* sever.c (requests): Create dummy `Command-prep' request.

2004-08-12  Derek Price  <derek@ximbiot.com>

	* main.c (main): Don't process --primary-root without PROXY_SUPPORT.
	* root.c (primary_root_translate, primary_root_inverse_translate):
	Declare inline.

2004-08-11  Derek Price  <derek@ximbiot.com>

	* ms-buffer.h, ms-buffer.c: Disable contents without PROXY_SUPPORT.

2004-08-11  Derek Price  <derek@ximbiot.com>

	* server.c (isProxyServer): Declare inline.
	(reprocess_proxy_log): Rename to...
	(rewind_buf_from_net): ...this and change all callers.

2004-08-11  Derek Price  <derek@ximbiot.com>

	* sanity.sh (sync-secondary): Don't bother to log sync activity.

2004-08-11  Derek Price  <derek@ximbiot.com>

	* buffer.c (buf_copy_data), buffer.h (buf_copy_data), log-buffer.c
	(log_buffer_initialize, log_buffer_input, log_buffer_output,
	log_buffer_rewind, log_buffer_closelog), log-buffer.h
	(log_buffer_initialize), main.c (MaxProxyBufferSize), mkmodules.c
	(config_contents), parseinfo.c (parse_config), server.c (server):
	Switch eariler support for logs in memory buffers on
	TRUST_OS_FILE_CACHE.

2004-08-11  Derek Price  <derek@ximbiot.com>

	* buffer.c (buf_free_data, buf_copy_data): Only compile with proxy
	support.
	* buffer.h: Ditto for including the protos.

2004-08-11  Derek Price  <derek@ximbiot.com>

	* buffer.c (fd_buffer_input): Bracket misguided attempt at improved
	I/O efficiency with TRUST_OS_FILE_CACHE pragmas.

2004-08-10  Derek Price  <derek@ximbiot.com>

	* cvs.h, main.c, mkmodules.c, parseinfo.c, server.c:
	s/MaxSecondaryBufferSize/MaxProxyBufferSize/.

2004-08-10  Derek Price  <derek@ximbiot.com>

	* sever.c (secondary_log, secondary_log_out): Rename globals everywhere
	to...
	(proxy_log, proxy_log_out): ...these.
	(isSecondaryServer): Rename function...
	(isProxyServer): ...to this.

2004-08-10  Derek Price  <derek@ximbiot.com>

	* log-buffer.c: #ifdef PROXY_SUPPORT in appropriate places.

2004-08-10  Derek Price  <derek@ximbiot.com>

	* cvs.h, log-buffer.h, main.c, mkmodules.c, parseinfo.c, server.c:
	s/SECONDARY_SUPPORT/PROXY_SUPPORT/.

2004-08-10  Derek Price  <derek@ximbiot.com>

	* server.c (isSecondaryServer): Declare static.
	* server.h (isSecondaryServer): Remove proto.

2004-08-10  Derek Price  <derek@ximbiot.com>

	* log-buffer.h (log_buffer_rewind, log_buffer_closelog): Don't define
	protos without SECONDARY_SUPPORT.
	* server.c (*): #ifdef correctly for !SECONDARY_SUPPORT.
	* version.c (version): Remove unused code.

2004-08-10  Derek Price  <derek@ximbiot.com>

	* server.c (server_cleanup): Remove unused variable.

2004-08-10  Derek Price  <derek@ximbiot.com>

	* server.c (buf_from_net_save): Remove obsolete variable.
	(server_cleanup): Don't close BUF_FROM_NET_SAVE.

2004-08-09  Derek Price  <derek@ximbiot.com>

	* sanity.sh (sync-secondary, *info): Sync only the updated directories
	rather than the entire repository after a write for a minor efficiency
	improvement.
	(info, taginfo): Hack *info to sync all dirs for these tests rather
	than rewriting the sync-secondary script to handle old-style *info
	format strings.

2004-08-05  Derek Price  <derek@ximbiot.com>

	Beginnings of support for turning off writeproxy support (still broke.)
	* cvs.h (PrimaryServer, MaxSecondaryBufferSize), main.c (PrimaryServer,
	MaxSecondaryBufferSize), mkmodules.c (config_contents), parseinfo.c
	(parse_config): Switch off when writeproxy support disabled.
	* server.c (replace_file_offset, move_file_offset): Comment out
	temporarily.

2004-08-05  Derek Price  <derek@ximbiot.com>

	* filesubr.c (copy_file): Don't fsync.  It's slow.

2004-08-05  Derek Price  <derek@ximbiot.com>

	* buffer.c (buf_copy_data): New function.
	* buffer.h: Proto new function.
	* cvs.h (MaxSecondaryBufferSize): Declare new config global.
	* log-buffer.c: Allow file-backed memory buffers for "speed".
	(struct log_buffer): Add new fields.
	(log_buffer_force_file): New function.
	(log_buffer_initialize): Initialize new fields.
	(log_buffer_input, log_buffer_output): Handle logging to memory when
	asked.
	(log_buffer_disable): Remove function, moving much functionality...
	(log_buffer_rewind): ...to this new function and expanding.
	(log_buffer_closelog): Handle new fields and structs.
	(log_buffer_get_fd): Remove function.
	(setup_logfiles): Use new _initialize API.
	* log-buffer.h: Update protos to match.
	* main.c (MaxSecondaryBufferSize): Init new config global.
	* mkmodules.c (config_contents): Add comments 4 MaxSecondaryBufferSize.
	* parseinfo.c (parse_config): Parse MaxSecondaryBufferSize..
	* server.c (secondary_log_name, secondary_log_out_name): Remove unused
	globals.
	(read_secondary_log): Remove function.
	(reprocess_secondary_log): Use log_buffer_rewind() instead of the above.
	(become_proxy): Ditto.
	(server_cleanup): No need to clean up logfiles any longer.
	(server): Use new log_buffer_initialize API.

2004-08-04  Derek Price  <derek@ximbiot.com>

	* buffer.c (buf_read_data): s/abort/assert/.

2004-08-04  Derek Price  <derek@ximbiot.com>

	* server.c (loop_over_inputs): Remove function, moving contents back...
	(server): ...to here.

2004-08-03  Derek Price  <derek@ximbiot.com>

	Checking in IO changes intended to improve speed for posterity since
	they actually increase CPU usage by about .2% in remote mode and 5% in
	writeproxy mode.
	* Makefile.am (cvs_SOURCES): Add ms-buffer.c & ms-buffer.h.
	* buffer.c (buf_free_data): New function.
	(buf_read_data): s/abort/assert/.
	(fd_buffer_input): Try to improve efficiency of blocking read.
	* buffer.h (buf_free_data): New proto.
	* server.c (reprocess_secondary_log): Only reopen log and attach to
	BUF_FROM_NET - don't actually loop over inputs.
	(become_proxy, serve_co, do_cvs_command): Use new log from above.
	* ms-buffer.c, ms-buffer.h: New files.

2004-08-03  Derek Price  <derek@ximbiot.com>

	* sanity.sh (TIMING): Make this work when not in $remotehost mode.
	(reserved-13b): Use sorted output.

2004-08-03  Derek Price  <derek@ximbiot.com>

	* log-buffer.c: Improve comments.

2004-08-02  Derek Price  <derek@ximbiot.com>

	* sanity.sh (ssh-wrapper): Export CVSUMASK to remote host.
	(*): Remove some hacks that were needed because CVSUMASK was not
	exported to the remote host.  Misc cleanup.

2004-07-28  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (pserver-auth-no-dos): ENOMEM on Solaris 7, 8, 9, and
	AIX 4.3 all use the text "Not enough space" instead of the text
	"Cannot allocate memory" as is printed on GNU/Linux, NetBSD, and
	FreeBSD systems.

2004-07-28  Derek Price  <derek@ximbiot.com>

	* sanity.sh (ssh-wrapper): Export CVS_RSH on remote host.

2004-07-28  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (secondary-wrapper): Not all $TESTSHELL shells
	are able to set a variable and export it at the same time.
	Separate the value assignment from the export statement.
	(writeproxy-secondary-wrapper): Ditto.

2004-07-28  Derek Price  <derek@ximbiot.com>

	* server.c (isSecondaryServer): Fix array out of bounds problem.
	* sanity.sh (ssh-wrapper): Wrap any rsh implementation we are handed to
	forward variables relevant to testing.  Add new $TIMING variable to
	allow timing of processes on a remote host.
	(*): Gratuitous reformatting.

2004-07-26  Derek Price  <derek@ximbiot.com>

	* server.c (read_secondary_log): Minor comment corrections.

2004-07-23  Derek Price  <derek@ximbiot.com>

	* buffer.c (fd_buffer_output): Don't fsync.  It is unneeded and slow.
	* server.c (move_file_offset, replace_file_offset): Ditto.
	* log-buffer.c (log_buffer_flush_log): Remove function.

2004-07-19  Derek Price  <derek@ximbiot.com>

	* log-buffer.c (log_buffer_disable): Return log FILE *.  Don't close
	log.  Fix header comment.
	(log_buffer_closelog): New function.
	* log-buffer.h: Update protos to match.
	* server.c (read_secondary_log): Rewind file pointer rather than
	closing and reopening file for speed.
	(serve_root): Close secondary log rather than just disabling when not
	running in secondary mode.

2004-07-19  Derek Price  <derek@ximbiot.com>

	* buffer.c (buf_flush): Replace abort w/assert.
	* log-buffer.c (log_buffer_flush_log): New function for syncing a log.
	(log_buffer_flush, log_buffer_flush): Don't sync log for speed.
	* log-buffer.h (log_buffer_flush_log): New proto.
	* sanity.sh: Tidy.
	(run_filter): Accept file name to filter as argument.
	(dotest_*): pass new arg to run_filter.
	* server.c (read_secondary_log): Sync log before reopening.

2004-07-16  Derek Price  <derek@ximbiot.com>

	* buffer.c (fd_buffer_input): Back out previous two changes due to
	incompatibility with current state of write proxies.
	* log-buffer.c (log_buffer_initialize): Handle new buffers which
	already have some data in them.
	(log_buffer_input): Don't fsync here.  It is slow.
	* server.c (serve_root): Disable the secondary output log too.
	(serve_noop, pserver_authenticate_connection): Misc cleanup.
	* sanity.sh: Misc gratuitous cleanup.

2004-07-16  Derek Price  <derek@ximbiot.com>

	* buffer.c (fd_buffer_input): Don't overwrite the input buffer the
	second time through the blocking read loop.

2004-07-15  Derek Price  <derek@ximbiot.com>

	* buffer.c (fd_buffer_input): Improve efficiency.
	* sanity.sh (modify_repo): Move timestamp race avoidance to...
	(sync-secondary): This script.
	(big): Misc cleanup.

2004-07-15  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Misc gratuitous cleanup.
	(modify_repo): Sleep 1 before rsync to avoid timestamp comparison
	issues.

2004-07-15  Derek Price  <derek@ximbiot.com>

	* log-buffer.c (log_buffer_output): Remove extremely slow fsync call.
	(log_buffer_disable): Move to here so log files are sync'd before
	close.
	* sanity.sh (run_filter): New function to allow for filtering of cruft
	output by Rational Quantify or other profilers.
	(dotest_*): Call new function.

2004-07-13  Derek Price  <derek@ximbiot.com>

	* server.c (prepost_proxy_proc): Add the CVSROOT string for the primary
	server, as documented.

2004-07-13  Derek Price  <derek@ximbiot.com>

	* tag.c (tag_filesdoneproc): Don't track posttag errors.
	(cvstag): Move addition of successful tags to val-tags to...
	(tag_fileproc): ...here and...
	(rtag_fileproc): ...here.  Consolidate returns at single location.
	(*): Misc reformatting.
	* sanity.sh (sync-secondary): Include more data in the update-log.

2004-07-13  Derek Price  <derek@ximbiot.com>

	* .cvsignore: Ignore coverage data generated by GCC.

2004-07-12  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Watch $servercvs and other minor fixes.

2004-07-12  Derek Price  <derek@ximbiot.com>

	* server.c: Gratuitous reformatting.
	* sanity.sh: Misc write proxy accommodations.

2004-07-11  Derek Price  <derek@ximbiot.com>

	* log.c (log_fileproc, log_expand_revlist, log_fix_singledate,
	log_count_print, log_tree, log_abranch, log_version), parseinfo.c
	(Parse_Info, parse_config), rcs.c (RCS_fully_parse, rcsbuf_getkey,
	rcsbuf_getrevnum, rcsbuf_valword, RCS_getbranchpoint, RCS_getdate,
	RCS_getrevtime, RCS_checkout, RCS_findlock_or_tip, RCS_addbranch,
	RCS_cmp_file, RCS_lock, RCS_unlock, RCS_delete_revs, RCS_deltas,
	RCS_getdeltatext, RCS_putdtree): Print primary path.
	* server.c (serve_kopt): Handle secondary log.
	* sanity.sh: Misc accommodations.

2004-07-11  Derek Price  <derek@ximbiot.com>

	* checkin.c (checkout_proc): Correct vi induced typo.

2004-07-11  Derek Price  <derek@ximbiot.com>

	* admin.c (postadmin_proc), commit.c (precommit_proc), edit.c
	(notify_proc), fileattr.c (postwatch_proc), logmsg.c (logfile_write),
	server.c (prepost_proxy_proc), tag.c (posttag_proc, pretag_proc): Add
	default %c format string.
	* client.c, edit.c, lock.c, fileattr.c, mkmodules.c, myndbm.c,
	parseinfo.c, recurse.c: Misc gratuitous cleanup.
	* commit.c (commit_filesdoneproc): Move loginfo call to after CVSROOT
	sync.
	* checkout.c (checkout_proc), fileattr.c (fileattr_read), myndbm.c
	(mydbm_open, mydbm_load_file): Print primary path.
	* server.c (serve_checkin_time): Handle secondary log.
	(prepost_proxy_proc): Move before first call.
	(become_proxy): Move before first call.
	(serve_notify): Become proxy for this request.
	* sanity.sh: Misc accommodations.

2004-07-10  Derek Price  <derek@ximbiot.com>

	* server.c (serve_notify): Handle secondary_log.

2004-07-08  Derek Price  <derek@ximbiot.com>

	Intermediate checkin.  Adds some new server requests and test fixes.
	* sanity.sh: Update tests to handle proxies and new hooks.
	* cvs.h (CVSROOTADM_PREPROXY): Alphebetize & sub correct name.
	* mkmodules.c (filelist): Alphabetize.
	* server.c (serve_max_dotdot, serve_static_directory, serve_argumentx):
	Handle secondary_log.
	* tag.c (*): Misc gratuitous cleanup.

2004-07-08  Derek Price  <derek@ximbiot.com>

	Intermediate checkin.  Adds preproxy, & postproxy hooks and some test
	cruft to test everything.

	* cvs.h (CVSROOTADM_*): Add new hook config files.
	* log.c (log_fileproc): Print primary path.
	* mkmodules.c (*_content): Add init content for new files.
	(filelist): Add new files.
	* rcs.c (RCS_parsercsfile_i): Set print_path.  Misc gratuitous cleanup.
	(freercsnode): Free print_path.
	* rcs.h (struct rcsnode): Add print_path.
	* rcscmds.c (RCS_merge, RCS_exec_rcsdiff): Print primary path.
	* server.c (isSecondaryServer): No longer static.
	(serve_sticky, serve_argumentx): Handle secondary logging.
	(prepost_proxy_proc): New function.
	(become_proxy): Call pre & post proxy hooks.  Handle IO closing better.
	* server.h (isSecondaryServer): No longer static.
	* status.c (status_fileproc): Print primary path.
	* sanity.sh: Accept --proxy argument and run in write proxy mode when
	seen.  Misc fixes to account for other changes.  Misc gratuitous
	cleanup.

2004-07-02  Derek Price  <derek@ximbiot.com>

	Woo-hoo!  Write proxies work!
	* client.c (open_connection_to_server): Set up log files...
	(start_server): ...here.
	* server.c (secondary_log_out_name, secondary_log_out): New globals.
	(argument_cound, argument_vector, argument_vector_size): Move before...
	(reprocess_secondary_log): ...referencing here.  Assume secondary_log.
	(read_secondary_log): Accept buf & name args.
	(serve_modified, serve_unchanged, serve_is_modified, serve_entry):
	Handle logging pass.
	(become_proxy): Use new output-to-client-log.  Verify buffers still
	exist before using.
	(output_dir): Translate paths to the client on the secondary.
	(serve_co): Only reprocess the secondary log when one exists.
	(server_cleanup): Free buf after shutdown.  Dispose of client output
	log.
	(server): Create client output log.
	(*): Misc reformatting & detypecasting.
	* log-buffer.c (log_buffer_output): Handle fatal_errors.
	(log_buffer_flush): Don't operate on NULL streams.
	(log_buffer_disable): Reformat so as not to confuse the optimizer.
	* root.c (primary_root_translate): Remove unused variable and redundant
	slash.
	(primary_root_inverse_translate): New function.
	* root.h: Add new proto.
	* sanity.sh (writeproxy): Wrap server executables to set args and
	server variables properly.  Fill in some test gaps.  Correct `cd' args.
	Clean up wrappers.

2004-06-30  Derek Price  <derek@ximbiot.com>

	* root.h (primary_root_add, primary_root_translate): New protos.
	* root.c (primary_root_add, primary_root_translate): New functions.
	* main.c (long_options): Add --primary-root.  Handle --primary-root
	and --allow-root only with SERVER_SUPPORT.
	(main): Ditto.
	* server.c (move_file_offset): Set block before fsync.  Report
	ftruncate errors.  Force sync after rearranging data.
	(replace_file_offset): Force sync after replacing data.
	(serve_directory): Translate roots based on --primary-root arg.
	(serve_root): Likewise & don't rewrite the log file.
	(become_proxy): Increment select's N arg because it is required.
	(do_cvs_command): Use MAX macro appropriately.
	* sanity.sh (writeproxy): Wrap the secondary server in such a way that
	it gets the --primary-root option and the primary does not.  Move the
	primary root out of the way for the read operations to prove only the
	secondary was accessed.

2004-06-30  Derek Price  <derek@ximbiot.com>

	* log-buffer.c (log_buffer_input, log_buffer_output): Flush logs as
	soon as they are written to better diagnose hangs.

2004-06-30  Derek Price  <derek@ximbiot.com>

	* client.c (connect_to_forked_server): Compile for SERVER_SUPPORT.

2004-06-30  Derek Price  <derek@ximbiot.com>

	* buffer.c (buf_append_buffer): Handle NULL from->data.

2004-06-28  Derek Price  <derek@ximbiot.com>

	* log-buffer.c (log_buffer_flush): Sync all, not just data.
	* buffer.c (fd_buffer_flush): Ditto.  Ignore problems synchronizing
	unsynchronizable descriptors.

2004-06-28  Derek Price  <derek@ximbiot.com>

	Intermediate checkin on the way to enabling the write proxy.

	* server.c (isSecondaryServer): Handle forked primary.
	(read_secondary_log, move_file_offset, replace_file_offset,
	become_proxy): New functions.
	(reprocess_secondary_log): Use new read_secondary_log().
	(serve_root): Replace `Root' request with new version for primary.
	(do_cvs_command): Use new become_proxy() function.
	(*): Gratuitous reformatting.
	(server): Open new logs and avoid opening pipes to pserver twice.
	* buffer.c (buf_initialize): Handle new LAST_INDEX & LAST_COUNT
	initializers.
	(*): Remove unnecessary typecasts.  Gratuitous reformatting.  Use
	assert() rather than if()/abort().
	(buf_append_buffer, buf_read_data, buf_copy_lines, buf_copy_counted):
	Track LAST_INDEX & LAST_COUNT.
	(buf_read_short_line): Track LAST_INDEX & LAST_COUNT.
	* buffer.h (struct buffer): Add LAST_INDEX & LAST_COUNT.
	* cvs.h: Include minmax.h.
	* root.h (enum CVSmethod): Force null_method to 0.
	* zlib.c: Remove unnecessary typecasts.  Gratuitous reformatting.  Use
	assert() rather than if()/abort().

2004-06-23  Derek Price  <derek@ximbiot.com>

	Checkout and probably other read-only commands now work.

	* server.c (serve_expand_modules): Discard arguments even when
	reprocessing.
	(serve_argument): Always process arguments.
	(serve_wrapper_sendme_rcs_options): Process in first pass.

2004-06-23  Derek Price  <derek@ximbiot.com>

	Operate correctly in non-write proxy mode, delaying processing of most
	commands until after the `Root' request is received.

	* server.c (buf_from_net_save): New global variable to store the input
	buffer from the client while the secondary log is being reprocessed.
	(reprocessing): Global to track whether we are reprocessing.
	(various redundant prototypes): Removed.
	(fd_buffer_*): Remove unneeded typecasts.
	(serve_valid_responses, serve_global_option, serve_set,
	serve_valid_requests): Avoid processing twice.
	(command_pid, outbuf_memory_error, input_memory_error): Moved above new
	references.
	(server): Factor loop over the client inputs to...
	(loop_over_inputs): ...this new function.
	(serve_root): Loop over secondary log of client inputs when we
	discover we are not the secondary.
	(*): Add !secondary_log assertions to verify that certain code paths
	are not yet taken.
	(do_cvs_command, serve_init): Add switch and pseudo-code comments about
	what will need to be done on secondary servers.
	(seve_noop): Print errors & "ok" in the first pass, skip "ok" but
	restore handling of entries and notification in the second.
	(serve_co): Note what will need to be done on secondaries.
	(server_cleanup): Deal with buf_from_net_save when necessary.

2004-06-22  Derek Price  <derek@ximbiot.com>

	* server.c (server): Move previously fatal error on failure to open a
	secondary log to...
	(serve_root): ...here, and only when we discover we are actually a
	secondary server.
	(server): Ensure an interrupt cannot dump core.

2004-06-22  Derek Price  <derek@ximbiot.com>

	Enable the writeproxy log and turn it off when we determine we are not
	running as a secondary server.

	* log-buffer.c: Compile log buffer routines in server mode for write
	proxy.
	(struct log_buffer): Add fatal_error member.
	(log_buffer_initialize, log_buffer_input): Allow for fatal write errors
	for writeproxy.
	(log_buffer_disable): Turn off the log when asked.
	(log_buffer_shutdown): Close log via log_buffer_disable.
	(log_buffer_input, log_buffer_output, log_buffer_flush): Don't operate
	on the log when it doesn't exist.
	(*): Misc gratuitous cleanup.
	(setup_logfiles): Use new log_buffer_initialize API.
	* log-buffer.h (log_buffer_initialize, log_buffer_disable): New
	prototypes.
	(log_buffer_initialize): Update prototype.
	* server.c: Include log-buffer.h.  Gratuitous reformatting of pragmas.
	(secondary_log_name, secondary_log): New globals.
	(server): Set up recording for writeproxy.
	(serve_root): Turn off recording when we determine that we are not a
	secondary.

2004-06-21  Derek Price  <derek@ximbiot.com>

	* sanity.sh (writeproxy): Verify that secondary is updated after a
	commit.  Comment test that verifies that commit took place on primary.

2004-06-10  Derek Price  <derek@ximbiot.com>

	* sanity.sh (writeproxy): Test response to a failing rsync.

2004-06-09  Derek Price  <derek@ximbiot.com>

	* server.c (isSecondaryServer): New function.
	(MAXHOSTNAMELEN): Move to top of file and improve comment.

2004-06-09  Derek Price  <derek@ximbiot.com>

	* parseinfo.c (parse_config): Get my enum references correct.

2004-06-09  Derek Price  <derek@ximbiot.com>

	* parseinfo.c (parse_config): Verify that the ProxyServer connection
	method is valid.

2004-09-02  Derek Price <derek@ximbiot.com>

	* server.c (do_cvs_command): Pass new args to fd_buffer_initialize().
	(server): Don't initialize BUF_TO_NET & BUF_FROM_NET when
	pserver_authenticate already did.
	(pserver_read_line): New function to access pserver auth dialogue via
	buffers.
	(pserver_authenticate_connection): Init buffers to/from net and access
	via pserver_read_line() and the buffer output functions.
	(fd_buffer_*): Move to...
	* buffer.c (fd_buffer_*): ...here.  Handle blocking input more
	efficiently.
	(buf_initialize): Handle get_fd() argument.
	(buf_nonio_initialize, packetizing_buffer_initialize): Pass new
	get_fd() argument.
	(buf_copy_data, buf_free_data, buf_read_short_line, buf_get_fd,
	packetizing_buffer_get_fd): New functions.
	(bufread_line): Wrap buf_read_short_line().
	(stdio_buffer_*): Remove these functions.
	(*): Some reformatting of function headers.
	* buffer.h (struct buffer, buf_initialize): Add get_fd().
	(buf_read_short_line, buf_get_fd, buf_copy_data, buf_free_data,
	fd_buffer_initialize): New prototypes.
	* client.c (get_port_number, get_cvs_port_number,
	get_proxy_port_number): Compile with SERVER_SUPPORT.
	(make_bufs_from_fds): Likewise, and accept new ROOT arg and pass on to
	fd_buffer_initialize().
	(connect_to_pserver, connect_to_forked_server): Pass ROOT to
	make_bufs_from_fds().
	(start_server): Factor much functionality into...
	(open_connection_to_server): ...this new function.
	* client.h (make_bufs_from_fds): Update proto.
	(open_connection_to_server): New proto.
	* log-buffer.c (log_buffer_initialize): Handle get_gd().
	(log_buffer_get_fd): New function.
	* zlib.c (compress_buffer_initialize, compress_buffer_get_fd): Ditto
	twice.
	* rsh-client.c (start_rsh_server): Pass ROOT to make_bufs_from_fds().
	* sanity.sh (pserver): Expect new error messages.

2004-09-01  Derek Price <derek@ximbiot.com>

	* run.c: Remove unneeded typecasts.  Reformat function headers.  Fix
	trace.

2004-08-31  Derek Price <derek@ximbiot.com>

	* subr.c (format_cmdline), cvs.h (format_cmdline): Accept bool rather
	than int.
	* admin.c, commit.c, edit.c, fileattr.c, logmsg.c, tag.c: Change all
	callers.
	* main.c (UseNewInfoFmtStrings), cvs.h (UseNewInfoFmtStrings):
	s/int/bool/.
	* parseinfo.c: Change all references.

2004-08-31  Derek Price <derek@ximbiot.com>

	* checkout.c: Reformat function headers.  Remove unnecessary typecasts
	and prototypes.  Some other reformatting for legibility.

2004-08-31  Derek Price <derek@ximbiot.com>

	* buffer.c: Gratuitous reformatting of header comments.
	s/abort/assert/.  Remove unnecessary typecasts.
	* buffer.h: Remove unnecessary "extern" decls.  Some reformatting.

2004-08-24  Derek Price <derek@ximbiot.com>

	* recurse.c (start_recursion): Don't shorten //. to / (use //).

2004-08-24  Derek Price <derek@ximbiot.com>

	* recurse.c (start_recursion): Strip trailing CWD indirections on
	repository.
	* sanity.sh (rstar-toplevel): Update to account for new behavior.
	(Report from Dan Peterson <dbpete@aol.com>.)

2004-08-24  Mark D. Baushke  <mdb@cvshome.org>

	* recurse.c (do_recursion): Correct test for calling
	server_pause_check to occur when locktype != CVS_LOCK_WRITE.
	(Patch suggested by Ian Lance Taylor <ian@wasabisystems.com>
	in bug#198).

2004-08-24  Derek Price <derek@ximbiot.com>

	* sanity.sh: Update a few tests to account for the recent error message
	changes.

2004-08-24  Derek Price <derek@ximbiot.com>

	* rcs.c (RCS_valid_rev): Declare arg const.
	* rcs.h: Likewise.

2004-08-24  Derek Price <derek@ximbiot.com>

	* rcs.c (translate_symtag): Prevent infinite loop.
	* tag.c (tag_check_valid): Check tag syntax before searching for tags.
	* sanity.sh (tag-space): Some tests for the above.
	(Report from Dan Peterson <dbpete@aol.com>.)

2004-08-24  Derek Price <derek@ximbiot.com>

	* tag.c (tag_check_valid): Use RCS_valid_rev() rather than duplicating
	code.  Misc error message improvements.

2004-08-24  Mark D. Baushke  <mdb@cvshome.org>

	* ignore.c (ignore_directory): Include the terminating NUL
	character in the directory name comparison to avoid matching
	substrings of directories by accident.
	(Report and suggested fix from James E Wilson
	<wilson@specifixinc.com>.)
	* sanity.sh (modules4): Add some more tests testing the above
	change.

2004-08-20  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (binfiles): Cleanup the 2a temporary directory.

2004-08-20  Derek Price <derek@ximbiot.com>

	Cache tags in val-tags on successful creation to avoid problems with
	write proxies.  Merged from `writeproxy2' branch.

	* tag.c (tag_filesdoneproc): Don't track posttag errors.
	(cvstag): Move addition of successful tags to val-tags to...
	(tag_fileproc): ...here and...
	(rtag_fileproc): ...here.  Consolidate returns at single location.
	(*): Misc reformatting.

	* tag.c (add_val_tag): New function with content factored from...
	(tag_check_valid): ...here.
	(cvstag): Call add_val_tag() when needed.
	* annotate.c, checkout.c, commit.c, diff.c, ls.c, patch.c, recurse.c,
	tag.c, update.c: Pass new args to tag_check_valid.

	Merge of postadmin, posttag, and postwatch functionality from
	`writeproxy2' branch.

	* admin.c (postadmin_proc), commit.c (precommit_proc), edit.c
	(notify_proc), fileattr.c (postwatch_proc), logmsg.c (logfile_write),
	server.c (prepost_proxy_proc), tag.c (posttag_proc, pretag_proc): Add
	default %c format string.

	* cvs.h (CVSROOTADM_POSTWATCH): New macro.
	* fileattr.c (*): Misc cleanup.
	(postwatch_proc): New function.
	(fileattr_write): Call watch proc when done writing fileattr.
	* mkmodules.c (postwatch_contents): New var.
	(filelist): Add postwatch.
	* watch.c (addremove_filesdoneproc): Remove function.
	(watch_addremove): Don't call above function.
	(*): Misc cleanup.
	* watch.h: Remove some unnecessary "extern" decls.

	* admin.c (postadmin_proc, admin_filesdoneproc): New functions.
	(admin): Pass admin_filesdoneproc() to start_recursion().
	(*): Misc gratuitous cleanup.
	* cvs.h (CVSROOTADM_*): Alphabetize, add new hook config files.
	(format_cmdline): Fix proto to match change below.
	* mkmodules.c (*_content): Add init content for new files.  Misc
	cleanup.
	(filelist): Add new files.
	* tag.c (struct pretag_proc_data): Move before first use.
	(posttag_proc, tag_filesdoneproc): New functions.
	(rtag_proc): Pass new procs to start_recursion().
	(*): Misc gratuitous cleanup.
	* sanity.sh: Misc accommodations.

2004-08-19  Mark D. Baushke  <mdb@cvshome.org>

	* log-buffer.c (log_buffer_output): Protect call to fsync()
	with #ifdef HAVE_FSYNC.

2004-08-18  Mark D. Baushke  <mdb@cvshome.org>

	* log-buffer.c (log_buffer_input): Protect call to fsync()
	with #ifdef HAVE_FSYNC.

2004-08-17  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (sshstdio): Fix comment typo plus gratuitous
	reformatting.

	* client.c (handle_m): Workaround to deal with stdio getting put
	into non-blocking via redirection of stderr and interaction with
	ssh on some platforms. On those boxes, stdio can put stdout
	unexpectedly into non-blocking mode which may lead to fwrite() or
	fflush() failing with EAGAIN, but cvs not checking for the error.
	(Patch suggested by Frank Hemer <frank@hemer.org>.)

	* client.c (handle_e): Similar fix for stderr.
	* sanity.sh (sshstdio): New test for non-blocking stdio via ssh.

2004-08-11  Derek Price <derek@ximbiot.com>

	* sanity.sh (basicc): Work around a problem in Linux 2.2 & Bash 2.05b
	which prevents a `cd ..' from a deleted directory from working.
	(Original patch from Matthew Ogilvie <mmo9317bd@mailcan.com>.)

2004-07-18  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (newb-123j0): Use DOTSTAR at end of response.

2004-07-17  Mark D. Baushke  <mdb@cvshome.org>

	* main.c (ImportNewFilesToVendorBranchOnly): New variable.
	* cvs.h (ImportNewFilesToVendorBranchOnly): Declare new variable.
	* import.c (import): Respect setting of
	ImportNewFilesToVendorBranchOnly.
	* mkmodules.c (config_contents): Document the default
	ImportNewFilesToVendorBranchOnly=no option in newly generated
	config files.
	* parseinfo.c (parse_config): Parse
	ImportNewFilesToVendorBranchOnly option.
	* sanity.sh (importX2): New test, to test
	ImportNewFilesToVendorBranchOnly config file option.
	(New feature from Chris Demetriou <cgd@broadcom.com>.)

2004-07-17  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (basic2-14): Use DOTSTAR to be more portable.

	* status.c (status_fileproc): Print datetimes using output_cvs_tagged.
	* sanity.sh (basic2-14): Allow for an extra blank line at the end.

2004-07-16  Derek Price  <derek@ximbiot.com>

	* server.c (pamh): New global static to hold the PAM handle.
	(server): Close the PAM session so that logging works properly.
	(switch_to_user): Opens a PAM session and gets credentials from PAM so
	that PAM modules can change group permissions.  Get the username from
	PAM so that PAM modules can modify the final local username.
	(cvs_pam_conv): Changed the assertions to allow PAM to output text to
	the user.
	(check_system_password): Renamed to...
	(check_pam_password): ...this.  Changed argument type for username so
	that PAM modules can modify the username under authentication.  Setting
	a terminal so some PAM modules which expect it to be set work, it is
	set to the pam servicename which defaults to the binary name.  Set the
	username from PAM after authentication if a module has changed it.
	(check_password): Calls check_pam_password if PAM is enabled otherwiseu
	calls check_system_password.
	(Patch from Brian Murphy <brian@murphy.dk>.)

2004-07-15  Derek Price  <derek@ximbiot.com>

	* sanity.sh (run_filter): New function to allow for filtering of cruft
	output by Rational Quantify or other profilers.
	(dotest_*): Call new function.

2004-07-13  Derek Price  <derek@ximbiot.com>

	* .cvsignore: Ignore GCC profiling data.

2004-07-12  Derek Price  <derek@ximbiot.com>

	* client.c: Misc reformatting.

2004-07-12  Derek Price  <derek@ximbiot.com>

	* main.c: fix format_time_t to call localtime
	(Patch from Bart Robinson  <lomew@pobox.com>.)

2004-07-02  Derek Price  <derek@ximbiot.com>

	* vers_ts.c: Gratuitous reformatting & detypecasting.

2004-06-30  Derek Price  <derek@ximbiot.com>

	* log-buffer.c (log_buffer_input, log_buffer_output): Flush logs as
	soon as they are written to better diagnose hangs.

2004-06-29  Derek R. Price  <derek@ximbiot.com>

	* sanity.sh (toplevel-12): Handle new error output.

2004-06-29  Derek R. Price  <derek@ximbiot.com>

	* subr.c (xrealloc_and_strcat): Use bool in place of short.

2004-06-29  Derek R. Price  <derek@ximbiot.com>

	* client.c: Gratuitous reformatting.
	(send_repository): Send relative Directory when server reports it is
	able to handle it.
	* server.c (serve_directory): Handle relative directories.
	(output_dir): Send relative directories.
	(requests): Add `Relative-directory' request.

2004-06-26  Mark D. Baushke  <mdb@cvshome.org>

	* import.c (import_usage): Add new -X flag.
	(import): Handle new -X flag.
	(process_import_file): Handle new -X flag.
	(killnew): New static flag variable to indicate use of -X flag.
	(preserve_initial_permissions): New function, extracted from
	add_rcs_file().
	(expand_and_copy_contents): Likewise.
	(add_rcs_file): New argument, do_killnew, to cause "import -X" flag
	processing.  Implement -X flag, and use newly abstracted functions.
	* rcs.h (add_rcs_file): Update prototype for do_killnew argument.
	* commit.c (checkaddfile): Update for add_rcs_file function change.
	* mkmodules.c (init): Likewise.
	* client.c (handle_mt): Handle an importmergecmd tag without
	any conflicts (for 'import -X' support).
	* sanity.sh (importX): New test.
	(New feature from Chris Demetriou <cgd@broadcom.com>.)

2004-06-22  Derek Price  <derek@ximbiot.com>

	* wrapper.c: Add explicit "void" return type to "wrap_clean_fmt_str"
	definition.
	(Patch from Conrad T. Pino <Conrad@Pino.com>.)

2004-06-09  Derek Price  <derek@ximbiot.com>

	* server.c (entries, serve_is_modified): Reorder to remove prototypes.
	(supported_response): Remove prototype.

2004-06-09  Derek Price  <derek@ximbiot.com>

	* commit.c, filesubr.c, history.c, server.c, wrapper.c: Various
	security fixes.
	(Original patch from Stefan Essler <s.esser@e-matters.de> & Sebastian
	Krahmer <krahmer@suse.de>.)

	* cvs.h: Include xsize.h.

2004-06-09  Derek Price  <derek@ximbiot.com>

	* server.c (serve_entry, serve_is_modified, serve_unchanged): Protect
	against malformed entries.
	* sanity.sh (server): Tests for same.

2004-06-07  Larry Jones  <lawrence.jones@ugsplm.com>

	* sanity.sh (basica): More tests for string-based revision inc.

2004-06-04  Larry Jones  <lawrence.jones@ugsplm.com>

	* subr.c (increment_revnum): Rewrite ala RCS to work directly on
	the string rather than converting to int to avoid overflow.
	* sanity.sh (basica): New tests for above, update others to match.

2004-06-04  Derek Price  <derek@ximbiot.com>

	Preliminary writeproxy functionality.
	* main.c: Declare PrimaryServer.
	* cvs.h: Likewise, but extern.
	* mkmodules.c: Add PrimaryServer to default CVSROOT/config content.
	* parseinfo.c: Handle PrimaryServer line.
	* sanity.sh: (Failing) tests for writeproxy functionality.

2004-05-28  Derek Price  <derek@ximbiot.com>

	* main.c (format_time_t, gm_format_time_t): Use my_strftime from
	GNULIB rather than the system-dependant strftime.

2004-05-20  Derek Price  <derek@ximbiot.com>

	* sanity.sh: s/GMT/UTC/ where appropriate.

2004-05-20  Derek Price  <derek@ximbiot.com>

	* server.c (cvs_output_tagged): Move new server code inside a
	SERVER_SUPPORT block.

2004-05-19  Derek Price  <derek@ximbiot.com>

	* cvs.h (gmformat_time_t, entries_time, unix_time_stamp): New protos.
	* ls.c (struct long_format_data): New structure.
	(ls_print): Print datetimes using cvs_output_tagged.
	(long_format_data_delproc): New function.
	(ls_fileproc, ls_direntproc): Keep track of long_format_data.
	* main.c (Make_Date): Use standard quotes.
	(format_time_t, gmformat_time_t): New functions.
	(format_date_alloc): Use new functions.  Improve comments.
	* server.c (cvs_output_tagged): Only output in localtime in local mode.
	* vers_ts.c (entries_time, unix_time_stamp): New functions.
	(time_stamp): Use new functions.
	* sanity.sh (ls, branches2): Use $ISO8601DATE where applicable.

2004-05-19  Derek Price  <derek@ximbiot.com>

	Output `cvs log' times in the local timezone.

	* client.c (handle_mt): Handle the new "date" MT response
	* server.c (cvs_output_tagged): Likewise
	* cvs.h: Proto for format_date_alloc
	* main.c (format_date_alloc, tm_diff): Added.
	* log.c (log_version): Use MT response to tag date output.
	(Original patch from Bart Robinson <lomew@pobox.com>.)

	* sanity.sh (importc, rcs, rcs4): Use TZ=GMT for the duration of these
	tests to obtain consistent times in output.
	(ISO8601DATE, ISO8601DATE1971, ISO8601DATE2034): Use more precise
	regex.

2004-05-19  Derek Price  <derek@ximbiot.com>

	* server.c (serve_unchanged, serve_is_modified): Overwrite existing
	data in timefields.  Fixes CAN-2004-0396.

2004-05-15  Derek Price  <derek@ximbiot.com>

	* lock.c (Lock_Cleanup), rcs.c (rcs_cleanup), server.c
	(server_cleanup):  Clean up inchoherent comment.

2004-05-15  Derek Price  <derek@ximbiot.com>

	* cvs.h, client.c, history.c, main.c, rcs.c, sanity.sh, server.c:
	Back out get_date() changes from 2004-04-28.

2004-05-14  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (trailingslashes): During cleanup remove topfile,v to
	avoid problems in later tests (editor-1).

2004-05-13  Derek Price  <derek@ximbiot.com>

	* sanity.sh (trailingslashes): Note TODO item #205 in the comment.

2004-05-13  Derek Price  <derek@ximbiot.com>

	* sanity.sh (trailingslashes): New tests to expose a bug in CVS when
	paths are specified with trailing slashes.  This relates to TODO #205.

2004-05-13  Mark D. Baushke  <mdb@cvshome.org>

	* ls.c (ls): Use client_senddate() so the server is able to parse
	the date/time.

2004-05-12  Derek Price  <derek@ximbiot.com>

	* entries.c, subr.c: Gratuitous reformatting.

2004-05-12  Derek Price  <derek@ximbiot.com>

	* subr.c (file_has_conflict), vers_ts.c (time_stamp_server): Only
	special case "=" when it is the only character in a timestamp field.
	Gratuitous reformatting.
	* vers_ts.c (time_stamp_server): Check for NULL in a consistent manner.
	Gratuitous reformatting.

2004-05-12  Derek Price  <derek@ximbiot.com>

	* sanity.sh (ls): Add some new tests of the ls command with dates
	specified and show an assertion error when an existing file is
	specifically requested.
	(Original patch from Alexander Taler <dissent@cvshome.org>.)

2004-05-11  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (RCSKEYDATE): New regular expression to match the rcs
	keyword date format.
	(keyword,keywordlog): Use it.
	(RCSDELTADATE): New regular expression to match the internal rcs
	file format delta.
	(admin): Use it.
	(RCSDATE): Deleted.
	(ISO8601DATE}: A more exact regular expression for cvs log date
	output than the previous RCSDATE variable.
	(basica,basic2,branches,branches3,multibranch,import,importb,importc,
	join,modules,editor,binfiles,log,log2,keyword,multibranch2,admin,
	reserved,recase,multiroot,trace):
	Use ${ISO8601DATE} for cvs log output date patterns.
	(TOUCH1971,ISO8601DATE1971): New variables for test importc.
	(TOUCH2034,ISO8601DATE2034): Ditto.
	(importc): Use them. Isolate the touch commands in a sub-shell
	with TZ=GMT to make the time more predictable.
	(RAWRCSDATE2000A,RAWRCSDATE1996A,RAWRCSDATE1996B): New date variables.
	(ISO8601DATE2000A,ISO8601DATE1996A,ISO8601DATE1996B): Regexps to match.
	(rcs): Use them.
	(rcs4): Put the touch commands into sub-shells for temporary
	TZ=GMT use.

2004-05-11  Derek Price  <derek@ximbiot.com>

	* checkin.c (Checkin), commit.c (commit_filesdoneproc, remove_file,
	checkaddfile), rcs.c (RCS_checkin): Remove redundant commit messages.
	Suppress output when really_quiet.
	* sanity.sh: Update to match.

2004-05-10  Derek Price  <derek@ximbiot.com>

	* sanity.sh (top-level): Rename to...
	(rstar-toplevel): ...this for clarity.

2004-05-10  Derek Price  <derek@ximbiot.com>

	* sanity.sh (dirs2-10ar): Remove unnecessary empty argument.

2004-05-08  Larry Jones  <lawrence.jones@ugsplm.com>

	* log.c (log_expand_revlist): Suppress warnings if really_quiet.

2004-05-08  Derek Price  <derek@ximbiot.com>

	* server.c: Gratuitous reformatting.  Remove unnecessary prototype &
	unnecessary type cast.

2004-05-07  Derek Price  <derek@ximbiot.com>

	* sanity.sh (basica): Remove unnecessary empty arguments.

2004-05-07  Derek Price  <derek@ximbiot.com>

	* cvs.h (fopen_case): Remove obsolescent prototype.

2004-05-05  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Wait a second and retry if cvs-serv* directories are
	discovered to avoid race conditions on some systems.
	(Patch from Pavel Roskin <proski@gnu.org>.)

2004-05-05  Derek Price  <derek@ximbiot.com>

	* commit.c: Some gratuitous reformatting.

2004-05-04  Derek Price  <derek@ximbiot.com>

	* update.c: Some gratuitous reformatting.

2004-05-04  Derek Price  <derek@ximbiot.com>

	* add.c (add): Remove obsolete FIXME comment.
	(*): Some gratuitous reformatting.

2004-05-03  Derek Price  <derek@ximbiot.com>

	* src/sanity.sh (branches2-14-ls-4): Change expectations due to new -d
	flag.

2004-05-02  Derek Price  <derek@ximbiot.com>

	* sanity.sh (ls): Add some new tests of ls -d flag.
	(Original patch from Alexander Taler <dissent@cvshome.org>.)

	* ls.c (ls): Accept -d to show dead files.
	(ls_proc): Add W_ATTIC to start_recursion flags when user requests dead
	files.
	(ls_fileproc): Don't show dead files with -d.  Print "dead" in long
	listings for dead files.

2004-05-02  Derek Price  <derek@ximbiot.com>

	* ls.c (ls_dirleaveproc): Return err.
	(Original patch from Mark D. Baushke <mdb@cvshome.org>.)

2004-05-02  Derek Price  <derek@ximbiot.com>

	* ls.c (ls_print): Return 0.
	(Patch from Mark D. Baushke <mdb@cvshome.org>.)

2004-04-30  Derek Price  <derek@ximbiot.com>

	* tag.c (tag_check_valid): Treat a NULL repository the same as an empty
	one.
	* sanity.sh (branches2-ls-7): Verify absence of assertion failure.

2004-04-29  Derek Price  <derek@ximbiot.com>

	* sanity.sh (branches2-rls-1): Reformat comment.

2004-04-28  Derek Price  <derek@ximbiot.com>

	* sanity.sh (rcs2-5): Update to cope with new getdate.y.

2004-04-28  Derek Price  <derek@ximbiot.com>

	* Makefile.am (cvs_LIBADD): Use libs for nanosleep & clock_gettime when
	necessary.
	* cvs.h: Remove get_date() proto and #include getdate.h.
	* client.c, history.c, main.c, rcs.c, server.c: Use new form of
	get_date().
	* Makefile.in: Regenerated.

2004-04-28  Derek Price  <derek@ximbiot.com>

	* lock.c (set_lock), subr.c (sleep_past): Assume we have nanosleep.

2004-04-27  Derek Price  <derek@ximbiot.com>

	* root.c (normalize_cvsroot): Use asnprintf in preference to other
	indirections.

2004-04-27  Derek Price  <derek@ximbiot.com>

	Add dirname module from GNULIB.

	* add.c, client.c, commit.c, find_names.c, import.c, lock.c, ls.c,
	repos.c, server.c, subr.c: s/ISDIRSEP/ISSLASH/.

2004-04-27  Derek Price  <derek@ximbiot.com>

	* commit.c, create_adm.c, entries.c, filesubr.c, hash.c, update.c:
	Gratuitious reformatting.

2004-04-27  Derek Price  <derek@ximbiot.com>

	* ls.c (ls_direntproc): Remove unneeded assertion.

2004-04-27  Derek Price  <derek@ximbiot.com>

	* ls.c (ls): Set client_prune_dirs in order to delete any directories
	created by the server.
	(ls_dirleaveproc): Always delete directories created by
	ls_direntproc().
	* sanity.sh (ls): Update to match.

2004-04-27  Derek Price  <derek@ximbiot.com>

	* ls.c: Remove unneeded prototypes.  Add `prune' option.
	(dircount): Remove static global.
	(set_tag, created_dir, ls_prune_dirs): New static globals.
	(ls): Handle new prune option.
	(ls_print_dir): Don't count directories, just remember not to print a
	blank line in front of the first one.  Don't list empty directories
	when prune is specified.
	(ls_delproc): New function to dispose of dirlist.
	(ls_direntproc): Reorganize to assume a directory without a parent must
	be listed.  Create missing directories a la update and checkout so that
	they may be processed.  Use new delproc when creating new list nodes.
	(ls_dirleave_proc): New function to remove directories created by
	ls_direntproc.
	(ls_proc): Call start_recursion() once for each argument so that
	ls_direntproc() may assume that any directory without a parent in the
	dirlist must be listed and others must not unless recursing.
	* sanity.sh (ls): New tests.
	(Thanks to a report from Mark D. Baushke <mdb@cvshome.org>.)

2004-04-26  Derek Price  <derek@ximbiot.com>

	* rsh-client.c (start_rsh_server): Don't rely on GNU argument
	processing capabilities in the RSH command.
	(Report from Mark Andrews <Mark_Andrews@isc.org>.)

2004-04-26  Derek Price  <derek@ximbiot.com>

	* ls.c (dircount): s/long long/long/ for Windows.

2004-04-23  Derek Price  <derek@ximbiot.com>

	* ls.c (usage): Sync with manual.

2004-04-23  Derek Price  <derek@ximbiot.com>

	* Makefile.am (cvs_SOURCES): Add ls.c.
	* client.c, subr.c: Move #include vasnprintf.h to...
	* cvs.h: ...here.
	(ls): Add prototype.
	* ls.c: New file.
	* main.c (cmds): Add ls & rls entries.
	* server.c (serve_ls, serve_rls): New functions.
	(requests): Add list, ls, rlist, & global-list-quiet.
	* sanity.sh (branches2): Test new cvs ls & rls commands.
	* Makefile.in: Regenerated.
	(Thanks for patches from Alexander Taler <dissent@cvshome.org>
	and Mark D. Baushke <mdb@cvshome.org>.)

2004-04-23  Derek Price  <derek@ximbiot.com>

	* Makefile.am (AM_CPPFLAGS): No, really, $(top_builddir)/lib.
	* Makefile.in: Regenerated.

2004-04-23  Derek Price  <derek@ximbiot.com>

	* Makefile.am (AM_CPPFLAGS): Add the builddir/lib directory for
	generated header files.
	* Makefile.in: Regenerated.

2004-04-22  Derek Price  <derek@ximbiot.com>

	* cvs.h: Move include of fnmatch.h into lib/system.h with the other
        GNULIB headers.

2004-04-22  Derek Price  <derek@ximbiot.com>

	* tag.c: Use bool where appropriate.  Some gratuitous reformatting.

2004-04-19  Derek Price  <derek@ximbiot.com>

	* ignore.c: Gratuitous reformatting.

2004-04-16  Derek Price  <derek@ximbiot.com>

	* tag.c: Gratuitous reformatting.

2004-04-16  Derek Price  <derek@ximbiot.com>

	* client.c (connect_to_pserver): Use size_t instead of int as argument
	to asnprintf.  Some gratuitous reformatting.
	(Report from Mark <cm_mark@yahoo.com>.)

2004-04-15  Derek Price  <derek@ximbiot.com>

	* client.c, commit.c, server.c: Gratuitous reformatting.

2004-04-11  Derek Price  <derek@ximbiot.com>

	* client.c (call_in_directory): Check paths the server sends us to make
	sure they are within a sandbox the user requested be updated.
	(is_valid_client_path, path_list_prefixed): New functions.

2004-04-11  Derek Price  <derek@ximbiot.com>

	* modules.c (do_module): Don't allow up-level references in paths to
	step out of the repository.
	* sanity.sh (multiroot3): Update tests and add a few more.

2004-04-11  Derek Price  <derek@ximbiot.com>

	* client.c (get_proxy_port_number): Use CVS_PROXY_PORT as the default
	proxy port rather than CVS_AUTH_PORT.

2004-04-10  Mark D. Baushke  <mdb@cvshome.org>

	* client.c (get_cvs_port_number): Use CVS_AUTH_PORT as the default
	for "cvspserver" rather than the CVS_PROXY_PORT.
	(Fixes parseroot-3r on machines without "cvspserver" in
	their /etc/services file.)

2004-04-07  Derek Price  <derek@ximbiot.com>

	* sanity.sh (parseroot): s/oberon/$username/.

2004-04-06  Derek Price  <derek@ximbiot.com>

	Import Jim Kingdon's old, old patch which allows CVS to work via a
	web proxy server.
	* client.c (*): Some gratuitous restyling.
	(get_proxy_port_number): New function.
	(connect_to_pserver): Connect via proxy.
	* client.h (CVS_PROXY_PORT): Define.
	* root.c (parse_cvsroot): Parse method options.
	* sanity.sh (parseroot): Add new tests.

2004-04-06  Derek Price  <derek@ximbiot.com>

	* root.h (cvsroot_t): Move username, password, hostname, port inside
	CLIENT_SUPPORT ifdefs.
	* buffer.c, gssapi-client.c, root.c, sever.c: Add #ifdefs as necessary
	so that this will compile without client support and the root.h change.
	Some gratuitous restyling.

2004-04-06  Derek Price  <derek@ximbiot.com>

	* log.c, tag.c: Gratuitous restyling.

2004-04-04  Derek Price  <derek@ximbiot.com>

	* filesubr.c (isabsolute): Move...
	* subr.c: ...here and use new ISABSOLUTE macro.

2004-04-04  Derek Price  <derek@ximbiot.com>

	* client.c (send_file_names): Cast out an unneeded const to avoid a
	warning.

2004-04-03  Larry Jones  <lawrence.jones@ugsplm.com>

	* cvsrc.c: Remove unused declarations.
	* run.c: Ditto.
	* server.h (gunzip_and_write): Declare.

	* client.c (send_file_names): Remove unused variables.

2004-04-02  Derek Price  <derek@ximbiot.com>

	* sanity.sh (client): Honor $keep.

2004-04-02  Derek Price  <derek@ximbiot.com>

	* log.c, patch.c, rcs.c: Gratuitous restyling.

2004-04-02  Derek Price  <derek@ximbiot.com>

	* import.c (import): Use ISDIRSEP rather than testing paths against `/'
	directly.  Some gratuitos reformatting.

2004-04-02  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Note the effectiveness of `tail -f check.log' in providing
	running status.

2004-04-02  Derek Price  <derek@ximbiot.com>

	* client.c (send_file_names): Move code which calculates and sends
	Max-dotdot...
	(send_max_dotdot): ...to this new function.
	(send_files): Call send_max_dotdot.
	* sanity.sh (files-14): Expect .. in paths to work now.
	(status): Add a few new tests using `..'.

2004-04-01  Derek Price  <derek@ximbiot.com>

	* lock.c: Gratuitous restyling.

2004-04-01  Derek Price  <derek@ximbiot.com>

	* commit.c, cvs.h, server.c: Gratuitous restyling.
	* run.c (run_exec): Ditto, plus call cvs_flush{out,err}() instead of
	flushing stderr & stdout directly.

2004-03-29  Derek Price  <derek@ximbiot.com>

	* login.c, server.c: Gratuitous restyling.

2004-03-25  Derek Price  <derek@ximbiot.com>

	* client.c (send_file_names): Initialize string to NULL rather than to
	a single byte string containing only a null byte.
	* subr.c (xrealloc_and_strcat): If the destination string is NULL,
	simply allocate a new string.
	(Original report from Chris Bohn <cbohn@rrinc.com>.)

2004-03-24  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (ISODATE): Fix ISO 8601 format comment.

2004-03-22  Derek Price  <derek@ximbiot.com>

	* sanity.sh (toplevel): Remove FIXME type comment and unneeded
	Emtptydir removal.

2004-03-22  Derek Price  <derek@ximbiot.com>

	* update.c: Some minor style cleanup.

2004-03-22  Derek Price  <derek@ximbiot.com>

	* update.c: Some minor style cleanup.

2004-03-22  Derek Price  <derek@ximbiot.com>

	* sanity.sh (top-level): Don't match most of the assertion since this
	string is often system dependent.
	(Thanks to Larry Jones <lawrence.jones@ugsplm.com>.)

2004-03-22  Derek Price  <derek@ximbiot.com>

	* sanity.sh (top-level): Don't match the assertion's line number.

2004-03-22  Derek Price  <derek@ximbiot.com>

	* sanity.sh (top-level): New test to confirm assertion failure.

2004-03-22  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Only verify argument to -f when -f was passed.  Check for
	$TMPDIR/cvsXXXXXX temp files after each test.

2004-03-22  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Verify that the argument to -f is really a test.

2004-03-20  Larry Jones  <lawrence.jones@ugsplm.com>

	* cvs.h: Change command_name to cvs_command_name to avoid conflict
	on HP-UX (incredibly, it declares a global command_name in prot.h,
	which is included from shadow.h, which we include in server.c).
	Change all references.

	* subr.c (previous_rev): Fix == vs = typo.

	* buffer.h: Add prototype for buf_empty.

	* add.c (add): Remove unused variable.

2004-03-20  Derek Price  <derek@ximbiot.com>

	* add.c (add, add_directory, build_entry), admin.c (admin_dirproc),
	checkin.c (Checkin), checkout.c (safe_location, build_dirs_and_chdir),
	client.c (add_prune_candidate, send_repository, send_a_repository,
	send_to_server, start_rsh_server, send_arg, send_modified,
	send_ignproc, send_filesdone_proc, send_dirent_proc,
	send_dirleave_proc, client_notify), commit.c (check_direntproc,
	check_filesdoneproc, checkaddfile, commit_direntproc,
	commit_dirleaveproc, lock_RCS, precommit_proc, find_data,
	find_dirent_proc, find_ignproc, find_filesdoneproc), create_adm.c
	(Create_Admin), cvsrc.c (read_cvsrc), diff.c (diff_dirproc,
	diff_filesdoneproc, diff_dirleaveproc), edit.c (onoff_filesdoneproc,
	mark_up_to_date, editor_set, notify_proc_args, notify_proc, notify_do,
	notify_check), entries.c (Scratch_Entry, Register, WriteTag),
	expand_path.c (expand_variable, expand_path), fileattr.c
	(fileattr_startdir), filesubr.c (mkdir_if_needed, xchmod,
	last_component), history.c (history_write), ignore.c (ignore_directory,
	ignore_files), import.c (get_comment, add_rcs_file, expand_at_signs),xi
	lock.c (lock_filesdoneproc), log.c (log_dirproc), logmsg.c
	(logfile_write, rcsinfo_proc, update_logfile_proc, editinfo_proc,
	verifymsg_proc, do_editor, do_verify, Update_Logfile), main.c (main
	program_name, program_path, command_name), parseinfo.c (Parse_Info),
	patch.c (patch_dirproc), rcs.c (RCS_getdatebranch, rcs_lockfilename,
	RCS_parse, RCS_setattic, RCS_getversion, RCS_gettag, RCS_getbranch,
	RCS_getdate, RCS_datecmp, RCS_getrevtime, RCS_setexpand,
	expand_keywords, RCS_checkout, RCS_addbranch, RCS_checkin, RCS_lock,
	RCS_cmp_file, RCS_deltas, rcs_lockfilename, make_file_label),
	rcscmds.c (RCS_output_diff_options, call_diff, RCS_merge,
	RCS_exec_rcsdiff, diff_exec), recurse.c (start_recursion, do_recursion,
	do_file_proc), remove.c (remove_dirproc), repos.c (Name_Repository,
	Short_Repository), root.c (Name_Root, Create_Root), run.c
	(piped_child), server.c (output_dir, server_register,
	server_checked_in, server_update_entries, server_copy_file,
	server_set_entstat, server_clear_entstat, server_set_sticky,
	server_template, cvs_output_tagged), status.c (status_dirproc), subr.c
	(make_message_rcslegal), tag.c (pretag_proc, tag_dirproc,
	check_fileproc, check_filesdoneproc, tag_fileproc, val_direntproc),
	update.c (update_dirent_proc, update_dirleave_proc, update_ignproc,
	update_filesdone_proc, isemptydir), vers_ts.c (time_stamp_server,
	time_stamp), watch.c (watch_modify_watchers, addremove_filesdoneproc),
	zlib.c (read_and_gzip): Make most string args const, mainly in the
	interest of preserving repository & updatedir but including some
	collateral damage.  Update a few functions to comply with new
	requirement.  Some style fixes.
	* client.h, cvs.h, edit.h, fileattr.h, rcs.h, server.h, update.h,
	watch.h: Update prototypes to match.

2004-03-20  Derek Price  <derek@ximbiot.com>

	* sanity.sh (conflicts2): s/cvs/$testcvs/.

2004-03-20  Derek Price  <derek@ximbiot.com>

	* add.c (add): Correct longstanding resurrection bugs.  Remove FIXME
	comment to this effect.  Set mode and Entries timestamps of resurrected
	files correctly.
	* sanity.sh (basica, binfiles, conflicts2, recase, resurrection,
	update-p): Update tests to compensate.  Remove FIXCVS comments.

2004-03-19  Mark D. Baushke  <mdb@cvshome.org>

	* server.c (gserver_authenticate_connection): Handle large
	GSSAPI packets dynamically.
	(Bug report from Douglas Engert <DEEngert@anl.gov>)

2004-03-19  Derek Price  <derek@ximbiot.com>

	* cvs.h (pathname_levels, previous_rev): Remove leading underscore from
	prototype arguments to avoid potential conflicts with implementations.

2004-03-18  Derek Price  <derek@ximbiot.com>

	* cvs.h (pathname_levels): Make string argument const.
	* subr.c (pathname_levels): Simplify function.

2004-03-17  Derek Price  <derek@ximbiot.com>

	* commit.c (precommit_list_to_args_proc), logmsg.c (do_editor), subr.c
	(format_cmdline), tag.c (pretag_list_to_args_proc):
	s/atribute/attribute/.
	(Report from Matthew Doar <matt@trpz.com>.)

2004-03-17  Derek Price  <derek@ximbiot.com>

	* subr.c (pathname_levels): Get it right this time.

2004-03-17  Derek Price  <derek@ximbiot.com>

	* subr.c (pathname_levels): Remove incorrect assertion and just
	return 0 when pathname is NULL.

2004-03-17  Derek Price  <derek@ximbiot.com>

	* subr.c (pathname_levels): Use ISDIRSEP() instead of strchr('/')
	and remove FIXME comment to that effect.

2004-03-16  Derek Price  <derek@ximbiot.com>

	* main.c (main): Update the --version Copyright (c) string to
	include 2004.

2004-03-15  Mark D. Baushke  <mdb@cvshome.org>

	* release.c (release): Add missing xmalloc of update_cmd.

2004-03-15  Derek Price  <derek@ximbiot.com>

	* release.c (release): Enable authentication and encryption for a child
	update process when necessary.
	(Original patch from Dan Russell <russelld@aol.net> via Hal Mahaffey
	<HMahaffey@aol.com>.)

2004-03-14  Derek Price  <derek@ximbiot.com>

	* add.c (add): Only call server_updated() when we actual have a new
	resurrected file for the client.

2004-03-14  Derek Price  <derek@ximbiot.com>

	* cvs.h (previous_rev, write_letter): New prototypes.
	(struct file_info): Move to before the write_letter prototype.
	* add.c (add): Allow resurrection of files which used to exist on a
	branch.
	* subr.c (previous_rev): New function.
	* update.c: Consolidate like pragmas.
	 (write_letter): Remove prototype.  Remove static declaration.
	* sanity.sh (resurrection): New tests.

2004-03-14  Derek Price  <derek@ximbiot.com>

	* commit.c (remove_file): Print the actual previous revision instead of
	a branch number.
	* sanity.sh: Update to match.

2004-03-14  Derek Price  <derek@ximbiot.com>

	* rcs.c (RCS_cmp_file): Print the actual name of the file we failed to
	open in the error message.

2004-03-14  Derek Price  <derek@ximbiot.com>

	* diff.c (diff_fileproc): Allow diffing of new files against arbitrary
	revisions instead of assuming that there is no RCS archive file.

2004-03-14  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Update serveral tests to use $CPROG & $SPROG correctly.

2004-03-14  Derek Price  <derek@ximbiot.com>

	* add.c (add): Update file resurrection messages for consistency.
	* sanity.sh: Update to match.

2004-03-13  Derek Price  <derek@ximbiot.com>

	* server.c (server_updated): Fix header comment.

2004-03-13  Derek Price  <derek@ximbiot.com>

	* Makefile.am (cvs_SOURCES): Remove error.h since it is now included in
	lib.
	* Makefile.in: Regenerated.

2004-03-09  Larry Jones  <lawrence.jones@ugsplm.com>

	* run.c: Move #includes required for cmdline_escape and friends...
	* subr.c: ...to here.

2004-03-07  Derek Price  <derek@ximbiot.com>

	* run.c (struct cmdline_bindings, cmdline_bindings_hash_node_delete,
	cmdline_escape, cmdline_quote, format_cmdline): Move...
	* subr.c: ...here so they will compile under Windows.

2004-03-03  Derek Price  <derek@ximbiot.com>

	* import.c (import): Check that the module name specified by the user
	does not contain `CVS' as a directory name.
	* ignore.c (ign_add): Never cease ignoring "CVS" - it is a reserved
	name.
	(Original patch from Dan Peterson <dbpete@aol.com>.)

	* sanity.sh (import-CVS): New tests for the above.

2004-02-29  Larry Jones  <lawrence.jones@ugsplm.com>

	* import.c (expand_at_signs): Change type of len to size_t.
	* subr.c (resolve_symlink): Move declaration of newname inside
	#ifdef, clean up coding style.
	* zlib.c (gunzip_and_write): Fix up potential overlow problems.
	(read_and_gzip): Add explicit casts to placate paranoid compilers.

2004-02-28  Larry Jones  <lawrence.jones@ugsplm.com>

	* sanity.sh (join6): New tests for previous fix.

	* update.c (join_file): One more fix to avoid dereferencing NULL.
	(Reported by Steve McIntyre <steve@einval.com>.)
	* sanity.sh (join6): New tests for above.

2004-02-25  Larry Jones  <lawrence.jones@ugsplm.com>

	* update.c (join_file): Fix optimization to avoid dereferencing NULL.
	(Reported by Steve McIntyre <steve@einval.com>.)

2004-02-25  Derek Price  <derek@ximbiot.com>

	No longer require directories specified to `checkout -d' to exist.

	* checkout.c (safe_location): Only confirm that destination is a safe
	location for directories that already exist since we can assume that
	creating directories under such a safe directory is acceptable.
	(dir_to_build): Remove just_chdir member.
	(checkout_proc): Add trace.  No longer set dir_to_build->just_chdir.
	Minor reformatting.
	(build_dirs_and_chdir): Don't create or register directories that are
	not created.
	* sanity.sh (*): Update tests to account for new behavior.

2004-02-25  Derek Price  <derek@ximbiot.com>

	* buffer.c (buf_empty): New function.
	* server.c (server): Check for unread data in buffer before closing.

2004-02-25  Derek Price  <derek@ximbiot.com>

	* release.c (release): Restore the initial directory before and after
	calling various sections of code that expect it to prevent corruption
	of CVS/Entries files on release of a subdir and tell unedit() what to
	release.
	* sanity.sh: Add test case for release.c fix.
	(Original patch from Matthew Ogilvie  <mmo9317bd@mailcan.com>.)

	* client.c (last_entries): Move global variable...
	(call_in_directory): ...here (now a local variable).  Remove test that
	always evaluates to true.
	(last_dir_name): Remove unused global variable.

2004-02-24  Larry Jones  <lawrence.jones@ugsplm.com>

	* filesubr.c (xresolvepath): Fix crash in error case.
	(Reported by Reinhard Zierke <zierke@informatik.uni-hamburg.de>.)

2004-02-24  Derek Price  <derek@ximbiot.com>

	* sanity.sh (crerepos): Fix it so that it ignores the user's
	.cvsrc file (.cvsrc "checkout -r" used to cause the "rm -r 1"
	command to print warnings and wait for input).
	(Original patch from Matthew Ogilvie  <mmo9317bd@mailcan.com>.)

	* sanity.sh (reposmv, parseroot, devcom3, binwrap3):
	s/_SAVED\>/_save/ for consistency.

2004-02-24  Derek Price  <derek@ximbiot.com>

	* sanity.sh (taginfo-newfmt-examine-2): Correct expected results.

2004-02-23  Larry Jones  <lawrence.jones@ugsplm.com>

	* sanity.sh (taginfo-examine-1): Correct expected results.

2004-02-20  Derek Price  <derek@ximbiot.com>

	* subr.c (expand_string): Use x2realloc() from GNULIB for core
	functionality.

2004-02-20  Derek Price  <derek@ximbiot.com>

	* subr.c (set_nonblock_fd): Move back to...
	* server.c: ...here.
	* cvs.h: Remove protos for the above two functions.
	* buffer.c (stdio_buffer_shutdown): Remove unexessary and possibly
	dangerous check for unread data on a pipe with a nonblock read.

2004-02-20  Larry Jones  <lawrence.jones@ugsplm.com>

	* tag.c (check_fileproc): Remove unused variable.

2004-02-20  Derek Price  <derek@ximbiot.com>

	* ChangeLog, commit.c, filesubr.c, rcs.c, root.c, sanity.sh, subr.c,
	update.c: Remove VIM editor commands.

2004-02-20  Derek Price  <derek@ximbiot.com>

	Import xalloc module from GNULIB, as well as its remaining unimported
	dependency, the exitfail module.

	* cvs.h: #include "xalloc.h".
	* subr.c (xmalloc, xrealloc, xstrdup): Remove these functions.

2004-02-20  Larry Jones  <lawrence.jones@ugsplm.com>

	* hash.h (struct node): Change data from char * to void *, change
	all callers.

	* run.c (cmdlinequote, cmdlineescape): Use prototype in definition
	to match cvs.h.
	(format_cmdline): UNIQUE_*_TYPE_* macros imply HAVE_*, so no need
	to check for both.  Remove duplicate code for size_t and ptrdiff_t.

	* tag.c (check_fileproc): Remove spurious invalid cast, clean up
	coding style.

	* commit.c (precommit_list_proc): Remove vestigial prototype.

2004-02-19  Derek Price  <derek@ximbiot.com>

	* run.c (format_cmdline): Don't accept printf `L' modifier at all when
	long doubles are not available.  Allow UNIQUE_FLOAT_TYPE_LONG_DOUBLE to
	imply HAVE_LONG_DOUBLE.

2004-02-19  Derek Price  <derek@ximbiot.com>

	* run.c: Remove include of stddef.h - it is already included via
	lib/system.h.

2004-02-19  Larry Jones  <lawrence.jones@ugsplm.com>

	* run.c: Include the appropriate headers for wchar_t and wint_t,
	create a typedef for convproc and use it (required for va_arg),
	add explicit comparisons to keep gcc -Wall happy, remove unused
	variables.
	(format_cmdline): Fix bugs and portability problems.
	* tag.c: Remove unused global variable.
	(pretag_proc): Correct call to format_cmdline: %hhc is not a valid
	printf format (should just be %c) and NULL must be cast to the correct
	type in a varargs call.
	(pretag_list_to_args_proc): Initialize arg to keep gcc -Wall happy,
	remove unused variable, add auxiliary variable to simplify code,
	clean up coding style.

	* commit.c (precommit_list_to_args_proc): Initialize arg to keep
	gcc -Wall happy, remove unused variable, clean up coding style.
	(precommit_proc): Cast NULL to the correct type in varargs call.
	* edit.c (notify_proc): Remove unused variables.
	* expand_path.c (expand_path): Initialize inquotes, add explicit
	comparison to keep gcc -Wall happy.
	* logmsg.c: Remove unused global variables and function decl.
	(do_verify): Add explicit comparison to keep gcc -Wall happy,
	clean up coding style.
	(logmsg_list_to_args_proc): Initialize arg to keep gcc -Wall happy,
	remove unused variable.
	(logfile_write): Cast NULL to the correct type in varargs call.
	(verifymsg_proc): Cast NULL to the correct type in varargs call.

2004-02-19  Derek Price  <derek@ximbiot.com>

	* run.c (format_cmdline): Correct some typos and cut/paste errors.
	Switch on HAVE_WINT_T for Solaris.  Switch on HAVE_INTMAX_T for other
	pre-C99 platforms.

2004-02-19  Derek Price <derek@ximbiot.com>

	* sanity.sh (crerepos): Correct comment.

2004-02-19  Derek Price <derek@ximbiot.com>

	* logmsg.c (verifymsg_proc), run.c (format_cmdline): Plug memory leak.
	(Report from Mark D. Baushke <mdb@cvshome.org>.)

	* run.c (format_cmdline): Simplify two expressions.

2004-02-19  Larry Jones  <lawrence.jones@ugsplm.com>

	* login.c (password_entry_operation): Initialize line.

2004-02-19  Derek Price  <derek@ximbiot.com>

	* sanity.sh (tests): Add errmsg3.

2004-02-19  Derek Price  <derek@ximbiot.com>

	* sanity.sh (errmsg3): Don't create directories named `tmp' in
	$TESTDIR to avoid conflicts with the default value of $TMPDIR.

2004-02-19  Derek Price  <derek@ximbiot.com>

	* sanity.sh (crerepos): Don't create directories named `tmp' in
	$TESTDIR to avoid conflicts with the default value of $TMPDIR.

2004-02-19  Derek Price  <derek@ximbiot.com>

	* sanity.sh (directory_cmp): Use $TESTDIR for temporary files, like the
	dotest functions.

2004-02-19  Derek Price  <derek@ximbiot.com>

	* sanity.sh: No longer allow user override of $tmp.  Set $TMPDIR to a
	directory under $TESTDIR, as for $HOME, but still allowing for user
	override.  Check for cvs-serv* directories under $TMPDIR rather than
	$tmp at the end of the script.

2004-02-19  Derek Price <derek@ximbiot.com>

	* run.c (cmdline_quote): Plug memory leak.
	(format_cmdline): Don't bother with freeing memory before a call to
	error() which will exit.  Plug memory leak.
	(Report from Mark D. Baushke <mdb@cvshome.org>.)

2004-02-18  Derek Price <derek@ximbiot.com>

	* run.c (format_cmdline): Move variable declaration to a position more
	acceptable to the ANSI C standards.

2004-02-17  Derek Price <derek@ximbiot.com>

	* commit.c (precommit_proc): Installed new format_cmdline() instead
	of the old, nonuniform info file interpreter.  Support for new user
	data field in Parse_Info() callbacks.  Use cmdlinequote() instead of c.
	10 lines of quote processing.
	* cvs.h (expand_path):  Update proto.
	(UseNewInfoFmtStrings): New global variable to keep track of the config
	option of the same name.
	(format_cmdline): Added function prototypes and type definitions to
	support this new function.
	* edit.c (notify_proc):  Added the formatsafe flag to an
	expand_path() call.  Installed new format_cmdline() instead of the old,
	nonuniform info file interpreter.  Support for new user data field in
	Parse_Info() callbacks.
	* expand_path.c (expand_path):  Added the formatsafe flag to and some
	code to double up '%'s in variable subs if formatsafe is set on the
	presumption that the variables that expand_path() subs into the string
	are already working paths to files or whatever.  It should be quoting
	too but I haven't done that yet.
	* logmsg.c (title_proc, logmsg_list_to_args_proc, update_logfile_proc,
	rcsinfo_proc, editinfo_proc, verifymsg_proc, logfile_write): Installed
	new format_cmdline() instead of the old, nonuniform info file
	interpreter.  Support for new user data field in Parse_Info()
	callbacks.
	* main.c:  Added global UseNewInfoFmtStrings variable to keep track
	of the config file option of the same name (see above).
	* mkmodules.c (commitinfo_contents, editinfo_contents,
	taginfo_contents, verifymsg_contents, loginfo_contents: Document new
	format string features.
	(config_contents): Added new UseNewInfoFmtStrings option with default
	of yes.
	* modules.c (do_module):  Added the formatsafe flag to an
	expand_path call.
	* parseinfo.c (Parse_Info, parse_config):  Added the formatsafe flag
	to an expand_path() call.  Added handling for UseNewInfoFmtStrings
	option in the config file.  Set to no, modifications needed to set to
	yes are harmless.  Set to yes, modifications needed for full
	compatibility cause deprecation warnings.  Eliminating deprecation
	warnings should allow executable to be compile with
	--disable-old-info-format-support passed into configure.  Added user
	data field (closure) which is passed through into callproc to
	Parse_Info().
	* run.c (format_cmdline): New function to provide uniform handling of
	*info file scripting hook lines.
	(cmdline_bindings_hash_node_delete,
	(cmdlineescape, cmdlinequote): New functions to "quote" and "escape"
	strings like you would to get them past a command line parser as an
	argument.
	(run_setup): Made quote aware
	* sanity.sh (info, taginfo, config, pserver, lockfiles, reserved):
	New tests for the new format string functionality as well as the
	support of backwards compatibility.  Had to alter a few of the tests to
	not care which version of some of the (shared) config files they'd just
	checked in so that the tests can be run in any order.
	(taginfo): Add tests for file names with spaces in them.
	* server.c (template_proc): Support for new user data field in
	Parse_Info() callbacks.
	* tag.c (pretag_proc): Installed new format_cmdline() instead of the
	old, nonuniform info file interpreter.  Add support for new user data
	field in Parse_Info() callbacks.
	(check_fileproc): Add proper tag_info struct as node data rather than a
	single revision number in a string and pass tlist properly rather than
	in a global variable.
	(check_filesdone_proc): Altered to use non-global tlist.
	(tag_delproc): Handle new tag_info struct data members.
	(pretag_list_to_args_proc): Ditto.
	(pretag_list_proc): Deleted.
	* wrapper.c (Parse_Info): Added the formatsafe flag to an expand_path()
	call.

2004-02-17  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Check for $PWD != $TESTDIR after each set of tests rather
	than once at the end.  Check that there are no cvs-serv* directories in
	$tmp after each set of remote tests.

2004-02-17  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Don't check for an empty $TESTDIR - if $TESTDIR was empty
	then the preceding call to mkdir would have failed anyhow.

2004-02-17  Larry Jones  <lawrence.jones@ugsplm.com>

	* log.c (rlog_proc): Fix (harmless) uninitialized variable.

	* sanity.sh (basicc): Add tests pointing out defective handling
	of the Entries file.

2004-02-17  Derek Price  <derek@ximbiot.com>

	* checkout.c (build_dir_and_chdir): Expand header comment.

2004-02-15  Mark D. Baushke  <mdb@cvshome.org>

	* annotate.c (rannotate_proc): Plug a memory leak.
	* log.c (log_fileproc): Ditto.
	* tag.c (tag_fileproc): Ditto.
	* update.c (checkout_file): Ditto.
	* server.c (server_updated): Do not buf_free (filebuf) here.

2004-02-15  Derek Price  <derek@ximbiot.com>

	Make error() accessible to the GNULIB functions.

	* error.h: Move into the ../lib directory.

2004-02-13  Derek Price  <derek@ximbiot.com>

	* lock.c (Reader_Lock, lock_dir_for_write): Plug memory leaks.
	(Report from Mark D. Baushke <mdb@cvshome.org>.)

2004-02-13  Derek Price  <derek@ximbiot.com>

	* lock.c (remove_lock_files): Minor refactoring.

2004-02-12  Mark D. Baushke  <mdb@cvshome.org>

	* lock.c (lock_exists): Plug a memory leak.

2004-02-12  Derek Price  <derek@ximbiot.com>

	* modules.c: Reformat comment and line to fit in 80 chars.

2004-02-12  Mark D. Baushke  <mdb@cvshome.org>

	* server.c (do_cvs_command): Plug a memory leak.
	(Use buf_free() rather than free().)

2004-02-12  Derek Price  <derek@ximbiot.com>

	* sanity.sh (lockfiles): Reformat a comment for 80 characters.  Fix a
	few minor issues that caused tests to fail in remote mode.  Clean up
	after test.

2004-02-12  Derek Price  <derek@ximbiot.com>

	* lock.c (unlock_proc): Don't expect an int in closure as it is not
	condoned in the C standard.  For now, just assume zero since this
	function is currently only called from one location.
	(remove_locks): Pass NULL for the closure argument to unlock_proc().

2004-02-12  Derek Price  <derek@ximbiot.com>

	* lock.c (unlock_proc): Use closure as true/false free_repository
	free_repository argument to remove_lock_files.  Move to a position
	above remove_locks and delete prototype.
	(remove_locks): Don't free storage, as specified in our header comment,
	in order to avoid a seg fault that could otherwise occur after waiting
	on a lock.
	* sanity.sh (lockfiles): Add tests for all operation (read, read
	promotably, or write) and lock combinations.
	(Original report from Mark <cm_mark@yahoo.com>.)

2004-02-12  Larry Jones  <lawrence.jones@ugsplm.com>

	* modules.c (_do_module): Rename to my_module to avoid reserved name.
	* stack.c (_push, _pop, _unshift, _shift): Rename to do_*.

2004-02-12  Mark D. Baushke  <mdb@cvshome.org>

	* commit.c (find_fileproc): Plug a memory leak.

2004-02-12  Larry Jones  <lawrence.jones@ugsplm.com>

	* lock.c (_lock_simple_remove): Rename to remove_lock_files to avoid
	reserved name.  Fix typo (free => free_repository).
	(lock_simple_remove): Delete; use remove_lock_files directly.
	(lock_simple_remove_and_free): Ditto.
	(_lock_exists): Rename to lock_exists.

2004-02-11  Larry Jones  <lawrence.jones@ugsplm.com>

	* root.c (parse_cvsroot): Set hostname in fork mode for error messages.
	* buffer.c (stdio_buffer_shutdown): Undo previous change.

2004-02-11  Mark D. Baushke  <mdb@cvshome.org>

	* buffer.c (buf_free): Plug a memory leak.
	* commit.c (checkaddfile): Ditto.

	* server.c (fd_buffer_shutdown): Avoid a double free().

	* parseinfo.c (parse_config): Fix comments.

2004-02-11  Derek Price  <derek@ximbiot.com>

	* buffer.c (stdio_buffer_shutdown): Add logic to avoid attempting to
	print current_parsed_root->hostname when using the fork method.

2004-02-11  Derek Price  <derek@ximbiot.com>

	* server.c (do_cvs_command): Simplify stream & pipe closing.
	(Suggestion from Eric Siegerman <erics@telepres.com>.)

	* cvs.h, subr.c (set_block_fd): Remove this unnecessary function.

2004-02-11  Derek Price  <derek@ximbiot.com>

	* checkout.c (checkout_proc): Remove unneeded variable and enclosing
	block.
	* modules.c (_do_modules): Minor whitespace change.

2004-02-10  Derek Price  <derek@ximbiot.com>

	* lock.c (lock_simple_remove): Move core functionality...
	(_lock_simple_remove): ...here.
	(lock_simple_remove_and_free): New function.
	(set_promotable_lock): Use new function to avoid freeing data that will be
	reused.

2004-02-10  Derek Price  <derek@ximbiot.com>

	* server.c (do_cvs_command): s/FIXCVS/FIXME/ in comment.
	(set_block_fd, set_nonblock_fd): Move to...
	* subr.c: ...here.
	* cvs.h: Add protos for the above two functions.
	* buffer.c (stdio_buffer_shutdown): Replace fgetc() which checked for
	unread data on a pipe with a nonblock read.

2004-02-10  Derek Price  <derek@ximbiot.com>

	* server.c (do_cvs_command): Have the server child close all the pipes
	but the flow control pipe and wait on an EOF on the flow control pipe
	from the parent when done to avoid a race condition that could
	otherwise generate a SIGPIPE for the parent before the SIGCHILD when
	the other pipes were so full after a child exited that the parent
	attempted to write a stop byte to the flow control pipe.
	(Original report from <jesse_off@stchome.com>.)

2004-02-10  Derek Price  <derek@ximbiot.com>

	* buffer.c (stdio_buffer_shutdown): Add a helpful comment.

2004-02-09  Derek Price  <derek@ximbiot.com>

	* lock.c (lock_simple_remove): Add comments.  Use critical sections to
	set some variables that might otherwise cause trouble.
	(struct lock): Correct comment.

2004-02-09  Derek Price  <derek@ximbiot.com>

	Attempt to improve readability of code.

	* lock.c (promotable_lock): Rename to...
	(set_promotable_lock): ...this.
	(set_promotablelock_proc): Expand header comment.
	(Promotable_Lock): Rename to...
	(lock_tree_promotably): ...this.

2004-02-09  Derek Price  <derek@ximbiot.com>

	* lock.c (set_writelock_proc): Remove unused prototype.
	(promotable_lock): Remove unneded whitespace.
	(Promotable_Lock): Correct comments.

2004-02-09  Derek Price  <derek@ximbiot.com>

	* sanity.sh (co-d): Update comments and tests to reflect the current
	state of my side of my discussion with Larry Jones on how these
	commands should behave.

2004-02-09  Derek Price  <derek@ximbiot.com>

	* sanity.sh (emptydir): Add two new tests for how modules -d behaves
	when a directory already exists in the user's workspace.
	(emptydir): Add --keep functionality.

2004-02-09  Derek Price  <derek@ximbiot.com>

	* sanity.sh (co-d): New test to prove `co -d' failure case.

2004-02-05  Derek Price  <derek@ximbiot.com>

	* sanity.sh (recase): Fix typo that creeped in somehow between my last
	test run and my commit.

2004-02-04  Derek Price  <derek@ximbiot.com>

	* modules.c (do_modules): Move content to and make this function a
	wrapper for...
	(_do_modules): ...this new function which can watch for infinite loops
	in alias modules.
	* stack.c (_push, _pop, _unshift, _shift, push_string, pop_string,
	unshift_string, shift_string): New
	functions.
	* stack.h (push_string, pop_string, unshift_string, shift_string: New
	prototypes.
	* sanity.sh (modules): Add check for nested alias loops.

2004-02-04  Derek Price  <derek@ximbiot.com>

	* sanity.sh (recase): Update test names and comments for clarity and
	consistency.

2004-02-04  Derek Price  <derek@ximbiot.com>

	* sanity.sh (recase): Restore some cruft necessary when clients know
	they are on case insensitive systems.

2004-02-03  Derek Price  <derek@ximbiot.com>

	Preserve the case of checked out directories in a path as well as file
	names for client communication with the server.

	* Makefile.am (cvs_SOURCES): Add stack.c & stack.h.
	* stack.c, stack.h: New files.
	* cvs.h: Include stack.h.
	* client.c (send_file_names): Preserve the case of directories in a
	path as well as file names for communication with the server.

	* Makefile.in: Regenerated.

2004-02-04  Derek Price  <derek@ximbiot.com>

	* checkout.c (find_fileproc): Update error message for consistency.
	* sanity.sh (basica): Update to compensate.

2004-02-04  Derek Price  <derek@ximbiot.com>

	* classify.c (Classify_File): Update header comment block and reformat
	prototype for readability in 80 character widths.

2004-02-02  Derek Price  <derek@ximbiot.com>

	* sanity.sh (*): Update tests for the new status message from update.c.

2004-02-02  Derek Price  <derek@ximbiot.com>

	* sanity.sh (join-rm): New test for issue #104 & #159.

2004-02-02  Derek Price  <derek@ximbiot.com>

	* update.c (join_file): Correct status message for consistency.

2004-02-02  Derek Price  <derek@ximbiot.com>

	Continue removal from server of handling of case insensitive clients.

	* cvs.h: Remove extern declaration of ign_case.
	* ignore.c (ign_case): Remove declaration.
	(ign_name): Remove support for ign_case.
	* server.c (serve_case): Ditto.
	(requests): No longer support the "Case" request.
	* rcs.c (locate_rcs): Remove reference to GLOBAL in function header
	comment.

2004-02-02  Derek Price  <derek@ximbiot.com>

	* client.c (send_file_names): Restore prescribed client handling of the
	FILENAMES_CASE_INSENSITIVE switch.

2004-01-25  Derek Price  <derek@ximbiot.com>

	* server.c (kserver_authenticate_connection): Fix call to
	switch_to_user().
	(Original patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

2004-01-22  Derek Price  <derek@ximbiot.com>

	* modules.c (do_module): Strip trailing slashes before checking for
	infinite alias loops.
	* sanity.sh (modules): Tests for response to infinite alias loops.

2004-01-17  Mark D. Baushke  <mdb@cvshome.org>

	* logmsg.c (do_verify): Eliminate double-free bug.
	(Original patch from Gerald Combs.)

2004-01-12  Mark D. Baushke  <mdb@cvshome.org>

	* lock.c (lock_name): Deal with potentially NULL string pointers
	in calls to TRACE.
	(promotable_lock): Ditto.
	(set_lock): Ditto.
	* sanity.sh (trace): Update to latest patterns.

2004-01-07  Larry Jones  <lawrence.jones@ugsplm.com>

	* checkout.c (safe_location): Remove unused variable(s).
	* lock.c (lock_tree_for_write): Ditto.
	* rcs.c (RCS_checkin): Ditto.
	* subr.c (compare_revnums): Ditto.
	* tag.c (tag_check_valid): Ditto.
	* mkmodules.c (init): Initialize err and return it rather than 0.
	* server.c (do_cvs_command): Only define and set max_command_fd if
	we're actually going to use it.

2004-01-06  Mark D. Baushke  <mdb@cvshome.org>

	* socket-client.c (socket_buffer_initialize): Fix argument
	declaration for VMS compiler.
	(Patch submitted from Michael Lemke
	<ai26@sternwarte.uni-erlangen.de>.)

2004-01-01  Larry Jones  <lawrence.jones@ugsplm.com>

	* zlib.c (read_and_gzip, gunzip_and_write): Fix potential buffer
	overruns, use names for magic numbers.
	(Original patch from Jeff Downs <heydowns@borg.com>.)

2003-12-17  Larry Jones  <lawrence.jones@ugsplm.com>

	* main.c (main): Don't reference isremote without CLIENT_SUPPORT.
	(Patch from Jim Salter <jsalterjim@earthlink.net>.)

2003-12-18  Derek Price  <derek@ximbiot.com>

	* server.c (switch_to_user): SysLog attempts to root from pserver.

2003-12-18  Derek Price  <derek@ximbiot.com>

	* server.c (switch_to_user): Don't allow CVS to run as root in pserver
	mode.
	(Original patch from Wichert Akkerman via Bradley M Kuhn
         <bkuhn@fsf.org>.)
	* sanity.sh (pserver): Check for bad root error message.

2003-12-17  Larry Jones  <lawrence.jones@eds.com>

	* run.c (close_on_exec): fcntl is not documented to return 0 for
	success (and QNX doesn't), only -1 for error.
	(Patch from George Refseth <george.refseth@arxi.no>.)

2003-12-10  Larry Jones  <lawrence.jones@eds.com>

	* rcs.c: Cleanup HAVE_MMAP code in preparation for falling back to
	stdio if mmap fails on large files.

2003-12-10  Mark D. Baushke  <mdb@cvshome.org>

	* tag.c (tag_check_valid): Fix typo.
	(Patch from Rob Clevenger <rob@robsite.org>.)

2003-12-09  Derek Price  <derek@ximbiot.com>

	Rewrite code to use promotable write locks to avoid locking more than a
	directory at a time for a full write.

	* cvs.h (lock_tree_for_write): Rename to...
	(lock_tree_promotably): ...this.
	(Simple_Lock_Cleanup): New prototype.
	* lock.c: Remove some unneeded prototypes.  Some function
	reorganization.
	 (struct lock): Make repository const.  Add file1 & file2 to
	track lock names.  Keep track of when repository needs to be freed.
	(promotablelock, global_writelock): New globals.
	(locked_dir, locked_list): Remove unneeded globals.
	(lock_name): Take const args.
	(remove_locks): Update comment.  Move readlock cleanup...
	(Simple_Lock_Cleanup): ...to this new function which also cleans up
	writelocks.
	(Lock_Cleanup): No need to clean up after the obsolete locked_dir &
	locked_list.
	(lock_simple_remove): Use new lock name cache.  Set lock->repository to
	NULL to show locks are removed.  Free repository name when necessary.
	(Reader_Lock): Copy xrepository argument so we do not need to trust the
	caller not to dispose of it.  Use lock name cache.  Factor code to set
	the global readlock variable...
	(set_readlock_name): ...to this new function so it can be used by
	promotable_lock too.
	(readers_exist): Factor common code and make wrapper for...
	(_lock_exists): ...this new function.
	(promotable_exists): Wrapper for _lock_exists().
	(write_lock): Rename to...
	(promotable_lock): ...this and tweak for new behavior.
	(set_writelock_proc): Rename to...
	(set_promotablelock_proc): ...this and tweak for new functionality.
	(Write_Lock): Rename to...
	(Promotable_Lock): ...this and tweak for new functionality.
	(set_lock): Add trace.
	(lock_tree_for_write): Rename to...
	(lock_tree_promotably): ...this and tweak for new functionality.
	(lock_dir_for_write): Lock only one directory at a time in a promotable
	lock aware fashion using new interfaces.
	* admin.c, commit.c, edit.c, watch.c:
	s/lock_tree_for_write/lock_tree_promotably/.
	s/CVS_LOCK_NONE/CVS_LOCK_WRITE/ in calls to start_recursion that used
	to rely on lock_tree_for_write() to obtain their write locks.  Remove
	some unnecessary typecasting.
	* recurse.c (do_recursion): Use Simple_Lock_Cleanup() rather than
	Lock_Cleanup to avoid removing promotable locks.
	* server.c (do_cvs_command): Add traces.
	(server): Add new way to sleep the parent server process for connecting
	a debugger.
	* sanity.sh (lockfiles, multiroot2): Update tests to accomodate minor
	trace inconsistencies.

2003-12-09  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (trace): Remove trace from the set of tests to run.
	The regexps used take an excessive amount of time and need to
	be simplified.

2003-12-08  Mark D. Baushke  <mdb@cvshome.org>

	* rcs.c (rcsbuf_ftell): Rename to...
	(rcsbuf_ftello): this.
	(rcsbuf_cache_open): Use off_t rather than long as the pos
	argument. Use fseeko rather than fseek and ftello rather than
	ftell.
	* rcs.h (struct rcsnode): delta_pos is now an off_t type.

2003-12-03  Derek Price  <derek@ximbiot.com>

	* sanity.sh (recase): Add some clarifying comments.

2003-12-03  Larry Jones  <lawrence.jones@eds.com>

	* expand_path.c (expand_variable): Expand ${CVSROOT} to just the
	directory like it's supposed to be.
	(Reported by Michael S. Tsirkin <cvs1@misha.eml.cc>.)

2003-11-26  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (recase-17sscs): Use ${CVSROOT_DIRNAME} in pattern.

2003-11-26  Derek Price  <derek@ximbiot.com>

	Remove server support for case insensitive clients.  Includes some
	merges from 1.11.x.

	* add.c, client.c, cvs.h, rcs.c, subr.c: Remove unnecessary support for
	case insensitive clients.
	* sanity.sh (tests): Add recase.
	(recase): New test of cases that might be expected to cause problems
	with a heterogeneous mix of case sensitive and case insensitive clients
	and servers.

2003-11-26  Derek Price  <derek@ximbiot.com>

	* sanity.sh (modules3-2): Simplify syntax that may have given Cygwin
	intermittent conniptions.

2003-11-25  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (binfiles2): Correct yet another Cygwin difficulty.

2003-11-25  Derek Price  <derek@ximbiot.com>

	* sanity.sh (release): Perform forgotten cleanup.

2003-11-25  Derek Price  <derek@ximbiot.com>

	* sanity.sh (env): Enable to work with $remotehost.

2003-11-25  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (trace-19): Separate stdout and stderr to workaround
	problems on SGI IRIX.
	(crecrepos): Use 'unset DISPLAY' to avoid problems with ssh
	X11Forwarding configurations.

2003-11-25  Derek Price  <derek@ximbiot.com>

	* sanity.sh (pserver, server, server2): Save $servercvs and use the
	local $testcvs for these tests.

2003-11-25  Derek Price  <derek@ximbiot.com>

	* commit.c (commit_fileproc): Reword comment.

2003-11-25  Derek Price  <derek@ximbiot.com>

	* sanity.sh (devcom3-9ar): Ignore the stderr output since it varies
	considerably between platforms.

2003-11-25  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (CVS_RSH): Read config file sooner to pickup RSH_DFLT
	for use in setting CVS_RSH variable.
	* sanity.config.sh.in (RSH_DFLT): Use new substitution variable.
	* Makefile.am (localcheck, remotecheck): Depend on sanity.config.sh.
	* Makefile.in: Regenerate for new Makefile.am.

	* update.c (join_file): Deal with rev1 == NULL due to rev1 merge tag
	being missing from the current file.
	* sanity.sh (join6): New tests for this case.
	(trace): Renumber test cases.

2003-11-24  Larry Jones  <lawrence.jones@eds.com>

	* diff.c (diff_file_nodiff): use_rev1 does *not* imply that diff_rev1
	is not null, diff_date1 could be set instead (ditto for use_rev2).
	(Reported by <jnelson-cvsbug@jamponi.net>.)

2003-11-24  Mark D. Baushke  <mdb@cvshome.org>

	* client.c (connect_to_forked_server): Avoid passing NULL strings
	to TRACE. Calling printf("%s",NULL) is not defined and may
	segfault on some systems.
	* diff.c (diff_file_nodiff): Ditto.
	* main.c (main): Ditto.
	* modules.c (do_module): Ditto.
	* patch.c (patch_proc): Ditto.
	* rcs.c (RCS_cmp_file): Ditto.
	* recurse.c (start_recursion): Ditto.
	* root.c (parse_cvsroot): Ditto.
	* server.c (dirswitch, server_pathname_check, dirswitch,
	serve_directory):  Ditto.
	* tag.c (rtag_proc, check_fileproc, tag_check_valid): Ditto.
	* sanity.sh (trace): New testcase to test the -t option.
	(RCSDATE, ISODATE, PFMT): New variables in aid of the trace tests.
	(dotest_fail_sort): New function in aid of the trace tests.
	(template): Fix cleanup.

2003-11-24  Derek Price  <derek@ximbiot.com>

	* sanity.sh (modes3): Skip modes3-5 entirely under Cygwin since
	permisions are broken there.  This change removes most of the earlier
	Cygwin differentiation in this test ($cygwin_hack & $cygwin_hack2) in
	favor of skipping the test entirely.

2003-11-24  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Add `-h <hostname>' option to enable testing across a
	:ext: connection to another host.  Warn when `-h' is specified without
	$TESTDIR.  Leave $TESTDIR intact when it looks absolute since it may
	contain symlinks.  Allow $CVS_SERVER to be overridden via the
	environment for `-h'.  Default $CVS_RSH to `ssh'.
	(*): Use $CVS_RSH to perform certain commands on the remote host (esp.
	`ln -s' and `chmod') when `-h' is specified to work around
	incompatibilities with CygWin & Samba.  Add a few other minor
	workarounds for Cygwin bugs.

	(newroot): New function.
	(*): Use newroot when appropriate.

2003-11-21  Larry Jones  <lawrence.jones@eds.com>

	* hash.c (printnode, printlist): Cast %p arguments to void * as
	required by the C standard.

2003-11-21  Larry Jones  <lawrence.jones@eds.com>

	* recurse.c (start_recursion, do_recursion): Cast %p arguments to
	void * as required by the C standard.

2003-11-19  Larry Jones  <lawrence.jones@eds.com>

	* rcs.c (RCS_getrevtime): Add error checking; cleanup.

2003-11-18  Derek Price  <derek@ximbiot.com>

	* socket-client.c (socket_buffer_initialize): Rename poorly named `n'
	to a slightly more descriptive `sbuf'.
	(Suggestion from Larry Jones  <lawrence.jones@eds.com>.)

2003-11-18  Derek Price  <derek@ximbiot.com>

	* socket-client.c (socket_buffer_initialize): Pass in the socket
	closure we allocate.
	(Report from Larry Jones  <lawrence.jones@eds.com>.)

2003-11-18  Derek Price  <derek@ximbiot.com>

	* modules.c (do_module): Reject absolute paths.
	(Report and suggested fix from Tony Hoyle <tmh@nodomain.org>.)

	* sanity.sh (abspath2): Check for the above.
	(spacefiles): Remove tests that expect absolute paths to files in the
	top level repository directory to work.
	(tests): Add abspath2.

2003-11-18  Derek Price  <derek@ximbiot.com>

	* socket-client.c (socket_buffer_initialize): Correct a typo that
	happened to compile.
	(Report and suggested fix from Patrick Brown <BrownP@symbol.com>.)

2003-11-13  Derek Price  <derek@ximbiot.com>

	* rcs.c (RCS_delete_revs): It's `&&', not `and'.

2003-11-13  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Create the empty log to make it easier to tail immediately
	after the script is started.

2003-11-13  Derek Price  <derek@ximbiot.com>

	* sanity.sh (exit_help): Correct help to specify `-H' and not `-h' as
	the help option.

2003-11-13  Derek Price  <derek@ximbiot.com>

	* rcs.c (RCS_delete_revs): Don't use the WOE32 kludge which refuses to
	delete revisions from bvinary files on Cygwin.  I'm not sure what the
	kludge was trying to avoid, but commenting it out causes the test suite
	to pass.

2003-11-12  Derek Price  <derek@ximbiot.com>

	* main.c (main): Remove a trailing newline from the version string.
	Replace multiple calls to fputs to a single call reformated to C89
	specifications.  Remove some typecasts unecessary under C89.
	* sanity.sh (version): Remove trailing newline from the version string.

2003-11-12  Derek Price  <derek@ximbiot.com>

	* add.c (add): Allocate more space for the string I added characters
	to.
	(Report from Mark D. Baushke <mdb@cvshome.org>.)

2003-11-11  Derek Price  <derek@ximbiot.com>

	* add.c (add), classify.c (Classify_File), client.c (update_entries),
	repos.c (Name_Repository): Use consistent quoting in error messages.
	Misc reformatting.
	* sanity.sh: Update to match.

2003-11-10  Derek Price  <derek@ximbiot.com>

	* commit.c (find_fileproc, check_fileproc):  Refuse to remove files
	when the file exists in the sandbox.  This used to cause data loss.
	(Report from Andreas Reifschneider <andyreif@studcs.uni-sb.de>.)

	* sanity.sh (rmadd3): Update to match.  Expand comments.

2003-11-10  Derek Price  <derek@ximbiot.com>

	* sanity.sh (rmadd3): Test the behavior of commit after the
	add/replace.
	(Report from Andreas Reifschneider <andyreif@studcs.uni-sb.de>.)

2003-11-10  Derek Price  <derek@ximbiot.com>

	* sanity.sh (rmadd3): Fix another typo.

2003-11-10  Mark D. Baushke  <mdb@cvshome.org>

	* recurse.c (do_dir_proc): Set xframe.repository to NULL after a
	call to free().

2003-11-10  Derek Price  <derek@ximbiot.com>

	* sanity.sh (rmadd3): Fix typo.

2003-11-10  Derek Price  <derek@ximbiot.com>

	* sanity.sh (rmadd3): New tests that confirms that CVS refuses to
	delete a file it thinks was already removed.
	(Report and test from Andreas Reifschneider
	<andyreif@studcs.uni-sb.de>.)

2003-11-03  Derek Price  <derek@ximbiot.com>

	* sanity.sh (server): Test that the global `-l' option is ignored
	nonfatally.

2003-11-03  Derek Price  <derek@ximbiot.com>

	* server.c (serve_global_option): Warn that -l is being ignored rather
	than exiting fatally due to backwards compatibility complaints from
	administrators.

2003-11-01  Larry Jones  <lawrence.jones@eds.com>

	* filesubr.c (xcmp): Make sure S_ISLNK exists before calling it.
	(Reported by Paul Edwards <kerravon@nosppaam.w3.to>.)

2003-10-31  Derek Price  <derek@ximbiot.com>

	* sanity.sh: s/${TESTDIR}/cvsroot/${CVSROOT_DIRNAME}/.

2003-10-28  Derek Price  <derek@ximbiot.com>

	* sanity.sh (devcom): Renumber tests and use dotest function.

2003-10-28  Derek Price  <derek@ximbiot.com>

	* sever.h: Add the standard copyright notice.

2003-10-28  Derek Price  <derek@ximbiot.com>

	* lock.c: Remove some suggestions which have already been implemented
	or which have become obsolete from the header comment.

2003-10-26  Derek Price  <derek@ximbiot.com>

	* sanity.sh (join6): Fix a few typos in the last test and remove a
	misplaced test.

2003-10-25  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (parseroot): Use dokeep function.

	* sanity.sh (parseroot): Perform this test in a subdirectory.
	It should avoid problems on case-insensitive systems where
	CVSROOT and cvsroot are the same directory (eg, MacOS X).

2003-10-24  Derek Price  <derek@ximbiot.com>

	* update.c (join_file): Restore the optimization Mark recently removed,
	but fix it.  Move one other optimization up since it needs to be
	checked for first.  Add bew status messages like merge_file produces
	when the requested diff has already been applied to the destination.
	Expand header comment.
	* sanity.sh (join6): Add tests for the new error messages.
	(import-113, join-admin-2, diffmerge1): Fix collateral damage.

2003-10-24  Derek Price  <derek@ximbiot.com>

	* update.c (merge_file): Optimize & eliminate code.

2003-10-24  Derek Price  <derek@ximbiot.com>

	* recurse.c (do_recursion): Assert that ignoring the return value of
	Name_Repository is not a memory leak.

2003-10-24  Derek Price  <derek@ximbiot.com>

	* repos.c (Name_Repository): Replace a FIXME with the improved error
	message it requested.
	* sanity.sh (errmsg3): New test for the above.

2003-10-24  Derek Price  <derek@ximbiot.com>

	* patch.c (patch_proc): Avoid memory leak.
	(Patch from Mark D. Baushke  <mdb@cvshome.org>.)
	(patch_proc): Reformat a few long lines for readability.

2003-10-24  Derek Price  <derek@ximbiot.com>

	* vers_ts.c (Version_TS): Move variable declaration inside the only
	block where it is used and remove uneeded reinitialization.

2003-10-24  Derek Price  <derek@ximbiot.com>

	* server.h: s/^extern// off of function declarations per HACKING.
	Reformat protos for readability.

2003-10-24  Derek Price  <derek@ximbiot.com>

	* vers_ts.c (Version_TS): Reformat declaration and expand header
	comment.

2003-10-24  Derek Price  <derek@ximbiot.com>

	* update.c (merge_file): Remove code that hasn't been used since CVS
	used an external RCS (1.9.something).

2003-10-23  Mark D. Baushke  <mdb@cvshome.org>

	* update.c (join_file): Do the -jrev1 -jrev2 merge even when
	the file is already at rev2.
	* sanity.sh (join6): New testcase for above.
	(Suggested by Paul Edwards, from somewhere in Australia.)
	(import): Fix collateral damage.

2003-10-23  Derek Price  <derek@ximbiot.com>

	* sanity.sh (fail): Refer the user to the `TESTS' and `check.log' files
	on failure.

2003-10-22  Derek Price  <derek@ximbiot.com>

	* recurse.c (start_recursion): Reformat function declaration and
	expand comments.
	(Original patch from Terrence Enger <tenger@iSeries-guru.com>.)

2003-10-22  Derek Price  <derek@ximbiot.com>

	* Makefile.am (cvs_LDADD): Add $(LIBINTL) for gettext.
	* Makefile.in: Regenerated.

2003-10-19  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (admin-31): Fix more typos.

2003-10-18  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (admin): Fix a typo.

	* admin.c (admin_fileproc): Restore the ':' character in the
	-mtag:message admin argument even if the tag does not exist so
	that other files with the tag will be found. Also, be more
	paranoid that a symbolic tag actually points to a version that
	exists.
	(Reported by Rodolfo Schulz de Lima <rodolfo@rodsoft.org>.)
	* sanity.sh (admin): Test these changes.

2003-10-17  Mark D. Baushke  <mdb@cvshome.org>

	* admin.c (admin_fileproc): Force tag match on admin
	-mversion:message rather than altering the wrong log message.
	(Patch from "Rodolfo Schulz de Lima" <rodsoft@uol.com.br>.)
	* sanity.sh (admin): Test case for it.

2003-10-15  Larry Jones  <lawrence.jones@eds.com>

	* commit.c (commit_fileproc, finaladd): Don't call fixaddfile()
	if the RCS file didn't get created at all.
	(Reported by David Wood <David.Wood@thestreet.com>.)

2003-10-14  Derek Price  <derek@ximbiot.com>

	Port to pedantic POSIX 1003.1-2001 hosts, such as Debian GNU/Linux
	testing with _POSIX2_VERSION=200112 in the environment.

	* sanity.sh: Use 'sed 1q', not 'head -1'.
	(Patch from Paul Eggert <eggert@twinsun.com>.)

2003-10-10  Derek Price  <derek@ximbiot.com>

	* lock.c (set_lock): Clarify comment.

2003-10-11  Larry Jones  <lawrence.jones@eds.com>

	* server.c (server_cleanup): Replace CVS_CHDIR call: some systems
	won't allow you to delete a directory tree containg your working
	directory.

2003-10-10  Derek Price  <derek@ximbiot.com>

	* server.c (cvs_output, cvs_outerr): Protect calls to syslog()
	with the usual preprocessor condition: HAVE_SYSLOG_H.
	(Original patch from Terrence Enger <tenger@iSeries-guru.com>.)

2003-10-09  Derek Price  <derek@ximbiot.com>

	* cvs.h: s/^extern// off of function declarations per HACKING.

2003-10-08  Derek Price  <derek@ximbiot.com>

	* Makefile.am (cvs_SOURCES): Add history.h.
	* history.c: Include history.h.  Add the `P' record types to more
	comments. s/ALL_REC_TYPES/ALL_HISTORY_REC_TYPES/.
	(usage): Reference ALL_HISTORY_REC_TYPES rather than using a separate
	string literal.
	(report_hrecs): Handle `P' record type.
	(ALL_REC_TYPES): Rename and move...
	* history.h (ALL_HISTORY_REC_TYPES): ...here.
	* mkmodules.c: Include history.h.
	(config_contents): Update contents of and references to LogHistory
	records to use ALL_HISTORY_REC_TYPES.
	* sanity.sh (basic2-64): Update to include history records of type `P'.

	* Makefile.in: Regenerated.

2003-10-08  Derek Price  <derek@ximbiot.com>

	* update.c (patch_file): Correct spelling and punctuation in comment.
	Update some lines to fit in 80 characters.

2003-10-08  Derek Price  <derek@ximbiot.com>

	* lock.c (remove_locks): Copy global struct and set status variable to
	NULL before calling disposal functions that might try to access it
	during calls to error(1,...).

2003-10-08  Larry Jones  <lawrence.jones@eds.com>

	* history.c (history): Don't conflate -e with -x since the client's
	idea of what -e means may not match the server's.
	(Reported by Frank Hemer <frank@hemer.org>.)

2003-10-08  Derek Price  <derek@ximbiot.com>

	* lock.c (Lock_Cleanup), rcs.c (rcs_cleanup), server.c
	(server_cleanup): Expand comments about the never_run_again variable
	and its interoperation with critical sections, exit, and interrupts.

2003-10-08  Derek Price  <derek@ximbiot.com>

	* lock.c (remove_locks): Reduce TRACE level since this function is
	rarely called and we can usually rely on tracing higher level
	functions.

2003-10-08  Derek Price  <derek@ximbiot.com>

	* lock.c (lock_name, lock_simple_remove),
	server.c (server_pathname_check, dirswitch): Add TRACE.

2003-10-08  Derek Price  <derek@ximbiot.com>

	* main.c: Reformat header comment to fit in 80 chars.

2003-10-08  Larry Jones  <lawrence.jones@eds.com>

	* sanity.sh: Use dotest_fail instead of dotest_status for diff tests
	since CVS only returns success/fail rather than 0/1/2 like diff does.

2003-10-08  Derek Price  <derek@ximbiot.com>

	Fix a client/server bug introduced via the data loss fix of 2003-03-17.
	Basically, the server was reporting ambiguous filename requests when it
	should have been trusting the user to type the intended case or using
	the case the client preserved in CVS/Entries before it tried to look
	anything up in case insensitive mode.

	* rcs.c (locate_rcs): Use the filename exactly as cased before
	investigating a case insensitive lookup, per the client/server protocol
	specification.  Expand comments.
	* subr.c (locate_file_in_dir): This function only needs to locate files
	case insensitively.  Expand comments.
	* cvs.h (locate_file_in_dir): Only prototype when servers which need to
	handle case insensitivity are being compiled.

2003-10-08  Derek Price  <derek@ximbiot.com>

	* rcs.c (locate_rcs): Declare static.  Move to an earlier location in
	file to avoid prototyping.
	* rcs.h (locate_rcs): Remove proto.

2003-10-08  Derek Price  <derek@ximbiot.com>

	* lock.c (lock_filesdoneproc): Reformat long function prototype.

2003-10-07  Larry Jones  <lawrence.jones@eds.com>

	* server.c (server_cleanup): Remove old code that was commented out
	with //, which isn't valid in C.

2003-10-04  Derek Price  <derek@ximbiot.com>

	* exithandle.c: New file.
	* Makefile.am (cvs_SOURCES): Add exithandle.c.
	* cvs.h (cleanup_register, signals_register): New prototypes.
	* lock.c (Lock_Cleanup, remove_locks), rcs.c (rcs_cleanup),
	server.c (server_cleanup): Avoid calling twice when called from a
	signal handler and then exit.  Avoid being interrupted while globals
	that the signal handler might touch are in inconsistent states.  Expand
	comments.
	* rcs.c (rcs_internal_lockfile): Ditto. Use cleanup_register rather
	than calling atexit() directly.
	* main.c (main): Consolidate signal stuff into a call to
	signals_register().  Call cleanup_register to register cleanup
	functions rather than calling atexit() directly.

	* Makefile.in: Regenerated.

2003-10-04  Derek Price  <derek@ximbiot.com>

	* error.c, error.h: Remove error_exit() function.
	* add.c, client.c, history.c, import.c, main.c, mkmodules.c, modules.c,
	rcscmds.c, recurse.c, release.c, root.c, server.c, socket-client.c,
	tag.c, update.c: s/\<error_exit *();$/exit (EXIT_FAILURE);/.  Remove
	related comments.

2003-10-04  Derek Price  <derek@ximbiot.com>

	* buffer.c: Reformat a few long function prototypes and lines.

2003-10-04  Derek Price  <derek@ximbiot.com>

	* hash.c (dellist): Immediately set input pointers to NULL in case they
	are references to global variables which might be accessed by interrupt
	handlers.

2003-10-04  Derek Price  <derek@ximbiot.com>

	* rcs.c (rcs_cleanup): Declare static.
	* rcs.h (rcs_cleanup): Remove prototype.

2003-10-03  Derek Price  <derek@ximbiot.com>

	Move calls to Lock_Cleanup to the atexit handler.

	* commit.c (commit): Don't call Lock_Cleanup on error exit.
	* error.c (error_exit): Don't call Lock_Cleanup.
	* lock.c (Lock_Cleanup): Don't worry about recursive calls now that we
	are using atexit for calls on exit.  Dispose locklist storage after the
	locks are removed.  Expand comments.
	* main.c (main): Move Lock_Cleanup call into atexit(Lock_Cleanup).
	* server.c (server_notify): Add TRACE.

2003-10-03  Derek Price  <derek@ximbiot.com>

	* recurse.c (start_recursion): Remove unnecessary typecasts.
	(do_recursion): Ditto.  Add TRACE.  Expand comments.  Remove unneeded
	parens.

2003-10-03  Derek Price  <derek@ximbiot.com>

	* main.c (main): Dispose of old Tmpdir and Editor when specified
	multiple times between the command line & the ~/.cvsrc file.

2003-10-03  Derek Price  <derek@ximbiot.com>

	* lock.c (remove_locks): Eliminate unecessary typecasting.

2003-10-03  Derek Price  <derek@ximbiot.com>

	Move calls to rcs_cleanup to the atexit handler.

	* error.c (error_exit): Don't call rcs_cleanup.
	* rcs.c: Initialize global RCS_LOCKFILE to NULL.
	(rcs_internal_lockfile): Use atexit (rcs_cleanup) rather than
	setting up signal handlers.

2003-10-03  Derek Price  <derek@ximbiot.com>

	* modules.c (do_module): Format prototype.

2003-10-03  Derek Price  <derek@ximbiot.com>

	* server.c (server_cleanup): Skip BUF_TO_NET checks as an optimization
	when ERROR_USE_PROTOCOL is set.

2003-10-03  Derek Price  <derek@ximbiot.com>

	* modules.c (do_module): Use TRACE.

2003-10-02  Derek Price  <derek@ximbiot.com>

	* main.c (main): Don't free globals that might be needed by the cleanup
	functions.
	* server.c (server_cleanup): Only clean up when called in the parent
	process.  Set buffers to NULL before shutting down and freeing in case
	we are interrupted.  Improve comments.  Add TRACE.

2003-10-01  Derek Price  <derek@ximbiot.com>

	* main.c (main): Use symbolic name for trace level.

2003-10-01  Derek Price  <derek@ximbiot.com>

	* client.c (connect_to_forked_server): Use TRACE macro rather than the
	old style.

2003-10-01  Derek Price  <derek@ximbiot.com>

	* server.c (protocol): Initialize the protocol buffer to NULL so that
	use before initialization may be detected.
	(cvs_output, cvs_outerr): Syslog messages when the appropriate buffers
	are not available.
	(server_cleanup): Reorganize for a single exit point and to eliminate
	duplicated code.  Set buf_to_net to NULL before calling the buffer
	shutdown functions in order to force error messages into the syslog.
	* buffer.c (stdio_buffer_close): Remove FIXME comment re syslog since
	the calls to error should go through the cvs_outerr function anyhow.

2003-09-30  Derek Price  <derek@ximbiot.com>

	* entries.c (WriteTemplate): TRACE on entrance to a function, not exit.
	Don't worry about checking noexec without server support since this
	function will then do nothing.

2003-09-30  Derek Price  <derek@ximbiot.com>

	* update.c (do_update): Reformat function decl.  Move and merge
	comment.

2003-09-30  Derek Price  <derek@ximbiot.com>

	* client.h (buf_output, buf_outerr): Check that our buffers exist
	before sending them data.
	(buf_output_binary): Assert that the output buffer is not NULL.

2003-09-30  Derek Price  <derek@ximbiot.com>

	* client.h, rcs.c, rcs.h, server.h: Assume __STDC__ since it is
	defined as part of the C89 spec.

2003-09-30  Derek Price  <derek@ximbiot.com>

	* commit.c (commit): Optimize function towards a single exit point.

2003-09-30  Derek Price  <derek@ximbiot.com>

	* error.c (error_exit): Remove call to SYSTEM_CLEANUP.
	* main.c (main): Set up atexit(SYSTEM_CLEANUP) rather than calling it
	explicitly before exit.
	* server.c (pserver_authenticate_connection): Don't call SYSTEM_CLEANUP
	before exiting.

2003-09-30  Derek Price  <derek@ximbiot.com>

	* error.c (exit_error): Remove call to server_cleanup.
	* main.c (main): Call atexit(server_cleanup).  Let server_cleanup turn
	server_active off.
	* server.c (server_cleanup): Don't require an argument.  Fill out
	header comment.  Unset server_active when done.
	(server): Don't call server_cleanup - let it be called via the atexit
	handler.
	* server.h (server_cleanup): Update proto.

2003-09-30  Derek Price  <derek@ximbiot.com>

	* server.c (buf_output): Don't check that the buffers exist before
	using them since cvs_outerr does this without problems.

2003-09-30  Derek Price  <derek@ximbiot.com>

	* server.c: Remove some unecessary function prototypes.

2003-09-29  Derek Price  <derek@ximbiot.com>

	* rcs.c (make_file_label): Make a failure to stat a file a fatal error
	since it signals that a later read will also fail.

2003-09-29  Derek Price  <derek@ximbiot.com>

	* diff.c (diff_fileproc): Optimize the check for labels set by the
	user.

2003-09-26  Derek Price  <derek@ximbiot.com>

	* diff.c (diff): Add a FIXME re spaces in diff arguments.

2003-09-25  Mark D. Baushke  <mdb@cvshome.org>

	* rcs.c (make_file_label): Do not return an uninitialized label.
	(Reported by "Todd C. Miller" <Todd.Miller@courtesan.com>)

2003-09-24  Derek Price  <derek@ximbiot.com>

	* lock.c (lock_name): Remove useless prototype.

2003-09-12  Derek Price  <derek@ximbiot.com>

	* sanity.sh (mkmodules): Correct comments.

2003-09-12  Derek Price  <derek@ximbiot.com>

	* mkmodules.c (mkmodules): Do not pass a string which came from the
	checkoutlist file directly to error as a format string since we don't
	want to trust any user with access to checkoutlist with creating printf
	format strings.  I already claimed I did this in the NEWS file.
	(Thanks to Larry Jones for spotting my mistake.)
	* sanity.sh (mkmodules): Test for the above.

2003-09-12  Derek Price  <derek@ximbiot.com>

	* mkmodules.c (checkoutlist_contents): Document the optional portions
	of this file format more accurately.
	(mkmodules): Ditto, in comments.  Fix bug that always failed to ignore
	whitespace before error messages.
	* sanity.sh (mkmodules-temp-file-removal): Rename to...
	(mkmodules): ...this and add a test of the checkoutlist error message.
	Add cleanup step to restore checkoutlist.

2003-09-08  Derek Price  <derek@ximbiot.com>

	* filesubr.c (cvs_temp_file): Replace a chmod 0600, which shouldn't
	really be necessary and which provided a false sense of security, with
	an informative comment.
	(Thanks to Paul Eggert <eggert@cs.ucla.edu> for his educational
	advice.)

2003-08-29  Derek Price  <derek@ximbiot.com>

	* cvs.h: Delete reference to CVSADMROOT_EDITINFO.
	* logmsg.c (editinfo_proc): Delete function and proto.
	(do_editor): Don't look for editinfo script.
	* mkmodules.c (editinfo_contents): Delete.
	* sanity.sh (*): Remove references to editinfo in updates of the
	CVSROOT module.

2003-08-29  Derek Price  <derek@ximbiot.com>

	* remove.c (cvsremove): Update quotes for consistency.

2003-08-27  Larry Jones  <lawrence.jones@eds.com>

	* history.c: 'P' is a valid record type and has been for a long time.
	Add it to the comments, usage message, and, most important,
	ALL_REC_TYPES so it gets recorded by default.
	* server.c (do_cvs_command): Set global command_name to the real
	command name rather than leaving it set to "server".
	* sanity.sh: Update to match.
	(Reported by Dmitry Ryzhkov <rdim_outside@softhome.net>.)

2003-08-19  Derek Price  <derek@ximbiot.com>

	* filesubr.c (cvs_temp_file): Expand comments.  Check for glibc version
	before compiling chmod command.  Remove FIXME to this effect.

2003-08-19  Derek Price  <derek@ximbiot.com>

	* logmsg.c (do_editor): Use cvs_temp_file rather than cvs_temp_name to
	create and open the temporary file.  Remove FIXME to this effect.

2003-08-19  Derek Price  <derek@ximbiot.com>

	* logmsg.c (do_editor): Move editinfo processing to before creation of
	the temp file so that it may be skipped when no editor is defined.
	Remove related FIXME.  Add comments.  Remove some processing of
	editinfo_editor rendered obsolete when editinfo_editor ceased to be a
	global.

2003-08-19  Derek Price  <derek@ximbiot.com>

	* (*.c): Move some includes to lib/system.h.

2003-08-18  Derek Price  <derek@ximbiot.com>

	* add.c (add): Use consistent quoting style in user messages.
	* sanity.sh (*): Ditto.

2003-08-13  Larry Jones  <lawrence.jones@eds.com>

	* server.c (server_cleanup): Don't shutdown buf_from_net if it's
	null.
	(Reported by Scott Mitchell <scott@fishballoon.org>.)

2003-08-03  Mark D. Baushke  <mdb@cvshome.org>

	* lock.c: Do not include xtime.h (already included via system.h).
	* subr.c: Ditto.
	(Original patch from Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
	to fix IRIX 5.3 problem.)

2003-08-01  Derek Price  <derek@ximbiot.com>

	* sanity.sh (join5): Use $SPROG rather than $PROG.

2003-08-01  Derek Price  <derek@ximbiot.com>

	* sanity.sh (join5): Use $PROG consistently and escape a `.'.

2003-08-01  Derek Price  <derek@ximbiot.com>

	* sanity.sh (join5): Use `[a-z]*' as opposed to `update'.

2003-07-31  Derek Price  <derek@ximbiot.com>

	* rcscmds.c (RCS_merge): Pass `--' before the filename arguments to
	diff so that filenames starting with `-' can be merged.
	* sanity.sh (join5): New test for same.

2003-07-31  Derek Price  <derek@ximbiot.com>

	* add.c (add_directory): Don't print status information in really_quiet
	mode.

2003-07-29  Derek Price  <derek@ximbiot.com>

	* commit.c (checkaddfile): Simplify the logic here, using assumptions
	already made later in the function to remove calls to locate_rcs and
	some conditionals.  Use same assumptions to remove some variables.

2003-07-29  Derek Price  <derek@ximbiot.com>

	* login.c: Remove GETPASS & HAVE_GETPASSPHRASE cruft in favor of always
	using the GNULIB getpass since the system getpass was removed from the
	POSIX.2 specification.

2003-07-28  Derek Price  <derek@ximbiot.com>

	* subr.c (strip_trailiing_newlines): Use size_t rather than int to
	count string length.
	(Suggestion from Paul Edwards, who provides a broken return email
	address in Tonga.  I believe he is actually from Australia.)

2003-07-28  Derek Price  <derek@ximbiot.com>

	* checkout.c (checkout): Remove out-of-date comment about Checkin.prog
	and Update.prog.

2003-07-25  Derek Price  <derek@ximbiot.com>

	* rcs.c (RCS_parsercsfile): Declare rcsfile argument as const.
	* rcs.h (RCS_parsercsfile): Update prototype to match.
	* commit.c (fixaddfile): Accept a single path to an rcs file as an
	argument rather than trying to look it up again when it is not
	necessary.

2003-07-25  Derek Price  <derek@ximbiot.com>

	* commit.c (finaladd): But don't free variables we no longer allocate.

2003-07-25  Derek Price  <derek@ximbiot.com>

	* checkin.c (Checkin): The rcs argument is unecessary since we know
	that the parsed RCS data always exists as part of finfo by the time
	this function gets called.
	* commit.c (commit_fileproc, finaladd):  Use new Checkin() API.
	* cvs.h (Checkin): Update prototype.

2003-07-25  Derek Price  <derek@ximbiot.com>

	* subr.c (strip_trailing_newlines): Check len b4 str[len] to avoid
	exceeding the array bounds when the string length == 0.
	(Report from John Tytgat <JoTy@esko-graphics.com>.)

2003-07-25  Derek Price  <derek@ximbiot.com>

	* subr.c (strip_trailing_newlines): Generalize this function to watch
	len so that it cannot walk past the beginning of the string passed in.
	(Report from John Tytgat <JoTy@esko-graphics.com>.)

2003-07-25  Derek Price  <derek@ximbiot.com>

	* subr.c (strip_trailing_newlines): Leave the K&R function decl on this
	branch.

2003-07-25  Derek Price  <derek@ximbiot.com>

	* cvs.h (strip_trailing_newlines): Update prototype.
	* subr.c (strip_trailing_newlines): Return true when newlines are
	removed.
	* server.c (pserver_authenticate_connection): Don't give a DOS attack a
	chance to authenticate accidentally because I like to be paranoid.
	* sanity.sh (pserver): New test for same.

2003-07-24  Mark D. Baushke  <mdb@cvshome.org>

	* server.c (check_system_password): Cleanup pam_* return code
	checking. (Original patch from Brian Murphy <brian@murphy.dk>.)

2003-07-24  Derek Price  <derek@ximbiot.com>

	* main.c: But the GNULIB gethostname accepts an int not ssize_t.

2003-07-24  Derek Price  <derek@ximbiot.com>

	* main.c: Don't declare gethostname when we already have it to avoid
	decl conflicts.

2003-07-24  Derek Price  <derek@ximbiot.com>

	* server.c (server_directory): Add a TRACE for OS X debugging.

2003-07-23  Derek Price  <derek@ximbiot.com>

	* client.c: Avoid some warning from gcc -Wall.
	* lock.c: Ditto.
	* login.c: Ditto.
	* modules.c: Ditto.
	* server.c: Ditto.

2003-07-23  Derek Price  <derek@ximbiot.com>

	* filesubr.c (isaccessible): Correct some double const warnings from
	protoize.
	* login.c (password_entry_parseline): Ditto.
	* server.c (kserver_authenticate_connection): Remove a multi-line
	string along with the warning from GCC.

2003-07-23  Derek Price  <derek@ximbiot.com>

	* *.{c,h}: Back out the indent run.

2003-07-23  Derek Price  <derek@ximbiot.com>

	* cvs.h: Move some includes into lib/system.h.

2003-07-23  Derek Price  <derek@ximbiot.com>

	* *.{c,h}: Run these through GNU indent as per the NEWS file to fix
	some of the long function decls which came out of protoize.

2003-07-23  Derek Price  <derek@ximbiot.com>

	* *.c: Run these through GCC's protoize to convert the pre-ANSI C
	function decls to C89 compliance.

2003-07-22  Derek Price  <derek@ximbiot.com>

	* cvs.h: Remove support for the PTR macro, since we can assume void *
	under C89.  It also was not being made use of in very many places so
	even most K&R compilers must have supported it, or nobody was using
	K&R compilers.  We can also assume <stdarg.h> under C89, but move the
	include...
	* error.c: ...here, de-macro VA_START, and...
	* subr.c: ...put a copy here too, as well as de-macroing VA_START.
	* history.c: s/PTR /void */g;
	* modules.c: Ditto.

2003-07-22  Derek Price  <derek@ximbiot.com>

	* cvs.h: Include GNULIB exit.h.

2003-07-20  Derek Price  <derek@ximbiot.com>

	* server.c: Add PAM support.
	(cvs_pam_userinfo): New data type for PAM conversations.
	(cvs_pam_conv): New function.
	(check_password): Add PAM support.
	(Original patch from Brian Murphy <brian@murphy.dk>.)

2003-07-20  Derek Price  <derek@ximbiot.com>

	* wrapper.c: Remove mention of obsolete -f and -t wrapper options from
	a comment.

2003-07-18  Derek Price  <derek@ximbiot.com>

	* sanity.sh (release): Add new tests for release with unrecognized
	recognized directories.

2003-07-18  Derek Price  <derek@ximbiot.com>

	* vers_ts (Version_TS): Don't allow command line keyword expansion
	modes to override binary mode.
	* sanity.sh (): Tests for the above.
	(Original patch from Dieter Maurer <dieter@handshake.de>.)

2003-07-16  Derek Price  <derek@ximbiot.com>

	* add.c: s/PROTO//.
	* admin.c: Ditto.
	* annotate.c: Ditto.
	* buffer.c: Ditto.
	* buffer.h: Ditto.
	* checkout.c: Ditto.
	* classify.c: Ditto.
	* client.c: Ditto.
	* client.h: Ditto.
	* commit.c: Ditto.
	* cvs.h: Ditto.
	* diff.c: Ditto.
	* edit.c: Ditto.
	* edit.h: Ditto.
	* entries.c: Ditto.
	* error.c: Ditto.
	* error.h: Ditto.
	* expand_path.c: Ditto.
	* fileattr.c: Ditto.
	* fileattr.h: Ditto.
	* filesubr.c: Ditto.
	* find_names.c: Ditto.
	* gssapi-client.c: Ditto.
	* gssapi-client.h: Ditto.
	* hardlink.h: Ditto.
	* hash.c: Ditto.
	* hash.h: Ditto.
	* history.c: Ditto.
	* import.c: Ditto.
	* kerberos4-client.h: Ditto.
	* lock.c: Ditto.
	* log-buffer.c: Ditto.
	* log-buffer.h: Ditto.
	* log.c: Ditto.
	* login.c: Ditto.
	* logmsg.c: Ditto.
	* mkmodules.c: Ditto.
	* modules.c: Ditto.
	* myndbm.c: Ditto.
	* myndbm.h: Ditto.
	* patch.c: Ditto.
	* rcs.c: Ditto.
	* rcs.h: Ditto.
	* rcscmds.c: Ditto.
	* recurse.c: Ditto.
	* release.c: Ditto.
	* remove.c: Ditto.
	* root.c: Ditto.
	* rsh-client.h: Ditto.
	* run.c: Ditto.
	* server.c: Ditto.
	* server.h: Ditto.
	* socket-client.c: Ditto.
	* socket-client.h: Ditto.
	* status.c: Ditto.
	* subr.c: Ditto.
	* tag.c: Ditto.
	* update.c: Ditto.
	* update.h: Ditto.
	* vers_ts.c: Ditto.
	* watch.c: Ditto.
	* watch.h: Ditto.
	* wrapper.c: Ditto.
	* zlib.c: Ditto.

2003-07-16  Derek Price  <derek@ximbiot.com>

	* cvs.h: Include pathmax.h.

2003-07-16  Derek Price  <derek@ximbiot.com>

	* myndbm.c: Use the GNU getdelim function rather than our package
	getstr.
	* server.c: Use the (hopefully) GNULIB and more appropriately named
	getnline function rather than our getline_safe function.

2003-07-12  Larry Jones  <lawrence.jones@eds.com>

	* sanity.sh (diffnl): New tests for diff on files with no newline
	at end.
	(Patch from Andrew Moise <chops@demiurgestudios.com>.)

2003-07-11  Larry Jones  <lawrence.jones@eds.com>

	* Makefile.am (cvs_DEPENDENCIES): Include the libraries.
	* Makefile.in: Regenerated.

	* diff.c (diff_file_nodiff): Fix -Wall complaints.
	* log.c (rlog_proc): Ditto.
	* rcs.c (RCS_setlocalid): Ditto.
	* recurse.c (start_recursion): Handle null repository_in in TRACE.

2003-07-09  Larry Jones  <lawrence.jones@eds.com>

	* sanity.sh: Use ${CPROG} instead of ${PROG} so that changes merged
	from cvs1-11-x-branch without updating won't appear to work.

	* sanity.sh (keywordexpand): Use ${SPROG} instead of ${PROG} as
	required.

	* add.c (add): Update "re-adding" message to have quotes around
	the file name like all the other similar messages.
	* sanity.sh: Update to match.

	* update.c (join_file): Handle locally removed but not yet committed
	files.
	(Reported by Larry Lords <LordsLL@ldschurch.org>.)
	* sanity.sh (join, join4): New tests for above.

2003-06-28  Larry Jones  <lawrence.jones@eds.com>

	* commit.c (fixaddfile): Bail out if locate_rcs() fails.  Make
	parameters const.

	* add.c (add): Fix -Wall complaints.
	* diff.c (diff_file_nodiff): Ditto.
	* filesubr.c (cvs_casecmp): Ditto.
	* patch.c (patch_fileproc): Ditto.
	* rcs.c (RCS_cmp_file): Ditto.
	* root.c (parse_cvsroot): Ditto.
	* subr.c (locate_file_in_dir): Ditto.
	* cvs.h (cvs_casecmp, locate_file_in_dir): Update prototypes.

2003-06-27  Larry Jones  <lawrence.jones@eds.com>

	* lock.c (readers_exist): Use LockDir rather than always looking
	in the repository.
	(Original patch from Robert Ambalu <Robert.Ambalu@gs.com>.)
	Remove vestigial lock promotion code.

2003-06-27  Derek Price  <derek@ximbiot.com>

	* checkout.c (safe_location): Don't try and print from a NULL pointer.
	(Report and original patch from Sampo Kellomaki <sampo@symlabs.com>.)

2003-06-26  Larry Jones  <lawrence.jones@eds.com>

	* hash.c (sortlist): Avoid crash when list is null.

2003-06-23  Derek Price  <derek@ximbiot.com>

	* patch.c (patch_fileproc): Output revision number of the original
	revision in the removed case.
	(Idea from Paul Edwards <kerravon@w3.to>.)

	* sanity.sh (rdiff-add-remove-nodiff): Rename to...
	(rdiff-short): ...this.  Test for the above changes.  Add some tests
	for when rev2 defaults to the trunk.  Expand comments.

2003-06-23  Derek Price  <derek@ximbiot.com>

	* client.c: Reapply Alexey's changes to client.c from three commits
	back they were left out of the diff.

2003-06-23  Derek Price  <derek@ximbiot.com>

	* add.c (add): Fix xmalloc's strlen() of wrong variable.
	* checkout.c (safe_location): leak: reused where_location without free.
	* log.c (rlog_proc): leak: free where before exit.
	* logmsg.c (do_verify): leak: free verifymsg_script before exit.
	(Original patch from Kenneth Lorber <keni@his.com>.)

2003-06-23  Derek Price  <derek@ximbiot.com>

	* client.c: Remove silly comment.
	(Patch from Alexey Mahotkin  <alexm@hsys.msk.ru>.)

2003-06-23  Derek Price  <derek@ximbiot.com>

	* kerberos4-client.h, kerberos4-client.c, client.c: Rename
	start_tcp_server() to start_kerberos4_server().
	(Patch from Alexey Mahotkin  <alexm@hsys.msk.ru>.)

2003-06-20  Derek Price  <derek@ximbiot.com>

	* kerberos-client.c, kerberos-client.h, client.c: Split out
	Kerberos 4 code to separate files.

	* Makefile.am: Mention new files.
	(Patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

	* Makefile.in: Regenerated.

2003-06-16  Derek Price  <derek@ximbiot.com>

	* cvs.h: Comment an #endif.

2003-06-13  Derek Price  <derek@ximbiot.com>

	* filesubr.c (cvs_temp_name): Remove portability cruft obsoleted by the
	import of GNULIB's mkstemp().

2003-06-13  Derek Price  <derek@ximbiot.com>

	* subr.c (file_has_conflict): Fix comment.
	(Patch from Paul Edwards <kerravon@w3.to>.)

2003-06-13  Derek Price  <derek@ximbiot.com>

	* subr.c (xrealloc): Trivial comment fix.
	(Patch from Kenneth Lorber <keni@his.com>.)

2003-06-13  Derek Price  <derek@ximbiot.com>

	* diff.c (diff_fileproc): Fix memory leak.
	(Patch from Kenneth Lorber <keni@his.com>.)

2003-06-12  Derek Price  <derek@ximbiot.com>

	* root.c (parse_cvsroot, local_cvsroot): Parse trailing '/'s off the
	end of cvsroots.  Make arguments const.
	* cvs.h: Update prototypes to match.
	(Idea from Miles Zarathustra <shiva@aranyaka.org>.)

2003-06-12  Derek Price  <derek@ximbiot.com>

	* checkout.c (safe_location): Fix memory leak.
	(Patch from Kenneth Lorber <keni@his.com>.)

2003-06-11  Larry Jones  <lawrence.jones@eds.com>

	* filesubr.c (xresolvepath): Fix memory leak.
	(Original patch from Kenneth Lorber <keni@his.com>.)

2003-06-11  Derek Price  <derek@ximbiot.com>

	* commit.c: Change Parse_Info calling convention to include void *
	suggested in HACKING file and generalize all argument to opt.
	* cvs.h: update defs for Parse_Info and its callproc.
	* edit.c: Change Parse_Info calls for new calling convention.
	* logmsg.c: Ditto.
	* parseinfo.c: Change Parse_Info for new calling convention.
	* server.c: Change Parse_Info calls for new calling convention.
	* tag.c: Ditto.
	(Original patch from Ken Lorber <keni@his.com>.)

2003-06-11  Derek Price  <derek@ximbiot.com>

	* Makefile.in: Regenerate for new configure.in.

2003-06-11  Larry Jones  <lawrence.jones@eds.com>

	* sanity.sh: Change warning messages to note that defective tools
	can result in defective results, both pass and fail.  Also change
	"which" to "that" for errant grammar pedants.

2003-06-10  Derek Price  <derek@ximbiot.com>

	* recurse.c (start_recursion): Avoid unneeded allocation.

2003-06-10  Mark D. Baushke  <mdb@gnu.org>

	* rcs.c (RCS_setlocalid,RCS_setincexc): New functions to support
	LocalKeyword and KeywordExpand config keywords.

	* rcs.h (RCS_setlocalid,RCS_setincexc): New prototypes.

	* parseinfo.c (parse_config): Added LocalKeyword
	and KeywordExpand keywords.

	* sanity.sh (keywordexpand): New CVSROOT/config tests for
	LocalKeyword and KeywordExpand options.

2003-06-09  Derek Price  <derek@ximbiot.com>

	* rcs.c (RCS_delete_revs): Reference WOE32 rather than WIN32 in
	accordance with the GNU convention to avoid implying that we consider
	the Microsoft Windows Operating Environment any sort of "win".

2003-06-09  Derek Price  <derek@ximbiot.com>

	* filesubr.c (cvs_temp_file): Tidy a comment.

2003-06-09  Derek Price  <derek@ximbiot.com>

	* patch.c (patch_fileproc): Don't assume the content of files is
	different just because the revision number is different.
	* sanity.sh (rdiff-add-remove-nodiff): New tests for the above.
	(Report & original patches from Paul Edwards <kerravon@w3.to>.)

2003-06-04  Derek Price  <derek@ximbiot.com>

	* cvs.h (locate_file_in_dir): New proto.
	(locate_rcs): Move proto...
	* rcs.h: ...here.
	* filesubr.c (locate_rcs): Move function...
	* rcs.c: ...here for Windows.
	* filesubr.c (locate_file_in_dir): Move function...
	* subr.c: ...here for Windows.

2003-06-02  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Add comments re portability of test -x & test -e.  Don't
	bother with quotes in arguments to test when we have laready checked
	the variables for empty content.

2003-06-02  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Don't use `test -x' since BSD 4.3 doesn't like it.  Minor
	reorganization for clarity.  Don't check for $server = false after we
	set its default.  Use </dev/null with calls to $prog --version when we
	don't know what $prog does for sure.

2003-06-02  Derek Price  <derek@ximbiot.com>

	* diff.c (diff_file_nodiff): Don't assume that because two specified
	revision numbers are different, the contents are different.
	(Original report & patch from Paul Edwards <kerravon@w3.to>.)

	* diff.c (diff_file_nodiff): Pass through rev1_cache to be filled in
	by RCS_cmp_file when it needs to check out revision 1 into a file.  Add
	some more informative error messages.  Cleanup for efficiency &
	readability.
	(diff_fileproc): Pass the cached revision to RCS_exec_diff().  Clean up
	the error exit code.  Remove code killed by the changes to
	diff_file_nodiff().
	* rcscmds.c (RCS_exec_rcsdiff): Accept and use new cached revision text
	if present.
	* rcs.c (RCS_cmp_file): Accept a second revision number and cache the
	first revision if it needs to be checked out.

	* checkin.c (Checkin): Use new RCS_cmp_file().
	* import.c (update_rcs_file): Ditto.
	* no_diff.c (No_Difference): Ditto.

	* cvs.h (RCS_exec_rcsdiff): New proto to match above changes.
	* rcs.h (RCS_cmp_file): Ditto.

	* sanity.sh: Minor corrections to handle the above changes.

2003-05-31  Derek Price  <derek@ximbiot.com>

	* root.c (parse_cvsroot): Refuse :fork: only in client mode, not
	server.
	* client.c (connect_to_forked_server): Die without SERVER_SUPPORT when
	CVSSERVER isn't supplied in the environment.
	* sanity.sh: Default $servercvs to $testcvs.  Add SPROG so that testing
	a client and server with different names works in order to test the
	above changes.  s/PROG/SPROG/ almost everywhere.  Misc corrections to
	tests when ${PROG} is required not to use [a-z]*.  Misc uniqifications
	of test names.  Misc replacement of CVS_SERVER=${testcvs} with
	CVS_SERVER=${servercvs}.  Confirm ${testcvs} & ${servercvs} exist and
	are executable.  Set testcvs_server_support=true if the ${testcvs}
	executable has server support.  Misc comment corrections.
	(pserver): s/\$\{testcvs\}/${servercvs}/ for invocations of pserver.
	(server): Ditto for invocations of `cvs server'.
	(fork): Accept the `was not compiled with server support' error
	message.

2003-05-29  Derek Price  <derek@ximbiot.com>

	* client.c (start_server): Don't send -l to server.
	* history.c (history_write): Fix comment.
	* main.c (main): Don't process -l.
	* server.c (serve_global_option): Ditto.
	(Suggestion from Rob Lanphier <robla@real.com>.)

2003-05-29  Derek Price  <derek@ximbiot.com>

	* log-buffer.c, rsh-client.c, socket-client.c: Allow compilation
	with --disable-client.
	(Patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

2003-05-29  Derek Price  <derek@ximbiot.com>

	* gssapi-client.h: Move contents of lib/xgssapi.h here.
	* server.c: xgssapi.h is no more.
	(Patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

2003-05-28  Derek Price  <derek@ximbiot.com>

	* server.c: Use standard PROTOTYPES symbol instead of non-standard
	USE_PROTOTYPES.
	* error.h, cvs.h: Use PROTO.h.
	(Patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

2003-05-23  Larry Jones  <lawrence.jones@eds.com>

	* sanity.sh (info-cleanup-verifymsg): Avoid race in output.

	* sanity.sh (template): Fix unintended duplicate DEFAULT lines,
	duplicate test names.

2003-05-22  Larry Jones  <lawrence.jones@eds.com>

	* commit.c (commit): Fix leading zero stripping code to not strip
	unless there's a following digit.

	* parseinfo.c (Parse_Info): Warn if multiple DEFAULT lines found.
	* sanity.sh (info): New test for above.

2003-05-21  Derek Price  <derek@ximbiot.com>

	* Makefile.in: Regenerate with Automake version 1.7.5.

2003-05-20  Larry Jones  <lawrence.jones@eds.com>

	* parseinfo.c (Parse_Info): Fix stupid memory management error.

	* logmsg.c (do_verify): Treate Parse_Info errors as failure.
	* parseinfo.c (Parse_Info): Don't call expand_path until executing
	the command so that errors in unexecuted commands aren't reported.
	* sanity.sh (info): New tests for above.

2003-05-20  Derek Price  <derek@ximbiot.com>

	* mkmodules.c (config_contents): Add missing newline.
	(Patch from Kenneth Lorber <keni@his.com>.)

2003-05-20  Derek Price  <derek@ximbiot.com>

	* Makefile.am: Macro subsitution for zlib include path and library
	location
	* zlib.c: #ifdef inclusion of <zlib.h> versus "zlib.h"
	(Original patch from Anthon Pang <apang@telus.net>.)

	* Makefile.in: Regenerated

2003-05-20  Derek Price  <derek@ximbiot.com>

	* cvs.h: Move the standard includes into lib/system.h.
	* subr.c: s/malloc/CVS_MALLOC/;s/realloc/CVS_REALLOC/.

2003-05-19  Derek Price  <derek@ximbiot.com>

	* filesubr.c: s/\bstat\b/CVS_STAT/g;s/\blstat\b/CVS_LSTAT/g
	* hardlink.c: Ditto.
	* ignore.c: Ditto.
	* rcs.c: Ditto.
	* update.c: Ditto.

2003-05-18  Larry Jones  <lawrence.jones@eds.com>

	* checkout.c (safe_location): Remove unused variable.
	* hash.c (walklist, printnode, printlist): Use %p to print pointers
	if available, convert to unsigned long if not.
	* recurse.c (start_recursion, do_recursion): Ditto.
	* tag.c (rtag_proc, tag_check_valid): Ditto.

2003-05-18  Mark D. Baushke  <mdb@gnu.org>

	* Makefile.am (localcheck,remotecheck): Use cvs$(EXEEXT) not cvs.
	* Makefile.in: Regenerated.
	* sanity.sh (status-init-7): Use ${PROG} not cvs in tests.
	(branch-after-import-5): Ditto.
	(keywordname-update-11): Ditto.

2003-05-18  Larry Jones  <lawrence.jones@eds.com>

	* server.h (kserver_authenticate_connection,
	pserver_authenticate_connection): Add prototypes.

	* client.c (update_entries): Set file's access time to the current
	time rather than the same as the modification time.
	* vers_ts.c (Version_TS): Ditto.

2003-05-09  Derek Price  <derek@ximbiot.com>

	* client.c: #ifdef inclusion of gssapi-client.h.
	* server.c: Ditto.
	(Reported by Boyd Lynn Gerber <gerberb@zenez.com>.)

2003-05-09  Derek Price  <derek@ximbiot.com>

	* client.h: Move some of the GSSAPI stuff...
	* gssapi-client.h: ...to this new file.
	* client.c (start_server): Use new initialize_gssapi_buffers().
	(*): Move most of the GSSAPI stuff from here and...
	* server.c (*): ...here...
	* gssapi-client.c: ...to this new file.
	* Makefile.am (EXTRA_cvs_SOURCES, cvs_DEPENDENCIES, cvs_LDADD): Support
	$(cvs_client_objects).
	(Original patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

	* Makefile.in: Regenerated.

2003-05-09  Derek Price  <derek@ximbiot.com>

	* buffer.c: Reindent some compiler directives in order to make nesting
	clearer.

2003-05-08  Derek Price  <derek@ximbiot.com>

	* client.c (log_buffer*): Move...
	* log-buffer.c (log_buffer*): ...to this new file.
	* log-buffer.h (setup_logfiles): New file to share prototype.
	* Makefile.am: Add log-buffer.c & log-buffer.h.
	(Patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

	* Makefile.in: Regenerated.

2003-05-08  Derek Price  <derek@ximbiot.com>

	* client.c (init_sockaddr): Move...
	* socket-client.c (init_sockaddr): ...here.
	* socket-client.h (init_sockaddr): Prototype.
	(Patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

2003-05-08  Derek Price  <derek@ximbiot.com>

	* client.c (send_to_server): Move most of the functionality to and
	wrap...
	(send_to_server_via): ...this new function which accepts the buffer
	pointer as an argument.
	(read_line): Ditto, but to...
	(read_line_via): ...here.
	(auth_server): Rename lto_server & lfrom_server to s/^l//.  Remove
	ugly code which sets the global versions of these variables
	temporarily for function calls.
	s/send_to_server(/send_to_server_via(to_server,/g,
	s/read_line(/read_line(from_server,/g,
	Remove emotional FIXME comment to the effect that all this is
	necessary.
	(Patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

2003-05-07  Derek Price  <derek@ximbiot.com>

	* client.c (from_server, to_server): Rename these global buffer
	pointers to...
	(global_from_server, global_to_server): ...this in order to avoid
	confusion.
	(Patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

2003-05-07  Derek Price  <derek@ximbiot.com>

	* client.c (make_bufs_from_fds, connect_to_forked_server,
	start_tcp_server): Rename struct buffer ** arguments to s/$/_p/ in an
	attempt to denote their pointerness more clearly.
	* rsh-client.c (start_rsh_client): Ditto.
	(Patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

	* client.h (make_bufs_from_fds): Sanitize prototype so that the
	argument name change doesn't clash.

2003-05-07  Derek Price  <derek@ximbiot.com>

	* client.h (make_bufs_from_fd): Prototype in order to make available to
	rsh-client.c.
	* client.c (start_rsh_server): Moved most of the RSH (:ext:) client
	stuff to...
	* rsh-client.h: ...here...
	* rsh-client.c: ...and here.
	* Makefile.am (cvs_SOURCES): Add new source files.
	(Original patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

	* Makefile.in: Regenerated.

2003-05-06  Derek Price  <derek@ximbiot.com>

	* client.c (socket_buffer_*): Moved most of the socket stuff to...
	* socket-client.h: ...here...
	* socket-client.c: ...and here.
	* Makefile.am (cvs_SOURCES): Add new source files.
	(Patch from Alexey Mahotkin  <alexm@hsys.msk.ru>.)

	* Makefile.in: Regenerated.

2003-05-05  Derek Price  <derek@ximbiot.com>

	* hash.c (findnode): Document behavior of this function when its list
	argument is NULL and document this behavior.  Remove FIXME comment to
	the effect that this is necessary.

2003-05-01  Derek Price  <derek@ximbiot.com>

	* main.c (main): Ignore -z when CLIENT_SUPPORT is not defined.
	(Report from Jim Salter <jsalterjim@earthlink.net>.)

2003-05-01  Derek Price  <derek@ximbiot.com>

	* repos.c (Sanitize_Repository_Name): Remove some old comments about
	the defunct RELATIVE_REPOS macro.
	* server.c (outside_root): Ditto.

2003-04-30  Derek Price  <derek@ximbiot.com>

	* vers_ts.c (Version_TS): Minor optimization.

2003-04-30  Derek Price  <derek@ximbiot.com>

	* add.c (add): Fix a possible, if unlikely, memory out of bounds error.

2003-04-30  Derek Price  <derek@ximbiot.com>

	* commit.c: Free vers in single place
	(Patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

2003-04-30  Derek Price  <derek@ximbiot.com>

	* Makefile.am: Get rid of $includeopt, using $CPPFLAGS as intended by
	the Autoconf folk.
	(Patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

	* Makefile.in: Regenerated.

2003-04-30  Derek Price  <derek@ximbiot.com>

	* add.c (add): Fix a possible, if unlikely, memory out of bounds error.

2003-04-28  Derek Price  <derek@ximbiot.com>

	* client.c (save_prog): Remove unneeded struct.
	(checkin_progs, update_progs): Remove these unneeded globals.
	(handle_set_checkin_prog, handle_set_update_prog, do_deferred_progs):
	Remove these functions.
	(send_repository): Remove checkin and update prog support.
	(responses): Remove Set-checkin-prog and Set-update-prog.
	(get_responses_and_close): Don't call do_deferred_prog().
	* commit.c (commit_usage): Remove reference to -n.
	(commit): Don't set and send run_module_prog via -n.  Don't run
	Checkin.prog or Checkout.prog in local mode.
	* modules.c (CVSMODULE_OPTS): Remove -i and -u.
	(do_module): Don't process -i and -u options to set checkin and update
	progs, respectively.
	* server.c (server_prog, serve_checkin_prog, server_update_prog):
	Remove unused functions.
	(requests): Remove Checkin-prog and Update-prog.
	* update.c (update_dirleave_proc): Remove update prog functionality.

	* cvs.h (CVSADM_CIPROG, CVSADM_UPROG): Remove unneeded defines.
	* server.h (server_prog): Remove proto.
	(progs): Remove enum.

	* sanity.sh (modules5): Remove tests for checkin and update programs.

2003-04-15  Derek Price  <derek@ximbiot.com>

	* sanity.sh (*): Shrink the yucky case statement using sed's transform
	functionality.
	(getlongoptarg): Convert this function to only confirm the arg and move
	it...
	(checklongoptarg): ...here.

2003-04-10  Larry Jones  <lawrence.jones@eds.com>

	* Makefile.in: Regenerated.

2003-04-04  Larry Jones  <lawrence.jones@eds.com>

	* sanity.sh (branches4-15): New test.

	* error.h: Avoid __pure__ for GCC versions < 2.96 & __malloc__ for GCC
	versions < 3.0.

2003-04-03  Derek Price  <derek@ximbiot.com>

	* Makefile.am (DISTCLEAN_FILES): Move the contents of this variable...
	(distclean-local): ...to this target now that Automake supports it.

2003-04-03  Derek Price  <derek@ximbiot.com>

	* cvs.h: Avoid __pure__ for GCC versions < 2.96 & __malloc__ for GCC
	versions < 3.0.

2003-04-02  Larry Jones  <lawrence.jones@eds.com>

	* update.c (update, update_fileproc, update_filesdone_proc,
	update_dirent_proc, update_dirleave_proc): Keep track of whether
	a tag is both a revision tag and a branch tag and warn the user.
	* sanity.sh (branches4): New tests for above.

2003-04-02  Derek Price  <derek@ximbiot.com>

	* recurse.c (do_recursion): Use strstr("/./") rather than strchr('.')
	to catch only indirections in paths and not directory names with dots
	in them.
	(Report from Pavel Roskin <proski@gnu.org>.)

	* sanity.sh (multiroot): Put a dot in the CVSROOT_DIRNAMEs.
	(dottedroot): New test.
	(Based on a script from Pavel Roskin <proski@gnu.org>.)

2003-04-01  Derek Price  <derek@ximbiot.com>

	* sanity.sh (multiroot2-9): Add newly TRACEd parse_cvsroot() to
	expected output.

2003-03-31  Derek Price  <derek@ximbiot.com>

	* rcs.c (freercsnode): Revert an accidental change from the previous
	commit.

2003-03-31  Derek Price  <derek@ximbiot.com>

	* recurse.c (start_recursion): Accept new repository argument so that
	the working directory may be tracked by do_recursion without using
	xgetwd(), which returned a value different from the one the user
	requested when symlinks were in use.  Add TRACE.  Pass repository_in
	to do_recursion() as part of the recursion frame.
	(do_recursion): Default srepository to NULL and only set when we set
	repository.  Keep track of repository using xframe.repository for the
	r* commands rather than xgetwd(), which used to break when CVSROOT was
	a symlink to a real root.

	* cvs.h (xreadlink): #ifdef HAVE_READLINK proto.
	(xresolvepath): New proto.
	(start_recursion): Add repository to proto.
	(*): Define some more abstract TRACE levels.
	* update.h (do_update): Add repository argument to proto.

	* checkout.c (safe_location): Add more complete header comment.  Add
	TRACE.  Use new xresolvepath() function.  Always return true in
	client mode since checking our destination path against the CVSROOT
	path is usually meaningless in client/server mode.
	(checkout_proc): Pass repository to do_update() for later use with
	start_recursion().
	(*): s/<chdir>/CVS_CHDIR/.
	* filesubr.c (xreadlink): #ifdef HAVE_READLINK this function.  Add more
	complete header comment.
	(xresolvepath): New function.
	* hash.c (walklist): Add TRACE.
	* main.c (main): Don't copy and dispose of CVSRoot_cmdline twice.
	* patch.c (patch_proc): Add TRACE.  Pass repository to
	tag_check_valid() for r* commands.
	* root.c (parse_cvsroot): Add TRACE.
	* tag.c (rtag_proc): Add TRACE.
	(check_fileproc): Ditto.
	(tag_check_valid): Ditto.
	* update.c (do_update): Accept new repository argument for co.
	(update): Pass NULL repository to do_update().

	* admin.c (*): Use new definition of start_recursion().
	* annotate.c (*): Ditto.
	* client.c (*): Ditto.
	* commit.c (*): Ditto.
	* diff.c (*): Ditto.
	* edit.c (*): Ditto.
	* lock.c (*): Ditto.
	* log.c (*): Ditto.
	* patch.c (*): Ditto.
	* remove.c (*): Ditto.
	* status.c (*): Ditto.
	* tag.c (*): Ditto.
	* update.c (*): Ditto.
	* watch.c (*): Ditto.

	* sanity.sh: Add new -l option to test symlinked roots.
	(abspath-3.2): Use [a-z]* rather than "checkout".
	(check_repository-1): Add server error messages about absolute paths
	since the client now skips destination validity checks.
	(check_repository-2): Process client error messages about CVSROOT
	files being in the way since the client skips destination validity
	checks since it should be rare that a client is running in
	client/server mode on the server and CVS has no current way to check if
	it is runnning on the server.

2003-03-27  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (rdiff2): Add new test case for SEGV problem reported
	against cvs 1.11.5.
	(Report from James Cribb)

2003-03-26  Derek Price  <derek@ximbiot.com>

	* client.c: Fix, reorganize, and comment ifdefs for AUTH_CLIENT_SUPPORT
	and HAVE_GSSAPI.
	* client.h: Ditto.  Remove some unecessary server function prototypes.

2003-03-26  Derek Price  <derek@ximbiot.com>

	* client.c: Include the net headers for HAVE_GSSAPI.
	(Report from Jim Salter <jsalterjim@earthlink.net>.)

2003-03-26  Derek Price  <derek@ximbiot.com>

	* main.c (main): Verify the argument to -z when running without
	CLIENT_SUPPORT since Eric Siegerman complained about being bit
	by a run of `cvs -z -n up' which parsed the -n as the argument to
	-z.
	* sanity.sh (opterrmsg): New tests for -z argument checking.

2003-03-26  Larry Jones  <lawrence.jones@eds.com>

	* main.c (main): Use strtol() instead of atoi() when parsing -z
	to detect errors.
	(Reported by Eric Siegerman <erics@telepres.com>.)

2003-03-25  Derek Price  <derek@ximbiot.com>

	* cvs.h: Disable GNU attributes as part of PROTO behavior.
	* error.h: Mirror GNU attribute definitions from cvs.h.

2003-03-25  Derek Price  <derek@ximbiot.com>

	* subr.c (cvs_trace): #ifdef use of server_active.
	(Report from Jim Salter <jsalter@proofpoint.com>.)

	* cvs.h (xmalloc, xrealloc, xstrdup, parse_cvsroot,
	local_cvsroot, normalize_cvsroot): Use GNU attributes.
	* error.h (error_exit): Fix PROTO/__attribute__ specification.
	* root.c (new_cvsroot_t): Add GNU attribute.

2003-03-24  Derek Price  <derek@ximbiot.com>

	* Makefile.am: Update copyright notice.

	* Makefile.in: Regenerated.

2003-03-24  Larry Jones  <lawrence.jones@eds.com>

	* server.h (server_clear_template): Add declaration.
	(server_template): Add parameter names to prototype.

2003-03-20  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (env): Try more than one ps command if the first one
	fails. This may let the test succeed on more platforms. Also,
	keep the ps output that was processed for the error report.

2003-03-19  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh (env): Use 'ps -el' rather than 'ps -l' so that
	crontab jobs that might be running these tests without a
	controlling terminal work properly.

	* client.c (start_rsh_server): Use new definition of RSH_DFLT to
	allow "rsh" to be configured to default to "ssh" or some other
	local remote transport program.

	* Makefile.in: Regenerated.

2003-03-19  Larry Jones  <lawrence.jones@eds.com>

	* filesubr.c (mkdir_if_needed): Save errno since isdir() can clobber.
	(Patch from Brian Poole <raj@cerias.purdue.edu>.)
	* sanity.sh (abspath-4): Update to match.

	* filesubr.c (locate_rcs): Fix gcc warning.

2003-03-19  Derek Price  <derek@ximbiot.com>

	* add.c (add_directory): Only call WriteTemplate when the server is
	active.
	* create_adm.c (Create_Admin): Don't call WriteTemplate here since
	Create_Admin is only called from the client.
	* commit.c (commit_dirleaveproc): Don't call WriteTemplate here.  I'm
	a little confused as to why since update_direntproc works for update.c,
	but I can't come up with a test case that fails when this call is
	missing.  Nor can I come up with a test case that passes when this call
	is present and the one in commit_filesdoneproc is removed.
	* sanity.sh (template): Tidy, minimize, and add some extra tests.

2003-03-19  Mark D. Baushke  <mdb@cvshome.org>

	* .cvsignore: Added sanity.config.sh, a new auto-generated file.

	* cvs.h (CVS_PID_ENV): New environment variable CVS_PID has the
	pid of the parent cvs process.
	* main.c (main): Initialize it.
	* sanity.sh (env): Test it.

2003-03-19  Derek Price  <derek@ximbiot.com>

	* sanity.config.sh.in: New file.
	* sanity.sh: Source new config file when available.  Accept alternate
	config file as an argument to a -c option.  Accept long options with
	arguments.
	(getlongoptarg): New function.

	* Makefile.in: Regenerated.

2003-03-18  Derek Price  <derek@ximbiot.com>

	* root.c (parse_root): Add some more comments and expand
	#ifdef CLIENT_SUPPORT pragmas.  Rearrange sanity checks slightly.

2003-03-18  Derek Price  <derek@ximbiot.com>

	* main.c (main): Output -R warning in quiet mode and correct spelling
	in this warning message.
	* sanity.sh (commit-readonlyfs-2r4): Correct cascaded spelling mistake
	in test.

2003-03-17  Derek Price  <derek@ximbiot.com>

	* add.c: Correct comment.
	* client.c: Ditto.
	* checkin.c (Checkin): Pass work file name to RCS_checkin so that this
	function works properly in the case insensitive mode.
	* commit.c (checkaddfile): Fix and factor add logic so that the
	correct files and directories are created in the case insensitive mode.
	Reuse code in RCS_parse() below.  This avoids a problem that could
	cause corrupted RCS files to be created on an add from a case
	insensitive system.  Corrupted RCS files could cause later assertion
	failures for everyone.
	(locate_rcs): Move this function...
	* filesubr.c (locate_rcs): ...here and rewrite it.
	(fopen_case): Remove this function.
	(locate_file_in_dir): New function.
	* cvs.h (locate_rcs): Prototype new function.
	* rcs.c (RCS_parse): Factor out file location into locate_rcs.

2003-03-17  Mark D. Baushke  <mdb@cvshome.org>

	* main.c (main): Issue a warning about readonlyfs options unless
	quiet or really_quiet is set.
	* lock.c (Writer_Lock): Modify readonlyfs error message text.
	* sanity.sh (commit-readonlyfs): Adjust test for new messages.

2003-03-17  Larry Jones  <lawrence.jones@eds.com>

	* server.c (switch_to_user): Add syslog calls for setgid/setuid
	failure.

2003-03-16  Mark D. Baushke  <mdb@cvshome.org>

	* cvs.h (CVSREADONLYFS_ENV): New macro to support new environment
	variable "CVSREADONLYFS" for read-only file-system repository mode.
	* lock.c (Reader_Lock, Writer_Lock): Add support for new read-only
	file-system repository mode.
	* main.c (main, opt_usage): Ditto.
	* root.c (parse_cvsroot): Ditto.
	* sanity.sh (commit-readonlyfs): Test new read-only file-system
	repository mode.

2003-03-14  Mark D. Baushke  <mdb@cvshome.org>

	* server.c (template_proc): Fix broken Template protocol code.
	Must call send buf_send_counted() for Template files to avoid
	"Protocol error: uncounted data discarded" messages in some
	circumstances.
	* sanity.sh (template): Test case to verify fix this fix.

2003-03-10  Mark D. Baushke  <mdb@cvshome.org>

	* cvs.h (WriteTemplate): Add missing prototype.

2003-03-07  Mark D Baushke <mdb@cvshome.org>

	* sanity.sh: Fix broken setting of the servercvs variable.

2003-03-07  Derek Price  <derek@ximbiot.com>

	* sanity.sh (help): Add explanation of CVS-TO-TEST and edit for
	consistency.

2003-03-07  Derek Price  <derek@ximbiot.com>

	* sanity.sh (usage): Show users long --help rather than less
	informative -h.

2003-03-07  Derek Price  <derek@ximbiot.com>

	* sanity.sh: Add support for long options.
	(exit_usage): Move the actual generation of usage text to...
	(usage): ...this new function and improve the usage message.
	(exit_help): New function.

2003-03-07  Mark D. Baushke  <mdb@cvshome.org>

	* sanity.sh: Drop the clientcvs option. Add usage info for
	the -s servercvs option.

2003-03-07  Larry Jones  <lawrence.jones@eds.com>

	* commit.c (check_fileproc): Remove unused variables.

	* patch.c (patch): Pass local to do_module so that -l actually works.
	(Reported by John Coers <coers@intrinsity.com>.)
	(patch_fileproc): Fix uninitialized variables.
	* sanity.sh: Define a DATE pattern for rdiff and use it.
	(basic2-24a): New test for above.

2003-03-07  Mark D. Baushke  <mdb@cvshome.org>

	* entries.c (WriteTemplate): New function to control updates to
	the CVS/Template file or its removal.
	* create_adm.c (Create_Admin): Use the new WriteTemplate function.
	* add.c (add_directory): Add a WriteTemplate() call
	when a new directory is added to the repository.
	* commit.c (commit_filesdoneproc): Ensure that the CVS/Template is
	updated at the end of a commit -- mostly to remove it if it is not
	relevant.
	(commit_dirleaveproc): Ensure that the CVS/Template gets updated
	when the directory is left.
	* update.c (update_dirent_proc): Update CVS/Template file.
	* server.c (server_clear_template): New protocol response to
	remove existing CVS/Template files.
	* client.c (clear_template): New function to remove or truncate a
	CVS/Template file.
	(handle_clear_template): New function. Handle Clear-template
	protocol response message.
	(save_prog): Add new Clear-template response line.
	* sanity.sh (template): Test the CVS/Template creation with
	the remote protocol. Nothing gets created locally.
	(multiroot2): Fix for minor changes to trace output.
	(getopts): Allow tests to be run with specified client and server
	cvs commands to allow for interoperatbility testing.
	(check_keep): New shell function for --keep processing.

2003-03-06  Derek Price  <derek@ximbiot.com>

	* subr.c (file_has_conflict): New file.
	* commit.c (check_fileproc): Factor code into new file_has_conflict()
	function.
	* update.c (update_fileproc): Ditto.
	* status.c (status_fileproc): Use new file_has_conflict() function.
	(Report from Bernd Kuemmerlen <bkuemmer@mevis.de>.)

	* sanity.sh (status): New test for same.

2003-03-06  Larry Jones  <lawrence.jones@eds.com>

	* sanity.sh (branches3-4): Set and export CVS_LOCAL_BRANCH_NUM
	to be sure it really gets into the environment, then unset it
	when finished (ala CVSWRAPPERS et al).

2003-03-03  Mark D. Baushke  <mdb@cvshome.org>

	* sanith.sh (branches3): Localize the setting of
	the CVS_LOCAL_BRANCH_NUM environment variable.

	* rcs.c (RCS_magicrev): CVS_LOCAL_BRANCH_NUM feature.
	Port of the FreeBSD hack for setting the next magic branch number
	to be used. The original patch was written by Peter Wemm
	<peter@FreeBSD.org> and may be found by visiting the URL:
	http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/cvs/src/rcs.c.diff?r1=1.1&r2=1.2
	Implement a horrible (but simple) hack to allow some control over the
	branch number that is assigned. This is specifically to support the
	local commit feature of cvsup. If one sets $CVS_LOCAL_BRANCH_NUM to
	(say) 1000 then branches the local repository, the revision numbers
	will look like 1.66.1000.xx. This is almost a dead-set certainty that
	there will be no conflicts with version numbers.
	(This needs to be something more than an option to 'cvs tag' or 'cvs
	rtag' as various parts of cvs "know" how to automatically branch files
	(eg: cvs add). Trying to remember state is getting "Too Hard (TM)")
	* sanity.sh (branches3): Test the CVS_LOCAL_BRANCH_NUM feature.

2003-03-04  Derek Price  <derek@ximbiot.com>

	* history.c (history_write): Remove unneeded O_CREAT in the call to
	open() since we abort a few lines earlier if the file doesn't exist.
	Add a comment to the effect that this is not the optimal method of
	doing things and needs fixed.

2003-02-28  Derek Price  <derek@ximbiot.com>

	* root.c (parse_cvsroot): Set no_password for :gserver: and :kserver:
	as tokens should already be obtained via external sources.
	* update.c (update_fileproc): Remove redundant code.

2003-02-28  Larry Jones  <lawrence.jones@eds.com>

	* lock.c (set_lock): If possible, try a short wait with no message
	before calling lock_wait() to optimize master lock contention.

2003-02-26  Larry Jones  <lawrence.jones@eds.com>

	* checkout.c (checkout): Send "--" before file names.
	* sanity.sh (spacefiles): Remote now works just like local.

2003-02-25  Derek Price  <derek@ximbiot.com>

	* sanity.sh (rcs4): Use UTC to work across timezones.

2003-02-25  Derek Price  <derek@ximbiot.com>

	* rcs.c (RCS_getdate): Fix a bug that shows up when checking out
	files by date with the "-D date" command line option. There is
	code in the original to handle a special case. If the date search
	finds revision 1.1 it is supposed to check whether revision
	1.1.1.1 has the same date stamp, which would indicate that the
	file was originally brought in with "cvs import". In that case it
	is supposed to return the vendor branch version 1.1.1.1.

	However, there was a bug in the code. It actually compares the date
	of revision 1.1 for equality with the date given on the command
	line -- clearly wrong. This commit fixes the coding bug.

	Note: There is an additional bug which is _not_ fixed in this
	commit. The date comparison should not be a strict equality test.
	It should allow a fudge factor of, say, 2-3 seconds. Old versions
	of CVS created the two revisions with two separate invocations of
	the RCS "ci" command. We have many old files in the tree in which
	the dates of revisions 1.1 and 1.1.1.1 differ by 1 second.

	This bug was discovered and fixed for FreeBSD cvs. See v 1.21 of
	<http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/cvs/src/rcs.c.diff>
        for more information.

	* sanity.sh (rcs4): Tests for same.
	(Patch from Mark D. Baushke <mdb@cvshome.org>.)

2003-02-25  Derek Price  <derek@ximbiot.com>

	* logmsg.c (logfile_write): Do not pass a NULL pointer to
	fprintf() when we have an empty log message.
	* sanity.sh (editor): Add new tests to verify correct behavior of
	empty log messages.
	(Patch from Mark D. Baushke <mdb@cvshome.org>, original report from
	Piotr KUCHARSKI <chopin@sgh.waw.pl>.)

2003-02-25  Derek Price  <derek@ximbiot.com>

	* cvs.h (user_admin_options): Rename to...
	(UserAdminOptions): ...this to match the convention set by
	of RereadLogAfterVerify.
	* admin.c (admin): Ditto.
	* parseinfo.c (parse_config): Ditto.

	* mkmodules.c (config_contents): Update with UserAdminOptions
	information.

2003-02-25  Derek Price  <derek@ximbiot.com>

	* cvsbug.in: Import use of mktemp function from RedHat 8.0's
	CVS 1.11.2 RPM.  Use new MKTEMP configure variable.  Use new
	SENDMAIL from configure.

	* Makefile.in: Regenerated.

2003-02-25  Derek Price  <derek@ximbiot.com>

	* cvs.h (user_admin_options): New global config option.
	* admin.c (admin): Handle user_admin_options.
	* parseinfo.c (parse_config): Handle UserAdminOptions.
	(Original patch from Dan Peterson <dbpete@aol.com>.)

2003-02-25  Derek Price  <derek@ximbiot.com>

	* watch.c (watch_usage): Use {} rather than () for literals.

2003-02-21  Larry Jones  <lawrence.jones@eds.com>

	* server.c (switch_to_user): Update comment, change error message
	so it's not an exact duplicate of the one in check_password.
	(check_repository_password): Add syslog call for password mismatches.
	(check_password): Add syslog call for password mismatches, rearrange
	code to simplify and eliminate redundancy.
	(pserver_authenticate_connection): Remove syslog call, now done by
	lower-level routines.

2003-02-19  Larry Jones  <lawrence.jones@eds.com>

	* sanity.sh (admin-10): Add test for repository files not in
	working directory.

	* admin.c (admin_fileproc): Fix crash when no rcs file, return
	failure status for bogus files.
	* sanity.sh (admin-4a): Test for above.
	(Original patch submitted by Mark D. Baushke <mdb@cvshome.org>).

2003-02-14  Larry Jones  <lawrence.jones@eds.com>

	* log.c (log_expand_revlist): Fix crashes in error cases.
	(Reported by Bart Santy <Bart.Santy@switch.be>.)
	* sanity.sh (log): New tests for above.

2003-02-14  Derek Price  <derek@ximbiot.com>

	* rcs.h (RCSNode): Add a field for the original path to print with
	error messages.
	* rcs.c (RCS_parsercsfile_i): Keep track of the original path for error
	messages.
	(freercsnode): Free the origpath.

2003-02-14  Derek Price  <derek@ximbiot.com>

	* watch.c (watch_usage): Make the repeatability of -a part of the
	usage spec.

2003-02-14  Derek Price  <derek@ximbiot.com>

	* watch.c (watch_usage): Mention default for -a.  Mention multiple
	invocations of -a.  Mention -R as default.  Use required () rather than
	optional [] around watch subcommand list in invocation spec.  Use
	`path' instead of `file'.  Put variable <> around `action' and `path'.

2003-02-12  Derek Price  <derek@ximbiot.com>

	* main.c (main): Update copyright message to 2003.

2003-02-08  Derek Price  <derek@ximbiot.com>

	* rcs.c (RCS_checkout): Supply the full function name in the TRACE
	output.
	* update.c (checkout_file, join_file): Supply tag properly to
	RCS_checkout more often.
	(patch_file): Ditto.  Fill out comments.
	* sanity.sh (keyword, keywordname): Some changes to accomodate the fact
	that the above changes cause patches generated by patch_file to fail
	occassionally.

2003-02-07  Derek Price  <derek@ximbiot.com>

	* sanity.sh (*): Don't keep running after a test when --keep has been
	supplied.  That was kind of silly, wasn't it?

2003-02-07  Derek Price  <derek@ximbiot.com>

	* rcscmds.c (RCS_merge): Add a FIXME.

2003-02-07  Derek Price  <derek@ximbiot.com>

	* commit.c (checkaddfile): Do not lose the vendor branch when
	adding files to a new branch. Avoids extranious conflicts for
	future vendor imports. This was found and fixed in FreeBSD cvs.
	See http://www.freebsd.org/cgi/query-pr.cgi?pr=4033 for details.
	* sanity.sh (branch-after-import): New test.
	(Thanks to Mark D Baushke <mdb@cvshome.org> for forwarding the
	patch and writing the test cases!)

	* sanity.sh (branch-after-import): Misc portablility and standard
	changes.

2003-02-07  Derek Price  <derek@ximbiot.com>

	* add.c: Exercise the pet peeve Karl Fogel, I think, infected me with
	about using the word invalid rather than illegal and reserving illegal
	for use when actually discussing laws and governmentally enforced
	restrictions:
	s/illegal/invalid/g;s/legality/validity/g;s/legal/valid/g;
	* admin.c: Ditto.
	* cvs.h: Ditto.
	* expand_path.c: Ditto.
	* log.c: Ditto.
	* modules.c: Ditto.
	* rcs.c: Ditto.
	* rcs.h: Ditto.
	* repos.c: Ditto.
	* root.c: Ditto.
	* sanity.sh: Ditto.
	* scramble.c: Ditto.
	* server.c: Ditto.
	* subr.c: Ditto.

2003-02-06  Derek Price  <derek@ximbiot.com>

	* rcs.c (RCS_getdatebranch): Update header comment to reflect the state
	of the docs and the code's operation.

2003-02-06  Derek Price  <derek@ximbiot.com>

	* client.c: Use the complete path to the CVSADM_TEMPLATE file in
	error messages.  Remove related FIXME.

2003-02-04  Derek Price  <derek@ximbiot.com>

	* status.c (status_fileproc): Add a FIXME comment.

2003-02-04  Derek Price  <derek@ximbiot.com>

	* sanity.sh (conflicts2- c. 142d): New test for double add and two
	attempted commits of files with the same name.  Fill out some comments
	and change one FIXME to a FIXCVS THEN FIXME.

2003-02-03  Derek Price  <derek@ximbiot.com>

	* client.c (start_Server): Send multiple trace options when
	necessary.
	* server.c (server): Update trace option processing to accept multiple
	-t arguments.
	* *: Use new TRACE macro.

2003-02-02  Larry Jones  <lawrence.jones@eds.com>

	* error.c: Update to match error.h.

	* cvs.h (cvs_trace): Add attribute for GNU printf format checking.
	* error.h: Use same check for prototypes as cvs.h.  Use PROTO
	macro rather than #ifdef for error and error_exit.

2003-02-01  Larry Jones  <lawrence.jones@eds.com>

	* buffer.c (stdio_buffer_shutdown): Handle EINTR from waitpid.
	(Patch from Johannes Grødem <johs+n@ifi.uio.no>.)

2003-02-01  Derek Price  <derek@ximbiot.com>

	* lock.c: Remove extra line feed on TRACE output.

2003-01-31  Derek Price  <derek@ximbiot.com>

	* cvs.h: Move header includes in from...
	* error.c: ...here.  Remove checks for definition of vprintf().
	Since our error() function was making assumptions about the definition
	of VA_START, we must not have been compiling on platforms without
	vprintf for quite awhile and I've heard no complaints.
	(fperrmsg): Assume vprintf().
	* subr.c (cvs_trace): Don't assume ANSI C function declarations.

2003-01-31  Derek Price  <derek@ximbiot.com>

	* main.c (main): Allow multiple -t options.
	(opt_usage): Correct usage.
	* cvs.h (TRACE): New macro.
	* subr.c (cvs_trace): New function.
	(Thanks to the team at the CVSNT project.)

	* lock.c (*): Use new TRACE macro.

2003-01-31  Derek Price  <derek@ximbiot.com>

	* sanity.sh (keywordname): Change a "FIXME" comment to "FIXCVS".

2003-01-30  Derek Price  <derek@ximbiot.com>

	* sanity.sh (keywordname): New test.

2003-01-23  Larry Jones  <lawrence.jones@eds.com>

	* diff.c (diff_fileproc): Restructure code to simplify and eliminate
	redundant tests.

	* server.c (do_cvs_command): Use WCOREDUMP macro rather than hard
	coding test for core file.

2003-01-21  Larry Jones  <lawrence.jones@eds.com>

	* root.c (method_name): Redefine as a 2D array.
	* root.h (method_name): Ditto.

2003-01-21  Jim Meyering  <jim@meyering.net>

	* add.c (add): Rename local-shadowing `i' to `j'.

	* root.c (method_names): Declare to be a const array of const strings.
	(Name_Root): Save errno so it doesn't get clobbered
	by the intervening error call.
	Use getline's return value, mainly to save a call to strrchr.

2003-01-20  Larry Jones  <lawrence.jones@eds.com>

	* myndbm.c (O_ACCMODE): Parenthesize the replacement string so that
	it parses correctly.
	(Reported by Andres Bertens <abertens@entelchile.net>.)

2003-01-15  Karl Fogel  <kfogel@collab.net>

	* server.c (dirswitch): Don't free dir_name until right before
	allocating it again.  This removes a potential double-free
	problem, whereby this function could free dir_name and then
	immediately return due to invalid directory syntax (without ever
	reassigning dir_name), then reenter and free dir_name again.

        Thanks to Stefan Esser <s.esser@e-matters.de> for the fix.

2003-01-08  Larry Jones  <lawrence.jones@eds.com>

	* client.c (update_entries): Only "0" is a special version number;
	other numbers starting with 0 (like 0.1) are normal version numbers.
	* commit.c (find_fileproc): Ditto.  Also reorganize the code to
	simplify the conditions.
	(Reported by Michele Zamparelli <michele.zamparelli@eso.org>.)

2003-01-02  Larry Jones  <lawrence.jones@eds.com>

	* rcs.c (getdelta): Use RCSDEAD rather than literal "dead".

2002-12-27  Derek Price  <derek@ximbiot.com>

	* admin.c: s/LOCK_(NONE|WRITE|READ)/CVS_$&/g; since the definition of
	LOCK_WRITE clashes with a definition in objidl.h on Windoze platforms.
	* annotate.c: Ditto.
	* client.c: Ditto.
	* commit.c: Ditto.
	* cvs.h: Ditto.
	* diff.c: Ditto.
	* edit.c: Ditto.
	* lock.c: Ditto.
	* log.c: Ditto.
	* patch.c: Ditto.
	* recurse.c: Ditto.
	* remove.c: Ditto.
	* status.c: Ditto.
	* tag.c: Ditto.
	* update.c: Ditto.
	* watch.c: Ditto.
	* myndbm.c: Ditto & define O_ACCMODE when it isn't defined, as under
	Windoze.
	(Thanks to Stephane Rouleau <s.rouleau@videotron.ca>,
	 Cristopher Seawood <cls@seawood.org>, and
	 Frederico Costa <frederico.costa@tiscali.no> for all their hints,
	 tips, and patches for this problem.)

2002-12-20  Derek Price  <derek@ximbiot.com>

	* client.c (send_a_repository): Suppress a warning under Windoze.

2002-12-19  Derek Price  <derek@ximbiot.com>

	* Makefile.am: Remove reference to options.h.
	* cvs.h: Ditto.
	* options.h: Remove this obsolete file.
	* sanity.sh: Remove comment about external diffs causing tests to fail
	since CVS hasn't used external diffs in years.

	* Makefile.in: Regenerated.

2002-12-16  Derek Price  <derek@ximbiot.com>

	* admin.c: Disable cvsadmin group checking on the client.
	(Reported by Dan Peterson <dbpete@aol.com>.)

2002-12-06  Derek Price  <derek@ximbiot.com>

	* buffer.c: Replace calls to malloc with calls to xmalloc and calls to
	realloc with calls to xrealloc.
	* parseinfo.c: Ditto.
	* root.c: Ditto.
	* server.c: Ditto.
	* zlib.c: Ditto.
	* scramble.c: Change some comments to refer to xmalloc rather than
	malloc.
	(Reported by Dan Peterson <dbpete@aol.com>.)

2002-12-04  Derek Price  <derek@ximbiot.com>

	* options.h: Remove CVS_ADMIN_GROUP.

2002-12-02  Larry Jones  <lawrence.jones@eds.com>

	* commit.c (commit): Strip leading zeros from numeric revision
	in addition to trailing dots.
	(Reported by Peter Meszaros <pme@prolan.hu>.)

2002-11-22  Larry Jones  <lawrence.jones@eds.com>

	* sanity.sh: Note that the tests run for a long time.

	* checkout.c (safe_location): Use xstrdup, not strdup.
	(Reported by Terrence Enger <tenger@iSeries-guru.com>.)

2002-11-19  Larry Jones  <lawrence.jones@eds.com>

	* log.c (log_expand_revlist): Fix cross-branch correction code.

	* sanity.sh: Set $LANG for systems that ignore $LC_ALL.
	(rcs2-7): Change date offset from 100 months to 96 months to reduce
	periodic problems with invalid dates.

2002-11-12  Derek Price  <derek@ximbiot.com>

	* sanity.sh (rcslib-symlink): Use rm -f rather than a simple rm when
	removing links because under some configurations of RH Linux 8.0 the
	script pauses to ask for removal approval.

2002-11-08  Derek Price  <derek@ximbiot.com>

	* sanity.sh (importc): Update the use of the touch command to be
	compliant with POSIX 1003.1-2001, SUS2, and SUS3 now that GNU touch
	supports this.  If this breaks any test platforms we should test
	the behavior of touch like we do for other tools.

2002-11-03  Derek Price  <derek@ximbiot.com>

	* sanity.sh (rcs2-7): Notate with a wild untested hypothesis.

2002-11-03  Derek Price  <derek@ximbiot.com>

	* sanity.sh (rcs2-7): Notate with three more failure dates.

2002-10-25  Derek Price  <derek@ximbiot.com>

	* root.c: Change some calls to SYSTEM_CLEANUP() and then exit() to
	more appropriate calls to error_exit().
	* server.c: Ditto.
	* tag.c: Ditto.

2002-10-24  Derek Price  <derek@ximbiot.com>

	* buffer.c (stdio_buffer_shutdown): Remove the getc() call used to
	detect spurious output from clients since getc() would sometimes
	block and hang indefinately if the client kept the conection open but
	sent no data.  Bug reports state that this hapened frequently with
	older clients connecting to 1.11.2 servers, especially when
	compression is enabled.
	(Original report from Mark D. Baushke <mdb@juniper.net>.
	 Original patch from Ralf S. Engelschall <rse@engelschall.com>
	 via Peter Wemm <peter@freebsd.org>.)

2002-10-05  Larry Jones  <lawrence.jones@eds.com>

	* recurse.c (start_recursion, do_recursion): Allow write locking
	in addition to read locking.  Change all callers.
	* cvs.h: Change prototype to match, add lock types.
	* tag.c (rtag_proc, rtag_fileproc, tag_fileproc): Have start_recursion
	use write locks rather than calling lock_dir_for_write to avoid deadly
	embrace.

2002-10-04  Larry Jones  <lawrence.jones@eds.com>

	* client.c (get_responses_and_close, connect_to_pserver): Set
	to_server and from_server to NULL after freeing.
	* main.c (main): Clear server_active when finished.  Also neaten
	up the SERVER_SUPPORT ifdef's.
	* server.c (do_cvs_command): Set protocol_inbuf, stderrbuf, and
	stdoutbuf to NULL after freeing.
	(server_cleanup): Free buf_from_net and buf_to_set and set to NULL.
	Also reset error_use_protocol.
	(server): Don't SIG_register server_cleanup.  main_cleanup (which
	is already registered) outputs a fatal error which causes it to
	be called; registering it directly results in it being called twice.
	(cvs_output): Don't try to use buf_to_net or protocol if they're NULL.

2002-10-03  Larry Jones  <lawrence.jones@eds.com>

	* lock.c (readers_exist): Ignore our own read lock, if any, to
	allow upgrading an existing read lock to a write lock.
	* tag.c (rtag_proc, rtag_fileproc, tag_fileproc): Rather than
	locking the entire tree, have start_recursion establish read
	locks and then upgrade the read lock to a write lock (so only
	one directory is locked at a time).

2002-09-27  Larry Jones  <lawrence.jones@eds.com>

	* add.c (add): Send "--" before file names.
	* admin.c (admin): Ditto.
	* annotate.c (annotate): Ditto.
	* commit.c (commit): Ditto.
	* diff.c (diff): Ditto.
	* edit.c (watch_onoff, editors): Ditto.
	* log.c (cvslog): Ditto.
	* remove.c (cvsremove): Ditto.
	* status.c (cvsstatus): Ditto.
	* tag.c (cvstag): Ditto.
	* update.c (update): Ditto.
	* watch.c (watch_addremove, watchers): Ditto.

	* sanity.sh (client-9): Update to match.

2002-09-24  Derek Price  <derek@ximbiot.com>

	* options.h: Remove prototype of STDC exit() function.  If this breaks
	a build, this should be detected in configure.in somehow rather than
	restoring the line to this file.

2002-09-24  Derek Price  <derek@ximbiot.com>

	* options.h: Move definition of AUTH_CLIENT_SUPPORT into configure.in.

2002-09-24  Derek Price  <derek@ximbiot.com>

	* options.h: Move definition of FORCE_USE_EDITOR into configure.in.

2002-09-24  Derek Price  <derek@ximbiot.com>

	* options.h: Move definition of UMASK_DFLT into configure.in.

2002-09-24  Derek Price  <derek@ximbiot.com>

	* Makefile.in: Regenerated using Automake 1.6.3.

2002-09-24  Larry Jones  <lawrence.jones@eds.com>

	* filesubr.c, history.c, import.c, rcs.c, update.c: Use
	HAVE_STRUCT_STAT_ST_BLKSIZE and HAVE_STRUCT_STAT_ST_RDEV instead of
	the obsolete HAVE_ST_BLKSIZE and HAVE_ST_RDEV.

2002-09-24  Derek Price  <derek@ximbiot.com>

	* options.h: Move definition of TMPDIR_DFLT into configure.in.

2002-09-24  Derek Price  <derek@ximbiot.com>

	* options.h: Move defininition of EDITOR_DFLT into configure.in.

	* Makefile.in: Regenerated.

2002-09-23  Jim Meyering  <meyering@lucent.com>

	If `cvs -d REPO commit ...' was used to override CVS/Root,
	then modified files in the directory from which cvs is invoked
	would not be committed.
	* client.c (arg_should_not_be_sent_to_server): The above would happen
	because this function would throw out a file name when CVS/Root
	did not match the current server.  Fix by allowing the command-line-
	specified repository to take precedence over the value returned
	by Name_Root.  Patch by Simon Walton <simonw@lucent.com>.
	* sanity.sh (commit-d): New tests for the above.
	Patch by Simon Walton <simonw@lucent.com>.

2002-09-20  Derek Price  <derek@ximbiot.com>

	* options.h: Move definition of SERVER_FLOWCONTROL, SERVER_HI_WATER,
	and SERVER_LO_WATER into configure.in.

2002-09-20  Derek Price  <derek@ximbiot.com>

	* options.h: Move definition of PATCH_PROGRAM to configure.in.

2002-09-18  Larry Jones  <lawrence.jones@eds.com>

	* client.c (call_in_directory): Don't create admin directory when
	exporting into an existing directory.
	(Reported by Jens Engel <Jens.Engel@marconi.com>.)
	* sanity.sh (basic2): New tests for above.

2002-09-16  Jim Meyering  <meyering@lucent.com>

	* server.c (do_cvs_command): Move declarations of locals, timeout and
	timeout_ptr, `up', out of enclosing `#ifdef SERVER_FLOWCONTROL' block.
	Otherwise, this file would not compile with SERVER_FLOWCONTROL
	turned off.  Patch by Ed Santiago <esm@ascend.com>.

2002-09-15  Larry Jones  <lawrence.jones@eds.com>

	* myndbm.c (mydbm_open): Open the file read/write rather than read-
	only if that's what the user asked for to ensure that the later open
	for write will succeed.
	(Patch submitted by Josh Lehan <cvs@krellan.com>.)

2002-08-28  Larry Jones  <lawrence.jones@eds.com>

	* logmsg.c (do_editor): Fix bug which prevented reusing log messages.
	(Reported by Eric Siegerman <erics@telepres.com>.)

2002-08-16  Derek Price  <derek@ximbiot.com>

	* create_adm.c (Create_Admin): Assume RELATIVE_REPOS is set.
	* server.c (outside_root): Add comment.
	* options.h: Remove RELATIVE_REPOS & CVS_BADROOT.
	* sanity.sh: Remove a lot of !RELATIVE_REPOS cruft from tests.

2002-08-14  Derek Price  <oberon@umich.edu>

	* server.c (server): Dispose of the correct pointer.  Tidy comment.

2002-08-13  Derek Price  <oberon@umich.edu>

	* client.c (get_cvs_port_number): Fix typo in comment.  Add comments.
	* server.c (server): Fix a FIXME.  Remove an errant "const" directive.
	Remove some redundant memory allocation and error handling code.

2002-08-08  Derek Price  <oberon@umich.edu>

	* import.c (import): Surrounded `server_active' with
	#ifdef SERVER_SUPPORT/#endif.
	* commit.c (commit_fileproc, commit_direntproc): Likewise.
	(Patch from John Tytgat  <John.Tytgat@aaug.net>.)

2002-07-31  Derek Price  <oberon@umich.edu>

	* filesubr.c: Add a line so VIM can determine tab stops and shift widths.
	* root.c: Ditto.
	* (parse_cvsroot): Add comments and tidy slightly.

2002-07-31  Derek Price  <oberon@umich.edu>

	* sanity.sh: Add another date to the comment about rcs2-7 failing.

2002-07-26  Jim Meyering  <meyering@lucent.com>

	* commit.c (find_fileproc): When committing in client mode,
	arrange to fail if a `cvs add'ed file no longer exists in the
	working directory.
	* sanity.sh (commit-add-missing): New test for above.

2002-07-25  Larry Jones  <lawrence.jones@eds.com>

	* sanity.sh: Set $TMPDIR if it's not already set and use it rather
	than /tmp for the expected server temp directory path.

2002-07-09  Larry Jones  <lawrence.jones@eds.com>

	* vers_ts.c (time_stamp_server, time_stamp): Eliminate unneeded
	struct_tm copying.

	* lock.c (lock_wait, lock_obtained): Display time in UTC if possible
	to reduce confusion in client/server mode.
	(Original patch from Eduardo Perez Ureta <eperez@it.uc3m.es>.)

2002-06-26  Larry Jones  <lawrence.jones@eds.com>

	* tag.c (check_fileproc): When checking up-to-date, T_REMOVE_ENTRY
	is also a valid status.
	(Reported by David Everly <David.Everly@wcom.com>.)
	* sanity.sh (tagc): New tests for above.

2002-06-18  Larry Jones  <lawrence.jones@eds.com>

	* update.c (patch_file): Don't patch if diff bigger than file.
	Don't bother adjusting the permission on the diff output if
	we're not going to use it.


2002-06-18  Derek Price  <oberon@umich.edu>

	* server.c: Handle HPUX password expiration fields in the passwd
	string in case we are set up on a server with NIS passwords served
	from HPUX.
	(Original patch from John Cavanaugh <john_cavanaugh@agilent.com>.)

2002-06-17  Larry Jones  <lawrence.jones@eds.com>
	    and Jonathan Kamens  <jik@kamens.brookline.ma.us>

	* commit.c (commit_fileproc, commit_direntproc): Don't try to call
	an editor to get the log message if running as a server.  Instead,
	just use an empty log message.
	* import.c (import): Ditto.

	* import.c (import): In client mode, always send a message to the
	server, even if it's empty (this parallels a change made by Larry
	Jones to commit.c on May 7).

2002-05-31  Larry Jones  <lawrence.jones@eds.com>

	* rcs.c: Conditionally define MAP_FAILED for old systems that don't
	have it in <mman.h>.
	(Reported by jeremy brand <jeremy@earth.care2.com>.)

2002-05-24  Larry Jones  <lawrence.jones@eds.com>

	* rcscmds.c (diff_exec): Add a -- before the first file name just
	in case it looks like an option.
	(Reported by Zooko <zooko@zooko.com>.)

	* rcscmds.c (diff_execv): Remove -- same as diff_exec.  Change
	only caller.
	* cvs.h: Ditto.

2002-05-23  Larry Jones  <lawrence.jones@eds.com>

	* cvs.h (strcat_filename_onto_homedir): Make arguments const.
	* filesubr.c (strcat_filename_onto_homedir): Make arguments const,
	move more code here from callers, change all callers.

2002-05-22  Derek Price  <oberon@umich.edu>

	* cvs.h: Add prototype for this...
	* filesubr.c (strcat_filename_onto_homedir): new function.
	* login.c (): Use new function.

	* cvsrc.c (read_cvsrc): Use new function due to problems on VMS.
	* ignore.c (ign_setup): Ditto.
	* wrapper.c (wrap_setup): Ditto.
	(Original patch from Karsten Spang <ksp@dannet.dk>.)

2002-05-21  Larry Jones  <lawrence.jones@eds.com>

	* rcs.c (rcsbuf_getkey): Correct off-by-one error in ptr assertion
	and add a similar assertion for ptrend.
	(Reported by Rebecca Young <raygirl@cvshome.org>.)
	(rcsbuf_fill): Remove redundant code.

2002-05-20  Derek Price  <oberon@umich.edu>

	* buffer.h: New prototype for...
	* buffer.c (stdio_buffer_get_file): this new function to abstract
	access to a buffer's file descriptor.
	* client.c (auth_server): Use the new function.
	(Original patch from Jonathan Kamens <jik@kamens.brookline.ma.us>.)

2002-05-20  Derek Price  <oberon@umich.edu>

	* main.c (main): Add 2002 to the copyright years output with the
	version string.

2002-05-15  Larry Jones  <lawrence.jones@eds.com>

	* log.c (log_parse_list): Fix off-by-one error which caused
	incorrect handling of 'cvs log -wuser1,user2 foo.c' command.
	(Patch from Alexey Mahotkin <alexm@hsys.msk.ru>,
	reported by Alex Morozov <morozov@novosoft.ru>.)

2002-05-09  Larry Jones  <lawrence.jones@eds.com>

	* login.c (password_entry_operation): Get cvsroot_canonical before
	trying to read the user's password file so we have it even if the
	file doesn't exist.
	(Reported by Sarah Thompson <sthompson@fsl.noaa.gov>.)

2002-05-08  Derek Price  <oberon@umich.edu>

	* Makefile.am (cvs_SOURCES): Add options.h explicitly - since we
	stopped generating it dynamically, Automake stopped noticing it and
	including it in dists.  See TODO item #214 for notes.

2002-05-08  Derek Price  <oberon@umich.edu>

	* cvs.h: Use the HAVE_CONFIG_H define.

2002-05-07  Larry Jones  <lawrence.jones@eds.com>

	* filesubr.c (isaccessible): Set errno before returning failure
	in the SETXID_SUPPORT code.

	* logmsg (do_verify): Avoid even more work if there's no verifymsg
	script to run.

	* logmsg: Use fputs/putc rather than fprintf where appropriate.
	(do_verify): Run the verifymsg script even if there's no log
	message.  (Reported by Andy Baker <Andy.Baker2@t-mobile.co.uk>.)
	Don't reread the log message unless a verifymsg script was run.

	* commit.c (commit): Always send -m to the server, even if there's
	no message.

	* create_adm.c (Create_Admin): Add dotemplate parameter to trace.
	Remove unreachable code.

2002-05-03  Larry Jones  <lawrence.jones@eds.com>

	* server.c (serve_watch_on, serve_watch_off, serve_watch_add,
	 serve_watch_remove): Just pass "watch" as the command name
	 to do_cvs_command to avoid unknown command errors.
	 (Reported by Gary Hennigan <gary@ieee.org>.)

	* rcs.c (RCS_checkin): Fix bad call to error () in buggy
	PRESERVE_PERMISSIONS code.
	(rcs_internal_unlockfile): Include current value of errno in error
	message even though it may well be irrelevant (it's still better
	than nothing).

2002-05-02  Derek Price  <oberon@umich.edu>

	* .cvsignore: Remove lines for files obsoleted by new autotools.

2002-05-02  Derek Price  <oberon@umich.edu>

	* stamp-h2.in: Remove this uneeded file.

2002-05-01  Derek Price  <oberon@umich.edu>

	* options.h.in: Move to...
	* options.h: here.

2002-04-30  Derek Price  <oberon@umich.edu>

	* version.h.in: Remove this file.
	* version.h: Ditto.

	* Makefile.am: Remove references to version.h.
	* cvs.h: Use <> rather than "" around the config.h #include.  I didn't
	quite bother to understand why, but autoconf recommends it.
	* cvsbug.in: Use PACKAGE_BUGREPORT defined by configure for the bug
	report email address.
	* version.c (version): Use PACKAGE_STRING defined in config.h instead
	of the version_string that used to be defined in version.h.

	* Makefile.in: Regenerated with automake 1.6.

2002-04-28  Derek Price  <oberon@umich.edu>

	* cvs.h: Use `"'s around includes when we mean a local file.

2002-04-28  Derek Price  <oberon@umich.edu>

	* cvs.h: #define new names for functions and variables when they
	might conflict with system definitions (namely on Mac OS X 10.1 with
	the most recent dev packages - This should be removable after the Mac
	dev packages are fixed.).

2002-04-26  Larry Jones  <larry.jones@sdrc.com>

	* logmsg.c (do_editor): Fix assertion when CLIENT_SUPPORT not defined.
	(Reported by Matthias Andree <matthias.andree@stud.uni-dortmund.de>.)

2002-04-19  Larry Jones  <larry.jones@sdrc.com>

	* log.c (log_expand_revlist): First cut at code to allow logging
	between a revision and *any* ancestor, not just one explicitly on
	the same branch (e.g., from 1.1 to 4.1.2.3.6.1).

	* subr.c (gca): Simplify and optimize.

2002-04-19  Jim Meyering  <meyering@lucent.com>
	and Ed Santiago <easm@lucent.com>

	* classify.c (Classify_File): Fix it so that `cvs update -p -r...'
	works, even under some slightly unusual (though perfectly legitimate)
	circumstances.
	* sanity.sh (update-p): New tests for this.

2002-04-18  Derek Price  <oberon@umich.edu>

	* sanity.sh: Move test for regex metacharacters in username until
	after we're sure we found the version of expr that we're going to use.

2002-04-18  Larry Jones  <larry.jones@sdrc.com>

	* admin.c (admin_fileproc): Allow admin to be used on RCS files with
	no local version (e.g., removed files) like most other subcommands.

	* wrapper.c (wrap_add): Update URL of -t/-f wrapper discussion.

2002-04-18  Derek Price  <oberon@umich.edu>

	* version.h: Regenerated for 1.11.2.1 version update.

2002-04-17  Derek Price  <oberon@umich.edu>

	* version.h: Regenerated for 1.11.2.

2002-04-03  Derek Price  <oberon@umich.edu>

	* stamp-h2.in: Regenerate with recent version of Autoconf.

2002-04-03  Derek Price  <oberon@umich.edu>

	* sanity.sh (TR): Send the stderr of one of the tool setup (tr) tests
	to /dev/null to avoid spurious output on some operating systems
	(notably Mac OS X).

2002-03-22  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (rcslib): Correct new tests to use ${testcvs} instead
	of cvs.

2002-03-21  Derek Price  <oberon@umich.edu>

	* vers_ts.c (time_stamp): Return the timestamp for the newer of the
	link and the link's source when the file is a link.
	(Patch from RedHat cvs-1.11.1p1-7 SRPM.)

	* sanity.sh (rcslib): Test for same.

2002-03-17  Larry Jones  <larry.jones@sdrc.com>

	* log.c (cvslog, log_fileproc): Add -S option to suppress head or
	file name if no revisions selected.
	* sanity.sh (log): New tests for above.

2002-03-13  Derek Price  <oberon@umich.edu>

	* main.c (usg): Correct a spelling mistake in a comment.
	(Thanks to Matt Kraai <kraai@alumni.cmu.edu>.)

2002-03-09  Larry Jones  <larry.jones@sdrc.com>

	* import.c (import): Change the suggested merge message to use
	rev tags instead of the branch tag with a date.
	* sanity.sh (import, importb): Change to match.

	* remove.c (remove_fileproc): Disallow removing files with sticky
	dates for the same reason we already disallow sticky numeric tags.
	* sanity.sh (sticky): New test for above.

2002-02-27  Larry Jones  <larry.jones@sdrc.com>

	* diff.c (diff_fileproc): Treat dead revisions as nonexistent.

2002-02-26  Larry Jones  <larry.jones@sdrc.com>

	* diff.c (diff): Remove -V and --paginate options: they aren't valid.
	(diff_usage): Document all the diff options.

2002-02-13  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c (RCS_gettag): Do not interpret an empty tag as HEAD (nothing
	else does and I don't see any documentation that says it should).
	(translate_symtag): Break out of loop at end of symbols to prevent
	looping forever when tag is "".
	(Reported by Alain ENOUT <aln00@udcast.com>
	via Eric Gillespie <epg@pretzelnet.org>.)

2002-02-11  Larry Jones  <larry.jones@sdrc.com>

	* server.c (server_cleanup): Set buf_to_net back to blocking mode
	and flush it (in case there are any error messages pending) before
	shutting down buf_from_net and again right before shutting it down.

2002-02-08  Larry Jones  <larry.jones@sdrc.com>

	* main.c (lookup_command_attribute): Throw a fatal error if the
	command is not found.
	* server.c (server_tag): Use the correct command name.

2002-01-30  Larry Jones  <larry.jones@sdrc.com>

	* error.h (error_exit): Remove unintended prototype.

	* server.c (serve_root): Remove check for impossible condition.
	(serve_init): Save and restore current_parsed_root.

2002-01-29  Larry Jones  <larry.jones@sdrc.com>

	* error.h (error_exit): Declare __noreturn__ to avoid spurious
	warnings.

	* server.c (serve_root): If the specified root doesn't match the
	pserver root, return before changing current_parsed_root to prevent
	subsequent commands from accessing an unchecked root directory.
	(server_init): Check specified root against the pserver root and
	complain if they don't match.  Also, if there are pending errors,
	print them and return before changing current_parsed_root to prevent
	subsequent commands from accessing an unchecked root directory.
	* sanity.sh (pserver): New tests for above.

2002-01-10  Larry Jones  <larry.jones@sdrc.com>

	* log.c (log_version_requested): Change :: in revision spec to be
	exclusive just on the low end (so -r tag1::tag2 gives revisions
	after tag1 but up to and including tag2), which is much more useful
	than the previous (exclusive at both ends) behavior.
	(log_usage): Update to match.
	* sanity.sh (log): Update to match.

2002-01-02  Larry Jones  <larry.jones@sdrc.com>

	* server.c (LOG_DAEMON): Define if needed.
	(Patch from John David Anglin <dave@hiauly1.hia.nrc.ca>.)

	* server.c (pserver_authenticate_connection): Add a specific error
	message for EOF at protocol start and syslog if available.
	* sanity.sh (pserver-bufinit): Update to match.

2001-12-10  Larry Jones  <larry.jones@sdrc.com>

	* log.c (log_usage): Note that -r and -d take lists, not just a
	single specification.
	(log_expand_revlist): Don't dereference null pointers when one end
	of a revision range is a non-existent tag.

2001-12-03  Larry Jones  <larry.jones@sdrc.com>

	* annotate.c (annotate, annotate_fileproc): Don't annotate binary
	files unless new -F option given.
	* sanity.sh (basica, ann, ann-id, rcs, keywordlog, tagdate): Update
	to match.

2001-11-30  Larry Jones  <larry.jones@sdrc.com>

	* admin.c (admin): Allow unrestricted usage of -q in addition to -k.

2001-10-25  Larry Jones  <larry.jones@sdrc.com>

	* log.c (log_expand_revlist): Make erroneous or inconsistent revision
	specs select no revisions rather than all revisions.

2001-10-23  Larry Jones  <larry.jones@sdrc.com>

	* import.c (add_rcs_file): Don't put an expand entry into the file
	for the default expansion mode (kv).
	* wrapper.c (wrap_send, wrap_unparse_rcs_options): Process entries
	with default expansion mode since they may be needed to avoid matching
	a more general entry later.
	(wrap_add): Set rcsOption to NULL for default (kv).
	(wrap_add_entry): Use structure assignment to copy entries rather
	that copying members by hand.
	* sanity.sh (binwrap3): Revise to test wrapper entries that don't
	specify any non-default options but just prevent matching later,
	more general entries.

2001-10-02  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c (RCS_fully_parse): Add revision number to more error messages.

2001-09-27  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c (RCS_fully_parse, RCS_getdeltatext): Add the missing revision
	number to the "mismatch" error message.

	* sanity.sh (multiroot2-9a): Update to match changes to lock.c.

2001-09-26  Larry Jones  <larry.jones@sdrc.com>

	* lock.c (Lock_Cleanup, Reader_Lock, write_lock): Add trace messages.

2001-09-24  Derek Price  <dprice@collab.net>

        * find_names.c (add_entries_proc): Leave closure specified as such in the
	function definition for clarity.

        * find_names.c (Find_Names): Use 'closure' feature of walklist()
        to eliminate the static variable.
	(add_entries_proc): Expect closure to be the file list.
	(Patch from Alexey Mahotkin  <alexm@hsys.msk.ru>.)

2001-09-19  Derek Price  <dprice@collab.net>

	* rcs.c (rcsbuf_valpolish_internal): Restore one of the
	"if ( ... ) abort();" sequences since it seems to check the validity of
	the RCS file rather than for a programming error.  Also added a FIXME
	comment to the effect that we should explain the RCS file error to the
	user as such if it is such.
	(Thanks to Larry Jones  <scjones@sdrc.com>.)

2001-09-19  Derek Price  <dprice@collab.net>

	* rcs.c (rcsbuf_getkey, rcsbuf_valpolish_internal): Replace some code
	of the form "if ( ... ) abort();" with equivalent calls to assert().

2001-09-17  Derek Price  <dprice@collab.net>

	* myndbm.c (mydbm_load_file): Fix buffer overflow error and make error
	messages more informative.
	* sanity.sh (modules6): New test.
	(Original report from Taska <taska@collab.net> and others.)

2001-09-14  Derek Price  <dprice@collab.net>

	* logmsg.c (do_verify): Dispose memory when finished with it.

2001-09-07  Larry Jones  <larry.jones@sdrc.com>

	* mkmodules.c (notify_contents): In the example, move the %s to
	the end since many, if not most, versions of mail insist on
	options coming before addresses.

2001-09-06  Derek Price  <dprice@collab.net>

	* login.c (login): Deal with NULL return value from getpass.

2001-09-04  Derek Price  <dprice@collab.net>

	* Makefile.in: Regenerated with automake 1.5.
	* stamp-h2.in: Ditto.

2001-09-04  Derek Price  <dprice@collab.net>

	* main.c (main): Fix empty CVSROOT message to specify `valid' instead
	of `legal'.

2001-09-04  Derek Price  <dprice@collab.net>

	* server.c (pserver_authenticate_connection): Back out changes from the
	30th and...
	* getline.c (getstr): init the buffer instead.

2001-08-31  Derek Price  <dprice@collab.net>

	* Makefile.in: Backed out accidental commit from yesterday.

2001-08-30  Derek Price  <dprice@collab.net>

	* server.c (pserver_authenticate_connection): Don't print from the
	NULL pointer in the error message string in the case where the client
	didn't send any data.
	* sanity.sh (pserver): Test for this case.
	(Report from Mark Welch <mark@collab.net>).

2001-08-24  Derek Price  <dprice@collab.net>

	* logmsg.c (do_editor): Add comment and assertion.
	* import.c (import): Don't call do_editor with a repository argument
	in client mode.
	(Report and original patch from darkness <darkness@invado.com>.)

2001-08-24  Larry Jones  <larry.jones@sdrc.com>

	* log.c (log_expand_revlist): Arrange for nil revision specs to
	select nothing instead of everything.
	* sanity.sh (log): New tests for above.

2001-08-24  Derek Price  <dprice@collab.net>

	* parseinfo.c (Parse_Info): Change the function name in the trace
	and add the client/server string.

2001-08-24  Derek Price  <dprice@collab.net>

	* Implement RereadLogAfterVerify CVSROOT/config option to control
	FreeBSD read-write of log messages in the verification script.
	* logmsg.c: RereadLogAfterVerify defaults to LOGMSG_REREAD_NEVER
	to preserve the status quo.
	* parseinfo.c (parse_config): Add parsing for RereadLogAfterVerify
	option. Possible values are: no | never | yes | always | stat
	* cvs.h: Add extern for RereadLogAfterVerify and new value macros
	LOGMSG_REREAD_NEVER, LOGMSG_REREAD_ALWAYS, LOGMSG_REREAD_STAT for
	its values.
	(Patch from Mark D. Baushke  <mdb@cvshome.org>.)

	* Apply changes from FreeBSD cvs sources to implement a read-write
	user-defined verification script.
	* logmsg.c (do_verify): Update do_verify to expect a pointer
	to the saved message. The log file passed to the verifymsg_script
	should be re-read after the user-defined verification script has
	been run. The user-defined verification script is allowed to
	modify the message.  This allows the script to add extra
	information to the log message or to remove template lines that
	are not needed.
	* cvs.h: Update prototype for do_verify prototype to expect a
	pointer to the saved_message.
	* commit.c (commit, commit_fileproc, commit_direntproc): Update
	calls to do_verify as the saved_message arg is now read-write.
	* import.c (import):  Update calls to do_verify as the
	saved_message arg is now read-write.
	* sanity.sh (info-v4-[12]): Rename the old info-v4 test to info-v5
	and add a new info-v4 test case have the verification script
	modify the log message to test the above changes.
	(Patch from Mark D. Baushke  <mdb@cvshome.org>.)

	* logmsg.c: Change RereadLogAfterVerify default to always.
	(do_verify): Reformat and make minor fixes to Mark's patch.
	* mkmodules.c (config_constants): Add comment about
	RereadLogAfterVerify.
	* sanity.sh (info-rereadlog): Rename the tests from Mark's patch and
	reformat them a bit.

2001-08-23  Derek Price  <dprice@collab.net>

	* sanity.sh (info): Demonstrate that the verifymsg scripts can
	sometimes, but not always, retreive information on which directory is
	being committed to.

2001-08-22  Derek Price  <dprice@collab.net>

	* logmsg.c: Back out the last change - the repository which is passed
	in is actually the directory and changes with each call to do_verify.
	If a verifymsg script is using `pwd`, this could change the operation.
	* cvs.h: Ditto.
	* commit.c: Ditto.
	* import.c: Ditto.

2001-08-22  Derek Price  <dprice@collab.net>

	* logmsg.c (do_editor): Return reused_message.
	(do_verify): Don't verify the same log message more than once.
	* cvs.h: Update prototypes for do_verify and do_editor.
	* commit.c (commit_fileproc, commit_direntproc): Use the new functionality.
	* import.c (import): Ditto.

2001-08-22  Derek Price  <dprice@collab.net>

	* logmsg.c (do_verify): Remove an unecessary "else" clause following an
	exit and unindent the former contents.

2001-08-22  Derek Price  <dprice@collab.net>

	* commit.c (commit): Don't call do_verify in client mode since we know
	do_verify will just return anyhow.

2001-08-20  Derek Price  <dprice@collab.net>

	* Makefile.am (cvs_SOURCES): Add version.c and version.h.
	(BUILT_SOURCES): Add version.h.
	(Maintainer Targets): Remove version.h.
	* version.c: Remove @VERSION@ dependant bits.
	* version.c.in: Removed.
	* version.h.in: New file.
	(Original patch from Alexey Mahotkin <alexm@hsys.msk.ru>.)

	* Makefile.am: Various modifications to make Automake, make dist, and
	windows targets work like they are supposed to.
	* version.h: New (generated) file.

	* Makefile.in: Regenerated.

2001-08-09  Derek Price  <dprice@collab.net>

	* client.c (socket_buffer_shutdown): Use recv instead of read and
	return 0 on success.
	(Patch from "Manfred Klug" <manklu@web.de>.)

2001-08-09  Derek Price  <dprice@collab.net>

	* buffer.c (stdio_buffer_shutdown): Assume the buffer is not a socket
	when NO_SOCKET_TO_FD is defined.
	* client.c (make_bufs_from_fds): Add is_sock argument and remove fstat
	call and reference to S_ISSOCK since these functions aren't available
	under Windows.
	(connect_to_forked_server, connect_to_pserver, start_tcp_server,
	start_server, start_rsh_server): Use new argument.
	(Patch from "Manfred Klug" <manklu@web.de>.)

	* buffer.c (stdio_buffer_shutdown): Various reformattings, fix bug
	where rsh pipes weren't being closed.

2001-08-09  Derek Price  <dprice@collab.net>

	* sanity.sh (rmadd, rm-update-message, join-two-branch,
	ignore-on-branch): Change a few references to `cvs' to `$PROG'.

2001-08-07  Derek Price  <dprice@collab.net>

	* build_src.com: Add annotate.c/annotate.obj,verify, correct zlib name.
	* patch.c: VMS time_t appears to be unsigned.   Add a cast when testing
	for (time_t)-1.
	* subr.c: #else,#endif for no symlinks should be moved.
	(Patch from Mike Marciniszyn <Mike.Marciniszyn@sanchez.com>.)

2001-08-06  Derek Price  <dprice@collab.net>

	* Makefile.in: Regenerated.

2001-08-01  Derek Price  <dprice@collab.net>

	* diff.c (diff): Send long option for side-by-side diffs to the server
	rather than '-y', for backwards compatibility with old servers.
	(Original patch from Peter Mathiasson <peter@mathiasson.nu>.)

2001-07-19  Larry Jones  <larry.jones@sdrc.com>

	* mkmodules.c (cvswrappers_contents): Remove -t/-f since they're
	disabled in wrapper.c.

	* checkout.c (checkout): Don't complain about checking out into the
	repository when piping output.
	(Reported by der Mouse <mouse@Rodents.Montreal.QC.CA>.)
	* sanity.sh (checkout_repository): New tests for above.

2001-07-10  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (importc-7): Now works correctly in local mode.

	* commit.c (commit_dirleaveproc): We're still in the directory when
	this is called, so the first argument to Name_Repository needs to
	be NULL, not dir.
	* sanity.sh (rmadd): New tests for above.

	* commit.c (commit): Reword error messages for committing as root.

2001-07-08  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c (RCS_checkout): Correct scanf format to allow for trailing
	NUL terminator.
	* update.c (special_file_mismatch): Ditto.
	(Reported by Pekka Savola <pekkas@netcore.fi>.)

2001-07-05  Larry Jones  <larry.jones@sdrc.com>

	* client.c, root.c: Fix -Wall warnings.

	* buffer.c: #include socket header to declare shutdown().

	* rcs.c (rcsbuf_open): Use getpagesize() instead of sysconf() for
	portability.
	(RCS_copydeltas, rcsbuf_fill): Fix -Wall warnings.

2001-07-04  Derek Price  <dprice@collab.net>

	* Makefile.in: Regenerated with new Automake release candidate 1.4h.

2001-07-03  Derek Price  <dprice@collab.net>

	* rcs.c (rcsbuf_open): Reduce memory consumption still further by not
	mmapping the entire file when pos is specified.
	(rcsbuf_cache_open): Add FIXME comment wrt read-only mmaps and rcsbuf
	caching.

2001-07-03  Derek Price  <dprice@collab.net>

	* rcs.c (rcsbuf_open): Use mmap when possible to reduce memory
	consumption, especially with large (e.g. binary) files.
	(rcsbuf_close): Call munmap.
	(rcsbuf_getkey): Remove the buffer fill code when using mmap.
	(rcsbuf_getrevnum): Ditto.
	(rcsbuf_fill): Remove this function when using mmap.
	(rcsbuf_cache_open): Mostly don't use this function with mmap.
	(RCS_copydeltas): Don't depend on the file pointer with mmap.

	* stamp-h2.in: Regenerated.

2001-07-03  Derek Price  <dprice@collab.net>

	* update.c: Indent compiler directives.

2001-07-02  Larry Jones  <larry.jones@sdrc.com>

	* import.c (update_rcs_file): Use -kb instead of -ko when comparing
	binary files.
	(Reported by Gyula Faller <gfaller@graphisoft.hu>.)

2001-06-28  Larry Jones  <larry.jones@sdrc.com>

	* checkout.c (checkout): Explicitly initialize all the static options
	so that multiple calls work right.  Also fix potential memory leaks.
	(Reported by Dr. Dieter Maurer <dieter@sz-sb.de>.)

2001-06-28  Derek Price  <dprice@collab.net>

	* Makefile.in: Regenerated with new version of Automake.

2001-06-28  Larry Jones  <larry.jones@sdrc.com>

	* checkout.c (checkout): Set history_name for export as well as
	checkout.
	(checkout_proc): Use it.

	* checkout.c (safe_location): Add missing argument in error message.

2001-06-26  Larry Jones  <larry.jones@sdrc.com>

	* recurse.c (start_recursion): Use strip_trailing_slashes instead
	of doing it by hand.

	* server.c (pserver_authenticate_connection): Don't clear out
	descrambled_password until *after* it's (potentially) logged.
	(Reported by Eric Hanchrow <offby1@blarg.net>.)

2001-06-25  Larry Jones  <larry.jones@sdrc.com>

	* recurse.c (start_recursion): Deal with at least some of the cases
	where trailing slashes cause confusion.
	(Reported by Malcolm Fernandes <fernande@redback.com>.)
	* sanity.sh (basica, basicb): Tweak existing tests to check this.

2001-06-22  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (modules5): New tests with -d on command line.

2001-06-21  Larry Jones  <larry.jones@sdrc.com>

	* modules.c (do_module): Use run_module_prog and server_active to
	determine when to call server_prog instead of using server_expanding
	so that we get the right paths in the replies as long as we take
	mwhere into account in addition to where.
	(Reported by Pascal Bourguignon <pjb@informatimago.com>.)
	* server.c (server_prog): Use protocol pipe instead of buf_to_net.
	* sanity.sh (modules5): Remove FIXCVS comment and update to match.
	* server.c, server.h: Remove server_expanding since now unused.

2001-06-21  Larry Jones  <larry.jones@sdrc.com>
        for Stephen Rasku  <stephen@tgivan.com>

	* admin.c: Corrected spelling mistakes in help.

2001-06-20  Derek Price  <dprice@collab.net>

	* client.c (socket_buffer_shutdown): Fix untested typos.
	(Reported by "Jerzy Kaczorowski" <jerzyk@wndtabs.com>.)

	* buffer.c (stdio_buffer_shutdown): Put the call to SHUTDOWN_SERVER in
	the correct place.

2001-06-20  Derek Price  <dprice@collab.net>

	* logmsg.c (do_editor): Abort in the case that the file has only
	comment lines.
	(Original patch from Mark Valentine <mark@thuvia.demon.co.uk>.)

	* logmsg.c (do_editor): Fix rare memory leak.
	* sanity.sh (editor): Add tests for aborted log messages.

2001-06-20  Larry Jones  <larry.jones@sdrc.com>

	* server.c (switch_to_user): Only set $CVS_USER if
	AUTH_SERVER_SUPPORT is defined.
	(Reported by Nalin Dahyabhai <nalin@blade.devel.redhat.com>.)

2001-06-13  Derek Price  <dprice@collab.net>

        * client.c: Fix incorrect fixed-size buffer usage in
        connect_to_gserver().
	(Minor changes to a patch from Alexey Mahotkin  <alexm@hsys.msk.ru>.)

2001-06-11  Derek Price  <dprice@collab.net>

	* main.c (main): Always print $CVSROOT when parse_cvsroot fails.
	* root.c (parse_cvsroot): Tidy error messages and provide more
	consistent behavior.
	* sanity.sh (crerepos): Adapt to new error messages.
	(Suggested by  Alexey Mahotkin <alexm@hsys.msk.ru>.)

2001-06-08  Derek Price  <dprice@collab.net>

	* sanity.sh (tagf-28): Use $CVSROOT_DIRNAME.

2001-06-07  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c (RCS_unlock): Reverse kj's change of 1999-10-18: a bare -u
	should never break locks, you have to specify a specific revision
	to do that.  Also add an informative message for a bare -u when
	the user doesn't hold any locks.
	* commit.c (unlockrcs): Make RCS_unlock quiet, like RCS_lock.
	* sanity.sh (rmadd-24): Update to match.

	* sanity.sh (crerepos-6a): Set CVS_RSH for ${testcvs}, not for
	dotest_fail.  Allow for "broken pipe" rather than "end of file".

2001-06-07  Derek Price  <dprice@collab.net>

	* sanity.sh (tagf): Use $CVSROOT_DIRNAME rather than
	/tmp/cvs-sanity/cvsroot.

2001-06-06  Derek Price  <dprice@collab.net>

	(Reformatting, bug fixes, tests, and comments to a
	patch from Stephen Cameron <steve.cameron@compaq.com>.)

	* tag.c: (rtag_fileproc, rtag_delete, tag_fileproc)
	  Changed behavior of "cvs tag -F", "cvs tag -d", "cvs rtag -F"
	  and "cvs rtag -d" so that they will not disturb existing
	  branch tags unless a new "-B" option is given.
	* sanity.sh (tagf-16 - tagf-33): Added tests for new -B option
	  to "cvs tag" and "cvs rtag"

2001-06-06  Derek Price  <dprice@collab.net>

	* sanity.sh (crerepos-6a): Set CVS_RSH=false and only for the actual
	test call at Larry's suggestion.  Also, test the error message since
	it's fixed now.

2001-06-05  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c (RCS_unlock): Note when breaking someone else's lock.
	(Reported by MURVAI-BUZOGANY Laszlo
	<Laszlo.MURVAI-BUZOGANY@gt-systems.hu>.)
	* sanity.sh (reserved-14): Update to match.

2001-06-05  Derek Price  <dprice@collab.net>

	* sanity.sh (crerepos-6a): Set CVS_RSH=/bin/false...  this is a local
	mode only test anyhow.
	(Thanks to Larry Jones and Morgan Burke <morgan@sitka.triumf.ca>.)

2001-05-31  Derek Price  <dprice@collab.net>

	* sanity.sh (rcs2-7): Add today to the list of failure dates for rcs2-7
	in the hopes that the data will eventually prove useful to someone
	motivated enough to fix the problem.

2001-05-30  Derek Price  <dprice@collab.net>

	* stamp-h2.in: Regenerated.

2001-05-30  Derek Price  <dprice@collab.net>

	* *: Various bug fixes and comments for the following
	patch from Donald Sharp <sharpd@cisco.com>:

	* checkout.c (safe_location): cvs co -d <directory> still had
	failure modes from the way the -d option works.
	* sanity.sh: Misc error message resynching.

2001-05-29  Derek Price  <dprice@collab.net>

	* Makefile.am (cvs_SOURCES): Add root.h.

	* Makefile.in: Regenerated.
	* stamp-h2.in: Regenerated.

2001-05-29  Derek Price  <dprice@collab.net>

	* checkout.c (safe_location): Correct formatting.

2001-05-29  Derek Price  <dprice@collab.net>

	* root.c (parse_cvsroot): Fix a comment.

2001-05-26  Larry Jones  <larry.jones@sdrc.com>

	* checkout.c (safe_location): Use old-style definition to keep
	non-ANSI compilers happy.

	* sanity.sh (check_respository): Use ${CVSROOT_DIRNAME} instead
	of /tmp/cvs-sanity/cvsroot.

2001-05-25  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (modules5): Add sleep to script to help avoid out of
	order messages.

	* filesubr.c (mkdir_if_needed): Return 1 if the directory exists
	reguardless of what errno is set to.
	(Reported by "Robinson, Greg" <greg.robinson@dsto.defence.gov.au>.)

2001-05-25  Derek Price  <dprice@collab.net>
	for Donald Sharp  <sharpd@cisco.com>

	* checkout.c:  Modified safe_location() to refuse checkout if
	the -d option to co specifies inside of the repository.
	* import.c:  New parameter to safe_location needed to be added.
	* cvs.h:  New parameter to safe_location needed to be added.
	* sanity.sh:  Test case to test for failure mode.

2001-05-23  Larry Jones  <larry.jones@sdrc.com>

	* checkout.c (checkout_proc): Don't build top_level_admin directory
	when exporting.
	(Reported by Tony Byrne <tonyb@directski.com>.)

2001-05-21  Derek Price  <dprice@collab.net>

	* client.c: Fix a mispelling in a comment.
	(Patch from Alexey Mahotkin <alexm@hsys.msk.ru>).

2001-05-05  Larry Jones  <larry.jones@sdrc.com>

	* login.c (password_entry_operation): Only warn if unable to open
	.cvspass for reading: may be initial login and it doesn't exist yet.

2001-05-15  Derek Price  <dprice@collab.net>

	* client.c (start_tcp_server): Use the struct sockaddr_in declared in
	the function.
	(Reported by Emil Isberg <isberg@dynarc.se>.)

2001-05-05  Larry Jones  <larry.jones@sdrc.com>

	* annotate.c (annotate): Pass local to do_module and rannotate_proc
	so that -l actually works.
	* log.c (cvslog): Ditto.
	* patch.c (patch): Ditto; make local local instead of global.
	(patch_proc): Use local_specified parameter instead of global.
	* tag.c (cvstag, rtag_proc): Ditto.

2001-05-05  Larry Jones  <larry.jones@sdrc.com>

	* client.h: Declare "struct buffer" outside prototype for __STDC__
	compilers.

2001-05-04  Derek Price  <dprice@collab.net>

	* client.c:  General refactoring.  Removed several global variables in
	favor of passing locals and/or dynamic evaluation.
	(recv_line): Removed this function.
	(make_bufs_from_fds): New function with factored code.
	(connect_to_forked_server): New prototype.  Use new functions.
	(connect_to_pserver): New prototype.  Use new functions.
	(connect_to_gserver): New prototype.  Use new API.
	(auth_server): Factored this portion of the pserver code so it can be
	shared.  Rewrote to use buffers rather than depending on a socket.
	(start_rsh_server): New prototype.  Use new API.
	(start_tcp_server): New prototype.  Use new API.
	(start_server): Factor some code.  Use new API.
	* client.h: New prototypes.
	* cvs.h: Gratuitous reformatting.  Use new root.h.
	* login.c (login): Use new connect_to_pserver API.
	* root.h: New file.  Contains some code that used to be in cvs.h.

2001-05-04  Derek Price  <dprice@collab.net>

	* client.c: Gratuitous reformatting.
	* client.h: Ditto.

2001-05-04  Derek Price  <dprice@collab.net>

	* zlib.c (compress_buffer_shutdown_input): Use new buffer shutdown
	prototype.
	(compress_buffer_shutdown_output): Ditto.
	(Thanks to Pavel Roskin <proski@gnu.org>.)

2001-05-03  Derek Price  <dprice@collab.net>

	* buffer.c (struct stdio_buffer_closure): New structure to hold a
	FILE * and the child's PID when necessary.
	(stdio_buffer_initialize): Change proto to accept PID.  Set up new
	closure.  Pass new stdio_buffer_shutdown to buf_initialize.
	(stdio_buffer_input): Use new closure.
	(stdio_buffer_output): Ditto.
	(stdio_buffer_flush): Ditto.
	(stdio_buffer_shutdown): New function.  Teach buffer to close itself.
	(packetizing_buffer_shutdown): Use new buffer shutdown proto.
	* buffer.h (struct buffer): New buffer shutdown proto.
	(stdio_buffer_initialize): New proto.
	* client.c (log_buffer_shutdown): Use new proto.
	(socket_buffer_initialize): Pass shutdown func.
	(socket_buffer_shutdown): New function.
	* server.c (get_responses_and_close): Remove most of the guts.  Rely
	on the buffer shutdown function from now on.
	(start_rsh_server): Return child PID.

2001-05-03  Larry Jones  <larry.jones@sdrc.com>

	* history.c (history_write): Handle the case where the user's home
	directory doesn't exist gracefully instead of erroring out.
	(Reported by David Hoover <dhoover@cadence.com>.)

2001-05-03  Derek Price  <dprice@collab.net>

	* cvs.h: s/allocate_and_strcat/xrealloc_and_strcat/ since that is what
	I wrote in the ChangeLog, oh, so long ago.
	* diff.c (diff): Ditto.
	* subr.c (allocate_and_strcat, xrealloc_and_strcat): Ditto.

2001-05-02  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c (RCS_getdate): Handle the (unusual!) case where we
	can't find any revisions at all.
	(Reported by Ryan Grow <rgrow@Dbdoctor.net>.)

2001-04-30  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (multiroot2-9a): Rename (from multiroot2-9) to avoid
	duplicate names; fix to work without SERVER_SUPPORT defined.
	(Reported by Pavel Roskin <proski@gnu.org>.)

2001-04-29  Derek Price  <dprice@collab.net>

	* Makefile.am (check-local): Make dependent on localcheck and
	remotecheck and move old check target...
	(localcheck): here.

	* Makefile.in: Regenerated.

2001-04-27  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (pserver): Add tests for readers and writers.

2001-04-27  Derek Price  <dprice@collab.net>

	* sanity.sh (version-2r): Update to handle patch releases in version
	numbers.

2001-04-27  Derek Price  <dprice@collab.net>

	* version.c: Regenerated.

2001-04-27  Derek Price  <dprice@collab.net>

	* version.c: Regenerated.

2001-04-27  Larry Jones  <larry.jones@sdrc.com>

	* main.c (lookup_command_attribute): Lookup specified command, not
	whatever's in the global command_name.

2001-04-25  Derek Price  <dprice@collab.net>

	* Makefile.in: Regenerated using AM 1.4e as of today at 18:10 -0400.
	* version.c: Regenerated.

2001-04-22  Larry Jones  <larry.jones@sdrc.com>

	* tag.c (tag_check_valid): Make an unwritable val-tags file a
	warning instead of a fatal error.

2001-04-20  Larry Jones  <larry.jones@sdrc.com>

	* annotate.c (annotate_usage): -r and -D are not mutually exclusive.
	* main.c (cmd_usage): Add missing version subcommand.
	* update.c (update_usage): Add missing -C option.

	* sanity.sh (death2): New tests for previous change.

	* classify.c (Classify_File): Treat a dead revision like the RCS
	file doesn't exist.
	* sanity.sh: Update to match.

2001-04-16  Larry Jones  <larry.jones@sdrc.com>

	* checkout.c, update.c: Fix usage messages: -r and -D are not
	mutually exclusive.
	(Suggested by David L. Martin <dlmart2@home.com>.)

	* logmsg.c (do_editor): Don't add a blank line to the message.
	* sanity.sh (editor-log-file*): Update to match.

	* checkout.c, update.c: Note in usage message that -k is sticky.

	* server.c: (server_cleanup, wait_sig): Remove ancient SunOS kludge.
	(Suggested by Rob Saccoccio <robs@chelsea.net>.)

2001-04-04  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (dotest, dotest_lit, dotest_fail, dotest_status,
	dotest_sort): Don't count on $? being set in then or else clauses.

	* ignore.c (ignore_files): Collect unignored files into a list and
	sort it before calling PROC to avoid order dependencies.  Rewrite
	the while loop to allow normal continues instead of goto.

2001-04-04  Derek Price  <dprice@collab.net>

	* sanity.sh (ignore-on-branch-3): Fix in the remote case.

2001-04-03  Larry Jones  <larry.jones@sdrc.com>

	* update.c (update_fileproc): Remove unused variable (resurrecting).

2001-04-03  Derek Price  <dprice@collab.net>
	    Larry Jones  <larry.jones@sdrc.com>
	    reported by Jakob Bøhm  <JB@Danware.dk>

	* update.c (update_fileproc): Don't store a file with T_UNKNOWN status
	in ignlist if present in the sandbox.
	* sanity.sh (ignore-on-branch): New test.
	(ignore): Tidy this test.

2001-04-02  Derek Price  <dprice@collab.net>

	* sanity.sh: Make sure the test for `id' fails when a nonstandard `id'
	is used and the user is root.  Fix some quoting in error messages.
	(fork): Take `cvs' out of the PATH.
	(TODO): Add note about the test suite not working with user names over
	eight characters in length.

2001-04-02  Derek Price  <dprice@collab.net>

	* sanity.sh (fork): New test for CVS_SERVER default.
	(TODO): Note about eventually removing most of the references to
	CVS_SERVER.

2001-04-02  Larry Jones  <larry.jones@sdrc.com>

	* client.c (connect_to_forked_server): Use program_path as the default
	server instead of "cvs".

2001-04-02  Derek Price  <dprice@collab.net>

	* sanity.sh: Use less obfuscated English in my comment about sanity
	checking sanity.sh.

2001-04-02  Derek Price  <dprice@collab.net>

	* sanity.sh (rm-update-message): Create a test directory again but
	change back to the correct directory upon completion this time.

2001-04-02  Derek Price  <dprice@collab.net>

	* sanity.sh: Change last two '[.*]'s to 'test's for
	consistency and remove...
	(TODO): the note from the TODO list.

2001-04-02  Derek Price  <dprice@collab.net>

	* sanity.sh: Add test for PWD before successful exit.

2001-03-30  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (rm-update-message): Remove duplicate code.

2001-03-30  Derek Price  <dprice@collab.net>

	* sanity.sh (rm-update-message): New test for local/client-server
	warning message discrepency.

2001-03-30  Larry Jones  <larry.jones@sdrc.com>

	* annotate.c: Move annotate() here from rcs.c, support rannotate.
	* Makefile.am, Makefile.in: Add annotate.c.
	* main.c (cmds[], cmd_usage[]): Add rannotate.
	* rcs.c: Move declarations of rcs_delta_op and RCS_deltas to...
	* rcs.h:    ... here.
	* server.c (serve_rannotate): New.
	(requests[]): Add rannotate.
	* sanity.sh (ann): New tests for rannotate.

	* log.c (rlog_proc): Remove dead code.

2001-03-30  Derek Price  <dprice@collab.net>

	* sanity.sh (join-readonly-conflict): Run more of this through dotest.

2001-03-30  Larry Jones  <larry.jones@sdrc.com>

	* log.c (log_fileproc): Don't output working file for rlog.
	* sanity.sh (log): New tests for rlog.

	* cvs.h (mtype): Add MISC type.
	* log.c (cvslog): Support rlog as well as log.
	(rlog_proc): New.
	* main.c (cmds[], cmd_usage[]): Add rlog.
	(main): Remove old rlog warning message.
	* server.c (serve_rlog): New.
	(requests[]): Add rlog.

2001-03-29  Derek Price  <dprice@collab.net>

	* sanity.sh: cd to $TESTDIR once after it is normalized.  Make TODO
	on history and symlinks more specific.  Tested properly this time.

2001-03-29  Larry Jones  <larry.jones@sdrc.com>

	* main.c (cmds[], lookup_command_attribute, main): Include the
	command attributes in the global command table instead of inferring
	them from the command names.  Change the sense of the
	CVS_CMD_IGNORE_ADMROOT attribute to match its name.

2001-03-29  Derek Price  <dprice@collab.net>

	* sanity.sh (*, basic2-64): Remove references to TMPPWD.  Fix FIXME
	at end of script now that $TESTDIR can't be relative.

2001-03-29  Derek Price  <dprice@collab.net>

	* sanity.sh: Normalize TESTDIR even when the user set it.

2001-03-29  Larry Jones  <larry.jones@sdrc.com>

	* client.c (connect_to_pserver, start_tcp_server): Add IP address
	to connect failed message.
	(connect_to_forked_server, connect_to_pserver, start_tcp_server): Add
	trace messages ala start_rsh_server.
	(start_rsh_server): Include entire command in trace message for
	START_RSH_WITH_POPEN_RW like ! START_RSH_WITH_POPEN_RW does.

2001-03-29  Derek Price  <dprice@collab.net>

	* sanity.sh: Global search & replace ${TESTDIR}/cvsroot with
	${CVSROOT_DIRNAME} for consistency.

2001-03-29  Derek Price  <dprice@collab.net>

	* sanity.sh (conflicts-12[68].5): Remove sanity hack which has allowed
	for a CVS bug since May 96/97.  Not sure when the bug went bye-bye, but
	the tests broke when $TESTDIR != $TMPPWD.

2001-03-26  Larry Jones  <larry.jones@sdrc.com>

	* classify.c (Classify_File): Don't report a conflict for a removed
	file when piping.  Also simplify the code structure.
	(Reported by Milos Kleint <milos.kleint@netbeans.com>.)
	* sanity.sh (rmadd2-14[abc]): New tests for above.

2001-03-24  Noel Cragg  <noel@shave.cnet.com>

	* diff.c: mods to allow `-T' and `-y' options to be passed through
	to the diff library.  This wasn't allowed earlier because of a
	similarly named options that got passed through to the old rcs
	programs.  We've long since stopped sending `-T' to any rcs
	utility and have never used `-y'.  Any users of moldly CVS
	versions which used to support `-T' have (hopefully) upgraded to
	one where that option isn't supported.  It seems reasonable to
	enable them again and pass them through.  (sanity.sh still works
	anyways...)
	(longopts): add short option equivalents for --initial-tab and
	--side-by-side.
	(diff): add new short options to getopt string and switch
	statement.

2001-03-22  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh: Add check for ${DOTSTAR} with large matches.

2001-03-23  Derek Price  <dprice@collab.net>

	* sanity.sh: Do the same as below for $keep.

2001-03-23  Derek Price  <dprice@collab.net>

	* sanity.sh: Replace 'remote=(yes|no)' with 'remote=(:|false)' since
	often 'false' and more often ':' are shell builtins.  This makes the
	succinct, 'if $remote; then' faster than 'if test $remote = yes; then'.
	Alter tests in the rest of the script to match the new usage.  Added
	a suffix of 'r' to remote test names when it was appropriate and I
	remembered.  Some reformatting.

2001-03-22  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (diffmerge1_yours, diffmerge1_mine): Check for exact
	output instead of using wildcards to avoid buffer overflows in some
	versions of expr.

2001-03-21  Derek Price  <dprice@collab.net>

	* sanity.sh: cd to '/tmp' again rather than $HOME since HOME was set to
	a value inside ${TESTDIR} by the script.

2001-03-20  Derek Price  <dprice@collab.net>

	* sanity.sh (diffmerge1): Minor formatting and syntax changes.

	    for Jacob Burckhardt  <bjacob@ca.metsci.com>

	* sanity.sh (diffmerge1): More merging behavior tests.  Specifically,
	test some cases which broke before in Karl Tomlinson's diff fix was
	checked in today.

2001-03-20  Derek Price  <dprice@collab.net>

	* sanity.sh: Don't use unescaped parens in sh outside of quotes.

2001-03-20  Derek Price  <dprice@collab.net>

	* sanity.sh: Don't remove ${TESTDIR} when -k (keep) set.

2001-03-20  Derek Price  <dprice@collab.net>

	* sanity.sh: Change usage to match the new getopts format and comment.

2001-03-16  Derek Price  <dprice@collab.net>

	* sanity.sh (modules2-nestedrename): New test.  Verifies behavior of
	renames nested under an ampersand module.
	(modules2-ampertag): New test.  Verifies an error condition which
	prevents some ampersand modules from being checked out when a tag
	is specified.

2001-03-16  Derek Price  <dprice@collab.net>

	* sanity.sh (modules2): Additional test for ampersand module behavior
	with '-d'.

	    for Greg Klanderman  <greg@itasoftware.com>

	* checkout.c (build_one_dir): Fix typo where clauses of two
	conditionals were reversed in call to Create_Admin.  This caused
	the CVS/Tag file to be removed in cases where it should have been
	set, and vice-versa.  It only surfaced in rare cases as this code
	is only invoked when using the -d option to build the path to
	check out in.  Further, the bug would only matter when checking
	out a module containing ampersand modules within it, via
	client/server CVS.

2001-03-16  Derek Price  <dprice@collab.net>

	* sanity.sh (admin-28-5): Confirm that a missing tag during an
	'admin -n' operation is not a fatal error.

2001-03-16  Derek Price  <dprice@collab.net>

	* admin.c (admin_data): Remove 'quiet' member.
	(admin_fileproc): Use global 'really_quiet' rather than
	admin_data->quiet.

2001-03-16  Derek Price  <dprice@collab.net>

	* sanity.sh (admin): Replace hardcoded testdir path with the variable.

2001-03-15  Derek Price  <derek.price@openavenue.com>

	* sanity.sh (basica, binfiles, head, admin): Adjust for new messages.
	* admin.c (admin_fileproc): Only print messages when not in
	really_quiet mode.

	    for Stephen Rasku  <stephen@tgivan.com>

	* rcs.c (RCS_tag2rev): Make a missing tag a survivable error.

2001-03-15  Larry Jones  <larry.jones@sdrc.com>

	* subr.c (sleep_past): Fix various bugs that would result in a
	negative sleep time if it weren't unsigned; since it is, it would
	result in a very large sleep time.  Ensure that us is always less
	than 1000000.  Don't try to sleep for more 1 sec with usleep.
	Cast NULL select arguments to correct type just in case.

2001-03-14  Derek Price  <derek.price@openavenue.com>

	* subr.c (sleep_past): New function.
	* client.c (get_responses_and_close): Use new function.
	* commit.c (commit): Ditto.
	* update.c (do_update): Ditto.
	* cvs.h: Prototype new function.

	* stamp-h2.in: Regenerated.

2001-03-14  Derek Price  <derek.price@openavenue.com>

	* Makefile.in: Regenerated.
	* stamp-h2.in: Ditto.

2001-03-14  Larry Jones  <larry.jones@sdrc.com>

	* commit.c (check_fileproc): Allow adding on the trunk when there's
	an existing non-Attic RCS file as long as the head revision is dead.
	This can happen due to an aborted resurrection.
	(commit_fileproc): When resurrecting, consider the dead revision
	along with the other files' revisions.
	(findmaxrev): Avoid unnecessary work.
	(checkaddfile): Only warn if file isn't in Attic as expected.
	(Reported by Ross Burton <r.burton@180sw.com>.)
	* sanity.sh (basica-r*): New tests for above.
	(basica-o4): Update to match.

2001-03-09  Larry Jones  <larry.jones@sdrc.com>

	* edit.c (edit_fileproc, unedit_fileproc): Some implementations of
	asctime/ctime apparently use a leading zero on the date instead
	of the space required by the C Standard.  Correct for this so that
	shared working directories work without hassle.
	(Reported by David L. Martin <dlmart2@home.com>.)
	* entries.c (fgetentent): Ditto.
	* vers_ts.c (time_stamp_server, time_stamp) Ditto.

2001-03-07  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (basica, binfiles2, head, admin): Update to match
	change to admin.c.

2001-03-06  Larry Jones  <larry.jones@sdrc.com>

	* client.c (recv_bytes): Handle EOF as in recv_line().
	(Reported by Pavel Roskin <proski@gnu.org>.)

	* admin.c (admin_fileproc): Change final error message to clarify
	that CVS refused to modify the RCS file rather than being unable to.

2001-02-28  Jim Meyering  <meyering@lucent.com>

	* commit.c (commit_usage): Use `-F logfile' (rather than -F file') in
	the description of that option, to be consistent with the `-F logfile'
	in the Usage: line.  Use spaces instead of TAB characters, and realign.

2001-03-02  Derek Price  <derek.price@openavenue.com>

	* sanity.sh (crerepos): Make failed ${CVS_RSH-rsh} attempt print the
	name of the command it actually used rather than 'rsh'.

2001-02-27  Derek Price  <derek.price@openavenue.com>

	* sanity.sh (modules2-ampermod-*): Added these tests to make sure the
	top level directory is created in an ampermodule when '-n' is passed to
	checkout.

	original bug report from
	    Wolfgang Haefelinger <Wolfgang.Haefelinger@Dresdner-Bank.com>

2001-02-27  Derek Price  <derek.price@openavenue.com>

	* sanity.sh (version-[12]): replace ' (client/server)' with .* in these
	two tests so that 'make check' works with whatever client/server
	options the executable was compiled with.

2001-02-23  Derek Price  <derek.price@openavenue.com>

	* main.c (main): Only check a cvsroot_t's isremote member when client
	support is enabled.
	* server.c: Include GSSAPI headers with client support as well as
	server support.

2001-02-21  Larry Jones  <larry.jones@sdrc.com>

	* modules.c, cvs.h (do_module): Add build_dirs argument and use it
	instead of run_module_prog.  Change all callers.
	* tag.c (cvstag): For rtag, don't build directories.
	* sanity.sh (modules3): Update to match.

2001-02-20  Derek Price  <derek.price@openavenue.com>

	* client.c: Use xgssapi.h.
	* server.c: Ditto.

2001-02-15  Derek Price  <derek.price@openavenue.com>

	* Makefile.am (cvs_SOURCES): Correct error from yesterday.
	* Makefile.in: Regenerated.

2001-02-14  Derek Price  <derek.price@openavenue.com>

	* server.c: Include xselect.h.
	* update.c (do_update): Use best available sleep function.

2001-02-14  Derek Price  <derek.price@openavenue.com>

	* Makefile.am (cvs_SOURCES): Alphabetize and split to one/line.
	(cvs_LDADD): Alphabetize and split to one/line.
	* Makefile.in: Regenerated.

2001-02-14  Larry Jones  <larry.jones@sdrc.com>

	* build_src.com: Remove references to rtag.c & rtag.obj.

2001-02-13  Derek Price  <derek.price@openavenue.com>

	* main.c (date_to_tm): New function to convert an RCS date string to a
	struct tm.
	(tm_to_internet): New function to convert a struct tm to a date string
	as specified by RFC822 and amended by RFC 1123.
	(date_to_internet): Use the above two functions and a struct tm
	intermediary for conversion.
	* patch.c (patch_fileproc): Answer somebody's comment and use the new
	diff_exec API.
	* rcs.c (RCS_checkin): Use new diff_exec API.
	(RCS_delete_revs): Use new diff_exec API.
	(make_file_label): If the file name is DEVNULL, date it the Epoch for
	compatibility with the POSIX.2 spec and Larry Wall's patch
	implementation.
	* rcscmds.c (diff_exec): Accept new label arguments.
	* sanity.sh (death2): Update some diff tests to accept the new format.
	* update.c (patch_file): Use new diff_exec API.
	* diff.c (diff_fileproc): Create header labels appropriate for
	compatibility with the Larry Wall version of patch.
	(diff): Rename calls to strcat_and_allocate.
	(strcat_and_allocate): Rename and move...
	* subr.c (xrealloc_and_strcat): here.
	* cvs.h: Update prototypes to match.

2001-02-13  Derek Price  <derek.price@openavenue.com>

	* Makefile.am (cvs_SOURCES): Remove rtag.c.

2001-02-07  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (directory_cmp): Return status rather than setting ISDIFF.
	(basic2): Rewrite using dotest.

2001-02-06  Larry Jones  <larry.jones@sdrc.com>

	* tag.c, rtag.c: Merge with tag.c being the surviving file.
	* Makefile.in: Update to match.
	* main.c (cmds): rtag() => cvstag().
	* server.c (serve_rtag): Ditto, and set command name.

2001-02-06  Derek Price  <derek.price@openavenue.com>
	    Rex Jolliff  <Rex_Jolliff@notes.ymp.gov>
	    Shawn Smith  <Shawn_Smith@notes.ymp.gov>

	* add.c: Replace opendir, closedir, & readdir calls with CVS_OPENDIR,
	CVS_CLOSEDIR, & CVS_READDIR in support of changes to handle VMS DEC C
	5.7 {open,read,close}dir problems.  Check today's entry in the vms
	subdir for more.
	* filesubr.c: ditto
	* find_names.c: ditto
	* ignore.c: ditto
	* import.c: ditto
	* lock.c: ditto
	* update.c: ditto

2001-02-02  Larry Jones  <larry.jones@sdrc.com>

	* error.h: Changed include guard macro from _error_h_ to ERROR_H;
	names beginning with underscore are reserved.
	* login.c (password_entry_parseline, password_entry_operation,
	password_entry_operation_e, password_entry_operation_t): Removed
	leading underscore(s).
	(password_entry_parseline): Corrected error messages.
	(password_entry_operation): Fixed uninitialized variable (password).
	(login): Removed unused variable (found_password).

	* rtag.c (rtag_proc): Call lock_tree_for_write() before calling
	start_recursion.  This fixes a serious problem where do_recursion
	was reading and caching RCS files without any locks in place and
	that information was subsequently being used to rewrite the file
	causing any intermediate changes to be lost.
	(rtag_filesdoneproc): Defunct.
	(Reported by Karl Tomlinson <k.tomlinson@auckland.ac.nz>.)
	* tag.c (cvstag, tag_filesdoneproc): Ditto.
	* lock.c (lock_tree_for_write): Add which argument, change all
	callers to pass W_LOCAL.
	* rcs.h: Ditto.

2001-01-29  Derek Price  <derek.price@openavenue.com>

	* client.c (get_cvs_port_number): change the prototype to accept a
	const cvsroot_t * as input and add a FIXME comment
	* cvs.h: new prototypes for get_cvs_port_number & normalize_cvsroot
	* login.c (_password_entry_operation): consolidate all the ~/.cvspass
	access into a single new function which reads ~/.cvspass in a backwards
	compatible manner
	(logout): use the new _password_entry_operation function
	(login): ditto
	(get_cvs_password): ditto
	* root.c (normalize_cvsroot): move knowledge of default port & username
	values inside

2001-01-29  Larry Jones  <larry.jones@sdrc.com>

	* subr.c (shell_escape): New function.
	* cvs.h: Declare it.
	* logmsg.c (logfile_write): Use it to avoid problems with filenames
	containing "'".
	(Reported by Gerhard Ahuis <gerhard@ats.xs4all.nl>.)

	* server.c (outbuf_memory_error, pserver_authenticate_connection,
	kserver_authenticate_connection): If available, use syslog() to
	record some errors.

2001-01-25  Larry Jones  <larry.jones@sdrc.com>

	* server.c (do_cvs_command): If there's a partial output line left
	over and the client doesn't support MT, go ahead and send it in an
	M response instead of just dropping it.
	(Reported by Milos Kleint <Milos.Kleint@netbeans.com>.)

	* update.c (update_fileproc): Handle toss_local_changes in the
	T_NEEDS_MERGE case.
	(Inspired by Noel L Yap <yap_noel@jpmorgan.com>.)
	* sanity.sh (clean): New tests for above.

2001-01-23  Derek Price  <derek.price@openavenue.com>

	* run.c (run_exec): flush, if used, stderr and stdout before exit
	* server.c (cvs_flusherr): flush stderr & send a stderr flush command
	on the protocol pipe
	(cvs_flushout): like above, for stdout
	(do_cvs_command): handle flushes properly
	* sanity.sh (reserved): make the commitinfo script echo errors to
	stderr rather than stdin

2001-01-18  Larry Jones  <larry.jones@sdrc.com>

	* log.c (option_revlist, revlist, log_usage, cvslog,
	log_parse_revlist, log_expand_revlist, log_version_requested): Add
	support for :: for exclusive ranges.
	* admin.c (admin_usage): Reorder -o to be parallel to log -r.
	* sanity.sh (log): New tests for above.

2001-01-18  Derek Price  <derek.price@openavenue.com>

	* main.c: Add '2001' to the range of copyright years listed by the
	--version option
	* version.c.in (version): check current_parsed_root before its isremote
	member to avoid a core dump
	* sanity.sh (version): add a test for the version command

	* version.c: regenerated

2001-01-12  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c, rcs.h (RCS_lock, RCS_unlock): Use RCS_gettag to find the
	correct revision so that symbolic tags work correctly.  (This
	requires removing the "const" from the rev parameter since it's
	passed to RCS_gettag which might modify it.)
	(Reported by irina sturm <irina.sturm@st.com>.)

2001-01-11  Larry Jones  <larry.jones@sdrc.com>

	* run.c (close_on_exec): Remove check for FD_CLOEXEC.  As far as I
	can see, it's *never* been defined, which defeats the whole point.
	If F_SETFD is defined, it's probably safe to use it.

	* server.c (do_cvs_command): Call close_on_exec on the protocol and
	flow control pipes in the child process so they don't get inherited
	by any subsidiary processes.
	(Reported by Tristan Gingold <tgi@netgem.com>.)

	* cvs.h (free_cvsroot_t): Spell correctly (was free_CVSroot_t).

2001-01-10  Derek Price  <derek.price@openavenue.com>
	    Rex Jolliff  <Rex_Jolliff@notes.ymp.gov>

	* build_src.com: VMS changes
	* filesubr.c: replace calls to unlink() with CVS_UNLINK() for VMS
	* rcs.c: ditto

2001-01-10  Derek Price  <derek.price@openavenue.com>

	* main.c (current_root): explicitly list this as a static global

2001-01-10  Derek Price  <derek.price@openavenue.com>

	* cvs.h (get_cvs_port_number): change name & prototype from
	get_port_number
	* client.c (get_cvs_port_number): new function which returns a port
	number based on a cvsroot_t rather than requiring all possible sources
	passed in
	(connect_to_pserver): use new get_cvs_port_number function
	(connect_to_server): ditto
	* login.c (get_password): use new get_cvs_port_number function
	(login): ditto
	(logout): ditto

2001-01-10  Derek Price  <derek.price@openavenue.com>

	* Makefile.am ($(srcdir)/version.c): specify $(srcdir) for all subparts
	of the build since some systems don't allow mv's across partitions
	* Makefile.in: regenerated

2001-01-10  Derek Price  <derek.price@openavenue.com>

	* Makefile.am (version.c): specify $(srcdir) explicitly in target rule
	so version.c gets built properly for all makes.
	(version.o): specify $(srcdir)/version.c explicitly so dependency is
	found and built properly
	* Makefile.in: regenerated

2001-01-09  Derek Price  <derek.price@openavenue.com>

	* version.c: updated timestamp

2001-01-09  Larry Jones  <larry.jones@sdrc.com>

	* server.c (server): Change to server_temp_dir immediately after
	creating it so that any stray files that happen to be created go
	there instead of in the server's initial directory, wherever that
	may be.
	* sanity.sh (modules5-15): Update to match.

	* version.c.in: Update to match Derek's change to version.c.

2001-01-09  Derek Price  <derek.price@openavenue.com>

	* cvs.h: Remove the various CVSroot_* bits and replace them with a
	single structure of type cvsroot_t (current_parsed_root)

	* root.c (parse_cvsroot): return pointer to a new cvsroot_t rather than
	altering global variables
	(local_cvsroot): return a pointer to a new cvsroot_t rather than
	setting globals.  changed the name of this function from
	set_local_cvsroot to better explain new functionality
	(new_cvsroot_t): new initializer function
	(free_cvsroot_t): new function
	(others): use current_parsed_root rather than the old CVSroot_* globals

	* add.c: use current_parsed_root rather than the old CVSroot_* globals
	* admin.c: ditto
	* checkout.c: ditto
	* client.c: ditto
	* commit.c: ditto
	* create_adm.c: ditto
	* diff.c: ditto
	* edit.c: ditto
	* expand_path.c: ditto
	* find_names.c: ditto
	* history.c: ditto
	* ignore.c: ditto
	* import.c: ditto
	* lock.c: ditto
	* log.c: ditto
	* login.c: ditto
	* logmsg.c: ditto
	* main.c: ditto
	* mkmodules.c: ditto
	* modules.c: ditto
	* parseinfo.c: ditto
	* patch.c: ditto
	* rcs.c: ditto
	* recurse.c: ditto
	* release.c: ditto
	* remove.c: ditto
	* repos.c: ditto
	* rtag.c: ditto
	* server.c: ditto
	* status.c: ditto
	* tag.c: ditto
	* update.c: ditto
	* version.c: ditto
	* watch.c: ditto
	* wrapper.c: ditto

2001-01-05  Derek Price  <derek.price@openavenue.com>

	* cvs.h (enum CVSmethod): add null_method
	* root.c (method_names): correlate null_method & "undefined"
	(parse_cvsroot): make two error cases non fatal
	* sanity.sh (crerepos-6b): account for new error message, re above

2001-01-05  Derek Price  <derek.price@openavenue.com>

	* src/Makefile.am (cvsbug, cvsbug_EXTRA_DIST, EXTRA_DIST): move cvsbug
	target to configure.in - see ../ChangeLog for more
	* src/cvsbug.in: Rename from cvsbug.sh
	* src/cvsbug.sh: Rename to cvsbug.in

2001-01-04  Larry Jones  <larry.jones@sdrc.com>

	* Makefile.am (cvsbug): Explicitly list input file ($< is only
	valid in inference rules).
	* Makefile.in: Ditto.

2001-01-04  Derek Price  <derek.price@openavenue.com>

	* sanity.sh: use getopts rather than getopt for portability reasons

2001-01-03  Derek Price  <derek.price@openavenue.com>

	* Makefile.am (remotecheck): depend on 'all'
	* Makefile.in: regenerated

2000-12-29  Derek Price  <derek.price@openavenue.com>

	* sanity.sh: remove explicit "$@" from last checkin and move the 'do'
	to the line following the 'for'.  Apparently this is more portable.

2000-12-29  Derek Price  <derek.price@openavenue.com>

	* sanity.sh: make "$@" explicit in 'for' statement since Solaris 5.6's
	implementation of Bourne shell doesn't seem to implement this default
	behavior.

2000-12-27  Derek Price  <derek.price@openavenue.com>

	* sanity.sh: add a -f option for continuing from a particular test
	and shorten --keep to -k so we can use the getopt function.

2000-12-27  Derek Price  <derek.price@openavenue.com>

	* Makefile.am (remotecheck): Make remotecheck dependant on all
	* Makefile.in: regenerated

2000-12-26  Derek Price  <derek.price@openavenue.com>

	* Makefile.in: update timestamp
	* stamp-h2.in: ditto
	* version.c: ditto

2000-12-26  Derek Price  <derek.price@openavenue.com>

	* Makefile.am: new target for version.c
	(EXTRA_DIST): add version.c.in & version.c so builds work when
	configure doesn't
	* Makefile.in: Regenerated
	* stamp-h2.in: update timestamp
	* version.c: ditto

2000-12-26  Derek Price  <derek.price@openavenue.com>

	* Makefile.am (INCLUDES): add zlib
	* Makefile.in: Regenerated

2000-12-22  Derek Price  <derek.price@openavenue.com>

	* Makefile.am (DISTCLEANFILES): added a few files
	(INCLUDES): commented
        * Makefile.in: Regenerated

2000-12-21  Derek Price  <derek.price@openavenue.com>

	* .cvsignore: Added .deps directory and a new stamp file
	* Makefile.am: New file needed by Automake
	* Makefile.in: Regenerated
	* stamp-h2.in: New stamp file created by Automake
	* version.c.in: use configure to generate version.c

2000-12-16  Derek Price  <derek.price@openavenue.com>

	* server.c (server_update): Keep the vers structure up to date after
	sending a Remove or Remove-entry command to the client
	* update.c (update): remove call to server_updated() after
	scratch_file()
	(scratch_file): in server mode, call server_updated(), otherwise keep
	the vers structure up to date
	(join_file): add a trace, save the revision to Register() on a remove
	before calling server_scratch & server_updated
	* sanity.sh (join): Add test for a remove/add caused by an update
	to a new branch and a join in the same step.

2000-12-15  Larry Jones  <larry.jones@sdrc.com>

	* error.c (error): Add %ld and %lu.

	* history.c: Change hrec.idx from int to long, reformat NEXT_BAR
	for readability, add hrec_idx.
	(fill_hrec): Change initialization to be portable and always set
	idx so it can be used as a line number in error messages; improve
	parsing and error checking.
	(read_hrecs): Initialize hrec_idx, handle embedded NULs, warn about
	no newline at end of file.
	(select_hrec): Add basic validity checking.

2000-12-07  Larry Jones  <larry.jones@sdrc.com>

	* history.c (history): Allow multiple -m options as documented.

2000-11-29  Derek Price  <derek.price@openavenue.com>

	* root.c (parse_cvsroot): back out yesterday's redundant changes
	* main.c (main): fix CVSROOT trace message to look like other trace
	messages
	* sanity.sh (multiroot2-9): expect new trace message

2000-11-28  Derek Price  <derek.price@openavenue.com>

	* root.c (parse_cvsroot): add trace on this function
	* client.c (get_port_number): make trace print look like others

2000-11-16  Derek Price  <derek.price@openavenue.com>

	* filesubr.c (cvs_temp_file): back out the previous change in the
	interests of portability, add an assertion, and fix the header comment

2000-11-16  Derek Price  <derek.price@openavenue.com>

	* filesubr.c (cvs_temp_file): refine the exit behavior to notice if
	the out param was passed in NULL and, if so, avoid setting it and delete
	the temp file for later

2000-11-16  Derek Price  <derek.price@openavenue.com>

	* filesubr.c (cvs_temp_file): fixed a garble or two, added some
	additional error checking, and added a comment

2000-11-15  Derek Price  <derek.price@openavenue.com>

	* filesubr.c (cvs_temp_file): added cvs_temp_file
	function to use mkstemp rather than one of the other temp file
	generators as gcc keeps complaining I should.
	(cvs_temp_name): altered this function to simply wrap cvs_temp_file
	and deprecated it
	* cvs.h: added prototype for cvs_temp_file
	* commit.c (commit): use the new function instead of the old and plug
	an old (though related) memory leak.
	* import.c (import): use the new function
	* login.c (login): Ditto
	* logmsg.c (do_editor, do_verify): Ditto
	* patch.c (patch_fileproc): Ditto

2000-11-14  Larry Jones  <larry.jones@sdrc.com>

	* update.c, update.h (do_update): Add xdotemplate parameter.
	Change all callers.
	(update_dirent_proc): Use dotemplate for Create_Admin, not 1.
	* checkout.c (checkout_proc): Don't create CVS/Template if
	exporting.
	(Reported by Andrey Podkolzin <mdh@zenon.net>.)

2000-11-08  Larry Jones  <larry.jones@sdrc.com>

	* admin.c (admin): Use getgroups() to check for membership in
	CVS_ADMIN_GROUP if it exists.  In any event, check the user's
	primary group in addition to any additional groups.
	(Reported by Thomas Okken <TOkken@refco.com>.)

2000-11-06  Jim Meyering  <meyering@lucent.com>

	Compile with gcc's -Wformat and fix the exposed problems.
	* root.c (parse_cvsroot) [! HAVE_KERBEROS]: Provide an argument
	for the %s error format spec.
	[! HAVE_GSSAPI]: Likewise.
	(normalize_cvsroot): Put comment delimiters around token after `#endif'.

2000-11-03  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh: Some versions of sed require a space between -e and
	the value.

2000-10-27  Larry Jones  <larry.jones@sdrc.com>

	* checkout.c (checkout): Don't check for a safe location if just
	cat'ing the module database.
	(Reported by Ilya Martynov <m_ilya@agava.com>.)
	Have -s set cat as well as status; it simplifies the code.

2000-10-26  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (join-admin-2): Check output from all commands instead
	of (mostly) discarding.  (Some of the tests used to produce stray
	output in remote mode.)

	* sanity.sh (dotest_line_by_line): Handle empty lines in pattern
	(expr doesn't distingish between successfully matching nothing
	and failing to match anything).

	* sanity.sh (dotest_internal): Rearrange and use elif to simplify.

2000-10-24  Jim Meyering  <meyering@lucent.com>

	Fix a bug, introduced with my fix of 2000-07-10, whereby -kk would
	sometimes be ignored for some of the files involved in an update.

	* update.c (join_file): Restore the original value of `options'
	right after calling checkout_file.
	* sanity.sh (join-admin-2): New test for this.

2000-10-23  Derek Price  <derek.price@openavenue.com>
            James Youngman  <jay@gnu.org>

	* sanity.sh: it's /gnu/bin, not /gun/bin.  Thanks go to James Youngman
	<jay@gnu.org> for the bug report and patch.

2000-10-20  Jim Kingdon  <http://sourceforge.net/users/kingdon/>

	* server.c (switch_to_user): Set CVS_USER.  Patch from Sudish
	Joseph and popularized by dozens (e.g. mozilla.org, also others).

2000-10-20  Derek Price  <derek.price@openavenue.com>
            KOIE Hidetaka  <hide@koie.org>

	* root.c (normalize_cvsroot): plug a memory leak.  Thanks to
	KOIE Hidetaka <hide@koie.org>

2000-10-18  Derek Price  <derek.price@openavenue.com>

	* client.c (connect_to_pserver): added a close brace the lack of which
	was preventing compilation when gssapi was enabled.  Removed a
	redundant check for HAVE_KERBEROS.

2000-10-18  Derek Price  <derek.price@openavenue.com>

	* root.c (normalize_cvsroot): removed references to free_port_s and the
	now useless call to free now that port_s is on the stack.  Thanks to
	Jon Miner.

2000-10-18  Derek Price  <derek.price@openavenue.com>

	* root.c (normalize_cvsroot): remove calls to snprintf for
	compatibility with M$ Windoze.

2000-10-18  Derek Price  <derek.price@openavenue.com>

	* sanity.sh (crerepos-6a, crerepos-6a-r): fix a "?" in a regex & pipe
	the output of a test to /dev/null since we don't know what error
	messages specific rsh implementations will output.

2000-10-17  Derek Price  <derek.price@openavenue.com>

	* cvs.h: added CVSroot_password variable. Provided prototypes for
	get_port_number & normalize_cvsroot.
	* client.c (get_port_number): Fixed an ANSI prototype I had included
	for get_port_number.
	* login.c (login, logout): Removed two checks for a non-null
	CVSroot_username since parse_cvsroot now supplies a default in pserver
	mode. allow for a password in CVSROOT
	(get_cvs_passsword): return CVSroot_password if it was supplied
	in the CVSROOT.
	* root.c (parse_cvsroot): Changed CVSROOT spec from
	:method:user@host/port:/cvsroot to
	:method:[[user][:password]@]host[:[port]]/cvsroot
	Removed the xstrdup function since we'd rather have the error checking
	from the version in subr.c anyhow.  Moved some error messages which
	looked like they would print the wrong error message after a failed
	connect_to_gserver call.
	(normalize_cvsroot): return a normalized CVSROOT for use in the
	.cvspass file.
	* sanity.sh (crerepos-6): fix a test which was expecting an old error
	message.

	* client.c (connect_to_pserver): Moved some error messages which looked like they
	would print the wrong error message after a failed connect_to_gserver
	call.

	* login.c (login): Paranoiacly zero a password in memory.

2000-10-12  Derek Price  <derek.price@openavenue.com>

	* client.c (auth_server_port_number -> get_port_number, start_pserver,
	start_tcp_server): use a port specified in CVSROOT instead of the
	default port.  Failing that, use the CVS_CLIENT_PORT environment
	variable.
	* cvs.h: Added global CVSroot_port & renamed auth_server_port_number.
	* root.c (parse_cvsroot): Parse the new CVSROOT format properly.
	Incidentally reformated some error messages for uniformity and
	readability.
	* sanity.sh (crerepos): fix two tests which were now expecting the
	wrong error message.

2000-10-11  Larry Jones  <larry.jones@sdrc.com>

	* server.c (pserver_authenticate_connection): Fix stupid mistake
	in previous change.

2000-10-11  Derek Price  <derek.price@openavenue.com>

	* main.c (main): Dispose old CVSroot when parsing a '-d' option if
	free_CVSroot is set.
	* root.c (parse_cvsroot): remove references to 'cvsroot_parsed', a
	static boolean I expect hasn't been used since CVS learned to handle
	multiple CVSROOTs.

2000-10-10  Larry Jones  <larry.jones@sdrc.com>

	* server.c (print_error): Make up a message if strerror fails.

	* server.c (pserver_authenticate_connection): Give a real error
	message for an invalid repository.

2000-10-06  Derek Price  <derek.price@openavenue.com>

	* add.c (add): Made quiet mode affect some warning messages as seemed
	appropriate.  Specifically, some of the messages which a user might
	want to ignore so they don't have to be quite so specific on the
	command line: files added twice, files already in the repository and
	check out properly (i.e. but picked up by 'cvs add *'), & files which
	are readded in place of a dead revision or onto a branch.  '-q' will
	not change the non-zero exit code for the cases where at least one
	passed in file name was already in the Entries file.  There seems to
	be a precedent in remove.c.
	* remove.c (cvsremove): switched the "use cvs ci to make these changes
	permanent message" to only print w/o '-Q' to match the new behavior of
	add.  This seems appropriate as '-Q' is defined to restrict messages
	to critical errors.
	* sanity.sh (adderrmsg): Added some tests for the above behavior.

2000-10-05  Larry Jones  <larry.jones@sdrc.com>

	* client.c (call_in_directory): Create CVSADM directory if it doesn't
	exist in the directory.  This makes client/server work more like
	standalone when checking out into an existing (non-CVS) directory.
	* sanity.sh (dirs2, conflicts3, toplevel): Update to match.

2000-10-03  Larry Jones  <larry.jones@sdrc.com>

	* filesubr.c (get_homedir): Ignore $HOME when running in server mode.

2000-10-02  Larry Jones  <larry.jones@sdrc.com>

	* cvs.h: Define (and use) T_PATCH as a valid file classification
	even when SERVER_SUPPORT isn't defined -- it simplifies the code.
	* classify.c (Classify_File): Ditto.
	* commit.c (check_fileproc): Ditto.
	* status.c (status_fileproc): Ditto.
	* update.c (update_fileproc): Ditto.
	* tag.c (check_fileproc): Accept T_PATCH in addition to T_CHECKOUT.
	* sanity.sh (tagc-10): Update to match.

2000-09-29  Larry Jones  <larry.jones@sdrc.com>

	* client.c (get_responses_and_close): Reset server_fd to -1 after
	shutting down.
	(Reported by Joerg Thoennes <Joerg.Thoennes@data-sciences.de>.)

2000-09-27  Larry Jones  <larry.jones@sdrc.com>

	* commit.c (commit): Don't sleep before returning in server mode,
	just let the client do it.
	* update.c (do_update): Ditto.

	* sanity.sh (find_tool): Correct method of checking for GNU tools.

	* checkout.c (checkout_proc): Match up user directories with
	repository directories instead of using Emptydir.
	* sanity.sh (cvsadm, emptydir): Update to match.

2000-09-19  Larry Jones  <larry.jones@sdrc.com>

	* version.c: Push version number to 1.11.0.1.

	* version.c: Version 1.11.

2000-09-07  Larry Jones  <larry.jones@sdrc.com>

	* Makefile.in: Use @bindir@, @libdir@, @infodir@, and @mandir@
	from autoconf.

2000-08-23  Larry Jones  <larry.jones@sdrc.com>

	* mkmodules.c (init): Create an empty val-tags file if it doesn't
	already exist to avoid problems with users not having sufficient
	permissions to create it later.

2000-09-06  Jim Kingdon  <jkingdon@dhcp-net200-89.su.valinux.com>

	* main.c (lookup_command_attribute): Add "release" to commands
	which can be done by a read-only user.

2000-08-23  Larry Jones  <larry.jones@sdrc.com>

	* repos.c (Name_Repository): Use pathname_levels to detect attempts
	to get above the repository instead of checking for leading ..
	which isn't reliable.
	* sanity.sh (multiroot3-12 to multiroot3-15): New tests for above.

2000-08-21  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c (expand_keywords): Handle the unusual case of log == NULL.
	(Reported by Craig Metz <cmetz@inner.net>.)

2000-08-01  Larry Jones  <larry.jones@sdrc.com>

	* subr.c (pathname_levels): Fix bug that miscounts adjacent
	slashes.
	(Patch submitted by Tanaka Akira <akr@m17n.org>.)

	* loginc.c (login): If available, use getpassphrase instead of
	getpass to support long passwords on Solaris.

2000-07-28  Larry Jones  <larry.jones@sdrc.com>

	* server.c (server_noop): Avoid do_cvs_command() overhead.
	(requests): Make noop RQ_ROOTLESS.

2000-07-27  Noel Cragg  <noel@red-bean.com>

	* root.c (parse_cvsroot): change fork method to behave like other
	remote methods -- let the server check that the repository
	directory is an absolute pathname.

2000-07-27  Larry Jones  <larry.jones@sdrc.com>

	* lock.c (set_lock): Include actual lock directory in error message.
	* sanity.sh (multiroot3-10): Change to match.

	* sanity.sh (client-3): Allow for a potential "broken pipe".

2000-07-26  Larry Jones  <larry.jones@sdrc.com>

	* commit.c (commit_filesdoneproc): Flush stdout before running script.
	* modules.c (do_module): Ditto.
	* update.c (update_dirleave_proc): Ditto.
	* server.c (do_cvs_command): Give input from the protocol pipe
	precedence over input from stdout/stderr.  There's no particularly
	good justification for this other than helping to avoid out-of-order
	messages in sanity.sh.

	* admin.c (admin_usage): Add the supported options.

	* sanity.sh (info): Try to avoid out-of-order messages.

	* sanity.sh (info): Fix problems when running twice in a row.

2000-07-17  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (modules5-7, cvsadm-1e, emptydir-2): Allow for a nil
	commit (can happen if the test is run twice in a row).

2000-07-19  Pavel Roskin  <proski@gnu.org>
	and Larry Jones  <larry.jones@sdrc.com>

	* mkmodules.c (config_contents): Add a commented out example for
	LockDir. Don't suggest PreservePermissions unless it's enabled.

2000-07-17  Larry Jones  <larry.jones@sdrc.com>

	* login.c (get_cvs_password): Handle malformed ~/.cvspass more
	gracefully.

2000-07-12  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (modules5): New tests for module programs.

2000-07-11  Larry Jones  <larry.jones@sdrc.com>

	* filesubr.c (copy_file, xcmp): Handle systems (like Plan 9) that
	don't support mknod() and/or st_rdev.
	* import.c (add_rcs_file): Ditto.
	* rcs.c (RCS_checkout, RCS_checkin): Ditto.
	* update.c (special_file_mismatch): Ditto.

2000-07-10  Larry Jones  <larry.jones@sdrc.com>

	* zlib.c (gunzip_and_write): Fix type clashes.

	* main.c (main): Remove unused variables.

2000-07-10  Jim Meyering  <meyering@lucent.com>

	When a command like `cvs update -kk -jT1 -jT2' creates a new file
	(because it had the T2 tag, but not T1), the subsequent commit of
	that just-added file would effectively set the admin `-kk' option
	for that file in the repository.

	* update.c (join_file): Rename global-shadowing local `options'
	to `t_options'.
	Set file-scoped global `options' to NULL just before
	check-out.
	* sanity.sh (join-admin): New test for this.

2000-07-08  Larry Jones  <larry.jones@sdrc.com>

	* version.c, cvs.h (version): New function.
	* main.c (cmds[]): Add version command to invoke it.
	(main): Also use it in -v.
	* server.c (serve_version): New function.
	(requests[]): Add version command to invoke it.

2000-07-06  Karl Fogel  <kfogel@red-bean.com>

	* sanity.sh (pserver-14): remove this test for portability
	reasons (it was only recently added for the 2000-07-04 change).

2000-07-06  Larry Jones  <larry.jones@sdrc.com>

	sanity.sh (modules-148): Don't test for specific revisions.

	* main.c (main): Catch SIGABRT to try to clean up after assertion
	failures.  Don't bother SIG_register'ing Lock_Cleanup because
	main_cleanup calls it indirectly anyway.
	* patch.c (patch): Catch SIGABRT.
	* rcs.c (rcs_internal_lockfile): Ditto.
	* server.c (server): Ditto.

	* fileattr.c (fileattr_write): Don't delete the unrecog_head list
	when writing...
	(fileattr_free): Delete it when freeing!

2000-07-05  Larry Jones  <larry.jones@sdrc.com>

	* admin.c (admin): Handle -t in client so reading from files works
	correctly in client/server mode.
	* sanity.sh (log2): Update to match.

2000-07-04  Karl Fogel  <kfogel@red-bean.com>

	* server.c (pserver_authenticate_connection): use new
	getline_safe() during authentication phase, to avoid a
	denial-of-service attack in which client sends arbitrary
	amounts of data with no newlines.
	(Reported by <jpmg@eng.cam.ac.uk>.)

	* sanity.sh: new test pserver-14 for above.

	* myndbm.c: #include getline.h.
	(mydbm_load_file): pass new GETLINE_NO_LIMIT flag to getstr().

2000-07-03  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (modules): Rewrite using dotest.  Add "modules-"
	prefix to test names.

2000-06-28  Larry Jones  <larry.jones@sdrc.com>

	* error.c (error_exit): Call rcs_cleanup () to release any rcs locks.
	* rcs.c, rcs.h (rcs_cleanup): Make public, close file before trying
	to remove (some systems won't remove open files).
	(RCS_putdtree): Don't worry about cleaning up before call error
	since it now does it for us.
	(rcs_internal_lockfile, rcs_internal_unlockfile): Keep track of
	lock file fd for rcs_cleanup ().

	* client.c (handle_set_checkin_prog, handle_set_update_prog):
	Just ignore the request when exporting.

2000-06-27  Larry Jones  <larry.jones@sdrc.com>

	* create_adm.c, cvs.h (Create_Admin): Add dotemplate argument.
	Change all callers.
	* checkout.c (checkout_proc): Don't create CVS/Template if
	exporting.

2000-06-26  Pavel Roskin <proski@gnu.org>
	and Larry Jones  <larry.jones@sdrc.com>

	* server.c (switch_to_user): Only set CVS_Username if
	AUTH_SERVER_SUPPORT is defined.

2000-06-23  Larry Jones  <larry.jones@sdrc.com>

	* client.c (send_dirent_proc): Don't allocate ignlist if you're
	going to skip the directory (plugs memory leak).
	(send_dirleave_proc): New function.
	(send_files): Use it (plugs memory leak).
	* root.c (root_allow_free): Plug memory leaks.
	* server.c (serve_directory, serve_notify, check_password,
	pserver_authenticate_connection): Ditto.
	* update.c (update): Ditto.

	This completes the memory leak shoot-out -- the Purify'ed version
	of CVS now runs the entire test suite, both local and remote (except
	for remote crerepos, which causes Purify to choke) with *no* memory
	leaks.

	* server.c (pserver_authenticate_connection): Don't free null pointer.

2000-06-21  Larry Jones  <larry.jones@sdrc.com>

	* client.c (update_entries, get_responses_and_close): Plug memory leaks.
	* commit.c (find_fileproc, commit): Ditto.
	* import.c (import): Ditto.
	* log.c (cvslog): Ditto.
	* recurse.c (start_recursion): Ditto.
	* remove.c (cvsremove): Ditto.
	* server.c (fd_buffer_initialize, server_notify, do_cvs_command): Ditto.
	(fd_buffer_shutdown): New function.

2000-06-20  Larry Jones  <larry.jones@sdrc.com>

	* root.c (parse_cvsroot): Put the terminating NUL byte into the
	string *before* copying it, not after. :-(

2000-06-19  Larry Jones  <larry.jones@sdrc.com>

	* main.c (main): Plug memory leaks.
	* root.c (parse_cvsroot, set_local_cvsroot): Ditto.
	* server.c (serve_root): Ditto.

2000-06-16  Larry Jones  <larry.jones@sdrc.com>

	* fileattr.c (fileattr_read): Plug memory leak.
	* rcs.c (RCS_whatbranch): Ditto.
	* update.c (update_dirleave_proc): Ditto.

	* ignore.c (ign_dir_add): Duplicate string so caller can free.

	* modules.c (do_module): Don't write into dbm's memory!

2000-06-15  Larry Jones  <larry.jones@sdrc.com>

	* checkout.c (checkout_proc): Fix non-ANSI code in call to
	findslash(), minor cleanups.

2000-06-14  Larry Jones  <larry.jones@sdrc.com>

	* tag.c (val_direntproc): Return R_PROCESS instead of 0.

	* client.c (update_entries): Fix type clash calling gunzip_and_write().
	* server.c (receive_file): Fix type clash calling gunzip_and_write().
	(server_updated): Fix type clash calling buf_output().
	* error.c (error): Make buf char instead of unsigned char to avoid
	type clashes.

	* modules.c (do_module): Change callback_proc to pass argc by
	value instead of by reference: callback procs shouldn't be
	messing with the callers argc/argv, it makes correct memory
	management impossible.  Plug memory leaks.
	* cvs.h: Change to match.
	* checkout.c (checkout_proc): Ditto; use a local argv array instead
	of messing with caller's.
	* modules.c (callback_proc): Ditto.
	* patch.c (patch_proc): Ditto; use a local argv array instead
	of messing with caller's.
	* rtag.c (rtag_proc): Ditto; use a local argv array instead
	of messing with caller's.
	* server.c (expand_proc): Ditto.
	* subr.c (line2argv): Change initial argv_allocated back to 1.

	* checkout.c (findslash): Fix non-ANSI code.

	* sanity.sh (modes3): Fix test names.

2000-06-13  Larry Jones  <larry.jones@sdrc.com>

	* add.c (add): Plug memory leaks.
	* admin.c (admin_fileproc): Ditto.
	* checkout.c (build_dirs_and_chdir): Ditto.
	* edit.c (editors_fileproc): Ditto.
	* log.c (cvslog, log_parse_revlist, log_parse_date): Ditto.
	* rcs.c (RCS_addaccess): Ditto.
	* tag.c (check_fileproc): Ditto.
	* vers_ts.c (Version_TS): Ditto.
	* watch.c (watchers_fileproc): Ditto.

2000-06-12  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c (rcsbuf_valword): Set rcsbuf->vlen to keep rcsbuf_valcopy()
	from allocating more memory than needed for @ strings.  Don't declare
	unless PRESERVE_PERMISSIONS_SUPPORT (since not defined).

	* rcs.c (RCS_abandon): New function to abandon changes.
	* rcs.h: Declare it.
	* admin.c (admin_fileproc): Use it instead of RCS_reparsercsfile.

	* commit.c (commit_fileproc): Fix memory leaks.
	* patch.c (patch_fileproc): Ditto.
	* rcs.c (RCS_nodeisbranch, RCS_copydeltas): Ditto.
	* tag.c (tag_fileproc): Ditto.
	* update.c (update): Ditto.

2000-06-09  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c (RCS_reparsercsfile, RCS_fully_parse, getdelta,
	RCS_getdeltatext): Handle newphrases with composite values.
	(rcsbuf_getkey): Don't remove @s in composite values -- it makes
	it impossible to parse the value!  Set special flag to indicate
	a composite value.
	(rcsbuf_valcopy, rcsbuf_valpolish_internal): Handle composite values.
	(putrcsfield): Write composite values.
	(RCS_checkin): Set node types in other_delta list.
	* hash.h: Add RCSCMPFLD.
	* hash.c (nodetypestring): Ditto.

	* rcs.c (getdelta): Never allocate space for value, just return
	pointer into rcsbuf (fixes memory leaks).  Use rcsbuf_getkey to
	read a key and value and then parse the value if needed rather
	than trying to read it in bits and pieces with rcsbuf_getid,
	rcsbuf_getstring, and rcsbuf_getword.
	(RCS_reparsercsfile): Change callers to compensate.
	(rcsbuf_valcmp, rcsbuf_valword): New functions.
	(rcsbuf_getid, rcsbuf_getstring, rcsbuf_getword): Deleted.
	* sanity.sh (rcs3-1): Now get slightly different error message.

2000-06-08  Larry Jones  <larry.jones@sdrc.com>

	* main.c (usg): Update CVS home page URL.

	* main.c (main): Provide an actual error message for an unknown
	command in addition to the usage message.

2000-06-07  Larry Jones  <larry.jones@sdrc.com>

	* server.c (serve_root, dirswitch, serve_repository,
	serve_static_directory, serve_sticky, receive_partial_file,
	receive_file, serve_modified, server_write_entries, serve_notify,
	serve_checkin_prog, serve_update_prog, server): Don't set
	pending_error before calling alloc_pending, it makes it fail;
	use alloc_pending instead of malloc when reasonable; be sure to
	save errno before calling functions that might change it.
	(Patch submitted by Dietmar Petras <dietmar.petras@elsa.de>.)

2000-06-03  Larry Jones  <larry.jones@sdrc.com>

	* commit.c (checkaddfile): Plug memory leak.
	* rcs.c (RCS_checkin): Plug memory leaks.
	* server.c (do_cvs_command): Plug file descriptor leaks.
	* tag.c (check_fileproc): Plug memory leak.

2000-05-26  Larry Jones  <larry.jones@sdrc.com>

	* recurse.c (unroll_files_proc): Plug memory leak.

	* recurse.c (addfile): Fix nonportable pointer cast.

	* rcs.c (rcsbuf_getstring, rcsbuf_getword, getdelta): Plug memory
	leaks.

2000-05-25  Larry Jones  <larry.jones@sdrc.com>

	* checkout.c (checkout, build_one_dir, checkout_proc): Move m_type
	to file scope and use it instead of continually doing strcmp on
	command_name.
	(build_one_dir, checkout_proc): Don't allow export if CVSADM
	directory already exists.

2000-05-23  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c (RCS_checkin, RCS_cmp_file): Plug memory leaks.  (Patch
	submitted by Chris G. Demetriou <cgd@sibyte.com>.)

2000-05-20  Ian Lance Taylor  <ian@zembu.com>

	* client.c (connect_to_gserver): Handle server error messages
	reasonably.

2000-05-19  Larry Jones  <larry.jones@sdrc.com>

	* server.c (requests): Make Global_option RQ_ROOTLESS so it can be
	used with init.

2000-05-18  Larry Jones  <larry.jones@sdrc.com>

	* client.c (start_server): Don't do encryption, authentication,
	compression, or case insensitivity when doing init because init
	is ROOTLESS and they're not.

	* client.c (connect_to_pserver): Include repository and username in
	authorization failed message -- if a directory tree crosses multiple
	repositories, it can be quite difficult for the user to figure out
	which one is the problem.

2000-05-17  Larry Jones  <larry.jones@sdrc.com>

	* main.c (main): Use full set of options when looking for -f to
	avoid misparsing options that take values (previously, -sVAR=foo
	was incorrectly parsed as though it were -s -V -A -R -= -f -o -o
	because it didn't know that -s takes a value).
	* sanity.sh (info-6b): New test for above.

	* sanity.sh (conflicts-status): Fix tests so they work remotely, too.

2000-05-17  Jim Meyering  <meyering@lucent.com>

	* sanity.sh (TESTDIR): Fix braino in last change:
	cd to /tmp before invoking pwd.

	* sanity.sh: Set TESTDIR so that `make check' passes even when /tmp
	is a symlink.
	(join-36): Use $TESTDIR rather than hard-coding `/tmp/cvs-sanity'.
	(conflicts-132): Remove unnecessary `rm aa'.

2000-05-16  Jim Kingdon  <kingdon@redhat.com>

	* cvs.h, checkout.c (safe_location): Make extern.
	* import.c (import): Call it rather than reimplementing
	(incompletely) the same check.

2000-05-16  Larry Jones  <larry.jones@sdrc.com>

	* rcs.h, subr.c (file_has_markers): Check for any of the three
	conflict marker lines, not just one.
	* sanity.sh (conflicts-status): New tests for above.
	* sanity.sh: Revise to avoid tripping the above check when merging
	changes into sanity.sh itself.

2000-05-15  Larry Jones  <larry.jones@sdrc.com>

	* update.c (join_file): When registering the result of the merge,
	make sure that the version number is valid (vers->vn_rcs may be
	null if the file doesn't exist on the branch yet).  (Patch submitted
	by Robert de Vries <rhdv@rhdv.cistron.nl>.)
	* update.c (join_file): Correct diagnostics (previous change was not
	correct -- the file *does* exist in the specified revision, it just
	doesn't exist in the sandbox).
	* sanity.sh (import-113, join): New tests and changes for above.

2000-05-04  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh: Look for a useful id program.  Since we're getting
	the real username for some tests anyway, use it for all the
	tests instead of a generic regular expression that may or may
	not match the actual username.

2000-05-04  Larry Jones  <larry.jones@sdrc.com>

	* server.c: More error messages.

2000-05-02  Donald Sharp <sharpd@cisco.com>
	and Larry Jones  <larry.jones@sdrc.com>

	* history.c (report_hrecs): Added code to print out year instead of
	just month/day.
	* sanity.sh (basic2-64, history): Update to match.

2000-04-19  Larry Jones  <larry.jones@sdrc.com>

	* server.c (dirswitch): Set pending_error_text in addition to
	pending_error to aid in problem determination.

2000-03-23  Larry Jones  <larry.jones@sdrc.com>

	* mkmodules.c (mkmodules): Return without doing anything if noexec
	is set to avoid trashing existing files.

2000-03-23  Larry Jones  <larry.jones@sdrc.com>

	* main.c: Alphabetize cmds[] and cmd_usage[] and add server
	commands to cmd_usage[].

2000-03-21  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (client-1): May get "Broken pipe" message from the
	"server" in addition to the expected output.

2000-03-17  Larry Jones  <larry.jones@sdrc.com>

	* server.c (switch_to_user): Set CVS_Username if it hasn't already
	been set elsewhere.  (Patch submitted by Gordon Matzigkeit
	<gord@fig.org>).

2000-03-13  Larry Jones  <larry.jones@sdrc.com>

	* parseinfo.c: Add extern to logHistory declaration.  (Reported by
	<John.Tytgat@aaug.net>.)
	(parse_config): Reformat logHistory code.

2000-03-10  Larry Jones  <larry.jones@sdrc.com>

	* add.c (add): Don't try to set cvsroot_len until after checking
	for help only -- CVSroot_directory isn't set in that case.

2000-03-03  Larry Jones  <larry.jones@sdrc.com>

	* mkmodules.c (init): Use mkdir_if_needed to create CVSROOT/Emptydir
	so we don't fail if run multiple times.  (Reported by KOIE Hidetaka
	<hide@koie.org>.)
	* sanity.sh (1a): New test for above.

2000-03-02  Larry Jones  <larry.jones@sdrc.com>

	* main.c: Use identical #if's in the command table and the code
	for pserver and kserver to prevent "peculiar" configurations from
	having really perverse behavior because the command table entries
	are present but the related code isn't.

2000-03-01  Larry Jones  <larry.jones@sdrc.com>

	* import.c (import): Don't allow importing the repository.
	* sanity.sh (errmsg2-20, errmsg2-21): New tests for above.

2000-03-01  Larry Jones  <larry.jones@sdrc.com>

	* main.c (main): Update year in copyright message.

2000-03-01  Larry Jones  <larry.jones@sdrc.com>

	* logmsg.c (do_editor): Correct previous change.

2000-02-29  Larry Jones  <larry.jones@sdrc.com>

	* logmsg.c (do_editor): When reading temp file, check that message
	buffer is large enough to hold the next line and expand if needed.

2000-02-28  Larry Jones  <larry.jones@sdrc.com>

	* commit.c (commit): Use get_file() to read log file correctly
	and in text mode rather than binary mode.

	* subr.c (get_file): Ignore bufsize if buf is NULL.  Include
	terminating NUL byte when estimating required buffer size.

2000-02-28  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (find_tool): New function to replace duplicated code.

2000-02-25  Larry Jones  <larry.jones@sdrc.com>

	* import.c (add_rcs_file): Don't abort just because lstat fails.

2000-02-16  Jim Meyering  <meyering@lucent.com>

	Avoid race condition whereby a catchable signal could
	end up corrupting the repository.
	* commit.c (checkaddfile): Put a critical section around the code
	that handles the first commit on the trunk of a file that's already
	been committed on a branch.
	* cvs.h (Sig_inCrSect): Declare new function.

2000-02-21  Karl Fogel  <kfogel@red-bean.com>

	* main.c (main): still check for repository, but not history file
	(correction to 2000-02-18 change -- that's what I get for
	believing the comment rather than the code).

2000-02-21  K.J. Paradise <kj@sourcegear.com>

	* history.c mkmodules.c parseinfo.c: control which actions
	get logged to the cvs history file via CVSROOT/config file
	and LogHistory keyword. (John P Cavanaugh <cavanaug@sr.hp.com>)

2000-02-18  Karl Fogel  <kfogel@red-bean.com>

	* history.c (history_write): don't die if history file not
	writable, just warn (unless `really_quiet') and skip out.

	* main.c (main): don't bother checking if history file is
	writable.

	* server.c (serve_root): same.

2000-02-17  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (perms symlinks symlinks2 hardlinks): Don't run by
	default since PreservePermissions code is now disabled.

2000-02-17  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (import-113): Revise to match Jim Meyering's fix.

2000-02-16  Larry Jones  <larry.jones@sdrc.com>

	* add.c (add): Don't allow adding files or directories to Emptydir.
	(Patch submitted by Chris Cameron <chris.cameron@ot.co.nz>.)
	* sanity.sh (emptydir): Revise (emptydir-7 and emptydir-8) for this.

2000-02-16  Jim Meyering  <meyering@lucent.com>

	* update.c (join_file): Correct typo in diagnostic:
	change `file %s is present...' to `file %s is not present...'.

2000-02-10  Larry Jones  <larry.jones@sdrc.com>

	* parseinfo.c (Parse_Info): Treat matching lines with bad expansions
	as errors rather than just ignoring.

2000-02-10  Larry Jones  <larry.jones@sdrc.com>

	* edit.c (edit): Check for invalid characters in hostname and CurDir.
	(Reported by "Andrew S. Townley" <atownley@informix.com>.)
	* sanity.sh (devcom2): New tests for above.

2000-02-10  Larry Jones  <larry.jones@sdrc.com>

	* cvs.h: Always #include "server.h" to prevent compile errors when
	neither CLIENT_SUPPORT nor SERVER_SUPPORT is defined.
	(Reported by "Crow, Ian" <ian.crow@linklaters.com>.)
	* log.c (send_one, send_arg_list): Only define when CLIENT_SUPPORT
	is defined to prevent link errors.

	* server.c (server): Always create a new temporary directory, don't
	try to reuse an existing one since we might not have correct
	permissions.  Also, include directory name in error messages.

2000-01-29  Jim Kingdon  <http://developer.redhat.com/>

	* ignore.c (ignore_files): Correctly set errno to 0 when we go
	back to the top of the loop.  Fixes spurious errors like "cvs
	update: error reading current directory: No such file or
	directory".

2000-01-26  Larry Jones  <larry.jones@sdrc.com>

	* run.c (run_exec): Conditionalize K.J.'s change so that it only
	applies when SETXID_SUPPORT is defined since some platforms don't
	have setegid().

2000-01-26  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh: Make TESTDIR earlier then use it to check for versions
	of expr that don't work right with long expressions.

	* sanity.sh (dotest_line_by_line): Have wc read from stdin so it
	doesn't output the file name and confuse expr.  Make the output a
	bit less verbose and easier to read.

2000-01-24  K.J. Paradise <kj@sourcegear.com>

	* run.c :> prevents a user from creating a privileged shell from the
	text editor when the SETXID_SUPPORT option is selected.  This came from
	Bob Colle <bcolle@ilx.com>, and is his completely.

2000-01-22  Jim Kingdon  <http://developer.redhat.com/>

	* sanity.sh (emptydir): Add a case in which one might hope for a
	non-Emptydir result, but which result?

2000-01-18  Larry Jones  <larry.jones@sdrc.com>

	* main.c (main): Allow -z0 to disable gzip compression.

2000-01-17  Larry Jones  <larry.jones@sdrc.com> for
	K.J. Paradise (kj@sourcegear.com)

	* version.c: Push version number to 1.10.8.1.

	* version.c: Version 1.10.8.

2000-01-17  Larry Jones  <larry.jones@sdrc.com>

	* mkmodules.c (init): Create CVSROOT/Emptydir to avoid problems
	with users not having sufficient permissions to create it later.

2000-01-04  Larry Jones  <larry.jones@sdrc.com>

	* client.c (get_responses_and_close): Simplify time-stamp race
	avoidance code.
	* commit.c (commit): Ditto.
	* update.c (do_update): Ditto.
	(Prompted by patch submitted by Pavel Roskin
	<pavel_roskin@geocities.com>.)

	* hardlink.c: sizeof (char) is 1, by definition.
	* logmsg.c: Ditto.
	* rcs.c: Ditto.

2000-01-03  Karl Fogel  <kfogel@red-bean.com>

	* filesubr.c, subr.c (backup_file): moved this function from
	filesubr.c to subr.c, at JimK's suggestion.

2000-01-03  Jim Kingdon  <http://developer.redhat.com/>

	* sanity.sh (clean): Test the contents of the .#cleanme.txt.1.1
	file, not just its existence.

2000-01-03  Karl Fogel  <kfogel@red-bean.com>

	* cvs.h, filesubr.c (backup_file): use `const' for suffix too;
	correct suffix length calculation and appending behavior; discard
	unnecessary `void' cast.  Thanks to Jim Meyering for noticing.

2000-01-03  Larry Jones <larry.jones@sdrc.com>

	* sanity.sh (clean): Fix up expected output.

2000-01-02  John P Cavanaugh <cavanaug@sr.hp.com>
        and Karl Fogel <kfogel@red-bean.com>

	New -C option to update: overwrites local changes with clean
	copies from the repository.  (This is an unreversion of the
	1999-12-10 change, further modified to work remotely.)

	* client.h (BACKUP_MODIFIED_FILES): new #define.

	* client.c (struct send_data): new element `backup_modified'.
	(send_files): set above element if BACKUP_MODIFIED_FILES flag is
	present.

	* filesubr.c (backup_file): new function.

	* cvs.h: prototype for new function `backup_file'.

	* update.c (toss_local_changes): new file-scoped global.
	(update): set toss_local_changes if -C flag seen.  If
	client_active, send "-C" to server, and set SEND_NO_CONTENTS and
	BACKUP_MODIFIED_FILES flags before calling send_files().

	(update_fileproc): if file is modified and toss_local_changes is
	set, then back the file up and then check out a fresh copy from
	the repository.  Also, fixed indentation and formatting for a
	particularly bad stretch of code near (but unrelated to) these
	changes.

	* sanity.sh: new test `clean', for update -C option.

1999-12-29  Jim Kingdon  <http://developer.redhat.com/>

	* history.c (read_hrecs): st_blksize is unsigned long, not int.
	This isn't just cosmetic - getting it wrong will cause coredumps
	and such on 64 bit machines.

	* import.c (import_descend), ignore.c (ignore_files): Placate gcc
	-Wall by parenthesizing foo || (bar && baz).

1999-12-24  Larry Jones <larry.jones@sdrc.com>

	* release.c (release): Use fputs to echo lines from update instead
	of printf to avoid problems with lines containing "%".  (Reported
	by Jean-Luc Simard <Jean-Luc.Simard@matrox.com>.)

	* history.c (read_hrecs): Allocate a single 2-block buffer instead
	of allocating and freeing a buffer for each block.
	(fill_hrec): Remove redundant code.
	(select_hrec): Plug memory leak.

1999-12-22  Larry Jones <larry.jones@sdrc.com>

	* history.c (history): For "modified" or "checkout", sort on
	file if user specified -l, even if user also specified a date-
	oriented flag.
	* sanity.sh (history): Update to match; add new tests.

1999-12-15  Pavel Roskin <pavel_roskin@geocities.com>
	and Larry Jones <larry.jones@sdrc.com>

	* lock.c (lock_name): fixed assertion failure for the
	top-level CVS directory when LockDir is used
	* sanity.sh (lockfiles-9): new test for this case

1999-12-11  Karl Fogel  <kfogel@red-bean.com>

	* Revert previous change -- it doesn't work remotely yet.

1999-12-10  John P Cavanaugh <cavanaug@sr.hp.com>
        and Karl Fogel <kfogel@red-bean.com>

	* update.c: new -C option to update, overwrites local changes with
	clean copies from the repository.
	Also, fixed indentation and formatting for a particularly bad
	stretch of code near these changes in update_fileproc().

	* sanity.sh: test new update -C option.

1999-12-10  Larry Jones <larry.jones@sdrc.com>

	* commit.c (remove_file): Call history_write with update_dir NULL
	like Checkin() does for add and modify.
	* sanity.sh (basic2-64): Update to match, add "R" records to expected
	remote output.

1999-12-09  K.J. Paradise (kj@sourcegear.com)

	* history.c, commit.c, sanity.sh: found (I think) final
	cause of seg fault in history command.  Also, added the "R"
	history functionality.  Fixed basic2-64 so it looks correct for
	the change.

1999-11-30  K.J. Paradise (kj@sourcegear.com)

	* history.c: fixed seg fault caused by 11-03 changes.
	off by one in block memory allocations.

1999-11-29  Karl Fogel  <kfogel@red-bean.com>

	* login.c (logout): free `tmp_name' when done.
	Correct a comment.

1999-11-29  Larry Jones <larry.jones@sdrc.com>

	* cvs.h, error.c, import.c: Rename fperror to avoid name clash
	on LynxOS.  (Reported by Markus Braun <MarkusBraun@gmx.de>.)

1999-11-23  Larry Jones <larry.jones@sdrc.com>

	* checkout.c (checkout_proc): Split declaration and initialization
	of rp to placate neurotic compilers that gripe about jumping past
	an initialization, even when the variable is not subsequently used.

1999-11-19  Larry Jones <larry.jones@sdrc.com>

	* server.c (switch_to_user): Correct setgid error messages.

1999-11-19  Karl Fogel  <kfogel@red-bean.com>

	* edit.c (unedit_usage, unedit): new struct, use it.  Now "cvs
	unedit" prints an accurate usage message (formerly it printed the
	message for "cvs edit", even though the two commands do not have
	identical usages).

1999-11-19  Larry Jones <larry.jones@sdrc.com>

	* history.c: Move -e documentation from Flags to Reports.
	(history): Add -e to list of report types in error message.

	* history.c (history): Process file arguments before client/server
	processing so they get sent to the server.
	* sanity.sh (history): New tests for above.  (Also remove comments
	about variable spacing -- history output is in variable-width
	columns with exactly one space between.)

1999-11-19  Larry Jones <larry.jones@sdrc.com>

	* sanity.sh: Reestablish check for running as root (using ``id -u''
	instead of ``whoami'').

	* sanity.sh(dotest, dotest_lit, dotest_fail, dotest_status,
	dotest_sort): Eval the command so quoting and pipes work right.
	(spacefiles, dirs, rcslib, modules, unedit-without-baserev,
	ignore, rcs, rcs2, history, tagdate, pserver, server, server2)
	Simplify various tests based on above.

1999-11-19  Karl Fogel  <kfogel@red-bean.com>

	* mkmodules.c (init): make history file world-writeable after
	creating it, since it needs to be writeable for virtually any
	CVS operation.

1999-11-10  Jim Kingdon  <http://developer.redhat.com/>

	* admin.c: Revert change to add -H command option.  The help
	invocation is "cvs -H admin" not "cvs admin -H" (see cvs.texinfo,
	basicb-21 in sanity.sh; fix to cvs.1)

1999-11-08  Jim Kingdon  <http://developer.redhat.com/>

	* log.c (cvslog): If client_active, send options to the server
	based on our parsed options rather than trying to send the exact
	strings specified (using canonical forms, like RFC822/1123
	dates, in the protocol is just cleaner).
	(send_one, send_arg_list): New functions, helpers for above.
	* sanity.sh (logopt-6a): New test, for this fix.

1999-11-09  K.J. Paradise <kj@sourcegear.com>

	* admin.c: made the -H option do what it is documented to
	do.  a

1999-11-08  Tom Tromey  <tromey@cygnus.com>

	* client.c (connect_to_gserver): Print more error text if gssapi
	initialization fails.  From Assar Westerlund <assar@sics.se>.

1999-11-06  Larry Jones <larry.jones@sdrc.com>

	*sanity.sh(rcs3-5): Remote output can be out-of-order, so need a
	more general pattern to match the assertion failure.

1999-11-05  K.J. Paradise (kj@sourcegear.com)

	* history.c: Added a trap to verify that if a
	read(file, buffer,blocksize) returns less than blocksize,
	that we really are at the end of the file.  I can't easily
	come up with a test case where this code gets touched, so
	it may cause problems.  All sanity tests still pass though.

1999-11-05  Jim Kingdon  <http://developer.redhat.com/>

	* sanity.sh (logopt): New test, for Larry's fix.
	* sanity.sh (log-18a, rcs-15 to rcs-19): New tests, to test -d
	and -r more thoroughly.

1999-11-05  Larry Jones <larry.jones@sdrc.com>

	* log.c (cvslog): Fix -s and -d with spaces on client side.
	(log_usage): Revert Karl's change once again.
	sanity.sh(rcs3-5): No longer get different results from local
	and client/server.

1999-11-04  Karl Fogel  <kfogel@red-bean.com>

	* log.c (log_usage): Revert Jim Kingdon's reversion of my change
	of 1999-11-03.  Allowing a space between option and argument
	results in lossage; here is a reproduction recipe: run this from
	the top of a remote copy of the cvs source tree

	   cvs log -d '>1999-03-01' > log-out.with-space

	and then run this (note there's no space after -d now):

	   cvs log -d'>1999-03-01' > log-out.no-space

	The resulting files differ; furthermore, a glance at the output of
	cvs shows that the first command failed to recurse into
	subdirectories.  Until this misbehavior can be fixed in the source
	code, the documentation should reflect the true state of affairs:
	if one simply omits the space, everything works fine.

1999-11-04  Jim Kingdon  <http://developer.redhat.com/>

	* log.c (log_usage): Revert Karl's change regarding -d and
	-s.  A space is allowed (see sanity.sh for example).

1999-11-03  K.J. Paradise (kj@sourcegear.com>

	* history.c: cleaned up my prior change a bit, per Larry Jones'
	comments, and John O'Conner's additional comments about bits of
	non MS-Visual C++ compliancy of my code.

1999-11-04  Larry Jones <larry.jones@sdrc.com>

	* sanity.sh: Check that tr that correctly handles NULs; if not, try
	to find a version that does; if none can be found, warn user.
	Also fix warnings for defective expr.

1999-11-04  Karl Fogel  <kfogel@red-bean.com>

	Changes for empty/random passwords in anon pserver access:

	* server.c (check_repository_password): if password empty, grant
	access no matter what password is received; this is so anon CVS no
	longer requires a password but remains backwards-compatible with
	all those clients out there.

	* client.c (connect_to_pserver): proceed with login even if
	password not found in .cvspass file -- just use empty string as
	password.  And if such a login fails, print a descriptive error.

	* login.c (get_cvs_password): don't complain if file or password
	not found.  That condition is no longer a showstopper, now that
	empty passwords are permissible.
	Cleaned up conditional chaining a bit, too.

	* sanity.sh (pserver-9, pserver-10, pserver-11, pserver-12,
	pserver-13): new tests, about empty-password pserver access.

1999-11-03  K.J. Paradise (kj@sourcegear.com>

	* history.c:  modify parsing routines to parse the history
	file a block at a time, rather than all at once.  This allows
	people with large history files and small amount of memory
	to still get some functionality out of the history file.

1999-11-03  Karl Fogel  <kfogel@red-bean.com>

	* log.c (log_usage): correct usage message for -d and -s options.
	Because the space between the option letter and its argument has
	been eliminated, I capitalized the argument portion to distinguish
	it from the option letter.  This makes it slightly inconsistent
	with other such usage summaries, but at least it is now both
	correct and readable.

1999-10-22  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (dotest_sort): Old versions of tr don't understand \t
	so use a literal tab instead.

1999-10-21  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (dotest_sort): Convert any tabs in the output into spaces
	before sorting to avoid POSIX.2 sort weirdness.
	(import-106, importb-2): Change expected output per above.

1999-10-18  K.J. Paradise <kj@sourcegear.com>

	Bug: users 'stan' and 'cartman' both have full read/write access
	to the cvs repository.  'cartman' does a 'cvs admin -l foo.c'.
	'stan' then does a 'cvs admin -u foo.c'.  The lock wouldn't be
	removed, and no warning/error would be given.  This is now fixed.
	* rcs.c:(c.6157) remove caller/user check on the multiple lock
        detection routines.  Sanity.sh runs with no errors after this fix.

1999-10-14  Larry Jones  <larry.jones@sdrc.com>

	Make "cvs admin -e" (with no list of users) work:
	* admin.c (admin): Remove error message.
	(admin_fileproc): If no args for -e, call RCS_delaccess with NULL user.
	* rcs.c (RCS_delaccess): Interpret NULL user as request to delete
	entire access list.
	* sanity.sh (admin-19a-*): Test.

1999-09-29  Larry Jones  <larry.jones@sdrc.com>

	* entries.c (Subdirs_Known): Use entfilename when opening CVSADM_ENTLOG
	like everywhere else.  Although this isn't strictly necessary (since
	we immediately close it again), it keeps the code consistent and fixes
	a bug where an open error reported the wrong file name.

1999-09-16  Larry Jones  <larry.jones@sdrc.com>

	* log.c (log_parse_revlist): Handle peculiar revision specs like
	"-r.", "-r:", and "-r," correctly.  (Thanks to Pavel Roskin
	<pavel_roskin@geocities.com> for submitting a patch, this fix is
	somewhat different.)
	* sanity.sh (log): New tests for above.

1999-09-15  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (basica-8b1): New test to check fix for bad diff options
	causing cvs to crash.

1999-09-02  Larry Jones  <larry.jones@sdrc.com>

	* modules.c (do_module): Handle case where module definition has
	options and special options but no directory; fix potential problems
	running off beginning of string while stripping trailing blanks.
	* sanity.sh (modules2): New tests for above.

1999-08-26  Larry Jones  <larry.jones@sdrc.com>

	* lock.c (lock_name): Remove side-effects from assert() expression
	since they won't occur if NDEBUG is defined (not that that's a good
	thing to do).  (Reported by KOIE Hidetaka <hide@koie.org>.)

1999-08-25  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh: Use "${AWK}" instead of "awk" to make it easier for
	people to use nawk/gawk/etc.; use an explicit "-print" with find
	since some older version don't assume it; rename tests to avoid
	duplicate importc-8.  (Changes along these lines suggested by
	Chris Cameron <chris.cameron@ot.co.nz>.)

1999-08-24  Larry Jones  <larry.jones@sdrc.com>

	* commit.c (check_fileproc): Don't crash when a file has no
	repository, just treat it as unknown.  (Reported by Stefaan
	Diericx <stefaan.diericx@argenta.be>.)
	* sanity.sh (errmsg2): New tests, for this fix.

1999-08-18  Larry Jones  <larry.jones@sdrc.com>

	* update.c (special_file_mismatch): Initialize *_hardlinks to
	avoid trying to free garbage later on.  (Reported by Jan
	Scheffczyk <herta@Xterminator.StudFB.UniBw-Muenchen.de>.)

1999-08-17  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (basicc-11): Older versions of sh don't understand
	``if ! test...''.  (Patch submitted by David J N Begley
	<david@avarice.nepean.uws.edu.au>.)

1999-08-17  Larry Jones  <larry.jones@sdrc.com>

	* client.c, hardlink.c, hash.c, hash.h, main.c, recurse.c: Change
	enum constant UNKNOWN to avoid conflicts on HPUX 11.0.  (Reported
	by Laurent Duperval <laurent.duperval@cgi.ca>.)

1999-08-16  Larry Jones  <larry.jones@sdrc.com>

	client.c: Eliminate redundant #if.  (Patch submitted by Assar
	Westerlund <assar@sics.se>.)

1999-07-30  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c (RCS_checkin): Terminate cleanly if RCS_addbranch fails
	rather than blithely continuing on and crashing.
	* sanity.sh (basica): New tests, for this fix.

1999-07-29  Larry Jones  <larry.jones@sdrc.com>

	* import.c (add_rcs_file): change "cannot lstat" message to include
	userfile (the actual file causing the problem) instead of user
	(which may or may not be the same).

1999-07-29  Eric Sink   <eric@sourcegear.com>

	* version.c: Push version number to 1.10.7.1.

	* version.c: Version 1.10.7.

1999-07-28  Eric Sink   <eric@sourcegear.com>

	* sanity.sh: before running basicc-11, we need to see if
	the cwd has been deleted (by basicc-8).  If so, we
	recreate it to allow basicc-11 to proceed.  This may be
	something that only happens under the Linux 2.2 kernel.

1999-07-18  Karl Fogel  <kfogel@floss.red-bean.com>

	* edit.c (notify_do): chop newline, if any, from the value
	obtained from CVSROOT/users.  Otherwise it just gets passed along
	in the argument to the notification program (usually mail), which
	will misinterpret it as signifying the end of the command.

1999-07-19  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c (RCS_delete_revs): In the WIN32 kludge, be sure that the result
	of RCS_getexpand is not NULL before trying to use what it points to.
	(Patch submitted by Timothy L. Taylor <ttaylor@mitre.org>.)

1999-07-16  Tom Tromey  <tromey@cygnus.com>

	* admin.c (admin): Allow `-k' options to be used unrestricted.

1999-06-23  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (symlinks2): New test, for symlinks in working
	directory without PreservePermissions.  This test (modulo a few
	details not relevant to testing whether we are following symlinks)
	worked remote as of now, or either remote or local for CVS 1.9.
	* subr.c (get_file): Revert 1998-02-15 change to special-case
	symlinks.  This makes the above test work local too.
	* rcs.c (RCS_checkin): Move the logic to handle special-case
	symlinks (and other files other than regular files) here, and make
	it only happen if PreservePermissions is on.

1999-06-18  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (devcom3-9a): Be less specific about the expected
	error message (BSD/OS 4.0 has a bug that can cause exec* to fail
	with EACCES instead of ENOENT).

1999-06-08  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (diff-4, dirs2-10, tagf-13, importc-7, conflicts2-142b8):
	Use ${PROG} instead of "cvs".

1999-06-05  Jim Kingdon  <http://www.cyclic.com>

	* recurse.c (do_recursion, do_dir_proc): Make the SERVER_ACTIVE
	#ifdef be only around the check for server_active.  Modulo a few
	cosmetic tweaks, same as a patch submitted by Johannes Stezenbach
	of propack-data.de.

1999-06-01  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh: Add comment about rcs2-7 failures on certain days.

	Make "cvs status -v" on a removed file work:
	* status.c (cvsstatus): Reindent the client code.
	(status_fileproc): Don't need a CVS/Entries listing to show the
	tags.
	* sanity.sh (rmadd2): New test rmadd2-16 tests the existing
	behavior with "cvs log"; new test rmadd2-17 tests the new behavior
	with "cvs status".

	* sanity.sh (basicc): To match no output in dotest, put the empty
	regexp first.  Remove tests which check that first-dir exists,
	since that isn't true in the case where the OS let us delete it.
	(dotest_internal): Fix so that things work with two regexps, with
	an empty one first.

1999-05-28  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (server-4): Replace bogus directory with real one since
	the server now checks it.

1999-05-27  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (spacefiles): Clean up -c, top, and -b at end.
	(spacefiles, files): Fix bad references to CVSROOT_DIRNAME.

	Fix two problems pointed out by Olaf Kirch of swb.de/caldera.de:
	* server.c (outside_root): New function, contains expanded version
	of code from serve_directory.
	(serve_directory): Call outside_root.
	(outside_dir): New function
	(serve_modified, serve_is_modified, serve_notify,
	serve_questionable, serve_unchanged): Call outside_dir.
	* sanity.sh (server2): New tests, for these fixes.

1999-05-26  Jim Kingdon  <http://www.cyclic.com>

	* cvs.h, subr.c (xmalloc): Return void* not char*, like xrealloc
	has done for some time.
	* modules.c (do_module): If we find the module as a directory/file
	(rather than in the modules file), skip a bunch of processing
	which was unnecessary and also broken in most of the cases
	now tested for by the spacefiles sanity.sh test.
	* sanity.sh (spacefiles): New test, for specifying filenames
	(containing spaces, or starting with '-', or starting with '/') to
	"cvs co".

1999-05-25  Jim Kingdon  <http://www.cyclic.com>

	* client.c (update_entries): Make the old DONT_USE_PATCH code the
	only code.  This means that if people are still on CVS 1.9
	servers, then CVS will fall back to transferring entire files.
	This is better than looking for an external "patch" program which
	causes no end of troubles (especially on Windows, but someone just
	posted to info-cvs about a problem with the Solaris patch).  (This
	change was run by devel-cvs and feedback was positive).

	* subr.c (xmalloc, xrealloc): The new error.c does not support
	%lu; use sprintf instead.

1999-05-25 Derek Price
	<http://www-personal.engin.umich.edu/~oberon/resume.html>

	* sanity.sh (server): Escaped a few more newlines in
	another awk script.  Solaris awk still don't like 'em.

1999-05-25 Derek Price
	<http://www-personal.engin.umich.edu/~oberon/resume.html>
	and Jim Kingdon

	* log.c: Remove comment which said "you can delete [this line]"
	and which stuck around for over 3 years.
	* sanity.sh (errmsg2 & tagdate): Added tests to prove the
	current functionality with respect to combining -r and -D.

1999-05-20  Larry Jones  <larry.jones@sdrc.com>

	* server.c (pserver_authenticate_connection): Previous changes
	broke verify_and_exit (reported by Robert Fitzsimons, thanks).
	* sanity.sh (pserver): New tests pserver-7 and pserver-8 for this.

1999-05-18 Derek Price
	<http://www-personal.engin.umich.edu/~oberon/resume.html>

	* sanity.sh (keyword2): Escaped a newline in an awk script.
	Apparently Solaris awk don't like 'em.

1999-05-18  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (basicc): Allow the behavior whereby unlink(".")
	succeeds.  Reported by Jeremy Buhler and Pavel Roskin.

1999-05-17  Steve Cameron of Compaq

	* sanity.sh: Modified to no longer use "test -e" for existence
	test as it has turned out to be not portable enough.  Instead use
	"test -f", "test -d", etc.
	[SCO Unixware 7 apparently doesn't always support it -kingdon]

1999-05-17  Jim Kingdon  <http://www.cyclic.com>

	* version.c: Push version number to 1.10.6.1.

	* version.c: Version 1.10.6.

1999-05-16  Jim Kingdon  <http://www.cyclic.com>

	* update.c (patch_file): When we are passing vn_rcs to
	RCS_checkout, pass vn_tag as well.
	* sanity.sh (keyword): In test keyword-22, test for the fixed
	behavior rather than the buggy behavior.  Adjust keyword-23.  Add
	test keyword-24, to see whether keyword-23 really worked.

1999-05-12  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (pserver-4, pserver-5): Bogus error messages from
	non-root initgroups on some 4.4BSD derived systems now show up
	in different places in the output.

1999-05-12  Jim Kingdon  <http://www.cyclic.com>

	* import.c (import): Don't allow the user to supply a repository
	directory which takes us out of the cvsroot.
	* sanity.sh (importc): New tests importc-10 to importc-12, for this.

1999-05-11  Larry Jones  <larry.jones@sdrc.com>

	* server.c (serve_notify): Allocate enough memory to hold the
	"misformed Notify request" message in pending_error_text.

1999-05-11  Jim Kingdon  <http://www.cyclic.com>

	* server.c (switch_to_user): Ignore EPERM from initgroups.  Fixes
	pserver-4 in testsuite.
	(pserver_authenticate_connection): Only print "I LOVE YOU" after
	switch_to_user has come back successfully.

	* server.c (pserver_authenticate_connection): Call error_exit
	rather than reinventing the wheel ourselves.
	(switch_to_user): Check for errors from setuid, setgid, and
	initgroups.  Fix the #ifdef's (the previous code would skip the
	setuid call if SETXID_SUPPORT).

1999-05-10  Jim Kingdon  <http://www.cyclic.com>

	* server.c (serve_notify), edit.c (notify_do): Check for
	and reject characters which will get confused with delimiters.
	* sanity.sh (server): New tests server-7 through server-15 test
	for this and for other notify behaviors.

	* rcs.c (RCS_tag2rev): Also look for a physical branch with
	RCS_getversion.
	* sanity.sh (tagf): Adjust tagf-12 and following tests to test for
	the fixed behavior rather than the broken behavior.

1999-05-07  Jim Kingdon  <http://www.cyclic.com>

	* server.c (server_notify): Also set last_node to NULL.
	* sanity.sh (server): New tests server-6 and server-7, for this.

1999-05-05  Jim Kingdon  <http://www.cyclic.com>

	* rcs.c (rcs_internal_lockfile): Remove unused variable lockfile.

	* add.c (add): Look for directories with the same name in a
	different case where appropriate (analogous to fopen_case).
	In client code, add comment about how this doesn't do quite
	everything.

1999-05-03  Jim Meyering  <meyering@ascend.com>

	Remove rcs-style ,file, lock files upon signal.
	* rcs.c (rcs_lockfile): New file-scoped global.
	(rcs_cleanup): New function (similar to patch_cleanup).
	(rcs_internal_lockfile): Register rcs_cleanup the first time this
	function is called.  Rename uses of local `lockfile' to refer to new
	global, `rcs_lockfile'.  Don't free the lock file name string, now
	that it's global.
	(rcs_internal_unlockfile): Rename `lockfile', as above, and carefully
	free and NULL-out the global, rcs_lockfile.

1999-04-30  Jim Kingdon  <http://www.cyclic.com>

	* rcs.c (annotate_fileproc): Don't cast NULL in passing it to
	RCS_deltas.  Because there is a prototype in scope the cast is
	unnecessary (per HACKING's ANSI C or SunOS4 rule), and in fact it
	was causing failures on UNICOS because it cast to size_t instead
	of size_t*.  (Thanks to Dean Kopesky for reporting this).

1999-04-29  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh: If invoked without any arguments, print a usage
	message (thanks to Pavel Roskin for a report/patch).

	* run.c (piped_child): Make the error messages more verbose.
	(close_on_exec): Reindent.
	* sanity.sh (devcom3): Several errors are possible in devcom3-9a.
	Adjust for change to piped_child error message.

1999-04-28  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (devcom3): Add some tests of the CVS/Notify file and
	disconnected "cvs edit".

	* main.c (opt_usage): Remove -b.

1999-04-20 Derek Price
	<http://www-personal.engin.umich.edu/~oberon/resume.html>

	* rcs.c (RCS_delete_revs):  RCS_delete_revs uses an
	RCS_checkout call to get a new copy of a revision to be
	used internally after old revisions were deleted and it was
	performing keyword substitutions.  This munged all the
	the revisions of the file on the branch containing the
	deleted revisions and its sub-branches, as the original they
	were being patched from was incorrect.  Corrected this by
	passing in "-ko" as an option to RCS_checkout.
	* sanity.sh (keywordlog):  modified this test to verify the
	correct behavior of 'cvs admin -o'.
	[Fixed use of \$ in keywordlog test; added code in RCS_delete_revs
	to abort on binary file on Windows -kingdon]

1999-04-21  Derek Price
	<http://www-personal.engin.umich.edu/~oberon/resume.html>
	and Jim Kingdon

	* tag.c (tag_check_valid): A bug was causing CVS to spin
	indefinately when -j:<date> was specified.  CVS now returns
	an error.
	* sanity.sh: Added a test (tagdate-12) to test this.

1999-04-19  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (backuprecover): Clean up the repository at the end.

1999-04-18  Derek Price
	<http://www-personal.engin.umich.edu/~oberon/resume.html>

	* sanity.sh added a test (backuprecover) to test cvs behavior
	with a repository that is out of date relative to the
	developer's workspaces.
	[Fix --keep code; move test to "Repository Storage" section since
	it doesn't really exercise the diff/diff3 library. -kingdon]

1999-04-13  Derek Price
	<http://www-personal.engin.umich.edu/~oberon/resume.html>

	* sanity.sh (diff):  Tests to verify correct operation of
	the --ifdef parameter to cvs diff.
	[indentation fixed -kingdon].

1999-04-13  Derek Price
	<http://www-personal.engin.umich.edu/~oberon/resume.html>
	for Noah Friedman  <friedman@splode.com>

        * diff.c (diff): Put "--ifdef=" in opts string, not "-D"; the
        latter is confused by pserver for a date spec.

1999-04-14  Jim Kingdon  <http://www.cyclic.com>

	* fileattr.h: Adjust comments to reflect the official version of
	the fileattr format now being in cvs.texinfo.

1999-04-05  Jim Kingdon

	* sanity.sh (watch5): Remove nonstandard --keep code.  Don't pass
	-f to rm when cleaning up (that tends to mask bugs).  Add watch5
	to list of tests at start.  Add comment explaining why we consider
	the behavior we test for the right one.  Rename a few tests which
	had been erroneously named watch6* instead of watch5*.
	* client.c (update_entries): Add comment with brief discussion of
	whether there is a better way.

1999-04-05  Derek Price
	<http://www-personal.engin.umich.edu/~oberon/resume.html>

	* client.c (update_entries):  Only call mark_up_to_date
	(which deletes the CVS/Base/<filename> file for watched
	and edited files) on commit.
	* sanity.sh:  Make sure the CVS/Base/<filename> file for
	a watched and edited file is not removed on a status or
	update of a touched/unmodfied file.

1999-03-30  Larry Jones  <larry.jones@sdrc.com>

	* client.c (get_responses_and_close), commit.c (commit),
	update.c (do_update): If the sleep(1) call returns prematurely
	(due to the way wakeup is scheduled or receiving a signal), do
	it again.

1999-03-26  Jim Kingdon  <http://www.cyclic.com>

	* server.c (server): Add comment about Gzip-stream vs. RQ_ROOTLESS.

	* sanity.sh (modules3-11b): Adjust exact text of error message to
	reflect 1999-03-24 change to dirswitch.

1999-03-25  Jim Kingdon  <http://www.cyclic.com>

	* admin.c (admin): Make argument to -e optional, to match the
	documentation.
	* sanity.sh (admin-19a-2): Test for this.

	* server.c (serve_root): Update comment about checking for missing
	Root request.

1999-03-24  Jim Kingdon  <http://www.cyclic.com>

	* server.c (dirswitch): Also check dir here, similar to
	what server_pathname_check does for other cases.
	* sanity.sh (files): Adjust files-14 to test for this.

1999-03-24  Derek Price
	<http://www-personal.engin.umich.edu/~oberon/resume.html>
	and Jim Kingdon

	* sanity.sh: added a test (files-13) to test .. indirection
	in a path and another (files-14) to make sure we still fail
	out when the '..' indirection takes us into the $CVSROOT
	directory or beyond.

1999-03-24  Larry Jones  <larry.jones@sdrc.com>

	* rcs.c: Change enum constants ADD and DELETE to something less
	likely to run into conflicts.

1999-03-21  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (tagf): New test, tests for moving a branch tag to a
	non-branch tag and trying to recover.

1999-03-12  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (branches): Tweak test branches-5 to test the case in
	which one modifies a file and then branches it.

1999-03-09  John Bley of duke.edu

	* mkmodules.c (filelist): Missed a NULL in this struct (should
	have 3 members, only had 2).

1999-03-07  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (Index): Rename new test from rm_CVS/Root to rmroot
	(we don't have a formal rule about funky punctuation in test names
	but both underscore and a slash is too funky for me :-)).
	Reindent a few tests which were off.

	* root.c: Remove the sentence which had the improper English;
	there isn't really a need for that sentence and it isn't
	particularly accurate any more.

1999-02-27  Derek Price
	<http://www-personal.engin.umich.edu/~oberon/resume.html>

	* sanity.sh:  Added rm_CVS/Root test to test that CVS uses
	$CVSROOT rather than dumping core when running remotely and
	the admin file CVS/Root is deleted from the workspace.

	Also, altered a few 'cvs commit' 's in regular expressions to
	fit the .${PROG} commit. portability syntax.

	* recurse.c:  Stopped CVS from dumping core in the case tested
	above.

	* root.c:  Fixed somebody's improper english.

1999-02-25  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (keyword2-12): Use ${QUESTION} instead of ? in the
	expected result.

1999-02-24  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (keyword2): Restore the original \\\$ instead of $.
	The latter ends up working due to various kludgy semantics in the
	shell and regular expressions, but the former is cleaner.

	* sanity.sh (keyword2): Protect keywords against accidental
	expansion in sanity.sh itself (most occurrences had this, but not
	all).

1999-02-23  Derek Price  <http://www.cyclic.com>
	and Jim Kingdon.

	* sanity.sh (keyword2): New test, tests for merging with -kk.

1999-02-22  Jim Kingdon  <http://www.cyclic.com>

	* version.c: Ease version number to 1.10.5.1.

	* version.c: Version 1.10.5.

1999-02-18  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (files): New test, for a relatively obscure spurious
	"Up-to-date check failed" in client/server.

	* main.c (lookup_command_attribute): Don't check for "history"
	twice.

1999-02-17  Jim Kingdon  <http://www.cyclic.com>
	    and Hallvard B Furuseth

	* root.c (parse_cvsroot): Rearrange ifdefs to squelch possible
	warnings about statement not reached.

1999-02-16  Jim Kingdon  <http://www.cyclic.com>

	* recurse.c (start_recursion): If we are skipping the current
	directory (due to it being from the wrong repository), also adjust
	the arguments we send to the server accordingly (like we already
	do for the case in which there is no CVS directory).
	* sanity.sh (multiroot4): New test, for this.  All these tests had
	passed locally, but remote multiroot4-12 tests for this fix.
	(multiroot): Adjust multiroot-diff-1, multiroot-update-2,
	multiroot-tag-1, multiroot-status-1, multiroot-update-3, and
	multiroot-log-1 to reflect the cosmetic change this produces (one
	less "Diffing ." message).
	(multiroot2): multiroot2-8 likewise.

1999-02-10  Jim Kingdon  <http://www.cyclic.com>

	* tag.c (cvstag): Don't pass SEND_NO_CONTENTS if -c specified.
	* sanity.sh (tagc): New test, for various tag -c behaviors.
	Test tagc-6 tests for this fix.

1999-02-09  Jim Kingdon  <http://www.cyclic.com>

	* error.c (error): Rewrite to no longer use vasprintf (see
	../lib/ChangeLog for rationale).  Note the slight change in
	interface - callers which want %8.8s or similar formats need to
	call sprintf.
	* lock.c (lock_wait, lock_obtained): Use sprintf.

1999-02-08  Jim Kingdon  <http://www.cyclic.com>

	* rcs.c (RCS_delete_revs): Pass -a to diff_exec.
	* sanity.sh (binfiles3): New tests binfiles3-9 through
	binfiles3-13 test for this fix.
	* sanity.sh (binfiles): New tests binfiles-o4 and binfiles-o5
	(which don't test this bug, just on general principles).

1999-02-04  Jim Kingdon  <http://www.cyclic.com>

	* lock.c (lock_name): Permissions of directories in LockDir
	shouldn't depend on the umask.
	* sanity.sh (lockfiles): Set umask and CVSUMASK, to test for this.

1999-02-01  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (keywordlog): New tests keywordlog-22 and
	keywordlog-23 test keyword expansion and $Log.  Adjust other tests
	so that revisions differ more from each other, so this is a
	better test.

1999-01-29  Jim Kingdon  <http://www.cyclic.com>

	* commit.c (checkaddfile): If options is "", treat it the same as
	NULL.  Centralize this check, and the one for it starting with
	"-k", at the start of the function.

	* rcs.c, rcs.h (RCS_setexpand): New function.
	* admin.c (admin_fileproc): Access keyword expansion field via
	RCS_getexpand and RCS_setexpand, rather than directly.
	* commit.c (checkaddfile): When resurrecting, set the keyword
	expansion mode.
	* sanity.sh (binfiles3): Adjust tests binfiles3-7 and binfiles3-8
	for the new behavior.

1999-01-27  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (multiroot3): Add new variant of multiroot3-10 test
	for RELATIVE_REPOS.  Move multiroot3-11 test out of the
	conditionals; it works the same for remote or local,
	RELATIVE_REPOS or no.

	* options.h.in: Make RELATIVE_REPOS the default, as has been
	announced as a future direction since 1997-10-11.
	* sanity.sh (multiroot): Tweak multiroot-update-1a and
	multiroot-update-1b tests to work with either RELATIVE_REPOS or
	non-RELATIVE_REPOS.

	* sanity.sh (client-9): Don't assume the time zone.

1999-01-26  Jim Kingdon  <http://www.cyclic.com>

	Fix one facet of the "cvs add -kb" re-adding problem (the other
	known facet is tested for by binfiles3-8).
	* add.c (add): When re-adding a file, set the keyword expansion
	as we normally would.
	* sanity.sh (binfiles3): New test binfiles3-6a tests for this.

1999-01-22  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (rmadd2): New tests, for undoing a commit.

1999-01-21  Eric Mumpower  <nocturne@cygnus.com>

	* sanity.sh (reposmv): Actually modify CVSROOT in current
	environment when calling functions, rather than trying to achieve
	the same effect with "CVSROOT=foo functionname". (Many common
	bourne shells, including those in SunOS and Solaris 2.4-2.7,
	do not properly handle "ENVVAR=foo command" when "command" is
	a user-defined shell function rather than an actual executable.)

1999-01-15  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (rcs3): Redirect awk's stdin to /dev/null like all the
	other awk invocations.  GNU awk seems not to read stdin in this
	case, but that behavior is hard to reconcile with the Single Unix
	Spec and some awks don't do it.

	* sanity.sh (binfiles, binfiles2, binfiles3, server): Use the same
	tr trick as in rcs3.  People don't seem to have been complaining,
	and this should fix server-4 for HPUX.

1999-01-14  Jim Kingdon  <http://www.cyclic.com>

	* client.c (recv_line): If the line we are reading contains a
	character which would sign-extend to EOF, don't treat it as end of
	file.  recv() doesn't report end of file this way and this might
	fix bugs with 0xff characters.

1999-01-14  Larry Jones  <larry.jones@sdrc.com>

	* client.c (recv_line): Handle EOF from server.

	* sanity.sh (importc-8, importc-9): Accept anything in the seconds
	fields of the timestamps since touch doesn't set it reliably.
	(This isn't great, but it's better than nothing.)

1999-01-14  Jim Kingdon  <http://www.cyclic.com>

	* run.c (run_exec): Adjust comment about vfork; this isn't the place
	to get into a treatise about fork performance vs. vfork
	performance but it isn't quite as simple as whether one has
	copy-on-write.

1999-01-13  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (dotest_fail): Handle spurrious output from assert better.

	* sanity.sh (rcs3-4, rcs3-5a): Handle even more variants of the
	assertion failure message.

1999-01-12  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (mtfr-3): ls behavior varies wildly on nonexistant files,
        just use echo instead.

1999-01-11  Jim Meyering  <meyering@ascend.com>

	* sanity.sh (mkmodules-temp-file-removal): New test, for this.
	* mkmodules.c (mkmodules): Remove each `CVSROOT/.#[0-9]*' temporary
	file that's used to check out files listed in CVSROOT/checkoutlist.
	Remove extra semicolon at end of line.

1999-01-11  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (rcs3-5a): Allow for multiple lines of output before the
	assertion failure message.

	* sanity.sh (lockfiles-6, client-8): Work around bug in HP-UX chmod
	(doesn't allow anything to follow omitted permissions).

1999-01-09  Jim Kingdon  <http://www.cyclic.com>

	* client.c (set_sticky): Nonfatal error if we can't write it.
	* sanity.sh (dirs2-8 through dirs2-14): New tests, for this.

	* sanity.sh (rcs3): Write NUL character with tr not awk, in
	accordance with Single Unix Specification.  Hopefully will fix
	rcs3-7 for HPUX.  Will not work on SunOS4, but then again neither
	did the old syntax.

1999-01-05  Jim Kingdon  <http://www.cyclic.com>

	* client.c, update.c: Rename MD5* functions to cvs_MD5* per
	corresponding change to ../lib/md5.h.

1999-01-03  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (client): Give file1 a predictable mode so that the
	output in client-9 will not depend on the umask of the user
	running the tests.

1998-12-29  Jim Kingdon  <http://www.cyclic.com>

	* client.c (client_senddate): Use date_to_internet rather than
	using our own "5/26/1997 13:01:40 GMT" date format.
	* main.c (date_to_internet): Check for errors from sscanf.  Always
	send a four digit year.  Send hours, minutes, and seconds as two
	digits per RFC822.
	* sanity.sh (client): New tests client-8 and client-9 test for this.

	* sanity.sh (rcs2): New tests rcs2-6 through rcs2-8 test for fix
	to lib/getdate.y (before the fix, "100 months" or "8 years" would
	tend to mean the year 1969, thus the tests would give "cvs update:
	file1 is no longer in the repository").

1998-12-28  Larry Jones  <larry.jones@sdrc.com>

	* entries.c (Register): Return if unable to open log file to avoid
	referencing the invalid file pointer.
	* sanity.sh (dirs2-7): With above change, no longer fails.
	* sanity.sh (rcs3-5a): Another assertion failure message.
	* sanity.sh (pserver-4, pserver-5): Some 4.4BSD derived systems spit
	out bogus error messages when initgroups is called as non-root.

1998-12-23  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (rcs3, dotest_fail): The assertion failure message varies
	wildly between different systems and the resulting abort call can
	even result in spurrious output.  Fix the regexp to accept nearly
	anything containing some kind of assertion failure and ensure that
	any spurrious output ends up in the output file instead of on the
	terminal.

1998-12-23  Jim Kingdon  <http://www.cyclic.com>

	* admin.c, checkout.c, commit.c, cvsrc.c, expand_path.c,
	history.c, ignore.c, import.c, log.c, mkmodules.c, modules.c,
	myndbm.c, parseinfo.c, rcs.c, remove.c, rtag.c, status.c, subr.c,
	tag.c, wrapper.c: Cast all char's to unsigned char before passing
	them to ctype.h functions (isalpha, isgraph, isalnum, isspace,
	isdigit, isprint, isupper).  Whether using ctype.h is the right
	thing at all is unclear to me (having the server depend on locale
	seems wrong, as we don't necessarily have any good way to set the
	right locale, if there even is such a concept as 'right' locale in
	this context), but as long as we use ctype.h we might as use it
	according to the standards (this affects systems where plain char
	is signed but users supply characters with the 8th bit set).
	Thanks to Paul Eggert for suggesting this.

1998-12-22  Jim Kingdon  <http://www.cyclic.com>

	* sanity.sh (rcs3): Oops, the earlier fix for srcdir only fixed
	the non-remote case, not the remote case.  Fix the other occurrence.

1998-12-22  Jim Kingdon

	* sanity.sh (rcs3): The assertion failure message varies slightly
	depending on whether CVS was built with srcdir != ".".  Fix regexp.

1998-12-21  Jim Kingdon

	* rcs.c (RCS_getdate): Reindent Jim Meyering's change; remove
	unused variable x_vers.

	* rcs.c: When printing an unexpected character we found in the RCS
	file, print it in hex rather than as a character (see comment for
	rationale).
	* sanity.sh (rcs3): Adjust rcs3-2 and rcs3-7 tests accordingly.

	* sanity.sh (rcs3): New test, for some error handling cases
	involving parsing RCS files.

1998-12-16  Jim Meyering  <meyering@ascend.com>

	* rcs.c (RCS_getdate): Handle the case in which a file is first
	imported after its initial version has been created.
	* sanity.sh (import-after-initial): New test for that.

1998-12-17  Jim Kingdon

	* server.c (serve_root): Pserver_Repos only exists if
	AUTH_SERVER_SUPPORT is defined.

1998-12-12  Jim Kingdon, and Derek R. Price of Stortek.

	* sanity.sh (multiroot): Change + to ${PLUS}.

1998-12-12  Jim Kingdon, and Gary Young of Motorola

	* sanity.sh (admin): In tests admin-13, admin-25, and admin-29,
	allow 4 digit year in addition to 2 digit year.

1998-12-12  Jim Kingdon

	* sanity.sh (log): New tests log-14a and log-14b test for -rHEAD
	and for HEAD as (nonexistent) file name.

1998-12-02  Jim Kingdon

	* version.c: Squish version number to 1.10.4.1.

	* version.c: Version 1.10.4.

1998-11-24  Jim Kingdon

	* recurse.c (do_file_proc): Check for errors from RCS_parse.
	* sanity.sh (rcslib-symlink-7 through rcslib-symlink-10): New
	tests, test for this.

	* sanity.sh (reposmv-2): Adjust for 22-Nov change to Find_Names.

	* entries.c (Register): If we can't write Entries.Log, make it a
	nonfatal error.
	* sanity.sh (dirs2): Test for this fix.

	* sanity.sh (dirs2): Clean up working directory at end of test.

1998-11-23  Jim Kingdon

	* sanity.sh (dirs2): New test, for some more cases involving
	deleting directories and such.

	* sanity.sh (dirs): Update for yesterday's change in Find_Names
	error handling.  The error in dirs-4 is fairly different now; in
	dirs-3 and dirs-3a it is the obvious change.

1998-11-22  Jim Kingdon

	* sanity.sh (release): Move the commments listing "cvs release"
	tests from modules2-6 to here.
	* release.c (release): Update comment to reflect "? foo" case.

	* find_names.c (Find_Names): If we can't read the repository, make
	it a nonfatal error.  Tell the caller whether this happened.
	(find_rcs): Add comment regarding this behavior.
	* recurse.c (do_recursion): If Find_Names gives an error, skip
	the directory and print a message saying so.
	* sanity.sh (modes3): New test, for this.

1998-11-18  Jim Kingdon

	* rtag.c (rtag_usage), tag.c (tag_usage): Use "-r rev"
	consistently.

	* sanity.sh (conflicts3): Tests conflicts3-24 through
	conflicts3-28 test for another case similar to conflicts3-22.

1998-11-14  Jim Kingdon

	* sanity.sh (diff): New test, for now just tests for the "I know
	nothing" message.

	* sanity.sh (conflicts2-142b7 through conflicts2-142b11): New
	tests; resurrecting doesn't work from one level up.

	* sanity.sh (mwrap-7): Remote prints the messages in a different
	order.

1998-11-13  Jim Kingdon

	* tag.c (check_fileproc): Log tag deletions.
	* rtag.c (check_fileproc): Likewise.
	* sanity.sh (taginfo-14 through taginfo-18): New tests, for
	these behaviors.

1998-11-12  Jim Kingdon

	* sanity.sh (mwrap-7): Update for the noexec fix.

	* server.c (server_copy_file): Add comment about noexec.

	* update.c (checkout_file): Handle noexec case involving revbuf
	and modes.
	(update_fileproc): In case T_NEEDS_MERGE, let merge_file take care
	of noexec, so it can tell the user if there would be conflicts.
	(merge_file): Print "conflicts found in FILE" message
	regardless of noexec.  Add comment about checking for whether the
	file already contained the changes, and noexec.
	* sanity.sh (conflicts-192a): New test, for this.

1998-10-20  Jim Kingdon

	Use the gzip library on the server.  Probably doesn't speed things
	up as currently implemented, but does avoid hassles in terms of
	finding an external gzip program.
	* zlib.c, server.h (gunzip_and_write, read_and_gzip): Now returns
	whether a fatal error occurred, rather than expecting error (1,
	...) to work.
	* client.c (update_entries, send_modified): Change callers.
	* server.c (receive_file): Rewrite gzip code to use
	gunzip_and_write rather than filter_through_gunzip.
	(server_updated): Likewise, use read_and_gzip rather than
	filter_through_gzip.
	* client.c, client.h (filter_through_gzip, filter_through_gunzip),
	run.c, cvs.h (filter_stream_through_program): Removed; no longer used.
	* sanity.sh (server): New tests server-4 and server-5 test
	this feature (note that CVS 1.10 also passes these tests; the
	behavior is supposed to be unchanged).

1998-10-19  Jim Kingdon

	* sanity.sh (multiroot3): New test, tests for a few more
	multiroot cases.

	* lock.c (lock_name): Set the permissions on each directory we
	create to that of the parent directory.
	* sanity.sh (lockfiles): New chmod and tests lockfiles-7a and
	lockfiles-7b test for this.  Adjust lockfiles-5 for new text of
	error message.

1998-10-15  Jim Kingdon

	* server.c (requests): Set RQ_ROOTLESS for "Set".
	* sanity.sh (info): Also clean up $HOME/.cvsrc.
	(server): Test that we can send Set before Root (had been tested
	by crerepos-6b, but only if you ran the info test first).  Tests
	for this fix.

1998-10-14  Jim Kingdon

	* subr.c (expand_string): Tweak the algorithm so that the size
	that it allocates is generally a power of two.

1998-10-14  Eivind Eklund and Jim Kingdon

	* commit.c (commit): For the client, don't worry about whether we
	are root.

1998-10-13  Jim Kingdon

	* server.h (struct request): Change status field to flags and add
	RQ_ROOTLESS.
	* client.c (handle_valid_requests, supported_request): Change
	status to flags.
	* server.c (requests): Change status to flags.  Add RQ_ROOTLESS.
	* server.c (server): If not RQ_ROOTLESS, and we haven't gotten a
	Root request, give an error.

1998-10-12  Jim Kingdon

	* version.c: Slide version number to 1.10.3.1.

	* Version 1.10.3.

	* sanity.sh (modules2-17): Update for 9 Oct 1998 change to
	update_dirent_proc.

1998-10-11  Jim Kingdon

	* commit.c (checkaddfile, commit_fileproc): A numeric value for
	'tag' does not mean that we are adding on a branch.
	* sanity.sh (keywordlog): Adjust this test, to test for this
	(replaces comment saying we should be doing it).
	(rmadd): Likewise.

	* sanity.sh (rmadd): New test, tests for various existing
	behaviors with "cvs ci -r".

1998-10-09  Jim Kingdon

	* update.c (update_dirent_proc): For local CVS, if the directory
	does not exist in the working directory nor in the repository,
	just skip it.
	* sanity.sh (dirs): New tests dirs-3a, dirs-7 and dirs-8 test for
	this and related behaviors.  Note that the new behavior was also
	the previous behavior for remote; we are only changing it for local.

	* wrapper.c, cvsrc.c, ignore.c: Add comments about ignoring .cvsrc
	and friends if we can't find a home directory.
	* expand_path.c (expand_path): If we can't find the home
	directory, give an error rather than a coredump (or worse).
	* login.c (construct_cvspass_filename): Don't use errno in error
	message; get_homedir doesn't set it.  Add comment about this
	message.

1998-10-07  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* diff.c (diff): Set variables to NULL at the start, and free
	memory at the end.
	* sanity.sh (multiroot2): Add tests for this (before the fix,
	multiroot2-12 would abort with "no more than two revisions/dates
	can be specified").

1998-10-06  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* Makefile.in (installcheck check): Remove references to RCSBIN;
	they don't do anything now that RCSBIN is ignored.

	* client.c: Clean up horrible confusion about whether stored_mode
	or stored_mode_valid (or nothing :-)) indicates whether
	stored_mode is allocated.  Should fix crashes (for example, on NT
	when the server has renamed multiple files from uppercase to
	lowercase).

	* sanity.sh (dirs): New tests, tests for some cases involving
	admins who do surgery on the repository.

1998-10-03  Johannes Stezenbach <johannes.stezenbach@propack-data.de>

	* vers_ts.c (Version_TS): If UTIME_EXPECTS_WRITABLE, if
	necessary change the file to be writable temporarily to set its
	modification time.

1998-10-03  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* client.c (handle_error): Add comment about indicating which
	errors are from the server.

1998-10-01  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (devcom-180): Allow one digit day.

1998-09-30  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* main.c (main): Don't call Name_Root if -d specified.
	* recurse.c (do_recursion, do_dir_proc): Don't check CVS/Root
	if -d was specified.
	* import.c (import): Indentation fix.
	* sanity.sh (multiroot): Update for this change.
	(reposmv): New test, tests for this.

1998-09-28  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (multiroot2): New test, tests some nested directory
	cases.

1998-09-25  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (multiroot): Change a few comments which said modules
	when they meant directories.

1998-09-25  Jim Meyering  <meyering@ascend.com>

	* sanity.sh (devcom-180): Add 0-9 to the range of characters allowed
	in hostname regexp.

1998-09-25  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (log2): New test log2-7a tests for one error handling
	case.  Add a comment about another.

1998-09-24  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh: Change crerepos test back to :ext: (for several
	reasons; see comments).

1998-09-24  Noel Cragg  <noel@swish.red-bean.com>

	* sanity.sh (rcslib-symlink-5, rcslib-symlink-6): new tests to
	check the operation of "tag" when there are symlinks in the
	repository.

	* rcs.c (RCS_checkin): remove old code that resolved the symlink
	and call resolve_symlink instead.
	(RCS_rewrite): call resolve_symlink before doing anything else to
	make sure we're operating on the file and not the symlink.

	* subr.c (resolve_symlink): new routine -- resolves a symbolic
	link chain to its destination.
	* cvs.h: add prototype.

	* sanity.sh (basica-6.2, basica-6.3): changed match expressions to
	reflect new diff output.

	* rcs.c (make_file_label): generate labels for files that include
	the pathname so that output from "cvs diff" is useable by patch.
	Looks like I came up with the mods as Andy Piper
	<andyp@parallax.co.uk>; his patch was on the Cyclic unofficial
	patches page.

	* sanity.sh: change remote access method from ext to fork.  This
	results in a significant speed improvement when running the
	testsuite.  The ext method on my machine (i586 120MHz Linux 2.0.35
	with TCP wrappers installed) runs in 450% of the time of the local
	method while the fork method runs in only 150% of the time of the
	local method!  Yow!  Am I SWAPPING yet?!
	(crerepos-6a, crerepos-6b): change to reflect different error
	messages for fork method.
	(modes-15): same.

	* client.c (connect_to_forked_server): new routine.
	(start_server): call the above when method is fork_method.

	* root.c: add a new method named "fork".  This method uses the
	remote protocol, but does so by forking a "cvs server" process
	directly rather than doing "rsh host cvs server" (for example).
	This new method has few advantages for day-to-day use, but has
	three important benefits for debugging:

	  1) Most secure installations these days don't allow rsh access.
	  With this new method, we can still test the remote protocol on
	  these machines because we don't need to be able to make a local
	  TCP connection.

	  2) Even if installations allow rsh access, they almost always
	  have TCP wrappers to check permissions by IP/hostname.  This
	  causes a short delay for every connection.  For invocations from
	  the command line, this doesn't matter much, but it adds up to a
	  significant amount of time when running the testsuite.

	  3) On machines that can't (or do not usually) provide rshd
	  access (I'm thinking of WNT/W95 in particular), we can now run
	  tests of the remote protocol using this method.  Indeed, we can
	  run remote protocol tests on any machine that has an
	  implementation of piped_child().

	(parse_cvsroot): handle new method.
	(error_exit, xstrdup, isabsolute): new stub functions to use when
	compiling root.c with the DEBUG option.
	(main): fix a few typos.
	* cvs.h (CVSmethod): add fork_method.

	* server.c (create_adm_p): use Emptydir as the placeholder
	directory instead of "." to avoid problems with "cvs update -d" et
	al.

1998-09-22  Noel Cragg  <noel@swish.red-bean.com>

	* sanity.sh (devcom-180): fixed typo in regexp.

	* main.c (main): remove need_to_create_root and related code
	(including CVS_IGNORE_REMOTE_ROOT environment variable).  The
	current implementation (just removed) of rewriting the contents of
	the CVS/Root file isn't desirable for a number of reasons:

	  1) Only the top-level CVS/Root directory is updated.  If we're
	  really interested in pointing our WD at another CVSROOT, we
	  should have a separate command.

	  2) With the new multiroot mods, we don't ever want to rewrite
	  CVS/Root files in the way the removed code did.  Consider:

	    cvs -d repository1 co a
	    cd a
	    cvs -d repository2 co b
            cvs -d repository2 update b

	  The update command would rewrite the contents of a/CVS/Root to
	  the incorrect value.  Bad.  We then wouldn't be talking to the
	  correct repository for files in a.

	  3) The removed code seems to be a quick hack to support working
	  directories checked out from multiple repositories.  With the
	  CVS_IGNORE_REMOTE_ROOT variable set, one could perform commands
	  as in example 2, above, without worring about updating CVS/Root
	  files.  While in pre-1.10.1 recursive commands wouldn't handle
	  that working directory hierarchy, one could use commands like
	  "cvs foo -l" instead.  While not great, this allows you (with a
	  lot of manual interaction) to have a multiroot WD.  Since we now
	  have multiroot mods checked in, we don't need this code.

	(lookup_command_attribute): while we don't need the
	CVS_CMD_USES_WORK_DIR flag anymore (since it only was supporting
	the need_to_create_root code), I'm leaving it in.  It may come in
	handy at some later date.

1998-09-18  Jim Kingdon  <kingdon@pennington.cyclic.com>

	* version.c: Advance version number to 1.10.2.1.

	* Version 1.10.2.

1998-09-13  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* client.c: Refuse to Copy-file to another directory
	* sanity.sh (client): New test, tests for this.

	* edit.c (editors_fileproc), watch.c (watchers_fileproc): Use
	cvs_output rather than writing to stdout.
	* sanity.sh (devcom): Use dotest for tests 178, 180, and 183
	(tests that we preserve existing behavior on "cvs editors").

	* commit.c (check_fileproc): Don't allow commits in Emptydir.
	* sanity.sh (emptydir-8): Test for this change in behavior.

	* sanity.sh: Add some compatibility tests to TODO comments at end.

1998-09-10  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* wrapper.c (wrap_add): Remove obsolete comment about -m.

	* server.c (server_updated): Check for error from CVS_UNLINK.

1998-09-09  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* server.c (serve_root): Allocate with malloc, not xmalloc.

	* root.c (set_local_cvsroot): Move memory allocation from here...
	* server.c (serve_root): ...to here.  Fixes error handling.

	* root.c (parse_cvsroot): Don't call check_root_consistent;
	parse_cvsroot is only used for local and client.
	* root.c (set_local_cvsroot): Move check_root_consistent
	functionality from here...
	* server.c (serve_root): ...to here.  Fixes error handling.  Also
	made the error more explicit, while I am at it.
	* server.c (Pserver_Repos): Now static.
	* cvs.h: Don't declare it.
	* root.c (check_root_consistent): Removed; no longer needed.
	* sanity.sh (pserver): New test, tests for this behavior and some
	other basic pserver stuff.

	* update.c (merge_file): Use cvs_output for "already contains the
	differences" message.  Found this one when I actually observed the
	out-of-order bug in Real Life(TM).

1998-09-09  Jim Kingdon

	* find_names.c (find_dirs): Make sure to zero errno before
	going around the loop again.
	* find_names.c (find_rcs): Make sure to set save_errno.
	(thanks to Alexandre Parenteau for reporting both problems).

1998-09-09  Jim Kingdon  <kingdon@harvey.cyclic.com> and Michael Pakovic

	* edit.c (notify_do): Only free line if it is not NULL.

1998-09-07  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* cvs.h: dirs_sent_to_server should not be inside
	AUTH_SERVER_SUPPORT (reported by both Richard Levitte and Murray
	Bishop, thanks).

	* lock.c, cvs.h: New variable lock_dir.
	* parseinfo.c (parse_config): New option LockDir.
	* lock.c (lock_name): New function, abstracts out lock file naming
	and also supports LockDir.
	* lock.c (lock_simple_remove, Reader_Lock, write_lock, set_lock):
	Call it (6 places, to create/remove read/write/master locks).
	(Lock_Cleanup): Refuse to reenter this function.
	* sanity.sh (lockfiles): New test, tests for this feature.

1998-09-03  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (multiroot): Expect ${TESTDIR} in output instead of
	assuming it is /tmp/cvs-sanity (thanks to Mark D. Baushke of Cisco).
	Clean up working directory when done (fixes apparent thinko).

	* server.c (create_adm_p): Fix one "return" which didn't return a
	value.
	(dirswitch): Check for errors from create_adm_p.

	* sanity.sh: Set LC_ALL rather than just LC_COLLATE.

Wed Sep  2 02:30:22 1998  Jim Kingdon  <kingdon@pennington.cyclic.com>

	* version.c: Bump version number to 1.10.1.1.

	* Version 1.10.1.

1998-09-01  Jim Kingdon  <kingdon@harvey.cyclic.com>

	Administrative note regarding Noel's changes to allow one to
	switch from one CVS root to another in a single command: The
	ChangeLog entries for the changes which Noel just checked in
	appear for 1998-09-01, 1998-08-28, 1998-08-25, 1998-08-19, and
	1998-08-18, rather than being all together.

	* main.c (set_root_directory): Fix whitespace.
	(main): Nuke new -m option and just have that message controlled
	by -t.
	* server.c (server): Revert the CVS_SERVER_SLEEP code back the way
	it was in CVS 1.10.  Attaching to the parent process is relatively
	boring (you can just run "cvs server" under a debugger instead),
	but connecting to the child process is what the old code was for.
	* recurse.c, server.c: Remove DEBUG_NJC code.

1998-09-01  Noel Cragg  <noel@swish.red-bean.com>

	* server.c (do_cvs_command): add another environment variable,
	CVS_SERVER_SLEEP2, after forking to pause the program so one can
	attach a debugger.

	* sanity.sh (crerepos): clean up crerepos-18 now that multiroot
	works in this case.
	(multiroot): finalize tests for local vs. remote operation.

	* recurse.c (start_recursion): near the beginning, save the list
	of directories to spoof as command-line arguments, if necessary.
	Use that list near the end and call send_file_names to send those
	arguments to the server.
	(do_argument_proc): removed, since we call send_file_names now.

	* main.c (main): re-initialize dirs_sent_to_server on each pass
	through the loop for each CVSROOT.

	* cvs.h: add proto for global variable which keeps track of which
	directories have been sent to the server when in client mode.

	* client.c (is_arg_a_parent_or_listed_dir): new function.
	(arg_should_not_be_sent_to_server): new function.  Tries to decide
	whether the given argument should be sent to the server, based on
	the current CVSROOT and the list of directories sent to the
	server.
	(send_repository): add the directory name to the list of
	directories sent to the server.
	(send_file_names): call arg_should_not_be_sent_to_server.

	* add.c (add): switch the order of send_files and send_file_names
	to make multiple repository support possible.  send_files needs to
	create a list of directories being requested so that
	send_file_names can decide which command-line arguments to send to
	the server for the given current CVSROOT.
	* admin.c (admin): same.
	* commit.c (commit): same.
	* diff.c (diff): same.
	* edit.c (editors): same.
	* log.c (cvslog): same.
	* rcs.c (annotate): same.
	* remove.c (cvsremove): same.
	* status.c (cvsstatus): same.
	* tag.c (cvstag): same.
	* update.c (update): same.
	* watch.c (watch_addremove): same.
	(watchers): same.

1998-08-31  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh: Remove "debug" function; it was apparently checked
	in accidentally by Norbert Kiesel's change.

1998-08-31  Norbert Kiesel  <nk@iname.com>

	* release.c (release): modify last patch to release so that
	save_cwd is called only once and restore_cwd is always called when
	neccessary.  Also fixed a tiny memory leak.

	* sanity.sh (release): added some more tests for "cvs release"
	including a test with two dirs and a "no" for the first one (which
	fails without the above patch).

1998-08-28  Noel Cragg  <noel@swish.red-bean.com>

	* sanity.sh (crerepos-18): add new comment and change test
	slightly to support multiroot.
	(multiroot): add more tests.

	* server.c (create_adm_p): new function.
	(dirswitch): call create_adm_p.  Modify the code to always write a
	new CVSADM_REP file, since create_adm_p might have put a
	placeholder there and our value is guaranteed to be correct.
	(server): move the CVS_SERVER_SLEEP check here so we can debug
	things at an earlier stage.

	* recurse.c (start_recursion): add large comment about the ideal
	solution to the "Argument xxx" problem.

	* main.c (main): move position of debugging comment for -m flag.

	* diff.c (diff): clear a static variable.

	* client.c (send_file_names): check to see if we should send this
	argument to the server based on the contents of the appropriate
	CVSADM directory.  This avoids "nothing known about foo" messages
	and problems with duplicate modules names in multiple
	repositories.
	(send_a_repository): change method of calculating toplevel_repos
	to support multiple CVSROOTs.
	(start_server): clear some static variables.

1998-08-28  Jim Meyering  <meyering@ascend.com>

	* sanity.sh (basicc-8, basicc-11): Use `.*' instead of explicit
	`Operation not permitted'.  Solaris2.5.1 gets a different error:
	`Invalid argument'.

1998-08-26  Eric M. Hopper

	* sanity.sh: Set LC_COLLATE to "C".

1998-08-25  Noel Cragg  <noel@swish.red-bean.com>

	* sanity.sh (multiroot): new set of tests to check the behavior of
	multiroot.

	* diff.c (diff): set options value to NULL after freeing to reset
	the state for the next time around.

1998-08-25  Jim Kingdon  <kingdon@harvey.cyclic.com>

	Fix problems with trying to rename an open file:
	* rcs.c, rcs.h (RCS_setattic): New function.
	* commit.c (remove_file, checkaddfile): Call it.

1998-08-24  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* release.c (release): Use save_cwd and restore_cwd to get back to
	where we started, rather than hoping that CVS_CHDIR ("..") will do
	something useful.  This removes the need for most of
	release_delete, so remove that function and inline what is left.
	* sanity.sh (basicc): Adjust tests for this fix, also some tests
	with multiple arguments to "cvs release" (in the non-"-d"-case, it
	would seem like the old code would CVS_CHDIR into directories and not
	CVS_CHDIR back, but I'm not going to investigate this and it
	should be a moot point with this fix.).

	* sanity.sh (basicc): Add tests for a serious bug in "cvs release
	-d .".

	More error handling fixes:
	* ignore.c (ignore_files): Check for errors from opendir and
	readdir.
	* find_names.c (Find_Names): Check for errors from find_rcs.
	(find_rcs, find_dirs): Comment error handling better; also return
	an error if we got one from readdir.
	* filesubr.c (deep_remove_dir): Also check for errors from readdir.
	* import.c (import_descend): Print message on error from opendir
	or readdir.
	* commit.c (remove_file): Check for errors from CVS_MKDIR and
	CVS_RENAME.
	(remove_file): No need to remove the file in the temporary
	directory; server.c now informs time_stamp_server of what is going
	on via CVS/Entries rather than a file with a kludged up timestamp.
	* client.c, entries.c, login.c, logmsg.c, mkmodules.c, patch.c,
	remove.c, update.c: Check for errors from unlink_file.
	* mkmodules.c (write_dbmfile, rename_dbfile, rename_rcsfile):
	Check for errors from fclose, CVS_RENAME, and CVS_STAT.
	* mkmodules.c (checkout_file): Clarify error handling convention.
	* mkmodules.c (mkmodules): Call checkout_file accordingly.
	* entries.c (Entries_Open): Check for errors from fclose.

1998-08-21  Ian Lance Taylor  <ian@cygnus.com>

	* import.c (import): Output suggested merge command using
	cvs_output_tagged rather than just cvs_output.  Don't put
	CVSroot_cmdline in the log file.
	* client.c (importmergecmd): New static struct.
	(handle_mt): Handle +importmergecmd tag.
	* sanity.sh (import): Use an explicit -d in importb-2, to test
	whether it is reported in the suggested merge command.

1998-08-20  Ian Lance Taylor  <ian@cygnus.com>

	* sanity.sh (import): Rewrite tests to use dotest.

1998-08-20  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh: Add comments about binary files and cvs import.

1998-08-19  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (importc): Use ${username} in one place where I had
	missed it.

	Make import -d work client/server:
	* client.c, client.h (client_process_import_file): Take new
	argument, for whether -d is specified, and send Checkin-time
	request if it is set.
	* import.c (import_descend): Pass it.
	* main.c, cvs.h (date_to_internet): New function.
	* server.c (server_modtime): Call date_to_internet.
	* server.c (serve_checkin_time): New function.
	(requests): Add "Checkin-time" request.
	(serve_modified): If it was sent, set the timestamp in the
	temporary directory.
	* import.c (import): If the client sends a -d option, complain.
	(import): For the server, always use the timestamps from the temp
	directory.
	(import): Don't send a -d option to the server.
	* sanity.sh (importc): Add tests for import -d.

Wed Aug 19 15:19:13 1998  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (unedit-without-baserev-5): use ${DOTSTAR} instead
	of .* since we expect to match multiple lines.

1998-08-19  Ian Lance Taylor  <ian@cygnus.com>

	* cvs.h (CVSroot_cmdline): Declare.
	* root.c (CVSroot_cmdline): Define.
	* main.c (main): Set CVSroot_cmdline if the -d option is used.
	* import.c (import): If CVSroot_cmdline is not NULL, then mention
	an explicit -d option in the suggested merge command line.

Wed Aug 19 00:28:50 1998  Noel Cragg  <noel@swish.red-bean.com>

	* recurse.c (do_dir_proc): don't muck with CVS/Root directories
 	when running in server mode.
	(do_recursion): same.

	* main.c (main): add the command-line option `m' to help debug the
 	multiroot environment; it prints out the value of CVSROOT for each
 	iteration through the main loop.  Also, changed the main loop so
 	that it gets executed only once when running in server mode (the
 	server will only deal with a single CVSROOT).

	* recurse.c (do_recursion): change default for
 	PROCESS_THIS_DIRECTORY to true; we should always process a
 	directory's contents unless there's an existing CVS/Root file with
 	a different root than the current root to tell us otherwise.
	(do_dir_proc): same.

Tue Aug 18 14:30:59 1998  Noel Cragg  <noel@swish.red-bean.com>

	* recurse.c (do_recursion): check the current value of CVS/Root
 	and add it to our list of CVSROOTs if it doesn't exist.  Decide
 	whether or not to process files in this directory based based on
 	the value of CURRENT_ROOT.
	(do_dir_proc): same.

	* main.c: add two new globals -- root_directories and current_root
 	-- which keep track of the values of CVSROOT we've seen and which
 	value of CVSROOT we're currently processing.
	(main): put the main loop for stepping through cvsroot values
 	here, since we might need to send command-specific arguments for
 	every unique non-local cvsroot.  Moved blocks of code around so
 	that one-time initializations happen first (outside the loop) and
 	the other stuff happens inside the loop.
	(set_root_directory): helper function.

	* cvs.h: add prototypes for root_directories and current_root, two
 	new globals for keeping track of multiple CVSROOT information.

1998-08-18  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh: Don't assume that the shell leaves $^ unexpanded in
	an unquoted here-document (suggested by Bart Schaefer to help when
	zsh is the shell).

1998-08-17  Ian Lance Taylor  <ian@cygnus.com>

	* commit.c (checkaddfile): Don't call fix_rcs_modes.
	(fix_rcs_modes): Remove.

1998-08-16  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* create_adm.c (Create_Admin): Don't condition traces on
	SERVER_SUPPORT; SERVER_SUPPORT shouldn't do (much of) anything
	independent of server_active.

	* sanity.sh (binfiles3): New test, for yet another binary file
	bug (sigh).  Thanks to Jason Aten for reporting this one.

1998-08-15  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* rcscmds.c (call_diff_write_output): Update to reflect new
	calling convention for the write_output callback.

1998-08-15  Jim Meyering  <meyering@ascend.com>

	* update.c (merge_file): Warn about failed unlink when not due
	to ENOENT.

	* server.h (CLIENT_SERVER_STR): New macro
	* create_adm.c (Create_Admin): Use it.
	* entries.c (Scratch_Entry, Register): Use it.
	* filesubr.c (copy_file, xchmod, rename_file, unlink_file): Use it.
	* history.c (history_write): Use it.
	* modules.c (do_module): Use it.
	* no_diff.c (No_Difference): Use it.
	* run.c (run_popen): Use it.
	* server.c (server_register): Use it.

1998-08-14  Jim Meyering  <meyering@ascend.com>

	* hardlink.c (lookup_file_by_inode): Use existence_error rather than
	comparing errno to ENOENT directly.

	* client.c (copy_a_file): Unlink destination before doing copy.
	* sanity.sh (join-readonly-conflict): New test for this -- it would
	fail only in client/server mode.

	* sanity.sh (rcsmerge-symlink-4): Don't use `test -L', it's not
	portable.  Instead, match against the output of `ls -l'.
	(dotest tag8k-16): Simplify tag-construction code and at the same
	time, avoid using expr's `length' and `substr' operators.  Not
	all versions of expr support those.

1998-08-14  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* version.c: Bump version number to 1.10.0.1.

Thu Aug 13 11:15:24 1998  Noel Cragg  <noel@swish.red-bean.com>

	* version.c: Change version number to 1.10 and name to `Halibut'.

	* sanity.sh (rcslib): new tests to check behavior of symlinks in
 	the repository.

Wed Aug 12 15:39:38 1998  Noel Cragg  <noel@swish.red-bean.com>

	* main.c (lookup_command_attribute): the `annotate' command
 	shouldn't require access to the repository.  Add comment about
 	commands that do not use the working directory.

Mon Aug 10 10:26:38 1998  Noel Cragg  <noel@swish.red-bean.com>

	* version.c: Change version number to 1.9.30.

Thu Aug  6 17:44:50 1998  Noel Cragg  <noel@swish.red-bean.com>

	* server.c (serve_rdiff): change the name of the command (for
 	error reporting, etc.) from "patch" to "rdiff."
	(serve_remove): rename from "cvsremove" to "remove."

	* main.c (lookup_command_attribute): the `rdiff' command shouldn't
 	require write access to the repository.

1998-08-06  David Masterson of kla-tencor.com
	and Jim Kingdon

	* commit.c (commit_filesdoneproc): Don't call strlen ("CVSROOT")
	from within the assert statement.  Apparently HP's cc compiler on
	HPUX 10.20 has trouble with that.

1998-08-06  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* rcs.c (RCS_checkin): When adding branch, if there is a lock on
	the branchpoint owned by someone else, leave it alone.  This
	restores CVS 1.9 (RCS 5.7) behavior, fixing a core dump.
	* sanity.sh (reserved): New tests reserved-16 through reserved-19
	test for this fix.

1998-08-05  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (unedit-without-baserev): Use ${QUESTION} not "?".
	This makes it work with GNU expr 1.12 as well as 1.16.

Sun Aug  2 20:27:44 1998  Noel Cragg  <noel@swish.red-bean.com>

	* mkmodules.c: add comment about TopLevelAdmin for the initial
 	contents of CVSROOT/config.

1998-07-29  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* rcs.c (RCS_checkin): Only try to call xreadlink if HAVE_READLINK
	is defined.

Tue Jul 28 19:33:08 1998  Noel Cragg  <noel@swish.red-bean.com>

	* version.c: Change version number to 1.9.29.

	* rcs.c (RCS_checkin): add code to follow symbolic links in the
 	repository.

Sun Jul 26 05:14:41 1998  Noel Cragg  <noel@swish.red-bean.com>

	* This set of changes reverts the code to pre-1.9.2 behavior and
 	does not create CVS directories at top-level (except for the
 	obvious "cvs co .").  Added a new configuration option to switch
 	between 1.9 and 1.9.2 behavior.

	* recurse.c (do_argument_proc): new function.
	(start_recursion): in the case that we've done a command from
 	top-level but have no CVS directory there, the behavior should be
 	the same as "cvs <cmd> dir1 dir2 dir3...".  Make sure that the
 	appropriate "Argument" commands are sent to the server by calling
 	walklist with do_argument_proc.

	* client.c (call_in_directory): only create the top-level CVS
 	directory when we're checking out "." explicitly.  The server will
 	force creation of this directory in all other cases.

	* checkout.c (checkout_proc): only generate the top-level
 	directory when the TopLevelAdmin=yes.  Also send a message to the
 	client to do the same.

	* parseinfo.c (parse_config): handle TopLevelAdmin option.  Set
 	top_level_admin.

	* main.c: add new variable top_level_admin.
	* cvs.h: add extern definition for above.

	* sanity.sh: since we're reverting to pre 1.9.2 behavior for
 	top-level CVS directories, I needed to make changes to a bunch of
 	tests that made assumptions about said directories.
	(preamble): make sure to add read and execute access to everything
 	in TMPDIR before removing, since some tests make things read-only.
	(basicb-1a, basicb-1b, basicb-9a, basicb-9b): use dotest_fail
 	because these tests check for the non-existant top-level CVS
 	directory.
	(basicc-3, emptydir-6, emptydir-7, crerepos-6): use "rm -rf" so it
 	won't complain when trying to remove the non-existant top-level
 	CVS directory.
	(106.5): remove imported-f2-orig.tmp.
	(modules2-10, emptydir-4, abspath-1ba, abspath-1bb): cd into the
 	directory where files exist before using the "add" command so cvs
 	can find CVSROOT in CVS/Root.
	(cvsadm-2): look at a different CVS/Repository file, since the
 	top-level one doesn't exist.
	(taginfo-3): create the directory in the repository directly
 	rather than relying on the fact that the top-level CVS directory
 	was created in a previous test.
	(serverpatch-6): update first-dir explicity, rather than relying
 	on the non-existant top-level CVS/Entries file.
	(crerepos-18): look at CVS/Repository in a subdirectory rather
 	than in the non-existant top-level CVS directory.
	(toplevel): add code to set TopLevelAdmin=yes.
	(toplevel2): new tests -- same as toplevel, but TopLevelAdmin=no.

1998-07-21  Jim Meyering  <meyering@ascend.com>

	* rcs.c (RCS_checkout): Hoist frees of rev and value.
	Warn and return 1 in several cases rather than exiting via
	`error (1, ...'.  The latter could abort a multi-file commit
	in mid-stream, leaving stale locks in the repository.

1998-07-16  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* build_src.com (rcscmds.c): Also look for include files in
	[-.diff], just like Ian's 1998-06-18 change to Makefile.in

1998-07-14  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* tag.c (pretag_proc), rtag.c (pretag_proc): Don't pass RUN_REALLY
	to run_exec.  This means that taginfo does not get executed if the
	global -n option is specified.  Which makes it like loginfo, -i,
	-e, -o, -t, -u in modules, editinfo, and verifymsg and unlike
	commitinfo.  The old behavior was pretty bad in the sense that it
	doesn't provide any way to log only the tags which actually
	happen.
	* sanity.sh (taginfo): New tests taginfo-11 to taginfo-13, for this.

1998-07-12  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (ann-id): Write the test so that it tests for the
	current (buggy) behavior.

	* sanity.sh (taginfo): Also clean up cvsroot/first-dir.

1998-07-12  Jim Meyering  <meyering@ascend.com>

	* sanity.sh (ann-id): New (currently failing) test for bug in how
	rcs keywords are expanded in the output of `cvs annotate'.

1998-07-12  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (taginfo): Write the TESTDIR into the script rather
	than having the script look at the environment.  This means that
	it will work if TESTDIR is set by sanity.sh as well as if
	sanity.sh finds TESTDIR in the environment.

1998-07-11  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* tag.c (check_fileproc): Calculate the revision to be tagged the
	same way that tag_fileproc does.
	* sanity.sh (taginfo): New tests, test for this (before this fix,
	brtag had said 1.1 not 1.1.2.1).

1998-07-10  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (unedit-without-baserev): Also clean up "2" directory.

1998-07-08  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* edit.c (unedit_fileproc): If the Baserev file is missing, don't
	get the working file from CVS/Base.  The previous code could get
	you version 1.1 of the working file and put 1.2 in CVS/Entries.
	* sanity.sh (unedit-without-baserev): New tests test for this.

1998-07-02  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (unedit-without-baserev): Move the test itself to be
	in the same order as in the "tests" variable.

1998-07-02  Ian Lance Taylor  <ian@cygnus.com>

	* rcscmds.c: Don't include <stdarg.h> or <vasprintf.h>.  Don't
	declare vasprintf.
	(call_diff_printf_output): Remove.
	(call_diff_stdout_callbacks): Don't initialize printf_output
	field--it has been removed from the interface.
	(call_diff_file_callbacks): Likewise.

1998-07-01  Jim Meyering  <meyering@ascend.com>

	* edit.c (unedit_fileproc): Handle the case in which base_get
	returns a NULL baserev.  That happens when a file being `unedit'ed
	exists in the CVS/Base directory, but isn't listed in the CVS/Baserev
	file.  The one case I've seen had no Baserev file at all.  The symptom
	(if you're lucky) is a segmentation fault upon unedit.  If you use
	SunOS4.1.4 for which printf prints NULL pointers as `(null)', your
	unedit command will complete normally, but it will have corrupted
	your CVS/Entries file and a subsequent update may result in an
	assertion failure, a core dump, and a stale lock in the repository.
	* sanity.sh (unedit-without-baserev): New test for this.

1998-07-01  Andy Mortimer of aeat.co.uk
	and Jim Kingdon  <kingdon@harvey.cyclic.com>

	* server.c (server_updated): Use a prototype if we are using them
	for declarations.

1998-06-29  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (commit-readonly): Protect keyword against expansion
	in sanity.sh itself.  Keep the keyword in the file which we check
	in (or else this fails to test for the RCS_checkout change).

1998-06-27  Jim Meyering  <meyering@ascend.com>

	* rcs.c (RCS_checkout): If opening the local workfile fails due to
	lack of write access, try to chmod the file and retry the open.
	Before, a commit could fail part way through merely because the
	open to rewrite with newly expanded rcs keywords would fail.  It's
	easy to make this happen if you use `cvs -r' or CVSREAD and you
	apply a patch to one of your read-only source files -- patch
	preserves the read-only setting for the file and your next commit
	will fail after committing that file, but before rewriting
	(checking out) your working copy.
	* sanity.sh (commit-readonly): New test for this.

1998-06-25  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* update.c (patch_file): Update comments regarding context diffs
	to reflect diff library.

1998-06-23  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (modules4): Add tests for reversing the order of the
	"!first-dir/sdir" and "first-dir".

1998-06-23  Jim Kingdon  <kingdon@harvey.cyclic.com>
	and Dave Wolfe@Motorola.

	* sanity.sh (modes2): Touch the file before chmod'ing it.

1998-06-21  Ian Lance Taylor  <ian@cygnus.com>

	* update.c (merge_files): Revert changes of 1998-06-19.  Instead,
	register a merged file with a dummy time stamp.  Only set
	last_register_time if we need to.
	(join_file): Likewise.  Always register a merged file, not just
	when the merge fails.

1998-06-21  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* call_diff_write_output, call_diff_printf_output,
	call_diff_flush_output, call_diff_write_stdout, call_diff_error,
	call_diff_stdout_callbacks, call_diff_file_callbacks): Re-indent.

1998-06-19  Ian Lance Taylor  <ian@cygnus.com>

	* update.c (merge_file): Make sure the time stamp of the file is
	different from the time stamp we register in the Entries file.
	(join_file): Likewise.

1998-06-18  Ian Lance Taylor  <ian@cygnus.com>

	* rcscmds.c: Include <stdio.h>.  Include either <stdarg.h> or
	<varargs.h>.  Declare vasprintf.
	(call_diff_write_output): New static function.
	(call_diff_printf_output): New static function.
	(call_diff_flush_output): New static function.
	(call_diff_write_stdout): New static function.
	(call_diff_error): New static function.
	(call_diff_stdout_callbacks): New static variable.
	(call_diff_file_callbacks): New static variable.
	(call_diff): Don't sleep.  Use a callback structure when calling
	the diff library.
	(call_diff3): Likewise.

	* rcscmds.c: Include diffrun.h.
	(call_diff, call_diff3): Pass NULL callback parameter.
	(diff_run, diff3_run): Don't declare.
	* Makefile.in (rcscmds.o): New target, to use -I for diff
	directory.
	(zlib.o): Depend upon zlib.h.

1998-06-09  Mike Sutton@SAIC

	Make it compile with Sun's bundled K&R C compiler:
	* rcs.c (count_delta_actions): Change to static to match
	declaration.
	* client.c (handle_wrapper_rcs_option): Rename error label to
	handle_error to avoid clash with function name.

1998-06-09  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* rcs.c (RCS_delete_revs): If we are trying to delete all
	revisions, give an error rather than assertion failed.
	* sanity.sh (basicb): New tests basicb-o* test for this.

1998-06-04  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* add.c (add): Only send "Directory" requests if we need to.

1998-06-02  Assar Westerlund  <assar@sics.se>

	* client.c: Check for HAVE_GSS_C_NT_HOSTBASED_SERVICE rather than
	assuming that GSS_C_NT_HOSTBASED_SERVICE is a macro.
	* server.c: Likewise.

1998-06-02  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* fileattr.c (fileattr_read): Check for NULL return from strchr.
	* sanity.sh (devcom3): New test devcom3-10 checks for this.

1998-06-01  Assar Westerlund  <assar@sics.se>
	and Ian Lance Taylor  <ian@cygnus.com>

	* client.c: If HAVE_GSSAPI_H, include <gssapi.h>.  Only include
	<gssapi/gssapi.h> if HAVE_GSSAPI_GSSAPI_H.  Only include
	<gssapi/gssapi_generic.h> if HAVE_GSSAPI_GSSAPI_GENERIC_H.
	(GSS_C_NT_HOSTBASED_SERVICE): Define if not defined.
	(connect_to_gserver): Use GSS_C_NT_HOSTBASED_SERVICE instead of
	gss_nt_service_name.
	* server.c: Same header file changes.
	(GSS_C_NT_HOSTBASED_SERVICE): Define if not defined.
	(gserver_authenticate_connection): Use GSS_C_NT_HOSTBASED_SERVICE
	instead of gss_nt_service_name.

1998-06-01  Jim Meyering  <meyering@ascend.com>

	* sanity.sh (tag8k): Add a test for the 1998-05-02 rcs.c bug fix.

1998-05-26  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* rcs.c (annotate): Call tag_check_valid like the other functions
	which have a -r option.
	* sanity.sh (ann): New test ann-14 tests for this.

1998-05-24  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (importc): New tests importc-5 through importc-8 test
	for a (fairly obscure) regression from CVS 1.9.

1998-05-23  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (modules2): Add comment listing cvs release tests.
	(info): New test info-cleanup-0 tests "cvs -n release".

	* rcs.c (rcsbuf_getid): Remove semicolon at end of #undef.  I'm
	kind of surprised that compilers accepted this at all, but
	removing it squelches a warning for some compilers.

	* version.c: Change version number to 1.9.28.1.

	* Version 1.9.28.

1998-05-22  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* rcs.c (RCS_cmp_file): Check for errors from CVS_FOPEN.  This
	restores the CVS 1.9 behavior (fatal error if we can't open the
	file), and corrects an apparent oversight in Ian's 13 Apr 1997
	change.
	* sanity.sh (modes2): New test, tests for this.

1998-05-22  Ian Lance Taylor  <ian@cygnus.com>

        * server.c (server_updated): Correct test for whether to unlink
        the file.

1998-05-20  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* wrapper.c (wrap_add): Disable -t/-f wrappers at least until the
	serious bug can be fixed.

1998-05-15  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* checkout.c (checkout): Call server_pathname_check on the
	argument to "cvs co -d".
	* server.c (server_pathname_check): Add comment about how we could
	be handling absolute pathnames.
	* sanity.sh (abspath): Rewrite the tests which run "cvs co -d /foo"
	for remote, to reflect this.

	* sanity.sh (abspath): Also do the "cannot rename" work-around for
	abspath-7d.

1998-05-13  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* commit.c (commit_filesdoneproc): Free admin_dir when done with it.

1998-05-13  Jim Meyering  <meyering@ascend.com>

	* sanity.sh (editor): Change bogus sed command, `s/^/x&/g', to `s/^/x/'.
	The former exercised a bug in GNU sed-3.01-beta3.
	(emptydir-8): Add `Rebuilding administrative file database' message,
	since now it does that.
	* commit.c (commit_filesdoneproc): Pass only the admin directory
	pathname to mkmodules.
	Remove #if 0, now that it's fixed.

	* status.c (cvsstatus): Rename from `status' to avoid shadowing
	lots of locals and parameters by the same name.
	* server.c (serve_status): Update caller.
	* main.c (cmds[]): Update table entry.
	* cvs.h: Update prototype.

	* commit.c (commit_filesdoneproc): Remove trailing blanks.
	(commit) [CLIENT_SUPPORT]: Remove unnecessary (and local-shadowing)
	declaration of `err'.
	Rename global `tag' to `saved_tag' to avoid overshadowing `tag'
	parameters of three functions.
	Rename global `message' to `saved_message' to avoid overshadowing
	`message' parameter of a function.
	Rename global `ulist' to `saved_ulist' and move dcl up with others.

1998-05-12  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* commit.c (commit_filesdoneproc): #if 0 the new code until it can
	be fixed.

	* commit.c (commit_filesdoneproc): Add comment explaining last
	change.

1998-05-12  Jim Meyering  <meyering@ascend.com>

	* commit.c (commit_filesdoneproc): Call mkmodules not just when
	committing a file directly under CVSROOT, but also when committing
	files in subdirectories of CVSROOT.

1998-05-08  Jim Meyering  <meyering@ascend.com>

	* filesubr.c (xreadlink):  NUL-terminate the symbolic link name.
	Use a much smaller initial buffer length.
	Test errno only if readlink fails.
	Use xstrdup then free the original link name so we don't waste space.

1998-05-02  Jim Meyering  <meyering@ascend.com>

	* rcs.c (rcsbuf_getword): Fix off-by-one error that would result in
	an abort (the first one in rcsbuf_getkey) when operating on on some
	,v files with over 8192 bytes of tag and branch info.

1998-05-04  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (ann): New tests ann-12 and ann-13 test for specifying
	a numeric branch.

1998-05-02  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* rcs.c: Add comments about getting rid of rcsbuf_getid,
	rcsbuf_getword, and rcsbuf_getstring.

	* sanity.sh (abspath): Revise the workarounds to deal with exit
	status.

1998-04-30  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (abspath): Work around the "cannot rename" bug.

1998-04-27  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* classify.c (Classify_File): Add comments about checking whether
	command name is "update".

1998-04-22  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* version.c: Change version number to 1.9.27.1.

	* Version 1.9.27.

1998-04-20  Jim Kingdon  <kingdon@harvey.cyclic.com>

	(This diff was run by devel-cvs and everyone seemed to like it).
	* diff.c (diff_file_nodiff): Make HEAD mean the head of the branch
	which contains the sticky tag, not the sticky tag itself.
	* rcs.c, rcs.h (RCS_branch_head): New function.
	* sanity.sh (head): Update for this changed behavior.

1998-04-19  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh: Move emptydir tests from basicb to new test emptydir.
	This is because we now need a module definition to create Emptydir;
	"co -d" doesn't cut it anymore.

1998-04-17  Petri Virkkula

	* server.c (mkdir_p): Ignore EROFS error (like for EACCES).

1998-04-16  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* checkout.c (checkout_proc): Don't create directories above the
	last one specified in "co -d".
	(build_dirs_and_chdir): Revert Noel's change of 17 Feb 1998.
	(struct dir_to_build): New field just_chdir.
	(build_dirs_and_chdir): Test it.
	* sanity.sh (abspath): New tests abspath-7* test for a bug which
	we fix, in which CVS would create bogus "D/////" entries in
	CVS/Entries.
	(abspath): Revise abspath-3* tests to test for the fact that we no
	longer create directories above the last one specified in "co -d".
	I checked that CVS 1.9 gives an error on this, so changing this
	behavior back should be OK.
	(cvsadm-2d3): Likewise (also checked CVS 1.9 for this case).
	(cvsadm-2d3d): Likewise (also checked CVS 1.9 for this case).
	(cvsadm-2d{4,5,6,7,8}, cvsadm-N2d{3,4,5,6,7,8}): Adjust for new
	behavior (same case as cvsadm-2d3).
	(cvsadm-2d{4,5,6,7,8}d, cvsadm-N2d{3,4,5,6,7,8}d): Remove test
	(same case as cvsadm-2d3d).
	(cvsadm): For remote, skip most these tests.
	(abspath): When cleaning up, delete mod1 and mod2 rather than mod1
	twice (longstanding bug, apparently only becomes visible if you
	run the tests in a certain order).

1998-04-14  Wilfredo Sanchez  <wsanchez@apple.com>

	* rcs.c: variable "lockfile" was being referenced after being
	free'd.  Bad.  Moved the free() call down.

1998-04-12  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (rcs): Add test for annotate and the year 2000.

	* server.c (do_cvs_command): If there are partial lines left when
	the child process is done, send them along.
	* sanity.sh (rcs, rcs2): Enable all tests for remote; tests for
	this fix.

1998-04-11  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* client.c (client_senddate): Pass SDATEFORM not DATEFORM to
	sscanf.  This fixes a Y2K bug.

	* history.c (history, select_hrec): Change since_date from time_t
	to RCS format.  Use the usual machinery (in particular, Make_Date
	and client_senddate) so that it will work on VMS too.
	* main.c, cvs.h (date_from_time_t): New function.
	* sanity.sh (history): New test, to test that this didn't break
	anything (also tests client_senddate fix).

1998-04-11  Norbert Kiesel  <nk@iname.com>

	* server.c (cvs_output_binary): Shut up "gcc -Wall" by removing
	unnecessary else if test.
	* server.c (check_password): Fix uninitialized memory read if
 	shadow passwords are used.  Also added some comments.
	* rcs.c (RCS_checkout): Make sure to call chown with -1 for uid or
	gid if they should not be changed

1998-04-10  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (rcs2): New test, tests for various Y2K cases.
	* rcs.c (getdelta): Value for "state" keyword is optional (bug
	discovered incidentally in writing rcs2 test).

1998-04-09  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* filesubr.c, cvs.h (link_file): Remove; no longer used.

1998-04-08  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* recurse.c (do_dir_proc): Restore update_dir rather than a
	computation which appears to, but does not necessarily, restore it
	(reported by various people; this fix is from Greg Hudson).
	* sanity.sh (importc): New test, tests for this fix.

1998-03-27  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* rcs.c (RCS_lock): If the revision is already locked, give an
	error rather than dumping core.
	* sanity.sh (reserved): New test reserved-13c tests for this.

1998-03-25  Loren J. Rittle

	* import.c (add_rev): Rewrite to use RCS_FLAGS_KEEPFILE option
	of RCS_checkin() to avoid damage to imported files instead of
	externally undoing damage after the fact.  The side effect is
	that callers of add_rev() may now incrementally walk the
	entries of the current directory without seeing gratuitous
	changes to the directory structure (under at least one file
	system under at least one OS).

1998-03-18  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* error.c (error): Save and restore errno.  Should fix test case
	conflicts3-23 on SCO 5.0.2.  Reported by Steve Cameron.

	* sanity.sh (admin): Rename admin-26-o* to admin-26-*; the "o"
	stands for "cvs admin -o".  Add comment about length of tests.
	Use ${PLUS}.

1998-03-05  Dan Wilder <dan@gasboy.com>

 	* Fix problem with cvs admin in which -ntag:branch
 	option associated tag with the branch's head revision.
 	Should have used branch number.  Entailed in this fix,
 	the following.

 	* Add new functions "RCS_exist_rev", "RCS_exist_tag",
 	"RCS_tag2rev", and "RCS_valid_rev" to rcs.c.  RCS_tag2rev
 	is similar to RCS_gettag, but does less interpretation.

 	* Plug a small memory leak.

 	* Add tests admin-26 through admin-29 to sanity.sh,
 	to test "cvs admin -n".

1998-03-17  Samuel Tardieu  <sam@inf.enst.fr>

	* server.c (server_register): protect dereferencing timestamp in
	the trace message when it is null, to avoid a segmentation fault.

1998-03-16  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* options.h.in (MY_NDBM): Rewrite the comment explaining this
	option.  It was not clear to everyone who "my" referred to, for
	example.

	* hardlink.c (list_linked_files_on_disk): Remove unused variables
	err and p.
	(list_linked_files_on_disk): Add comment about memory allocation
	of return value.
	* rcs.c (rcsbuf_getword): Shut up gcc -Wall with a "return 0".
	(RCS_checkin): Remove unused variable fullpath.
	* sanity.sh (hardlinks): Remove comment about spurious warnings;
	the warnings are gone.

1998-03-12  Tim Pierce  <twp@skepsis.com>

	New functions for parsing and writing hardlink fields.
	* rcs.c [PRESERVE_PERMISSIONS_SUPPORT] (puthardlink_proc): New
	function.
	(putdelta) [PRESERVE_PERMISSIONS_SUPPORT]: Use it.
	(rcsbuf_getid, rcsbuf_getstring, rcsbuf_getword): New functions.
	(getdelta): Call them, storing `hardlinks' field in vnode->hardlinks.
	(RCS_reparsercsfile): When setting rdata->desc, xstrdup value
	rather than rcsbuf_valcopying it (due to changes in how getdelta
	handles keys and values in newphrases).

	* sanity.sh (hardlinks): Use uglier filenames.  Checking out
	hardlinked files no longer produces the same spurious diagnostics,
	so fix that test.
	(hardlinks-2.3): Renamed from hardlinks-2.2 (duplicate test name).

	New infrastructure for managing hardlink lists internally...
	* hardlink.c, hardlink.h (list_linked_files_on_disk,
	compare_linkage_lists, find_checkedout_proc): New functions.
	* rcs.h (struct rcsversnode) [PRESERVE_PERMISSIONS_SUPPORT]: New
	member `hardlinks'.
	* update.c (special_file_mismatch): Get hardlinks from
	vp->hardlinks instead of from vp->other_delta.
	* rcs.c (free_rcsvers_contents): Comment about freeing hardlinks
	member.
	(RCS_checkout) [PRESERVE_PERMISSIONS_SUPPORT]: Get hardlinks from
	vers->hardlinks list instead of vers->other_delta.

	... and removed obsolete code from earlier revs.
	* hardlink.c, hardlink.h (list_files_linked_to,
	cache_hardlinks_proc, list_files_proc, set_hardlink_field_proc):
	Removed.
	* hardlink.h: Removed `links' member from hardlink_info struct.
	* commit.c (commit): Remove the call to cache_hardlinks_proc.
	(check_fileproc) [PRESERVE_PERMISSIONS_SUPPORT]: Removed reference
	to hlinfo->links.
	* hardlink.c (update_hardlink_info): Same.
	* update.c (get_linkinfo_proc): Same.

	* rcs.c (RCS_checkout) [PRESERVE_PERMISSIONS_SUPPORT]: Use
	vp->hardlinks and find_checkedout_proc to find recently-updated
	files that may be hardlinked.
	* update.c (special_file_mismatch): Use List * structures and
	compare_linkage_lists for rev1_hardlinks and rev2_hardlinks.

1998-03-16  Larry Jones  <larry.jones@sdrc.com>

	* server.c (check_password): If shadow passwords are supported but no
	entry is found in the shadow file, check the regular password file.

1998-03-07  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh: Rename permissions test to perms since that is what
	each of its individual tests are named.
	* sanity.sh (perms symlinks hardlinks): Change CVSROOT to
	CVSROOT_DIRNAME where appropriate.
	(perms symlinks hardlinks): Disable/adjust the meat of the tests for
	remote.
	(symlinks): Link to ${TESTDIR}/fumble rather than
	/fumble/mumble/grumble.  We shouldn't be making assumptions about
	what might exist in random directories outside ${TESTDIR}.
	* hardlink.c (cache_hardlinks_proc): Add comment about trimming
	whitespace.

1998-03-07  Tim Pierce  <twp@skepsis.com>

	* rcs.c (RCS_checkout): Negation bug when checking out symlinks:
	existence_error should be !existence_error.
	* sanity.sh (permissions symlinks hardlinks): New tests, for
	PreservePermissions.

1998-03-04  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* version.c: Change version number to 1.9.26.1.

	* Version 1.9.26.

	* entries.c, cvs.h (Entries_Open): New argument update_dir; use it
	in error message.
	* add.c, checkout.c, client.c, find_names.c, import.c, recurse.c,
	update.c: Pass it (as NULL except in call_in_directory).
	* entries.c (Subdirs_Known): Just return if there is no CVSADM
	directory (as in subdir_record).
	* sanity.sh (conflicts3): New tests conflicts3-20a and
	conflicts3-23 test for these fixes.

	* commit.c (commit): Only set up hardlist if preserve_perms.

	* commit.c, import.c, no_diff.c, parseinfo.c, rcs.c, rcscmds.c,
	update.c: Omit the preserve_perms code if
	PRESERVE_PERMISSIONS_SUPPORT is not defined.  Much of that code
	won't even compile on non-unix systems.

	* hardlink.c, hardlink.h: Use the 'standard' copyright (as found
	in server.c).
	* commit.c, rcs.c: Minor whitespace changes to Tim's submission.
	* commit.c (check_fileproc), update.c (get_linkinfo_proc): Remove
	unused variable delta.
	* hardlink.c (set_hardlink_field_proc), update.c
	(get_linkinfo_proc): Return a value rather than falling off the
	end of the function.

1998-03-02  Tim Pierce  <twp@skepsis.com>

	* update.c (special_file_mismatch): Compare the hard links of the
	two revisions.

	* rcs.c (RCS_checkout):

	* hardlink.c, hardlink.h: New files.
	(hardlink_info): New struct.
	(hardlist, working_dir): New variables.
	(list_files_proc, cache_hardlinks_proc, set_hardlink_field_proc,
	lookup_file_by_inode, update_hardlink_info, list_files_linked_to):
	New functions.

	* Makefile.in (SOURCES): Add hardlink.c.
	(OBJECTS): Add hardlink.o.
	(HEADERS): Add hardlink.h.
	* commit.c: Include hardlink.h.
	(commit): Save the working directory before recursing.  Walk the
	hardlink list, calling set_hardlink_field_proc on each node.
	(check_fileproc): Add each file's link information to hardlist.
	* rcs.c: Include hardlink.h.
	(RCS_checkin): Save list of hardlinks in delta node.
	(RCS_checkout): Look up the file's `hardlinks' delta field, and
	see if any of the files linked to it have been checked out
	already.  Link to one of those files if so.
	* update.c: Include hardlink.h.
	(get_linkinfo_proc): New function.
	(do_update): Extra recursion to collect hardlink info.
	(special_file_mismatch): Reparse the RCS file if necessary.

	fsortcmp is now used by several files, so let's make it extern.
	* hash.c, hash.h (fsortcmp): New function.
	* find_names.c (fsortcmp): Removed.
	* lock.c (fsortcmp): Removed.

1998-03-03  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (conflicts3): New tests conflicts3-14a,
	conflicts3-14b, and conflicts3-21, conflicts3-22 test that we can
	skip over a working directory with a CVSADM directory missing.

1998-02-26  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (conflicts3): Tests conflicts3-16 and conflicts3-20
	test that we include update_dir in messages.  Rename test
	conflicts3-14 to fix typo.

Sun Feb 22 23:14:25 1998  Steve Cameron  <steve.cameron@compaq.com>
	and Ian Lance Taylor  <ian@cygnus.com>

	* update.c (tag_update_dir): New static variable.
	(update_dirent_proc): If no tag or date were specified when
	creating a subdirectory, use the tag and/or date of the parent
	directory.
	(update_dirleave_proc): If we set the tag and/or date in
	update_dirent_proc, reset them when we leave the directory.
	* sanity.sh (branches2): New set of tests for above patch, and
	related behaviour.

Sun Feb 22 13:31:51 1998  Ian Lance Taylor  <ian@cygnus.com>

	* commit.c (lock_RCS): Don't call RCS_rewrite.

	* update.c (patch_file): If the revision is dead, let
	checkout_file handle it.
	* sanity.sh (death2): Add test for above patch: add
	death2-10a, death2-10b, death2-13a, and adjust
	death2-{2,4,5,11,14,diff-11,diff-12,19}.

	* cvs.h (RCS_FLAGS_KEEPFILE): Define.
	* rcs.c (RCS_checkin): If RCS_FLAGS_KEEPFILE is set in the flags
	parameter, don't unlink the working file.
	* checkin.c (Checkin): Don't copy the file.  Instead pass
 	RCS_FLAGS_KEEPFILE to RCS_checkin, and only check the file out
	again if it has changed.

1998-02-21  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* rcs.c (rcs_internal_unlockfile, RCS_rewrite): Don't assume errno
	means anything just because ferror is set.

Sat Feb 21 20:02:24 1998  Ian Lance Taylor  <ian@cygnus.com>

	* Makefile.in (clean): Change "/bin/rm" to "rm".

	* buffer.c (buf_append_buffer): Correct typo in comment.
	* rcs.c (RCS_putadmin): Likewise.

Fri Feb 20 17:53:06 1998  Ian Lance Taylor  <ian@cygnus.com>

	* rcs.c (rcs_internal_unlockfile): Pass errno when calling error
 	because ferror is true.

1998-02-20  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (abspath): Don't assume that we can't write to /; this
	is the kind of thing that is sure to break sooner or later
	(especially on Windows).

	* sanity.sh: Add summary of which modules tests are which (at
	"modules").  Move cvsadm, abspath, and toplevel next to modules.
	Add comments to clarify the structure (such as it is).

Fri Feb 20 12:47:14 1998  Larry Jones  <larry.jones@sdrc.com>

	* admin.c (admin_fileproc): Better fix for -b.

	* rcs.c (RCS_whatbranch): Back out previous change.
	(RCS_getversion): Ditto.
	(RCS_setbranch): Treat an empty revision string like a null pointer.

1998-02-18  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* rcs.c (RCS_whatbranch): Fix indentation.

	* patch.c (patch_fileproc): Check for errors from fclose; check
	for errors from fopen properly.

Wed Feb 18 16:03:37 1998  Larry Jones  <larry.jones@sdrc.com>

	* admin.c (admin_fileproc): Convert -b argument from symbolic name
	to revision number before storing in the RCS file.
	* rcs.c (RCS_whatbranch): Allow numeric as well as symbolic revision.
	(RCS_getversion): Take advantage of above.
	* sanity.sh (admin): Add/revise/renumber admin-10c, admin-11a,
	admin-12, and admin-12a to check above.

	* commmit.c (lock_RCS): Minor clean-up.

	* sanity.sh (abspath-6a): Don't depend on the sepcific contents of
	CVSROOT, it depends on which other tests have been run.

Wed Feb 18 01:56:04 1998  Ian Lance Taylor  <ian@cygnus.com>

	* rcs.c (putsymbol_proc): Use putc and fputs rather than fprintf.
	(RCS_putadmin): Don't call RCS_symbols if the symbols have not yet
	been converted to a list.

	* rcs.c (rcsbuf_cache, rcsbuf_cache_open, rcsbuf_cache_close): New
	static functions to avoid closing and reopening the RCS file.
	(cached_rcs, cached_rcsbuf): New static variables.
 	(RCS_parse): Call rcsbuf_cache_close.  Don't call fclose.
	(RCS_parsercsfile): Likewise.
	(RCS_parsercsfile_i): Call rcsbuf_cache rather than
	rcsbuf_close.  Call fclose on error.  Remove comment about
	inefficiency of opening file twice.
	(RCS_reparsercsfile): Call rcsbuf_cache_open rather than fopen and
	rcsbuf_open.  Call rcsbuf_cache rather than rcsbuf_close and
	fclose.
	(RCS_fully_parse, RCS_checkout, RCS_deltas): Likewise.
	(RCS_rewrite): Likewise.
	(RCS_checkin): Call rcsbuf_cache_close.

	* rcs.c (RCS_copydeltas): Fix code which checks for an extra
	newline in buffered data.

	* rcs.c (rcsbuf_getkey): Save an indirection by using start rather
	than *valp when trimming trailing whitespace from value.

	* rcs.c (rcsbuf_get_buffered): New static function.
	(RCS_copydeltas): After we have done all the required special
 	actions, and inserted any new revision, just copy the file bytes
 	directly, rather than interpreting all the data.
	(count_delta_actions): New static function.
	* sanity.sh (rcs): Add rcs-6a and rcs-6b to commit a new branch
	revision, to force CVS to interpret all the data, rather than just
	copying it.  Adjust rcs-5 to add a branch tag.  Adjust rcs-8a and
	rcs-14 for the changes created by rcs-6b.

Tue Feb 17 18:34:01 1998  Ian Lance Taylor  <ian@cygnus.com>

	* sanity.sh (cvsadm, diffmerge2): Remove directories at the end of
	the test.

	* import.c (expand_at_signs): Rewrite to use memchr and fwrite
	rather than putc.

	Rewrite RCS file reading routines for speed:
	* rcs.c (struct rcsbuffer): Define.
	(rcsbuf_open, rcsbuf_close, rcsbuf_getkey, rcsbuf_getrevnum,
	rcsbuf_fill, rcsbuf_valcopy, rcsbuf_valpolish,
	rcsbuf_valpolish_internal, rcsbuf_ftell): New static functions.
	(getrcskey, getrcsrev, getrevnum): Remove.
	(many functions): Change to use new rcsbuf functions instead of
	old getrcskey/getrcsrev/getrevnum functions.
	(RCS_reparsercsfile): Add rcsbufp parameter.  Change all callers.
	(RCS_deltas): Add rcsbuf parameter.  Change all callers.
	(getdelta): Change fp parameter to rcsbuf parameter.  Change all
	callers.
	(RCS_getdeltatext): Add rcsbuf parameter.  Change all callers.
	(RCS_copydeltas): Add rcsbufin parameter.  Change all callers.
	* rcs.h (RCS_reparsercsfile): Update declaration.
	* admin.c (admin_fileproc): Update calls to RCS_reparsercsfile for
	new parameters.

1998-02-17  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (toplevel): Also clean up second-dir (not a new
	bug, but triggered by running tests as "toplevel abspath").

	* create_adm.c (Create_Admin): Just print update_dir to tell the
	user where we are; not the whole xgetwd.  Cleaner than
	Noel's change (which also had problems in errno handling).
	* sanity.sh (toplevel-12): Update accordingly.

Tue Feb 17 02:32:21 1998  Noel Cragg  <noel@swish.red-bean.com>

	[These mods make "checkout" work with "-d /absolute/pathname"
	once again.]

	* checkout.c (checkout_proc): the -d flag on the command line
 	should override the -d flag in the modules file if the latter is
 	an absolute path.  The loop that assembles the list of directories
 	to build has been reorganized slightly to prepare for rewriting
 	with last_component rather than assuming '/' as a path separator.
  	Also added to that loop was some code to handle absolute
 	pathnames.
	(build_dirs_and_chdir): add a new argument that tells this routine
 	whether or not to check before it creates and populates
 	directories or not.

	* filesubr.c (last_component): return the top-level directory when
 	asked about the top-level directory.

	* sanity.sh (toplevel-12): change test to reflect the new style of
 	this error message.

	* create_adm.c (Create_Admin): include the directory in the error
 	message.

1998-02-16  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* diff.c (diff_fileproc), import.c (import, add_rcs_file), rcs.c
	(RCS_cmp_file): Don't ignore errors from CVS_UNLINK and fclose.

	* patch.c (patch_fileproc): Check for errors from fclose; if we
	get -1 from getline check for end of file vs. error.

	* rcs.c (RCS_checkout): Comment return value (0/1, not -1).
	* commit.c, diff.c, mkmodules.c, patch.c, rcs.c, update.c: Update
	to match this convention.  Don't suppress errors based on
	quiet or really_quiet variables.

	Fix a longstanding bug which also makes stamps-8kw in make
	remotecheck work again (it stopped working with Ian's 8 Feb 98
	checkin):
	* client.c, client.h (change_mode): If new argument respect_umask
	is set, then honor the umask.
	* client.c, server.c: Update callers.

	Cleanups to Tim's checkin:
	* rcs.c (RCS_checkout): Use existence_error not ENOENT.
	* commit.c (checkaddfile): Remove comment about whether we want to
	check for errors from fclose; there is no reason not to.
	* rcs.c (RCS_checkout), update.c (special_file_mismatch): sscanf
	on %ld requires an unsigned long, not a dev_t.
	* update.c (special_file_mismatch): Remove unused variable
	check_devnums.
	* mkmodules.c (config_contents): Between two settings, use a blank
	line not a "#" line.

1998-02-15  Tim Pierce  <twp@skepsis.com>

	[This is the code as submitted.  I'll be checking in my cleanups
	shortly.  This work sponsored by Abbott Labs.  -kingdon]

	Support for device special files, symbolic links, user and group
	ownerships, and file permissions.

	* parseinfo.c: (parse_config): Handle new config variable
	`PreservePermissions'.
	* mkmodules.c (config_contents): Add new PreservePermissions var.

	* rcs.c, rcs.h (preserve_perms): New variable.
	(RCS_checkout, RCS_checkin): Support for newphrases `owner',
	`group', `permissions', `special', `symlink'.
	(RCS_checkout): If `workfile' and `sout' are symlinks, remove them
	before attempting to open them for writing.
	* import.c (add_rcs_file): Support for newphrases.  Do not attempt
	to read data from special files or symlinks.  Error message
	`cannot fstat' is now `cannot lstat'.

	New metrics for deciding when two files are different:

	* update.c, cvs.h (special_file_mismatch): New function.
	(merge_file, join_file): Call it.
	* no_diff.c (No_Difference): Call it.

	* filesubr.c (xcmp): Consider files to be different if they are of
	different types; if they are symlinks which link to different
	pathnames; or if they are devices with different device numbers.
	Error message is now `cannot lstat'.
	* rcs.c (RCS_cmp_file): Use `xcmp' to compare files, simplifying
	the special handling for nonregular files.

	* rcscmds.c (diff_exec, diff_execv): If asked to obtain diffs for
	special files, report no differences.

	Miscellaneous changes to make special file support possible:

	* commit.c (fix_rcs_modes): Don't attempt to `fix' permissions on
	a symlink.

	* import.c (add_rcs_file): Don't try to close fpuser if it was
	never opened (e.g. when operating on a symlink).

	* filesubr.c, cvs.h (isdevice, xreadlink): New functions.
	* filesubr.c (copy_file): Handle special files and symlinks.
	(xchmod): Do nothing if `preserve_perms' is set.

	* commit.c (checkaddfile): Replace `copy_file (DEVNULL, ...)' with
	fopen/fclose calls.  Copy_file no longer attempts to read data
	from device files.

	* filesubr.c (islink): Use CVS_LSTAT, not lstat.
	* vers_ts.c (time_stamp, time_stamp_server): Use CVS_LSTAT, not stat,
	to get symlinks right.
	* subr.c (get_file): Same.  Don't attempt to read from special
	files or symlinks.

	* classify.c (Classify_File): Doc fix.

Fri Feb 13 17:07:32 1998  Eric Mumpower  <nocturne@cygnus.com>
	and Ian Lance Taylor  <ian@cygnus.com>

	Fix some file system ordering problems found on Irix 6.4:
	* sanity.sh (basic2): Use dotest_sort for test 56.
	(importb): Use dotest_sort for tests importb-1 and importb-2.
	(head): Use dotest_sort for test head-1.

Thu Feb 12 15:15:33 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* import.c (add_rcs_file): If add_logfp is NULL, don't call fperror.

11 Feb 1998  Andy Piper

	* server.c (cvs_output_binary): Use OPEN_BINARY not _O_BINARY.

Mon Feb  9 18:34:39 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	Tweaks to Ian's checkin:
	* update.c (merge_file): Remove comment about sending file to
	client before the message.  It doesn't apply to this code any more
	(it does apply to checkout_file, but I'm not sure it is important
	to have such a comment anyway).
	* buffer.c (buf_default_memory_error, buf_length): Reindent.
	* server.h: Declare struct buffer before use.

Mon Feb  9 21:05:28 1998  Ian Lance Taylor  <ian@cygnus.com>

	* rcs.c (RCS_fully_parse): Call getrevnum rather than getrcsrev.
	Don't bother with ungetc.

	* rcs.c (getrcsrev): Rewrite to simply call getrevnum.

Sun Feb  8 15:49:39 1998  Ian Lance Taylor  <ian@cygnus.com>

	Don't have the server check out a revision into a file and then
	immediately read the file; just read into a buffer instead.
	* update.c: Include buffer.h.
	(update_fileproc): Let checkout_file call server_updated.
	(checkout_file): Add merging and update_server parameters.  Change
	all callers.  If server_active, don't mess with backup files.  If
	server_active, copy the revision into a buffer rather than a file
	when possible.  If update_server, call server_updated.  Fix
	handling of error status.
	(checkout_to_buffer): New static function used by checkout_file.
	(merge_file): Let checkout_file call server_updated.
	(join_file): Likewise.
	* server.c (server_updated): Change file_info parameter to mode
	parameter.  Add filebuf parameter.  Change all callers.  If
	filebuf is not NULL, don't read the file.
	* server.h (server_updated): Update declaration.
	* buffer.c (buf_free): New function.
	(buf_append_buffer): New function.
	(buf_length): New function.
	* buffer.h (buf_free, buf_append_buffer, buf_length): Declare.

	* buffer.c: (buf_initialize): If the memory parameter is NULL, use
	buf_default_memory_error.
	(buf_default_memory_error): New static function.
	* buffer.h (BUFMEMERRPROC): Define typedef.
	* client.c (buf_memory_error): Remove.
	(start_server): Pass NULL rather than buf_memory_error as buffer
	memory error function.

Sat Feb  7 16:27:30 1998  Ian Lance Taylor  <ian@cygnus.com>

	* rcs.c (RCS_parsercsfile_i): Read the expand keyword from the RCS
	file.  We do this because Version_TS calls RCS_getexpand in many
	common cases, and we don't want to reopen the file just for that.
	(RCS_reparsercsfile): Skip the expand keyword.
	(RCS_getexpand): Don't call RCS_reparsercsfile.

	* rcs.c (STREQ): New macro.  In all string equality tests in the
	file, replace strcmp with STREQ.

Fri Feb  6 16:14:49 1998  Ian Lance Taylor  <ian@cygnus.com>

	* update.c (checkout_file): If we've already removed the backup
	file once, don't try to remove it again.

	* filesubr.c (unlink_file_dir): Call stat rather than isdir, and
	don't call unlink if the file does not exist.

	* myndbm.c (mydbm_load_file): Rename line_len to line_size.  Call
	getstr rather than getline, to avoid any confusion between \n and
	\012.  Use the line length returned by getstr rather than calling
	strlen.  Remove local variable len.

Fri Feb  6 13:23:46 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* rcs.c (RCS_parsercsfile_i): Don't suppress errors on
	really_quiet.
	(RCS_parsercsfile_i, RCS_reparsercsfile, RCS_fully_parse,
	RCS_deltas, getdelta, getrcskey, RCS_getdeltatext):
	Check for errors.  Include errno in error messages.  Include
	filename in error messages.  Pass new argument to getrcskey.
	(getrcskey): New argument NAME, so we can report errors ourself.

Fri Feb  6 12:10:18 1998  Ian Lance Taylor  <ian@cygnus.com>

	* rcs.c (RCS_reparsercsfile): Don't use ftell/fseek; just keep
	track of whether we've already read a key/value pair.  Use sizeof
	rather than strlen for a constant string.  Pass the current key
	and value to getdelta, and get them back as well.
	(getdelta): Add keyp and valp parameters.  Don't use ftell/fseek;
	just return the key/value pair to the caller.  Don't allocate
	vnode before we know we need it.  Check one getrcskey return
	value.  Use sizeof rather than strlen for a constant string.

	* rcs.c (getrcskey): Correct comment describing return value.

Thu Feb  5 22:51:13 1998  Ian Lance Taylor  <ian@cygnus.com>

	* subr.c (getcaller): Cache the result, so that we don't keep
	searching the password file.

Wed Feb  4 23:31:08 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* rcs.c (max_rev): Don't prototype.  Interesting that noone
	complained about this until now.

4 Feb 1998  Jim Kingdon

	* rcs.c (RCS_checkin): When adding a new file, read it
	with "rb" if binary.

Fri Jan 30 11:32:41 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh: Also test "first-dir" as the regexp in loginfo in
	addition to ALL.

	* main.c (main): Update year in copyright notice to 1998.

Thu Jan 29 00:01:05 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* version.c: Change version number to 1.9.25.

	* Version 1.9.24.

	* sanity.sh (multibranch2): File file2 and tests multibranch2-13
	through multibranch2-15 test a slightly different case than the
	rest of multibranch2.

	* mkmodules.c (cvswrappers_contents): Rewrite.  The text didn't
	describe -k and had various other problems.

28 Jan 1998  Karl Fogel and Jim Kingdon

	New feature to let server tell client about wrappers.
	* client.h (struct response): Add comment about args being
	'\0' terminated when passed to handle_* functions.
	* client.c (start_server): send "wrapper-sendme-rcsOptions" to
	server iff supported.
	(responses): new response "Wrapper-rcsOption"; allows the server
	to send certain lines from its cvswrappers file.
	(handle_wrapper_rcs_option): new func, handles "Wrapper-rcsOption"
	response from server.
	* server.c (serve_wrapper_sendme_rcs_options): new func, sends
	server side CVSROOT/cvswrappers rcs option lines to client.
	(requests): new request "wrapper-sendme-rcsOptions"; if received,
	we know we can send "Wrapper-rcsOption..." to the client.
	* wrapper.c (wrap_unparse_rcs_options): new func; repeated calls
	step down the wrapper list returning rcs option entries, but
	repackaged as cvswrappers lines.
	(wrap_setup): new guard variable `wrap_setup_already_done'; if
	this function has run already, just return having done nothing.
	Add comment concerning environment variable.
	* cvs.h: declare wrap_unparse_rcs_options().

Tue Jan 27 18:27:19 1998  Ian Lance Taylor  <ian@cygnus.com>

	* rtag.c (rtag_dirproc): Call ignore_directory, and skip the
	directory if it returns true.
	* sanity.sh (modules4): New set of tests to test some aspects of
	excluding directories in the modules file, including the above
	patch.

Thu Jan 22 10:05:55 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* server.c (serve_kopt): Check for length of arg.  Based on
	inspection of the code, plugs a buffer overrun security hole which
	was introduced Monday.

	* server.c (serve_is_modified): Don't call xmalloc; we aren't
	allowed to call error() here.  Remove duplicate (and potentially
	confusing) variable 'p'.

	* log.c (log_fileproc): Look for first character of version
	'0' AND second character '\0', rather than OR.  I didn't try to
	come up with a test case but this looks like a simple thinko
	(albeit one which would show up in obscure cases if at all).

Tue Jan 20 19:37:53 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* client.c (send_dirent_proc): Don't send nonexistent directories
	unless noexec.
	* sanity.sh (modules2): New tests modules2-13 through modules2-18
	test for this fix.

Mon Jan 19 11:17:51 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* server.c (serve_kopt): New function.
	(requests): Add "Kopt" request.
	(kopt): New variable.
	(serve_is_modified): Write kopts from there into entries.
	(serve_modified): Call serve_is_modified so we do the same.
	Declare serve_modified and serve_is_modified.
	* vers_ts.c (Version_TS): Set ->options even for a dummy ("D"
	timestamp) entry.
	* import.c (process_import_file): Check for -k options.
	* client.c (client_process_import_file): Send Kopt request.
	(send_fileproc): Likewise, for "cvs add".
	* sanity.sh: Enable test binwrap3-sub2-add1 for remote.
	Add -I .cvswrappers to binwrap3-2a; adjust binwrap3-2d
	accordingly.  Tests for this fix.

Mon Jan 19 08:48:59 1998  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (errmsg1): Append test 168 output to log file.

Sat Jan 17 08:01:51 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (ann-10, ann-11): Don't make assumptions about the
	number of characters in the username.

Fri Jan 16 15:34:02 1998  Larry Jones  <larry.jones@sdrc.com>

	* diff.c (diff_fileproc): Free label1 and label2 when finished.

	* edit.c (editor_set): Don't free edlist until after we're
	done using it.

	* rcscmds.c (RCS_merge): Free xrev1 and xrev2 when finished.

	* subr.c (make_message_rcslegal): Don't access uninitialized or
	unallocated memory; only strip trailing blank lines.
	* sanity.sh (log-3): Enhance to test this fix.

Fri Jan 16 12:41:03 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh: Add keywordlog to list of tests run by default.

	* rcs.c (RCS_deltas): Don't call cvs_output if length is zero;
	passing zero length to cvs_output does not mean output zero
	bytes.  The 27 Dec 1997 change to no longer '\0'-terminate the
	->text field turned this from a time bomb to a user-visible bug.
	* sanity.sh (ann): New tests, test for this fix and other annotate
	behaviors.

Thu Jan 15 23:52:00 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* root.c (root_allow_ok): If inetd.conf didn't specify an
	--allow-root options at all, we know we are in trouble.  Give a
	specific error message.

Thu Jan 15 21:24:59 1998  Ian Lance Taylor  <ian@cygnus.com>

	* sanity.sh (dotest_sort): New variant of dotest which sorts the
	output, for use when the output depends upon details of the file
	system, typically when doing an import.
	(rdiff): Use dotest_sort for rdiff-1.
	(ignore): Use dotest_sort for 188a, 188b, 189d, 190, and 191.

	* sanity.sh: (TESTSHELL): New variable.
	(editor, info, reserved): Use TESTSHELL in temporary script.

	* sanity.sh (ignore): Do all tests in subdirectory, to avoid
	conflict between cvsroot and CVSROOT on Windows.
	(binwrap3, mwrap, info, config): Likewise.

	* sanity.sh (binfiles2): Correct test name binfile2-7-brmod to
	binfiles2-7-brmod.

	* release.c (release_delete): If __CYGWIN32__ is defined, don't
 	worry about mismatched inodes.  This is a hack, but then I think
 	the test is rather peculiar anyhow.

Thu Jan 15 16:07:36 1998  Larry Jones  <larry.jones@sdrc.com>

	* sanity.sh (reserved-9): Use ${PROG} instead of "cvs".

Wed Jan 14 15:43:13 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* Split ChangeLog into ChangeLog-97 and ChangeLog.
	* Makefile.in (DISTFILES): Add ChangeLog-97.

13 Jan 1998  Jim Kingdon

	* client.c: Declare handle_mt.

Tue Jan 13 22:21:30 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh: Add comment about how pwd and /bin/pwd often differ
	in behavior (but are not guaranteed to).

Tue Jan 13 13:49:53 1998  Ian Lance Taylor  <ian@cygnus.com>

	* sanity.sh: When setting TMPPWD use just pwd, not /bin/pwd.

	* update.c (checkout_file): Don't pass set_time as true to
	Version_TS if the file is dead.
	* sanity.sh (modules): Add tests modules-155c6 through
 	modules-155c8 to test for above patch (without the above patch,
 	modules-155c8 will fail when remote).

Tue Jan 13 10:37:02 1998  Larry Jones  <larry.jones@sdrc.com>

	* client.c (send_modified): Change bufsize and newsize from int
	to size_t to avoid type clashes in call to read_and_gzip.

Tue Jan 13 10:33:02 1998  Larry Jones  <larry.jones@sdrc.com>

	* zlib.c (read_and_gzip): Set finish to 0; it was uninitialized.

Tue Jan 13 10:26:43 1998  Larry Jones  <larry.jones@sdrc.com>

	* add.c, rcs.c: Plug memory leaks.

Mon Jan 12 10:45:27 1998  Larry Jones  <larry.jones@sdrc.com>

	* server.c (mkdir_p): Don't try to create nameless directories
	(i.e., given "/foo//bar", don't try to create "/foo/",
	just "/foo" and "/foo//bar") since it isn't necessary and
	it fails on some systems in unexpected ways.

1998-01-11  enami tsugutomo  <enami@but-b.or.jp>

	* rcs.c (linevector_copy): Delete lines before overwriting them.

Sat Jan 10 11:05:40 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* cvsrc.c, entries.c, login.c, logmsg.c, myndbm.c, patch.c,
	release.c, server.c: Check for errors from getline, CVS_FOPEN,
	fprintf, CVS_UNLINK and fclose.  Note that the new errors are
	nonfatal.  This is because of conservatism more than because
	it is always the best thing.
	* login.c (get_cvs_password): Close the file when done with it.
	* client.c (notified_a_file): If -1 return from getline, check
	feof rather than assuming errno is set.

Fri Jan  9 14:38:54 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* server.c (expand_proc): Also output server_dir in
	"Module-expansion", not just in output_dir ("Created", &c).
	* sanity.sh (modules2): New tests modules2-9 through modules2-12
	test for this.

Thu Jan  8 12:56:55 1998  Yasutoshi Hiroe  <hiroe@rgk.ricoh.co.jp>

	* import.c (import): Don't strcat on uninitialized memory.  Fixes
	possible SIGSEGV with zero-length message.

Tue Jan  6 22:56:29 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (crerepos): Fix mistaken variable name which caused us
	not to clean up at the end of the test.

Mon Dec 22 01:40:57 1997  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* add.c (add): Also look for .cvswrappers files.
	* sanity.sh (binwrap3): New tests binwrap3-2*, binwrap3-sub2-add*
	test for this.

Tue Jan  6 11:50:38 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* sanity.sh (crerepos): New tests crerepos-8 through crerepos-18
	test behaviors when mixing repositories.

Sun Jan  4 17:40:22 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>

	* version.c: Change version number to 1.9.23.

	* Version 1.9.22.


For older changes see ChangeLog-97.