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 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076
|
2021-04-28 Simon Josefsson <simon@josefsson.org>
telnet: Support --bind (-b) for NetKit compatibility.
* NEWS: Add.
* doc/inetutils.texi (telnet invocation): Add --bind (-b).
* telnet/commands.c (tn): New variables hostaddr and srchostp.
Parse -b parameter. Update usage string. If -b is set, call
getaddrinfo on it and pass that ai_addr on to bind.
* telnet/main.c (srcaddr): New global variable.
(argp_options): Add --bind (-b).
(parse_opt): Set srcaddr to -b value.
(main): Propagate -b value to tn function.
2021-02-11 Simon Josefsson <simon@josefsson.org>
* TODO: Add items discussed on mailing list.
2021-02-05 Simon Josefsson <simon@josefsson.org>
Use gnulib sys_types module so we can assume sys/types.h.
* tests/waitdaemon.c, tests/runtime-ipv6.c, tests/readutmp.c: Drop
HAVE_SYS_TYPES_H test.
* bootstrap.conf (gnulib_modules): Add explicit sys_types.
2021-02-05 Simon Josefsson <simon@josefsson.org>
Fix some autoreconf 2.71 warnings.
* configure.ac: Remove obsolete AC_HEADER_STDC, AC_HEADER_TIME,
AC_FUNC_SETVBUF_REVERSED, and AC_DECL_SYS_SIGLIST. Don't check
for sys/time.h, we never use the test result.
2021-02-01 Alfred M. Szmidt <ams@gnu.org>
* ftp/ftp.c (getreply): Fix possible buffer overflow (backport
from OpenBSD); reported by O. Bittner, D. Maier, M. Munier,
J. Beier of SecT, TU Berlin.
2021-01-29 Simon Josefsson <simon@josefsson.org>
ping6: Don't allow unprivileged users to flood ping.
* ping/ping6.c (parse_opt): For non-root users, limit interval
like ping.c to avoid DoS. Reported in
<https://bugs.debian.org/926750>.
* ping/ping_common.h (PING_MIN_USER_INTERVAL): Add.
* ping/ping.c (MIN_USER_INTERVAL): Remove, replaced by
PING_MIN_USER_INTERVAL.
(parse_opt): Update use.
2021-01-28 Simon Josefsson <simon@josefsson.org>
* telnet/commands.c (logoutcmd): Renamed from logout. Conflicts
with system utmp.h's logout(3).
(cmdtab): Use logoutcmd instead of logout.
2021-01-28 Simon Josefsson <simon@josefsson.org>
* tests/libls.sh (LSDIR): Fix parallel testing. Found on Guix and
Debian, solution is to not use CWD as test directory for libls.
Inspired by trivial patch by Guillem Jover <guillem@hadrons.org>.
2021-01-28 Simon Josefsson <simon@josefsson.org>
ping, ping6: Fix unchecked setuid return.
* ping/ping.c (main): Fail if setuid fail. Trivial patch from
Jayakrishna Vadayath <jvadayat@asu.edu>.
* ping/ping6.c (main): Likewise.
2021-01-28 Simon Josefsson <simon@josefsson.org>
* tests/hostname.sh: Use uname as fallback if system lack hostname
command. Only require mktemp when running root test.
2021-01-28 Simon Josefsson <simon@josefsson.org>
* tests/hostname.sh: Use system hostname, not system uname, for
comparison.
2021-01-28 Simon Josefsson <simon@josefsson.org>
* configure.ac: Don't call gl_FUNC_READLINE. Not needed since we
now use readline gnulib module.
2021-01-28 Simon Josefsson <simon@josefsson.org>
Fix link failure with absent -lutil on Solaris 10.
* configure.ac (LIBUTIL): Prefer PTY_LIBS in Makefile.am over
adding -lutil for pty-functions.
* src/Makefile.am (LDADD): Add PTY_LIB.
* telnetd/Makefile.am (LDADD): Likewise.
* tests/Makefile.am (identify_LDADD): Likewise.
2021-01-27 Simon Josefsson <simon@josefsson.org>
* bootstrap.conf (buildreq): Add gzip and xz.
2021-01-27 Simon Josefsson <simon@josefsson.org>
* .gitignore: Rewrite to use leading / for most top-level files,
and general update.
2021-01-26 Simon Josefsson <simon@josefsson.org>
Sync release process with gnulib approach.
* NEWS: Fix syntax to conform to gnulib release-prep rules.
* cfg.mk: Drop news-check-regexp.
* bootstrap.conf (gnulib_modules): Use readme-release. Drop now
implicit announce-gen, gnupload and maintainer-makefile.
* bootstrap.conf (bootstrap_epilogue): Add function, fixing
README-release.
* gl/top/README-release.diff: Add file.
* .gitignore: Add README-release.
* cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Add, for
README-release.diff.
* configure.ac (AC_INIT): Don't use sed-expression, it is
incompatible with gnulib's do-release-commit-and-tag.
* cfg.mk (git-version-gen-tag-sed-script): Drop.
* .prev-version: Add file, indicating 1.9.4 as previous release.
* README-alpha (Release procedures): Removed, replaced by
README-release.
* cfg.mk (release-prep-hook): Don't disable it, we now support it.
2021-01-25 Simon Josefsson <simon@josefsson.org>
Silence 'make syntax-check'.
* libls/ls.c: Don't include <intprops.h> if we are not using it.
2021-01-25 Simon Josefsson <simon@josefsson.org>
Don't use deprecated gnulib module 'gettext' and replace
readline.m4 with gnulib readline module.
* bootstrap.conf (gnulib_modules): Remove gettext. Add readline.
* am/readline.m4: Remove file.
2021-01-25 Simon Josefsson <simon@josefsson.org>
Only do what git-version-gen recommends regarding .version.
* Makefile.am (DISTCLEANFILES): Don't distclean
$(top_builddir)/.version.
2021-01-25 Simon Josefsson <simon@josefsson.org>
Fix hostname.sh to not call system hostname, and improve
diagnostics.
* tests/hostname.sh: Fix typo. Improve output on failures.
2021-01-25 Simon Josefsson <simon@josefsson.org>
Fix 'make check' on broken platforms without /etc/protocols.
* tests/traceroute-localhost.sh: Skip test if /etc/protocols
doesn't exist, copied from existing code in tests/inetd.sh.
* tests/ping-localhost.sh: Likewise.
2021-01-25 Simon Josefsson <simon@josefsson.org>
git-version-gen: Sync with git-version-gen usage instructions.
* Makefile.am (EXTRA_DIST): Add.
(BUILT_SOURCES): Use srcdir.
(.version): Likewise.
2021-01-24 Simon Josefsson <simon@josefsson.org>
* configure.ac: Fix disabling when all rcmd is missing.
* configure.ac: Warn when rcmd is missing.
* README-alpha (Prerequisites): Mention xz, for dist.
2021-01-24 Simon Josefsson <simon@josefsson.org>
Build/doc fixes.
* README-alpha (Checking Out the Sources): Use git URL mentioned
on Savannah page.
(Prerequisites): Add bash, gcc, ncurses.
* bootstrap: Updated from gnulib.
2020-11-10 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac (AC_PREREQ): Require autoconf 2.64, caused
by changes in Gnulib.
2020-06-05 Mats Erik Andersson <gnu@gisladisker.se>
* ifconfig/system/linux.c (linux_if_nameindex): New, incompatible
signature of contemporary Gnulib function read_file().
2020-05-10 Mats Erik Andersson <gnu@gisladisker.se>
* whois/data.h (hide_strings): Add Brazilian pattern.
* whois/ip6_del_list: Update with more ranges.
2020-05-08 Mats Erik Andersson <gnu@gisladisker.se>
whois: Delegation list for IPv6 ranges.
* whois/.gitignore: Add `ip6_del.h'.
* whois/Makefile.am (BUILT_SOURCES): Add `ip6_del.h'.
(EXTRA_DIST): Add `ip6_del_list', `ip6_del.h', `make_ip6_del.pl'.
(noinst_HEADERS): Add `ip6_del.h'.
(ip6_del.h): New target.
* whois/data.h (ip6_assign): New array.
* whois/ip6_del_list: New file.
* whois/make_ip6_del.pl: New file.
* whois/whois.c (whichwhois): Regard absence of period, colon,
and hyphen as evidence of NSI NIC or ASN. Test for this and for
email address before any test for numeric addressing. Implement
code for IPv6 delegation matching, to be triggered by the presence
of a colon in the given query string.
2020-05-07 Mats Erik Andersson <gnu@gisladisker.se>
whois: Tweak command line arguments.
* whois/whois.c (whichwhois): Skip any single character token,
as it must be a search directive for a server. Prune the known
IPv6 delegations to reflect only the valid one. Use ARIN as
default IPv6 serving instance, since the old 6BONE server is no
longer responsive.
2020-05-07 Mats Erik Andersson <gnu@gisladisker.se>
whois: Improved hiding of legal disclaimers.
* whois/as_del_list: Two additional delegations.
* whois/data.h (hide_strings): Add string patterns for present
day services at ARIN, LACNIC, and RIPE.
* whois/whois.c (do_query): After successful location of a stop
pattern, go back into search state, instead of cancelling further
matching. The service at ARIN inserts identical disclaimer at
the beginning, as well as at the end of a response.
2020-05-06 Mats Erik Andersson <gnu@gisladisker.se>
* bootstrap: Updated from gnulib.
2020-04-27 Tim Rühsen <tim.ruehsen@gmx.de>
telnet: Use memove for overlapping memory instead of strncpy.
Overlapping source and destination buffers are not supported
by strncpy and give undefined results.
7.24.2.3 of ISO/IEC 9899:201x:
"If copying takes place between objects thatoverlap,
the behavior is undefined."
* telnet/commands.c (cmds): Use memove for overlapping memory
instead of strncpy.
2020-04-12 Mats Erik Andersson <gnu@gisladisker.se>
whois: Delegation of IP and AS.
Attempt improving the list of IP range delegation within the scope
of old A-class ranges. The intention is to establish as many
ranges of width 22, or wider, and also to verify old claims.
* whois/as_del_list: Update and correct existing AS range
delegations, and add a few more, random but existing.
* whois/ip_del_list: Add a large number of delegations within
former A-class ranges, and correct two erroneous instances.
* whois/whois.c (whereas): Raise the upper limit of known ASN.
(queryformat): Rewrite query statement intended for ARIN.
2020-04-06 Mats Erik Andersson <gnu@gisladisker.se>
whois: Include ERX ranges for APNIC.
The content of the following web page was scanned to identify
the ranges within old B-classes that were assigned to APNIC
by the ERX project, Early Registration Transfer. After some
cross checking, a few intermediate ranges for other registars
were included for better resolution.
https://www.apnic.net/manage-ip/manage-historical-resources/erx-project/erx-transfer-to-apnic/
* whois/ip_del_list: Add a large amount of APNIC address ranges.
2020-04-05 Mats Erik Andersson <gnu@gisladisker.se>
Support for libidn2 in addition to libidn.
* am/libidn.m4 (have_IDN2, have_IDN): New local variables.
Detect presence of libidn2 by checking for `idn2_to_ascii_lz',
but still aim at backwards compatibility. Detect header file
`idna.h' as well as `idn2.h', but prefer libidn2 to libidn,
should both libraries be detected.
* configure.ac (--with-idn): Mention that IDN2 is acceptable.
(idn_link): New variable.
(ftp_PROPS, ping_PROPS, talk_PROPS, telnet_PROPS, tftp_PROPS)
(traceroute_PROPS): Update these to state `idn', or `idn2'.
* ftp/ftp.c [HAVE_IDN2_H && HAVE_IDN2]: Include `idn2.h'.
[(!HAVE_IDN2_H || !HAVE_IDN2) && HAVE_IDNA_H]: Include `idna.h'.
(hookup) [HAVE_IDN || HAVE_IDN2]: Use compatibility function
idna_to_ascii_lz().
* ping/libping.c (ping_set_dest): Likewise.
* ping/ping6.c (ping_set_dest): Likewise.
* src/tftp.c (resolve_name): Likewise.
* src/traceroute.c (main): Likewise.
* talk/get_addrs.c (get_addrs)
[HAVE_DECL_GETADDRINFO || HAVE_IDN || HAVE_IDN2]: Declare ERR.
[HAVE_IDN || HAVE_IDN2]: Likewise.
* telnet/commands.c (tn): Declare HOSTTMP. Likewise.
2020-04-04 Alfred M. Szmidt <ams@gnu.org>
* ping/ping6.c (print_packet_too_big): Use %u when printing MTU.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
uucpd: Fix buffer overflows.
This fixes several missing string termination issues with strncpy.
Also REMOTEHOST of size NI_MAXHOST was strcpy'ed into LINE, which
just had 32 bytes on the stack.
* src/uucpd.c (SCPYN): Promote macro to global scope, but expand
its action by writing the final NUL character.
(dologin): Increase size of LINE. Use existing macro SCPYN
instead of strncpy.
[PATH_LASTLOG && HAVE_STRUCT_LASTLOG]: Delete local macro SCPYN.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
uucpd: Fix heap buffer overflow.
Usernames >= 56 bytes would overflow the char arrays Username and
Logname. This change mitigates this, but still silently truncates
these arrays. Silent truncation should be checked throughout the
code, possibly within a more comprehensive code review.
* src/uucpd.c (Username, Logname): Increase size to 72 bytes.
(doit): Use snprintf instead of sprintf.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
telnet: Use strdup instead malloc+strcpy.
* telnet/commands.c (tn): Assign HOSTNAME using strdup().
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
telnet: Fix -Wsign-compare in suboption.
* telnet/telnet.c (suboption): Explicitly cast sizeof() to int.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
telnetd: Silence -Wimplicit-fallthrough.
* telnetd/state.c (willoption): Squeelch warning.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
telnetd: Silence unused warning for getterminaltype.
* telnetd/utility.c (getterminaltype): Squeelch warning.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
ftp: Silence -Wimplicit-fallthrough warning.
* ftp/domacro.c (domacro): Squeelch warning.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
ftp: Silence -Wimplicit-fallthrough.
* ftp/cmds.c (domap): Squeelch warning.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
ftp: Fix multipliers for M(ega) and G(iga).
This is *not* a fix as the comment accidentally states. It is to
silence -Wimplicit-fallthrough and to avoid multiple
multiplications in case of a non-optimized build. The HASHBYTES
type needs to be reviewed later as g/G only allows digits 1 and 2
without integer overflow, which is undefined behavior.
* ftp/cmds.c (sethash): Remove cascaded multiplications.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
ftp: Fix return value of remglob.
* ftp/cmds.c (remglob): Switch roles of old values after NULL check.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
ftp: Fix possible buffer overflow.
* ftp/ftp.c (hookup): Terminate string after strncpy.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
ftp: Fix two misuses of strncpy (read buffer overflow).
* ftp/ftp.c (pswitch): Correctly set the terminating NUL.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
talk: Fix uninitialized variable NREADY.
* talk/ctl_transact.c (ctl_transact): Initialize NREADY to 0.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
whois: Silence -Wimplicit-fallthrough.
* whois/whois.c (main): Squeelch warning.
2020-02-29 Tim Rühsen <tim.ruehsen@gmx.de>
ping, ping6: Silence -Wimplicit-fallthrough.
* ping/ping.c (parse_opt): Squeelch warning.
* ping/ping6.c (parse_opt): Likewise.
2020-02-17 Tim Rühsen <tim.ruehsen@gmx.de>
ping6: Fix memleak in ping_set_dest.
* ping/ping6.c (ping_set_dest): New function signature.
Rearrange code to avoid memory leak.
* ping/ping6.h (ping_set_dest): Change signature in declaration.
2020-02-17 Tim Rühsen <tim.ruehsen@gmx.de>
ping: Fix memleak in ping_set_dest.
* ping/libping.c (ping_set_dest): New function signature.
Rearrange code to avoid memory leak.
[HAVE_DECL_GETADDRINFO]: Rename P as RHOST.
* ping/ping.h (ping_set_dest): Change signature in declaration.
2020-02-16 Tim Rühsen <tim.ruehsen@gmx.de>
libls: Remove unused variable kflag.
* libls/ls.c (ls_main): Remove unused variable.
2020-02-16 Tim Rühsen <tim.ruehsen@gmx.de>
ftpd: Fix multiple definition (GCC 10).
* ftpd/extern.h (errcatch): Declare as extern.
* ftpd/ftpd.c (errcatch): Define variable.
2020-02-16 Tim Rühsen <tim.ruehsen@gmx.de>
telnetd: Fix multiple definition (GCC 10).
* telnetd/utility.c (not42): Declare as extern.
2020-02-16 Tim Rühsen <tim.ruehsen@gmx.de>
* src/rcp.c (tolocal): Remove unused variable LEN.
2020-02-16 Tim Rühsen <tim.ruehsen@gmx.de>
telnet: Fix silent truncation (off-by-one check)
If the DISPLAY variable had exactly 44 bytes, the SE byte (end sub
negotiation) was silently truncated. This concerns CVE-2019-0053.
* telnet/telnet.c (suboption): Add case of equality in conditional,
supplementing strict inequality.
2020-02-21 Mats Erik Andersson <gnu@gisladisker.se>
Various compiler warnings, getting closer to `-Werror'.
* libls/print.c (printlong): The functions major() and minor() have
no portable value type, so cast as `int'.
* ping/ping.c (decode_type): Initialize HOSTNAME to NULL.
* src/hostname.c (parse_opt, main) <SET_NAME_ACTION>: The prototype
of sethostname() is not portable, so cast as `void *'. Do this
also on both members in a conditional clause.
* src/logger.c (parse_level): Cast PRIORITYNAMES and FACILITYNAMES
as `CODE *', since BSD-systems assign these a constant type.
* src/syslogd.c (textpri, cfline): Likewise.
* src/rcp.c (source, rsource): Type length of `stat.st_mode' is not
portable, so cast as `int'.
* src/traceroute.c (trace_write): Make loop variable I unsigned.
2020-02-20 Mats Erik Andersson <gnu@gisladisker.se>
rexecd, rshd: Avoid false failure message.
* src/rexecd.c (doit) [HAVE_SETLOGIN]: Only call setsid() in case
the session leader is different from the present process.
* src/rshd.c (doit) [HAVE_SETLOGIN]: Likewise.
2020-02-20 Mats Erik Andersson <gnu@gisladisker.se>
rcp: Recursive reception was broken.
The commit 67b49c54 broke the use case of locally receiving
multiple files for a recursive copying action. This was found
and established by Zhixiong Chi. Now revert the relevant part
of the old commit, as the suggested patch is nearly a verbatim
change back. The differences await further analysis.
Original report is contained in:
https://lists.gnu.org/archive/html/bug-inetutils/2019-12/msg00000.html
* src/rcp.c (sink) [targisdir]: Revert to the legacy, and functional,
implementation of string allocation.
2020-02-10 Mats Erik Andersson <gnu@gisladisker.se>
Simplify coding of test program `runtime-ipv6', by using
standard getopt() library function, thus making the code
self sufficient.
* tests/runtime-ipv6.c: Migrate away from argp_parse() to
standard getopt(). Let environment variable VERBOSE contribute
a short message in case the program tests successfully.
Also use AI_NUMERICSERV for completeness.
2020-02-09 Mats Erik Andersson <gnu@gisladisker.se>
test-snprintf: New test program.
An implementation dependent feature of snprintf() is tested.
The BSD unices and OpenSolaris relatives are known to be more
forgiving, than is Linux/glibc and kfreebsd/glibc. The issue
was brought to our attention by Zhixiong Chi in:
https://lists.gnu.org/archive/html/bug-inetutils/2019-05/msg00002.html
* tests/test-snprintf.c: New file.
* tests/Makefile.am (check_PROGRAMS, TESTS): Add `test-snprintf'.
* tests/.gitignore: Likewise.
2020-02-04 Mats Erik Andersson <gnu@gisladisker.se>
Buffer overflow in tftp and tftpd.
Recent versions of Gnu libc and Gcc are injecting buffer checks
into strcpy(). Both executables, tftp and tftpd, are effectively
copying into a formally declared `char th_msg[1]', ignorant of
the underlying buffer being of size PKTSIZE.
Problem was reported by Mike Gilbert and Ricardo Ribalda Delgado:
https://lists.gnu.org/archive/html/bug-inetutils/2017-12/msg00001.html
https://lists.gnu.org/archive/html/bug-inetutils/2019-07/msg00002.html
* src/tftp.c (nak): Replace strcpy() by memcpy(), after the
needed calculation of string length.
* src/tftpd.c (nak): Likewise.
* tests/tftp.sh: New compound test with multiple requests.
2020-02-03 Mats Erik Andersson <gnu@gisladisker.se>
whois: AUDA services Australia.
Update server name. Forwarded from Adam King:
https://lists.gnu.org/archive/html/bug-inetutils/2018-07/msg00001.html
* whois/tld_serv_list (.au): Update server, now at AUDA.
2020-02-03 Mats Erik Andersson <gnu@gisladisker.se>
Better portability for BSD install.
Install hooks for programs that require root ownership, were written
with GNU install in mind. Reported and suggested by Bill Cole:
https://lists.gnu.org/archive/html/bug-inetutils/2018-07/msg00005.html
* ping/Makefile.am (install-ping-hook): Place program switches
to INSTALL_PROGRAM before file argument, thus helping BSD install.
Rewrite failure comment, and add exit error code.
* src/Makefile.am (install-traceroute-hook, install-rsh-hook)
(install-rlogin-hook, install-rcp-hook): Likewise.
2020-02-01 Mats Erik Andersson <gnu@gisladisker.se>
tests: Less system logging.
* tests/ftp-localhost.sh (LOGGING): New variable. Let the server
program do system logging only if LOGGING has been defined.
* tests/tftp.sh (LOGGING): Likewise. Add a test case where a
non-existing file is requested. Check that the number of tries
and of successes agree in order to suppress the final text.
* README: Add some remarks on our testing abilities.
2020-01-31 Mats Erik Andersson <gnu@gisladisker.se>
whois: IP delegation update.
* whois/ip_del_list: Update with entries as stated by IANA
with publication date 2019-12-27.
2020-01-31 Mats Erik Andersson <gnu@gisladisker.se>
whois: Failure of service name.
The IANA has made badly founded changes to the list of port names,
promoting `nicname' and introducing the aliases list `Who Is',
thus making `Who' and `Is' into functional services, and also
loosing `whois'. Some systems were careless enough to adopt
this badly wrought change. Reported by Shahab Vahedi in:
https://lists.gnu.org/archive/html/bug-inetutils/2020-01/msg00023.html
* whois/whois.c (openconn): Fall back to service `nicname',
should `whois' fail.
2020-01-29 Mats Erik Andersson <gnu@gisladisker.se>
More work on CVE-2019-0053.
Telnet protocol messages must not be corrupted when buffer
overflows are detected, but should be reported as errors.
* telnet/telnet.c (suboption): Check that prepared protocol
message in fact fits in intermediary buffer without truncation.
Tweak indentation for visibility of protocol elements in snprintf.
Allocate space also for final NUL-character.
* telnetd/telnetd.c (telnetdrun): Increase DATA string size by one.
* telnetd/termstat.c (localstat, flowstat, clientstat): Likewise.
Insufficiently declared length of string variable.
* telnetd/utility.c (printsub): Declare TBUF with maximal extent.
2020-01-28 Mats Erik Andersson <gnu@gisladisker.se>
Better test coverage, mostly IPv6.
* tests/ftp-localhost.sh [TEST_IPV6 && TARGET6]: Add the possible
test cases that existed for IPv4, but did not for IPv6.
[do_transfer]: Explicitly remove copied $PUTME for reliability.
[TEST_IPV6 && TARGET6 && do_transfer]: New test for name mapping.
* tests/syslogd.sh [do_unix_socket || do_inet_socket]: Do priority
`notice' for each of local socket, IPv4 socket, and IPv6 socket,
as is applicable.
(COUNT_WRAP): Reworked calculation on grounds as above.
[do_inet_socket && TEST_IPV6 && TARGET6]: Test facilities `user.info'
and `user.debug' with IPv6.
* tests/tftp.sh (do_secure_setting): Test all of $ADDRESSES.
* tests/.gitignore: Add runtime-ipv6 to list.
2020-01-27 Mats Erik Andersson <gnu@gisladisker.se>
Portability to an old Solaris shell.
* tests/tools.sh.in (EGREP, FGREP, RUNTIME_IPV4, RUNTIME_IPV6):
Inside parameter substitution, put value between quotes, since
some old shells stumble on non-quoted space characters.
* tests/ifconfig.sh (evaluation of FORMAT): Likewise.
Make sure that scripts are individually executable.
* tests/ftp-parser.sh (EXEEXT): Test empty before reading tools.sh.
* tests/libls.sh (EXEEXT): Likewise.
* tests/ifconfig_modes.sh: Read tools.sh.
2020-01-26 Mats Erik Andersson <gnu@gisladisker.se>
Examination of testing scripts.
* tests/ftp-localhost.sh [TEST_IPV4 && TARGET]: Implement one
additional level of indentation in this large text block.
Some additional fixes of indentation and improved readability.
* tests/inetd.sh: Improve regex when refusing test directories.
* tests/syslogd.sh: Likewise.
* tests/ping-localhost.sh: Use back quotes for portability.
* tests/traceroute-localhost.sh: Likewise.
2020-01-24 Mats Erik Andersson <gnu@gisladisker.se>
runtime-ipv6: Implicit dependency on services file.
In a chrooted test environment, access to a particular
resource like /etc/services, need not be granted.
* tests/runtime-ipv6.c: Replace symbolic service name `tftp'
by a numerical and harmless port string.
2020-01-24 Mats Erik Andersson <gnu@gisladisker.se>
Separation of test cases according to IPv4, and to IPv6.
The two precious macros TEST_IPV4 and TEST_IPV6 are controlling
whether the indicated address family is checked in our tests.
Test coverage is left unequal.
* configure.ac (TEST_IPV4): New macro. The new switch
`--disable-ipv4' suppresses IPv4 during target `check'.
* tests/Makefile.am (tools_subst): Replace @TEST_IPV4@.
* tests/tools.sh.in (TEST_IPV4, RUNTIME_IPV4, RUNTIME_IPV6):
New variables.
(TEST_IPV4, TEST_IPV6): If either is `auto', make a runtime check
for availability, and set to `no' in case of failure.
* tests/runtime-ipv6.c: Implement switches `-4' and `-6', making
it possible to test for either address family at runtime.
[EAI_NODATA]: Return this error in a corner case, or else EAI_FAIL.
* tests/ftp-localhost.sh: Remove code now existing in tools.sh.in.
Separate existing test cases according to IPv4 and IPv6, by means
of conditionals with TEST_IPV4 and TARGET, or TEST_IPV6 and TARGET6.
[TEST_IPV4 = TEST_IPV6 = no]: Skip test.
* tests/ping-localhost.sh: Likewise.
* tests/syslogd.sh: Likewise.
* tests/telnet-localhost.sh: Likewise.
* tests/tftp.sh: Likewise.
* tests/ifconfig.sh [TEST_IPV4 = no]: Skip test.
* tests/inetd.sh (TARGET6): New variable.
[TEST_IPV4 = TEST_IPV6 = no]: Skip test.
Implement subcases for IPv6, and condition old cases on TEST_IPV4.
* tests/traceroute-localhost.sh [TEST_IPV4 = no]: Skip test.
[TEST_IPV4 && TARGET]: Condition each case completely.
2020-01-22 Mats Erik Andersson <gnu@gisladisker.se>
Correctly detect presence of IPv6.
* tests/runtime-ipv6.c [AI_ADDRCONFIG] (hints.ai_flags):
Add AI_ADDRCONFIG for better selectivity.
2020-01-20 Mats Erik Andersson <gnu@gisladisker.se>
Test robustly in absence of IPv6.
For systems without functional IPv6 addressing at runtime,
suppress this address family in our tests, whenever IPv6 was
configured as autodetected. Helpful answer by Bruno Haible
originating from effects in a Raspbian system:
https://lists.gnu.org/archive/html/bug-inetutils/2020-01/msg00021.html
* tests/Makefile.am (check_PROGRAMS): Add `runtime-ipv6'.
* tests/ftp-localhost.sh (RUNTIME_IPV6): New variable.
[TEST_IPV6 == auto]: Set TEST_IPV6 to `no' when runtime presence
of IPv6 is in the negative. Thus effectively inhibiting all use
within this script of IPv6 addresses.
* tests/ping-localhost.sh: Likewise.
* tests/syslogd.sh: Likewise.
* tests/telnet-localhost.sh: Likewise.
* tests/tftp.sh: Likewise.
* tests/runtime-ipv6.c: New file.
* configure.ac (AC_ISC_POSIX): Delete obsolete test.
2020-01-18 Mats Erik Andersson <gnu@gisladisker.se>
Minor portability glitches in Solaris and in AIX.
* am/libcurses.m4 (IU_LIB_TERMCAP) [!_XOPEN_CURSES]: Conditionally
include the header <term.h>.
* telnet/telnet.c [HAVE_CURSES_TGETENT & !_XOPEN_CURSES]: Likewise.
* telnetd/utility.c [HAVE_CURSES_TGETENT & !_XOPEN_CURSES]: Likewise.
* ftp/ftp.c (h_errno): Delete declaration, not in use.
* ftpd/ftpd.c (FTP_NAMES): Assign a value to this macro.
2020-01-14 Mats Erik Andersson <gnu@gisladisker.se>
Make test of ftp-parser slightly more forgiving. Darwin systems
might prepend a path stem to local directory. Assaf Gordon reported
https://lists.gnu.org/archive/html/bug-inetutils/2020-01/msg00005.html
* tests/ftp-parser.sh: Check number of responses to mixed command
list, and extract any prepended path resulting from `lcd'.
(DIR_STEM): New variable. This modifies matching test after `lpwd'.
2020-01-13 Mats Erik Andersson <gnu@gisladisker.se>
The Gnulib module `regex' requires linking that was not made
explicit in our source. Discovered by Bruno Haible with AIX 7.2.
https://lists.gnu.org/archive/html/bug-inetutils/2020-01/msg00012.html
* talkd/Makefile.am (LD_ADD): Add $(LIBTHREAD) and $(LIB_MBRTOWC).
2020-01-13 Mats Erik Andersson <gnu@gisladisker.se>
Attempt to build correctly on Cygwin, new and old. Reported
and suggested by Bruno Haible in
https://lists.gnu.org/archive/html/bug-inetutils/2020-01/msg00013.html
* configure.ac: Check for header <arpa/tftp.h>. When it is
missing disable the targets `tftp', and `tftpd'.
* am/enable.m4 (IU_ENABLE_FOO): Append $EXEEXT to `target_BUILD'.
2020-01-12 Mats Erik Andersson <gnu@gisladisker.se>
Suppress building of remote execution commands on systems that
offer no rcmd functionality. This happens with embedded systems
like Alpine Linux and musl libc, as reported by Assaf Gordon and
Bruno Haible.
* configure.ac: Check for function rcmd(). Disable building
of `rcp', `rlogin', and `rsh' when no rcmd variant is present.
(WITH_RCMD): New precompiler macro.
2020-01-11 Mats Erik Andersson <gnu@gisladisker.se>
The glibc manual page for ether address specifies <netinet/ether.h>.
Use this for GNU/Linux in the hope of resolving also musl libc, as
used with Alpine Linux. Reported by Bruno Haible.
* ifconfig/system/linux.c [HAVE_NETINET_ETHER_H]: Include the
library header <netinet/ether.h> instead of the system specific
header <linux/if_ether.h>.
2020-01-11 Mats Erik Andersson <gnu@gisladisker.se>
Consistent use of `grep' tools in scripts.
* configure.ac (EGREP, FGREP): New and precious variables.
* tests/Makefile.am (tools_subst): Replace @EGREP@ and @FGREP@.
* tests/ftp-parser.sh (reply): Use $EGREP to detect size in answer,
and apply a single, alternating regex.
* tests/ifconfig_modes.sh: Replace all `grep' by $GREP.
* tests/inetd.sh: Likewise.
* tests/libls.sh: Likewise. Drop unused `-e' flag.
* tests/syslogd.sh: Likewise. Use `$FGREP -f' instead of
non-portable `$GREP -f'. In two cases where `grep' needed
multiple regexes, use $EGREP and alternating regexes.
* tests/tools.sh.in (EGREP, FGREP): New variables.
2020-01-01 Simon Josefsson <simon@josefsson.org>
telnet: Validate supplied environment variables. CVE-2019-0053
* telnet/telnet.c (suboption): Use snprintf instead of sprintf.
* telnet/utilities.c (printsub): Likewise.
2020-01-01 Guillem Jover <guillem@hadrons.org> (tiny change)
* ping/ping_echo.c (struct icmp_diag): Fix typo.
2020-01-01 Simon Josefsson <simon@josefsson.org>
* NEWS: Document user-visible changes since last release.
2020-01-01 Simon Josefsson <simon@josefsson.org>
* THANKS: Credit Mats.
2020-01-01 Simon Josefsson <simon@josefsson.org>
* cfg.mk: Silence 'make syntax-check'.
2020-01-01 Simon Josefsson <simon@josefsson.org>
* bootstrap: Updated from gnulib.
2020-01-01 Simon Josefsson <simon@josefsson.org>
* telnet/telnet.c (telsnd): Telnet -E(no escape) is treating
_POSIX_VDISABLE char as escape.
Reported by Mikhail Bychek <mikhail.bychek@sputnix.ru>.
2018-11-12 Mats Erik Andersson <gnu@gisladisker.se>
* src/tftpd.c (main): Add LOG_NDELAY to openlog(). The file
descriptor for logging must be active before chrooting happens.
2018-11-09 Mats Erik Andersson <gnu@gisladisker.se>
* bootstrap: Updated from gnulib.
* configure.ac (AC_PREREQ): Require autoconf 2.63. Gnulib needs
a more recent version due to demands put forward by libtool.
2018-09-06 Simon Josefsson <simon@josefsson.org>
* README-alpha (Development): Remove broken links.
* bootstrap: Updated from gnulib.
2017-07-10 Omer Anson <oaanson@gmail.com> (tiny change)
* src/hostname.c (parse_file): Free name and allocate one extra
byte for it.
2017-07-10 Omer Anson <oaanson@gmail.com> (tiny change)
* src/hostname.c (set_name): Handle case when hostname_new is
NULL.
2017-07-10 Omer Anson <oaanson@gmail.com> (tiny change)
* ftpd/ftpd.c (options) <max-timeout>: Mention mandatory argument.
2017-06-22 Omer Anson <oaanson@gmail.com> (tiny change)
* ftp/main.c (main): Don't assume that uninitialized argv[argv] is
NULL.
2017-03-04 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Use tty, not pty on Solaris.
Setting of terminal attributes as well setting of window size
must be done via the slave descriptor, not the master descriptor.
* telnetd/term.c [SOLARIS || SOLARIS10] (set_termbuf):
New variables NAME, TTY. A call to ptsname() reveals whether
`pty' is a master. Then open that file, update TTY, and call
_term_setattr().
[SOLARIS || SOLARIS10] (init_termbuf): Simplify to use a single
call to _term_getattr(), similar to set_termbuf().
* telnetd/termstat.c: Include <fcntl.h>.
[TIOCSWINSZ && (SOLARIS || SOLARIS10)] (clientstat) <TELOPT_NAWS>:
New variables NAME, TTY. Similar mechanism as above, but call
ioctl with window size.
[TIOCSWINSZ && (SOLARIS || SOLARIS10)] (defer_terminit): Likewise.
2017-03-03 Mats Erik Andersson <gnu@gisladisker.se>
Test utility displays some termcaps.
* tests/Makefile.am (identify_LDADD): Set to contain
`$(top_builddir)/lib/libgnu.a' and `$(LIBUTIL)'.
* tests/identify.c: Include <string.h>.
[HAVE_TERMIOS_H]: Include <errno.h>, <termios.h>, <pty.h>.
[HAVE_TERMIOS_H && HAVE_FCNTL_H]: Include <fcntl.h>.
[HAVE_TCGETATTR] (test_flag): New macro.
[HAVE_TCGETATTR] (do_termcap): New function.
[HAVE_TCGETATTR] (main): Call do_termcap().
2017-03-02 Fredrik Fornwall <fredrik@fornwall.net> (tiny change)
ftp: Portability to Android.
Without a check for HAVE_DECL_GETPASS and without making a
local function declaration, the implicit declaration causes
crashes on 64-bit systems lacking declared getpass(), such
as Android. Reported in:
http://lists.gnu.org/archive/html/bug-inetutils/2016-10/msg00000.html
* ftp/cmds.c [!HAVE_DECL_GETPASS] (user, account): Declare getpass()
as external function.
* ftp/ftp.c (login): Likewise.
2017-03-02 Mats Erik Andersson <gnu@gisladisker.se>
whois: Update Canadian TLD server.
Old host name no longer exists. Reported by Neil Mayhem:
http://lists.gnu.org/archive/html/bug-inetutils/2017-01/msg00000.html
* whois/tld_serv_list (.ca): New host 'whois.cira.ca'.
2017-02-27 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Portability of TTY termcap to Solaris systems.
* telnetd/term.c: Include header <fcntl.h>.
[SOLARIS10 || SOLARIS] (init_termbuf): If applicable, open
the slave TTY and extract terminal capabilities, since these
systems do not assign a line discipline to the master PTY.
New variables NAME and TTY.
2017-02-27 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Portable option debugging.
BSD systems assign IAC and _POSIX_VDISABLE the common decimal
value 255. Hence the NVT enforces value duplication more often
during their transmission, than GNU and Solaris systems do.
* telnetd/utility.c (printsub) <LM_SLC>: Increase suboption
pointer I sufficiently to counteract duplication. This has
to distinguish between in/out/none. In recursive mode,
suppress newline at the end of suboption printing.
* telnetd/slc.c (send_slc) <SLC_EC, SLC_EL, SLC_EW, SLC_RP>
<SLC_LNEXT>: Editing characters are reported using SLC_DEFAULT
rather than ignored due to SLC_NOSUPPORT, when they are not
supported locally. This conforms with RFC 1184, section 2.4.
The test for support checks the set 'current', not 'defset',
which fits the wording found in RFC 1184.
2017-02-23 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Scrub USER from environment.
Discard the environment variable USER. It will later be set
properly for autologin, but at least one BSD system passes
a preset value when telnetd starts, a value which will cause
rejected login when autologin is not in effect.
* telnetd/telnetd.c (telnetd_setup): Unset environment
variable USER before calling getterminaltype().
2017-02-21 Mats Erik Andersson <gnu@gisladisker.se>
* bootstrap: Updated from gnulib.
2017-02-21 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Debugging of mainly line mode options.
* telnetd/telnetd.c (telnetd_run): Assemble flow control data
in new string variable DATA, then send it and include for debug
reporting in category 'options'.
* telnetd/termstat.c (localstat, flowstat, clientstat): Likewise,
also for line mode data.
* telnetd/utility.c (printsub) <LM_MODE>: Test TBUF[0]
to calculate replacement string, since TBUF[1] is not
guaranteed to be initialized by the preceding snprintf().
2016-05-23 Mats Erik Andersson <gnu@gisladisker.se>
hostname: Avoid a trailing space.
Suppress the space character after the last presented IP number.
Problem reported by Terje Strand in
http://lists.gnu.org/archive/html/bug-inetutils/2016-04/msg00001.html
* src/hostname.c (get_ip_addresses): Emit a space character
only in case a further IP address will be printed.
2016-02-16 Mats Erik Andersson <gnu@gisladisker.se>
traceroute: Subprivileged use case.
A fallback for ICMP tracing relevant to GNU/Linux is implemented,
allowing a rudimentary but suid-less use case. The ability to
identify intermediary hosts is missing, due to the crippled
capability of receiving ICMP packets other than ICMP_ECHOREPLY.
* src/traceroute.c (struct trace): New member `no_ident'.
(trace_init): Initiate `t->no_ident'.
<type TRACE_ICMP or TRACE_UDP>: In case a raw socket for an ICMP
protocol fails, fall back to a datagram socket.
(trace_read) <type TRACE_ICMP>: Short circuit `ic->icmp_id != pid'
with the conditional `t->no_ident == 0'.
(trace_write) <type TRACE_ICMP>: New variable I. Initialize HDR
to its full extent. If `t->no_ident' is non-zero, insert our
intended target as payload of HDR for trace identification.
2016-02-12 Mats Erik Andersson <gnu@gisladisker.se>
ping: Implement subprivileged echo method.
Add fallback code usable by GNU/Linux to create a datagram
socket for sending ICMP ECHOREQUEST. The change is related
to issue #37252.
* ping/libping.c (useless_ident): New variable.
(ping_init): When a raw socket fails, fall back to a datagram
socket. In case of success, increase `useless_ident' since
the kernel choses a packet identity, overwriting our choice.
(my_echo_reply, ping_recv): Short circuit the tests for packet
identity with the value of `useless_identity'.
2016-02-09 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac (missing ipv6 or icmp6): Disable `ping6' using
the macro IU_DISABLE_TARGET.
2016-01-23 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Allow remote user in command.
Ability implemented after a query by Andreas Adamcik, on the
legacy use of getlogin() versus the more admitting getuid().
* ftp/ftp.c (hookup): Check for an embedded at-sign in the input
variable `host', keeping the rightmost part. New variable P.
(login): Likewise, but also using the string part to the left of
the last at-sign as remote user name.
* doc/inetutils.texi (ftp invocation): Document this ability.
* NEWS: Likewise.
2016-01-22 Mats Erik Andersson <gnu@gisladisker.se>
* bootstrap: Updated from gnulib.
2015-12-29 Mats Erik Andersson <gnu@gisladisker.se>
tests/ftp-localhost.sh: Incomplete error handling.
The use of sysctl(8) with option `set -e` active during
script execution needs a robust exception handler.
Reported by Ingo Brückl in
http://lists.gnu.org/archive/html/bug-inetutils/2015-12/msg00000.html
* tests/ftp-localhost.sh: Locate sysctl(8) using `command`
with an augmented search path. When computing VALUE_V6ONLY
in a subshell, add a short circuit with `true` to prevent
interruption of the test script.
(SYSCTL): New variable.
2015-10-08 Mats Erik Andersson <gnu@gisladisker.se>
syslogd: Redefine faulty macro LOG_MAKEPRI whenever needed.
Systems with Glibc header file <syslog.h> prior to 2.17,
are not correctly defining the helper macro LOG_MAKEPRI.
This effects our syslog service whenever it receives kernel
messages from a remote host. The issue was mentioned in
Debian's BTS as report #729666.
* src/logprio.h [LOG_MAKEPRI]: Check that the macro does
not shift the first argument. If it does, undefine it and
apply our corrected definition.
* src/syslogd.c [LOG_MAKEPRI]: Likewise. Display a precompiler
warning to the effect that we have diagnosed an issue.
2015-09-15 Mats Erik Andersson <gnu@gisladisker.se>
* doc/inetutils.texi (ifconfig invocation): New chapter.
2015-08-19 Mats Erik Andersson <gnu@gisladisker.se>
AIX systems have a system call send_file(). Rename our calls.
* src/tftp.c (send_file): Rename to...
(tftp_sendfile): ... this.
(put): Call tftp_sendfile, not send_file.
* src/tftpd.c (send_file): Rename to...
(tftpd_sendfile): ... this.
(formats): List tftpd_sendfile call, not send_file.
2015-08-15 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Premature connection closure.
When many connections are attempted in quick succession,
a substantial number of them are cancelled. This does not
appear for manual use cases, but for contrived automated
set-ups. The cause seems to be a change in the evaluation
of pty_read(), which was done to coincide with the condition
in use by the original BSD implementation. Issue reported and
suggested by Chris Severance in
http://lists.gnu.org/archive/html/bug-inetutils/2015-07/msg00006.html
* telnetd/telnetd.c (telnetd_run): Break the loop only by the
stronger condition `pty_read() < 0', i.e., only on non-masked
read errors. This reverts a change introduced in 2015-03-15.
* telnetd/utility.c (pty_read): Add a comment that the read
errors EWOULDBLOCK, EAGAIN, and EIO are treated specially.
2015-08-07 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Statistics for BSD systems.
* ifconfig/system/bsd.c (system_fh_ifstat_query)
(get_if_data_by_name, system_fh_missing_stat): New functions.
(_IU_DECLARE2): New macro.
(system_fh_rx_bytes, system_fh_rx_dropped, system_fh_rx_errors)
(system_fh_rx_packets, system_fh_tx_bytes, system_fh_tx_errors)
(system_fh_tx_packets, system_fh_collisions): New functions
defined using _IU_DECLARE2.
(system_fh_tx_dropped): New function.
* ifconfig/system/bsd.h (_IU_CAT2, _IU_DCL, _IU_EXTRN): New
macros identical to those in `ifconfig/system/linux.h'.
(SYSTEM_FORMAT_HANDLER) <ifstat?, collisions, rxbytes>
<rxdropped, rxerrors, rxfifoerr, rxframeerr, rxpackets>
<txbytes, txcarrier, txdropped, txerrors, txfifoerr, txpackets>:
New handler hooks.
(system_fh_ifstat_query, system_fh_missing_stat): New prototypes.
(system_fh_rx_bytes, system_fh_tx_bytes, system_fh_rx_dropped)
(system_fh_tx_dropped, system_fh_rx_errors, system_fh_tx_errors)
(system_fh_rx_packets, system_fh_tx_packets, system_fh_collisions):
New prototypes generated by _IU_EXTERN.
2015-08-02 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Verbose report on changed flags.
* ifconfig/changeif.c (set_flags): In verbose report mode,
compose a message to name those flags that were set, and
also those that were cleared.
2015-08-01 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Apply flags correctly.
When finalizing actions, some flags could be forgotten.
In particular, the flag 'up' was ignored whenever an
address was assigned at the same time. This is related
to the fact that an invocation only effecting interface
flags, still resulted in a full printout if interface
status. This latter behaviour differs from all other
implementations and is rather annoying. The issue was
detected and reported by Hans-Peter Budek in
http://lists.gnu.org/archive/html/bug-inetutils/2015-07/msg00000.html
* ifconfig/options.c (pending_setflags, pending_clrflags):
Define as static variables.
(pending_valid): New variable.
(argp_options) <message 'up'>: Delete the claim that 'up' be
a default action together with address.
(parse_opt_set_flag): When `ifp' exists, update `ifp->valid'
with IF_VALID_FLAGS. Otherwise, update `pending_valid'.
(parse_opt_finalize): If `ifp' exists and `pending_valid` is
set, then update `ifp->valid'. The update of `ifp->setflags'
and `ifp->clrflags' is performed independently of assigning
an output format, as the latter would cause a printout also
when only some flag is being altered.
* ifconfig/options.h (IF_VALID_FLAGS): New macro.
(IF_VALID_HWADDR): Updated value.
(pending_setflags. pending_clrflags): Removed declaration.
2015-07-30 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: A work-around specific to GNU/Hurd.
This system uses a mixture of BSD definitions
and GNU/Linux interfaces. In particular, some
care is needed to check interface hardware type.
* ifconfig/system/hurd.c (_ARP_MASK): New macro.
(arphrd_symbols): Apply _ARP_MASK to each member `value'.
2015-07-25 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Symbolic name as peer address.
* ifconfig/changeif.c (set_dstaddr): Adapt code block used
by set_address(), thereby first using either getaddrinfo()
or gethostbyname() to resolve a possibly symbolic peer
destination, then setting the established address.
2015-07-25 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Support changing of hardware address.
Implement the setting of link level addresses
for systems running GNU/Linux.
* ifconfig/changeif.c [HAVE_NETINET_ETHER_H]: Include
header <netinet/ether.h>.
(set_hwaddr): New function.
(configure_if): Call set_hwaddr() whenever `ifp->valid'
contains IF_VALID_HWADDR.
* ifconfig/options.c (ifconfig_initializer): Add a further
NULL at the end.
(parse_opt_set_hwaddr): New function built by the generic
macro PARSE_OPT_SET_ADDR.
* ifconfig/options.h (struct ifconfig): Define IF_VALID_HWADDR
and add a new member `hwaddr'.
(parse_opt_set_hwaddr): New prototype.
* ifconfig/system/linux.c (system_help): Add parsed option
`ether|hwaddr|lladdr MACADDR'.
(system_parse_opt_rest): New enum value EXPECT_HWADDR. Insert
this into the parser, triggering on all the keywords `ether',
`hwaddr', and `lladdr' for best portability.
2015-07-21 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Implement a hardware list for BSD systems.
Patterned on the hardware recognition already in use
by GNU/Linux, use a similar mechanism for all of BSD.
* ifconfig/system/bsd.c (print_hwaddr_ether): New function.
(ift_symbols): New variable.
(ift_findvalue): New function.
(system_fh_hwaddr_query, system_fh_hwaddr)
(system_fh_hwtype_query, system_fh_hwtype): Adjust mechanisms
to use the table `ift_symbols' via ift_findvalue().
ifconfig: Report tunnels in two more formats.
* ifconfig/options.c (formats) <gnu-one-entry format>:
Add two entries for the endpoints of tunnels.
<osf format>: Add a line to display tunnels.
ifconfig: Add a missing interface flag.
* ifconfig/flags.c [IFF_CANTCONFIG] (if_flags): Add the
extended interface flag `CANTCONFIG'.
2015-07-20 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: More info on tunnel interfaces.
* ifconfig/options.c (formats) <net-tools format>: Add
destination address for point-to-point interfaces. It is
present in some other formats.
<unix format>: Display tunnel addresses for p-t-p interfaces.
<osf format>: Add destination address for p-t-p interfaces
and hardware type and hardware address for any device.
* ifconfig/system/bsd.c (system_fh_brdaddr_query): Check
that IFF_BROADCAST is set and access the relevant member
`fp->ifa_broadaddr'.
(system_fh_brdaddr): Check for set IFF_BROADCAST.
(system_fh_tunnel_query, system_fh_tundst, system_fh_tunsrc):
New functions.
* ifconfig/system/bsd.h (SYSTEM_FORMAT_HANDLER): Add the
keys `tunnel?', `tundst', and `tunsrc'.
(system_fh_tunnel_query, system_fh_tundst, system_fh_tunsrc):
New prototypes.
2015-07-18 Mats Erik Andersson <gnu@gisladisker.se>
rcp: Integer overflow.
During transmission of large files, size exceeding 2GB,
a long integer variable overflows. Issue reported and
identified by Wenlin Kang in
http://lists.gnu.org/archive/html/bug-inetutils/2015-07/msg00004.html
* src/rcp.c (sink): Change SIZE to have type `off_t'.
2015-07-18 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Improve the support for GNU/Hurd.
Add system specific abilities, including parsing of command
line and hardware addresses.
* ifconfig/system.h [__GNU__]: Include "system/hurd.h".
* ifconfig/system.c [__GNU__]: Include "system/hurd.c".
* ifconfig/system/Makefile.am (noinst_HEADERS): Add the
files `hurd.h' and `hurd.c'.
* ifconfig/system/hurd.h, ifconfig/system/hurd.c: New files.
* ifconfig/system/generic.c: Include <unused-parameter.h>.
(system_parse_opt, system_parse_opt_rest, system_configure):
Apply _GL_UNUSED_PARAMETER to all arguments, as these functions
are placeholders and no-ops.
2015-07-17 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Sporadically appearing regression.
Device flags are sometimes calculated before their
query using SIOCGIFFLAGS. First observed on GNU/Hurd.
* ifconfig/printif.c (fh_brdaddr_query, fh_dstaddr_query):
Execute ioctl(SIOCGIFFLAGS) before calculating UFLAGS.
2015-05-27 Alfred M. Szmidt <ams@gnu.org>
* Makefile.am (ACLOCAL_AMFLAGS): New variable.
2015-06-06 Guillem Jover <guillem@hadrons.org>
* ftp/cmds.c (setpeer): Misspelled message.
2015-05-22 Guillem Jover <guillem@hadrons.org>
libls: Alignment issue on sparc systems.
The test suite executed by Debian's build daemon
uncovered a failure on sparc due to incomplete
alignment on word boundaries.
* libls/fts.c (ALIGNBYTES, ALIGN): New macros.
(fts_alloc): Add ALIGNBYTES to the size being allocated
to P, a structure FTSENT. Then compose the assignment of
`P->fts_statp' with macro ALIGN to force correct alignment
for the pointer to `struct stat'.
2015-05-19 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Fix BSD-specific interface access.
Recently FreeBSD abandoned support for ioctl calls
with SIOCGIFNETMASK and SIOCGIFBRDADDR. Instead the
use of `struct ifaddrs' is the only mechanism. This
had already been put to use in other cases, and is
portably available in all BSD flavours.
* ifconfig/system/bsd.c (system_fh_brdaddr_query)
(system_fh_brdaddr, system_fh_netmask_query, system_fh_netmask):
New functions.
* ifconfig/system/bsd.h (SYSTEM_FORMAT_HANDLER): Add the new
functions to this list, thus replacing the default handlers.
Also add their prototypes.
2015-05-18 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Accept named, non-numerical ports.
* ftp/cmds.c (setpeer): Test whether port string looks
numerical. Perform a look-up in the contrary case.
2015-05-17 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Regression during interface selection.
Without arguments, ifconfig is expected to print status
of all interfaces that are in state `UP'. The mechanism
to detect this state was corrupted when 32-bit flags were
implemented. The issue was reported by Juergen Daubert in
http://lists.gnu.org/archive/html/bug-inetutils/2015-05/msg00002.html
* ifconfig/printif.c (fh_ifdisplay_query): Logically invert
every use of N.
[SIOCGIFFLAGS] (fh_ifdisplay_query): Calculate UFLAGS after
executing `ioctl(SIOCGIFFLAGS)', since only then is the value
of `form->ifr->ifr_flags' valid. This side effect of ioctl()
was not taken into account in previously committed code with
32-bit flags.
2015-05-13 Guillem Jover <guillem@hadrons.org>
ping, ping6: Always use line buffered output.
When stdout is redirected, libc will change the stream to
be fully buffered. Suppress this, gaining the standard
behaviour of other implementations. Issue was first reported
as a wishlist bug of Debian: https://bugs.debian.org/782727.
* ping/ping.c (main): Request line buffering on stdout, adding
a call to setvbuf().
* ping/ping6.c (main): Likewise.
2015-05-12 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (gnulib_modules): Add announce-gen.
2015-05-02 Mats Erik Andersson <gnu@gisladisker.se>
* tests/inetd.sh (PASSWD, PWDDB, PROTOCOLS): New variables.
Check for system files required by `inetd'. Skip test when
not found, which can happen in incomplete chroots.
2015-04-17 Mats Erik Andersson <gnu@gisladisker.se>
* ftpd/conf.c, ftpd/ftpd.c, ifconfig/system/bsd.c,
ifconfig/system/linux.c, libtelnet/encrypt.c: Remove
duplicate semicolon.
2015-04-16 Mats Erik Andersson <gnu@gisladisker.se>
* cfg.mk (git-version-gen-tag-sed-script): New variable using
the same sed script as found in `configure.ac'. It is needed
to get a more reliable target `dist'.
* tests/.gitignore: Add some generated test products.
2015-04-15 Mats Erik Andersson <gnu@gisladisker.se>
* bootstrap: Updated from gnulib.
* doc/.gitignore: Add `/gendocs_template_min'. The file
is added during bootstrap.
2015-04-09 Mats Erik Andersson <gnu@gisladisker.se>
Incomplete test of syslogd.
Whenever message passing via local socket is disabled,
the wrapping test caused a false negative. Fix this by
letting it fall back to an INET socket.
* tests/syslogd.sh: Include the `wrapping message' whenever
either of $do_unix_socket or $do_inet_socket is true. Fix the
counter COUNT_WRAP to be set under the same prerequisite only.
2015-04-08 Mats Erik Andersson <gnu@gisladisker.se>
syslogd: Overlapping string locations.
Configuration lines with leading white space are normalized
by copying a string to an overlapping location. Issue found
by Alex Kost and reported to us in
http://lists.gnu.org/archive/html/bug-inetutils/2015-04/msg00001.html
* src/syslogd.c (load_conffile): Declare P in smallest
possible code block. Use `memmove' instead of `strcpy'
to neutralize the effects of overlapping locations.
* tests/syslogd.sh: Add a new test case, checking resistance
to leading white space and wrapped lines in configuration file.
(OUT_NOTICE, COUNT_NOTICE, wrapped, COUNT_WRAP): New variables.
2015-04-02 Mats Erik Andersson <gnu@gisladisker.se>
Testing of inetd service.
* tests/inetd.sh: In verbose mode, report the value of USER.
Include a printout of the configuration file when the SIGHUP
test loop fails.
2015-03-31 Alfred M. Szmidt <ams@gnu.org>
* doc/inetutils.texi: Re-order chapters.
2015-03-30 Mats Erik Andersson <gnu@gisladisker.se>
Texinfo: Slight reordering of nodes.
This makes all chapters consistent in themselves.
* doc/inetutils.texi: Put direntry `dnsdomainname' first in
dircategory `Individual utilities', for alphabetic reasons.
Interchange nodes `dnsdomainname invocation' and `hostname
invocation' in response to that change.
(ftp invocation): In sub-menu, move `The .netrc file' to be
last entry in the list. Move the node `Ftp environment' from
last to third relative position in this chapter. Position
three comes from the ordering in the established sub-menu.
2015-03-30 Mats Erik Andersson <gnu@gisladisker.se>
Texinfo: Improve typeset output.
* doc/inetutils.texi: Replace all @smallexample by @example.
(inetd invocation): Make the multi-line example two spaces
narrower in order to fit into a rendered PDF page.
(tftpd invocation): Rephrase a sentence for easier line breaks,
thus avoiding text extending into the right margin.
2015-03-21 Mats Erik Andersson <gnu@gisladisker.se>
Portability of time format string.
* telnetd/utility.c (_var_short_name) <case 'd'>: Change `%P'
to `%p' in format string for strftime(), as the former is a
GNU exclusive extension of no portability at all. Another
conversion specifier `%l' is not POSIX conforming, but seems
to be generally supported, so it is left untouched.
2015-03-20 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Texinfo documentation.
* doc/inetutils.texi (telnetd invocation): Add a section
on the use of replacement tokens in the execution string.
2015-03-19 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Enable autologin in legacy mode.
Without Kerberos authentication the autologin code was not
determining what user name to hand over to the login service.
Adding the user name, when applicable, resolves the issue.
Bug was reported by Kuaikuai Wu in
http://lists.gnu.org/archive/html/bug-inetutils/2014-12/msg00010.html
* telnetd/telnetd.c [SOLARIS10] (login_invocation):
Add device path "-d %L" and user name "%U", the latter
in the form of an else clause to the selector "%?u".
[!SOLARIS10] (login_invocation): Likewise for "%U" only.
* telnetd/utility.c (getterminaltype): Change the paramater
name `user_name' to `uname', as the former shadows a precious
and global variable name.
(_var_short_name) <case 'L'>: New case, returning full path
to the PTY device assigned to client.
<case 'U'>: New case, returning a copy of the environment
variable USER, or an empty string.
2015-03-16 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Honour host aliases.
While establishing the connection, do not replace the desired
peer name with its canonical name. This prevents correct use
of the netrc file. Bug reported by John Sullivan in
http://lists.gnu.org/archive/html/bug-inetutils/2015-02/msg00000.html
* ftp/cmds.c (setpeer): Do not assign value from hookup()
to HOST. Instead, only test if it is non-null.
2015-03-15 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Suppress PTY packet data.
The server is receiving PTY input in packet mode, but is not
properly discarding PIOCPKT_DATA before handing over input
to the network socket. Do this correctly.
* telnetd/telnetd.c (telnet_run) <input from pty>: Break the
loop also if pty_read() returns zero. Add a final call to
pty_get_char() before ending FD_ISSET(pty, &ibits). This call
was mistakenly located within the subcase where TIOCPKT_NOSTOP
or TIOCPKT_DOSTOP is handled.
2015-03-14 Mats Erik Andersson <gnu@gisladisker.se>
Complaints during IPv6-less testing.
Unused IPv6 directives cause logged complaints by inetd.
* tests/ftp-localhost.sh: Add a tcp6 listener to `inetd.conf'
only if TEST_IPV6 is not `no'.
* tests/tftp.sh: Likewise with udp6.
2015-03-14 Mats Erik Andersson <gnu@gisladisker.se>
Build failures while IPv6 is disabled.
* configure.ac (ENABLE_hstrerror): New conditional variable.
* src/rlogind.c [IPV6] (checkhost): Move right parenthesis
outside of precompiler conditional.
* telnetd/Makefile.am [ENABLE_hstrerror]: Add $(LIBRESOLV)
to LDADD. With IPv6 disabled, the code in `telnetd/telnetd.c'
uses hstrerror(), so Solaris must link against libresolv.
2015-02-28 Mats Erik Andersson <gnu@gisladisker.se>
Fully configure testing without IPv6.
Pick up testing addresses for IP and IPv6 at configuration time.
Now a BSD jail can successfully test all network services.
* configure.ac (TARGET, TARGET6): New precious variables. Set their
default values.
* tests/Makefile.am (tools_subst): Add TARGET and TARGET to substi-
tution rules.
* tests/tools.sh.in (TARGET, TARGET6): New variables.
* tests/ifconfig.sh (TARGET, target): New variables.
(find_lo_addr): Replace hardcoded `127.0.0.1' with `$target'.
* tests/ping-localhost.sh <ping6>: Add a test `$TEST_IPV6 != no'.
* tests/syslogd.sh (TARGET6): Remove surrounding brackets.
<$TEST_IPV6 != no>: Enclose `$TARGET6' in brackets for `$LOGGER'.
2015-02-27 Mats Erik Andersson <gnu@gisladisker.se>
Allow testing without IPv6.
Configuration with `--disable-ipv6' as well as individual
tests with `TEST_IPV6=no' need to avoid mandatory IPv6.
* configure.ac (TEST_IPV6): New precious variable.
* tests/Makefile.am (tools_subst): Add substitution of TEST_IPV6.
* tests/tools.sh.in (TEST_IPV6): New variable.
* tests/ftp-localhost.sh: Check `$TEST_IPV6 != no' before adding
any test cases with IPv6 addressing.
* tests/syslogd.sh: Likewise.
* tests/telnet-localhost.sh: Likewise.
(TARGET46): New variable, defaulting to `::ffff:$TARGET'.
* tests/tftp.sh (TARGET, TARGET6): New variables.
<$ADDRESSES = sense>: Compute this case before building a default
address list. Add switch `-a' when executing $IFCONFIG.
(ADDRESSES): Start with TARGET, add TARGET6 if `$TEST_IPV6 != no'.
2015-01-31 Mats Erik Andersson <gnu@gisladisker.se>
telnet: Printing of uninitialized characters.
When preparing submodes of linemode for presentation, in case
no submode is set, the string to be printed might make use of
uninitialized string content, in an otherwise sane call to
fprintf(). This is in error already in the legacy code.
* telnet/utilities.c (printsub) <LM_MODE>: Test TBUF[0]
to calculate replacement string, since TBUF[1] is not
guaranteed to be initialized by the preceding sprintf().
2015-01-30 Mats Erik Andersson <gnu@gisladisker.se>
* bootstrap: Updated from gnulib.
2015-01-20 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Incomplete processing of PTY data.
The reception of SIGCHLD can make the transfer of data from
the PTY stream to the client side's network stream incomplete.
The problem was raised as Debian Bug #607415, but is applicable
also here, due to a common origin. A setting with the option
`-E /some/script' displays this error irregularly.
* telnetd/telnetd.c (pending_sigchld): New variable.
(telnetd_setup): Call setsig() when assigning SIGCHLD. Set the
action to chld_is_done().
(telnetd_run) <I/O-loop>: If pending_sigchld is set, flush the
network output buffer and exit the loop with cleanup(SIGCHLD).
(chld_is_done): New function, used as signal action.
* telnetd/utility.c (pty_read) <DEBUG>: Set consistent text
prefixes in output.
(printdata): Cast char array value as `unsigned char' to avoid
an implicit cast as integer, implied in the format string `%02x'.
2015-01-17 Mats Erik Andersson <gnu@gisladisker.se>
* telnetd/state.c (dooption) : Remove outdated and misnamed
ifdef on TELOPT_ENVIRON.
(suboption): Remove outdated ifdef on TELOPT_NEW_ENVIRON.
(send_status) <DEBUG>: Pass only the suboption payload into
printsub(), by stepping over IAC+SB in the string buffer.
* telnetd/utility.c (printsub) <default>: When an unexpected
mode must be reported numerically, print the correct byte in
pointer[0], not some other pseudo-random value.
2014-11-11 Mats Erik Andersson <gnu@gisladisker.se>
* bootstrap: Updated from gnulib.
2014-11-11 Mats Erik Andersson <gnu@gisladisker.se>
ping: Fix testing when ping6 is not built.
Reported by jb999 in bug-inetutils.
* tests/ping-localhost.sh: Bracket test clauses to
conform with intuitive logic and precedence rules.
2014-10-17 Mats Erik Andersson <gnu@gisladisker.se>
syslogd, logger: Incomplete range checking.
* src/logger.c (IU_MAX_FAC): Delete macro.
(decode): Use LOG_FACMASK in range checking. The use of
numeric facilities was broken for the most part.
* src/logprio.h [!LOG_MAKEPRI] (LOG_MAKEPRI): Change to
a portable and correct definition.
[!INTERNAL_MARK] (INTERNAL_MARK): Adjust to the corrected
behaviour of LOG_MAKEPRI.
* src/syslogd.c [!LOG_MAKEPRI] (LOG_MAKEPRI): Change to
a portable and correct definition.
(printline): Reset `pri' to DEFUPRI whenever the facility
is non-existent. This protects against CVE-2014-3684.
Make a three bit shift of LOG_KERN for code consistency.
(cfline): After decoding priority, check also upper limit.
Likewise for facility, and update `facilities_seen' only
after a completed range error check.
* tests/syslogd.sh (OUT_UNOTICE, OUT_LOCAL0): New variables.
(COUNT4, COUNT5, COUNT4_notice, COUNT4_illegal, COUNT5_user)
(COUNT5_local): Likewise.
Add three new configuration stanzas to initial setup, all with
invalid information. In the second setup, capture facility
`info' exactly, and make a new `notice' also exact. Add a
further file in the conf-directory, specifying capture of
`local0.=notice'. Add five new test messages using Unix
socket, intending to detect more accurately the handling of
priorities, numerical as well as illegal or default values.
2014-08-29 Mats Erik Andersson <gnu@gisladisker.se>
* tests/libls.sh: Add a dummy execution of $LS in order
to avoid a false negative caused by code coverage runs.
2014-08-13 Mats Erik Andersson <gnu@gisladisker.se>
* tests/libls.sh <VERBOSE>: Execute `set -x'.
(REPLY_a1, REPLY_A1, diff): Changed. Update the check
based on these, thus avoiding `sed -n '$='' which could
not be trusted on NixOS' build daemon.
2014-08-11 Mats Erik Andersson <gnu@gisladisker.se>
* tests/libls.sh: Improve failure diagnostic when testing
the switches `-a' and `-A'. The build daemon at NixOS had
an issue during this subcase.
2014-08-03 Mats Erik Andersson <gnu@gisladisker.se>
Support libshishi with Sun Studio.
* configure.ac <shishi>: Call AC_SEARCH_LIBS, not AC_CHECK_LIB,
when looking for libshishi. This allows the C-compiler from
Sun Studio 12.1 to correctly detect and build shishi support.
2014-08-02 Mats Erik Andersson <gnu@gisladisker.se>
More tests for better code coverage.
* tests/Makefile.am [ENABLE_libls] (dist_check_SCRIPTS):
Add `libls.sh'.
[ENABLE_ftp] (dist_check_SCRIPTS): Add `ftp-parser.sh'.
* tests/ftp-parser.sh: New script.
* tests/ifconfig.sh: Add more test cases.
* tests/libls.sh: New script.
* ifconfig/options.c (formats): Add format `?' as a synonym
for format `help'.
2014-08-01 Mats Erik Andersson <gnu@gisladisker.se>
ping, ping6: Repair pattern production.
A pattern stated on the command line was never made
productive, instead only nulls were inserted to the
correct length.
* ping/ping.c, ping/ping6.c (pattern_len): Set to MAXPATTERN.
(parse_opt): Size of PATTERN is now MAXPATTERN.
* ping/ping_common.h (MAXPATTERN): New macro.
* ping/ping_common.c (init_data_buffer): Increment I before
checking for end of pattern. This avoids an insertion of
the closing null character.
(decode_pattern): Remove _GL_UNUSED_PARAMETER on `pattern_data'.
Insert scanned data C into pattern buffer.
2014-08-01 Mats Erik Andersson <gnu@gisladisker.se>
* ftp/ftp.c (ptransfer): Change BS to be of type float.
Improve readability by having speed estimates printed
as `Mbytes/s', `kbytes/s', or `bytes/s' as suitable.
2014-07-30 Alfred M. Szmidt <ams@gnu.org>
* telnetd/utility.c (nextitem, netclear, printoption, printsub)
(printdata): Remove register keyword usage.
(printsub): Don't add integer to string to try and skip quote.
2014-07-28 Giuseppe Scrivano <gscrivan@redhat.com>
* tests/ls.c: Include <config.h> not "config.h".
2014-07-26 Mats Erik Andersson <gnu@gisladisker.se>
whois: Cooperate with misbehaving servers.
Some servers, like "whois.ripe.net", "whois.arin.net",
and "whois.eu", partially abort communication when the
socket is closed for writing. Report by Alexander Zubkov:
<http://lists.gnu.org/archive/html/bug-inetutils/2014-07/msg00003.html>.
* whois/whois.c (gwhois_argp_options): Increase GRP
and insert a separating subheader.
(do_query): Remove call to shutdown(). The alternate
and much similar lookup call query_crsnic() did not
half-close the socket for writing.
* doc/inetutils.texi (whois invocation): Add a section
about environment variables accessed by `whois'.
2014-07-22 Mats Erik Andersson <gnu@gisladisker.se>
libls: Inconsistent options.
The options '-l', '-m' and '-n' were not overruling each
other in the expected manner. Build `ls' from `libls' for
testing purposes, but do not install it.
* configure.ac (enable_libls): Set to `no' when testing
against `ac_cv_func_fchdir' fails. Publish with AC_SUBST.
[ENABLE_libls]: New variable.
* summary.sh.in (libls_BUILD, libls_PROPS, enable_libls):
Detect these; report whether `libls' is being built.
* libls/ls.c (ls_main) <'l' || 'm' || 'n'>: Reset missing
flags correctly, in order that '-l', '-m' and '-n' overrule
each other on the command line.
* tests/Makefile.am [ENABLE_libls] (noinst_PROGRAMS): Add `ls'.
[ENABLE_libls] (ls_LDADD): New variable.
* tests/ls.c: New file.
2014-07-17 Mats Erik Andersson <gnu@gisladisker.se>
Portability of canonical host name.
In response to a numerical address, getaddrinfo()
does not populate `ai_canonname' by necessity.
* ftp/ftp.c (hookup): Copy `RES->ai_canonname' only
if set. Copy from RHOST otherwise.
* ping/libping.c (ping_set_dest): Likewise; with P.
* ping/ping6.c (ping_set_dest): Likewise, with RHOST.
* src/traceroute.c (main): Likewise.
2014-07-16 Mats Erik Andersson <gnu@gisladisker.se>
Handle access timing in fractions of a second.
* configure.ac (HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC)
(HAVE_STRUCT_STAT_ST_ATIM_TV_USEC, HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC)
(HAVE_STRUCT_STAT_ST_CTIM_TV_USEC, HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC)
(HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC): Check for existing time field
for sub-second timing in `struct stat'.
(HAVE_STRUCT_STAT_ST_BLKSTAT): Make the macro functional!
* libls/cmp.c (modcmp) [HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC]
[HAVE_STRUCT_STAT_ST_MTIM_TV_USEC]: Compare in sub-seconds.
(acccmp) [HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC]
[HAVE_STRUCT_STAT_ST_ATIM_TV_USEC]: Likewise.
(statmod) [HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC]
[HAVE_STRUCT_STAT_CT_MTIM_TV_USEC]: Likewise
(revmodcmp, revaccmp, revstatmod, revsizecmp): Replace code
by a simple sign change of modcmp(), acccmp(), etcetera.
* src/rcp.c [HAVE_STAT_ST_MTIMESPEC || HAVE_STAT_ST_MTIME_USEC]
(write_stat_time): Remove unused and obsolete code.
[HAVE_STRUCT_STAT_ST_ATIM_NSEC || HAVE_STRUCT_STAT_ST_ATIM_USEC]
[HAVE_STRUCT_STAT_ST_MTIM_NSEC || HAVE_STRUCT_STAT_ST_MTIM_USEC]
(write_stat_time): Code portably for sub-second accuracy.
2014-07-14 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Hash command semantic.
Toggle hash state when argument is not set, only then.
* ftp/cmds.c (sethash): Activate marker when a numeric
argument is found; toggle when no argument is present.
A non-numeric argument leads to status reporting only.
2014-06-05 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Alternate selection of .netrc file.
* ftp/ftp_var.h (netrc): New variable.
* ftp/main.c (argp_options) <-N/--netrc>: New option.
(parse_opt) <'N'>: New case.
(main): Initialize `netrc'.
* ftp/ruserpass.c (remote_userpass): If `netrc' is NULL,
check NETRC in environment. Whenever `netrc' has content,
us it instead of `~/.netrc'. Once CFILE is valid, make
sure that the file location is a regular file, otherwise
returning to the interpreter.
* tests/ftp-localhost.sh: Two new test cases, checking the
functionality of NETRC in environment, and the option `-N'.
2014-05-16 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Size multipliers for hash increments.
* ftp/cmds.c (sethash): New variable P. Detect and
apply multipliers when setting the increment size for
hash markers, i.e., allow commands like "hash 32m".
2014-04-29 Mats Erik Andersson <gnu@gisladisker.se>
hostname: Degenerate cases.
Better replies when name resolution fails.
* configure.ac: Remove check for gethostname in libresolv.
If hstrerror is missing, check for it in libresolv.
(LIBRESOLV): New variable published using AC_SUBST.
* src/Makefile.am (hostname_LDADD): New variable.
* src/hostname.c (get_name): Call puts() only if NAME
carries some content. Will, most importantly, reply
with an empty string, not an empty line, when no aliases
are found.
(get_aliases): Return an empty string when the host's
name cannot be resolved.
(get_fqdn): Fall back to the system reported hostname
when name resolution fails.
[HAVE_HSTRERROR] (get_ip_addresses): Exit with an error
when name resolution fails.
* tests/hostname.sh: Check availability of mktemp.
(posttest): New function, used as trap.
<root execution>: New test case with switch '-F'.
2014-04-26 Mats Erik Andersson <gnu@gisladisker.se>
libinetutils: Skeletal preparations for Heimdal.
* configure.ac <krb5>: Disable rlogind and rshd.
(KERBEROS_VERSION): Publish it using AC_SUBST.
* libinetutils/kerberos5.c: New file, mostly copied
in from `shishi.c' as a guide.
* libinetutils/Makefile.am (libinetutils_a_SOURCES):
Remove `des_rw.c', and add `kerberos5.c'.
* libinetutils/kcmd.c: Remove support for KRB4, replacing
all macros KERBEROS by KRB5.
[KRB5]: Include <krb5.h> and "kerberos5_def.h".
[KRB5] (kcmd): Update declarations, and make small,
obvious adaptions to Kerberos5.
(kcmd): Refactor steps common to SHISHI and KRB5, such as
protocol exchange and address resolution. They differ at
the end, calling shishi_auth() or kerberos_auth().
2014-04-25 Mats Erik Andersson <gnu@gisladisker.se>
Begin support for Heimdal's Kerberos.
Very incomplete code for `rsh', but a needed start.
* libinetutils/kerberos5_def.h: New file.
* libinetutils/krcmd.c: Remove support for KRB4, replacing
most macros KERBEROS by KRB5.
[KRB5]: Include <krb5.h> and "kerberos5_def.h".
[KRB5] (kcmd, krcmd, krcmd_mutual): Update declarations,
and make small, obvious adaptions to Kerberos5.
[KRB5] (krcmd_mutual): Update value of AUTHOPTS.
* libinetutils/Makefile.am (noinst_HEADERS):
Add `kerberos5_def.h'.
* src/rsh.c: Replace macro KERBEROS by KRB5, temporarily
making an exception in some code related to encryption.
[KRB5]: Include <krb5.h> and "kerberos5_def.h".
[KRB5] (ctx, keyblock, server): New variables.
[KRB5 && ENCRYPTION] (parse_opt) <case 'x'>: Remove
call to des_set_key().
[KRB5 || SHISHI] (main): Refactor code for port lookup
and command string generation, since Kerberos5 and Shishi
have common traits.
[KRB5] (main): Adapt to new signatures of krcmd() and
krcmd_mutual(). Initialize `ctx', and reimplement realm
lookup using Kerberos5 API.
2014-04-25 Mats Erik Andersson <gnu@gisladisker.se>
Silence warnings with libshishi.
* libinetutils/kcmd.c [KERBEROS || SHISHI] (kcmd):
Declare realm argument as `const char *'.
* libinetutils/krcmd.c [KERBEROS || SHISHI]
(kcmd, krcmd, krcmd_mutual): Likewise.
* libinetutils/shishi.c [SHISHI] (shishi_auth): Likewise.
* libinetutils/shishi_def.h [SHISHI] (shishi_auth, krcmd)
(krcmd_mutual): Likewise.
* src/rcp.c [KERBEROS || SHISHI] (dest_realm): Likewise.
* src/rlogin.c [KERBEROS || SHISHI] (dest_realm): Likewise.
* src/rsh.c [KERBEROS || SHISHI] (dest_realm): Likewise.
* src/rlogind.c (rlogind_auth): Initialize HOSTNAME.
2014-03-28 Mats Erik Andersson <gnu@gisladisker.se>
syslogd: Local time option.
* src/syslogd.c (set_local_time): New variable.
(option enum): Remove OPT_PIDFILE.
(argp_options) <pidfile>: New alias 'P'.
<-T/--local-time>: New option.
(parse_opt) <case 'P'>: Replaces OPT_PIDFILE.
<case 'T'>: New case.
(logmsg): If `set_local_time' is set, use NOW to generate
a time stamp, not the initial portion of the message.
2014-03-23 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Parse address family.
Allow for address family argument on supported systems.
* ifconfig/system/bsd.c (system_parse_opt_rest): New enum
values EXPECT_COMMAND and EXPECT_AF. Use the first to detect
`create' and `destroy', but claiming lack of support. Accept
`inet' as family, but reject `inet6'. Rewrite return status.
* ifconfig/system/linux.c (system_parse_opt_rest): Rename
enum value EXPECT_INET to EXPECT_AF. Detect family `inet6',
but reject it.
* ifconfig/system/solaris.c (system_parse_opt_rest): New enum
value EXPECT_AF. Accept `inet' as address family argument,
but reject `inet6'. Rewrite return status.
2014-03-20 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Command line parsing.
Implement flag parsing for BSD and Solaris.
Accept only changeable flags on GNU/Linux.
* ifconfig/system/linux.c (system_parse_opt_rest):
Accept only masks which correspond to changeable flags,
using IU_IFF_CANTCHANGE.
* ifconfig/system/bsd.c, ifconfig/system/solaris.c
(system_parse_opt_rest): New variables MASK and REV.
Check if the command line argument can be interpreted
as a changeable flag argument.
2014-03-15 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Changeable flags on GNU/Linux.
* ifconfig/flags.h (IU_IFF_CANTCHANGE): Remove IFF_POINTOPOINT,
IFF_ALLMULTI, IFF_BROADCAST, IFF_MULTICAST, and IFF_PROMISC,
since they are changeable on GNU/Linux, and they are included
natively in IFF_CANTCHANGE on other systems.
2014-03-13 Mats Erik Andersson <gnu@gisladisker.se>
logger: Source address resolution.
* src/logger.c (open_socket) [HAVE_DECL_GETADDRINFO]
<source is set>: Delete resolver hint for numeric address.
2014-03-10 Mats Erik Andersson <gnu@gisladisker.se>
hostname: Sanity checks in corner cases.
* src/hostname.c (get_name): Use reply from get_fqdn()
only if it gave a host name, not the artificial "(none)".
(set_name): Reject an empty host name.
(parse_file): Initialize NAME. Improve error message
when getline() claims empty input. Break out of loop
only if sscanf() produced a printable string.
2014-02-22 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Allow flags richer than 16 bits.
Systems like GNU/kFreeBSD and FreeBSD use two `short int'
to represent interface flags. Adapt to this fact.
* ifconfig/changeif.c (set_flags): Apply mask 0xffff to flags.
[ifr_flagshigh]: Calculate flag changes also on ifr_flagshigh.
* ifconfig/flags.c [IFF_PPROMISC] (if_flags): Add user land
setable flag "PROMISC".
[IFF_MONITOR] (if_flags): Add flag "MONITOR".
[IFF_STATICARP] (if_flags): Add flag "STATICARP".
[IFF_STATICARP] (flag_char_tab): Add short flag 's'.
[IFF_MONITOR] (flag_char_tab): Add short flag 'm'.
* ifconfig/options.c (formats) <unix>: Print flags numerically
using format string "%x".
* ifconfig/printif.c (put_flags): Change signature. New type
of F is `unsigned int'. New variable UFLAGS. Work with UFLAGS,
not `flags'.
(put_flags_short): New signature.
[SIOCGIFFLAGS] (fh_ifdisplay_query, fh_brdaddr_query)
(fh_dstaddr_query, fh_flags): New variable UFLAGS, replacing
`form->ifr->ifr_flags'.
* ifconfig/printif.h (put_flags): Change prototype.
2014-02-15 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: No listing of unchangeable flags.
* ifconfig/flags.h [!IFF_CANTCHANGE]: Define it as naught.
(IU_IFF_CANTCHANGE): New macro.
* ifconfig/flags.c (if_list_flags): Do not list flags that
are known to give constant properties. New macro FLAGS_COMMENT.
Add its contents to the end of the requested flags listing.
Skip a named flag if it matches IU_IFF_CANTCHANGE. Also skip
flags named like 'link2/altphys', since their components
do appear in the listing.
Portability issues in test script.
* tests/ifconfig_modes.sh (MTU): Set to 1324 initially,
to get above 1280 needed for IPv6 compatibility.
The switch '-o' of uname is not portable.
2014-02-15 Mats Erik Andersson <gnu@gisladisker.se>
* tests/ifconfig_modes.sh: Add test case to explain
failures to automatically bring the interface up at
an address change. GNU/Linux is affected by this.
2014-02-14 Mats Erik Andersson <gnu@gisladisker.se>
* ifconfig/flags.c (if_list_flags): Increment counter
only in the for-statement; update the insertion of list
delimiters. Each second flag name was falsely scrubbed.
2014-02-14 Mats Erik Andersson <gnu@gisladisker.se>
Script for testing of ifconfig's modes.
Will document all tested features.
* tests/ifconfig_modes.sh: New file. Intentionally
without execution bit, and not for automatic testing.
* tests/Makefile.am (EXTRA_DIST): Add `ifconfig_modes.sh`.
2014-02-12 Mats Erik Andersson <gnu@gisladisker.se>
* ifconfig/options.c (formats): Add format `check'
as a synonym for `check-existence'.
2014-02-09 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Detect one-time passwords.
RFC 2228 reserves response code 336 for replies
used with challange-response authentication.
* ftp/cmds.c (user): React to response code 336 within
FTP command `USER', print its message, and possibly
discard an already supplied password.
* ftp/ftp.c (login): Likewise.
2014-02-09 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Parse commands of RFC 2228.
Tokens are implemented, but no actions.
* ftpd/ftpcmd.y (ADAT, AUTH, CCC, CONF, ENC, MIC, PBSZ)
(PROT): New tokens.
(cmdtab): New entries `ADAT', `AUTH', `CCC', `CONF', `ENC',
`MIC', `PBSZ', and `PROT'. All are marked as unimplemented.
2013-12-23 Alfred M. Szmidt <ams@gnu.org>
* doc/inetutils.texi (rsh invocation): Use @item for first entry
in @table.
2013-12-19 Mats Erik Andersson <gnu@gisladisker.se>
* bootstrap: Updated from gnulib.
2013-12-13 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Follow RFC 2577 by default.
Prevent user name guessing as standard, but offer
an option to keep the more informational responses.
* ftpd/extern.h (logged_in): Remove unused variable.
(rfc2577): New variable.
(struct credentials): New component DELAYED_REJECT.
* ftpd/ftpd.c (rfc2577): New variable.
(OPT_NONRFC2577): New enum value.
(options): New option `--non-rfc2577'.
(parse_opt) <case OPT_NONRFC2577>: Reset `rfc2577'.
(user): New variable RET. After auth_user(), display
messages in the old manner only if `rfc2577' is not set,
or if guest access is being requested. Otherwise, update
`cred.delayed_reject' for later access.
(end_login): Reset `pcred->delayed_reject'.
(pass): On returning from auth_pass(), check also
`cred.delayed_reject' to minimize the amount of user
information returned to the client.
ftpd: The standard protocol in RFC 959 demands
that a client be informed before closing down.
* ftpd/ftpd.c (pass) <repeated login failures>:
Send a reply message 421 before closing connection.
2013-12-10 Mats Erik Andersson <gnu@gisladisker.se>
inetd: Logging of resolution and binding errors.
* src/inetd.c (setup): Alternate syslog format,
and debug message, when a service node has been set.
(expand_enter): Likewise, adding debug message.
ftp: Trivial misspelling. Reported by Joe Steffee in
<http://lists.gnu.org/archive/html/bug-inetutils/2013-11/msg00000.html>.
* ftp/ftp.c (hookup): Spell `response' correctly.
2013-11-28 Mats Erik Andersson <gnu@gisladisker.se>
rlogind, telnet, telnetd: Modify exit status.
* src/rlogind.c (rlogind_mainloop): Delay cleanup()
call until libshishi has torn down its structures.
(cleanup): New variable STATUS. If `signo' is SIGCHLD,
call waitpid() to reap the waiting child process and
use its return status for the whole server's status.
Waiting for the child resolves a race condition when
tearing down the pseudo-terminal pair, since the slave
now is gone when the master side is being closed down.
* telnet/commands.c (tn): Use exit status 0 when setjmp()
manages to execute telnet(). Otherwise, keep 1.
(command) [unix || __unix || __unix__]: Enclose the
complete else-block within preprocessor conditionals.
* telnetd/pty.c (cleanup): Let STATUS have full scope
in this function, and use it for exit(). Execute waitpid()
only if `sig' is SIGCHLD, and update STATUS for later use.
On SIGHUP, set STATUS to success, which happens only at
reception of TELOPT_LOGOUT from client.
* telnetd/state.c (dooption) <TELOPT_LOGOUT>: Call cleanup()
with argument SIGHUP, since the client willingly leaves off.
2013-11-24 Mats Erik Andersson <gnu@gisladisker.se>
inetd: Ensure successful daemon mode.
* src/inetd.c (main) <!debug>: Abort with a syslog message,
should daemon() return unsuccessfully.
* libinetutils/daemon.c (waitdaemon): Return with failure,
should chdir("/") fail.
Check all calls to chdir.
* src/rshd.c (doit): Make a syslog error message and abort
execution, should chdir("/") fail.
* src/uucpd.c (doit): Abort with a message to stderr,
should chdir("/") fail.
2013-11-23 Mats Erik Andersson <gnu@gisladisker.se>
Check all returns from fgets.
Handle every failed fgets() with care.
* ftp/cmds.c (user): Set account string to empty when
fgets() fails.
* src/rexec.c (main): Likewise for password string.
* src/tftp.c (get_args): Call makeargv() only on successful
call to fgets(). Otherwise, instantiate a trivial command
list containing command name only.
* telnet/commands.c (setescape): Leave escape character
unchanged when fgets() fails.
(tn) <get host>: Call makeargv() only for successful fgets().
Otherwise, print a message and rely on later usage printout.
(command): Print a line feed at EOF on stream error.
2013-11-15 Mats Erik Andersson <gnu@gisladisker.se>
tftp: Buffer size checking.
Hardened builds need a helping hand in interpreting
a bogus array length.
* src/tftp.c (makerequest): New variables ARGLEN, LEN.
Use them in calculating available space for file name.
[HAVE_STRUCT_TFTPHDR_TH_U]: Calculate CP using an offset
argument. Needed to prevent false negatives from stack
allocation protectors.
2013-11-05 Mats Erik Andersson <gnu@gisladisker.se>
Improve detection of readline.
* am/readline.m4 (gl_FUNC_READLINE): Check for libedit
with AC_LIB_LINKFLAGS_BODY and with AC_CACHE_CHECK.
<readline in libreadline>: Ignore <editline/readline.h>.
<readline in libedit>: Prefer <editline/readline.h>.
Define HAVE_READLINE if readline() was located in one of
the libraries, and if its use had not been disabled.
Define HAVE_LIBREADLINE and HAVE_LIBEDIT if it was found
in the corresponding library.
* ftp/Makefile.am (LDADD): Remove $(LIBGLOB), $(LIBTERMCAP).
The latter is handled by LIBREADLINE.
* configure.ac (ftp_PROPS): Do not add $LIBTERMCAP.
2013-10-16 Mats Erik Andersson <gnu@gisladisker.se>
syslogd, talkd: Act on failed read_utmp.
* src/syslogd.c (wallmsg)
[UTMP_NAME_FUNCTION || !HAVE_GETUTXENT]: Check call
to read_utmp() for failure, filing an error massage.
* talkd/process.c (find_user) [!HAVE_GETUTXUSER]:
Likewise, then returning FAILED.
rsh: Symbolic descriptor name.
* src/rsh.d (talk): Use STDOUT_FILENO and STDERR_FILENO
as arguments to write().
2013-10-16 Mats Erik Andersson <gnu@gisladisker.se>
rsh: Kill child process after SIGPIPE.
The default action for SIGPIPE will leave the
child process running. This caused, until now
and including legacy implementations, blocking
of stdin, and to conditionally leave also the
remote server running.
* src/rsh.c (end_of_pipe): New variable.
(sigpipe): New function.
(talk) [HAVE_SIGACTION]: New variable SA.
<parent process>: Assign a signal handler to SIGPIPE.
Add `&& !end_of_pipe' to the loop condition, so that
talk() returns after SIGPIPE. The child process will
then be killed at the end of main().
2013-10-06 Mats Erik Andersson <gnu@gisladisker.se>
rsh: Detach input stream.
The option `-n/--no-input' was incomplete.
* src/rsh.c (main) <try_connect && null_input_option>:
Call shutdown(SHUT_WR) on socket REM.
(talk): Use symbolic macro SHUT_WR in shutdown().
* doc/inetutils.texi (rsh invocation) <option '-n'>:
Give an accurate description, forgetting about stderr.
rshd: Better adaption to BSD.
* src/rshd.c (doit): Use SHUT_RDWR in shutdown().
(doit) [SHISHI] <verify checksum>: Rename local PORT
to PPORT, since is shadows a variable of wider scope.
(doit): Delay the call of setpgid() to also execute
in the child process when PAM is supported.
(doit) [HAVE_SETLOGIN]: Call setsid() and setlogin().
Replace conditional `BSD > 43' with HAVE_SETLOGIN for
better precision.
[!HAVE_SETLOGIN]: Keep old call to setpgid().
2013-10-06 Mats Erik Andersson <gnu@gisladisker.se>
rexec: No echoing of passwords.
* src/rexec.c: Include <termios.h>.
(main) <password is '-'>: Call isatty(). If this
is a terminal, print `Password:' and disable echo
while reading password string.
(do_rexec) <FD_ISSET(STDIN_FD)>: Write input from
client to the outgoing socket SOCK. This restores
the ability to transfer contents to the server.
rexecd: Better adaption to BSD.
* configure.ac: Check for function setlogin.
* src/rexecd.c (doit) [HAVE_SETLOGIN]: Before
setting underpriviledged user, call setlogin().
(doit) <with error port && child process>:
Close PV[1], which is duplicate of stderr.
[HAVE_SETLOGIN]: Call setsid(), not setpgid().
2013-10-03 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac (HAVE_SYSLOG_INTERNAL): Remove
a misplaced character.
* am/libcurses.m4 (IU_LIB_TERMCAP): Rework the
message in AC_MSG_CHECKING() and always call
AC_MSG_RESULT().
2013-10-02 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Capture syntax errors.
Scanner and parser are insufficiently trimmed to
each other, producing duplicate and inconclusive
diagnostic messages.
* ftpd/ftpcmd.y (yylex) <STR1 || ZSTR1 || dostr1>:
Remove a break at the end, continue into ZSTR2.
This allows detection of syntax errors. A test
case is `quote site chmod 0750' by a client.
(yylex): Call yyerror() only if `yynerrs' is zero.
Otherwise both scanner and parser would send error
messages to the client. Specify an explicit message
in this call to yyerror().
(yyerror): Use parameter `s' in reply message, but
keep a default message in case `s' is empty. This
passes on any diagnostic message from the parser.
2013-09-26 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Implement FEAT and OPTS.
Add two commands in accordance with RFC 2389.
* ftpd/ftpcmd.y (cmdtab, sitetab): Change to static.
(extlist): New variable, listing command extensions.
(FEAT, OPTS): New tokens.
(cmd) <FEAT || FEAT STRING || OPTS || OPTS STRING>:
New cases.
(cmdtab): Put commands in the order of RFC 959.
Add FEAT and OPTS.
(sitetab): Use lexicographic order.
2013-09-26 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Abort transfer in ascii mode.
If the local ascii file causes a seek failure,
then tell the server to abort transmission.
* ftp/ftp.c (sendrequest) <restart_point && (STOR || APPE)>:
Change RC to off_t. On seek failure, send ABOR command,
and get the reply.
(recvrequest) <TYPE_A && restart_point>: Reset `errno'.
<label done>: Send ABOR command, get reply. Produce correct
error message if stepping through the local file gave EOF.
ftpd: Error message after seek failure.
The standard RFC 1123 introduced a better error code 554
to be used when a restart command is not successful.
* ftpd/ftpd.c (retrieve) <restart_point && TYPE_A>: Reply
with error code 554 if EOF was reach while seeking in file.
<restart_point && !TYPE_I>: Likewise when lseek() gave EINVAL.
(store) <restart_point>: Likewise for both modes.
2013-09-23 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Setting of idle time.
The command to change idle time was broken.
* ftpd/ftpcmd.y (cmd) <SITE IDLE NUMBER>: The token IDLE
must go before `check_login' to avoid a lookahead syntax
error. Adjust the parameter reference for `check_login'.
2013-09-19 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Status and medium reports on BSD.
* ifconfig/options.c (formats) <gnu, net-tools, unix>:
Add medium and status to printout.
* ifconfig/printif.c (format_handles): Add keys
`media?', `media', `status?', and `status'.
(fh_media_query, fh_media, fh_status_query, fh_status):
New functions.
* ifconfig/printif.h (fh_media_query, fh_media)
(fh_status_query, fh_status): New declarations.
* ifconfig/system/bsd.c: Include <net/if_media.h>.
(ifm) [SIOCGIFMEDIA]: New variable.
(media_descr): New variable.
(subtype_descr) [IFM_SUBTYPE_DESCRIPTIONS]: Likewise.
(ethernet_descr) [IFM_SUBTYPE_ETHERNET_DESCRIPTIONS]:
Likewise.
(subtype_shared_descr) [IFM_SUBTYPE_SHARED_DESCRIPTIONS]:
Likewise.
(option_descr): Likewise.
(status_descr) [IFM_STATUS_DESCRIPTION]: Likewise.
(system_fh_media_query, system_fh_media)
(system_fh_status_query, system_fh_status): New functions.
* ifconfig/system/bsd.h (SYSTEM_FORMAT_HANDLER):
Add keys `media?', `media', `status?', and `status'.
(system_fh_media_query)
(system_fh_media, system_fh_status_quey, system_fh_status):
New declarations.
2013-09-18 Alfred M. Szmidt <ams@gnu.org>
* cfg.mk (local-checks-to-skip): Added the
sc_cast_of_x_alloc_return_value, sc_copyright_check,
sc_program_name, sc_prohibit_always_true_header_tests,
sc_prohibit_assert_without_use, sc_prohibit_doubled_word,
sc_prohibit_error_without_use, sc_prohibit_have_config_h,
sc_prohibit_magic_number_exit, sc_prohibit_strncpy,
sc_prohibit_undesirable_word_seq, sc_prohibit_xalloc_without_use
to list.
2013-09-15 Mats Erik Andersson <gnu@gisladisker.se>
telnet: Uninitialized array of pointers.
Contemporary tgetent() emulations are known to ignore
the scratch buffer, as well as fill it in (contrary to
claim in manual page). Account for this.
* telnet/telnet.c (mklist): Return quickly in case of
an empty first parameter `buf'. Carefully initialize
`*ARGVP' to NULL at every stage.
Harmless memory leak in test program.
* tests/localhost.c: Include <stdlib.h>.
(main): Remove `const' on P, and it free after use.
2013-09-12 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac: Add a relevant comment where AC_DEFINE
and AH_TEMPLATE offered only the text `FIXME'.
* am/result.m4 (IU_RESULT_ACTIONS): Build a relevant
comment better than `FIXME'.
2013-09-10 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Rare memory leak.
* ftp/ruserpass.c (remote_userpass) <missing domain>:
Assign empty string to MYDOMAIN, do not allocate.
The standard use is to set MYDOMAIN pointing into
MYNAME without allocation. Do assignment of TMP
before if-clause.
2013-09-08 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Guard buffer size.
An evil SHELL in environment would overflow a buffer.
* ftp/cmds.c (shell): Step over a slash in NAMEP
only if one was found. Use strncat() with correct
length parameter, instead of strcat().
Minor coding issues.
* ftp/ftp.c (pswitch) <struct comvars>: Declare array
sizes for `nti[]' and `nto[]' to be identical to those
of `ntin[]' and `ntout[]'.
* ftp/ftp_var.h (stringbase, argbuf, argbase):
Remove declarations.
* ftp/main.c (argbase, argbuf, atringbase):
New static string variables.
* telnet/Makefile.am: Add @PATHDEFS_MAKE@.
(AM_CPPFLAGS): Add $(PATHDEF_BSHELL).
* telnet/commands.c (shell): Use PATH_BSHELL as default
shell. Put assignment before if-clause.
2013-09-08 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Legacy use with GNU/kFreeBSD.
* configure.ac: Check for header <netinet/ether.h>.
* ifconfig/system.c [__DragonFly || __FreeBSD__ ||
__FreeBSD_kernel__ || __NetBSD__ || __OpenBSD__]:
Add __FreeBSD_kernel__ to conditional.
* ifconfig/system.h [__DragonFly || __FreeBSD__ ||
__FreeBSD_kernel__ || __NetBSD__ || __OpenBSD__]:
Likewise.
* ifconfig/system/bsd.c [HAVE_NETINET_ETHER_H]:
Include <netinet/ether.h>.
* ifconfig/system/bsd.h (IU_BSD_TYPE)
[__FreeBSD_kernel__]: Assign value to macro.
* tests/ifconfig.sh: Add an informational check
whether the legacy form `ifconfig lo0' works.
2013-09-07 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Remove line length limit.
Once the argument parsing routine is rewritten
to work with dynamic memory, the length limit
on input lines can be removed in its entirety.
* ftp/extern.h (slurpstring): Remove declaration.
* ftp/ftp_var.h (argbuf): Change to string pointer.
(MAXMARGV) [!MAXMARGV]: New macro.
(margv): Change array length to MAXMARGV.
* ftp/main.c (slurpstring): Declare as static.
(main): Initalize `argbuf' to NULL.
(cmdscanner): Remove check whether `line' exceeds
MAXLINE in length.
(slrflag): Declare as static.
(makeargv): Free and allocate `argbuf' at entry.
Insert a condition to ensure that at most MAXMARGV
arguments are located, thus avoiding an overflow.
* ftp/ruserpass.c (tokval): Change array length
to BUFSIZ.
2013-09-06 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Macro execution and allocation.
During macro execution, string parsing and
substitution is rewritten to use dynamically
allocated memory.
* ftp/domacro.c (lengthen): New static function.
(domacro): New variables ALLOCFLG, LINE2LEN.
New label END_EXEC. The variable LINE2 is no
longer allocated, instead it stores the previous
global `line' for repeated access. A temporary
string pointer `line' is dynamically allocated
and is adjusted using lengthen(). Recovery from
allocation failures jump to END_EXEC. `line' is
restored from LINE2 before exiting.
2013-09-05 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Minor allocation issues.
Fix issues related to the global variable `line'.
* ftp/cmds.c (another): New variable NEW. Assign
outcome of realloc() to NEW, to better avoid memory
leakage. Determine new size with `linelen'.
(confirm): Rename LINE to INPUT, which does not
shadow the global variable `line'.
* ftp/domacro.c: Include <stdlib.h>.
(domacro): Change LINE2 to a string pointer.
Assign LINE2 using strdup(), freeing it later.
* ftp/ftp.c (login) <execution of macro `init'>:
Allocate MAXLINE bytes; set `linelen'.
* ftp/ftp_var.h (linelen): New variable.
* ftp/main.c (main): Reset `line', `linelen'.
(cmdscanner): Remove LEN, using `linelen' instead.
2013-09-05 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Macro execution segfaults.
Abort macro execution when command is ambiguous,
is invalid, or if the control connection has been
lost. Otherwise segmentation faults can happen
when the macro includes further commands.
* ftp/domacro.c (domacro) <ambiguous, invalid>
<not connected>: Reset LOOPFLG and break loop.
Error message gives name of offending command.
2013-09-03 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Avoid numeric size of char array.
* ftp/cmds.c (macdef): Use sizeof() to avoid size
knowledge about arrays `struct macel.mac_name'
or `macbuf'.
* ftp/domacro.c (domacro): Likewise.
* ftp/ruserpass.c (remote_userpass): Likewise.
Change type of I to size_t.
* doc/inetutils.texi <ftp invocation>: Mention
restriction on macro naming.
2013-08-31 Mats Erik Andersson <gnu@gisladisker.se>
* tests/syslogd.sh: Lengthen sleeping periods.
Add better diagnostics when some test case fails.
2013-08-31 Mats Erik Andersson <gnu@gisladisker.se>
* ftpd/ftpd.c (statcmd): Report session timeout.
2013-08-31 Mats Erik Andersson <gnu@gisladisker.se>
Support BSD libedit. (Used on GNU/kFreeBSD.)
* am/readline.m4 (gl_FUNC_READLINE): Check for headers
before library linkage. Check for header file variants
<editline/readline.h> and <editline/history.h>.
While testing linking against libreadline and libedit,
conditionally use HAVE_*_READLINE_H to include the
correct header file.
* ftp/cmds.c, ftp/main.c
[!HAVE_READLINE_READLINE_H && HAVE_EDITLINE_READLINE_H]:
Include <editline/readline.h>
[!HAVE_READLINE_HISTORY_H && HAVE_EDITLINE_HISTORY_H]:
Include <editline/history.h>
2013-08-30 Mats Erik Andersson <gnu@gisladisker.se>
* bootstrap: Updated from gnulib.
2013-08-29 Mats Erik Andersson <gnu@gisladisker.se>
Handle socket debugging.
* ftp/ftp.c (initconn) <passivemode>: Suppress error
message for errno EACCES while setting SO_DEBUG. This is
a minor part of debug mode, and denial is system dependent.
Else report using error(), not perror(). Add DEBUG to text.
<label noport>: Likewise.
* src/inetd.c (setup): Likewise.
* src/rsh.c (main) <try_connect && debug_option>:
Improve error message to mention DEBUG.
2013-08-28 Mats Erik Andersson <gnu@gisladisker.se>
ftp: New command `lpwd'.
* ftp/cmds.c: Include "xgetcwd.h".
(lcd): Remove external prototype of xgetcwd().
(lpwd): New function.
* ftp/cmdtab.c (lpwdhelp): New variable.
(cmdtab): Add entry for `lpwd'.
* ftp/extern.h (lpwd): New prototype.
* ftp/main.c (argp_options) <-d/--debug>:
Improve relevance of help message.
2013-08-28 Mats Erik Andersson <gnu@gisladisker.se>
Identification of unices. Check `__unix' and
`__unix__' in addition to `unix'. This is needed
for `ftp' with GCC on NetBSD, OpenBSD. Both macros
are necessary to distinguish AIX and HP-UX!
* ftp/cmds.c (setpeer)
[(unix || __unix || __unix__) && (NBBY==8)]: Add
macros __unix and __unix__ in conditional; this
sends initial SYST request from NetBSD and OpenBSD.
* ftpd/ftpcmd.y (cmd) [unix || __unix || __unix__]:
Likewise; announce system as UNIX.
* telnet/commands.c (Togglelist, filestuff)
[(unix || __unix || __unix__) && TN3270]: Likewise.
(status, transcomhelp)
[(unix || __unix || __unix__) && TN3270]: Likewise.
(zhelp) [unix || __unix || __unix__]: Likewise.
(cmdtab) [unix || __unix || __unix__]
<cases "transcom", "z">: Likewise.
(command) [unix || __unix || __unix__] <!top>:
Likewise; ignore SIGINT and SIGQUIT.
* telnet/main.c (argp_options)
[(unix || __unix || __unix__) && TN3270]: Likewise.
(parse_opt) [(unix || __unix || __unix__) && TN3270]
<case 't'>: Likewise.
* telnet/telnet.c [unix || __unix || __unix__]:
Likewise; include <signal.h>.
(Scheduler) [(unix || __unix || __unix__) && TN3270]:
Likewise.
* telnet/tn3270.c (HaveInput, cursesdata, sigiocount)
(tline, transcom) [(unix || __unix || __unix__) && TN3270]:
Likewise.
(init_3270, inputAvailable, DataToTerminal, Finish3270)
(settranscom) [(unix || __unix || __unix__) && TN3270]:
Likewise.
* telnet/utilities.c (EmptyTerminal)
[unix || __unix || __unix__]: Likewise; handle fdset.
Check macro `__sun' to detect Solaris. Possibly
the code is portable also to Solaris Studio.
* ifconfig/system.c [!__linux__]: Check macro __sun,
not the less portable __sun__.
* ifconfig/system.h [!__linux__]: Likewise.
* ping/ping6.c: Likewise.
Helper program for identifying build environments.
* tests/identify.c: New file.
* tests/Makefile.am (noinst_PROGRAMS, identify_LDADD):
New variables.
2013-08-28 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Secrecy in debug mode.
* ftp/ftp.c (command) <debug>: Insert a missing `else'.
This avoids displaying the password in clear text.
Problem introduced in a change made 2013-05-17.
2013-08-25 Mats Erik Andersson <gnu@gisladisker.se>
False negative while testing syslogd.
* tests/syslogd.sh (iu_socklen_max): Do not accept
`GNU/kFreeBSD' as a system supporting unix sockets
of length 108.
2013-08-18 Mats Erik Andersson <gnu@gisladisker.se>
* tests/Makefile.am (check_PROGRAMS) [ENABLE_inetd]:
Add tcpget.
* tests/inetd.sh (TARGET, TCPGET): New variables.
(TELNET): Remove variable.
Remove check for tty. Use TARGET for host addressing.
Use `tcpget' instead of `telnet', which allows the
test to be performed by build robots.
* tests/tcpget.c: New file.
2013-08-15 Mats Erik Andersson <gnu@gisladisker.se>
* tests/inetd.sh: Skip test in absence of assigned TTY.
This is needed due to the use of a built `telnet'.
2013-08-15 Mats Erik Andersson <gnu@gisladisker.se>
* tests/inetd.sh (write_conf): Use numerical address
for localhost. This avoids dependency on system set-up.
2013-08-14 Mats Erik Andersson <gnu@gisladisker.se>
* tests/inetd.sh: New file.
* tests/Makefile.am (dist_check_SCRIPTS)
[ENABLE_inetd && ENABLE_telnet]: Add inetd.sh.
* tests/telnet-localhost.sh: Set service node
to $TARGET and $TARGET6 in inetd configuration.
* tests/utmp.sh: Call $SED, not `sed'.
2013-08-09 Mats Erik Andersson <gnu@gisladisker.se>
* src/syslogd.c (argp_options): Improve `mark' text.
(logmsg) [INTERNAL_MARK]: Compute facility from
macro INTERNAL_MARK for better consistency.
2013-07-20 Mats Erik Andersson <gnu@gisladisker.se>
talkd: Small audit of ACL.
* talkd/acl.c (struct netdef): Let `ipaddr' and
`netmask' be of type in_addr_t for better
architecture independence.
(netdef_parse): Likewise for IPADDR, NETMASK.
(acl_match): Likewise for IP. When checking
address matches, make a bitwise AND of
`net->ipaddr' with `net->netmask'.
* talkd/talkd.c (main): Call openlog() before read_acl().
(talkd_init): Delete call to openlog().
2013-07-13 Mats Erik Andersson <gnu@gisladisker.se>
talkd: Less ACL-logging.
* talkd/process.c (process_request): File only
a single syslog message when acl_match() denies
access, by checking for message type LOOK_UP.
2013-07-13 Mats Erik Andersson <gnu@gisladisker.se>
* bootstrap: Updated from gnulib.
2013-07-11 Mats Erik Andersson <gnu@gisladisker.se>
talk, talkd: Convenience changes.
* talk/display.c (display) <'^D'>: Clear both
local windows, but render the character as
notification on the remote terminal.
* talkd/process.c (process_request) <ANNOUNCE>:
If logging is set and reply is successful, make
a syslog note about the participants.
<LOOK_UP>: Likewise.
2013-07-04 Mats Erik Andersson <gnu@gisladisker.se>
traceroute: Gateway selection.
Make `-g' additive in repeated use to better
conform with other implementations.
* src/traceroute.c (parse_opt) [IP_OPTIONS] <'g'>:
Append `arg' to `opt_gateways' if the latter has
already been assigned a value.
2013-06-28 Mats Erik Andersson <gnu@gisladisker.se>
traceroute: Portability of PID range.
FreeBSD uses process ID beyond 65535.
* src/traceroute.c (main): Only keep lower
16 bits of getpid(). A larger identity span
cannot be accommodated into the payload.
2013-06-27 Mats Erik Andersson <gnu@gisladisker.se>
rshd: Require host name.
* src/rshd.c (reverse_required): New variable.
(options): New option `-r/--reverse-required'.
(parse_opt) <'r'>: New case.
(doit) <reverse_required>: New exit path for
clients whose IP addresses have no host name.
2013-06-26 Mats Erik Andersson <gnu@gisladisker.se>
rlogind: Error handling.
* src/rlogind.c (rlogind_auth) <reverse_required>:
Call fatal() on failure to reverse resolve the address.
Lower syslog severity to LOG_NOTICE.
(rlogind_mainloop): Lower severity to LOG_ERR.
2013-06-24 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Reverse resolution of client.
* telnetd/telnetd.c (telnetd_setup) [IPV6]
<reverse_lookup>: The comparison of a full
`struct sockaddr' always fails. Thus compare
only `struct in_addr', or `struct in6_addr'.
Short-circuit test for differing families.
In case of failure, call fatal(), not exit().
[!IPV6] <reverse_lookup>: Call fatal(), not exit().
2013-06-24 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Portability of banner.
* telnetd/telnetd.c (print_hostinfo): Use NVT
conformant substring for second newline "\r\n".
* telnetd/telnet.h (UNAME_IM_SUFFIX) [HAVE_UNAME]:
Likewise. Use place holder `%l' for name of server.
2013-06-23 Mats Erik Andersson <gnu@gisladisker.se>
Portable use of uname(). POSIX states non-negative
status on success. Solaris returns positive value.
* ftpd/ftpcmd.y <cmd> [HAVE_UNAME]: Set string
value if uname() returns a non-negative value.
* telnetd/telnetd.c (print_hostinfo) [HAVE_UNAME]:
Likewise.
ftpd: Prevent disclosure of system version.
* ftpd/extern.h (no_version): New declaration.
* ftpd/ftpcmd <cmd>: Display system name and
release identifier only if `!no_version' is true.
* ftpd.c (no_version): Declare as global,
not static.
2013-06-17 Mats Erik Andersson <gnu@gisladisker.se>
* CHECKLIST: New documentation file.
* Makefile.am (EXTRA_DIST): Add CHECKLIST.
2013-06-12 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Group name matching.
Support group membership matching in the files
`/etc/ftpusers' and `/etc/ftpchroot'.
* bootstrap.conf (gnulib_modules): Add mgetgroups.
* ftpd/conf.c: Include <stdlib.h>, <pwd.h>, <grp.h>,
and <mgetgroups.h>.
(checkuser): New variables NGROUPS, GROUPS, PWD.
New code blocks for extracting and matching against
group names given on input line.
* doc/inetutils.texi <ftpd invocation>:
New section on the file format of `/etc/ftpusers'.
2013-06-11 Mats Erik Andersson <gnu@gisladisker.se>
* paths (PATH_NOLOGIN): Change default value to
`/etc/nologin' for best portability.
* README: Add some observations on hard-coded
file locations.
2013-06-11 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Erroneous access check.
The result of a user name match in PATH_FTPUSERS
is never applied.
* ftpd/auth.c (auth_user): Immediately return with
an error when a user is denied access based on an
entry in PATH_FTPUSERS.
ftpd: Better name matching mechanism.
* ftpd/conf.c: Include <ctype.h>.
(checkuser): Accept an input line without final
newline. Allow initial blanks on input line.
For better portability, allow trailing text
separated from user name by blanks.
* doc/inetutils.texi <ftpd invocation>: Better
exposure of ftpchroot effects.
2013-06-08 Mats Erik Andersson <gnu@gisladisker.se>
logger: Flexibel UNIX socket name.
* src/logger.c (open_socket): Call strchr()
to check if `host' contains a slash anywhere.
Then it names a UNIX socket.
2013-05-29 Mats Erik Andersson <gnu@gisladisker.se>
tests: Directory loading in syslogd.
* tests/syslogd.sh (CONFD): New variable.
(IU_OPTIONS): Add directory setting `--rcdir'.
<reloaded configuration>: Move directive for
severity `debug' to a file in $CONFD.
* src/syslogd.c (main) <NoDetach>: Mention the
process ID when telling about debug signal USR1.
2013-05-29 Mats Erik Andersson <gnu@gisladisker.se>
syslogd: Load configuration from directory.
Code suggested by Guillem Jover <guillem@hadrons.org>
<http://lists.gnu.org/archive/html/bug-inetutils/2009-12/msg00054.html>.
Minor changes with failure tracking.
* paths (PATH_LOGCONFD): New variable.
* src/Makefile.am (AM_CPPFLAGS): Add $(PATHDEF_LOGCONFD).
* src/syslogd.c: Include <dirent.h>.
(ConfDir): New variable.
(argp_options): New option `-D/--rcdir'.
(parse_opt) <'D'>: New case.
(load_confdir): New function.
(init): New variable RET. Call load_confdir(),
making sure that failures are reported.
2013-05-29 Mats Erik Andersson <gnu@gisladisker.se>
syslogd: Refactor loading of configuration file.
Code outlined by Guillem Jover <guillem@hadrons.org>
<http://lists.gnu.org/archive/html/bug-inetutils/2009-12/msg00053.html>.
Added an important correction to the legacy code
for building linked lists of logging files.
* src/syslogd.c (load_conffile): New function.
First build a new structure `struct filed' from
input line, then incorporate it into `*nextp'.
(init): Refactor code for loading a configuration
file, moving it to load_conffile().
New variable RC. Remove CF, P, LINE_MAX, CBUF,
CLINE, and CONT_LINE.
Register an additional error message, should loading
have been incomplete.
2013-05-27 Mats Erik Andersson <gnu@gisladisker.se>
rshd: Check account locking and expiration.
* src/rshd.c [HAVE_SHADOW_H]: Include <shadow.h>.
(DAY) [!DAY]: New macro.
(doit): Multiple, minor changes to error strings.
[!WITH_PAM]: New checks of account being either
locked, or expired. The code tests HAVE_GETSPNAM
and HAVE_STRUCT_PASSWD_PW_EXPIRE for system quirks.
2013-05-22 Mats Erik Andersson <gnu@gisladisker.se>
libinetutils: Clarify Kerberos dependency.
* libinetutils/kcmd.c [KERBEROS || SHISHI]:
Condition file content on KERBEROS, not KRB4.
Mixed compiler warnings.
* ftpd/ftpcmd.y (cmd) <EPRT>: Remove the suffix `LL'
on constants, which enforces an unwanted cast.
(host_port): Likewise.
* libinetutils/kcmd.c (kcmd): Cast a string length
computation as int, used for format precision.
* libls/print.c (printlong): Cast nlink_t as int.
* libtelnet/kerberos5.c (Data): Cast CD as `char *'
for use by strlen().
* src/rexecd.c (get_user_password) [!WITH_PAM]:
Declare only in absence of WITH_PAM.
(doit) [!WITH_PAM]: Declare NAMEP and PW_PASSWORD.
(rexec_conv) [WITH_PAM]: Identify `data' as unused.
* src/rlogin.c (writer) <!escapechar>: Disambiguate
conditional statements inside a braced block.
* src/rsh.c: Include <unused-parameter.h>. Remove
inclusion of "xalloc.h".
(parse_opt): Identify `state' as unused.
* src/rshd.c (doit) [SHISHI]: Declare ERR_MSG as a
constant array.
* telnet/commands.c (tn) [HAVE_IDN]: Declare HOSTTMP.
2013-05-22 Mats Erik Andersson <gnu@gisladisker.se>
* libtelnet/encrypt.c: Include <unused-parameter.h>.
(encrypt_start, encrypt_request_start): Mark all
parameters with _GL_UNUSED_PARAMETER.
* libtelnet/kerberos5.c: Include <unused-parameter.h>.
(kerberos5_init, kerberos5_status): Param `ap' is unused.
* libtelnet/shishi.c: Include <unused-parameter.h>.
(krb5shishi_init, krb5shishi_status): `ap' is unused.
(krb5shishi_cleanup): Likewise. Delete variable SUBKEY.
2013-05-18 Mats Erik Andersson <gnu@gisladisker.se>
libtelnet: Portability of enctype_names.
* configure.ac (HAVE_CONST_CHAR_ENCTYPE_NAMES):
Check if <arpa/telnet.h> declares enctype_names
as `const char []'.
* libtelnet/encrypt.c (enctype_names)
[HAVE_CONST_CHAR_ENCTYPE_NAMES]: Declare as
constant array.
2013-05-17 Mats Erik Andersson <gnu@gisladisker.se>
libtelnet: Selected compiler warnings.
* libtelnet/auth.c (auth_send): Cast sizeof() as int.
(auth_name): Remove AP. Make SAVENAME a char array.
Cast sizeof() as int. Rewrite debug message for
overflowing name.
* libtelnet/enc_des.c (FB64_IV, FB64_IV_OK)
(FB64_IV_BAD): Make definitions conditional.
(fb64_session): Cast `key->length' as size_t.
* libtelnet/encrypt.c (encrypt_is): Do assignment
before if-statament. Use format `%p' with pointer.
(encrypt_reply): Likewise.
(encrypt_start): Use separate assigment.
(encrypt_keyid): Likewise. Delete STRP and CP.
(encrypt_start_output): Use separate assignment.
(encrypt_send_request_end): Remove ENCRYPT and DECRYPT.
* libtelnet/kerberos5.c (kerberos5_is_auth): Make static.
(kerberos5_is_forward) [FORWARD]: Likewise.
* libtelnet/shishi.c (Data): Third argument is `void *'.
Cast as `char *' for strlen().
(shishi_init_key) [ENCRYPTION]: Make static. Cast result
from shishi_key_value() as `unsigned char *'.
(krb5shishi_reply): shishi_ap_rep_verify_der() needs a cast
as `char *'.
(krb5shishi_status): Delete RC.
(krb5shishi_is_auth): Make static. Delete KEY2.
shishi_ap_req_der_set() needs cast as `char *'.
* telnet/authenc.c (telnet_getenv): Do not cast `val'.
2013-05-17 Mats Erik Andersson <gnu@gisladisker.se>
ftp, telnet: Erase passwords after use.
* ftp/cmds.c (user): Erase password string after getpass().
(account): Likewise, for account password.
* ftp/ftp.c (login): Erase passwords after last use.
(command): Print fake account password as debug text.
* telnet/authenc.c (telnet_gets): Do assignment before
if-statement. Erase string found by getpass().
2013-05-17 Mats Erik Andersson <gnu@gisladisker.se>
libtelnet: Let input to printsub functions remain
typed as `unsigned char *', but use `char *' for all
printable output.
* libtelnet/auth-proto.h (auth_printsub, auth_sendname)
(kerberos4_printsub, kerberos5_printsub)
krb5shishi_printsub): Update signatures.
* libtelnet/auth.h (TN_Authenticator): Update `*printsub'.
* libtelnet/enc-proto.h (encrypt_printsub, krbdes_printsub)
(cfb64_printsub, ofb64_printsub): Update signatures.
* libtelnet/encrypt.h (Encryptions): Update `*printsub'.
* libtelnet/auth.c (auth_sendname): Rename first argument
and change to `char *'. New variable CP.
(auth_gen_printsub): Change third argument and variables
CP and TBUF to `char *'.
(auth_printsub): Change third argument to `char *'.
* libtelnet/enc_des.c (fb64_printsub, cfb64_printsub)
(ofb64_printsub): Likewise.
* libtelnet/encrypt.c (encrypt_gen_printsub)
(encrypt_printsub): Likewise.
* libtelnet/kerberos.c (kerberos4_printsub): Likewise.
* libtelnet/kerberos5.c (kerberos5_printsub): Likewise.
* libtelnet/shishi.c (krb5shisih_printsub): Likewise.
* telnetd/utility.c (printsub) [AUTHENTICATION || ENCRYPTION]:
Change BUF to `char *'.
2013-05-15 Mats Erik Andersson <gnu@gisladisker.se>
rshd: Report client's principal name.
* src/rshd.c (rprincipal): New variable.
(doit) [SHISHI] <use_kerberos>: Set `rprincipal'
using shishi_encticketpart_clientrealm().
[KRB5] <use_kerberos>: New calls to krb5_kuserok()
and krb5_unparse_name().
(doit): Report success to syslog using `rprincipal'.
2013-05-15 Mats Erik Andersson <gnu@gisladisker.se>
rlogind: Report client's principal name.
* libinetutils/shishi_def.h (struct auth_data):
New member `rprincipal'.
* src/rlogind.c (struct auth_data) [!SHISHI]:
Likewise.
(do_krb5_login) [KRB5]: Delete NAME. Assign value
to `ap->rprincipal' using previous krb5_unparse_name().
(do_shishi_login) [SHISHI]:
Call shishi_encticketpart_clientrealm() to set
`ad->rprincipal'. Let the syslog message mention
the client's principal name, instead of remote name.
rlogind: Login options for Solaris again!
* src/rlogind.c (exec_login) [SOLARIS10 || SOLARIS]:
Make option orders roughly similar. Add option `-d'.
<authenticated> [KERBEROS || SHISHI]: Add option `-u'
with remote client's principal name. Depending on
`kerberos', let `-s' take argument `krlogin' or `rlogin'.
2013-05-15 Mats Erik Andersson <gnu@gisladisker.se>
Audit of login options.
* configure.ac (SOLARIS10): Replace previous
macro SOLARIS11.
* src/rlogind.c (exec_login) [SOLARIS10]:
Use previous Solaris settings.
[SOLARIS]: Simplified setting.
* telnetd/telnetd.c (login_invocation)
[SOLARIS10 || SOLARIS]: Likewise, as two cases!
2013-05-14 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Silence unwanted debugging.
* telnetd/telnetd.h (enum debug_mode): Add `debug_encr'.
* telnetd/telnetd.c (debug_mode): Add member `encr'.
* telnetd/utility.c (printsub): Return immediately if
the option is TELOPT_AUTHENTICATION or TELOPT_ENCRYPT
and the corresponding debug level is unset.
telnetd: Logging of failed command line options.
* telnetd/telnetd.c (main): Call openlog() before
argp_parse(). Facility is now correct!
(parse_linemode): Send a log notice
about parsing failure; the client receives stderr!
(parse_authmode) [AUTHENTICATION]: Likewise.
(parse_debug_level): Likewise.
2013-05-14 Mats Erik Andersson <gnu@gisladisker.se>
libtelnet: The list of authentication names is
allowed to contain NULL entries. Prevent access
to such entries.
* libtelnet/auth.c: Position some assignments before
the corresponding if-statement.
(auth_init) [AUTHENTICATION]: Check that AUTHTYPE_NAME()
is non-NULL before referencing it.
(auth_disable_name, getauthmask, auth_onoff, auth_send)
[AUTHENTICATION]: Likewise.
* telnet/utilities.c (printsub) [AUTHENTICATION]: Likewise.
* telnetd/utility.c (printsub) [AUTHENTICATION]: Likewise.
2013-05-13 Mats Erik Andersson <gnu@gisladisker.se>
libtelnet: Make availibility of DES_OFB64 in addition
to DES_CFB64 independent of host system.
* libtelnet/encryption.h (ENCTYPE_DES_OFB64)
[ENCRYPTION]: Define if missing.
(ENCTYPE_CNT, ENCTYPE_NAME_OK) [ENCRYPTION]:
Always redefine.
* libtelnet/encryption.c [ENCRYPTION]: Undefine
ENCRYPT_NAMES before including <arpa/telnet.h>.
(enctype_names) [ENCRYPTION]: New array variable.
(encrypt_is, encrypt_reply, encrypt_start) [ENCRYPTION]:
Before printing encryption type, check that ENCTYPE_NAME()
is non-null in addition to checking only ENCTYPE_NAME_OK().
* telnet/utilities.c (printsub) [ENCRYPTION]: Likewise.
* telnetd/utility.c (printsub) [ENCRYPTION]: Likewise.
2013-05-13 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac <*olaris*>: New test for subcase
`*olaris*11'. Define SOLARIS11 for matches.
* telnetd/telnetd.c (login_invocation)
[SOLARIS && SOLARIS11]: Add `-p' to old value.
* src/rlogind.c (exec_login) <authenticated>
[SOLARIS]: Change service to `-s krlogin' in
argument list to execle().
2013-05-09 Mats Erik Andersson <gnu@gisladisker.se>
* src/logger.c (parse_level): Rename PRI to PRIO,
so as not to shadow the global variable. Initiate
value to LOG_NOTICE, not to LOG_EMERG.
2013-05-08 Mats Erik Andersson <gnu@gisladisker.se>
libtelnet: Parity adjust non-DES key.
* libtelnet/enc_des.c (des_parity, des_check_parity)
(des_set_parity) [AUTHENTICATION && ENCRYPTION]
[DES_ENCRYPTION || SHISHI]: New static functions.
(fb64_session) [AUTHENTICATION && ENCRYPTION]:
New variables OFFSET and DERIVED_KEY. Accept keys
of type SK_OTHER and adjust parity in a partitioned
copy of the authentication key, as RFC 2952 suggests.
Self-documenting array length.
* libtelnet/enc_des.c (shishi_des_ecb_encrypt)
[AUTHENTICATION && ENCRYPTION && SHISHI]:
Use sizeof(Block) as array size.
(fb64_start) [AUTHENTICATION && ENCRYPTION && SHISHI]:
Likewise.
2013-05-07 Mats Erik Andersson <gnu@gisladisker.se>
configure.ac: Minor clean-up.
* am/config_paths.m4 (IU_CONFIG_PATHS):
Replace obsolete AC_HELP_STRING by AS_HELP_STRING.
* am/libcurses.m4 (IU_LIB_NCURSES): Likewise.
* am/readline.m4 (gl_FUNC_READLINE): Likewise.
* configure.ac: Likewise. Use AC_CONFIG_HEADERS
instead of AC_CONFIG_HEADER. Call AM_PROG_AR,
but protect its use by means of m4_ifdef.
(AM_INIT_AUTOMAKE): Add `-Wall' and `-Werror'.
Remove second call to the same macro.
2013-05-01 Mats Erik Andersson <gnu@gisladisker.se>
* libtelnet/enc_des.c: Convert K&R style declarations
to ISO C89. Do assignments before return statements.
(fb64_stream_iv, fb64_init, fb64_is, fb64_reply)
(fb64_stream_key, fb64_keyid): Declare as static.
(shishi_des_ecb_encrypt) [SHISHI]: Declare as static.
Declare all three string arguments using `unsigned char'.
When calling shishi_des(), cast third and sixth arguments
as `const char *'.
(fb64_start): Remove variable B. Change X to size_t.
(fb64_is): Remove B and X.
(fb64_reply): Remove B, P, and X.
2013-04-30 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Account expiration.
Better explanation, make it work also for BSD.
* configure.ac (HAVE_STRUCT_PASSWD_PW_EXPIRE)
(HAVE_STRUCT_PASSWD_PW_CHANGE): Check if `struct passwd'
has members pw_expire and pw_change.
* ftpd/extern.h (struct credentials): New member `expired'.
(AUTH_EXPIRED_NOT, AUTH_EXPIRED_ACCT, AUTH_EXPIRED_PASS):
New macros.
* ftpd/ftpd.c (pass) <failed authentication>:
If `cred.message' is empty, check `cred.expired' for
further reasons of failure.
* ftpd/auth.c (auth_user): Reset `pcred->expired'.
(sgetcred): [HAVE_GETSPNAM && HAVE_SHADOW_H]:
Separate account and password expiration into distinct
checks, updating `pcred->expired'. Use shadow password
only in absence of all expiration.
[HAVE_STRUCT_PASSWD_PW_EXPIRE]: New code block.
2013-04-26 Mats Erik Andersson <gnu@gisladisker.se>
rcp: Make encryption portable.
* src/rcp.c (main) [KERBEROS || SHISHI]: The encryption
switch `-x' does not belong in the remote command string.
It is must only be passed to `rsh'. Remove the special
command string claimed for all Kerberos variants.
2013-04-25 Mats Erik Andersson <gnu@gisladisker.se>
syslogd: Attempt to mend recurring test failures.
The autobuilder Hydra is fairly often reporting
failures for `tests/syslogd.sh' on GNU/Linux,
appearing after configuration reload and then
blocking INET socket messages.
* src/syslogd.c (create_inet_socket): Set SO_REUSEADDR
before IPV6_V6ONLY.
* tests/syslogd.sh <reloaded configuration>: Remove
blocker `user.none' on file `$OUT'.
2013-04-23 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac <libidn detection>: Replace by a call
to IU_CHECK_LIBIDN.
* am/libidn.m4 (IU_CHECK_LIBIDN): New file, new macro.
* am/krb5.m4 (IU_CHECK_KRB5): Detect res_query using
AC_SEARCH_LIBS for better portability to BSD.
Set KRB5_IMPL to `krb5-config' if krb5-config is
available to provide compiler flags. If KRB5_PREFIX
is `yes' and krb5-config does not exist, use the
location `-I/usr/include/krb5' for KRB5_CFLAGS.
Do not add $KRB4_LIBS to KRB5_LIBS when detecting
either `MIT' or `Heimdal'.
2013-04-19 Mats Erik Andersson <gnu@gisladisker.se>
rlogind, rshd: Diagnostics with libshishi.
* src/rlogind.c (do_shishi_login) [SHISHI && WITH_PAM]:
Assign an error message when do_pam_check() fails.
* src/rshd.c (doit) [SHISHI && !ENCRYPTION]:
Abort with an error message when encryption was requested
by the client, but is not present in the server.
2013-04-17 Mats Erik Andersson <gnu@gisladisker.se>
rlogind, rshd: Set realm with Kerberos5.
* src/rlogind.c (do_krb5_login) [KRB5}: Declare SERVER
with larger scope. If `servername' has content, then
call krb5_set_default_realm() with supporting code.
* src/rshd.c (doit) [KRB5] <use_kerberos>: Likewise.
2013-04-15 Mats Erik Andersson <gnu@gisladisker.se>
* src/rlogind.c (parse_opt) [KERBEROS || SHISHI]
<'k'>: Remove unused code checking `arg'.
(do_krb_login) [KRB5]: Remove `else', which prevents
later error message extraction.
[SHISHI]: Likewise.
2013-04-11 Mats Erik Andersson <gnu@gisladisker.se>
Working distcheck target.
* Makefile.am (BUILT_SOURCES): Replace $(top_srcdir)
by $(top_builddir).
(DISTCLEANFILES): Add `$(top_builddir)/.version' to list.
($(top_builddir)/.version): Move target to build directory.
2013-04-11 Mats Erik Andersson <gnu@gisladisker.se>
Summary printout is a config.status command.
* configure.ac (AC_CONFIG_FILES): Add summary.sh to list.
(AC_CONFIG_COMMANDS): New command `summary'.
(AC_MSG_NOTICE) <summary>: Removed.
* .gitignore: Add summary.sh to list.
* Makefile.am (EXTRA_DIST): Add summary.sh.in.
* summary.sh.in: New file.
* am/enable.m4 (IU_ENABLE_FOO): Publish `$1_PROPS'
and `enable_$1' via AC_SUBST.
2013-04-10 Mats Erik Andersson <gnu@gisladisker.se>
* doc/inetutils.texi <main menu>: Order invocation
nodes in lexicographical order.
<ping6 invocation>: New node.
2013-04-09 Mats Erik Andersson <gnu@gisladisker.se>
telnet, telnetd: Termcap buffer length recommendation.
* telnet/telnet.c (termbuf): Increase length to 2048,
and initialize to zero.
(init_term) [HAVE_TGETENT]: Handle case `err == 1',
since it can only happen here.
* telnetd/utility.c (terminaltypeok) [HAVE_TGETENT]:
Declare BUF. Call tgetent() to decide return status.
[!HAVE_GETENT]: Always return 1, lacking the knowledge
to make any other decision relvant for return status.
telnetd, libtelnet: Buffer overflow prevention.
* telnetd/telnetd.h (getterminaltype): New signature.
* telnetd/telnetd.c (telnetd_setup): Add buffer
length in call getterminaltype().
* telnetd/utility.c (getterminaltype): New second
argument `size_t len'. Pass `len' to auth_wait().
* libtelnet/auth-proto.h (auth_wait): New signature.
(kerberos4_status) [KRB4]: Likewise.
(kerberos5_status) [KRB5]: Likewise.
(krb5shishi_status) [SHISHI]: Likewise.
* libtelnet/auth.h (typedef TN_Authenticator):
New signature of member `*status'.
* libtelnet/auth.c (auth_wait): New parameter `len'.
Pass `len' in the call *authenticated->status().
* libtelnet/kerberos.c (kerberos4_status): New third
argument `size_t len'. Call strncpy().
* libtelnet/kerberos5.c (kerberos5_status): Likewise.
* libtelnet/shishi.c (krb5shishi_status): Likewise.
(krb5shishi_is_auth): Type CNAMEREALMLEN as size_t.
libtelnet: Minor warnings for casts.
* libtelnet/encrypt.h (typedef Session_Key)
[!HAVE_ARPA_TELNET_H_SESSION_KEY]: Make `data' a
const char pointer.
* libtelnet/encrypt.c (EncryptDisable): Cast second
argument in genget() as `char **'. Cast argument
to Ambiguous() as `char *'.
(EncryptType): Likewise.
2013-04-05 Mats Erik Andersson <gnu@gisladisker.se>
talk: Non-ASCII characters.
* talk/display.c: Include <ctype.h>.
(display): Check printability with isprint().
Prevent sign extension of char as integer.
2013-04-05 Mats Erik Andersson <gnu@gisladisker.se>
talk: Address resolution.
* talk/get_addrs.c (get_addrs): Implement resolver
using getaddrinfo(). This is now the preferred method.
[HAVE_DECL_GETADDRINFO || defined HAVE_IDN]:
Declare ERR with larger scope.
[HAVE_DECL_GETADDRINFO]: New variables HINTS, RES, AI.
Call getaddrinfo() for LHOST and RHOST.
[HAVE_DECL_GETADDRINFO && AI_IDN]: Add AI_IDN to
`hints.ai_flags'.
2013-04-04 Mats Erik Andersson <gnu@gisladisker.se>
More IDN support for clients.
* configure.ac <summary>: Uppdate ftp_PROPS,
talk_PROPS, telnet_PROPS, and tftp_PROPS using
LIBIDN.
* ftp/Makefile.am (AM_CPPFLAGS): Add $(INCIDN).
(LDADD): Add $(LIBIDN).
* talk/Makefile.am, telnet/Makefile.am
(AM_CPPFLAGS, LDADD): Likewise.
* src/Makefile.am (tftp_LDADD): Add $(LIBIDN).
* ftp/ftp.c [HAVE_IDNA_H]: Include <idna.h>.
(hookup): New variable RHOST. Use RHOST in
getaddrinfo().
[HAVE_IDN]: Call idna_to_ascii_lz().
[!HAVE_IDN]: Strdup `host' as RHOST.
[AI_IDN]: Add to `hints.ai_flags'.
[AI_CANONIDN]: Likewise.
* ftp/main.c [HAVE_LOCALE_H]: Include <locale.h>.
(main) [HAVE_SETLOCALE]: Call setlocale().
* ping/libping.c (ping_set_dest) [AI_CANONIDN]:
Add to `hints.ai_flags' independently if AI_IDN.
* ping/ping6.c (ping_set_dest): Set AI_CANONNAME
on `hints.ai_flags'. Strdup `result->ai_canonname'
to `ping->ping_hostname'.
[AI_CANONIDN]: Add to `hints.ai_flags'.
* src/tftp.c [HAVE_LOCALE_H]: Include <locale.h>.
[HAVE_IDNA_H]: Include <idna.h>.
(main) [HAVE_SETLOCALE): Call setlocale().
(resolve_name): New variable RNAME. Use RNAME
with getaddrinfo().
[HAVE_IDN]: Call idna_to_ascii_lz().
[AI_IDN]: Add to `hints.ai_flags'.
[AI_CANONIDN]: Add to `hints.ai_flags'.
* talk/get_addrs.c [HAVE_IDNA_H]: Include <idna.h>.
(get_addrs): New variables LHOST, RHOST. Use these
for address resolution with gethostbyname().
[HAVE_IDN]: Call idna_to_ascii_lz() twice.
* talk/talk.c [HAVE_LOCALE_H]: Include <locale.h>.
(main) [HAVE_SETLOCALE]: Call setlocale().
* telnet/commands.c [HAVE_IDNA_H]: Include <idna.h>.
(tn): New variable HOSTTMP.
[HAVE_IDN]: Call idna_to_ascii_lz() and let HOSTP
be identical to HOSTTMP if the call was successful.
Free HOSTTMP after use.
[IPV6 && AI_IDN]: Set `hints.ai_flags' to AI_IDN.
* telnet/main.c [HAVE_LOCALE_H]: Include <locale.h>.
(main) [HAVE_SETLOCALE]: Call setlocale().
2013-03-30 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac <summary>: New variables `*_PROPS'
for each targeted executable. Set the likes of
`ftp_PROPS' and use them to simplify output.
2013-03-28 Mats Erik Andersson <gnu@gisladisker.se>
Let Telnet client override Kerberos5 realm.
* libtelnet/kerberos5.c (dest_realm): Rename from
previous `telnet_krb5_realm'.
* telnet/main.c (dest_realm) [KERBEROS || SHISHI]:
Expand scope from KRB4 to KERBEROS.
(argp_options) [KERBEROS || SHISHI] <-k/--realm>:
Likewise.
(parse_opt) [AUTHENTICATION && (KERBEROS || SHISHI)]
<case 'k'>: Likewise.
2013-03-28 Mats Erik Andersson <gnu@gisladisker.se>
Partial adaptions to Kerberos5, sufficient
to do some build and runtime testing, but
without encryption.
* configure.ac <KERBEROS_VERSION == krb5>:
Disable `rcp', `rlogin', and `rsh'.
* libinetutils/des_rw.c [ENCRYPTION && KRB4]:
Replace KERBEROS by KRB4 in guard.
* libinetutils/kcmd.c, libinetutils/krcmd.c:
Likewise.
* src/rlogind.c [KRB5 && HAVE_COM_ERR_H]:
Include <com_err.h>.
(do_krb5_login) [KRB5]: Insert prototype.
* src/rshd.c [KRB4]: Replace previous KERBEROS
by KRB4 throughout.
[KRB5 && HAVE_KRB5_H]: Include <krb5.h>.
[KRB5 && HAVE_COM_ERR_H]: Include <com_err.h>.
(doit) [KRB5]: New partial template code and
related variables for later refinement.
[KERBEROS]: Set FROMADDR using memcpy().
[ENCRYPTION && (KERBEROS || SHISHI)]: Call dup2()
with macros STDIN_FILENO and STDOUT_FILENO.
Replace obsolete interfaces.
* libtelnet/kerberos5.c (encryption_init)
[ENCRYPTION]: Call krb5_auth_con_getsendsubkey().
(kerberos5_is_auth): New variable VALID.
Call krb5_auth_con_getrecvsubkey().
* src/rlogind.c (do_shishi_login) [SHISHI]:
Test macro ENCRYPT_IO when calling syslog().
* configure.ac <rsh summary>: Use $rsh_BUILD.
2013-03-22 Mats Erik Andersson <gnu@gisladisker.se>
Detection of Kerberos5.
* configure.ac: Only search for Kerberos headers
if they were explicitly requested.
* telnet/utilities.c (printsub)
[AUTHENTICATION || ENCRYPTION]: Define BUF if
either macro is defined.
* telnetd/utility.c (printsub): Likewise.
2013-03-21 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Portability of PAM to Solaris.
* ftpd/pam.c: Include <unistd.h>.
(TTY_FORMAT): New macro.
(pam_user): New variable TTY_NAME. Set PAM_TTY by calling
pam_set_item() with a value constructed from getpid().
2013-03-19 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Support PAM beyond Linux-PAM.
* configure.ac (FTPD_LIBPAM): Set to $LIBPAM
for all PAM implementations.
* ftpd/auth.c (auth_user) <default case>
[WITH_PAM && !WITH_LINUX_PAM]: Call pam_user()
if preceding tests were passed and if `auth_type'
is AUTH_TYPE_PAM.
(auth_pass) [WITH_PAM] <AUTH_TYPE_PAM>: Relax old
conditioning on WITH_LINUX_PAM.
* ftpd/extern.h (pam_user, pam_pass, pam_end_login)
[WITH_PAM]: Likewise.
* ftpd/ftpd.c (options) [WITH_PAM] <pam>: Likewise.
(parse_opt) <pam> [WITH_PAM]: Likewise.
(end_login) [WITH_PAM]: Likewise, use of pam_end_login().
* ftpd/pam.c [WITH_PAM]: Likewise, entire file.
(PAM_conv) <PAM_PROMPT_ECHO_OFF> [!WITH_LINUX_PAM]:
Return PAM_CRED_INSUFFICIENT.
(pam_doit) <failed pam_authenticate> [!WITH_LINUX_PAM]:
Check for status PAM_CRED_INSUFFICIENT with empty
password.
* ftpd/ftpd.c (doc) [WITH_PAM]: Mention PAM service
name 'ftp' in text.
(options) [WITH_KERBEROS5] <kerberos5>: Correct
misspelled authentication name.
2013-03-15 Mats Erik Andersson <gnu@gisladisker.se>
rlogind: Incomplete source route security.
The protection against IPOPT_LSRR was not
enforced during Kerberised execution.
* src/rlogind.c (prevent_routing) [IP_OPTIONS]:
New function, broken out of old code. Replace
socket number 0 by a parameter `fd', which makes
certain that daemon-mode is examined correctly.
(rlogind_auth) [IP_OPTIONS]: Call prevent_routing()
early on, before code path separation for Kerberos.
2013-03-15 Mats Erik Andersson <gnu@gisladisker.se>
rshd: Differentiate PAM services.
* src/rshd.c (service) [WITH_PAM]: New variable.
(doc) [WITH_PAM && (KERBEROS || SHISHI)]:
Mention `krsh' in description.
(doit) [WITH_PAM && (KERBEROS || SHISHI)]:
Set PAM service type to "krsh" for kerberised action,
and "rsh" otherwise.
[WITH_PAM]: Pass `service' to pam_start() and to
pam_set_item(PAM_TTY).
(rsh_conv) [WITH_PAM]: Add _GL_UNUSED_PARAMETER to the
function parameter `data'.
2013-03-14 Mats Erik Andersson <gnu@gisladisker.se>
rlogind: PAM support with libshishi.
* src/rlogind.c (doc) [WITH_PAM && SHISHI]:
Mention `krlogin' in description.
(do_pam_check) [WITH_PAM]: New function,
refactored from previous code in do_rlogin().
(do_rlogin) [WITH_PAM]: Remove variable USER.
Replace code block by a call to do_pam_check()
for service `rlogin'.
(do_shishi_login) [SHISHI && WITH_PAM]:
Call do_pam_check() for service `krlogin'.
2013-03-14 Mats Erik Andersson <gnu@gisladisker.se>
* src/rlogind.c (do_shishi_login) [SHISHI]:
Do not free the static pointer PWD!
Call getpwnam() for verification that local
user exists. Add check to prevent root access
unless the flag `allow_root' is set.
Call shishi_ap_done() before sending a log report.
2013-03-13 Guillem Jover <guillem@hadrons.org>
Use standard suid-mode for install.
* ping/Makefile.am (SUIDMODE): Change mode to `4755'.
* src/Makefile.am (SUIDMODE): Likewise.
2013-03-13 Mats Erik Andersson <gnu@gisladisker.se>
rlogind: Initial PAM support.
New code for plain authentication only.
* configure.ac <rlogind summary>: Report PAM.
* src/Makefile.am (rlogind_LDADD): Add $(LIBPAM)
and $(LIBDL).
* src/rlogind.c [HAVE_SECURITY_PAM_APPL_H]:
Include <security/pam_appl.h>.
(pam_rc, pam_handle, pam_conv) [WITH_PAM]:
New variables.
(rlogin_conv) [WITH_PAM]: New function.
(doc) [WITH_PAM]: Add info to string.
(do_rlogin) [WITH_PAM]: New variable USER.
New code block.
(fatal) [WITH_PAM]: Call pam_end().
* src/rlogind.c (rlogind_auth)
[!HAVE_DECL_GETADDRINFO || !HAVE_DECL_NAMEINFO]:
Use ADDRP only within this condition.
2013-03-11 Mats Erik Andersson <gnu@gisladisker.se>
rcp: Functional option `--target-directory'.
Implement the missing case where `-d' is given
an argument.
* src/rcp.c (target): New variable.
(parse_opt) <'d'>: If `arg' has contents, copy it
to `target'.
(main): Only one command line argument is needed for
calls with set `target'. If `target' is not set,
extract it from the very last command line argument,
and decrease `argc' to reflect this action. Apply
colon() and verify() to `target'.
(toremote): Extract host and user name from `target'.
Let I loop until `argc', since `argc' no longer includes
the target directory.
(tolocal): New variable VECT. Loop I until `argc'.
Exchange `target' for `argv[argc - 1]'. Fix VECT to
be a short array with `target', and apply it to sink().
2013-03-09 Mats Erik Andersson <gnu@gisladisker.se>
rcp: Portability fixes.
* src/rcp.c: Include <stdint.h>.
(options): Make argument to `-d' optional, since
the remote server need that form of invocation.
(source): Use format "%jd" and cast as intmax_t
to work around buggy library modes, which otherwise
are missing the last string argument.
2013-03-08 Mats Erik Andersson <gnu@gisladisker.se>
* bootstrap: Updated from gnulib.
2013-03-07 Mats Erik Andersson <gnu@gisladisker.se>
Relax setuid demands.
* src/rcp.c (effuid): New variable.
(main): Set `effuid' by calling geteuid().
Remove test on non-zero geteuid().
(toremote): If `rem < 0' and `errno == EACCES',
then report failure to access privileged port.
(tolocal): Use argument `effuid' for seteuid().
* src/rlogin.c (main): Remove test on non-zero
geteuid(). If `rem < 0' and `errno == EACCES',
then report failure to access privileged port.
* src/rsh.c (main): Likewise.
* ping/libping.c (ping_init): Let error message
mention privileges, instead of non-root access.
Avoid assignment inside if-clauses, as per GCS.
* src/rcp.c (main, tolocal, source, rsource, sink)
(allocbuf): Assign to variables first, then test
their values in an if-clause.
* src/rlogin.c (main, get_window_size, getescape):
Likewise.
* src/rlogind.c (rlogind_auth, do_krb5_login)
(protocol): Likewise.
* src/rsh.c (main, talk, copyargs): Likewise.
* src/rshd.c (doit): Likewise.
2013-03-02 Mats Erik Andersson <gnu@gisladisker.se>
Make the FTP transfer test somewhat robuster.
* tests/ftp-localhost.sh <set-up of DLDIR>:
Reset do_transfer as `false' before probing.
Add `/tmp' as a candidate subdirectory.
Set do_transfer to `true' only with a confirmed
writable directory. Exit with status 99, should
TRANSFERTEST be set, but directory search fails.
2013-02-24 Mats Erik Andersson <gnu@gisladisker.se>
syslogd: Log selectively on program name.
* src/syslogd.c (selector): New variable.
(struct filed): New members `f_progname' and
`f_prognlen'.
(logmsg): Filter on committing program name if
`f->f_progname' has been set for this file.
(init): Free `f->f_progname' and `selector'.
Capture program name selector while parsing.
(cfline): If `selector' is set, indicate its value
in debug printing, and copy it to `f->f_progname',
also setting `f->f_prognlen'.
* doc/inetutils.texi (syslogd invocation): Update.
2013-02-23 Mats Erik Andersson <gnu@gisladisker.se>
syslogd: Portably restart signals. Necessary
for Solaris.
* src/syslogd.c (main) [HAVE_SIGACTION]:
New variable SA. Use sigaction() to install
dispositions for SIGALRM, SIGUSR1, and SIGHUP.
(domark) [!HAVE_SIGACTION]: Reactivate SIGALRM.
(dbg_toggle) [!HAVE_SIGACTION]: Reactivate SIGUSR1.
(trigger_restart) [!HAVE_SIGACTION]:
Reactivate SIGHUP.
* src/syslogd.c (printline): Use an else-block to
prevent duplicate messages when `force_sync' is set.
2013-02-21 Mats Erik Andersson <gnu@gisladisker.se>
libls: Allow repeated invokations. Remove exit()
in this library. Repair numerical stats.
* libls/ls.c (ls_main): Clear `output', all option
flags `f_*', and `optind' to handle correctly repeated
invokations. Replace exit() with return().
<case 'l'>: Do not reset `f_numericonly'.
<default case>: Return with value from usage().
(travers): Replace exit() by return() and set `rval'.
(display): Initialise USER and GROUP to NULL.
Replace exit() with return().
* libls/util.c (usage): Return type `int'.
Replace exit() with return().
* libls/extern.h (usage): Update.
* libls/ls.c (ls_main, traverse, display):
Pull variable assignment out of if-statement.
2013-01-25 Mats Erik Andersson <gnu@gisladisker.se>
libls: Use __opendir2() if present.
* configure.ac: Check for __opendir2, not opendir2.
* libls/fts.c (fts_build) [HAVE___OPENDIR2]:
Change conditional test for declaration of OFLAG.
Initialise OFLAG only with DTF_NODUP, and add
DTF_REWIND and DTF_HIDEW conditionally.
Remove macro opendir2. Assign DIRP from either
__opendir2() or opendir(). Then test DIRP.
2013-01-22 Mats Erik Andersson <gnu@gisladisker.se>
traceroute: Loose source routing.
* src/traceroute.c [HAVE_NETINET_IP_VAR_H]:
Include <netinet/ip_var.h>.
(len_ip_opts, ip_opts, opt_gateways) [IP_OPTIONS]:
New variables.
(argp_options) [IP_OPTIONS]: New option `-g/--gateways'.
(parse_opt) [IP_OPTIONS] <'g'>: New case.
(main): Call trace_ip_opts().
(trace_init) [IP_OPTIONS]: If `len_ip_opts' is positive,
call setsockopt(IP_OPTIONS).
(trace_ip_opts): New function.
traceroute: Settable maximal hop count.
* src/traceroute.c (argp_options): New option `-m/--max-hop'.
(parse_opt) <'m'>: New case.
(main): Exit with EXIT_FAILURE if HOP exceeds `opt_max_hops'.
2013-01-21 Guillem Jover <guillem@hadrons.org>
Cleanup automake variables.
* ftp/Makefile.am (AM_CPPFLAGS): Consume depreciated
macro INCLUDES.
* ftpd/Makefile.am, ifconfig/Makefile.am,
libinetutils/Makefile.am: Likewise.
* libls/Makefile.am (AM_CPPFLAGS): Rename INCLUDES.
* libtelnet/Makefile.am: Likewise.
* ping/Makefile.am (AM_CPPFLAGS): Likewise.
(LDADD): New macro.
(ping_LDADD): Simplify using LDADD.
(ping6_LDADD): Remove.
* src/Makefile.am (AM_CPPFLAGS): Consume INCLUDES.
* talkd/Makefile.am, telnet/Makefile.am,
telnetd/Makefile.am: Likewise.
* talk/Makefile.am (AM_CPPFLAGS): Rename INCLUDES.
* whois/Makefile.am: Likewise.
2013-01-21 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac (AM_C_PROTOTYPES): Remove obsolete macro.
Not supported by automake-1.13.
2013-01-17 Mats Erik Andersson <gnu@gisladisker.se>
ping6: Setting of tclass and flowinfo.
* ping/ping6.c (tclass) [IPV6_TCLASS]: New variable.
(flowinfo) [IPV6_FLOWINFO]: New variable.
(argp_options): Make `--ttl' a synonym for `--hoplimit'.
[IPV6_FLOWINFO]: New option `-F/--flowinfo'.
[IPV6_TCLASS]: New option `-T/--tos'.
(parse_opt) [IPV6_FLOWINFO]: New case 'F'.
[IPV6_TCLASS]: New case 'T'.
(main) [IPV6_TCLASS]: Call setsockopt(IPV6_TCLASS).
[IPV6_FLOWINFO]: Call setsockopt(IPV6_FLOWINFO).
* ping/ping_common.h (OPT_FLOWINFO, OPT_TCLASS): New macros.
2013-01-17 Mats Erik Andersson <gnu@gisladisker.se>
CVE-2010-2529: Infinite loop.
* ping/ping_echo.c (print_ip_opt) <IPOPT_RR>: Break loop
if option is truncated or exhausted.
<IPOPT_TS>: Break loop if option is truncated.
2013-01-17 Mats Erik Andersson <gnu@gisladisker.se>
* ping/ping6.c: Include <arpa/inet.h>.
(print_ip_data): New function.
(print_icmp_error): In verbose mode, let print_ip_data()
display information on returned packet.
* ping/ping_echo.c (print_icmp): Use bitwise-and in test.
2013-01-16 Mats Erik Andersson <gnu@gisladisker.se>
* ping/ping_echo.c (print_ip_header): Empirically test
`ip->ip_len' to decide whether ntohs() is needed.
(print_icmp): Call print_ip_data() only in verbose mode.
2013-01-16 Guillem Jover <guillem@hadrons.org>
* ping/libping.c (ping_xmit): Do not call perror().
Instead return a negative status.
* ping/ping.c (send_echo): New variable RC.
Abort with a message on any error condition.
* ping/ping6.c (ping_xmit): Likewise.
(send_echo): Likewise.
2013-01-07 Mats Erik Andersson <gnu@gisladisker.se>
tftpd: Error handling.
Send NAK on error conditions in chrooted mode,
preventing the client from hanging indefinitely.
* src/tftpd.c (main): Send NAK with ENOUSER as
response, should chrooted mode specify non-existent
user or group. Likewise when setgid() or setuid()
fails. Send NAK with EACCESS, should chroot() fail.
(usage_str, usage): Remove unused constructs.
2013-01-05 Mats Erik Andersson <gnu@gisladisker.se>
tftpd: Group setting.
A group named `nogroup' is not portable enough,
so tidy the chrooting code for robustness.
* src/tftpd.c (DEFAULT_GROUP): Remove macro.
(main): Do not initialize `group'. Delay code
block for chroot set-up until after forking and
socket binding. Separate setgid() from setuid(),
and inherit group membership from owner, should
no group have been specified.
2013-01-02 Mats Erik Andersson <gnu@gisladisker.se>
tftpd: Chrooted mode.
* src/tftpd.c: Include <grp.h>, <pwd.h>, <xalloc.h>.
(chrootdir, group, user): New variables.
(DEFAULT_GROUP, DEFAULT_USER): New macros.
(options): New options `-g/--group', `-s/--secure-dir',
and `-u/--user'. Put new options in separate group.
(parse_opt): Parameter `arg' is now in use.
<`g', `s', `u'>: New cases.
(main): Assign default values to `group', `user'.
If chrooted mode was specified, execute chroot(),
setgid(), and setuid().
* tests/tftp.sh (do_secure_setting): New variable.
Set to true only for the super-user, then activating
two further read tests.
(REDIRECT): Set also for empty VERBOSE.
* doc/inetutils.texi <tftpd invocation>: Fill with
sensible content for old and new capabilities.
2012-12-27 Mats Erik Andersson <gnu@gisladisker.se>
traceroute: Conform to standard application set-up.
* src/traceroute.c (opt_type): Default to TRACE_UDP.
(opt_port): Set to TRACE_UDP_PORT.
(opt_ttl, opt_wait): New variables.
(argp_options): New options `-f/--first-hop', `-I/--icmp',
and `-w/--wait'.
(parse_opt) <`p', `t'> : Use strtol() for better sanitation.
<`f', `I', `w'>: New cases.
(main): Free RHOST after use.
[HAVE_IDN]: Free `hostname'.
(do_try): Set timer from `opt_wait'.
(trace_init): Set `t->ttl' from `opt_ttl'.
* doc/inetutils.texi <traceroute invocation>: Update
with new options. Add a section on diagnostics.
2012-12-19 Mats Erik Andersson <gnu@gisladisker.se>
Detect a writable directory for better coverage.
Add a test for mapping of file names.
* tests/ftp-localhost.sh (DLDIR): New variable.
Put files in $DLDIR of the chrooted user.
(GETME, PUTME): Use mktemp() to generate names.
[do_transfer]: New test of two nmap modes.
2012-12-17 Mats Erik Andersson <gnu@gisladisker.se>
* ftp/cmds.c (cp_subst): Change SRC_LEN to size_t.
New variable OFFSET. Update `*to_p' after realloc(),
making the cursor a valid pointer.
(domap): Calculate BUF_LEN from `mapout', not `name'.
<LOOP, subcase `no token'>: Move character copying
to outer if-block, thus breaking an infinite loop.
2012-12-15 Mats Erik Andersson <gnu@gisladisker.se>
* ftp/cmds.c (put, mput, getit, mget): Check if
domap() has allocated new memory, and only then
update string pointer and free old memory.
(domap) <'[', LOOP>: If cp_subst() substituted
something, set MATCH to 1.
2012-12-07 Mats Erik Andersson <gnu@gisladisker.se>
Activate servers in FreeBSD 9 and 10. They work
sufficiently well with the previous adaptions.
* configure.ac <*-freebsd9* || *-freebsd10*>:
Delete inhibition of ftpd, rlogind, telnetd, and uucpd.
Mixed compilation warnings.
* ftp/cmdtab.c (help): Cast strlen() as int.
* libls/ls.c (display): MAXBLOCK is portably `long'.
* src/rlogind.c (protocol): Make NFD an unsigned int.
* telnet/sys_bsd.c (ayt) [SIGINFO]: Mark `sig' as unused.
* telnet/telnet.c (init_term): Declare static. Delete
unused parameter `fd'. Rewrite numerical end of TERMBUF.
(gettermname): Update call to init_term().
(lm_will, lm_do, lm_mode, slc_import): Cast sizeof()
as int when comparing to NETROOM.
(telnet) [!AUTHENTICATION && !ENCRYPTION]: Trivially
use parameter `user'.
2012-12-07 Mats Erik Andersson <gnu@gisladisker.se>
Keep track of allocations. Was an unlimited use of malloc()!
* src/rcp.c (sink): Change CURSIZE to size_t. Initialize
NAMEBUF and CURSIZE. Free buffer at each allocation, and
set CURSIZE. Capture error condition after failed malloc(),
resetting CURSIZE and continuing with next loop iteration.
Signedness warnings in src/.
* src/hostname.c (parse_file): Use ssize_t for NREAD.
* src/logger.c (IU_MAX_FAC): New macro.
(decode): Remove C. Use `n >= IU_MAX_FAC' to detect
input error. Return N for successful values.
(send_to_syslog): Cast LEN as ssize_t in comparison.
* src/rcp.c (allocbuf): Cast `bp->cnt' as size_t in comparison.
* src/rexecd.c (die): Cast `sizeof buf' as int in comparison.
(getstr): Cast `buf_len >> 3' as ssize_t in comparison.
* src/rshd.c (getstr): Likewise.
2012-12-06 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Allow `--up', `--down' to be used before
interface selection. Applies to all flags.
* ifconfig/options.c (pending_setflags, pending_clrflags):
New variables.
(parse_opt_set_flag): Use parameters to manipulate only
pending_setflags and pending_clrflags, not `ifp->*flags',
since the latter need not be allocated.
(parse_opt_finalize): Assign values to `ifp->setflags'
and `ifp->clrflags' using `pending_*flags'.
* ifconfig/options.h (pending_setflags, pending_clrflags):
New external declarations.
Detect member `struct ifreq.ifr_mtu'.
* configure.ac (HAVE_STRUCT_IFREQ_IFR_MTU): Check for
member ifr_mtu in `struct ifreq'.
* ifconfig/system/solaris.h (ifr_mtu)
[!HAVE_STRUCT_IFREQ_IFR_MTU]: Protect macro definition.
ifconfig: Attend to many compiler warnings.
* ifconfig/flags.c (if_flags): Set member `rev' to 0,
whenever it was missing. Remove duplicate elements
"OACTIVE" and "D2". End array with full element.
(flag_char_tab): End array with full stop element.
* ifconfig/options.c: Include <unused-parameter.h>.
(ifconfig_initializer): Initialize all members.
(formats): End array with full stop element.
(argp_options): New local macro GRP. Add GRP to every
element. Add description to `peer' and `brdaddr'.
End array with full stop element.
(parse_opt_set_flag): Mark ifp as unused.
(default_help_filter): Mark input as unused.
(argp): Add NULL as missing, last element.
* ifconfig/printif.c: Include <unused-parameter.h>.
(put_char, put_int, put_ulong): Mark form as unused.
(put_flags_short): Mark argc and argv as unused.
(fh_nothing): Mark all parameters as unused.
(fh_newline, fh_tabulator, fh_progname, fh_name)
(fh_index): Mark argc and argv as unused.
(fh_exit): Mark form as unused.
* ifconfig/system/bsd.c: Include <unused-parameter.h>.
(system_parse_opt, system_configure): Mark all parameters
as unused.
(system_fh_hwaddr, system_fh_hwtype): Mark argc and argv
as unused.
* ifconfig/system/linux.c: Include <unused-parameter.h>.
(print_hwaddr_ether, print_hwaddr_arcnet, print_hwaddr_dlci)
(print_hwaddr_irda, print_hwaddr_rose): Mark form as unused.
Set had_output.
(print_hwaddr_ax25): Set had_output.
(system_fh_hwaddr, system_hw_type): Mark argc and argv as unused.
(linux_argp_options): Add group member to element "txqlen".
End array with full stop element.
(linux_argp): Fill missing members with NULL.
* ifconfig/system/solaris.c: Include <unused-parameter.h>.
(system_parse_opt): Mark all parameters as unused.
(system_configure) [!IF_VALID_TXQLEN]: Trivially use
paramaters sfd, ifr, and ifs.
2012-12-04 Mats Erik Andersson <gnu@gisladisker.se>
* ifconfig/system/bsd.c (system_help): Update.
(system_parse_opt_rest): Populate function with
parser and actions for command line arguments.
* ifconfig/system/solaris.c (system_help): Update.
(system_parse_opt_rest): Implement actions for the
arguments "up" and "down" of an interface.
2012-12-03 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Audit displaying of metrics.
The portable display is to supress metric naught.
* ifconfig/printif.c (fh_metric_query) [SIOCGIFMETRIC]:
Add the further condition `form->ifr->ifr_metric > 0'
(fh_metric) [SIOCGIFMETRIC]: Do not report value 0 of
`form->ifr->ifr_metric' as 1.
* ifconfig/system/bsd.c (system_fh_metric): Remove.
* ifconfig/system/bsd.h (SYSTEM_FORMAT_HANDLER):
Delete key "metric".
(system_fh_metric): Remove prototype.
Implement exceptional handler for GNU/Linux.
* ifconfig/system/linux.c (system_fh_metric_query)
(system_fh_metric): New functions.
* ifconfig/system/linux.h (SYSTEM_FORMAT_HANDLER):
Add new keys "metric?" and "metric".
(system_fh_metric_query, system_fh_metric):
New prototypes.
2012-12-03 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig.sh: Avoid substring matches.
* tests/ifconfig.sh (LO): Assign inside a loop,
after matching by `expr' against interface name.
Format string errors and warnings.
* ifconfig/options.c (parse_opt_flag_list):
Cast LEN as int for use as width in `%*.*s'.
* src/rcp.c (source): Use "%zd" instead of "%lld".
* src/rexecd.c (doit): Format "%d" for `pwd->pw_gid'.
* telnet/commands.c (ayt_status) [SIGINFO]:
Return status 1.
(help): Cast HELPIDENT as int for use as format width.
2012-11-28 Mats Erik Andersson <gnu@gisladisker.se>
libinetutils.a: Build if_nametoindex(), if_nameindex(),
and if_freenameindex() into library, if they are missing
in the system library.
* libinetutils/Makefile.am (libinetutils_a_SOURCES):
Add if_index.c.
* libinetutils/if_index.c: Moved from old location at
`ifconfig/if_index.c'. Do not include <ifconfig.h>.
* libinetutils/libinetutils.h (if_nameindex)
[!HAVE_STRUCT_IF_NAMEINDEX): New structure declaration.
(if_nametoindex, if_nameindex, if_freenameindex)
[!HAVE_STRUCT_IF_NAMEINDEX): New function declarations.
* ifconfig/Makefile.am (ifconfig_SOURCES): Remove if_index.c.
(noinst_HEADERS): Remove if_index.h.
* ifconfig/if_index.c, ifconfig/if_index.h: Deleted files.
* ifconfig/ifconfig.h: Do not include "if_index.h".
* ifconfig/system.h: Do not include <if_index.h>.
Test script for ifconfig utility.
* tests/ifconfig.sh: New file.
* tests/Makefile.am (dist_check_SCRIPTS) [ENABLE_ifconfig]:
Add ifconfig.sh.
2012-11-23 Mats Erik Andersson <gnu@gisladisker.se>
syslogd: Reusable IP sockets.
Automated test systems seemingly fail here.
* src/syslogd.c (create_inet_socket): Set socket
option SO_REUSEADDR on IP sockets.
2012-11-23 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Output formatting.
* ifconfig/options.c (formats) <gnu format>:
Test with `ifdisplay?' to suppress empty lines
for dormant interfaces.
<net-tools format>: Remove a newline for txqlen.
<netstat format>: Use `exists?' on `ifstat?',
leaving statistics empty if `ifstat?' fails.
2012-11-23 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Initial hwaddr support for BSD.
* ifconfig/options.c (formats) <unix format>:
Place hwtype/hwaddr stanza before addr stanza,
and emit text only if hwtype evaluates to true.
(argp_options): Mention `--format=help' in usage.
* ifconfig/system/bsd.c: Multiple inclusions.
(ifp): New variable.
(ESTABLISH_IFADDRS): New macro.
(system_fh_hwaddr_query, system_fh_hwaddr)
(system_fh_hwtype_query, system_fh_hwtype):
New functions.
* ifconfig/system/bsd.h (IU_BSD_TYPE, ETHERNAME):
New macros.
(SYSTEM_FORMAT_HANDLER): Replace keys "dragonflybsd",
"freebsd", "netbsd", and "openbsd" by the single
IU_BSD_TYPE, encoding the only relevant system type.
Add keys "hwaddr?", "hwaddr", "hwtype?", and "hwtype".
(system_fh_hwaddr_query, system_fh_hwaddr)
(system_fh_hwtype_query, system_fh_hwtype):
New prototypes.
2012-11-21 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Make address changes possible on BSD.
* ifconfig/changeif.c (SET_SIN_LEN): New macro.
(SIOCSIF): Add SET_SIN_LEN, which is needed by
every BSD system.
* ifconfig/options.c (formats) <unix format>:
Add `dstaddr?' stanza for tunnel interfaces.
2012-11-18 Mats Erik Andersson <gnu@gisladisker.se>
* ifconfig/ifconfig.c (main): New independent code
to be executed when `list_mode' is true.
* ifconfig/options.c (list_mode): New variable.
(argp_options): New option `-l/--list'.
(parse_opt) <'l'>: New case.
* ifconfig/options.h (list_mode): New variable.
2012-11-17 Mats Erik Andersson <gnu@gisladisker.se>
* ifconfig/system/Makefile.am (noinst_HEADERS):
Add `solaris.h' which was accidentally removed.
2012-11-17 Mats Erik Andersson <gnu@gisladisker.se>
* ifconfig/system/Makefile.am (noinst_HEADERS):
Add `bsd.h' and `bsd.c' for distribution.
2012-11-17 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Implement stub for BSD systems.
* ifconfig/options.c (formats) <unix format>:
Add metric to printout.
* ifconfig/system.c [__DragonFly__ || __FreeBSD__ ||
__NetBSD__ || __OpenBSD__]: Include "system/bsd.c".
* ifconfig/system.h [__DragonFly__ || __FreeBSD__ ||
__NetBSD__ || __OpenBSD__]: Include "system/bsd.h".
* ifconfig/system/bsd.c, ifconfig/system/bsd.h:
New source files.
2012-11-16 Mats Erik Andersson <gnu@gisladisker.se>
syslogd: Adapt to legacy utmp.
* configure.ac: Check for getutxent.
* srs/syslogd.c (wallmsg)
[UTMP_NAME_FUNCTION || !HAVE_GETUTXENT]: Refine
preprocessor conditional to let read_utmp() handle
systems with legacy implementation of utmp. Adding
a test of !HAVE_GETUTXENT achieves this.
2012-11-16 Mats Erik Andersson <gnu@gisladisker.se>
syslogd, talkd: Alternative utmp access.
* configure.ac: Check for getutxuser.
* src/syslogd.c (wallmsg) [!UTMP_NAME_FUNCTION]:
Remove UTMPBUF and COUNT. Call setutxent(),
getutxent(), and endutxent().
* talkd/process.c (find_user) [HAVE_GETUTXUSER]:
Remove UTMPBUF and UTMP_COUNT. Call setutxent(),
getutxuser(), and endutxent().
* tests/readutmp.c (main) [HAVE_GETUTXUSER]: Remove
UTMPP, UPTR, and COUNT. Call setutxent(), getutxuser(),
and endutxent().
[!HAVE_GETUTXUSER]: Free UTMPP.
2012-11-15 Mats Erik Andersson <gnu@gisladisker.se>
Disable targets robustly.
* am/enable.m4 (IU_DISABLE_TARGET): New macro.
* configure.ac <ftpd, rlogind, rshd, talk, talkd, telnetd>
<uucpd>: Use IU_DISABLE_TARGET to disable unbuildable targets,
avoiding the incomplete manipulations used so far.
2012-11-14 Mats Erik Andersson <gnu@gisladisker.se>
* libinetutils/daemon.c (waitdaemon) [_SC_OPEN_MAX]:
Remove HAVE_SYSCONF from preprocessor conditional.
* src/syslogd.c (main): Install `die' for SIGINT, SIGQUIT,
and SIGUSR1 based on NoDetach. Initially set `dpg_output = 1'
only in debug mode. Print a notice also in non-detached mode.
(cfline): Move assignment to `f->f_file' outside of
if-statement.
(dbg_printf): Test `!(NoDetach && dbg_output)' for output.
* tests/waitdaemon.c: New source file.
* tests/Makefile.am (check_PROGRAMS): Add waitdaemon.
(TESTS): Likewise.
* tests/.gitignore: Likewise.
* tests/syslogd.sh: Add a sleep period after `kill -HUP'.
(OBSCURE): New environment variable. Conduct configuration
test for non-existent log host only if OBSCURE is set.
* tests/utmp.sh: Use who(1), if possible, to improve
reliability of test, checking known users only.
* configure.ac <*-freebsd9* || *-freebsd10*>:
Do not disable syslogd and talkd, as the updated test script
`utmp.sh' will catch the failure as long as it remains.
* src/Makefile.am (AM_CPPFLAGS): Add $(PATHDEF_TTY_PFX).
* talkd/Makefile.am (AM_CPPFLAGS): Likewise.
* telnetd/Makefile.am (AM_CPPFLAGS): Likewise.
* whois/Makefile.am: Set `LANG=C' when invoking perl.
2012-11-10 Mats Erik Andersson <gnu@gisladisker.se>
Consistent use of device prefix.
* srs/rlogind.c (setup_utmp, cleanup): Use PATH_TTY_PFX,
not PATH_DEV.
* talkd/announce.c (announce): Likewise.
* talkd/process.c (find_user): Likewise.
* telnetd/pty.c (setup_utmp, cleanup): Likewise.
* src/rexecd.c (doit) [DEBUG]: Use PATH_TTY, not _PATH_TTY.
* doc/inetutils.texi: Refer to `.k5login', not `.klogin'.
2012-11-09 Mats Erik Andersson <gnu@gisladisker.se>
rcp: Support encrypted libshishi sessions.
* src/rcp.c (toremote) <remote-to-remote>: In format strings,
put options to PATH_RSH before the host argument.
[(KERBEROS || SHISHI) && ENCRYPTION] <doencrypt>:
Add option `-x' in format strings.
[SHISHI && ENCRYPTION]: Close encryption handle and data.
(tolocal): In format string, portability needs `-R' as
option to PATH_CP, not `-r'.
[SHISHI && ENCRYPTION]: Close encryption handle and data.
(kerberos) [SHISHI && ENCRYPTION]: New variables I and XBP.
Call krcmd_mutual() and initialize encryption data.
* src/rshd.c (doit) <denied non-encryption>: Include host name
in syslog message.
2012-11-06 Mats Erik Andersson <gnu@gisladisker.se>
rshd: Allow enforced encryption with libshishi,
rejecting other Kerberized sessions.
* src/rshd.c (uses_encryption) [SHISHI]: New variable.
(options) [(KERBEROS || SHISHI) && ENCRYPTION]:
Expose option `-x/--encrypt'.
(doit) [SHISHI] <client encrypts>: Set `uses_encryption'
instead of `doencrypt'. Fail connection request if
`doencrypt && !uses_encryption', otherwise proceed.
[SHISHI] <logging>: Refine message to indicate whether
encryption is in use.
* src/rlogind.c (do_krb_login) [SHISHI]: Initialize RC
as SHISHI_VERIFY_FAILED.
[KERBEROS]: Initialize RC as 1.
* src/rlogind.c (setup_utmp): Calculate offset
from PATH_DEV.
* telnetd/pty.c (setup_utmp): Likewise.
2012-11-05 Mats Erik Andersson <gnu@gisladisker.se>
rlogind: Buffer overflow, causing stalled and
incomplete login for encrypted connections.
* libinetutils/shishi_def.h (SHISHI_ENCRYPT_BUFLEN):
Rename from previous BUFLEN.
* libinetutils/shishi.c (readenc): Likewise, used
in calling memset() on `buf'.
* src/rlogind.c (do_shishi_login): Replace 100 by
sizeof(cksumdata) when calling snprintf(). Insert
`encrypted' in syslog message for encrypted exchange.
(BUFLEN): Define as SHISHI_ENCRYPT_BUFLEN, if possible,
otherwise fall back to existing value, or to 1024.
(protocol): Declare FIBUF of length BUFLEN, and DBUF
of length BUFLEN+1.
2012-11-02 Mats Erik Andersson <gnu@gisladisker.se>
* telnet/commands.c: Include <limits.h>. Needed
by Solaris to have LLONG_MAX.
2012-11-02 Mats Erik Andersson <gnu@gisladisker.se>
* telnet/commands.c (tn): New block with sanity check of
numerical port, being out of range, or mixed with letters.
2012-11-01 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Build without readline support.
* configure.ac <enable_ftp>: Remove test for disabling
FTP client based on `$gl_cv_lib_readline = no'.
* am/readline.m4 (gl_FUNC_READLINE): Create option
`--disable-readline' using AC_ARG_ENABLE([readline]).
(HAVE_READLINE): Demand also `$enable_readline = yes`.
* ftp/cmds.c [HAVE_READLINE_READLINE_H]: Inclusion guard
for <readline/readline.h>.
[HAVE_READLINE_HISTORY_H]: Guard <readline/history.h>.
(another) [HAVE_READLINE]: Conditional use of readline()
and of add_history().
* ftp/main.c [HAVE_READLINE_READLINE_H]: Inclusion guard
for <readline/readline.h>.
[HAVE_READLINE_HISTORY_H]: Guard <readline/history.h>.
(argp_options) [!HAVE_READLINE]: Alternate description
for `-e/--no-edit'.
(cmdscanner) [HAVE_READLINE]: Conditional use of readline()
and of add_history().
2012-10-30 Mats Erik Andersson <gnu@gisladisker.se>
* tests/readutmp.c: New file.
* tests/utmp.sh: New file.
* tests/Makefile.am (check_PROGRAMS): Add readutmp.
(dist_check_SCRIPTS): Add utmp.sh.
* tests/.gitignore: Add readutmp to list.
2012-10-29 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Increase universality by recognizing the alias
name `pftp' and the option `-e'.
* ftp/cmds.c (another): New variable SIZE. Use LEN
typed as size_t. Condition readline() on `usereadline'
not `fromatty', otherwise read input based on getline().
Likewise, condition add_history() on `usereadline'.
(dotrans): Use type size_t for I, OSTOP, FOUND.
* ftp/ftp_var.h (usereadline): New variable.
* ftp/main.c (argp_options): New option `-e/--no-edit'.
(parse_opt) <'e'>: New case.
(main): Check if invoked as `pftp', setting passive mode.
Clear `usereadline' without a TTY.
(cmdscanner): Change L to ssize_t. New variable LEN.
Condition readline() and add_history() on `usereadline',
else use a getline() block for input.
2012-10-28 Mats Erik Andersson <gnu@gisladisker.se>
* ftpd/popen.c (ftpd_popen): Prevent null deference
and allocation overflow in access to glob patterns.
2012-10-23 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: PAM robustness. Fine tune message passing,
since the finite state automata of FTP can choke
on some multiline messages.
* ftpd/extern.h (lreply_multiline): New prototype.
* ftpd/ftpd.c (user): Transmit a reply containing
only a single line, cutting at the last newline.
(pass): If the credential of an authenticated user
contains a message, reply using lreply_multiline().
(lreply_multiline): New function.
* ftpd/pam.c (PAM_conv): Insert a newline character
between concatenated message strings. Remove only
trailing whitespace, leaving any colon untouched.
(pam_doit): Compare message string to `password:',
including a colon.
2012-10-19 Mats Erik Andersson <gnu@gisladisker.se>
syslogd: Portability of utmp. Disclosed by Solaris 11.
* src/syslogd.c (wallmsg): Call read_utmp() with the
file argument UTMP_FILE, not PATH_UTMP.
* talkd/process.c (find_user): Likewise.
* tests/syslogd.sh (USER): New variable.
<verbose mode>: Add a stanza to the configuration file
for passing all messages also to user $USER.
2012-10-18 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Properly close a user session.
* ftpd/ftpd.c (dologout): Call end_login().
* ftpd/pam.c (pam_doit): Call finishing pam_end()
only if ERROR is not PAM_SUCCESS.
2012-10-18 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Security audit.
* ftpd/auth.c (auth_user): Declare ERR at top.
Replace most `return` inside switch block by `break`.
Put call checkuser(PATH_FTPCHROOT) at function end
whenever authentication succeeded, thus making it
reachable for all authentication modes.
* ftpd/ftpd.c: Include <xgetcwd.h>.
(curdir, makedir, removedir): Remove prototype xgetcwd().
(main): Call localhost() before sending welcome msg.
(complete_login): New variable CWD. Set EUID before
calling chdir() for real users. Call xgetcwd() and
set HOME in environment for all kinds of user.
(end_login): Reset `pcred->logged_in`.
(getdatasock, passive): Call _exit() at failure of
seteuid(cred.uid).
ftp: Self documentating code.
* ftp/ftp.c (getreply): Make ARPA's reply codes
explicit. Let N carry these codes, not an ASCII
character value.
2012-10-11 Mats Erik Andersson <gnu@gisladisker.se>
rlogind: Server and realm detection.
* libinetutils/shishi.c (get_auth): Parse server
name input using shishi_parse_name(), but only if
`srvname' has some content. Retrieve default
realm by calling shishi_realm_default(), and
pass it to shishi_hostkeys_for_serverrealm().
rlogin: Handle urgent data for non-encrypted Kerberos.
This enables window sizing and buffer flushing.
* src/rlogin.c (main): Set sigaction flag SA_RESTART
when installing SIGURG and SIGUSR1; a portability fix.
(oob) [SHISHI]: Assign urgent data `rcvbuf[4]' to MARK
whenever `use_kerberos' is true. This is then compared
to different TIOCPKT_*.
* src/rlogind.c (fatal): Replace an empty format
input by the string "unspecified error", in order
to protect against segfaults in vsnprintf().
2012-10-11 Mats Erik Andersson <gnu@gisladisker.se>
rlogin: Read urgent data also when Kerberos has
been disabled. Needed for window sizing.
* src/rlogin.c (sigwinch): Call get_window_size()
with STDIN_FILENO as file descriptor.
(oob) [SHISHI]: Receive MSG_OOB data whenever
`!use_kerberos' is true.
2012-10-11 Mats Erik Andersson <gnu@gisladisker.se>
* src/rlogind.c (rlogin_daemon)
[(KERBEROS || SHISHI) && ENCRYPTION]: Protect
encrypted port pre-selection.
[(KERBEROS || SHISHI) && !ENCRYPTION]: Protect
standard Kerberos port pre-selection.
2012-10-11 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Set local name correctly for libshishi.
Improve selectivity of intended server host key.
* libtelnet/shishi.h (krb5shishi_is_auth): Replace call
to shishi_hostkeys_for_server(), with a variant where
default realm is made explicit with shishi_realm_default().
* telnetd/telnetd.c (telnetd_setup)
[AUTHENTICATION || ENCRYPTION]: Exchange places of
`local_hostname' and `remote_hostname' in call to
auth_encrypt_init().
rlogind: Enable Kerberised daemon mode listener.
* src/rlogind.c (DEFPORT_KLOGIN, DEFPORT_EKLOGIN): New macros.
(rlogin_daemon): New variable SERVICE. Use service port
`login', `klogin', or `eklogin' according to set options.
* src/rlogin.c (main) <rcmd failure>: Print a NL, finishing
an unfinished error massage emitted by Glibc.
2012-10-08 Mats Erik Andersson <gnu@gisladisker.se>
rlogind: Support libwrap in daemon mode.
* configure.ac <rlogind summary>: Print $LIBWRAP.
* src/Makefile.am (rlogind_LDADD): Add $(LIBWRAP).
* src/rlogind.c [HAVE_TCPD_H]: Include <tcpd.h>.
[WITH_WRAP && !HAVE_DECL_HOSTS_CTL]: New prototype
for missing hosts_ctl() declaration.
(allow_severity, deny_severity) [WITH_WRAP]:
New variables.
(check_host) [WITH_WRAP]: New function.
(rlogin_daemon) [WITH_WRAP]: Call check_host().
(protocol) [!SHISHI]: Trivial use of AP.
* ftpd/server_mode.c (check_host): Use severity
`deny_severity' to syslog() at rejects.
2012-10-05 Mats Erik Andersson <gnu@gisladisker.se>
telnet: Reliability fix caused by OpenSolaris,
where SIGWINCH regularly got lost.
* telnet/sys_bsd.c (sys_telnet_init): New variable SA.
[SIGWINCH]: Install handler with sigaction().
[SIGTSTP]: Likewise.
[SIGINFO]: Likewise.
2012-10-04 Mats Erik Andersson <gnu@gisladisker.se>
* ping/libping.c (ping_set_dest) [HAVE_DECL_GETADDRINFO]:
Alternative and preferred resolver using getaddrinfo().
* ping/ping6.c (print_echo) [NI_IDN]: Add flag NI_IDN
to getnameinfo() if option OPT_NUMERIC is not set.
(ping_set_dest) [AI_IDN]: Add flag AI_IDN to HINTS.
* ping/ping_common.c (ipaddr2str) [NI_IDN]: Add flag
NI_IDN to getnameinfo().
* src/traceroute.c (main) [AI_IDN]: Add flag AI_IDN to HINTS.
[AI_IDN && AI_CANONIDN]: Add flag AI_CANONIDN to HINTS.
2012-10-02 Mats Erik Andersson <gnu@gisladisker.se>
* libinetutils/logwtmp.c [HAVE_STRUCT_UTMPX_UT_SYSLEN]:
Take care of overlong host name when storing length
in `ut.ut_syslen'.
* libinetutils/logwtmpko.c, libinetutils/utmp_init.c:
Likewise.
* ftpd/popen.c, libinetutils/daemon.c,
libinetutils/ttymsg.c, src/inetd.c, src/rshd.c,
src/syslogd.c, telnet/commands.c: Call _exit()
with EXIT_SUCCESS or EXIT_FAILURE, not 0 or 1.
2012-10-02 Mats Erik Andersson <gnu@gisladisker.se>
uucpd: Upgrade, including IPv6.
* src/uucpd.c: Include <unused-parameter.h>.
(hisctladdr, hisaddrlen): Remove variables.
(uucico_location, Logname): New variables.
(nenv): Add `Logname'.
(argp_options): New variable.
(parse_opt): New function.
(argp): Add `argp_options' and `parse_opt'.
(main): New variables HISCTLADDR, HISADDRLEN.
(readline): Read from STDIN_FILENO.
(doit): New signature `(struct sockaddr *, socklen_t)'.
Remove truncation of USER. Ask password for non-existent
user, then fail. Check user shell after password check,
and compare to `uucico_location'. Set LOGNAME in `nenv'
for portability. Call execl() with `uucico_location'.
[HAVE_INITGROUPS]: Guard call to initgroups().
(dologin): New signature
`(struct passwd *, struct sockaddr *, socklen_t)'
[HAVE_DECL_GETNAMEINFO]: Use getnameinfo() as resolver.
[!HAVE_DECL_GETNAMEINFO]: Extend code with gethostbyaddr()
to accept IPv6. Replace inet_ntoa() by inet_ntop().
(dologin) [HAVE_STRUCT_UTMPX_UT_SYSLEN]: Correctly set
the used length of `ut.ut_host'.
2012-10-01 Mats Erik Andersson <gnu@gisladisker.se>
uucpd: Restore inetd code.
Code necessary for inetd mode was accidentally
removed on 2009-10-26. Replace daemon mode code.
* src/uucpd.c: Include <grp.h>.
(hisaddrlen): Type is socklen_t.
(myctladdr): Removed.
(main): Remove variables S and SP. Remove broken,
partial code for daemon mode operation. New calls
to dup2(), getpeername(), doit(), and dologout().
(doit): New calls to initgroups() and execl().
2012-09-28 Mats Erik Andersson <gnu@gisladisker.se>
rlogind: Daemon mode update.
Reinstalling an identical signal action was needed
on legacy systems. Made obsolete by setsig().
* src/rlogind.c (rlogind_sigchld): Remove call to
setsig() for reactivation. Use _GL_UNUSED_PARAMETER.
Make daemon mode able to do IPv4 and IPv6, but only
if getaddrinfo() is available. Use two sockets for
better portability.
* src/rlogind.c (use_af): New variable.
(options): New switches `-4/--ipv4' and `-6/--ipv6'.
Expose optional argument for `-d/--daemon'.
(parse_opt) <'4', '6'>: New cases.
(find_listenfd): New function, generating sockets
for rlogin_daemon().
(rlogin_daemon): Use select() on at most two
listening sockets. Let `use_af' determine IPv4
and/or IPv6. New variables LISTENFD[2], NUMFD,
MAXFD, LFDSET.
2012-09-27 Mats Erik Andersson <gnu@gisladisker.se>
rlogin, rlogind: Signal dispositions.
Use a more portable signal API.
* libinetutils/libinetutils.h: Include <signal.h>.
(setsig): New prototype, exposing old function.
rlogin: Old signal API is inconsistent, even between
libc6 versions.
* src/rlogin.c (setsig): Remove external prototype.
(main): New variable SA. Use STDIN_FILENO, not 0.
Call sigaction() with SIGURG, SIGUSR1, not setsig().
Pass `&osmask' to doit(), needed for window sizing.
(doit): Rename parameter as `osmask' for clarity.
New variable SA. Call sigaction for SIGINT, SIGCHLD.
(setsignal): Fully reworked implementation.
(writeroob): New variable SA. Use sigaction().
(oob): Use STDOUT_FILENO, not 1. Offer ioctl TCIOFLUSH
for systems lacking TIOCFLUSH.
(reader): Rename parameter as `osmask'. New variable SA.
Assume that contemporary getpid() returns positive values.
Call fcntl(F_SETOWN) as early as possible, and set owner
using PID, not PPID. Use sigaction() for SIGTTOU, SIGURG.
(lostpeer): Use input parameter in setsig().
(copytochild): Likewise for kill().
* src/rlogind.c (rlogind_sigchld): Rename parameter.
Replace signal() by setsig().
(main, rlogin_daemon, rlogind_mainloop, protocol):
Replace signal().
2012-09-25 Mats Erik Andersson <gnu@gisladisker.se>
Disable incompatible utmpx implementation.
* configure.ac <*-freebsd9* || *-freebsd10*>:
Disable building of ftpd, rlogind, syslogd,
talkd, telnetd, and uucpd.
2012-09-19 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac <libwrap check>: Call AC_CHECK_DECLS
with hosts_ctl.
* ftpd/server_mode.c (hosts_ctl)
[WITH_WRAP && !HAVE_DECL_HOSTS_CTL]: Add external
prototype whenever undeclared.
* ftpd/ftpd.c (complete_login): Cast pid_t as int
in formatted print.
* src/inetd.c (run_service, readchild, print_service)
(main): Likewise.
* src/syslogd.c (main): Likewise.
* src/uucpd.c (dologout, dologin): Likewise.
(dologout) [PATH_LASTLOG && HAVE_STRUCT_LASTLOG]:
Declare F conditionally.
* ifconfig/changeif.c: Access `HAVE_DECL_*' using `#if',
not using `#ifdef' constructs.
* libinetutils/kcmd.c, libinetutils/localhost.c: Likewise.
* src/rlogind.c, src/rshd.c: Likewise.
2012-09-17 Mats Erik Andersson <gnu@gisladisker.se>
talk: Delay start of curses interface until
the other party has established a connection.
* talk/init_disp.c (init_display): Remove assignment
of `current_state'.
* talk/io.h (p_error): Execute curses function calls
only if `curses_initialized' is true. Otherwise call
perror().
(message): Likewise, placing a call to printf() for
non-empty message strings only.
* talk/talk.c (main): Delay call to init_display() until
after end_msgs(). New messages set in `current_state'.
talkd: Enforce access rights on `~/.talkrc'.
* talkd/acl.c (read_acl): Site-wide file uses `system > 0'.
New code block for the parameter case `system < 0', pushing
a single, deny-all rule.
(open_users_acl): New variables LEVEL, RC and ST. Check
properties of ACL file using stat(). Enforce a deny rule
if they are too permissive.
* doc/inetutils.texi <talkd invocation>: Updated.
2012-09-15 Mats Erik Andersson <gnu@gisladisker.se>
Mark unused parameters as such.
* ftp/cmds.c (setbinary, setascii, settenex, setftmode)
(setform, setstruct, status, setbell, settrace, sethash)
(setverbose, setipany, setipv4, setipv6, setepsv4, setport)
(setprompt, setglob, shell, pwd, quit, disconnect, proxabort)
(setcase, setcr, setpassive, setsunique, setrunique, cdup)
(syst): Add _GL_UNUSED_PARAMETER.
* ftp/ftp.c (abortsend, abortrecv, psabort, abortpt, reset):
Likewise.
* ftp/main.c (parse_opt): Likewise.
Header file and parse_opt() are common treatments.
* src/logger.c: Include <unused-parameter.h>.
(parse_opt): Add _GL_UNUSED_PARAMETER.
* src/rcp.c: Likewise.
(lostconn): Likewise
* src/rexecd.c: Likewise.
* src/rlogind.c (parse_opt): Likewise
(do_shishi_login): Remove variable IV.
* src/rshd.c: Likewise.
* telnet/commands.c: Include <unused-parameter.h>.
(shell): Add _GL_UNUSED_PARAMETER.
* telnet/main.c: Likewise.
(parse_opt): Likewise.
* telnet/sys_bsd.c: Likewise.
(deadpeer, intr, intr2, susp, sendwin): Likewise.
* tests/localhost.c: Likewise.
(main): Likewise.
* whois/whois.c: Likewise.
(ripe_argp_parser, gwhois_argp_parser): Likewise.
2012-09-15 Mats Erik Andersson <gnu@gisladisker.se>
Add missing values in option lists, and in similar
lists. All were detected as compiler warnings.
* ftp/cmds.c (types): Add missing values.
* ftp/cmdtab.c (cmdtab): Likewise.
* ftp/main.c (argp, argp_options): Likewise.
* src/dnsdomainname.c (argp): Likewise.
* src/hostname.c (argp, argp_options): Likewise.
* src/logger.c (arpg): Likewise
(argp_options): Likewise. New macro GRP.
Collect Kerberos options into a group where relevant.
* src/rcp.c (options): Add missing values.
* src/rexec.c (argp): Likewise
(options): Likewise. New macro GRP.
* src/rexecd.c (options): Likewise
* src/rlogin.c (argp, argp_options): Likewise.
* src/rlogind.c (argp): Likewise.
(options): Likewise. New macro GRP.
* src/rsh.c (argp, options): Likewise
* src/rshd.c (argp, options): Likewise
* telnet/commands.c (Togglelist, Setlist, ModeList)
(SlcList, EnvList, AuthList, EncryptList, cmdtab)
(cmdtab2): Add missing values.
* telnet/main.c (argp, argp_options): Likewise.
* telnet/network.c (timeout): Likewise.
* telnet/sys_bsd.c (TimeValue): Likewise.
* whois/whois.c (gwhois_argp, gwhois_argp_children)
(ripe_argp): Add missing values.
(gwhois_arpg_options, ripe_argp_options): Likewise.
New macro GRP.
2012-09-14 Mats Erik Andersson <gnu@gisladisker.se>
libinetutils: Compiler warnings.
* libinetutils/argcv.c (argcv_get): Cast element as int.
* libinetutils/cleansess.c [HAVE_UTMP_H && HAVE_LIBUTIL_H]:
Include <libutil.h>.
* libinetutils/daemon.c: Include <unused-parameter.h>.
(waitdaemon_timeout): Add _GL_UNUSED_PARAMETER.
* libinetutils/kcmd.c (kcmd): Cast strlen() as ssize_t.
Add parantheses in logical expression.
[SHISHI]: Declare SIN_LEN as socklen_t. Trivial use of
parameter service.
* libinetutils/logwtmp.c (OUR_WTMP): New macro.
(_logwtmp): Call open() with OUR_WTMP.
* libinetutils/shishi.c (shishi_auth): Cast sizeof() as
ssize_t. Cast sname as `char *' in assignment of P.
(senderror): Remove function, keeping as comment.
(gat_auth): Remove variables I and AUTH_CORRECT. Cast
size expression as int.
* libinetutils/utmp_init.c [HAVE_UTMP_H && HAVE_LIBUTIL_H]:
Include <libutil.h>.
(utmp_init) [!HAVE_UTMPX_H && !HAVE_PUTUTLINE && HAVE_LOGIN]:
Trivially use parameter id.
* libinetutils/utmp_logout.c [HAVE_UTMP_H && HAVE_LIBUTIL_H]:
Include <libutil.h>.
(utmp_logout) [!HAVE_UTMPX_H && HAVE_PUTUTLINE]: Protect
declaration of UT.
2012-09-14 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: More compiler warnings.
* am/libcurses.m4 (IU_LIB_TERMCAP): Use AC_LINK_IFELSE
instead of AC_CHECK_DECLS to find declaration of tgetent.
* telnetd/term.c (copy_termbuf) [TIOCPKT_IOCTL]: Declare
LEN as size_t. Increment LEN in loop.
* telnetd/utility.c (printdata): Cast *PTR as int.
2012-09-14 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Compiler warnings.
* telnetd/pty.c (startslave) [!AUTHENTICATION]:
Trivially use autoname.
(start_login): Trivially use host, autologin, name.
* telnetd/telnetd.c: Include <unused-parameter.h>
(argp_options): Add missing fields. Collect options
for authentication into a separate group. New macro GRID.
(parse_opt): Add _GL_UNUSED_PARAMETER.
(argp): Add missing fields.
* telnetd/term.c (tty_setlinemode) [!TIOCEXT && !EXTPROC]:
Trivially use `on'.
* telnetd/utility.c (pty_output_datalen): Cast integer
difference as size_t.
(pty_get_char): Likewise.
(stilloob): Add missing field in TIMEOUT.
(getterminaltype) [!AUTHENTICATION]: Trivially use user_name.
(printsub) [AUTHENTICATION && ENCRYPTION]: Declare BUF as
array of unsigned char.
<case TELQUAL_NAME>: Cast array reference as `char *'
inside call to debug_output_datalen.
(_var_long_name): Trivially use start and length.
2012-09-13 Mats Erik Andersson <gnu@gisladisker.se>
Use libdl only when needed, i.e., with libpam.
* configure.ac (LIBDL): New variable. Publish it
using AC_SUBST. When calling AC_CHECK_LIB for
dlopen in libdl, add the action `LIBDL=-ldl' which
avoids a global change of LIBS.
* ftpd/Makefile.am (LDADD): Add $(LIBDL).
* src/Makefile.am (rexecd_LDADD, rshd_LDADD): Likewise.
Link libnsl, libresolv or libsocket only if needed.
* configure.ac: Use AC_SEARCH_LIBS instead of AC_CHECK_LIB
when sensing for libnsl, libresolv, and libsocket.
Refine libidn detection and specification.
* configure.ac <--with-libidn-prefix>: New option.
<libidn detection>: Call AC_MSG_CHECKING after other
checks, and call AC_MSG_RESULT with correct variable.
Preload INCIDN and LIBIDN from $with_libidn_prefix.
In call to AC_CHECKLIB(idn, ...), use preset LIBIDN.
In summary message, print `-lidn' instead of LIBIDN.
2012-09-13 Mats Erik Andersson <gnu@gisladisker.se>
* ifconfig/changeif.c (herror prototype)
[!HAVE_DECL_GETADDRINFO]: Conditional use of prototype.
(set_address) [HAVE_DECL_GETADDRINFO]: New variables RC,
ADDR, HINTS, AI, and RES. New, alternate code for address
resolution using getaddrinfo() and getnameinfo().
* libinetutils/localhost.c (localhost) [HAVE_DECL_GETADDRINFO]:
New variables RC, HINTS, RES, and FQDN. New, alternate code
for address resolution.
* tests/Makefile.am (TESTS): Add `localhost' as test case.
2012-09-11 Mats Erik Andersson <gnu@gisladisker.se>
* ftpd/ftpcmd.y (cmd): Add parantheses to separate
subordinate && from ||.
* ftpd/ftpd.c (off_to_str): Cast OFF as long.
(options): Fill in missing fields.
(main) [!HAVE_INITSETPROCTITLE]: Trivially use envp.
* ftpd/pam.c: Include <unused-parameter.h>.
(pam_pass): Cast passwd as `char *'.
(pam_end_login): Add _GL_UNUSED_PARAMETER.
* ftpd/popen.c (ls_main prototype) [WITH_LIBLS]:
Enclose within conditional WITH_LIBLS.
* ftpd/server_mode.c (server_mode) [HAVE_FORK]:
Trivially use argv.
* libls/fts.c: Include <unused-parameter.h>.
(fts_set): Add _GL_UNUSED_PARAMETER.
* libls/ls.c (display): Cast MAXSIZE as off_t.
2012-09-10 Mats Erik Andersson <gnu@gisladisker.se>
* ping/ping.c (ping_finish): Replace format string "%ld"
by "%zu" for counter status.
* ping/ping6.c (ping_finish): Likewise.
* ping/ping_common.h (struct ping_data): Set type size_t
on fields ping_num_xmit, ping_num_recv and ping_num_rept.
* ping/ping_router.c: Include <unused-parameter.h>.
(ping_router): Add _GL_UNUSED_PARAMETER.
2012-09-07 Mats Erik Andersson <gnu@gisladisker.se>
talk, talkd: Portability issue.
* talk/look_up.c (check_local): New variable ADDR.
Call connect() with ADDR, built from `rp->addr'.
* talkd/talkd.c (talkd_run): New variable CTL_ADDR.
Call sendto() with CTL_ADDR, built from `msg.ctl_addr'.
2012-09-07 Mats Erik Andersson <gnu@gisladisker.se>
traceroute: Support IDN named hosts.
* configure.ac: Check traceroute_BUILD and LIBIDN in
summary message.
* src/Makefile.am (traceroute_LDADD): Add $(LIBIDN).
(INCLUDES): Add $(INCIDN).
* src/traceroute.c: Include <unused_parameter.h>
[HAVE_LOCALE_H]: Include <locale.h>.
[HAVE_IDNA_H]: Include <idna.h>.
(argp_options, argp): Add missing fields.
(main): New variables RC and RHOST. Let getaddrinfo()
resolve RHOST.
[HAVE_SETLOCALE]: Call setlocale().
[HAVE_IDN]: Call idna_to_ascii_lz().
(do_try): Add _GL_UNUSED_PARAMETER.
ping, ping6: Use setlocale() independently of IDN.
Attend to some compiler warnings.
* ping/libping.c: Remove inclusion of <locale.h>.
(ping_set_dest): Remove call to setlocale().
* ping/ping.c: Include <unused-parameter.h>.
[HAVE_LOCALE_H]: Include <locale.h>.
(argp_options, argp): Add missing fields.
(main) [HAVE_SETLOCALE]: Call setlocale().
(sig_int): Add _GL_UNUSED_PARAMETER.
(ping_run): Declare NRESP and I as size_t.
(send_echo): Declare OFF as size_t.
* ping/ping6.c: Include <unused-parameter.h>.
(argp_options, argp): Add missing fields.
(main) [HAVE_SETLOCALE]: Call setlocale().
(sig_int, print_echo, ping_init): Add _GL_UNUSED_PARAMETER.
(ping_run): Declare NRESP size_t and I as `unsigned long'.
(send_echo): Declare OFF as size_t.
(ping_echo): Replace format string "%d" by "%zd".
(ping_set_dest): Remove call setlocale().
* ping/ping_address.c: Include <unused-address.h>.
(print_address): Add _GL_UNUSED_PARAMETER.
* ping/ping_common.c: Include <unused-address.h>.
(init_data_buffer): Use `size_t len' as second parameter.
Declare I as size_t.
(decode_pattern): Add _GL_UNUSED_PARAMETER.
* ping/ping_common.h (init_data_buffer): Update prototype.
* ping/ping_echo.c: Include <unused-parameter.h>.
(ping_echo): Replace format string "%d" by "%zd".
(print_echo, print_ip_data): Add _GL_UNUSED_PARAMETER.
(print_icmp_code): Declare HLEN as size_t.
(print_ip_header): Declare J as size_t.
(icmp_diag): Add missing fields.
* ping/ping_timestamp.c: Include <unused-parameter.h>.
(print_timestamp): Add _GL_UNUSED_PARAMETER.
inetd: Attend to compiler warnings.
* src/inetd.c (toomany): Declare as unsigned.
(argp_options, argp): Add missing fields.
(struct servtab): Declare se_count as unsigned.
(enter): Declare I as size_t.
(parse_opt, echo_dg, discard_dg, chargen_dg)
(machtime_stream, machtime_dg, daytime_stream)
(daytime_dg): Add _GL_UNUSED_PARAMETER.
2012-09-07 Mats Erik Andersson <gnu@gisladisker.se>
talk, talkd: Compiler warnings.
* talk/ctl.c (daemon_addr, ctl_addr, my_addr): Remove
initial values, since they are incomplete.
(open_sockt): Set `my_addr.sin_family' and `my_addr.sin_len'.
(open_ctl): Likewise with `ctl_addr'.
* talk/ctl_transact.c (ctl_transact): Likewise with
`daemon_addr'. Call htons() with `daemon_port'.
* talk/get_addrs.c (daemon_port): Use in host byte order,
calling ntohs() on `sp->s_port'.
* talk/invite.c: Include <unused-parameter.h>.
(re_invite): Add _GL_UNUSED_PARAMETER. Initialise `daemon_addr'.
* talk/msgs.c: Include <unused-parameter.h>.
(disp_msg): Add _GL_UNUSED_PARAMETER.
* talk/talk.c (argp): Fill in missing fields.
* talkd/talkd.c (argp_options, argp): Likewise.
(parse_opt): Add _GL_UNUSED_PARAMETER.
2012-09-07 Mats Erik Andersson <gnu@gisladisker.se>
syslogd, tftp, tftpd, uucpd: Compiler warnings.
* src/syslogd.c (argp_options, parse_opt): Fill in
non-initialised fields.
* src/tftp.c: Include <unused-parameter.h>.
(cmdtab, argp_options, parse_opt): Fill in missing fields.
(setbinary, setascii, status, intr, quit, settrace)
(setverbose, timer): Add _GL_UNUSED_PARAMETER.
* src/tftpd.c: Include <unused-parameter.h>.
(options, argp, formats): Fill in missing fields.
(parse_opt, timeout, justquit): Add _GL_UNUSED_PARAMETER.
* src/uucpd.c (arpg): Fill in missing fields.
Upgrade TFTP test.
* tests/tftp.sh: Make mode `binary' explicit. Add a case
with `ascii' transmission.
(ASCIIFILE, type): New variables.
2012-09-07 Mats Erik Andersson <gnu@gisladisker.se>
talkd: Full ACL capability.
* talkd/acl.c (struct acl): New member `system'.
(read_acl): Rename parameter `silent' as `system',
used to distinguish site-wide and user setting.
If `system' is true and file is set, but non-readable,
then write a syslog message and abort execution.
(open_user_acl): Call read_acl() with `system = 0'.
(acl_match): New variables SYSTEM_ACTION, USER_ACTION,
and FOUND_USER_ACL. Check site-wide ACL against
`msg->r_name' and user ACL against `msg->l_name'.
Travers the full list of rules for applicable actions.
Implement overriding mechanism depending on policy
for the returned value.
* talkd/intalkd.h (strict_policy): New variable.
* talkd/talkd.c (strict_policy): Likewise.
(arpg_options): New option `-S/--strict-policy'.
(parse_opt) <'S'>: New case.
(main): Call read_acl() with `system = 1'.
* doc/inetutils.texi <talkd invocation>: Updated.
2012-09-06 Mats Erik Andersson <gnu@gisladisker.se>
talkd: Partial activation of ACL features.
Upstream Gnulib has repaired read_utmp() call.
* talkd/acl.c (ACT_ALLOW, ACT_DENY): Removed macros.
(read_acl): Add parameter `int silent'. Report missing
file only if `!silent'. Partially decrease syslog severity.
New return values ACL_ALLOW and ACL_DENY.
(open_users_acl): Call read_acl() with silent flag, a file
is not mandatory for users.
(acl_match): Return ACL_ALLOW as default result.
* talkd/announce.c (print_msg, announce): Lower severity
LOG_CRIT to LOG_ERR.
* talkd/intalkd.h (ACL_ALLOW, ACL_DENY): New macros.
(logging): New variable.
(read_acl): Update prototype.
* talkd/process.c (process_request): Delay ACL matching
until protocol and address have been checked. Send answer
FAILED in reply whenever acl_match() returns ACL_DENY.
Give syslog messages lower severity and condition on
`logging || debug'.
* talkd/table.c (insert_table): Change LOG_CRIT to LOG_ERR.
* talkd/talkd.c (logging): New variable.
(doc): Mention service `ntalk'.
(argp_options): New option `-l/--logging'.
(parse_opt) <'l'>: New case.
(main): Call read_acl() with non-silent flag. Explicitly
use STDIN_FILENO as descriptor for talkd_run().
(alarm_handler): New variable OERRNO. Protect and recover
errno across handler actions.
(talkd_run): Commit syslog messages for `logging || debug'.
Lower severity to LOG_NOTICE.
* doc/inetutils.texi <talkd invokation>: Expose the
distinguishing features of the present implementation.
* talk/init_disp.c (init_display): Catch SIGQUIT.
* configure.ac: Include <sys/socket.h> when checking
for `sockaddr_in6.sin6_len' and `sockaddr_storage.ss_len'.
Check talk_BUILD and LIBCURSES in summary message.
2012-08-31 Mats Erik Andersson <gnu@gisladisker.se>
ping, ping6: Support IDN named hosts.
* configure.ac: New checks for `locale.h' and setlocale().
(--with-idn): New setting.
(INCIDN, LIBIDN): New variables.
* ping/Makefile.am (ping_LDADD): Add $(LIBIDN).
(ping6_LDADD): Likewise.
(INCLUDES): Add $(INCIDN).
* ping/libping.c [HAVE_LOCALE_H]: Include <locale.h>.
[HAVE_IDNA_H]: Include <idna.h>.
(ping_set_dest) [HAVE_IDN]: New variables P and RC.
Resolve HOST by a call to idna_to_ascii_lz().
[HAVE_IDN && HAVE_SETLOCALE]: Call setlocale().
* ping/ping6.c [HAVE_LOCALE_H]: Include <locale.h>.
[HAVE_IDNA_H]: Include <idna.h>.
(ping_set_dest): New variable RHOST used in getaddrinfo().
[!HAVE_IDN]: Make RHOST a reference to HOST.
[HAVE_IDN]: Resolve HOST by a call to idna_to_ascii_lz().
[HAVE_IDN && HAVE_SETLOCALE]: Call setlocale().
2012-08-30 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac: Add a final AC_MSG_NOTICE, containing a summary
of established compilation tasks.
(KERBEROS_VERSION): Assign values `krb4' and `krb5'. Change test
values in case patterns.
(enable_authentication, enable_encryption) [-n KERBEROS_VERSION]:
Assign `yes' as default value in two separate tests.
<KERBEROS_VERSION == Shishi>: Have `--without-shishi' bypass
the feature checks for libshishi. Set KERBEROS_VERSION empty
when AC_CHECK_LIB fails. Empty INCAUTH, LIBAUTH, and also
KERBEROS_VERSION when AC_CHECK_HEADER fails.
* tests/Makefile.am (bin_PROGRAMS): Remove variable.
(check_PROGRAMS): New variable replaces bin_PROGRAMS, not added
to variable TESTS.
* tests/syslogd.sh (silence): New variable, decreases verbosity.
2012-08-24 Mats Erik Andersson <gnu@gisladisker.se>
* tests/tftp.sh (silence, bucket): New variables.
Make the script silent in standard case.
2012-08-24 Petr Malát <oss@malat.biz> (tiny change)
* telnetd/utility.c (terminaltypeok): Use 2kb buffer, as suggested
by GNU termcap manual.
2012-08-24 Petr Malát <oss@malat.biz> (tiny change)
* telnetd/utility.c (io_drain): New variable rfds.
(io_drain): Use select to wait for data to be available.
2012-08-22 Petr Malát <oss@malat.biz> (tiny change)
* telnet/telnet.c (options, do_dont_resp, will_wont_resp):
Initialize variables.
(init_telnet): Remove partial initialization from here.
2012-08-22 Simon Josefsson <simon@josefsson.org>
* bootstrap: Updated from gnulib.
2012-08-20 Mats Erik Andersson <gnu@gisladisker.se>
Server realm pairing: Let server name determine
realm to be contacted, as per library configuration.
* libinetutils/shishi.c (shishi_auth): Whenever realm
is not explicit, call shishi_realm_for_server() to get
a usable realm; pass on to shishi_realm_default_set().
* libtelnet/shishi.c (krb5shishi_send): Likewise.
2012-08-17 Mats Erik Andersson <gnu@gisladisker.se>
telnet: Selectable principal name.
* libtelnet/shishi.c (krb5shishi_send): Add a prefix
`host/' to RemoteHostName only if a prefix is missing.
* telnet/commands.c (tn) [AUTHENTICATION || ENCRYPTION]:
Strip off any prefix from HOSTP before resolving address.
[IPV6]: Improve error message at failed resolution.
2012-08-16 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Configurable principal name.
* libtelnet/misc.c (ServerPrincipal): New variable.
(auth_encrypt_init): Add `char *principal' to signature.
Assign value to ServerPrincipal.
* libtelnet/misc.h (ServerPrincipal): New external variable.
* libtelnet/misc-proto.h (auth_encrypt_init): Updated.
* libtelnet/shishi.c: Prune newlines in error messages.
(krb5shishi_is_auth): New variable REALM. Delay shishi_ap()
and shishi_ap_req_der_set() until after complete setup.
Extract server name and realm from ServerPrincipal and
override defaults accordingly. Use variant calls to access
realm also, shishi_hostkeys_for_serverrealm() and
shishi_hostkeys_for_localservicerealm().
* telnet/telnet.c (telnet): Call auth_encrypt_init()
with `principal = NULL'.
* telnetd/telnetd.c (principal) [AUTHENTICATION || ENCRYPTION]:
New variable.
(argp_options) [AUTHENTICATION || ENCRYPTION]: New option
`-S/--server-principal'.
(parse_opt) [AUTHENTICATION || ENCRYPTION] <'S'>: New case.
(telnetd_setup) [AUTHENTICATION || ENCRYPTION]: Pass
`principal' in call to auth_encrypt_init().
2012-08-15 Mats Erik Andersson <gnu@gisladisker.se>
* src/rcp.c (main) [KERBEROS || SHISHI]: Add `!use_kerberos'
when checking for effective root UID.
* src/rlogin.c (main): Likewise.
* src/rsh.c (main): Likewise.
2012-08-15 Mats Erik Andersson <gnu@gisladisker.se>
rcp, rlogin, rsh: Host names with instances.
* libinetutils/kcmd.c (kcmd) [SHISHI]: New variable HOST.
Whenever `*ahost' contains a slash, separate the true host
name into HOST. Use HOST in resolver, and reconstruct
Kerberos principal as `*ahost' afterwards.
* libinetutils/shishi.c (shishi_auth): New variable P.
Check `sname' for a slash in principal name, and construct
TMPSERVER with prefix "host/" if needed.
* src/rcp.c (kerberos) <no Kerberos service>: New variable P.
Strip prefix like `host/' from HOST.
* src/rlogin.c (main): Likewise.
* src/rsh.c (main): Likewise.
rlogind, rshd: Qualified Kerberos server names.
* libinetutils/shishi.c (get_auth): New variables SERVER
and REALM. Decompose `srvname' using shishi_parse_name().
Construct SERVERNAME with prefix "host/" if needed. Use
shishi_realm_default_set() to set realm if present.
* src/rlogind.c (options) [KERBEROS || SHISHI]: Rename
long option name `--servername' as `--server-principal'.
* src/rshd.c (options) [KERBEROS || SHISHI]: Likewise.
* src/rlogin.c (main) <try_connect> [KERBEROS]: Declare HP
and use gethostbyname() only for KERBEROS.
* src/rsh.c (main) [KERBEROS]: Likewise.
rcp, rlogin, rsh: Aborting Kerberized services.
* src/rcp.c (kerberos) [KERBEROS || SHISHI]: Fail with error
if Kerberos authentication fails. Degrade to plain service
only on ECONNREFUSED. Resolve service `shell/tcp' only in
this latter case.
* src/rlogin.c (main) [KERBEROS || SHISHI]: Likewise.
* src/rsh.c (main) [KERBEROS || SHISHI]: Likewise.
Error message handling.
* libinetutils/krcmd.c (krcmd_mutual) [SHISHI]: Report
errors using shishi_strerror().
* libinetutils/shishi.c (shishi_auth) <failed verification>:
Write a null character at the end of the received error
message, not at buffer end.
* src/rshd.c (doit) [SHISHI] <authentication failure>:
Check `err_msg && *err_msg' before use in rshd_error().
Conditionals for extra features.
* src/rcp.c (family) [WITH_ORCMD_AF || WITH_RCMD_AF || SHISHI]:
Add SHISHI to conditional.
(options, parse_opt) [WITH_ORCMD_AF || WITH_RCMD_AF || SHISHI]:
Add SHISHI as provider of `--ipv4' and `--ipv6'.
* src/rlogin.c: Likewise.
* src/rsh.c: Likewise.
(options) [(KERBEROS || SHISHI) && ENCRYPTION]: Condition
`-x/--encrypt' on ENCRYPTION.
2012-08-09 Mats Erik Andersson <gnu@gisladisker.se>
* tests/tftp.sh: Use evaluation `${VERBOSE:+-v}'
to handle empty string uniformly.
2012-08-09 Mats Erik Andersson <gnu@gisladisker.se>
Make building successful on FreeBSD 9.0.
* paths (PATH_UTMP): Add `/var/run/utx.active'.
(PATH_WTMP): Add `/var/log/utx.log'.
* src/Makefile.am (AM_CPPFLAGS): Add $(PATHDEF_UTMPX).
* talkd/Makefile.am (AM_CPPFLAGS): Add $(PATHDEF_UTMP)
and $(PATHDEF_UTMPX).
2012-08-08 Mats Erik Andersson <gnu@gisladisker.se>
telnet: Support k5login authorization.
* libtelnet/misc.c (UserNameRequested): Assign
NULL, not naught.
* libtelnet/auth.c (authenticated): Likewise.
(authenticators) [SHISHI]: Remove two references
to krb5shishi_cleanup.
* libtelnet/shishi.c (krb5shishi_send): Check for
non-empty UserNameRequested as the very first action.
Add UserNameRequested to `HINT.client'.
(krb5shishi_reply): Call shishi_done(), and assign NULL
to `shishi_handle'.
(krb5shishi_status): Remove variables CNAME, CNAMELEN.
Replace call to shishi_encticketpart_client() with a call
to shishi_authorized_p().
(krb5shishi_is_auth): Check version of libshishi and call
shishi_cfg_authorizationtype_set() "k5login basic".
Replace a call to shishi_encticketpart_crealm() with a
call to shishi_encticketpart_clientrealm().
(krb5shishi_is): Remove debug print using puts().
(krb5shishi_printsub): Likewise.
rlogind, rshd: Support k5login authorization.
* libinetutils/shishi.c (get_auth): Check version
of libshishi and call shishi_cfg_authorizationtype_set()
with "k5login basic".
2012-08-03 Mats Erik Andersson <gnu@gisladisker.se>
rlogind, rshd: Protocol exchange adherence.
The implementations in both, with and without
Kerberization, did not follow identical protocols.
* libinetutils/kcmd.c (kcmd) [SHISHI]: Write remote user name
first, then the local user name, falling back to remote name.
* src/rlogind.c (do_shishi_login) [SHISHI]: Read local user
name first, then remote name.
* src/rshd.c (doit): Read `locuser' immediately before `command'.
[!KERBEROS && !SHISHI]: Read `remuser' first.
[KERBEROS || SHISHI]: Read `remuser' last.
[SHISHI]: Insert `Kerberized' into syslog message only for active
Kerberized connection.
* src/rsh.c (options) [WITH_ORCMD_AF || WITH_RCMD_AF || SHISHI]:
Add SHISHI as provider of `--ipv4' and `--ipv6'.
* doc/inetutils.text: Updated.
2012-08-03 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac: Check whether `struct sockaddr_in6'
contains sin6_len. Correctly check for ut_addr_v6
inside `struct utmpx'.
* libinetutils/kcmd.c (kcmd) [SHISHI]: Condition on
HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN for access to ss_len.
(getport): Likewise.
* ping/libping.c (ping_set_dest): Access sin_len
conditioned on HAVE_STRUCT_SOCKADDR_IN_SIN_LEN.
* src/rexec.c (do_rexec): Build INET6 structure
guided by HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN.
* src/tftp.c (resolve_name): Access ss_len based on
HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN.
* src/tftpd.c (main): Likewise.
2012-08-01 Mats Erik Andersson <gnu@gisladisker.se>
Better adaptions to different UTMP implementations.
FreeBSD 9.0 has left most traditions behind.
* configure.ac: Check for login, loginx, logoutx, logwtmp,
and logwtmpx conditioned on libutil. Ensure `LIBUTIL=-lutil'
in cases where `$ac_cv_func_login_tty = yes' or
`$ac_cv_have_decl_openpty = yes'. Check for more fields in
`struct utmp': ut_line, ut_session, ut_time, ut_addr_v6,
and ut_name. Check for `struct lastlogx' and field ll_ss.
Add checks of `struct utmpx' for fields ut_user, ut_name,
ut_id, ut_line, ut_pid, ut_type, ut_exit, ut_tv, ut_session,
ut_syslen, ut_host, ut_ss, ut_addr_v6. Check for pututline
and pututxline.
(UTMPX): Removed macro.
* libinetutils/libinetutils.h (utmp_init): Update.
* libinetutils/cleansess.c [HAVE_LOGOUT && HAVE_LOGWTMP]:
Make the source build conditionally.
* libinetutils/logwtmp.c: Prefer utmpx code if available.
Conditionally use fields in `struct utmpx' or `struct utmp'.
* libinetutils/logwtmpko.c (logwtmp)
[HAVE_UPDWTMPX && !HAVE_LOGWTMP]: New condition on build,
and migration to `struct utmpx'.
* libinetutils/utmp_init.c: Add parameter `char *host'.
Guard structure fields with conditionals. Distinguish
access methods on HAVE_PUTUTXLINE, HAVE_LOGINX, and
HAVE_UPDWTMPX, HAVE_LOGWTMPX. Similarly, test
HAVE_PUTUTLINE, HAVE_LOGIN, HAVE_UPDWTMP, and HAVE_LOGWTMP.
New calls to setutxent() or setutent().
* libinetutils/utmp_logout.c: Essentially likewise. Erase the
fields ut_exit, ut_user, ut_name, and ut_host.
[HAVE_LOGOUTX]: Protect call to logoutx()/logwtmpx().
[HAVE_LOGOUT]: Likewise for logout()/logwtmp().
* libls/print.c: Do not include <utmp.h>.
* src/rlogind.c: Remove conditional on UTMPX and local
prototypes for utmp_ptsid() and utmp_init(). Always use
setup_utmp()
(setup_utmp): New argument `host'.
[!HAVE_LOGOUT && !HAVE_LOGWTMP]: Call utmp_logout().
* src/uucpd.c [HAVE_UTMPX_H]: Include <utmpx.h>.
(dologout) [HAVE_LOGWTMPX]: Call logwtmpx().
[HAVE_LOGWTMP && !HAVE_LOGWTMP]: Call logwtmp().
[HAVE_PUTUTXLINE && !HAVE_LOGWTMPX && !HAVE_LOGWTMP]:
Manual setup for recent FreeBSD.
(dologin): Likewise.
* telnetd/pty.c: Always use setup_utmp().
(setup_utmp): New argument `host'.
FreeBSD 9.0 uses new paths.
* paths (PATH_UTMPX): Add `/var/run/utx.active'.
(PATH_WTMPX): Add `/var/run/utx.log'.
(PATH_LASTLOG): Add `/var/run/utx.lastlogin'.
2012-07-29 Mats Erik Andersson <gnu@gisladisker.se>
Out-of-tree build with libshishi.
* telnet/Makefile.am (INCLUDES): Add `-I$(top_srcdir)'.
Obsolete source file.
* libtelnet/Makefile.am (libtelnet_a_SOURCES): Remove
reference to `getent.c'.
2012-07-27 Mats Erik Andersson <gnu@gisladisker.se>
rlogin, rshd: Protocol coherence.
* configure.ac: Check for `getpwuid_r'.
* libinetutils/kcmd.c (kcmd) [SHISHI]: Transmit `locuser' if
defined at all. Set `errno' to ENOENT at protocol failure.
* libinetutils/krcmd.c [SHISHI && HAVE_GETPWUID_R]: Include
<stdlib.h>, <unistd.h>, and <pwd.h>. New static variables
`pwbuflen', `pwbuf', `pwstor', and `pwd'.
(krcmd) [SHISHI && HAVE_GETPWUID_R]: Determine local user
using getpwuid_r() and pass this on to kcmd().
(krcmd_mutual) [SHISHI && HAVE_GETPWUID_R]: Likewise.
* src/rlogin.c (main) <label try_connect>: New variable
KRB_ERRNO, used to track error causes reliably.
* src/rlogind.c: Include <stdarg.h>.
(rlogind_error): New function, reusing code from fatal().
(fatal): Altered as trivial wrapper around rlogind_error().
(do_krb_login): Check `*err_msg' in detecting messages.
(do_shishi_login): Read `ad->rusername' and `ad->lusername'
in the order mandated by exchange protocol, observing their
meaning from server's view. Check `error' in verifying
successful exchange. Provide error messages in case of
failure. Delay syslog message for success until applicable,
and provide more detail in both syslog messages.
* src/rshd.c (doit) [SHISHI]: Read `remuser' and `locuser'
in the order relevant from server side perspective. Check
`error' in verifying successful exchange. Pass error
messages and better syslog messages in response to exchange
and authentication.
2012-07-24 Mats Erik Andersson <gnu@gisladisker.se>
rcp: Non-encrypting libshishi support.
* src/rcp.c [SHISHI]: Include <shishi.h>, `shishi_def.h'.
[ENCRYPTION]: Replace obsolete conditionals on CRYPT.
(dest_realm, use_kerberos, doencrypt) [KERBEROS || SHISHI]:
Always declare variables.
(h, enckey, iv1, iv2, iv3, iv4, ivtab, keytype, keylen)
(rc, wlen) [SHISHI]: New variables.
(options, parse_opt) [KERBEROS || SHISHI]: Make `-K', '-k'
and `-x' available with libshishi.
(main) [KERBEROS || SHISHI]: If `doencrypt && !use_kerberos'
then exit with failure.
(toremot): Invalidate descriptor `rem'.
[SHISHI]: Call shishi_done() at completion.
(tolocal) [SHISHI]: Likewise.
(kerberos) [KERBEROS || SHISHI]: New variable KRB_ERRNO,
used to capture error conditions better. New code for
libshishi support.
(oldw) [KERBEROS || SHISHI]: Extend to libshishi.
* libinetutils/shishi.c (shishi_auth) <missing ticket>:
Add realm to error message, call shishi_realm_default().
* src/rsh.c (talk) [KERBEROS && ENCRYPTION]: Replace
obsolete macro CRYPT. Replace non-existent variable
`doenencryption' by `doencrypt'.
2012-07-23 Mats Erik Andersson <gnu@gisladisker.se>
rcp, rlogin, rlogind: IP_TOS mending.
* src/rcp.c (toremote, tolocal)
[IP_TOS && IPPROTO_IP && IPTOS_THROUGHPUT]: New variables
SS and SSLEN. Call getpeername() to determine domain and
call setsockopt(IP_TOS) only for family AF_INET.
* src/rlogin.c (main): Likewise.
* src/rlogind.c (rlogind_mainloop)
[IP_TOS && IPPROTO_IP && IPTOS_THROUGHPUT]: Set socket
option IP_TOS only for family AF_INET.
2012-07-22 Mats Erik Andersson <gnu@gisladisker.se>
rlogin, rsh: Find official host name.
* libinetutils/kcmd.c (kcmd) [HAVE_DECL_GETADDRINFO]:
New variable FQDN. Establish official host name by
calling getnameinfo() on requested host.
2012-07-22 Mats Erik Andersson <gnu@gisladisker.se>
rsh, rlogin: Working IPv6 with libshishi.
* libinetutils/kcmd.c (kcmd) [SHISHI]: Add a
parameter `int af' to signature. Apply as
`hints.ai_family = af'.
* libinetutils/krcmd.c (kcmd) [SHISHI]: Update.
(krcmd) [SHISHI]: Add parameter `int af'. Pass
this to kcmd().
(krcmd_mutual) [SHISHI]: Likewise.
* libinetutils/shishi_def.h (krcmd, krcmd_mutual):
Update signatures.
* src/rlogin.c (main) [SHISHI] <try_connect>:
Add parameter `family' to krcmd() and krcmd_mutual().
* src/rsh.c (main) [SHISHI] <try_connect>: Likewise.
2012-07-21 Mats Erik Andersson <gnu@gisladisker.se>
r-commands: Partial IPv6 support.
Adapt host resolution to cope with IPv6,
in particular for libshishi related code.
* libinetutils/kcmd.c (getport): New signature
`(int *, int)', adding address family parameter.
Update code to use `struct sockaddr_storage'.
New variable LEN.
(kcmd): New alternate code using getaddrinfo(),
instead of gethostbyname().
[HAVE_DECL_GETADDRINFO]: New variables HINTS, AI, RES.
* libinetutils/shishi_def.h <struct auth_data>: Changed
type of FROM to `struct sockaddr_storage'.
* src/rlogind.c <struct auth_data> [!SHISHI]: Likewise.
(rlogind_auth): New variables ADDRP, PORT. Adapt to new
type of `auth_data.from'.
[!KERBEROS]: Accept families AF_INET and AF_INET6.
(rlogind_mainloop): Adapt to new `auth_data.from'.
(do_rlogin): Likewise.
[WITH_IRUSEROK_AF || WITH_IRUSEROK]: New variable ADDRP.
(do_shishi_login): New type `struct sockaddr_storage'
for SOCK.
2012-07-18 Mats Erik Andersson <gnu@gisladisker.se>
rlogin: Close libshishi handle.
The normal logout action should lead to an
orderly close down of the active libshishi
handle, otherwise the tickets get lost.
* src/rlogin.c (doit) <reader returning> [SHISHI]:
Call shishi_done() in authenticating mode, possibly
also shishi_key_done() and shishi_crypto_close().
2012-07-18 Mats Erik Andersson <gnu@gisladisker.se>
rlogin: Non-authenticating with libshishi.
Verified functionality with `-K' switch.
* src/rlogin.c (OPTIONS): Remove unused macro.
(main): Call doit() with reference to SMASK,
not OSMASK.
(reader) [SHISHI]: Check OOB data only in
Kerberos mode, i.e., for set `use_kerberos'.
rlogind: Authenticating mode with libshishi.
Avoid segmentation faults.
* src/rlogind.c (so_krb_login): Properly set
an empty error message by `*err_msg = NULL'.
(do_shishi_login): Do not free CKSUM before use,
but do so afterwards.
2012-07-14 Mats Erik Andersson <gnu@gisladisker.se>
telnetd: Activate authentication modes.
Send TELOPT_AUTHENTICATION based on the
authentication level chosen for the server.
* telnetd/utility.c (getterminaltype)
[AUTHENTICATION]: Choose between send_wont(),
send_do() and send_will() with TELOPT_AUTHENTICATION
depending on `auth_level'.
2012-07-13 Mats Erik Andersson <gnu@gisladisker.se>
* telnetd/telnetd.c (auth_level) [AUTHENTICATION]:
Use only in kerberized server builds.
(arpg_options, parse_opt) [AUTHENTICATION]
<-a/--authmode>: Likewise.
(parse_mode) [AUTHENTICATION]: Likewise.
* telnetd/utility.c (io_drain) <EAGAIN in read()>:
Silence useless logging message `ttloop: retrying'.
2012-07-13 Mats Erik Andersson <gnu@gisladisker.se>
telnet, telnetd: Set service name for libshishi
in server and allow client to specify realm.
* libtelnet/shishi.c (dest_realm): New variable.
(krb5shishi_send): Call shishi_realm_default_set()
whenever `dest_realm' is set.
(krb5shishi_is_auth): New variable SERVER. Construct
a service name from `LocalHostName' and use it in a
call to shishi_hostkeys_for_server().
* telnet/main.c (dest_realm) [KRB4 || SHISHI]:
New external variable.
(argp_options) [AUTHENTICATION && (KRB4 || SHISHI)]:
Activate the option `-k/--realm' also whith SHISHI.
(parse_opt) [AUTHENTICATION && (KRB4 || SHISHI)]:
Likewise.
2012-07-11 Mats Erik Andersson <gnu@gisladisker.se>
Allow builds on OpenSolaris with libshishi.
* telnet/main.c: Include <arpa/telnet.h>.
2012-07-10 Mats Erik Andersson <gnu@gisladisker.se>
rshd: Resolve conflicts `int' versus `size_t'.
Inappropriate use of `int' leads to failure
of authentication on 64-bit architectures.
* libinetutils/shishi.c (shishi_auth): Let OUTLEN
be `size_t'. Read and write lengths using MSGLEN.
(get_auth): New argument type `size_t *cksumlen'.
Let OUTLEN be `size_t'. New variable LEN.
(readenc, writeenc): New type `size_t outlen'.
* libinetutils/shishi_def.h (shishi_auth):
Modified signature.
* src/rlogind.c (do_shishi_login): Use `size_t'
for CKSUMLEN and `socklen_t' for SOCKLEN.
* src/rshd.c (doit) [SHISHI]: Likewise.
2012-07-07 Mats Erik Andersson <gnu@gisladisker.se>
* src/rshd.c (doit) <PAM_NEW_AUTHTOK_REQD>:
When either pam_authenticate() or pam_acct_mgmt()
require token renewal, then call pam_chauthtok()
and repeat the previous call.
(rsh_conv) <PAM_PROMPT_ECHO_OFF>: Build a full
pam_response structure using an emtpy password,
instead of returning an empty pointer. Make a
syslog notice showing the passed message string.
2012-07-05 Mats Erik Andersson <gnu@gisladisker.se>
rsh, rshd: Functional Shishi code. Tested on
32-bit system, with and without encryption,
but without PAM.
* src/rlogind.c (servername): New variable.
(options): New option `-S/--servername'.
(parse_opt) <'S'>: Implement `-S'.
(do_shishi_login): Add `servername' as additional
argument to get_auth().
* src/rsh.c (servername): New variable.
(options): New option `-S/--servername'. Rephrase
explanation for `-v/--vacuous'.
(parse_opt) <'S'>: Implement `-S'.
(doit): Add `servername' as additional argument to
get_auth(). Apply ntohs() to PORT in calculating
CKSUMDATA. Do not free CKSUM before use!
(doit) [WITH_IRUSEROK_AF && !WITH_PAM]: Calculate
FROMADDRP separately, not within nested conditionals.
* libinetutils/kcmd.c (kcmd) [SHISHI]: Let arguments
`laddr' and `faddr' be `struct sockaddr_storage *'.
New variables LEN and PORT, use `struct sockaddr_storage'
for SIN and FROM. Modify resolver code to handle AF_INET
and AF_INET6.
* libinetutils/krcmd.c (krcmd) [SHISHI]: Produce error
message using shishi_strerror() at failures.
(krcmd_mutual) [SHISHI]: Use `struct sockaddr_storage'
for LADDR and FADDR.
* libinetutils/shishi.c (shishi_auth, get_auth): Return
meaningful error status, not `1' every time.
(shishi_auth) <ticket fetch failure>: Report Kerberos
principal name, not only host name of server.
(shishi_auth) <authentication response reading>: Store
int32 sized answer in an integer, not in a char! Report
a failure in case authentication actually failed.
(get_auth): Add a further parameter `char *srvname'.
Call shishi_server_for_local_service() only if `srvname'
was NULL. Otherwise, manually assemble the host's
principal name.
(get_auth) <authentication type failure>: Follow protocol
and send a response 0x01.
(get_auth) <protocol version failure>: Follow protocol
and send a response 0x02.
* libinetutils/shishi_def.h (get_auth): Update signature.
2012-07-03 Mats Erik Andersson <gnu@gisladisker.se>
* libinetutils/kcmd.c (kcmd, getport)
[HAVE_STRUCT_SOCKADDR_IN_SIN_LEN]: Initiate `sin.sin_len'.
(kcmd): Calculate address strings using inet_ntop().
Use correct address location in message `Trying ...'.
* src/rsh.c (main) [KERBEROS || SHISHI]: New variable
KRB_ERRNO used for proper error diagnostics. Assign a
value after each authentication call.
(warning): Remove erroneous call to va_arg().
2012-07-02 Mats Erik Andersson <gnu@gisladisker.se>
* libinetutils/shishi_def.c (shishi_auth): New type
`unsigned short port' of seventh parameter.
* libinetutils/shishi.c (shishi_auth): Likewise.
Call shishi_init() before shishi_realm_default_set().
* src/rlogin.c (parse_opt) <'k'>: Copy value from `arg'.
* src/rsh.c (options): The option `-k/--realm' takes
a value REALM, which was missing.
2012-07-01 Mats Erik Andersson <gnu@gisladisker.se>
rshd: Fix non-kerberized Shishi code.
* src/rshd.c (options) [KERBEROS || SHISHI]: Add missing
SHISHI to conditional activation of `-k/--kerberos' and
`-v/--vacuous'.
(doit) [KERBEROS] <check address family>: Remove SHISHI
in conditional, thus preventing libshishi based server
from issuing failure for non AF_INET connections.
(doit) [SHISHI && use_kerberos] <authentication>:
Insert missing `if (use_kerberos)' before code block
for conducting Shishi authentication; adjust indentation
of this complete block!
(doit) [SHISHI] <checksum test>: Conditionally activate
getsockname() for reporting receiving port.
2012-06-25 Mats Erik Andersson <gnu@gisladisker.se>
rlogind: Prepare for address independence.
Update some coding techniques to simplify later
IPv6 migration.
* libinetutils/shishi_def.h (struct auth_data):
New members `socklen_t fromlen', `char *hostaddr'.
* src/rlogind.c (struct auth_data): Likewise.
(rlogin_daemon) [HAVE_STRUCT_SOCKADDR_IN_SIN_LEN]:
Assign missing value for `saddr.sin_len'.
(rlogind_auth): Use `ap->hostaddr' as address string.
[HAVE_DECL_GETNAMEINFO || HAVE_DECL_GETADDRINFO]:
New variables RC and HOSTSTR; delete HP in this case.
[HAVE_DECL_GETNAMEINFO]: Alternate code for finding
host name.
[HAVE_DECL_GETADDRINFO && HAVE_DECL_GETNAMEINFO]:
Alternate code for host name validation.
(rlogind_mainloop): Deleted variable SIZE. New
variables ADDRSTR and REPLY. Put socket address
size in `auth_data.fromlen'. Determine host address
`auth_data.hostaddr' by calling inet_ntop() once.
[WITH_IRUSEROK_SA || WITH_IRUSEROK_AF || WITH_IRUSEROK]:
Choose the best available iruserok variant.
[WITH_RUSEROK_AF || WITH_RUSEROK]: Choose best variant.
(do_shishi_login): Compute SOCKLEN as `sizeof (sock)'.
2012-06-25 Mats Erik Andersson <gnu@gisladisker.se>
rcp, rlogin, rsh, rshd: IPv6 ability.
* src/rcp.c (family) [WITH_ORCMD_AF || WITH_RCMD_AF]:
New variable.
(options) [WITH_ORCMD_AF || WITH_RCMD_AF]: New options
`4/ipv4' and `6/ipv6'.
(parse_opt) [WITH_ORCMD_AF || WITH_RCMD_AF] <4, 6>:
Assign value AF_INET or AF_INET6 to `family'.
(toremote, kerberos) [WITH_ORCMD_AF || WITH_RCMD_AF]:
Replace AF_INET by `family' in orcmf_af() and rcmd_af().
(tolocal) [WITH_ORCMD_AF || WITH_RCMD_AF]: Likewise.
[!KERBEROS && WITH_ORCMD_AF]: Correction to conditional.
Call one of the rcmd() variants only if the macro KERBEROS
is not defined.
* src/rlogin.c (family) [WITH_ORCMD_AF || WITH_RCMD_AF]:
New variable.
(argp_options) [WITH_ORCMD_AF || WITH_RCMD_AF]: New
options `4/ipv4' and `6/ipv6'.
(parse_opt) [WITH_ORCMD_AF || WITH_RCMD_AF] <4, 6>:
Assign value AF_INET or AF_INET6 to `family'.
(main) [WITH_ORCMD_AF]: Call orcmd_af().
[WITH_RCMD_AF && !WITH_ORCMD_AF]: Call rcmd_af().
[WITH_ORCMD && !WITH_ORCMD_AF && !WITH_RCMD_AF]:
Call orcmd().
* src/rsh.c (family) [WITH_ORCMD_AF || WITH_RCMD_AF]:
New variable.
(options) [WITH_ORCMD_AF || WITH_RCMD_AF]: New options
`4/ipv4' and `6/ipv6'.
(parse_opt) [WITH_ORCMD_AF || WITH_RCMD_AF] <4, 6>:
Assign value AF_INET or AF_INET6 to `family'.
(main) [WITH_ORCMD_AF]: Use `family' in last argument
to orcmd_af().
[WITH_RCMD_AF]: Likewise for rcmd_af().
* src/rshd.c (main): New type `struct sockaddr_storage from'.
Cast &FROM as `struct sockaddr *' when calling doit().
(doit): New signature `(int, struct sockaddr *, socklen_t)'.
Adapt code to new parameter type `struct sockaddr * fromp',
using casts whenever needed. Check `fromp->sa_family'.
[WITH_IRUSEROK_AF && !WITH_PAM]: New variable FROMADDRP.
[KERBEROS || SHISHI]: Check for IPv4 only in this case.
<hostname validation> [HAVE_DECL_GETNAMEINFO]: Use the
flag NI_NAMEREQD.
2012-06-19 Mats Erik Andersson <gnu@gisladisker.se>
rshd: PAM session handling.
* src/rshd.c: Include <sys/wait.h>.
(doit) <port != 0 && parent> [WITH_PAM]: Call
pam_close_session(), pam_setcred(), and pam_end().
(doit) <without port> [WITH_PAM]: Call fork(). Parent
waits for child and properly closes PAM session.
(doit) <child> [WITH_PAM]: Call pam_open_session().
2012-06-18 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac (WITH_ORCMD_AF, WITH_ORCMD, WITH_RCMD_AF)
(WITH_RRESVPORT_AF, WITH_IRUSEROK_AF, WITH_IRUSEROK_SA)
(WITH_RUSEROK_AF): New macros.
* src/rcp.c (toremote, tolocal, kerberos)
[WITH_ORCMD_AF || WITH_RCMD_AF || WITH_ORCMD]:
Replace rcmd() by orcmd_af(), rcmd_af(), or orcmd().
* src/rsh.c (main)
[WITH_ORCMD_AF || WITH_RCMD_AF || WITH_ORCMD]: Likewise.
* src/rshd.c (doit) [WITH_RRESVPORT_AF]: Use rresvport_af()
instead of rresvport().
[WITH_IRUSEROK_SA || WITH_IRUSEROK_AF]: Replace iruserok()
with iruserok_sa() or iruserok_af().
[WITH_RUSEROK_AF]: Use ruserok_af(), not ruserok().
2012-06-18 Mats Erik Andersson <gnu@gisladisker.se>
* src/rshd.c (doit): New signature
`(int, struct sockaddr_in *, socklen_t)'.
(main): Pass FROMLEN to doit().
(doit): New variables INPORT, RC, PORTSTR, ADDRSTR.
(doit) [HAVE_DECL_GETNAMEINFO]: New variable ADDRNAME.
(doit): Put numeric info in ADDRSTR, INPORT, PORTSTR
early on, later replacing multiple inet_ntoa(). Do not
overwrite `fromp->sin_port', but use INPORT, PORTSTR.
Prefer using getnameinfo().
(doit) <address verification> [HAVE_DECL_GETNAMEINFO]:
New alternate code.
2012-06-15 Mats Erik Andersson <gnu@gisladisker.se>
rshd: Duplicate static memory results. Consistently
needed on systems running DragonFlyBSD.
* src/rshd.c (doit): When assigning HOSTNAME, apply
strdup() to results of inet_ntoa() and `hp->h_name'
in order to avoid loss of its contents later on.
rshd: Implement PAM support.
* src/Makefile.am (rshd_LDADD): Add also $(LIBPAM).
* src/rshd.c [HAVE_SECURITY_PAM_APPL_H]: Include
<security/pam_appl.h>.
(pam_rc, pam_handle, pam_conv) [WITH_PAM]: New variables.
(rsh_conv) [WITH_PAM]: New function.
(iruserok) [!WITH_PAM && __GLIBC__ && WITH_IRUSEROK]:
Set prototype only in absence of WITH_PAM.
(doc) [WITH_PAM]: Expand string content.
(username, logname, homedir, shell, path): Increase lengths,
including a preamble like `SHELL='.
(rhost): New variable used for environment variable RHOST.
(envinit) [!WITH_PAM]: Use only in absence of PAM support.
(doit) [WITH_PAM]: New code.
[!WITH_PAM && WITH_IRUSEROK]: Call iruserok() only in
absence of PAM.
[!WITH_PAM && !WITH_IRUSEROK && WITH_RUSEROK]: Likewise
for ruserok().
(doit) <fail label> [WITH_PAM]: Report errors via syslog.
(doit): Replace numerical offset by key string size when
setting `homedir', `path', `shell', and `username'.
Really assign a value to `logname', for portability.
(doit) <failed execl>: Report to syslog.
2012-06-15 Mats Erik Andersson <gnu@gisladisker.se>
* src/rshd.c (doit) [HAVE_GETPWNAM_R]: New variables
PWBUF, PWBUFLEN, PWSTOR, and RET. Call getpwnam_r(),
checking both `ret' and `pwd == NULL' for failure.
2012-06-15 Simon Josefsson <simon@josefsson.org>
* bootstrap: Updated from gnulib.
2012-06-11 Mats Erik Andersson <gnu@gisladisker.se>
rexecd, rlogind: Distinguish logging facility.
Use LOG_AUTH only for authentication messages.
* src/rexecd.c (doit): Add LOG_AUTH to syslog() in user
contexts. Otherwise use default LOG_DAEMON in openlog().
* src/rlogind.c (main, do_rlogin, do_krb4_login)
(do_krb5_login, do_shishi_login): Likewise.
2012-06-09 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Long address transfer request.
* ftpd/ftpcmd.y (LPRT): New token.
(long_host_port): New value returning type.
* doc/inetutils.texi (ftpd invocation): Updated.
2012-06-07 Mats Erik Andersson <gnu@gisladisker.se>
rexecd: Audit of PAM code.
* src/rexecd.c (doc) [WITH_PAM]: Expand string.
(doit): Remove variable TOKEN. Add flag PAM_SILENT
in call to pam_setcred(). Really update USER when
calling pam_get_item(PAM_USER). When execl() fails,
close properly by calling pam_end().
2012-06-07 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Audit of existing PAM code.
* ftpd/extern.h (pam_end_login) [WITH_LINUX_PAM]:
New prototype.
* ftpd/ftpd.c (end_login) [WITH_LINUX_PAM]: Call
pam_end_login() to tear down current client.
* ftpd/pam.c: Include <syslog.h>.
(pam_doit): Add missing call to pam_open_session().
(pam_end_login): New function.
2012-06-06 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Restrict to Linux-PAM, which is only valid code.
* configure.ac (WITH_PAM): Add check for PAM_CONV_AGAIN.
(WITH_LINUX_PAM, FTPD_LIBPAM): New variables.
* ftpd/Makefile.am (LDADD): Replace LIBPAM by FTPD_LIBPAM.
* ftpd/auth.c (auth_user, auth_pass) [WITH_LINUX_PAM]:
Replace old WITH_PAM by correct WITH_LINUX_PAM.
* ftpd/extern.h [WITH_LINUX_PAM]: Likewise.
* ftpd/ftpd.c [WITH_LINUX_PAM]: Likewise.
* ftpd/pam.c [WITH_LINUX_PAM]: Likewise.
(PAM_CONV_AGAIN, PAM_INCOMPLETE): Removed macro definitions.
(PAM_conversation): Initialise second element to NULL.
(GET_MEM): Return PAM_BUF_ERR.
(PAM_conv) [!PAM_CONV_AGAIN]: Set RETVAL to PAM_CONV_ERR.
(pam_doit) [PAM_CONV_AGAIN]: Test `error == PAM_CONV_AGAIN'.
[PAM_INCOMPLETE]: Test `error == PAM_INCOMPLETE'.
(pam_doit): Return PAM_SUCCESS, not 0.
(pam_user): Initialise `PAM_conversation.appdata_ptr'.
2012-06-02 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Long passive transfer request.
* ftpd/extern.h (PASSIVE_PASV, PASSIVE_EPSV, PASSIVE_LPSV):
New macros.
* ftpd/ftpcmd.y (LPSV): New token.
(cmd) <PASV>: Call passive() with PASSIVE_PASV.
<EPSV>: Call passive() with PASSIVE_EPSV; both variants.
<LPSV>: New subcommand.
(cmdtab): New entry `LPSV'.
* ftpd/ftpd.c (passive): Use macros PASSIVE_* to distinguish
subcases. Add two subcases for `LPSV', with pointer math
shared with `PASV'.
* doc/inetutils.texi: Updated.
2012-05-31 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Adaptive block size in image mode.
* ftp/ftp.c (sendrequest): New variables BLKSIZE, BUFSIZE.
Change type of BUF to `static char *' for allocation.
Set BLKSIZE to `st_blksize' for input file. Allocate and
increase size of buffer as needed.
<TYPE_I>: Use BUFSIZE for buffer length when calling read().
(recvrequest): Call fstat() on successful stream `fout'
and set BLKSIZE to `st_blksize'.
(abort_remote): Replace macro BUFSIZ by `sizeof(buf)'.
2012-05-31 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Use adaptive block sizes in image mode.
* ftpd/ftpd.c (receive_data): Update signature to
`(FILE *, FILE *, off_t)'. Make BUF a pointer to
allocated memory.
<TYPE_I> : Allocate BUF of size `blksize'. Change
buffer size to this value inside loop calling read().
(retrieve): Remove `const' from BUFFER_SIZE again.
If `cmd == 0', use `st_blksize' for setting BUFFER_SIZE.
(store): Call fstat() on successful stream `fout'.
2012-05-30 Mats Erik Andersson <gnu@gisladisker.se>
Incomplete coding of variadic printing. Each such command
consumes the pointer, leaving it in an undefined state.
Some 64-bit systems are sensitive to these mistakes.
* ftpd/ftpd.c (reply, lreply): Missing va_end(). Give each
vprintf() and vsyslog() a separate pair va_start()/va_end().
* src/rcp.c (run_err): Likewise for vfprintf().
* src/rshd.c (rshd_error): Missing va_end().
2012-05-30 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Allow 64-bit offsets and file sizes. Restrict
file size for use of mmap() and only null offset, since
Solaris and Linux demand page size alignment. Assign
a positive malloc size for use in data transmission.
* ftpd/ftpcmd.y: Include <inttypes.h> or <stdint.h>.
(token union): Use `intmax_t i' instead of `int i' in order
to handle 64-bit offsets and sizes.
(cmd, rcmd, host_port, sizecmd): Use format strings `%jd'
and `%ju'. Append `LL' to numerical constants.
(yylex) <ARGS>: Convert numeric strings using strtoimax().
* ftpd/ftpd.c (retrieve): Initialise BUFFER_SIZE to `BUFSIZ'
in all cases. Essential correction, since malloc() would
otherwise allocate 0 bytes in binary mode.
(IU_MMAP_SIZE): New macro.
(send_data): Initialise BUF to `MAP_FAILED'. Change LEN
and FILESIZE to be `off_t'. Add debug logging about offsets
and transmission modes `ascii/image/mmap'.
[HAVE_MMAP]: Attempt mapping only if file size is less than
IU_MMAP_SIZE and only when `restart_point == 0'.
2012-05-26 Mats Erik Andersson <gnu@gisladisker.se>
* tests/ftp-localhost.sh (do_transfer, GETME, PUTME):
New variables. Environmental TRANSFERTEST sets do_transfer.
(posttesting): Remove file `$FTPHOME/$PUTME' if $do_transfer
is true and file exists.
(test_report): Lessen verbosity by printing exchange data
only if $VERBOSE is non-empty.
[do_transfer]: Execute transmission tests. These execute
an additional `put' for selected addressing and modes.
2012-05-26 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Reporting and accounting of large files.
* ftp/extern.h (ptransfer): New signature
`(char *, long long, struct timeval *, struct timeval *)'.
* ftp/ftp.c (sendrequest, recvrequest): New type `long long'
for BYTES and LOCAL_HASHBYTES.
(ptransfer): New type `long long' for BS. New format string
`%lld' for byte counter and byte rate.
2012-05-24 Mats Erik Andersson <gnu@gisladisker.se>
Portability to FreeBSD.
* ftp/cmds.c: Include <stdint.h> for `intmax_t'.
* ftp/ftp.c: Likewise.
2012-05-24 Mats Erik Andersson <gnu@gisladisker.se>
ftp: Large file support. The implementation
has been truncating offset values.
* ftp/cmds.c (restart): Convert `restart_point' using atoll().
Use a format string `%jd' and cast as `intmax_t'.
* ftp/ftp.c (sendrequest): Remove cast of `restart_point'
as `long'. Use format string `%jd' and cast as `intmax_t'.
(recvrequest): Likewise. Variables I and N must be `off_t'
for computations with `restart_point'.
2012-05-21 Mats Erik Andersson <gnu@gisladisker.se>
rexecd: Adapt to PAM authentication.
* src/Makefile.am (rexecd_LDADD): Use $(LIBPAM).
* src/rexecd.c [HAVE_SECURITY_PAM_APPL_H]: Include
<security/pam_appl.h>.
(pam_rc, password_pam, pam_flags, pam_handle, pam_conv)
[WITH_PAM]: New variables.
(rexec_conv) [WITH_PAM]: New function.
(remotehost): New variable, used in environment.
(envinit) [!WITH_PAM]: Add `remotehost' to list.
(doit) [WITH_PAM]: New variable TOKEN. Add alternate
authentication checks. Set `pam_rc = PAM_ABORT' where
errors are caught.
<parent fork>: Set `pam_handle' to NULL, since the child
process closes all authentication.
(die) [WITH_PAM]: Call pam_end() if PAM is still active.
* doc/inetutils.texi (rexecd invocation): Update.
2012-05-20 Mats Erik Andersson <gnu@gisladisker.se>
rexecd: Use getpwnam_r() if available, thus
preparing migration to PAM.
* src/rexecd.c [HAVE_GETPWNAM_R]: Include <xalloc.h>.
(doit) [HAVE_GETPWNAM_R]: New variables PWBUF, PWBUFLEN,
and PWSTOR. Dynamically allocate PWBUF. Call getpwnam_r()
with composite check on result.
2012-05-16 Mats Erik Andersson <gnu@gisladisker.se>
ping, traceroute: Type-of-Service.
* doc/inetutils <ping, traceroute invocation>: Update.
* ping/ping.c (tos): New variable.
(argp_options): New option `-T/--tos'.
(parse_opt): New case `T'.
(main): Set socket option IP_TOS.
* src/traceroute.c (opt_tos): New variable.
(argp_options): New option `-t/--tos'.
(parse_opt): New case `t'.
(trace_init): New variable FD. Set socket option IP_TOS.
2012-05-14 Mats Erik Andersson <gnu@gisladisker.se>
Build test binaries early.
* tests/Makefile.am (check_PROGRAMS): Removed variable.
(bin_PROGRAMS): New variable.
(TESTS): Use `bin_PROGRAMS' instead of `check_PROGRAMS'.
2012-05-14 Mats Erik Andersson <gnu@gisladisker.se>
traceroute: Stop at unreachable destinations.
* src/traceroute.c (unreach_sign): New variable.
(do_try): New local variables RC, TYPE, and CODE. Let negative
return status from trace_read() be abnormal. Print additional
packet failure information for ICMP_DEST_UNREACH.
(CAPTURE_LEN): New macro.
(trace_read): Set new signature to `(trace_t *, int *, int *)'.
Change size of DATA to CAPTURE_LEN. New variable RC. Capture
type and code of incoming ICMP message.
<TRACE_UDP>: Inspect all ICMP_DEST_UNREACH packets. Calculate
port number using length offset in IP header. Set `stop' for
all kinds of ICMP_DEST_UNREACH, and set positive return code,
except for ICMP_PORT_UNREACH.
<TRACE_ICMP>: Inspect also ICMP_DEST_UNREACH packets. Check
their identity only, not seqno. Set `stop' also for these,
and have them return positive status. Calculate OLD_ICMP
using length offset in IP header.
* ping/ping_echo.c (ping_echo): Size of RSPACE is MAX_IPOPTLEN.
2012-05-12 Mats Erik Andersson <gnu@gisladisker.se>
ping: Support IP option Timestamp.
* doc/inetutils.texi (ping invocation): Update.
* ping/ping.c (suboptions): New variable.
(decode_ip_timestamp): New function.
(ARG_IPTIMESTAMP): New enumeration value.
(argp_options): Add long option `ip-timestamp'.
(parse_opt) <ARG_IPTIMESTAMP>: New case.
* ping/ping_common.h (OPT_IPTIMESTAMP, SOPT_TSONLY)
(SOPT_TSADDR, SOPT_TSPRESPEC): New macros.
* ping/ping_echo.c (ping_echo) [options & OPT_IPTIMESTAMP]:
New setup case.
(print_ip_opt): New variable K.
<IPOPT_TS>: New printout case.
* ping/ping_impl.h (suboptions) [!USE_IPV6]: New external.
2012-05-11 Mats Erik Andersson <gnu@gisladisker.se>
traceroute: Dynamic identity and sequence numbers.
* src/traceroute.c (seqno): New variable.
(main): Assign getpid() to `pid'. Initialise `seqno'.
(trace_read) <TRACE_UDP>: Replace numerical offset `11'.
(trace_read) <TRACE_ICMP && ICMP_ECHOREPLY>: Apply ntohs()
to `ic->icmp_seq' and to `ic->icmp_id'.
<TRACE_ICMP && ICMP_TIME_EXCEEDED>: Complete code rewrite.
(trace_write): Activate dynamic `pid' and `seqno' in call to
icmp_echo_encode().
2012-05-10 Mats Erik Andersson <gnu@gisladisker.se>
Refactor address-to-string conversion as common code.
* ping/ping6.c (options): Remove qualifier `static'.
(ipaddr2str): Removed function.
(print_icmp_error): Call ipaddr2str() with new signature.
* ping/ping_common.c: Include <errno.h>, <netinet/in.h>,
<arpa/inet.h>, and <netdb.h>.
(options): New external variable.
(ipaddr2str, sinaddr2str): New functions.
* ping/ping_common.h (ipaddr2str, sinaddr2str): New prototypes.
* ping/ping_echo.c (ipaddr2str): Removed function.
(print_icmp_header): Call ipaddr2str() with new signature.
(print_ip_opt): Replace ipaddr2str() with sinaddr2str().
2012-05-10 Mats Erik Andersson <gnu@gisladisker.se>
* ping/ping6.c (argp_options): New option `verbose'.
(parse_opt) <v>: New case.
(ping_echo): Print identity in verbose mode.
* ping/ping_echo.c (ping_echo): Likewise.
(print_ip_header): Print IP header dump in verbose mode.
2012-05-09 Mats Erik Andersson <gnu@gisladisker.se>
ping: Options `--mask' and `--ttl'.
* ping/ping.c (ttl): New variable.
(ARG_TTL): New enumeration value.
(argp_options): Add long option `mask' as synomym to `address'.
New long option `ttl'.
(parse_opt) <ARG_TTL>: New case.
(main): If `ttl > 0', set value for sockopt IP_TTL.
(*decode_typ): Add check for `mask'.
ping6: Option `--hoplimit'.
* ping/ping6.c (hoplimit): New variable.
(ARG_HOPLIMIT): New enumeration value.
(argp_options): New long option `hoplimit'.
(parse_opt) <ARG_HOPLIMIT>: New case.
(main): If `hoplimit > 0', set value for sockopt IPV6_UNICAST_HOPS.
* doc/inetutils.texi (ping invocation): Updates, corrections.
2012-05-09 Mats Erik Andersson <gnu@gisladisker.se>
Discriminate UTC from non-UTC time stamps.
* ping/ping_common.c (is_normed_time, ping_cvt_time): New fcns.
* ping/ping_common.h (is_normed_time, ping_cvt_time): New prototypes.
* ping/ping_timestamp.c (print_timestamp): New variable TIMESTR.
Call ping_cvt_time() to generate strings for three time values.
[options & OPT_VERBOSE]: Print time difference if both of
`icmp->icmp_otime' and `icmp->icmp_ttime' are UTC-based.
* ping/ping_common.h (_PING_BUFLEN): Really replace the
parameter name `USE_IPV6' by the neutral name `u'.
2012-05-08 Mats Erik Andersson <gnu@gisladisker.se>
Critical package errors in size and allocation.
* ping/ping.c (send_echo): Replace macro PING_HEADER_LEN by
calculated value OFF, i.e., the number of consumed bytes.
* ping/ping6.c (send_echo): Likewise.
(ping_init): Initialise `p->ping_datalen' as the size of
`struct timeval', a possible payload.
* ping/ping_common.h (PING_HEADER_LEN): Use correct size as
`sizeof(struct icmp6_hdr)' and ICMP_MINLEN, respectively.
(PING_TIMING): Compare with `sizeof(struct timeval)'.
(_PING_BUFLEN) <IPv4 case>: Add contribution MAXIPLEN, and
increase ICMP contribution to ICMP_TSLEN, the maximal length.
* ping/ping_echo.c (ping_echo) [options & OPT_RROUTE && IP_OPTIONS]:
Remove call (a recent regression) to ping_set_packetsize().
2012-05-08 Mats Erik Andersson <gnu@gisladisker.se>
Incomplete endianness conversions.
* libicmp/icmp_echo.c (icmp_generic_encode): Apply htons() to
SEQNO and IDENT.
* ping/libping.c (my_echo_reply, ping_recv): Apply ntohs() to
`orig_icmp->icmp_id' and `orig->icmp_seq'.
* ping/ping6.c (print_echo): Likwise for `icmp6->icmp6_seq'.
* ping/ping_address.c (print_address): Apply ntohs() to
`icmp->icmp_seq'.
* ping/ping_echo.c (print_echo): Likewise.
(print_ip_header): Apply ntohs() to `ip->ip_len', `ip->ip_id',
`ip->ip_off', and to `ip->ip_sum'.
* ping/ping_timestamp.c (print_timestamp): Apply ntohs() to
`icmp->icmp_seq'.
2012-05-08 Mats Erik Andersson <gnu@gisladisker.se>
Use symbolic size names in all harmless cases.
* libicmp/icmp.h (ICMP_TSLEN): Use size of `n_time'.
* libicmp/icmp_address.c (icmp_address_encode): Use ICMP_MASKLEN.
* libicmp/icmp_echo.c (icmp_generic_encode): Use ICMP_MINLEN.
* libicmp/icmp_timestamp.c (icmp_timestamp_encode): Use ICMP_TSLEN.
* ping/libping.c (_ping_packetsize): Use ICMP_TSLEN. Add cases
for ICMP_ADDRESS and ICMP_ADDRESSREPLY. Use PING_HEADER_LEN in
default case.
(ping_set_dest) [HAVE_STRUCT_SOCKADDR_SA_LEN]: Set `s_in->sin_len'.
* ping/ping_address.c (ping_address): Use ICMP_MASKLEN.
* ping/ping_common.h (_ping_setbuf, ping_set_data): Use `use_ipv6'
as parameter, not the macro name USE_IPV6.
* ping/ping_echo.c (print_echo): Use PING_HEADER_LEN.
(print_ip_header): Use `sizeof(*ip)' for IP header size.
Use tabs at end of printed header.
(print_ip_data): Use IPPROTO_TCP and IPPROTO_UDP. Add case
for IPPROTO_ICMP.
* ping/ping_timestamp.c (ping_timestamp): Use ICMP_TSLEN.
Determine correct and relevant diagnostic messages.
* ping/ping_echo.c (struct icmp_code_descr): Add field `int type'.
(icmp_code_descr): Prepend every member with a type value for
correct discrimination.
(print_icmp_code): New signature `(int, int, char *)'. Test `type'
as well as `code' when matching.
(print_icmp): Update call to print_icmp_code().
(icmp_diag): New members ICMP_ROUTERADV and ICMP_ROUTERDISCOVERY.
New members ICMP_INFO_REPLY and ICMP_ADDRESS. Replace incorrect
ICMP_MASKREPLY with ICMP_ADDRESSREPLY.
(print_ip_opt) <IPOPT_SSRR>: New case. Code shared with IPOPT_LSRR.
<IPOPT_LSRR, IPOPT_RR>: Replace call to ntohl() by correct htonl().
2012-05-07 Mats Erik Andersson <gnu@gisladisker.se>
Portability issue for setting timeval manually.
* ping/ping.c (ping_run): Erase RESP_TIME, INTVL, and NOW
before first use.
* ping/ping6.c (ping_run): Likewise. Do not erase RESP_TIME
inside loop.
Regression in calculating response timing.
* src/traceroute.c (do_try): Use format string ` %2d ' with HOP.
New variable SAVE_ERRNO. Call select() before gettimeofday(),
but save `errno' in SAVE_ERRNO. Take care of microsecond
underflow when calculating time difference.
(trace_read): Replace numerical size by `sizeof (data)'.
2012-04-27 Mats Erik Andersson <gnu@gisladisker.se>
* ping/ping_address.c (print_address): Remove duplicate
prototype. Print additional newline to conform with output
formatting for other types of reporting.
* ping/ping_echo.c (ping_echo)
[(options & OPT_ROUTE) & IP_OPTIONS]: Increase data length
to accomodate the amount used for record routes in IP header.
2012-04-24 Mats Erik Andersson <gnu@gisladisker.se>
rexec: Read password from stdin.
* src/rexec.c (main): New variables PASSWORD and N.
If `arguments.password' is a single dash, read a line
from standard in and assign it to `arguments.password'.
* doc/inetutils.texi (rexec invocation): Mention new
treatment of `-p/--password'.
2012-04-22 Mats Erik Andersson <gnu@gisladisker.se>
rexecd: Implement syslog support.
* src/rexecd.c: Include <syslog.h>.
(logging, options): New variables.
(parse_opt): New function.
(argp): Insert `options' and `parse_opt'.
(main): Call openlog(). Do not exit at surplus arguments,
but make a note in syslog. Log failed getpeername().
(doit): New variables RHOST and RET. In addition to error()
and die(), make many entries in the syslog of varying severity.
* src/rexec.c (do_rexec): Add a five second alarm around
accept() for stderr channel, in case the server side is
not responding.
* doc/inetutils.texi (rexec, rexecd): Document recent
additions. Make option encoding for `rexec' complete.
2012-04-21 Mats Erik Andersson <gnu@gisladisker.se>
rexecd: Privilege audit and protocol conformity.
* src/rexecd.c (doit): Execute changes of group as
soon as password has been verified. Remove useless
call to setegid(). Protect setpgid() by the macro
HAVE_SETPGID. Delay sending the single NUL character
until the time immediately before execution is handed
over to a shell interpreter.
2012-04-20 Mats Erik Andersson <gnu@gisladisker.se>
Portability issue found on 64-bit OpenBSD.
* ping/ping.c (ping_run): Break infinite loop by calling error()
after failure in select().
* ping/ping6.c (ping_run): Likewise. Clear RESP_TIME.
* src/traceroute.c (do_try): New variable FD. Clear TIME and
calculate NOW before calling select(). Set `fd + 1' to be the
maximal file descriptor when calling select(). On failure in
select(), return `errno' for proper detection, not EPERM.
2012-04-20 Mats Erik Andersson <gnu@gisladisker.se>
rexec, rexecd: Implement support for IPv6.
* src/rexec.c (options): New `-4/ipv4', `-6/ipv6', and `-a/ipany'.
(struct arguments): New member `int af'.
(parse_opt): Detect `4', `6', and `a'.
(do_rexec): New variables `ret', `addrlen', `hints', `ai', `res'.
New type `struct sockaddr_storage` for ADDR. Removed `host'.
Replace gethostbyname() by getaddrinfo() in resolving host name.
(do_rexec) <use error stream>: Use `struct sockaddr_storage` for
SERV_ADDR and prepare bind() based on properties of ADDR.
* src/rexecd.c (main): Use `struct sockaddr_storage' for FROM.
(a_sin): Removed variable.
(doit): New signature `doit(int, struct sockaddr *, socklen_t)`
Change PORT to be `in_port_t'. Remove call to bind(). Rewrite
preparations for connect() to detect address family.
2012-04-19 Mats Erik Andersson <gnu@gisladisker.se>
Let `rexec' return a relevant return status.
* src/rexec.c (remote_err): New variable.
(main): Return `remote_err' as status.
(do_rexec): New variable ON. Set SO_REUSEADDR on SERV_SOCK.
(do_rexec) <while loop>: New variables CONSUMED and OFFSET.
Filter off initial bytes `\000' and `\001' appearing on either
of the sockets SOCK and ERR_SOCK, since these represent return
statuses and are now recorded in `remote_err'.
String storage sanitation and intelligible return codes.
* src/rexecd.c (username, logname, homedir, shell): Increase length.
(envinit): Use NULL as last member, not naught.
(doit): Set SO_REUSEADDR on socket S. Use sizeof() to calculate
explicit offset in strncat() with environment variables. Let
LOGNAME inherit the value from USER.
(doit, getstr) <die calls>: Use EXIT_FAILURE as first argument.
2012-04-18 Mats Erik Andersson <gnu@gisladisker.se>
* src/rexec.c (do_exec): Set missing values for `sin_family' and
`sin_len' in SERV_ADDR.
* src/rexecd.c (die): Use vsnprintf() for variadic lists! Send
also final newline character. Call exit() at the end!
2012-04-13 Mats Erik Andersson <gnu@gisladisker.se>
Improve checking of FTP access verification.
* ftpd/ftpd.c (complete_login): Abort login attempt when
setegid() fails.
(pass): Clear LOGIN_ATTEMPTS only if login was really granted.
2012-04-11 Mats Erik Andersson <gnu@gisladisker.se>
Support for DragonFly BSD.
* configure.ac: Define UTMPX for `*dragonfly*'.
* ftpd/extern.h: Include <sys/socket.h>.
* src/rexec.c (do_rexec): Explicit casts as `struct sockaddr'.
* src/tftpd.c (validate_access): Declare TIMEOUTBUF correctly
to be of type `sigjmp_buf'.
* telnet/externs.h: Include <errno.h> unconditionally. Remove
conditionals for `errno' depending on macro CRAY.
2012-03-31 Alfred M. Szmidt <ams@gnu.org>
configure.ac: Minor cleanup.
* configure.ac: Don't check for mkstemp, don't try to replace
strdup.
(long long, long double): Remove checks.
(AM_C_PROTOTYPES): Likewise.
(AC_FUNC_ALLOCA, AC_FUNC_MALLOC, AC_FUNC_REALLOC): Likewise.
2012-03-31 Alfred M. Szmidt <ams@gnu.org>
* Makefile.am (DISTCLEANFILES): Added $(PACKAGE)-$(VERSION).tar.xz
to list.
2012-03-29 Alfred M. Szmidt <ams@gnu.org>
* tests/.gitignore: Added tools.sh to list.
2012-03-29 Alfred M. Szmidt <ams@gnu.org>
Create xz compressed tarballs as part of `make dist'.
* README-alpha: Updated.
* configure.ac: Added dist-xz.
* .gitignore: Added inetutils-*.tar.xz to list.
2012-03-27 Alfred M. Szmidt <ams@gnu.org>
Check return code of malloc, or use xmalloc.
* whois/whois.c: Include "xalloc.h".
(gwhois_argp_parser, queryformat): Use xmalloc over malloc.
* telnet/commands.c: Include "xalloc.h".
(env_init, env_define): Use xmalloc over malloc.
* src/syslogd.c: Include "xalloc.h".
(crunch_list): Use xmalloc over malloc.
* src/rshd.c: Include "xalloc.h".
(doit): Use xmalloc over malloc.
* src/rsh.c: Include "xalloc.h".
(main): Use xmalloc over malloc.
* src/rlogind.c: Include "xalloc.h".
(do_shishi_login): Use xmalloc over malloc.
* src/rlogin.c: Include "xalloc.h".
(main): Use xmalloc over malloc.
* libtelnet/shishi.c (krb5shishi_send): Check return code of
malloc.
* libtelnet/kerberos5.c (kerberos5_send): Don't use assert to
check the return code for malloc
* libinetutils/kcmd.c (kcmd): Check return code of malloc.
* ifconfig/printif.c: Include "xalloc.h".
(print_interfaceX): Use xmalloc over malloc.
* ftp/cmds.c: Include "xalloc.h".
(dotrans, domap): Use xmalloc over malloc.
2012-03-21 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac (DD, MKTEMP, NETSTAT): New variables. Use
AC_PATH_PROG on `dd', `mktemp', and `netstat'. Declare as
precious with AC_ARG_VAR.
(SED): New variable. Set using AC_PROG_SED, protect by
AC_ARG_VAR.
(GREP): Protect using AC_ARG_VAR.
* tests/Makefile.am (BUILT_SOURCES, EXTRA_DIST, CLEANFILES)
(tools_subst): New variables.
(tools.sh): New target.
* tests/ftp-localhost.sh: Source `tools.sh'. Use $GREP, $MKTEMP,
$NETSTAT, and $SED instead of utility names. Change tests for
`grep', and `netstat'; check $need_mktemp.
(FTPHOME): Check also fifth field of passwd, should GECOS be
missing.
(USER): Calculate using `func_id_user'.
* tests/hostname.sh: Source `tools.sh'. `func_id_uid` replaces
`id -u'.
* tests/ping-localhost.sh: Likewise.
* tests/traceroute-localhost.sh: Likewise.
* tests/syslogd.sh: Check directory early, then source `tools.sh'.
Check $need_mktemp and $need_netstat. Use $SED, $MKTEMP,
$NETSTAT, and $GREP. Replace `id -u' by `func_id_uid'.
* tests/telnet-localhost.sh: Source `tools.sh'. Check
$need_mktemp. Use $SED, $MKTEMP, and $GREP.
(USER): Compute using `func_id_user'.
* tests/tftp.sh: Source `tools.sh'. Check $need_dd, $need_mktemp,
and $need_netstat. Remove checks for `netstat' and `grep'. Use
$SED, $MKTEMP, $NETSTAT, $GREP, and $DD.
(USER): Compute using `func_id_user'.
* tests/tools.sh.in: New file.
2012-03-20 Mats Erik Andersson <gnu@gisladisker.se>
* am/libcurses.m4 (IU_LIB_TERMCAP) <termlib detection>: Add a
missing use of `test'.
(HAVE_TERMLIB_TGETENT): New macro, replaces HAVE_TERMINFO_TGETENT.
2012-03-15 Simon Josefsson <simon@josefsson.org>
* doc/inetutils.texi (dnsdomainname invocation): Doc fix.
* man/dnsdomainname.h2m: Likewise.
* src/dnsdomainname.c (doc): Likewise.
* src/dnsdomainname.c (dnsdomainname): Don't error when canonical
name does not have domain name component (compatibility with
Debian dnsdomainname). Suggested by Mats Erik Andersson
<gnu@gisladisker.se>.
* tests/dnsdomainname.sh: Reject non-0 and non-1 exit codes (i.e.,
crashes).
2012-03-15 Mats Erik Andersson <gnu@gisladisker.se>
* tests/dnsdomainname.sh: Replace `! test -x' by `test ! -x' for
shell portability.
2012-03-14 Simon Josefsson <simon@josefsson.org>
* tests/dnsdomainname.sh: Don't fail on configuration errors.
Suggested by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2012-03-14 Mats Erik Andersson <gnu@gisladisker.se>
Make explicit dependency on header files for libwrap and termcap.
* am/libcurses.m4 (IU_LIB_TERMCAP): Check whether tgetent() is
really declared in <termcap.h>, not only checking presence of
<termcap.h>. That failing, check declaration of tgetent() using
the pair <curses.h>, and <term.h>. In case of no successful
detection at all, set LIBTERMCAP to empty.
* configure.ac (LIBWRAP): Define only if hosts_ctl() is present in
libwrap and also the header <tcpd.h> exists.
2012-03-13 Mats Erik Andersson <gnu@gisladisker.se>
* src/traceroute.c (do_try): When displaying traces, print host
name only if in resolving mode; otherwise only numerical address.
Insert one additional blank before time printout.
(get_hostname): Remove conditional clause on
OPT_RESOLVE_HOSTNAMES.
2012-03-12 Simon Josefsson <simon@josefsson.org>
* NEWS: Mention new dnsdomainname tool.
* configure.ac: Add tool dnsdomainname.
* doc/inetutils.texi: Document dnsdomainname.
* man/Makefile.am: Build dnsdomainname.1.
* man/dnsdomainname.h2m: New file.
* src/.gitignore: Ignore dnsdomainname.
* src/Makefile.am (bin_PROGRAMS): Add $(dnsdomainname_BUILD).
(dnsdomainname_SOURCES): New variable.
(EXTRA_PROGRAMS): Add dnsdomainname.
* src/dnsdomainname.c: New file.
* tests/dnsdomainname.sh: New file.
2012-03-10 Mats Erik Andersson <gnu@gisladisker.se>
* whois/tld_serv_list (.cz, .fo, .gl, .gs, .hk, .ie, .il, .in)
(.is, .jp, .kr, .kz, .lt, .lu, .lv, .ms, .mx, .ng, .nz, .pe, .pl)
(.ro, .ru, .se, .sg, .si, .sk, .sm, .su, .tf, .th, .tr, .tw, .us):
Updated entry.
(.dz, .ec, .es, .eu, .fi, .gd, .gg, .gi, .gy, .hn, .hr, .ht, .im)
(.io, .ir, .je, .ke, .la, .ly, .ma, .md, .me, .mg, .mn, .mp, .mu)
(.my, .na, .nc, .nf, .pm, .pr, .pt, .qa, .re, .rs, .sa, .sb, .sc)
(.so, .sx, .tk, .tl, .tv, .tz, .ua, .uy, .uz, .vc, .ve, .wf, .yt):
New or upgraded from web entry.
(.hm, .ki, .mf, .pk, .pw, .sl, .sn, .tj, .ug, .um, .vn, .yu, .za):
Broken address or other comment.
2012-03-06 Mats Erik Andersson <gnu@gisladisker.se>
* ping/ping6.c (print_echo): Use flag NI_NUMERICHOST in call to
getnameinfo() whenever the option OPT_NUMERIC is active.
* ping/ping_echo.c (ipaddr2str): Isolate case OPT_NUMERIC to call
xstrdup(). Then call xstrdup() if gethostbyaddr() fails. In main
body, replace every `hp->h_name' for `ipstr', and conversely,
since only `hp->h_name' can fail do be defined.
* tests/ping-localhost.sh: Insert option `-n' to ping and ping6.
2012-03-03 Mats Erik Andersson <gnu@gisladisker.se>
Display command prompt only in interactive mode.
* src/tftp.c (fromatty): New variable; true in interactive mode.
(main): Assign value to FROMATTY.
(command): Display prompt only if FROMATTY is true.
2012-03-02 Mats Erik Andersson <gnu@gisladisker.se>
Make service lookup optional in FTP client.
* ftp/cmds.h (DEFPORT) [!DEFPORT]: New macro. Define as
IPPORT_FTP if available, otherwise as 21.
(another): Condition call to add_history() on FROMATTY.
(setpeer): Call getservbyname() for `ftp/tcp'. Set port if
successful; use DEFPORT otherwise.
* ftp/ftp_var.h (sp): Remove external variable.
* ftp/main.c (main): Remove call to getservbyname() and the use of
SP.
(cmdscanner): Condition call to add_history() on FROMATTY.
2012-03-01 Mats Erik Andersson <gnu@gisladisker.se>
Subtests for SIGHUP reaction of `inetd' and `syslogd'.
* tests/syslogd.sh: Write a second configuration file after first
run, send SIGHUP to server, and evaluate message response.
(SUCCESSES): Update arithmetic expression used in evaluation.
(OUT_USER, OUT_DEBUG, TAG2, COUNT2, COUNT2_debug, COUNT3)
(COUNT3_info): New variables. <verbose report>: Print messages of
files $OUT_USER and $OUT_DEBUG.
* tests/tftp.sh: Calculate new port after first test run, send
SIGHUP to server, and transmit a small file at each adress in old
list.
(do_conf_reload): New variable.
2012-03-01 Mats Erik Andersson <gnu@gisladisker.se>
Reduce external prerequisites in test scripts.
* tests/ftp-localhost.sh: Replace `head -1' by `sed 1q'.
* tests/telnet-localhost.sh, tests/tftp.sh: Likewise. Replace `ps
pid' by `kill -0 pid'.
* tests/syslogd.sh: Likewise. Replace `wc -l' by `grep -c'.
* tests/tftp.sh: Do not issue `set -m', since no job control in
use.
2012-02-25 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (gnulib_modules): Sort lexically.
2012-02-25 Alfred M. Szmidt <ams@gnu.org>
Silence sc_makefile_at_at_check.
* whois/Makefile.am (bin_PROGRAMS): Use $(...) type of variable
reference instead of @...@.
* telnetd/Makefile.am: Likewise.
* telnet/Makefile.am (bin_PROGRAMS): Likewise.
* talkd/Makefile.am (inetdaemon_PROGRAMS): Likewise.
* talk/Makefile.am (bin_PROGRAMS): Likewise.
* src/Makefile.am (bin_PROGRAMS, inetdaemon_PROGRAMS)
(install-exec-hook): Likewise.
* ping/Makefile.am (bin_PROGRAMS, install-exec-hook): Likewise.
* libls/Makefile.am (noinst_LIBRARIES): Likewise.
* ifconfig/Makefile.am (bin_PROGRAMS): Likewise.
* ftpd/Makefile.am (inetdaemon_PROGRAMS): Likewise.
* ftp/Makefile.am (bin_PROGRAMS): Likewise.
2012-02-25 Alfred M. Szmidt <ams@gnu.org>
* cfg.mk (local-checks-to-skip): Added sc_assignment_in_if to
list.
(sc_assignment_in_if): New target.
* bootstrap: Updated from gnulib.
* src/inetd.c (main, tcpmux, chargen_dg, chargen_stream)
(nextconfig, newstr, run_service): Fix indentation.
2012-02-22 Mats Erik Andersson <gnu@gisladisker.se>
* tests/ping-localhost.sh, tests/traceroute-localhost.sh: Mend
string quotation for expected variable expansion.
* tests/syslogd.sh (SYSLOGD, LOGGER): Allow value overriding.
* tests/telnet-localhost.sh (INETD, TELNET, ADDRPEEK): Likewise.
(TARGET): New variable, replacing previous TARGET4.
2012-02-22 Mats Erik Andersson <gnu@gisladisker.se>
Implement group assignment for services.
* src/inetd.c (struct servtab): New component `char *se_group'.
(run_service): New variable GRP. Check existence of
`sep->se_group'. If valid, then apply setgid() to `grp->gr_gid'
instead of `pwd->pw_gid'. <initgroups> [HAVE_INITGROUPS]: Use
`grp->gr_id' if an explicit group was stated, otherwise use
`pwd->pw_gid'.
(print_service): Display also group membership.
(enter, freeconfig): Add string handling for groups.
(getconfigent): Parse user string for an optional group component.
(nextconfig): Assure that an assigned group really exists.
(fix_tcpmux): Add empty group string.
* doc/inetutils.texi (inetd configuration file): Add setting of
group.
2012-02-21 Mats Erik Andersson <gnu@gisladisker.se>
* tests/telnet-localhost.sh: Skip test in absence of assigned TTY.
Rewrite case evaluation without nested pipelines and OR
connectives.
2012-02-21 Mats Erik Andersson <gnu@gisladisker.se>
Basic test case for `telnet'.
* tests/Makefile.am (dist_check_SCRIPTS) [ENABLE_inetd &&
ENABLE_telnet]: Added telnet-localhost.sh.
* tests/telnet-localhost.sh: New file.
* tests/ftp-localhost.sh (posttesting): Use SIGTERM first, then
SIGKILL.
(locate_port): Adapt regex alternate pattern for legacy `grep'.
* tests/syslogd.sh (clean_testdir, locate_port): Likewise.
* tests/tftp.sh (posttesting, locate_port): Likewise.
2012-02-20 Mats Erik Andersson <gnu@gisladisker.se>
Improve behaviour of single stacked clients.
* ftp/ftp.c (hookup): Do not add AI_ADDRCONFIG to HINTS.ai_flags.
* src/logger.c (open_socket): Likewise.
* telnet/commands.c (tn): Likewise.
* telnet/Makefile.am, telnetd/Makefile.am (LDADD): Remove the
addition of `$(LIBREADLINE)': not needed.
2012-02-19 Mats Erik Andersson <gnu@gisladisker.se>
* bootstrap.conf (gnulib_modules): Add sethostname to list.
* tests/syslogd.sh: Sleep slightly before evaluating outcome.
2012-02-18 Mats Erik Andersson <gnu@gisladisker.se>
* README (Notes): Explicitly name extent of Shishi support.
Portability issue caused by FreeBSD.
* ftpd/ftpcmd.y (cmd) <EPRT>: Remove precompiler conditionals
using AI_V4MAPPED, keeping code, but do not set AI_V4MAPPED in
`hints.ai_flags'.
2012-02-13 Simon Josefsson <simon@josefsson.org>
* README (Notes): Doc fix.
2012-02-09 Mats Erik Andersson <gnu@gisladisker.se>
* am/krb5.m4: When examining `libkrb5', replace AC_CHECK_LIB by
AC_TRY_LINK in order to avoid cached results, since identical
library and function names are tested for. <OpenBSD Heimdal>: New
test case.
2012-02-08 Mats Erik Andersson <gnu@gisladisker.se>
* tests/syslogd.sh: Reimplement a subtest using standard INET
port. A second SYSLOG daemon is started, which only uses INET
sockets.
(do_standard_port): New variable, initially `true', changed to
`false' for non-root user and when 514/udp is in use.
2012-02-08 Mats Erik Andersson <gnu@gisladisker.se>
* src/syslogd.c: Implement presetable inet port, defaulting to the
standard port `syslog/udp'. Fall back to `514' if `syslog' fails.
(find_inet_port): New function.
(BindPort): New variable.
(portstr) [IPPORT_SYSLOG]: New variable.
(LogPortText): Initialize to NULL.
(LogForwardPort): New variable.
(argp_options, parse_opt): New option `-B/--bind-port'.
(main): New call to `find_inet_port'.
(create_inet_socket): Check that LOGPORTTEXT is non-null,
otherwise inet sockets are left disabled.
(fprintflog, cfline) [AI_ADDRCONFIG]: Only AF_UNSPEC invokes
AI_ADDRCONFIG. Replace LOGPORTTEXT by LOGFORWARDPORT in calls to
getaddrinfo.
* tests/syslogd.sh: Adapt to `syslogd' allowing non-standard
ports.
(PORT): Make presetable from command line.
(locate_port): New function. <non-root && privileged port>: Use a
pseudo-random port. <port in use>: Take a pseudo-random step to
an even higher port, only to disable inet sockets if even that
action fails.
[do_inet_socket]: Add `-B$PORT' to IU_OPTIONS and append `:$PORT'
to option `-h' in calls to logger.
* tests/ftp-localhost.sh, tests/tftp.sh (NSSWITCH): Override with
value `/etc/services' when running OpenBSD.
2012-02-06 Mats Erik Andersson <gnu@gisladisker.se>
* doc/inetutils.texi (logger invocation): Describe option
`-u/--unix'.
(ftpd invocation): Describe options `-4/ipv4' and `-6/--ipv6'.
* tests/ftp-localhost.sh (NSSWITCH, PASSWD, PROTOCOLS): New
variables naming standard files. Check their presence and skip
test otherwise.
* tests/tftp.sh (NSSWITCH, PASSWD, PROTOCOLS): Likewise.
2012-02-05 Mats Erik Andersson <gnu@gisladisker.se>
* tests/tftp.sh: Need job control, issue `set -m'.
(spawned_pid): New variable. <inetd restart failure>: For better
robustness, kill process immediately using SPAWNED_PID.
2012-02-04 Mats Erik Andersson <gnu@gisladisker.se>
* src/logger.c (unixsock): New variable.
(open_socket): Allow HOST and UNIXSOCK to determine UNIX socket
name. Add test that HOST be non-NULL.
(argp_options): New option `-u/--unix'.
(parse_opt) <h>: Erase UNIXSOCK, i.e., clear `-u'. <u>: New
option. Set UNIXSOCK, erase HOST.
2012-02-04 Mats Erik Andersson <gnu@gisladisker.se>
* libinetutils/Makefile.am (INCLUDES): Add $(INCAUTH) to list.
* src/Makefile.am (INCLUDES): Likewise.
2012-02-03 Mats Erik Andersson <gnu@gisladisker.se>
Do not use which(1) in test scripts.
* tests/ftp-localhost.sh: Use a trivial match to detect grep(1)
and a trivial invokation of netstat(1). Use `sysctl -a', while
discarding STDOUT and STDERR, to sense for sysctl(8).
* tests/tftp.sh: Likewise with grep(1).
2012-02-03 Mats Erik Andersson <gnu@gisladisker.se>
Attempt full detection of any intermediary step failing.
* tests/ftp-localhost.sh: Test presence of grep(1), netstat(1).
Capture failing mktemp(1).
(posttesting): Verify non-empty TMPDIR and it being a directory.
<inetd.conf, .netrc>: Test successful write to these files.
<starting INETD>: Test successful start as well as presence of
`$TMPDIR/inetd.pid' afterwards.
* tests/tftp.sh: Test presence of grep(1) and netstat(1). Capture
failing mktemp(1).
(posttesting): Verify non-empty TMPDIR and it being a directory.
<write_conf>: Test successful execution.
(REDIRECT): New variable. <INETD invokation>: Always use
debug-mode `-d', but suppress STDERR in non-verbose execution
mode. An eval call implements this during the first attempt.
Test the validity of `inetd_pid' afterwards. <restart of INETD>:
Use `kill -9' and delete the file INETD_PID. <creation of test
files>: Check validity of TMPDIR and test for failure when
creating the directory `$TMPDIR/tftp-test'.
2012-02-02 Mats Erik Andersson <gnu@gisladisker.se>
Full set of prototypes for Shishi enabled builds.
* libinetutils/shishi_def.h (krcmd, krcmd_mutual) [SHISHI]: New
prototypes.
* libtelnet/auth-proto.h (auth_name) [AUTHENTICATION]: Likewise.
* libtelnet/auth.c (auth_onoff) [AUTHENTICATION]: Likewise.
* libtelnet/enc-proto.h (EncryptStart, EncryptStartInput)
[ENCRYPTION]
(EncryptStartOutput, EncryptStatus, EncryptStop, EncryptStopInput)
(EncryptStopOutput, EncryptType, encrypt_start, encrypt_end)
(encrypt_request_start, encrypt_request_end, encrypt_support)
(encrypt_dec_keyid, encrypt_enc_keyid): Likewise.
* libtelnet/genget.h (Ambiguous): Likewise.
* libtelnet/misc-proto.h (auth_encrypt_user): Likewise.
* src/rlogind.c (do_shishi_login) [SHISHI]: New prototype.
* telnet/commands.c [ENCRYPTION]: Include <libtelnet/encrypt.h>.
[AUTHENTICATION || ENCRYPTION]: Include <libtelnet/misc.h>.
* telnet/main.c [AUTHENTICATION]: Include <libtelnet/auth.h>.
[ENCRYPTION]: Include <libtelnet/encrypt.h>.
* telnet/telnet.c [AUTHENTICATION]: Include <libtelnet/auth.h>.
[ENCRYPTION]: Include <libtelnet/encrypt.h>.
[AUTHENTICATION || ENCRYPTION]: Include <libtelnet/misc.h>.
* telnet/terminal.c [ENCRYPTION]: Include <libtelnet/encrypt.h>.
* telnetd/telnetd.c [AUTHENTICATION || ENCRYPTION]: Include
<libtelnet/misc.h>.
2012-02-01 Mats Erik Andersson <gnu@gisladisker.se>
* tests/syslogd.sh (do_inet_socket): New variable. <port is
busy>: Continue, but disable INET test. Issue a notice.
* tests/tftp.sh (write_conf): New function. <failed inetd
launch>: Make a second start attempt, with new port.
2012-02-01 Guillem Jover <guillem@hadrons.org>
* src/Makefile.am (LDADD): Set to minimal, common value.
(rcp_LDADD, rexecd_LDADD, rlogin_LDADD, rlogind_LDADD, rsh_LDADD)
(rshd_LDADD, traceroute_LDADD, uucpd_LDADD): New variables.
2012-02-01 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac: Check for typedefs `Schedule' and `Session_Key' in
<arpa/telnet.h>.
* libinetutils/des_rw.c (MIN) [ENCRYPTION && KERBEROS && !MIN]:
Define missing macro.
(roundup) [ENCRYPTION && KERBEROS && !roundup]: Likewise.
* libinetutils/kcmd.c (kcmd) [HAVE_SIGACTION]: Use modern signal
handling. New variables SIGS and OSIGS.
* libtelnet/auth.c (AUTHTYPE_NAMES) [AUTHENTICATION]: New macro,
needed by OpenSolaris to fill in `authtype_names' by
<arpa/telnet.h>.
* libtelnet/encrypt.h [ENCRYPTION &&
!HAVE_ARPA_TELNET_H_SCHEDULE]: Typedef for `Schedule' is
conditional.
[ENCRYPTION && !HAVE_ARPA_TELNET_H_SESSION_KEY]: Typedef for
`Session_Key' is conditional.
* libtelnet/misc.c: Include <arpa/telnet.h>.
* src/rlogind.c (ENC_WRITE) [KERBEROS && ENCRYPTION]: Define macro
using correct name.
* src/rshd.c (MAX) [!MAX]: Define missing macro.
2012-02-01 Mats Erik Andersson <gnu@gisladisker.se>
Detect and protect header files for Kerberos support.
* configure.ac: Check for <com_err.h>, <kerberosIV/des.h>,
<kerberosIV/krb.h>, <kerberosV/krb5.h>, <krb5.h>, <krb5/asn1.h>,
<krb5/crc-32.h>, <krb5/ext-proto.h>, <krb5/krb5.h>,
<krb5/los-proto.h>.
* libinetutils/des_rw.c
[ENCRYPTION && KERBEROS && HAVE_KERBEROSIV_DES_H]: Include
<kerberosIV/des.h>.
[ENCRYPTION && KERBEROS && HAVE_KERBEROSIV_KRB_H]: Include
<kerberosIV/krb.h>.
* libinetutils/kcmd.c, libinetutils/krcmd.c
[KERBEROS && HAVE_KERBEROSIV_DES_H]: Include <kerberosIV/des.h>.
[KERBEROS && HAVE_KERBEROSIV_KRB_H]: Include <kerberosIV/krb.h>.
* libtelnet/forward.c [KRB5 && FORWARD && HAVE_KRB5_KRB5_H]:
Include <krb5/krb5.h>.
[KRB5 && FORWARD && HAVE_KRB5_ASN1_H]: Include <krb5/asn1.h>.
[KRB5 && FORWARD && HAVE_KRB5_CRC_32_H]: Include <krb5/crc-32.h>.
[KRB5 && FORWARD && HAVE_KRB5_LOS_PROTO_H]: Include
<krb5/los-proto.h>.
[KRB5 && FORWARD && HAVE_KRB5_EXT_PROTO_H]: Include
<krb5/ext-proto.h>.
* libtelnet/kerberos.c [KRB4 && HAVE_DES_H]: Include <des.h>.
[KRB4 && HAVE_KRB_H]: Include <krb.h>.
* libtelnet/kerberos5.c [KRB5 && HAVE_KRB5_H]: Include <krb5.h>.
[KRB5 && HAVE_COM_ERR_H]: Include <com_err.h>.
* src/rcp.c
[KERBEROS && HAVE_KERBEROSIV_DES_H]: Include <kerberosIV/des.h>.
[KERBEROS && HAVE_KERBEROSIV_KRB_H]: Include <kerberosIV/krb.h>.
* src/rlogin.c: Likewise.
[SHISHI]: Do inclusions independently of conditional code.
* src/rlogind.c [KERBEROS && KRB4 && HAVE_KERBEROSIV_DES_H]:
Include <kerberosIV/des.h>.
[KERBEROS && KRB4 && HAVE_KERBEROSIV_KRB_H]: Include
<kerberosIV/krb.h>.
[KERBEROS && KRB5 && HAVE_KRB5_H]: Include <krb5.h>.
[KERBEROS && KRB5 && HAVE_KERBEROSIV_KRB_H]: Include
<kerberosIV/krb.h>.
* src/rsh.c, src/rshd.c [KERBEROS && HAVE_KERBEROSIV_DES_H]:
Include <kerberosIV/des.h>.
[KERBEROS && HAVE_KERBEROSIV_KRB_H]: Include <kerberosIV/krb.h>.
[SHISHI]: Do inclusions independently of conditional code.
2012-01-31 Mats Erik Andersson <gnu@gisladisker.se>
* libinetutils/kcmd.c: Include <fcntl.h>.
* libtelnet/auth.h (AUTH_REJECT) [!AUTH_REJECT]: Protect
`#define'.
(AUTH_UNKNOWN) [!AUTH_UNKNOWN]: Likewise.
(AUTH_OTHER) [!AUTH_OTHER]: Likewise.
(AUTH_USER) [!AUTH_USER]: Likewise.
(AUTH_VALID) [!AUTH_VALID]: Likewise.
* libtelnet/enc_des.c (ofb64_init, ofb64_start)
[ENCTYPE_DES_OFB64]
(ofb64_is, ofb64_reply, ofb64_session, ofb64_keyid)
(ofb64_printsub)
(ofb64_encrypt, ofb64_decrypt): Protect definitions.
* libtelnet/encrypt.c (i_support_encrypt) [ENCTYPE_DES_OFB64]
(i_support_decrypt): Add ENCTYPE_DES_OFB64 only if existing,
otherwise only ENCTYPE_DES_CFB64.
(encryptions) [ENCTYPE_DES_OFB64]: Conditional use of OFB64 calls.
* libtelnet/encrypt.h [!ENCTYPE_ANY && TELOPT_ENCTYPE_NULL]
(ENCTYPE_ANY): Use alternate macro.
[!ENCTYPE_DES_CFB64 && TELOPT_ENCTYPE_DES_CFB64]
(ENCTYPE_DES_CFB64): Likewise
[!ENCTYPE_DES_OFB64 && TELOPT_ENCTYPE_DES_OFB64]
(ENCTYPE_DES_OFB64): Likewise.
(ENCTYPE_CNT) [!ENCTYPE_CNT && TELOPT_ENCTYPE_CNT]: Likewise.
(VALIDKEY) [!VALIDKEY]: Protect `#define'.
2012-01-31 Mats Erik Andersson <gnu@gisladisker.se>
* src/tftp.c (resolve_name): Do not use AI_ADDRCONFIG at all.
Assign HOSTNAME with `ai->ai_canonname' only if it has contents,
otherwise assign `<dummy>', which is very unlikely.
* tests/ftp-localhost.sh: Make SVR4-compliant. Refactor code.
Error messages go to STDERR. Use HERE-docs for configuration.
(PWD): If not exported, assign with command substitution `pwd`.
(USER, FTPUSER, save_IFS): New variables.
(FTPHOME): New variable, for portably calculating home of FTPUSER.
Make certain of existence and readability of this directory.
(test_report): New function for common evaluation tasks.
* tests/syslogd.sh (PWD): If not exported, assign with command
substitution `pwd`.
* tests/tftp.sh: Expand to cover IPv6. Error messages to STDERR.
Make `inetd' and `tftp' verbose only with VERBOSE set.
(PWD): If not exported, assign with command substitution `pwd`.
(locate_port): New prototype, dropping address family argument,
always detecting IPv4 and IPv6.
2012-01-27 Mats Erik Andersson <gnu@gisladisker.se>
* libtelnet/auth.c, libtelnet/enc_des.c, libtelnet/encrypt.c,
libtelnet/kerberos.c, libtelnet/kerberos5.c, libtelnet/shishi.c:
Add external prototype `void printsub (char, unsigned char *,
int)', appearing as callback.
* libtelnet/auth-proto.h (auth_gen_printsub): Remove prototype.
(auth_printsub): Missing prototype.
* libtelnet/auth.c (auth_gen_printsub): Declare as static, and
position before code for `auth_printsub'.
* libtelnet/enc-proto.h (encrypt_printsub): Missing prototype.
[ENCRYPTION && TELNETD]: Rename macro TELENTD as TELNETD, both are
otherwise not in use.
* libtelnet/encrypt.c (encrypt_gen_printsub): Reorder parameters
in declaration to read `(unsigned char *, int, unsigned char *,
int)'.
(encrypt_printsub): Likewise.
* telnet/utilities.c [AUTHENTICATION]: Include <libtelnet/auth.h>.
[ENCRYPTION]: Include <libtelnet/encrypt.h>.
* telnetd/telnetd.h: Include <libtelnet/encrypt.h>.
2012-01-27 Mats Erik Andersson <gnu@gisladisker.se>
* tests/ftp-localhost.sh, tests/tftp.sh (PORT): Detect if it is
preset, or detect an unused value from a short list.
* tests/ftp-localhost.sh (locate_port): New function.
2012-01-26 Mats Erik Andersson <gnu@gisladisker.se>
* tests/syslogd.sh (SOCKET): Disable the use of this UNIX socket
name if its length would be excessive.
2012-01-26 Mats Erik Andersson <gnu@gisladisker.se>
* tests/ftp-localhost.sh, tests/ping-localhost.sh,
tests/syslogd.sh, tests/tftp.sh, tests/traceroute-localhost.sh:
Test the availability of compiled resources.
* tests/syslogd.sh (LOGGER): Rename from IU_LOGGER.
(SYSLOGD): Rename from IU_SYSLOGD.
* tests/tftp.sh (IFCONFIG_SIMPLE): New helper variable.
2012-01-25 Mats Erik Andersson <gnu@gisladisker.se>
* tests/syslogd.sh: Substantial rewrite. Early verbosity.
Consistent quoting for white space in IU_TESTDIR. Robustness with
error checking. Execution inside `tests/'.
(TARGET, TARGET6): New variables.
(TMPDIR): Overrides `/tmp/' as temporary directory.
2012-01-23 Mats Erik Andersson <gnu@gisladisker.se>
* tests/ftp-localhost.sh: New preamble to fail with SVR4 shell.
Backtics in command substitution.
* tests/tftp.sh: Rewrite for SVR4 portability. Backtics in
command substitution. expr(1) for arithmetic. Only basic regex
with grep(1), no `-q'. Remove character classes. Quotation issue
for tr(1). Use `test -r /dev/urandom' to circumvent soft link.
2012-01-22 Mats Erik Andersson <gnu@gisladisker.se>
* tests/tftp.sh (USER): Calculate as `id -u -n'.
2012-01-22 Mats Erik Andersson <gnu@gisladisker.se>
* tests/ftp-localhost.sh: sysctl(1) uses `=' or `:' as delimeter.
Detect both.
2012-01-22 Mats Erik Andersson <gnu@gisladisker.se>
* ftpd/extern.h (usefamily): New declaration.
* ftpd/ftpd.c (options): New options `-4/ipv4' and `-6/ipv6`.
(parse_opt): Detect `4' and `6'.
* ftpd/server_mode.c (usefamily): New variable.
(DEFPORT) [!DEFPORT]: Use IPPORT_FTP if available.
(server_mode): Remove use of AI_ADDRCONFIG. When seeing
AF_UNSPEC, build AF_INET6 socket and reset socket option
IPV6_V6ONLY.
2012-01-22 Mats Erik Andersson <gnu@gisladisker.se>
* ftpd/extern.h (passive): New prototype.
* ftpd/ftpcmd.y (EPRT, EPSV, CHAR): New tokens.
(net_proto, tcp_port, net_addr): New value returning types.
(cmd) <PORT>: Use value returned from `host_port'. Erase PDATA
and USEDEFAULT only if successful.
(cmd) <PASV>: Changed call to passive().
(cmd) <EPRT, EPSV>: New code for token parsers.
(host_port): Declare as `%type <i>', returning an integer. Handle
mapped IPv4 addresses. Erase DATA_DEST after an address resolving
failure.
(DLIST): New macro used as state in finite state automata.
(cmdtab): New entries EPRT and EPSV.
(yylex) <DLIST>: Implement new state.
* ftpd/ftpd.c (passive): New prototype `passive(int, int)'. New
variable TRY_AF. Select address family based on parameters and
CTRL_ADDR.
(passive) <EPSV>: Handle AF_INET and AF_INET6.
(passive) <PASV>: Process also mapped IPv4 address.
* tests/ftp-localhost.sh: More tests in inetd mode: EPSV and EPRT
for IPv4 and IPv6. Suppress FTP dialog unless verbose.
2012-01-18 Simon Josefsson <simon@josefsson.org>
* ftpd/ftpd.c (options): Don't use OPTION_ARG_OPTIONAL for -a.
Resolves crash reported by Michal Mazurek <akfaew@jasminek.net>.
2012-01-07 Guillem Jover <guillem@hadrons.org>
* ifconfig/flags.c (flag_char_tab): Protect for full portability
every macro invokation IFF_* by a precompiler conditional.
2012-01-07 Mats Erik Andersson <gnu@gisladisker.se>
* telnet/utilities.c (SetNetTrace): Filename buffer overrun:
replace strcpy() by strncpy().
(printoption, printsub): Code formatting of ternary operator.
2012-01-07 Guillem Jover <guillem@hadrons.org>
* telnet/utilities.c (printsub) <env_common>: Use constant format
strings instead of offsets into fixed string. Remove NOQUOTE, add
QUOTE.
2012-01-06 Simon Josefsson <simon@josefsson.org>
inetutils 1.9.1
* configure.ac: Replace all '_' into '.'.
* NEWS: Updated.
* bootstrap: Updated from gnulib.
2012-01-04 Mats Erik Andersson <gnu@gisladisker.se>
Regression: Erase port for active data transmission.
* ftpd/ftpcmd.y (host_port): Use AI_NUMERICHOST and AI_NUMERICSERV
in `HINTS.ai_flags'. Do not use AI_ADDRCONFIG.
* ftpd/ftpd.c (getdatasock): Erase port number stored in
DATA_SOURCE.
* tests/ftp-localhost.sh: Detect transfered data and duplicate
tests also for an active connection, not only a passive attempt.
2012-01-03 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (gnulib_modules): Removed git-merge-changelog.
2012-01-03 Mats Erik Andersson <gnu@gisladisker.se>
Internal address structure rewrite for `ftpd'.
* ftpd/extern.h (data_dest, his_addr): Change to `struct
sockaddr_storage'.
(server_mode): New prototype: second argument `struct sockaddr *'.
* ftpd/ftpcmd.y (cmd): Use casts to `struct sockaddr_in' to
evaluate sub case `host_port'.
(yylex) [HAVE_SETPROCTITLE]: Compare to numeric naught, not NULL.
* ftpd/ftpd.c (data_dest, his_addr, ctrl_addr, data_source)
(pasv_addr): Change to `struct sockaddr_storage'.
(main): Apply updated server_mode().
(main, getdatasock, dataconn): Set IP_TOS only for AF_INET.
(dataconn, passive): Copy addresses using memcpy().
(statfilecmd): Change SIN to `struct sockaddr_storage'.
(statcmd): Casts as `struct sockaddr_in' needed for A and P.
(passive): Clear port number depending on address family. Reply
with 229 for EPSV/IPv6 and 227 for PASV.
* ftpd/server_mode.c (check_host): Activate AF_INET6 case.
(server_mode): Second argument is 'struct sockaddr *', must be
initiated before call, and returns actual address length. New
variable SAVED_ADDRLEN. Changed call due to these two.
2012-01-02 Mats Erik Andersson <gnu@gisladisker.se>
Initial address family abstraction for `ftpd'.
* ftpd/extern.h: Include <netinet/in.h>.
(data_dest_len, his_addr_len): New socklen_t variables.
(server_mode): Use a socklen_t argument.
* ftpd/ftpcmd.y: Include <netdb.h>.
(cmd) [unix || __unix__]: SYS_TYPE must recognize __unix__.
(host_port): Use getaddrinfo to initiate DATA_DEST.
* ftpd/ftpd.c (data_set_len, his_addrlen, addrstr, portstr)
(ctrl_addrlen, data_source_len, pasv_addrlen): New variables.
(check_host) [HAVE_LIBWRAP]: Prototype extended with socklen_t.
(dolog): Likewise.
(main): Use HIS_ADDRLEN, CTRL_ADDRLEN instead of local ADDRLEN.
Changed calls to server_mode and dolog due to new prototypes.
(getdatasock): Address family determined by CTRL_ADDR. Inherit
fields in DATA_SOURCE from CTRL_ADDR, and DATA_SOURCE_LEN from
CTRL_ADDRLEN. Dynamic address length to bind().
(dataconn): Use FROM as `struct sockaddr_storage. Change socket
descriptor S to be `int'. Assign DATA_DEST and DATA_DEST_LEN in a
block. Use getnameinfo for error message. Dynamic socket length
in connect().
(statcmd): Lookup using getnameinfo().
(dolog): New prototype, extended by `socklen_t'. Likewise.
(passive): Removed variable LEN, now using length and family
stored in address variables, which are global.
* ftpd/server_mode.c (check_host): New prototype: adding
`socklen_t'. Removed SIN, HP. New variables ERR, NAME. Lookup
uses getnameinfo().
(server_mode): New prototype: adding `socklen_t'. Delete
SERVER_ADDR. New varables ERR, PORTSTR, HINTS, RES, AI. Lookup
uses getaddrinfo and a loop to get listener. Server loop removes
ADDRLEN, now setting address length by use of PHIS_ADDRLEN.
2011-12-31 Alfred M. Szmidt <ams@gnu.org>
inetutils 1.9
* Makefile.am (EXTRA_DIST): Removed README-alpha from list.
* NEWS: Updated.
2011-12-31 Alfred M. Szmidt <ams@gnu.org>
Fix prohibit_always_true_header_tests syntax-checks.
* ifconfig/printif.c: Don't protect inclusion of <alloca.h> with
HAVE_ALLOCA_H.
* configure.ac: Don't protect inclusion of <sys/types.h> with
HAVE_SYS_TYPES_H.
* libinetutils/daemon.c: Likewise.
* telnet/commands.c: Likewise.
* src/syslogd.c: Likewise.
2011-12-30 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac: Check for ruserok. If iruserok exists, then
define WITH_IRUSEROK, else if ruserok exists, then define
WITH_RUSEROK. Disable rlogind and rshd otherwise. Check for
__check_rhosts_file.
* src/rlogind.c (__check_rhosts_file) [HAVE___CHECK_RHOSTS_FILE]:
Protect declaration as extern variable.
(iruserok) [__GLIBC__ && WITH_IRUSEROK]: Protect declaration as
extern.
(options) [HAVE___CHECK_RHOSTS_FILE]: Conditionally include the
option `-l/--no-rhosts'.
(parse_opt) [HAVE___CHECK_RHOSTS_FILE]: Likewise.
(exec_login) [SOLARIS]: Contemporary arguments for execle.
(do_rlogin) [WITH_IRUSEROK]: Protect usage of iruserok.
[!WITH_IRUSEROK && WITH_RUSEROK]: Do authorization with ruserok
composed with inet_ntoa.
* src/rshd.c (options) [HAVE___CHECK_RHOSTS_FILE]: Conditionally
include the option `-l/--no-rhosts'.
(__check_rhosts_file) [HAVE___CHECK_RHOSTS_FILE]: Protect
declaration as extern variable.
(iruserok) [__GLIBC__ && WITH_IRUSEROK]: Protect declaration as
extern.
(parse_opt) [HAVE___CHECK_RHOSTS_FILE]: Conditional detection of
`-l/--no-rhosts'.
(doit) [WITH_IRUSEROK]: Protect call to iruserok.
[!WITH_IRUSEROK && WITH_RUSEROK]: Do authorization with ruserok
composed with inet_ntoa.
2011-12-30 Alfred M. Szmidt <ams@gnu.org>
Fix prohibit_dirent_without_use, sc_unsigned_short,
sc_unsigned_long sc_unsigned_char checks.
* ftpd/ftpd.c, libicmp/icmp.h, libicmp/icmp_address.c,
libicmp/icmp_cksum.c, libicmp/icmp_echo.c,
libicmp/icmp_timestamp.c, libinetutils/des_rw.c,
libinetutils/kcmd.c, libinetutils/krcmd.c, libinetutils/ttymsg.c,
libls/fts.c, libls/fts.h, libls/ls.c, libls/ls.h, libls/print.c,
libtelnet/kerberos.c, ping/libping.c, ping/ping.c, ping/ping.h,
ping/ping6.c, ping/ping_common.c, ping/ping_common.h,
ping/ping_echo.c, ping/ping_impl.h, src/inetd.c, src/rcp.c,
src/rexecd.c, src/rlogin.c, src/rlogind.c, src/rshd.c,
src/syslogd.c, src/tftp.c, src/tftpd.c, src/traceroute.c,
talk/ctl.c, talk/talk_ctl.h, telnet/krb4-proto.h, telnet/ring.c,
telnet/ring.h: Silence Fix prohibit_dirent_without_use,
sc_unsigned_short, sc_unsigned_long sc_unsigned_char checks.
2011-12-30 Alfred M. Szmidt <ams@gnu.org>
Fix sc_prohibit_test_minus_ao check.
* tests/tftp.sh: Fix sc_prohibit_test_minus_ao check.
* tests/syslogd.sh: Likewise.
* tests/ftp-localhost.sh: Likewise.
2011-12-30 Alfred M. Szmidt <ams@gnu.org>
* cfg.mk (sc_unsigned_short): New target.
2011-12-30 Alfred M. Szmidt <ams@gnu.org>
* bootstrap: Updated from gnulib.
* lib/Makefile.am: File removed.
2011-12-30 Mats Erik Andersson <gnu@gisladisker.se>
* ftp/cmds.c (restart): Use `%lld' as format for long long int.
* ftpd/ftpcmd.y (rcmd, sizecmd): Likewise; also `%llu'.
* ftpd/ftpd.c (off_to_str): Likewise.
* src/rcp.c (source): Likewise.
2011-12-25 Alfred M. Szmidt <ams@gnu.org>
* libtelnet/encrypt.c: Fix indentation, and Use ANSI style
declarations for prototypes.
(EncryptDisable, EncryptType, EncryptStart, encrypt_support)
(encrypt_is, encrypt_reply, encrypt_keyid, encrypt_start_output)
(encrypt_send_request_start, encrypt_wait, encrypt_printsub):
Don't declare any variables as `register'.
2011-12-25 Alfred M. Szmidt <ams@gnu.org>
* libtelnet/encrypt.c (encrypt_keyid): Make sure that LEN never is
greater than MAXKEYLEN.
2011-12-22 Mats Erik Andersson <gnu@gisladisker.se>
* libinetutils/setsig.c (setsig) [HAVE_SIGACTION]: Initialize
`osa.sa_mask' just to be sure.
[HAVE_SIGVEC]: Likewise with `osv.sv_mask'.
* src/rlogin.c: Many rewritten comments.
(main): New variable OSMASK, used for old, saved signal mask.
(setsignal): New variable OSIGS, likewise.
(done): Use waitpid() instead of wait().
(catch_child): Detect errno equal to EINTR.
(doit, lostpeer): Let exit messages explain better. Add host name
to them, and append CR for correct printout.
2011-12-22 Mats Erik Andersson <gnu@gisladisker.se>
* libinetutils/setsig.c (setsig) [HAVE_SIGACTION]: New variable
OSA. Superpose SA_RESTART on SA_FLAGS, no replacement! Use OSA
for old signal mask in calling sigaction. Return SIG_ERR on
error, or fetch old signal handler from OSA upon success.
[HAVE_SIGVEC]: Likewise: New variable OSV. Use OSV in call to
sigvec. Return SIG_ERR on error, or old handler brought in from
OSV.
2011-12-20 Mats Erik Andersson <gnu@gisladisker.se>
* src/rlogind.c (rlogind_auth) [IP_OPTIONS]: Abort connection as
soon either of IPOPT_SSRR or IPOPT_LSRR is found. Other options
are recorded, and reported, but immediately erased.
* src/rshd.c (doit) [IP_OPTIONS]: Likewise.
[HAVE_NETINET_IN_SYSTM_H]: Include <netinet/in_systm.h>.
[HAVE_NETINET_IP_H]: Include <netinet/ip.h>.
* NEWS: Mention security issue inherent in source routing.
* AUTHORS: Mention myself as contributing author.
2011-12-19 Mats Erik Andersson <gnu@gisladisker.se>
* src/rcp.c (main) [!KERBEROS]: Exit at non-zero geteuid().
(toremote): After setting IPTOS_THROUGHPUT, print warning only for
ERRNO not equal to ENOPROTOOPT.
(tolocal): Likewise.
* src/rshd.c (doit): Remove misplaced syslog message. Improve
comments on port usage.
2011-12-13 Alfred M. Szmidt <ams@gnu.org>
Require automake 1.11.1.
* bootstrap: Updated from gnulib.
* bootstrap.conf (buildreq): Require automake 1.11.1.
* configure.ac: Likewise.
2011-12-13 Mats Erik Andersson <gnu@gisladisker.se>
* am/libcurses.m4 (IU_LIB_TERMCAP): Check libtermcap before
libcurses. New macros HAVE_TGETENT, HAVE_TERMCAP_TGETENT,
HAVE_CURSES_TGETENT, and HAVE_TERMINFO_TGETENT.
* am/readline.m4 (gl_FUNC_READLINE): In case libreadline is
absent, check whether libedit is present and suffices.
* telnet/telnet.c [HAVE_TERMCAP_TGETENT]: Include <termcap.h>.
[HAVE_CURSES_TGETENT]: Include <curses.h> and <term.h>.
(init_term) [HAVE_TGETENT]: Replace HAVE_READLINE by HAVE_TGETENT.
* telnetd/utility.c [HAVE_TERMCAP_TGETENT]: Likewise.
[HAVE_CURSES_TGETENT]: Likewise.
(terminaltypeok) [HAVE_TGETENT]: Likewise.
2011-12-13 Mats Erik Andersson <gnu@gisladisker.se>
* tests/ftp-localhost.sh: Check presence of directory `~ftp'.
2011-12-13 Mats Erik Andersson <gnu@gisladisker.se>
* tests/tftp.sh: Subtests for differing data transfer size.
Portability fix for Solaris.
2011-12-11 Mats Erik Andersson <gnu@gisladisker.se>
* tests/ftp-localhost.sh: Use strict IPv4 options for portability.
* configure.ac: Check for iruserok. Disable building of rshd and
rlogind if it is missing.
* NEWS, TODO: Updated.
2011-12-11 Mats Erik Andersson <gnu@gisladisker.se>
* tests/ftp-localhost.sh: Replace `echo' with portable construct.
2011-12-10 Mats Erik Andersson <gnu@gisladisker.se>
* tests/ftp-localhost.sh: Expand trapping to kill inetd process.
* tests/syslogd.sh: Likewise.
* tests/tftp.sh: Use a random testing directory and implement
cleanup in a trapping function.
2011-12-09 Mats Erik Andersson <gnu@gisladisker.se>
* telnet/Makefile.am (INCLUDES): Add $(NCURSES_INCLUDE) to list.
* telnetd/Makefile.am: Likewise.
* telnetd/utility.c (readstream) [HAVE_STREAMSPTY &&
HAVE_TERMIO_H]: Make use of `struct termio' conditioned on
HAVE_TERMIO_H.
2011-12-03 Mats Erik Andersson <gnu@gisladisker.se>
* tests/syslogd.sh: Random test directory. Identity from id(1).
Trap exit conditions for clean up.
2011-12-02 Mats Erik Andersson <gnu@gisladisker.se>
* tests/syslogd.sh: Match exact port number in regex pattern.
* tests/tftp.sh: Likewise.
2011-12-02 Mats Erik Andersson <gnu@gisladisker.se>
* tests/ftp-localhost.sh: Portable invokation of mktemp(1).
2011-12-02 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac: Check for external declarations of `telcmds' and
`telopts'. Define UTMPX for NetBSD.
* telnet/commands.c (send_tncmd) [!HAVE_DECL_TELOPTS]: Make the
external declaration conditional.
[HAVE_DECL_TELOPTS]: Enforce a cast `char **' on system's TELOPTS.
2011-12-01 Mats Erik Andersson <gnu@gisladisker.se>
* ifconfig/ifconfig.c: Include <netinet/in.h>.
* ifconfig/printif.h: Likewise.
* ping/libping.c: Likewise.
* src/hostname.c: Include <arpa/inet.h> after <netinet/in.h>.
* tests/syslogd.sh: Extra long socket name only for known cases.
Delay verbose version printing. Clean up when port was busy.
2011-11-30 Mats Erik Andersson <gnu@gisladisker.se>
OpenBSD 4.9 has changed <syslog.h>. Relax configuration.
* configure.ac (syslog internal macros): Remove check of
LOG_MAKEPRI.
* src/syslogd.c (LOG_MAKEPRI) [!LOG_MAKEPRI]: New macro.
2011-11-29 Alfred M. Szmidt <ams@gnu.org>
Basic test case for `hostname'.
* tests/Makefile.am (dist_check_SCRIPTS) [ENABLE_hostname]: Added
hostname.sh.
* tests/hostname.sh: New file.
2011-11-29 Alfred M. Szmidt <ams@gnu.org>
* tests/syslogd.sh: Output verbose output if VERBOSE is true.
2011-11-29 Alfred M. Szmidt <ams@gnu.org>
Be more robust in checking for IPV6_HOPLIMIT, and
IPV6_RECVHOPLIMIT.
* configure.ac: Rewrite check for IPV6_HOPLIMIT,
IPV6_RECVHOPLIMIT, and IPV6_2292HOPLIMIT. Don't add X prefix to
checks related to working_icmp6, have_beyondscope and ipv6.
2011-11-29 Giuseppe Scrivano <gscrivano@gnu.org>
* tests/syslogd.sh: Use 127.0.0.1 and [::1] instead of localhost
as arguments to logger.
2011-11-29 Mats Erik Andersson <gnu@gisladisker.se>
* whois/make_ip_del.pl: Compute netmasks correctly also with
64-bit arithmetic.
2011-11-26 Mats Erik Andersson <gnu@gisladisker.se>
* tests/tftp.sh: Return skip code if INET port is already in use.
* tests/syslogd.sh: Likewise. Implement the corresponding test.
(PORT, PROTO): New variables.
2011-11-26 Mats Erik Andersson <gnu@gisladisker.se>
* tests/tftp.sh (INETD_PID): New variable; allows better
robustness. Improve patterns to fit also BSD.
2011-11-26 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac: Check presence of <protocols/talkd.h>. Disable
building of `talk' and `talkd' if it is missing.
* ftpd/Makefile.am (ftpd_SOURCES): Exclude unused `logwtmp.c'.
* libinetutils/logwtmpko.c [HAVE_UTMPX_H && SOLARIS]: Include
<utmpx.h>.
[HAVE_UPDWTMP && SOLARIS]: Implement missing `logwtmp()'.
2011-11-21 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac: Do not check for <malloc.h>.
* libinetutils/localhost.c [HAVE_MALLOC_H]: Do not include
<malloc.h> and delete the conditional.
* telnet/commands.c [HAVE_MALLOC_H]: Likewise.
2011-11-21 Mats Erik Andersson <gnu@gisladisker.se>
* telnetd/telnetd.c (login_invocation) [SOLARIS]: Changes for
terminal and user name.
* TODO: Updated.
2011-11-21 Mats Erik Andersson <gnu@gisladisker.se>
* tests/syslogd.sh: Implement post-run cleanup.
2011-11-21 Mats Erik Andersson <gnu@gisladisker.se>
* libtelnet/getent.c [HAVE_CGETENT]: Include <stdlib.h>.
* telnet/sys_bsd.c (sendayt) [SIGINFO]: Missing declaration.
* doc/inetutils.texi (telnet invocation): Minor fixes.
* TODO: Updated.
2011-11-19 Mats Erik Andersson <gnu@gisladisker.se>
* TODO: Updated.
2011-11-19 Simon Josefsson <simon@josefsson.org>
* TODO: Updated.
2011-11-19 Simon Josefsson <simon@josefsson.org>
* README (Notes): Doc fix.
2011-11-19 Simon Josefsson <simon@josefsson.org>
* bootstrap.conf (gnulib_modules): Remove readline.
* configure.ac: Search for readline.
* ftp/cmds.c: Unconditionally include readline headers.
* ftp/main.c: Likewise.
* am/readline.m4: New file.
2011-11-19 Alfred M. Szmidt <ams@gnu.org>
* .gitignore (/m4): Added to list.
* bootstrap.conf (gnulib_modules): Don't try to create m4/ for
./bootstrap.
* configure.ac: Add check for IPV6_2292HOPLIMIT.
2011-11-19 Alfred M. Szmidt <ams@gnu.org>
* cfg.mk (sc_unsigned_char, sc_unsigned_long): New targets.
2011-11-19 Mats Erik Andersson <gnu@gisladisker.se>
* telnet/telnet.c [HAVE_READLINE]: Replace previous use of
HAVE_LIBREADLINE for header inclusion and code protection.
* telnetd/utility.c [HAVE_READLINE]: Likewise.
2011-11-19 Simon Josefsson <simon@josefsson.org>
* tests/Makefile.am (dist_check_SCRIPTS): Add ftp-localhost.sh.
* tests/ftp-localhost.sh: New file.
2011-11-19 Simon Josefsson <simon@josefsson.org>
* ftp/cmds.c [HAVE_READLINE_HISTORY_H]: Include
<readline/history.h>.
* ftp/main.c: Likewise.
2011-11-18 Simon Josefsson <simon@josefsson.org>
* ftp/cmds.c: Replace complex readline #includes with simple
include of gnulib's readline.h.
(another): Assume libreadline has add_history.
* ftp/main.c: Likewise.
* configure.ac: Remove obsolete readline checks (we now use
gnulib's readline module).
2011-11-17 Mats Erik Andersson <gnu@gisladisker.se>
* telnet/telnet.c [HAVE_LIBREADLINE]: Include <curses.h>.
* telnetd/utility.c [HAVE_LIBREADLINE]: Likewise.
[HAVE_STREAMSPTY && HAVE_GETMSG && HAVE_STROPTS_H]: Include
<stropts.h>.
* telnetd/state.c [HAVE_STREAMSPTY && TIOCSIGNAL &&
HAVE_STROPTS_H]: Likewise.
(NTELOPTS) [!NTELOPTS]: New macro.
2011-11-14 Simon Josefsson <simon@josefsson.org>
* README (Notes): Doc fix.
2011-11-14 Bruno Haible <bruno@clisp.org> (tiny change)
* telnet/Makefile.am (LDADD): Add LIBREADLINE, for tgetent on
Solaris.
* telnetd/Makefile.am (LDADD): Likewise.
2011-11-14 Simon Josefsson <simon@josefsson.org>
* src/Makefile.am (logger_SOURCES): Add logprio.h.
2011-11-14 Simon Josefsson <simon@josefsson.org>
* ping/ping.c: New variable.
(argp_options): Add parameter -W aka --linger.
(parse_opt): Parse -W parameter.
(ping_run): Use linger parameter.
* doc/inetutils.texi (ping invocation): Doc fix.
* NEWS: Likewise.
2011-11-12 Simon Josefsson <simon@josefsson.org>
* .gitignore, doc/.gitignore: Update from gnulib-tool.
* NEWS: Add.
2011-11-11 Mats Erik Andersson <gnu@gisladisker.se>
* doc/inetutils.texi (Introduction): White space.
(Common options): Mention `--usage'. Replace brackets.
(Exit status): Spacing around `---'.
(telnetd invocation): Several corrections.
* telnetd/telnetd.c (argp_options): Remove duplicate space.
2011-11-09 Mats Erik Andersson <gnu@gisladisker.se>
* src/syslogd.c (create_unix_socket): Avoid buffer overrun for
very long UNIX socket names. Return proper error codes also when
bind() or chmod() fail.
* tests/syslogd.sh: Implement tests for the boundary cases of very
long UNIX socket names.
2011-10-31 Simon Josefsson <simon@josefsson.org>
* doc/inetutils.texi (Top): Remove 'Concept Index'. Doc fix.
(Introduction): Doc fix.
(Concept Index): Removed chapter, not used properly.
(Index): Remove incorrect description text.
2011-10-31 Simon Josefsson <simon@josefsson.org>
* tests/.gitignore: Add addrpeek.
2011-10-31 Simon Josefsson <simon@josefsson.org>
* cfg.mk (local-checks-to-skip): Add sc_bindtextdomain.
(exclude_file_name_regexp--sc_prohibit_have_config_h): New
variable, to silence syntax-check warning.
2011-10-29 Mats Erik Andersson <gnu@gisladisker.se>
* src/tftp.c (peeraddr): Change to `struct sockaddr_storage'.
(peerlen): New variable.
(port): Changed to use host byte order.
(get_port, set_port): New functions.
(main): Remove SIN. Do not initiate F as a socket.
(resolve_name): New signature `int r_n (char *)'. Remove unused
return state RESOLVE_NOT_RESOLVED. Replace use of gethostbyname()
by code based on getaddrinfo().
(setpeer): Simplifications brought in by resolve_name() and PORT.
(put): Handle square bracket escaping of host address. Use new
function set_port().
(get): Likewise.
(send_file): Change FROM to be `struct sockaddr_storage'. Use
PEERLEN in sendto(). Use set_port() and get_port().
(recvfile): Likewise.
(nak): Use PEERLEN in sendto().
* doc/inetutils.texi (tftp): Mention escaping of IPv6 addresses.
2011-10-29 Mats Erik Andersson <gnu@gisladisker.se>
* src/tftp.c (main): New variable SP. Set default value for PORT.
2011-10-28 Simon Josefsson <simon@josefsson.org>
* cfg.mk (_build-aux): Add variable, gnulib now needs this for
syntax-check.
2011-10-27 Mats Erik Andersson <gnu@gisladisker.se>
* src/tftpd.c (main) [HAVE_STRUCT_SOCKADDR_SA_LEN]: Assign value
to `sin.ss_len'.
(main): Do not use connect() on the socket.
(send_file, recvfile, nak): Replace send() by sendto().
2011-10-27 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac (HAVE_STRUCT_TFTPHDR_TH_U): Detect whether `struct
tftphdr' contains a member `th_u'.
* src/tftp.c (makerequest, tpacket) [HAVE_STRUCT_TFTPHDR_TH_U]:
Use pointer variable `tp->th_stuff', or generate a correct
pointer.
* src/tftpd.c (tftp) [HAVE_STRUCT_TFTPHDR_TH_U]: Likewise.
2011-10-27 Alfred M. Szmidt <ams@gnu.org>
* telnetd/Makefile.am (INCLUDES): Add -I$(top_srcdir) to list.
2011-10-26 Giuseppe Scrivano <gscrivano@gnu.org>
* bootstrap.conf (gnulib_modules): Add ioctl to list.
* ftpd/Makefile.am (LDADD): Put iu_LIBRARIES as last element of
LDADD.
* libicmp/icmp_timestamp.c: Include <stddef.h>; reverts parts of
2011-10-15.
* libicmp/icmp_address.c: Do not include <stddef.h>. Revert
change of 2011-10-25.
2011-10-25 Alfred M. Szmidt <ams@gnu.org>
* configure.ac: Pass regexp to git-version-gen to get version tag.
Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
2011-10-25 Alfred M. Szmidt <ams@gnu.org>
New variables (iu_LIBRARIES and iu_INCLUDES ) for specifying core
inetutils libraries and header files in Makefile.am.
* configure.ac (iu_INCLUDES, iu_LIBRARIES): New variables.
* whois/Makefile.am (INCLUDES, LDADD): Use $(iu_INCLUDES) and
$(iu_LIBRARIES), respectivley.
* tests/Makefile.am (AM_CPPFLAGS, LDADD): Likewise.
* ifconfig/Makefile.am (INCLUDES, LDADD): Likewise.
* ftp/Makefile.am (INCLUDES, LDADD): Likewise.
* ftpd/Makefile.am (INCLUDES, LDADD): Likewise.
* talkd/Makefile.am (INCLUDES, LDADD): Likewise.
* talk/Makefile.am (INCLUDES, LDADD): Likewise.
* telnetd/Makefile.am (INCLUDES): Use $(iu_INCLUDES).
(LDADD): Use $(iu_LIBRARIES) and explicitly use static version of
libtelnet.
* telnet/Makefile.am (INCLUDES, LDADD): Likewise.
* src/Makefile.am (INCLUDES): Use $(iu_INCLUDES).
(LDADD): Use $(iu_LIBRARIES) and explicitly use static version of
libicmp.
* ping/Makefile.am (ping_LDADD): Use $(iu_LIBRARIES) and
explicitly use static version of libicmp.
(INCLUDES, ping6_LDADD): Use $(iu_INCLUDES) and $(iu_LIBRARIES),
respectivley.
* libtelnet/Makefile.am (INCLUDES): Use $(iu_INCLUDES).
* libls/Makefile.am (INCLUDES): Likewise.
* libinetutils/Makefile.am (libinetutils_a_LIBADD): Variable
removed.
(INCLUDES): Use $(iu_INCLUDES).
2011-10-25 Alfred M. Szmidt <ams@gnu.org>
* configure.ac: Don't try to define ARG_UNUSED macro.
2011-10-25 Alfred M. Szmidt <ams@gnu.org>
* libicmp/icmp_address.c: Include <stddef.h>; reverts parts of
2011-10-15.
2011-10-24 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (buildreq): Lowered build requirement of autoconf
to 2.59.
2011-10-23 Alfred M. Szmidt <ams@gnu.org>
* README-alpha: Don't mention gettext and libtool as build
requirements.
2011-10-23 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (buildreq): New variable.
(bootstrap_sync): Likewise.
2011-10-23 Alfred M. Szmidt <ams@gnu.org>
* README-prereq: New file.
* README-alpha: Mention that help2man is required for building.
2011-10-23 Alfred M. Szmidt <ams@gnu.org>
Updated ./bootstrap.
* bootstrap: Updated from gnulib (2011-10-23).
* bootstrap.conf (ACLOCAL_FLAGS): New variable.
* Makefile.am (AUTOMAKE_OPTIONS): Removed variable.
(ACLOCAL_AMFLAGS): Removed variable.
2011-10-21 Alfred M. Szmidt <ams@gnu.org>
* libinetutils/tftpsubs.c (PKTSIZE) [PKTSIZE]: Only define PKTSIZE
if needed.
* src/tftp.c, src/tftpd.c: Likewise.
2011-10-19 Alfred M. Szmidt <ams@gnu.org>
* telnetd/telnetd.h [HAVE_STROPTS_H && !HAVE_IOCTL]: Only include
<stropts.h> if HAVE_IOCTL wasn't defined.
2011-10-15 Alfred M. Szmidt <ams@gnu.org>
* .gitignore (gnulib, gnulib/, .sc-start-sc_bindtextdomain)
(.sc-start-sc_prohibit_have_config_h, lib/, !lib/Makefile.am):
Added to list.
2011-10-15 Alfred M. Szmidt <ams@gnu.org>
Clean up (some) `make syntax-check' errors.
* src/syslogd.c (init): Removed redundant if statment before free
call (was reintroduced 2011-06-20).
* libicmp/icmp_timestamp.c: Don't include <stddef.h>.
* src/syslogd.c (cfline): Removed redundant parentehsis around
macros.
2011-10-15 Alfred M. Szmidt <ams@gnu.org>
* src/inetd.c (argp_options) <pidfile>: Updated doc. string.
2011-10-11 Giuseppe Scrivano <gscrivano@gnu.org>
* ping/ping.c (parse_opt): Make `pattern' static.
* ping/ping6.c (parse_opt): Likewise.
2011-09-01 Mats Erik Andersson <gnu@gisladisker.se>
* src/syslogd.c (BindAddress): New variable.
(finet): Replace by two-element vector of same name.
(argp_options): New options: "ipv4", "ipv6", "ipany", "bind".
(parse_opt): Likewise.
(main): Adaptions to the vector `finet[2]'.
(create_inet_socket): New prototype `void c_i_s (int, int [2])'.
Separate address families. Use BINDADDRESS at resolve time.
(fprintlog): Temporary socket by family; use descriptor pointer.
(die): Close both internet sockets.
* doc/inetutils.texi (syslogd): Update capabilities and options
for the server `syslogd'.
* tests/syslogd.sh: Adapt server options for IPv6.
2011-08-20 Mats Erik Andersson <gnu@gisladisker.se>
* src/logger.c (send_to_syslog, parse_opt) [LOG_PERROR]: Enclose
every reference to LOG_PERROR in a compiler conditional.
* src/logprio.h: New file.
* src/logger.c [!HAVE_SYSLOG_INTERNAL]: Include "logprio.h"
instead of the irregularly present <syslog-int.h>.
* src/syslogd.c: Likewise.
2011-08-20 Mats Erik Andersson <gnu@gisladisker.se>
* ftp/ftp.c (hookup): Remove length in format string.
* ifconfig/printif.c [HAVE_ALLOCA_H]: Include <alloca.h>.
* src/rexec.c: Include "minmax.h".
* libls/fts.c (fts_load): Replace `rindex' with `strrchr'.
* ping/ping_echo.c (ping_echo): Write non-empty error text.
* ping/ping6.c (parse_opt, ping_init): Likewise.
* ping/ping6.c [__sun__]: Define _XPG4_2 for access to
`msg_control'.
2011-08-18 Mats Erik Andersson <gnu@gisladisker.se>
* libinetutils/utmp_logout.c (utmp_logout) [UTMPX]: Insert missing
variable TV in right-hand side.
2011-08-17 Giuseppe Scrivano <gscrivano@gnu.org>
* bootstrap.conf (gnulib_modules): Use snippet/unused-parameter
instead of unused-parameter. It tracks a gnulib change.
2011-07-28 Mats Erik Andersson <gnu@gisladisker.se>
* ftpd/ftpd.c (getdatasock): Misnamed variable DATA_SOURCE.
2011-07-25 Mats Erik Andersson <gnu@gisladisker.se>
* ftpd/ftpd.c (getdatasock) [HAVE_STRUCT_SOCKADDR_IN_SIN_LEN]:
Assign value to structure member `sin_len'.
* ftpd/server_mode.c (server_mode) [HAVE...SIN_LEN]: Likewise.
* ftpd/ftpcmd.y (host_port) [HAVE...SIN_LEN]: Likewise.
2011-07-17 Mats Erik Andersson <gnu@gisladisker.se>
* src/syslogd.c (LogPort): Remove variable.
(main): Initialize INET socket based only on ACCEPTREMOTE.
(fprintlog): Implement forwarding independently of any INET
listener. A socket using TEMP_FINET is initialized as needed.
(init): Remove call to `getservbyname()' and variable SP. They
are no longer needed and accidential config loss is now avoided.
2011-07-13 Mats Erik Andersson <gnu@gisladisker.se>
* src/syslogd.c (cfline): Prevent incrementing beyond string end.
Discard config line with empty action.
* tests/syslogd.sh: Three new degenerate config lines.
2011-06-20 Mats Erik Andersson <gnu@gisladisker.se>
* src/syslogd.c: Replace all `struct sockaddr_in' with `struct
sockaddr_storage'; provide `socklen_t' where needed. Replace
`gethostbyname', `struct hostent' with `getaddrinfo' and `struct
addrinfo'.
(struct filed): In `struct f_forw', use `struct sockaddr_storage'
and `socklen_t'.
(addrstr, addrname, usefamily, LogPortText): New variables.
(main): Call `create_inet_socket' with parameter USEFAMILY.
(create_inet_socket): New parameter list `int' with address
family. Enforce `IPV6_ONLY' for family `AF_INET6'.
(cvthname): New parameter list `struct sockaddr *, socklen_t'.
Replace `inet_ntoa' and `gethostbyaddr' by two applications of
`getnameinfo'.
(init): Use LOGPORTTEXT to determine listening port. Sanity check
on `f->f_prevhost' before freeing memory.
* tests/syslogd.sh [REMOTE_LOGHOST]: Include a loghost setting.
2011-06-18 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (gnulib_modules): Added mkstemp to list.
2011-06-18 Alfred M. Szmidt <ams@gnu.org>
* tests/syslogd.sh: Changed permission on file to be executable.
2011-06-18 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (gnulib_modules): Added unused-parameter to list.
* libtelnet/Makefile.am (INCLUDES): Added "-I$(top_srcdir)/lib
-I../lib" to list.
* src/Makefile.am (INCLUDES): Added -I$(top_builddir)/lib to list.
* talkd/talkd.c: Include "unused-parameter.h". Replaced all usage
of ARG_UNUSED with _GL_UNUSED_PARAMETER.
* talkd/table.c: Likewise.
* talk/init_disp.c: Likewise.
* src/syslogd.c: Likewise.
* src/rlogind.c: Likewise.
* src/rlogin.c: Likewise.
* src/inetd.c: Likewise.
* libtelnet/auth.c: Likewise.
* ftpd/server_mode.c: Likewise.
* ftpd/ftpd.c: Likewise.
* ftp/main.c: Likewise.
* ftp/ftp.c: Likewise.
* ftp/cmds.c: Likewise.
2011-06-18 Alfred M. Szmidt <ams@gnu.org>
* whois/whois.h: Replace RETSIGTYPE with void; this is old K&Rism.
* whois/whois.c: Likewise.
* telnet/sys_bsd.c: Likewise.
* talk/invite.c: Likewise.
* talk/init_disp.c: Likewise.
* src/syslogd.c: Likewise.
* src/rsh.c: Likewise.
* src/rlogind.c: Likewise.
* src/rlogin.c: Likewise.
* src/rcp.c: Likewise.
* src/inetd.c: Likewise.
* ping/ping6.c: Likewise.
* ping/ping.c: Likewise.
* libtelnet/auth.c: Likewise.
* libinetutils/daemon.c: Likewise.
2011-06-18 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (gnulib_modules): Use malloc-gnu and realloc-gnu
instead of the old malloc and realloc modules.
2011-06-17 Alfred M. Szmidt <ams@gnu.org>
* libinetutils/libinetutils.h: Don't include <config.h>; instead
produce an error if we haven't included it.
2011-06-17 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (gnulib_modules): Added signal to list.
2011-06-16 Simon Josefsson <simon@josefsson.org>
* configure.ac: Don't check for sig_t.
* libinetutils/setsig.c (setsig): Use sighandler_t instead of
sig_t. Reported by Mats Erik Andersson <gnu@gisladisker.se>.
* ftp/cmds.c (mput, mget, mdelete, mls, shell, doproxy): Likewise.
* ftp/ftp.c (command, getreply, sendrequest, recvrequest)
(pswitch, proxtrans): Likewise.
* src/rlogin.c (setsignal): Likewise.
* src/rcp.c (susystem): Likewise.
2011-06-15 Mats Erik Andersson <gnu@gisladisker.se>
* src/syslogd.c (fprintlog): Sanity check on `f->f_prevhost' to
avoid deferencing NULL.
(cfline): A permanently failed DNS lookup must produce F_UNUSED.
* tests/syslogd.sh: New file.
* tests/Makefile.am (dist_check_SCRIPTS) [ENABLE_logger &&
ENABLE_syslogd]: Add `syslogd.sh'.
2011-06-08 Alfred M. Szmidt <ams@gnu.org>
* tests/tftp.sh: Skip test if we cannot execute netstat. Enable
verbose execution of test as early as possible.
2011-06-05 Alfred M. Szmidt <ams@gnu.org>
Clean up `make syntax-check' errors.
* tests/addrpeek.c: Include <config.h> instead of "config.h".
(main): Call set_program_name.
* src/syslogd.c (init): Removed redundant if statment before free
call.
* libls/stat_flags.c: Don't include <stddef.h>.
* ifconfig/changeif.c (set_address): Fix typo.
* src/logger.c (parse_opt): Likewise.
* src/rlogin.c: Likewise.
* talk/invite.c (answers): Likewise.
* ftp/ftp.c: Removed redundant parentehsis in #if guard.
2011-06-05 Alfred M. Szmidt <ams@gnu.org>
* configure.ac: Don't check for <osockaddr.h>.
* talkd/intalkd.h [HAVE_OSOCKADDR_H]: Don't include <osockaddr.h>.
* talk/look_up.c: Likewise.
* talk/invite.c: Likewise.
* talk/get_names.c: Likewise.
* talk/get_addrs.c: Likewise.
* talk/ctl_transact.c: Likewise.
* talk/ctl.c: Likewise.
2011-05-09 Simon Josefsson <simon@josefsson.org>
* bootstrap.conf (gnulib_modules): Removed 'exit' from list.
(gnulib_modules): Remove 'strcase' from list (not needed anymore,
according to gnulib documentation).
2011-05-06 Mats Erik Andersson <gnu@gisladisker.se>
* doc/inetutils.texi (ftp invocation): Document new capabilities
related to the recent IPv6 code. A single old misprint.
2011-05-06 Mats Erik Andersson <gnu@gisladisker.se>
* ftp/extern.h (setipany, setipv4, setipv6): New prototypes.
* ftp/cmdtab.c (ipanyhelp, ipv4help, ipv6help): New help texts.
(cmdtab): Register commands `ipany', `ipv4', and `ipv6'.
* ftp/cmds.c (status): Report address family.
(setipany, setipv4, setipv6): New functions.
2011-05-06 Mats Erik Andersson <gnu@gisladisker.se>
* src/syslogd.c (fprintlog): Deallocate pointers F_HNAME or
F_FNAME when F_TYPE is invalidated as F_UNUSED.
(cfline): Likewise.
(init): Deallocate F_FNAME, F_HNAME, F_UNAMES, and F_PREVHOST
before reclaiming the pointer F.
2011-04-17 Mats Erik Andersson <gnu@gisladisker.se>
* ftp/ftp_var.h (usefamily): New variable.
* ftp/main.c (argp_options): New options `ipv4` and `ipv6`.
(parse_opt): Parse cases '4' and '6', set USEFAMILY accordingly.
(main): Initialize USEFAMILY to `AF_UNSPEC`.
* ftp/ftp.c (hookup): Resolve addresses according to USEFAMILY.
Use macro AI_ADDRCONFIG only with family `AF_UNSPEC`.
(initconn): New IPv6 protocol methods `EPSV` and `LPSV`. New
variable DATA_ADDR_SA6.
(initconn) [noport]: New IPv6 methods `EPRT` and `LPRT`.
2011-04-08 Mats Erik Andersson <gnu@gisladisker.se>
* ftp/cmds.c (setepsv4): New function.
(setpeer): Use the variable PORT in host byte order.
(status): New status message, based on DOEPSV4.
* ftp/cmdtab.c (epsv4help): New string variable.
(cmdtab): New command `epsv4` inserted.
* ftp/extern.h (setepsv4): New declaration.
* ftp/ftp_var.h (doepsv4): New variable.
* ftp/main.c (main): Initiate DOEPSV4 to `off`.
* ftp/ftp.c: Explicitly condition IP_TOS on address family
AF_INET. Replace `struct sockaddr_in` by `struct
sockaddr_storage`. Always use CTLADDRLEN when referencing address
lengths.
(ctladdrlen, ia, portstr): New variables.
(FTP_CONNECT_TIMEOUT): New macro.
(hookup): Replace resolver `gethostbyname` by `getaddrinfo`. A
timed alarm interrupts any slow connection attempt.
(getreply): New server return codes for `LPSV` and `EPSV`.
(initconn): New protocol methods `EPSV` and `LPSV`.
(initconn) [noport]: Trivial switch statement on `AF_INET`. New
protocol methods `EPRT` and `LPRT`.
2011-03-27 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Use AC_CANONICAL_HOST instead of
AC_CANONICAL_SYSTEM.
2011-03-27 Mike Frysinger <vapier@gentoo.org>
* ftpd/server_mode.c: Include <libinetutils.h>.
(server_mode): Changed prototype to ` int server_mode (const char
*pidfile, struct sockaddr_in *phis_addr, char *argv[])'. Handle
systems that do not have fork().
* ftpd/extern.h (server_mode): Updated prototype.
* ftpd/ftpd.c (main): Handle systems that do not have fork().
2011-03-27 Mike Frysinger <vapier@gentoo.org>
* libinetutils/libinetutils.h: Include <config.h>.
(fork_exit, fork): New macros.
* configure.ac: Check for presence of fork().
2011-01-26 Mats Erik Andersson <gnu@gisladisker.se>
* src/traceroute.c (main): Remove test on geteuid().
2011-01-25 Mats Erik Andersson <gnu@gisladisker.se>
* src/logger.c (host_family) [HAVE_DECL_GETADDRINFO]: New
variable.
(struct logger_sockaddr) [HAVE_IPV6]: New component SINET6.
(open_socket) [HAVE_DECL_GETADDRINFO]: Implement new code based on
getaddrinfo. Reorganize old handler of port specification.
(argp_options): New options `--ipv4' and `--ipv6`.
(parse_opt): Implement parsing of new options.
* doc/inetutils.texi (logger): Describe implications of
IPv6-support and fallback. Small corrections to example usage.
2010-12-21 Mats Erik Andersson <gnu@gisladisker.se>
* src/inetd.c (pidfile_option): New variable.
(pid_file): New variable.
(argp_options): Add an option for replacing file name of PID file.
(parse_opt): Handle option `p'.
(main): Condition PID file use on PIDFILE_OPTION. Replace the
macro PATH_INETDPID by variable PID_FILE.
2010-12-21 Mats Erik Andersson <gnu@gisladisker.se>
* src/inetd.c (inetd_getaddrinfo): If IPV6, then add a flag
AI_NUMERICHOST if the node is a numeric address string. New
variable NUMERIC_ADDRESS. Debug symbolic addresses.
(getconfigent): Replace `strchr' with `strrchr'.
2010-12-21 Mats Erik Andersson <gnu@gisladisker.se>
* src/inetd.c (print_service): If `ISMUX(SEP)' then present the
node name as `tcpmux' or as `tcpmuxplus'. Make 'builtin=' show
actual service name, or `no' for non-builtins.
(fix_tcpmux): Let SERV.se_file report `fix_tcpmux' as origin.
Correct some spelling mistakes in error message.
2010-12-21 Mats Erik Andersson <gnu@gisladisker.se>
* tests/addrpeek.c: New file.
* tests/Makefile.am: Register `addrpeek' using `check_PROGRAMS',
but conditioned on `ENABLE_inetd'.
2010-12-21 Mats Erik Andersson <gnu@gisladisker.se>
* src/inetd.c (prepenv): New prototype: `prepenv(int, struct
sockaddr *, socklen_t)'.
(prepenv): Change type of IP to `char []' of fixed length. Delete
HOST. New integer variable RET. Make type of SA_SERVER depend on
macro IPV6, either `struct sockaddr_storage' or `struct
sockaddr_in'.
(prepenv): Eliminate use of `inet_ntoa' and `gethostbyaddr' by new
calls to `getnameinfo', with and without restiction to numeric
results. Debugging output for three select environment variables.
(main): Make type of SA_CLIENT depend on macro IPV6, either
`struct sockaddr_storage' or `struct sockaddr_in'. Adaptions to
the new prototype for `prepenv'.
2010-12-04 Mike Frysinger <vapier@gentoo.org> (tiny change)
* man/Makefile.am (dist_man1_MANS): Renamed to dist_man_MANS.
2010-11-22 Mats Erik Andersson <gnu@gisladisker.se>
* src/traceroute.c: Include "xalloc.h".
* src/traceroute.c (host): Deleted variable.
(hostname, addrstr): New variables;
(parse_opt) [ARGP_KEY_ARG]: Abolish gethostbyname. Only use
xstrdup to copy argument.
(main): Use getaddrinfo and getnameinfo for name resolving. New
variables HINTS and *RES of type `struct addrinfo'.
2010-11-22 Mats Erik Andersson <gnu@gisladisker.se>
Resolve a double free issue. Leads to segmentation faults.
* src/inetd.c (nextconfig): Do not use `freeconfig'
unconditionally. Condition on SERV_NODE, which needs partial
memory deallocation.
2010-11-22 Mats Erik Andersson <gnu@gisladisker.se>
Partially revert changes introduced in fd64a202.
* src/inetd.c (nextconfig): Call `enter' for TCPMUX services, but
`expand_enter' for every other service.
2010-11-22 Mats Erik Andersson <gnu@gisladisker.se>
* src/inetd.c (inetd_getaddrinfo): Do not use AI_V4MAPPED with
address family AF_INET. FreeBSD fails otherwise.
2010-11-22 Mats Erik Andersson <gnu@gisladisker.se>
* ifconfig/flags.c (flag_char_tab): Protect the uses of
IFF_NOTRAILERS by `#ifdef'.
2010-11-22 Mats Erik Andersson <gnu@gisladisker.se>
Regression caused by fe539ae9...797d881c
* src/traceroute.c: Revert change from 2010-10-31. Change element
`ttl' in `struct trace' to be plain `int'.
(trace_init): Change type of TTLP to be `const int *'. Use
`sizeof (*ttlp)' in both calls to setsockopt.
(trace_inc_ttl): Likewise.
2010-11-21 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Check for __rcmd_errstr.
* src/rshd.c (doit): Protect declaration and use of __rcmd_errstr
variable with HAVE___RCMD_ERRSTR check.
2010-11-19 Mike Frysinger <vapier@gentoo.org>
* ftp/extern.h: Rename function ruserpass to remote_userpass.
* ftp/ftp.c (login): Call remote_userpass instead of ruserpass.
* ftp/ruserpass.c (remote_userpass): Renamed from ruserpass.
2010-10-31 Mats Erik Andersson <gnu@gisladisker.se>
* ifconfig/if_index.c (if_nametoindex, if_freenameindex)
(if_nameindex): Provide functions only if HAVE_STRUCT_IF_NAMEINDEX
isn't defined.
2010-10-31 Mats Erik Andersson <gnu@gisladisker.se>
libinetutils: UTMP fixes for OpenBSD.
* libinetutils/utmp_init.c [HAVE_UTIL_H]: Include <util.h>.
(utmp_init): Only use UTX.ut_host if HAVE_STRUCT_UTMP_UT_NAME ||
HAVE_STRUCT_UTMPX_UT_NAME are defined.
[HAVE_STRUCT_UTMP_UT_HOST]: Initialise USER using UTX.ut_host.
Call pututline()/endutent() only if HAVE_DECL_GETUTENT is defined,
otherwise use login().
* libinetutils/cleansess.c [HAVE_UTIL_H]: Include <util.h>.
* libinetutils/utmp_logout.c [HAVE_UTIL_H]: Include <util.h>.
Call getutline() only if HAVE_DECL_GETUTENT is defined, otherwise
use logout().
2010-10-31 Alfred M. Szmidt <ams@gnu.org>
Use git-version-gen to extract version number.
* .gitignore (.tarball-version, .version): Added to list.
* configure.ac: Use git-version-gen to extract version number.
* bootstrap.conf (gnulib_modules): Added git-version-gen to list.
* Makefile.am (BUILT_SOURCES): New variable.
($(top_srcdir)/.version, dist-hook): New targets.
* bootstrap.conf (gnulib_modules): Removed unlocked-io from list.
2010-10-31 Mats Erik Andersson <gnu@gisladisker.se>
traceroute: Pass integer values to IP_TTL option.
* src/traceroute.c (trace_init): Renamed TTLP to TTL, and changed
type to `int'.
(trace_inc_ttl): Likewise.
2010-10-31 Mats Erik Andersson <gnu@gisladisker.se>
Calculate socket length using sockaddr.
* src/inetd.c: New element `se_addrlen' in `struct servtab'.
(expand_enter): Record in SE_ADDRLEN the actual length of each
established control address.
(setup): Use the exact address length in call to bind(3).
2010-10-31 Mats Erik Andersson <gnu@gisladisker.se>
Improve the test suite.
* tests/tftp.sh: Make it robust and portable to GNU/Linux and BSD.
* tests/ping-localhost.sh: Test `ping' and `ping6'.
* tests/traceroute-localhost.sh: Test UDP and ICMP.
2010-10-31 Ludovic Courtès <ludo@gnu.org>
tftp: Resolve the "tftp" service only when no port is specified.
* src/tftp.c: Include <error.h>.
(port): Change from `short' to `int'.
(sp): Remove variable.
(main): Don't call `getservbyname'.
(setpeer): Call `getservbyname' when ARGC != 3.
(put, get): Refer to PORT instead of SP->s_port.
2010-10-27 Mats Erik Andersson <gnu@gisladisker.se>
Simon Josefsson <simon@josefsson.org>
* telnetd/telnetd.c (telnetd_setup): Pass correct length of saddr
to getnameinfo calls.
2010-10-26 Mats Erik Andersson <gnu@gisladisker.se>
* telnetd/telnetd.c (telnetd_setup): Really use LEN as size of
address.
2010-10-19 Alfred M. Szmidt <ams@gnu.org>
Added gendocs module for generation of web manual.
* doc/.gitignore: Ignore gendocs_template.
* cfg.mk (manual_title): New variable.
* bootstrap.conf (gnulib_modules): Added gendocs to list.
2010-10-19 Ludovic Courtès <ludo@gnu.org>
Add `tftpd' and `tftp' test.
* tests/Makefile.am (dist_check_SCRIPTS) [ENABLE_inetd &&
ENABLE_tftpd && ENABLE_tftp]: Add `tftp.sh'.
* tests/tftp.sh: New file.
2010-10-19 Alfred M. Szmidt <ams@gnu.org>
Silence sc_program_name errors.
* cfg.mk (local-checks-to-skip): Removed sc_program_name from
list.
* tests/localhost.c: Include <progname.h>.
(main): Set type to `int main (int argc, char **argv)'. Call
set_program_name.
* talkd/talkd.c: Include <progname.h>.
(main): Call set_program_name.
* libinetutils/argcv.c: Include <progname.h>.
(main): Set type to `int main (int argc, char **argv)'. Call
set_program_name.
* ifconfig/options.c (parse_cmdline): Removed call to
set_program_name.
* ifconfig/ifconfig.c: Include <progname.h>
(main): Call set_program_name.
* bootstrap.conf (gnulib_modules): Added git-merge-changelog to
list.
2010-10-18 Alfred M. Szmidt <ams@gnu.org>
Always use <termios.h> interface.
* telnetd/term.c: Always use <termios.h> interface.
* telnetd/telnetd.h [!HAVE_TERMIO_H]: Don't include <termio.h>
[!HAVE_TERMIO_H && !HAVE_TERMIO_H]: Don't include <sgtty.h>.
* telnet/externs.h (USE_TERMIO): Uncondtionally define macro.
(SYSV_TERMIO) [!HAVE_TERMIOS_H && HAVE_TERMIO_H]: Undefine macro.
* talk/init_disp.c [!HAVE_TERMIOS_H]: Don't include <sys/ioctl.h>.
[!HAVE_TERMIOS_H && HAVE_SYS_IOCTL_COMPAT_H]: Don't include
<sys/ioctl_compat.h>.
* libls/ls.c: Unconditionally include <termios.h>
* src/uucpd.c: Likewise.
* configure.ac: Removed checks for termios.h and termio.h specifc
functions, variables and headers.
* bootstrap.conf (gnulib_modules): Added termios module.
2010-10-18 Mats Erik Andersson <gnu@gisladisker.se>
* libinetutils/tftpsubs.c (synchnet): Changed type of FROM to be
"struct sockaddr_storage".
* src/tftpd.c: Changed all uses of "struct sockaddr_in" to be
"struct sockaddr_storage".
(fromlen): Meticulously tracks length of address structure FROM in
every function.
(verifyhost): Expanded declaration signature to be "(struct
sockaddr_storage *, socklen_t)". Use getnameinfo(3) as resolver.
(tftp) <logging>: Now displays address family "IPv4", "IPv6", or
"?".
2010-10-18 Mats Erik Andersson <gnu@gisladisker.se>
* ifconfig/printif.c (put_flags): Declare F as `unsigned short
int'.
(put_int): Parse H, h, and # modifiers.
* ifconfig/options.c (formats) <unix>: Fix formating.
* ifconfig/flags.c (flag_char_tab) [IFF_SIMPLEX]: New member
IFF_SIMPLEX
2010-10-18 Guillem Jover <guillem@hadrons.org>
* configure.ac: Remove opie AC_CHECK_LIB check.
2010-10-18 Guillem Jover <guillem@hadrons.org>
* src/inetd.c (nextconfig): Call expand_enter instead of enter for
tcpmux services.
(fix_tcpmux): Likewise.
2010-10-18 Guillem Jover <guillem@hadrons.org>
* src/inetd.c (getconfigent): If se_argc == 1 inject the
normalized se_server name into se_argv[0].
2010-10-18 Guillem Jover <guillem@hadrons.org>
* src/inetd.c (getconfigent) [IPV6]: Change default family to IPv4
for "tcp" and "udp". Change "tcp6" and "udp6" to support IPv4
mapped addresses. Add "tcp6only" and "udp6only" protocols for
IPv6 only addresses.
(fix_tcpmux) [IPV6]: Set se_proto to "tcp6".
[!IPV6]: Set se_proto to "tcp".
2010-10-01 Mats Erik Andersson <gnu@gisladisker.se>
* src/inetd.c (setup, expand_enter, getconfigent, prepenv): Fix
comments.
2010-09-18 Mats Erik Andersson <gnu@gisladisker.se>
* ping/ping6.c: Include <sys/uio.h> for knowing "struct iov" in
BSD.
* ping/ping6.c (ping_init): Check for EACCES failure from
socket(2).
* ping/libping.c (ping_init): Likewise.
2010-09-23 Mats Erik Andersson <gnu@gisladisker.se>
* ifconfig/system/linux.c (linux_if_nameindex): Express the exact
amount remaining of the string when locating next token.
2010-09-28 Mats Erik Andersson <gnu@gisladisker.se>
* configure.ac: Unconditionally include <sys/types.h> when
checking for `struct sockaddr_in6'. Needed for OpenBSD.
2010-09-15 Mats Erik Andersson <gnu@gisladisker.se>
* telnetd/telnetd.c (login_invocation, argp_options): Access
login(1) by detected PATH_LOGIN.
2010-09-15 Mats Erik Andersson <gnu@gisladisker.se>
* man/Makefile.am: Use expansion "$(MAKE)".
2010-09-21 Simon Josefsson <simon@josefsson.org>
* ifconfig/system/qnx.h: Rename pre-processor symbol
IFCONFIG_SYSTEM_SOLARIS_H to IFCONFIG_SYSTEM_QNX_H. Reported by
Mats Erik Andersson <gnu@gisladisker.se>.
2010-09-09 Mats Erik Andersson <gnu@gisladisker.se>
* src/tftp.c (peeraddr, f, trace, verbose, rexmtval)
(maxtimeout): Remove external scope.
(peeraddr, f, port, trace, verbose, connected): Upgrade to static
scope in file.
(rexmtval, maxtimeout): Static scope and new positioning.
2010-09-03 Simon Josefsson <simon@josefsson.org>
* doc/inetutils.texi (telnetd invocation): Use two spaces after
end-of-sentence period. Reported by "Alfred M. Szmidt"
<ams@gnu.org>.
2010-08-20 Simon Josefsson <simon@josefsson.org>
* doc/inetutils.texi (telnetd invocation): Document --authmode and
--debug values. Tiny patch from Mats Erik Andersson
<mats.andersson@gisladisker.se>.
2010-08-20 Simon Josefsson <simon@josefsson.org>
* src/logger.c: Include sys/uio.h for writev. Suggested by Mats
Erik Andersson <mats.andersson@gisladisker.se>.
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
* ifconfig/system.h [__hpux__]: Don't include "system/hpux.c".
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
ifconfig: Random fixes for the `generic' operating system.
* ifconfig/system/generic.c (system_if_nameindex): New variable.
* ifconfig/flags.h: Include <sys/types.h>.
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
* src/tftp.c (intr): Changed type to `void intr (int signo)'.
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
ifconfig: Removed support for HPUX and OSF.
* ifconfig/system/hpux.c, ifconfig/system/hpux.h,
ifconfig/system/osf.c, ifconfig/system/osf.h: Files removed.
* ifconfig/system/Makefile.am (noinst_HEADERS): Don't include
hpux.h, hpux.c, osf.c, osf.h.
* ifconfig/system.c [__hpux__]: Don't include "system/hpux.c".
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
Converted K&R style declarations to ISO C89.
* ftp/cmds.c (account, all_lower, all_upper, another, cd, cdup)
(changetype, confirm, cp_subst, delete, disconnect, do_chmod)
(do_umask, domap, doproxy, dotrans, fatal, get, getit, globulize)
(lcd, ls, macdef, makedir, mdelete, mget, mls, modtime, mput)
(newer, onoff, proxabort, put, pwd, quit, quote, quote1, reget)
(remglob, removedir, renamefile, restart, rmthelp, rmtstatus)
(setascii, setbell, setbinary, setcase, setcr, setdebug, setform)
(setftmode, setglob, sethash, setnmap, setntrans, setpassive)
(setpeer, setport, setprompt, setrunique, setstruct, setsunique)
(settenex, settrace, settype, setverbose, shell, site, site_idle)
(sizecmd, status, strdown, syst, user): Use ANSI style
declarations for prototypes.
* ftp/extern.h (abortpt, abortrecv, abortsend, cmdabort, intr)
(lostpeer, proxabort, psabort): Likewise.
* ftp/ftp.c (abort_remote, abortpt, abortrecv, abortsend)
(dataconn, empty, getreply, gunique, hookup, initconn, login)
(proxtrans, psabort, pswitch, ptransfer, recvrequest, reset)
(sendrequest, tvsub): Likewise.
* ftp/main.c (makeargv, slurpstring): Likewise.
* ftpd/ftpcmd.y (lookupyyle): Likewise.
* libinetutils/tftpsubs.c (r_init, w_init): Likewise.
* libls/cmp.c (acccmp, modcmp, namecmp, revacccmp, revmodcmp)
(revnamecmp, revsizecmp, revstatcmp, sizecmp, statcmp): Likewise.
* libls/fts.c (fts_alloc, fts_build, fts_children, fts_close)
(fts_lfree, fts_load, fts_maxarglen, fts_open, fts_padjust)
(fts_palloc, fts_read, fts_set, fts_sort, fts_stat): Likewise.
* libls/ls.c (display, ls_main, mastercmp, traverse): Likewise.
* libls/print.c (compute_columns, printacol, printaname, printcol)
(printlink, printlong, printscol, printstream, printtime)
(printtype): Likewise.
* libls/stat_flags.c (flags_to_string, string_to_flags): Likewise.
* libls/util.c (putname, usage): Likewise.
* ping/ping.c (ping_finish): Likewise.
* ping/ping6.c (echo_finish, ping_finish): Likewise.
* ping/ping_address.c (address_finish): Likewise.
* ping/ping_echo.c (echo_finish): Likewise.
* ping/ping_timestamp.c (timestamp_finish): Likewise.
* src/inetd.c (fix_tcpmux): Likewise.
* src/logger.c (open_socket): Likewise.
* src/rcp.c (response): Likewise.
* src/rlogin.c (sendwindow, writer): Likewise.
* src/syslogd.c (create_inet_socket): Likewise.
* src/tftp.c (w_init, , r_init, , tail, , command, intr, makeargv)
(startclock, stopclock, getcmd, intr): Likewise.
* src/tftpd.c (r_init, w_init): Likewise.
* src/uucpd.c (getpwnam, , dologout, dologout, dologin): Likewise.
* talk/ctl.c (open_ctl, open_sockt): Likewise.
* talk/get_names.c (getlogin, , ttyname): Likewise.
* talk/init_disp.c (init_display, quit, set_edit_chars): Likewise.
* talk/invite.c (announce_invite, invite_remote, send_delete):
Likewise.
* talk/io.c (talk): Likewise.
* talk/look_up.c (check_local): Likewise.
* talk/msgs.c (end_msgs, start_msgs): Likewise.
* talkd/table.c (new_id): Likewise.
* talkd/talkd.c (talkd_init): Likewise.
* telnet/commands.c (docharmode, dokludgemode, dolinemode)
(dolmmode, env_help, env_init, env_list, modehelp, getslc)
(lclchars, logout, modehelp, quit, send_esc, send_help, slc_help)
(slccmd, help, slc_help, suspend, togcrlf, togcrmod, togdebug)
(togglehelp): Likewise.
* telnet/main.c (tninit): Likewise.
* telnet/network.c (init_network, netflush, setneturg, stilloob):
Likewise.
* telnet/sys_bsd.c (susp, TerminalAutoFlush, TerminalDefaultChars)
(TerminalFlushOutput, TerminalSaveState, xmitAO, init_sys)
(sys_telnet_init): Likewise.
* telnet/telnet.c (doflush, dosynch, env_opt_start)
(env_opt_start_info, get_status, gettermname, init_telnet, intp)
(netclear, rlogin_susp, sendabort, sendayt, sendbrk, sendeof)
(sendnaws, sendsusp, slc_check, slc_end_reply, slc_export)
(slc_init, slc_mode_export, slc_start_reply, slc_update, slcstate)
(suboption, telrcv, telsnd, xmitAO, xmitEC, xmitEL): Likewise.
* telnet/terminal.c (getconnmode, init_terminal, setcommandmode):
Likewise.
* telnet/tn3270.c (init_3270): Likewise.
* telnet/utilities.c (EmptyTerminal, SetForExit, optionstatus):
Likewise.
* telnetd/pty.c (scrub_env): Likewise.
* telnetd/slc.c (netflush, check_slc, default_slc, deferslc)
(get_slc_defaults, send_slc): Likewise.
* telnetd/state.c (doclientstat, doclientstat, recv_ayt, send_brk)
(send_eof, send_intr, send_status, send_susp, suboption, telrcv):
Likewise.
* telnetd/telnetd.c (print_hostinfo, telnetd_run): Likewise.
* telnetd/telnetd.h (netclear, netflush): Likewise.
* telnetd/term.c (init_termbuf, set_termbuf, term_change_eof)
(term_send_eof, tty_flowmode, tty_isbinaryin, tty_isbinaryout)
(tty_iscrnl, tty_isecho, tty_isediting, tty_islitecho, tty_israw)
(tty_issofttab, tty_istrapsig, tty_linemode, tty_restartany):
Likewise.
* telnetd/termstat.c (netflush, defer_terminit, flowstat)
(localstat, terminit): Likewise.
* telnetd/utility.c (_gettermname, debug_close, debug_open)
(io_drain, io_setup, net_buffer_is_full, net_input_level)
(net_output_level, net_read, netclear, netflush)
(pty_buffer_is_full, pty_input_level, pty_output_level, pty_read)
(ptyflush, set_neturg): Likewise.
* ftp/ftp.c (getreply): Pass bogus value to lostpeer.
(proxtrans): Likewise.
(reset): Likewise.
(abort_remote): Likewise.
* ftp/cmds.c (another): Likewise.
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
Use fseeko instead of fseek.
* libinetutils/tftpsubs.c (write_behind): Use fseeko instead of
fseek.
* libinetutils/tftpsubs.c (write_behind): Likewise.
* ftpd/ftpd.c (store): Likewise.
* ftp/ftp.c (recvrequest): Likewise.
(sendrequest): Likewise.
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
* cfg.mk (local-checks-to-skip): Removed sc_makefile_check from
list.
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
Removed useless C preprocessor parentehsis.
* cfg.mk (local-checks-to-skip): Removed sc_useless_cpp_parens
from list.
* ftp/cmds.c: Removed useless C preprocessor parentehsis.
* ftp/ftp.c: Likewise.
* ftpd/auth.c: Likewise.
* ftpd/ftpcmd.y: Likewise.
* ftpd/ftpd.c: Likewise.
* ftpd/logwtmp.c: Likewise.
* ifconfig/changeif.c: Likewise.
* ifconfig/flags.c: Likewise.
* ifconfig/if_index.c: Likewise.
* ifconfig/system.c: Likewise.
* ifconfig/system.h: Likewise.
* ifconfig/system/linux.c: Likewise.
* libinetutils/daemon.c: Likewise.
* libinetutils/kcmd.c: Likewise.
* libinetutils/krcmd.c: Likewise.
* libinetutils/utmp_init.c: Likewise.
* libinetutils/utmp_logout.c: Likewise.
* libls/fts.c: Likewise.
* libtelnet/auth-proto.h: Likewise.
* libtelnet/auth.c: Likewise.
* libtelnet/enc_des.c: Likewise.
* libtelnet/encrypt.c: Likewise.
* libtelnet/forward.c: Likewise.
* libtelnet/misc.c: Likewise.
* libtelnet/read_passwd.c: Likewise.
* src/inetd.c: Likewise.
* src/rcp.c: Likewise.
* src/rlogin.c: Likewise.
* src/rlogind.c: Likewise.
* src/rsh.c: Likewise.
* src/rshd.c: Likewise.
* src/uucpd.c: Likewise.
* talk/init_disp.c: Likewise.
* telnet/authenc.c: Likewise.
* telnet/commands.c: Likewise.
* telnet/defines.h: Likewise.
* telnet/externs.h: Likewise.
* telnet/main.c: Likewise.
* telnet/ring.c: Likewise.
* telnet/sys_bsd.c: Likewise.
* telnet/telnet.c: Likewise.
* telnet/tn3270.c: Likewise.
* telnet/utilities.c: Likewise.
* telnetd/state.c: Likewise.
* telnetd/telnetd.c: Likewise.
* telnetd/telnetd.h: Likewise.
* telnetd/term.c: Likewise.
* telnetd/termstat.c: Likewise.
* telnetd/utility.c: Likewise.
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
Use EXIT_SUCCESS and EXIT_FAILURE macros through out.
* cfg.mk (local-checks-to-skip): Removed
sc_prohibit_magic_number_exit from list.
* whois/whois.c (main, err_sys, err_quit): Don't use magical exit
numbers.
* telnetd/utility.c (io_drain, fatal): Likewise.
* telnetd/telnetd.c (main, telnetd_setup): Likewise.
* telnetd/state.c (telrcv): Likewise.
* telnetd/pty.c (startslave, cleanup): Likewise.
* telnet/terminal.c (init_terminal): Likewise.
* telnet/network.c (init_network): Likewise.
* telnet/main.c (main): Likewise.
* talkd/talkd.c (talkd_init, alarm_handler): Likewise.
* talkd/table.c (insert_table): Likewise.
* talkd/announce.c (announce): Likewise.
* talkd/acl.c (netdef_parse, read_acl): Likewise.
* talk/init_disp.c (init_display, quit): Likewise.
* src/uucpd.c (main): Likewise.
* src/traceroute.c (main): Likewise.
* src/tftpd.c (main, tftp, timer, justquit): Likewise.
* src/tftp.c (main, command, quit): Likewise.
* src/syslogd.c (main, add_funix, crunch_list, die): Likewise.
* src/rshd.c (main, doit, getstr): Likewise.
* src/rsh.c (main, else, sigmask, talk, copyargs): Likewise.
* src/rlogind.c (main, rlogin_daemon, rlogind_auth)
(rlogind_mainloop, getstr, cleanup, fatal): Likewise.
* src/rlogin.c (main): Likewise.
* src/rexecd.c (main, doit): Likewise.
* src/rexec.c (main): Likewise.
* src/rcp.c (main, toremote, sink): Likewise.
* src/logger.c (main): Likewise.
* src/inetd.c (echo_stream, discard_stream, chargen_stream)
(tcpmux, main): Likewise.
* ping/ping.c (main): Likewise.
* libtelnet/auth.c (auth_send): Likewise.
* libls/util.c (usage): Likewise.
* libls/ls.c (traverse, display): Likewise.
* ifconfig/ifconfig.c (main): Likewise.
* ftpd/ftpd.c (main, pass): Likewise.
* ftp/cmds.c (fatal): Likewise.
* libinetutils/daemon.c: Include <stdlib.h>.
(waitdaemon_timeout): Don't use magical exit numbers.
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
Only include <signal.h> if it is used.
* cfg.mk (local-checks-to-skip): Removed
sc_prohibit_signal_without_use from list.
* ftp/domacro.c: Don't include <signal.h>.
* libicmp/icmp_address.c: Likewise.
* libicmp/icmp_echo.c: Likewise.
* libicmp/icmp_timestamp.c: Likewise.
* libtelnet/read_passwd.c: Likewise.
* ping/libping.c: Likewise.
* ping/ping_address.c: Likewise.
* ping/ping_echo.c: Likewise.
* ping/ping_router.c: Likewise.
* ping/ping_timestamp.c: Likewise.
* src/traceroute.c: Likewise.
* src/uucpd.c: Likewise.
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
* cfg.mk (local-checks-to-skip): Removed sc_trailing_blank from
list.
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
* cfg.mk (local-checks-to-skip): Removed sc_space_tab from list.
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
Don't protect <config.h> with HAVE_CONFIG_H.
* cfg.mk (local-checks-to-skip): Removed sc_prohibit_have_config_h
from list.
* ftp/cmdtab.c: Include <config.h> uncondtionally.
* ftp/domacro.c: Likewise.
* ftp/ftp.c: Likewise.
* ftp/main.c: Likewise.
* ftp/ruserpass.c: Likewise.
* ftpd/auth.c: Likewise.
* ftpd/conf.c: Likewise.
* ftpd/ftpcmd.y: Likewise.
* ftpd/ftpd.c: Likewise.
* ftpd/logwtmp.c: Likewise.
* ftpd/pam.c: Likewise.
* ftpd/popen.c: Likewise.
* ftpd/server_mode.c: Likewise.
* ifconfig/changeif.c: Likewise.
* ifconfig/flags.c: Likewise.
* ifconfig/if_index.c: Likewise.
* ifconfig/ifconfig.c: Likewise.
* ifconfig/options.c: Likewise.
* ifconfig/printif.c: Likewise.
* ifconfig/system/generic.c: Likewise.
* ifconfig/system/hpux.c: Likewise.
* ifconfig/system/linux.c: Likewise.
* ifconfig/system/osf.c: Likewise.
* ifconfig/system/qnx.c: Likewise.
* ifconfig/system/solaris.c: Likewise.
* libicmp/icmp_address.c: Likewise.
* libicmp/icmp_cksum.c: Likewise.
* libicmp/icmp_echo.c: Likewise.
* libicmp/icmp_timestamp.c: Likewise.
* libinetutils/cleansess.c: Likewise.
* libinetutils/des_rw.c: Likewise.
* libinetutils/kcmd.c: Likewise.
* libinetutils/krcmd.c: Likewise.
* libinetutils/localhost.c: Likewise.
* libinetutils/logwtmp.c: Likewise.
* libinetutils/setsig.c: Likewise.
* libinetutils/shishi.c: Likewise.
* libinetutils/tftpsubs.c: Likewise.
* libinetutils/ttymsg.c: Likewise.
* libinetutils/utmp_init.c: Likewise.
* libinetutils/utmp_logout.c: Likewise.
* libls/cmp.c: Likewise.
* libls/fts.c: Likewise.
* libls/ls.c: Likewise.
* libls/print.c: Likewise.
* libls/stat_flags.c: Likewise.
* libls/util.c: Likewise.
* libtelnet/auth.c: Likewise.
* libtelnet/enc_des.c: Likewise.
* libtelnet/encrypt.c: Likewise.
* libtelnet/genget.c: Likewise.
* libtelnet/getent.c: Likewise.
* libtelnet/kerberos.c: Likewise.
* libtelnet/kerberos5.c: Likewise.
* libtelnet/misc.c: Likewise.
* libtelnet/read_passwd.c: Likewise.
* libtelnet/shishi.c: Likewise.
* ping/libping.c: Likewise.
* ping/ping.c: Likewise.
* ping/ping6.c: Likewise.
* ping/ping_address.c: Likewise.
* ping/ping_common.c: Likewise.
* ping/ping_echo.c: Likewise.
* ping/ping_router.c: Likewise.
* ping/ping_timestamp.c: Likewise.
* src/inetd.c: Likewise.
* src/logger.c: Likewise.
* src/rcp.c: Likewise.
* src/rexec.c: Likewise.
* src/rexecd.c: Likewise.
* src/rlogin.c: Likewise.
* src/rlogind.c: Likewise.
* src/rsh.c: Likewise.
* src/rshd.c: Likewise.
* src/syslogd.c: Likewise.
* src/tftp.c: Likewise.
* src/tftpd.c: Likewise.
* src/traceroute.c: Likewise.
* src/uucpd.c: Likewise.
* talk/ctl.c: Likewise.
* talk/ctl_transact.c: Likewise.
* talk/display.c: Likewise.
* talk/get_addrs.c: Likewise.
* talk/get_names.c: Likewise.
* talk/invite.c: Likewise.
* talk/io.c: Likewise.
* talk/look_up.c: Likewise.
* talk/msgs.c: Likewise.
* talk/talk.c: Likewise.
* talkd/talkd.c: Likewise.
* telnet/authenc.c: Likewise.
* telnet/commands.c: Likewise.
* telnet/main.c: Likewise.
* telnet/network.c: Likewise.
* telnet/sys_bsd.c: Likewise.
* telnet/telnet.c: Likewise.
* telnet/terminal.c: Likewise.
* telnet/tn3270.c: Likewise.
* telnet/utilities.c: Likewise.
* telnetd/telnetd.h: Likewise.
* whois/whois.c: Likewise.
* ftp/cmds.c: Likewise.
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
* cfg.mk (local-checks-to-skip): Removed
sc_prohibit_assert_without_use from list.
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
* cfg.mk (local-checks-to-skip): Removed sc_obsolete_symbols from
list.
2010-08-18 Giuseppe Scrivano <gscrivano@gnu.org>
Under GNU/Linux print interfaces without an address with ifconfig
-a.
* bootstrap.conf (gnulib_modules): Add module `read-file'.
* NEWS: Update.
* ifconfig/options.c (parse_cmdline): Use system_if_nameindex, not
if_nameindex.
* ifconfig/system.h: Include <if_index.h>.
* ifconfig/system/hpux.c (system_if_nameindex): New variable.
* ifconfig/system/osf.c (system_if_nameindex): Likewise.
* ifconfig/system/qnc.c (system_if_nameindex): Likewise.
* ifconfig/system/solaris.c (system_if_nameindex): Likewise.
* ifconfig/system/linux.c (linux_if_nameindex): New function.
(system_if_nameindex): New variable.
2010-08-16 Sergey Poznyakoff <gray@gnu.org.ua>
* ifconfig/flags.c (flag_char_tab): Protect the uses of IFF_SLAVE
and IFF_MASTER by #ifdefs.
2010-08-16 Alfred M. Szmidt <ams@gnu.org>
* ifconfig/options.c (parse_cmdline): Error out if IFNX is NULL.
2010-07-30 Giuseppe Scrivano <gscrivano@gnu.org>
* ifconfig/if_index.c (if_nameindex): Remove local variable `len'.
Remove code that compute the sizeof of the struct `ifreq'.
2010-07-10 Alfred M. Szmidt <ams@gnu.org>
* ifconfig/options.c (parse_opt_set_default_format): Abort if no
output format could be found.
2010-07-10 Giuseppe Scrivano <gscrivano@gnu.org>
* ifconfig/if_index.h (if_indextoname): Remove function
declaration.
* ifconfig/if_index.c (if_indextoname): Remove unused function.
2010-07-03 Giuseppe Scrivano <gscrivano@gnu.org>
* configure.ac: Do not check if `bcmp', `bcopy' and `bzero' exist.
* libinetutils/des_rw.c (des_read): Use `memcpy' instead of
`bcopy'.
(des_write): Likewise.
(des_clear_key): Use `memset' instead of `bzero'.
* libtelnet/encrypt.h (SAMEKEY): Use `memcmp' instead of `bcmp'.
* libinetutils/kcmd.c (kcmd): Use `memcpy' instead of `bcopy'.
* libinetutils/logwtmp.c (logwtmp_keep_open): Use `memset' instead
of `bzero'.
* ftp/ftp.c (initconn): Likewise.
* src/uucpd.c (main): Likewise.
* talk/get_addrs.c (get_addrs): Use `memmove' instead of `bcopy'.
2010-06-21 Giuseppe Scrivano <gscrivano@gnu.org>
* ifconfig/if_index.c (if_indextoname): Return NULL on errors.
2010-05-19 Kaio Rafael <kaiorafael@gmail.com> (tiny change)
* whois/as_del_list, whois/make_as_del.pl: Added copyright notice.
* whois/ip_del_list, whois/make_ip_del.pl: Likewise.
* whois/make_tld_serv.pl, whois/tld_serv_list: Likewise.
2010-05-18 Simon Josefsson <simon@josefsson.org>
* tests/Makefile.am (dist_check_SCRIPTS): Make testing ping and
traceroute conditioned on ENABLE_ping and ENABLE_traceroute.
Reported by Adam Sampson <ats@offog.org>.
2010-05-15 Alfred M. Szmidt <ams@gnu.org>
* configure.ac: Bump version number to 1.8.
* NEWS: Update.
2010-05-15 Alfred M. Szmidt <ams@gnu.org>
* src/uucpd.c: Include <sys/wait.h>, <sys/time.h>, <time.h>
unconditionally.
* src/tftp.c: Include <sys/time.h>, <time.h> unconditionally.
* src/syslogd.c: Include <sys/time.h>, <time.h>, <stdarg.h>
unconditionally.
(dbg_printf): Remove redundant va_start call, don't use K&R style
variable arguments.
* src/rshd.c Include <alloca.h>, <sys/time.h>, <time.h>,
<sys/select.h> unconditionally.
[!alloca]: Removed macro.
* src/rsh.c: Include <sys/time.h>, <time.h>, <sys/select.h>
unconditionally.
* src/rlogind.c: Include <sys/time.h>, <time.h>, <sys/select.h>
unconditionally.
* src/rlogin.c: Include <sys/time.h>, <time.h>, <sys/wait.h>,
<stdarg.h> unconditionally.
(warning): Don't use K&R variable arguments.
* src/rexecd.c: Include <sys/time.h>, <time.h>, <sys/select.h>
unconditionally.
* src/rexec.c: Include <sys/select.h> unconditionally.
* src/rcp.c: Include <sys/time.h>, <time.h> unconditionally.
* src/inetd.c: Include <sys/wait.h>, <sys/time.h>, <time.h>,
<sys/select.h> unconditionally.
2010-05-15 Alfred M. Szmidt <ams@gnu.org>
* ifconfig/system/solaris.c: Include <unistd.h>, <string.h>
unconditionally.
* ifconfig/system/qnx.c: Include <unistd.h> unconditionally.
* ifconfig/system/osf.c: Include <unistd.h>, <string.h>
unconditionally.
* ifconfig/system/linux.c: Include <unistd.h>, <string.h>
unconditionally.
* ifconfig/system/hpux.c: Include <unistd.h>, <string.h>
unconditionally.
* ifconfig/printif.c: Include <unistd.h>, <string.h>
unconditionally.
* ifconfig/options.c: Include <string.h> unconditionally.
* ifconfig/ifconfig.c: Include <unistd.h>, <string.h>
unconditionally.
* ifconfig/flags.c: Include <string.h> unconditionally.
* ifconfig/changeif.c: Include <string.h> unconditionally.
2010-05-15 Alfred M. Szmidt <ams@gnu.org>
* libinetutils/utmp_logout.c: Include <sys/time.h>, <time.h>,
<string.h> unconditionally.
* libinetutils/utmp_init.c: Include <sys/time.h>, <time.h>,
<string.h> unconditionally.
* libinetutils/ttymsg.c (O_NONBLOCK): Removed macro.
* libinetutils/setsig.c: Include <stdlib.h> unconditionally.
* libinetutils/logwtmp.c: Include <sys/time.h>, <time.h>,
<errno.h>, <string.h> unconditionally.
* libinetutils/localhost.c: Include <stdlib.h> unconditionally.
* libinetutils/cleansess.c: Include <sys/time.h>, <time.h>,
<string.h> unconditionally.
2010-05-15 Alfred M. Szmidt <ams@gnu.org>
* libtelnet/shishi.c: Include <string.h> unconditionally.
* libtelnet/read_passwd.c: Don't include <strings.h>.
* libtelnet/kerberos5.c: Include <string.h> unconditionally.
* libtelnet/kerberos.c: Include <stdlib.h>, <string.h>
unconditionally.
* libtelnet/encrypt.c: Include <stdlib.h>, <string.h>, "genget.h"
unconditionally.
* libtelnet/enc_des.c: Include <stdlib.h> unconditionally.
* libtelnet/auth.c: Include <stdlib.h> unconditionally.
2010-05-15 Alfred M. Szmidt <ams@gnu.org>
* libls/fts.c: Include <string.h> unconditionally.
2010-05-14 Alfred M. Szmidt <ams@gnu.org>
* ftpd/popen.c: Include <sys/wait.h> unconditionally.
* ftpd/ftpd.c: Include <sys/time.h>, <time.h>, <sys/wait.h>
unconditionally.
(reply): Don't use K&R variable arguments.
(lreply): Don't use K&R variable arguments.
* ftpd/ftpcmd.y: Include <sys/time.h>, <time.h>, <sys/utsname.h>
unconditionally.
* ftpd/auth.c: Include <sys/time.h>, <time.h> unconditionally.
2010-05-14 Alfred M. Szmidt <ams@gnu.org>
* talk/msgs.c: Include <sys/time.h>, <time.h> unconditionally.
* talk/io.c: Include <sys/time.h>, <time.h>, <sys/select.h>
unconditionally.
* talk/invite.c: Include <sys/time.h>, <time.h> unconditionally.
* talk/ctl_transact.c: Include <sys/time.h>, <time.h>,
<sys/select.h> unconditionally.
2010-05-14 Alfred M. Szmidt <ams@gnu.org>
* Makefile.am (DISTCLEANFILES): Added
`$(PACKAGE)-$(VERSION).tar.gz' to list.
2010-05-14 Alfred M. Szmidt <ams@gnu.org>
Use || and && instead of -o and -a in calls to test.
* configure.ac: Use || and && type of test instead of -o and -a
for calls to `test'. Don't check for poll() Include <errno.h>
unconditionally in check for `sys_errlist'. Include <unistd.h>
and <stdlib.h> in check for `environ'.
* am/config_paths.m4: Use || and && type of test instead of -o and
-a for calls to `test'.
* am/libcurses.m4: Likewise.
2010-05-14 Alfred M. Szmidt <ams@gnu.org>
* ftp/ruserpass.c: Include <stdarg.h> unconditionally.
* ftp/ftp.c: Include <sys/time.h>, <time.h>, <stdarg.h>,
<sys/select.h> unconditionally.
(command): Don't use K&R variable arguments.
* ftp/cmds.c: <sys/wait.h>, <sys/time.h>, <time.h>
* telnetd/telnetd.c: Include <sys/utsname.h>, <strings.h>
unconditionally.
* telnet/utilities.c: Include <sys/time.h>, <time.h>
unconditionally. Don't include "fdset.h".
* telnet/tn3270.c: Don't include "fdset.h".
* telnet/telnet.c: Include <stdlib.h> unconditionally.
* telnet/sys_bsd.c: Include <sys/time.h>, <time.h>, <sys/select.h>
unconditionally. Don't include "fdset.h".
* telnet/network.c: Include <sys/time.h>, <time.h>, <sys/select.h>
unconditionally.
* telnet/commands.c: Include <fcntl.h>, <stdarg.h>, <stdlib.h>
unconditionally.
(call): Don't use K&R variable arguments.
* telnet/fdset.h: File removed.
2010-05-14 Alfred M. Szmidt <ams@gnu.org>
Silence makefile_at_at_check_exceptions from `make syntax-check'.
* telnetd/Makefile.am (INCLUDES, LDADD): Use $() variables,
instead of @@.
(LIBTERMCAP, LIBCRYPT, LIBUTIL): Removed variables.
* telnet/Makefile.am (noinst_HEADERS): Removed fdset.h from list.
(LIBTERMCAP, LIBCRYPT): Removed variables.
* src/Makefile.am (LDADD): Use $() variables, instead of @@.
* libtelnet/Makefile.am (INCLUDES): Use $() variables, instead of
@@.
* ftpd/Makefile.am (LIBCRYPT, LIBWRAP, LIBPAM, LIBLS): Variables
removed.
* ftp/Makefile.am (READLINE): Use $() variables, instead of @@.
* cfg.mk (_makefile_at_at_check_exceptions): New variable.
2010-05-14 Alfred M. Szmidt <ams@gnu.org>
* libicmp/.gitignore: Removed file.
2010-05-14 Alfred M. Szmidt <ams@gnu.org>
* doc/inetutils.texi: Removed all occurances of @acronym.
(ftp invocation): Document --passive and --active options.
* doc/.gitignore (Makefile, Makefile.in): Removed rules.
2010-05-14 Alfred M. Szmidt <ams@gnu.org>
* AUTHORS: Updated.
2010-05-14 Giuseppe Scrivano <gscrivano@gnu.org>
* bootstrap (gnulib_path): Default to "gnulib" if it doesn't have
a value. Redirect "git clone" stderr to stdout.
2010-05-12 Giuseppe Scrivano <gscrivano@gnu.org>
* bootstrap: Remove test to skip autoheader.
2010-05-11 Giuseppe Scrivano <gscrivano@gnu.org>
* src/tftpd.c (timer): Use `siglongjmp' instead of `longjmp'.
(send_file): Use `sigsetjmp' instead of `setjmp'.
(recvfile): Likewise.
Reported by Hugo Heutinck <hheutinck@mail.altenpts.nl>.
2010-05-11 Giuseppe Scrivano <gscrivano@gnu.org>
* src/rcp.c (main): Change the test to check if the call to
`asprintf' failed.
2010-05-04 Giuseppe Scrivano <gscrivano@gnu.org>
* bootstrap: Update to the last gnulib version.
2010-05-03 Simon Josefsson <simon@josefsson.org>
* lib/.gitignore: Remove file.
2010-05-03 Simon Josefsson <simon@josefsson.org>
* tests/traceroute-localhost.sh (TRACEROUTE): Update to reflect
move of traceroute to src/.
2010-03-23 Simon Josefsson <simon@josefsson.org>
* src/rlogind.c: Don't protect #include <pty.h> in a HAVE_PTY_H
check, with gnulib we always have pty.h.
* bootstrap.conf (gnulib_modules): Add forkpty and remove pty.
2010-03-15 Giuseppe Scrivano <gscrivano@gnu.org>
* src/rshd.c (iruserok): Declare extern only under glibc.
* src/rlogind.c: Include pty.h only if HAVE_PTY_H is defined.
(iruserok): Declare extern only under glibc.
2010-03-10 Ludovic Courtès <ludo@gnu.org> (tiny change)
* ftp/main.c (main): Call getservbyname(3) after arguments have
been parsed.
2010-03-10 Ludovic Courtès <ludo@gnu.org> (tiny change)
* ifconfig/flags.c (if_flags): Add trailing entry with NULL
`name'.
2010-02-13 Giuseppe Scrivano <gscrivano@gnu.org>
* configure.ac: Don't check for the `sa_family_t' type. It is
already done by gnulib.
2010-02-08 Sergey Poznyakoff <gray@gnu.org.ua>
Ifconfig: add more format functions; implement --format=help.
* ifconfig/if_index.c (if_nametoindex): Fix return value.
* ifconfig/ifconfig.c (main): Rewrite loop.
* ifconfig/options.c (formats): Add docstrings. Add "help"
format.
(format_find): New function.
* ifconfig/options.h (format)<docstr>: New member.
(format_find): New prototype.
* ifconfig/printif.c (format_handles): New functions: format?,
docstr?, defn, foreachformat, verbose?, rep.
(put_flags): Minor change.
(format_handler, fh_exists_query, fh_error): Rewrite the loop.
(fh_format_query, fh_docstr)
(fh_defn, fh_foreachformat)
(fh_rep, fh_verbose_query): New functions.
(fh_format): Rewrite using format_find.
* ifconfig/printif.h (fh_format_query, fh_docstr)
(fh_defn, fh_foreachformat)
(fh_rep, fh_verbose_query): New prototypes.
* NEWS: Update.
2010-02-08 Sergey Poznyakoff <gray@gnu.org.ua>
Ifconfig: read format from files and implement the -s option.
* ifconfig/flags.c (if_format_flags): Rename to if_list_flags.
(if_format_flags): New function.
(print_if_flags): Fix spelling of the 3rd argument.
* ifconfig/flags.h (IF_FORMAT_FLAGS_BUFSIZE): New define.
(if_format_flags): Rename to if_list_flags.
(if_format_flags): New prototype.
* ifconfig/ifconfig.h: Include obstack.h
* ifconfig/options.c (formats)<netstat>: New format.
(argp_options): New option: --short (-s).
(parse_opt_set_default_format): Optimize.
(parse_opt_set_default_format_from_file): New function.
(parse_opt): Handle -s option. If argument to --format begins
with a '@', it specifies a file to read format from.
(parse_cmdline): Order interfaces alphabetically.
* ifconfig/printif.c (put_flags_short): New function.
(fh_flags): ${flags}{short} prints flags in short notation.
2010-02-04 Alfred M. Szmidt <ams@gnu.org>
New options --active and --passive.
* ftp/main.c (OPT_PROMPT): New enum.
(argp_options) <prompt>: Removed short option (-p). <active>: New
option; uses -A as short option. <passive>: New option; uses -p
as short option.
(parse_opt): Handle --active and --passive, updated --prompt
accordingly.
(main) <passivemode>: Set initial value before argument parsing.
2010-01-29 Alfred M. Szmidt <ams@gnu.org>
* ping/Makefile.am (install-ping-hook): Clarify warning message
when installing a SUID root program.
* src/Makefile.am (install-traceroute-hook, install-rsh-hook)
(install-rlogin-hook, install-rcp-hook): Likewise.
2010-01-28 Sergey Poznyakoff <gray@gnu.org.ua>
Implement -a option; correctly print interface metric.
* ifconfig/options.c (formats) <gnu-one-entry> <net-tools, unix,
osf>: Use ${ifdisplay?} to select interfaces to be displayed.
(ifs_cmdline): New global.
(parse_opt_new_ifs): Set ifs_cmdline.
* ifconfig/options.h (all_option, ifs_cmdline): New externs.
* ifconfig/printif.c (format_handles) <ifdisplay?>: New handler.
(fh_ifdisplay_query): New function.
(fh_metric_query): Metric of 0 is OK.
(fh_metric): Display 1 for zero metric, as other ifconfigs do.
* ifconfig/printif.h (fh_ifdisplay_query): New prototype.
2010-01-27 Sergey Poznyakoff <gray@gnu.org.ua>
Implement setting interface options: up, down, multicast,
allmulti.
* ifconfig/flags.c: Include <stdlib.h> and "xalloc.h".
(if_flag) <rev>: New member.
(IFF_NOARGP) [IFF_NOARP]: New flag for "ARP".
(IFF_NOTRAILERS) [IFF_NOTRAILERS]: New flag for "TRAILERS".
(IFF_NOACC) [IFF_NOACC]: New flag for"ACC".
(IFF_NOSR8025) [IFF_NOSR8025]: New flag for "SR8025"
(IFF_NOCHECKSUM) [IFF_NOCHECKSUM]: New flag for "CHECKSUM".
(cmpname, if_nameztoflag, if_format_flags): New function.
(if_flagtoname) Avoid extra comparison.
(if_nametoflag): Rewrite.
* ifconfig/flags.h (if_nametoflag): Updated prototype.
(if_nameztoflag, if_format_flags): New prototypes.
* ifconfig/options.c (all_option): New global variable.
(UP_OPTION, DOWN_OPTION): New enumerators.
(argp_options) <address>: Use -A as short option. <up, down,
flags>: New options. <all>: New option, with -a as short option.
<peer>: Handle an extra argument. <mtu>: Fix typo.
(parse_opt_set_flag, parse_opt_flag_list)
(parse_opt_set_point_to_point): New functions.
(parse_opt) <UP_OPTION, DOWN_OPTION, F, a>: Handle new options.
<p, d>: Call parse_opt_set_point_to_point instead. <v>: Handle
--verbose flag.
(default_help_filter): New function
(argp): Use default_help_filter as help filter.
* ifconfig/options.h (ifconfig) <setflags, clrflags>: New members.
(parse_opt_set_flag, parse_opt_flag_list)
(parse_opt_set_point_to_point): New prototypes.
* ifconfig/printif.c (fh_brdaddr_query, fh_dstaddr_query): Update
calls to if_nametoflag.
* ifconfig/system/linux.c (system_help): Update docstring.
(system_parse_opt_rest) <EXPECT_DSTADDR>: Call
parse_opt_set_point_to_point instead. <up, down, flags>: Handle
new options.
2010-01-12 Simon Josefsson <simon@josefsson.org>
* whois/whois.c (openconn) [!HAVE_GETADDRINFO]: Remove variables
hostinfo, servinfo, and saddr and supporting code.
* src/inetd.c (servtab): Remove !HAVE_GETADDRINFO support.
(setup) [!HAVE_GETADDRINFO]: Remove function.
(expand_enter) [!HAVE_GETADDRINFO]: Remove function.
* configure.ac: Remove HAVE_GETADDRINFO variable. Don't check for
getaddrinfo.
* bootstrap.conf (gnulib_modules): Add getaddrinfo.
2010-01-13 Simon Josefsson <simon@josefsson.org>
* TODO: Update.
* THANKS: Update.
* README: Update.
2010-01-12 Alfred M. Szmidt <ams@gnu.org>
Moved single file programs to src/.
* libinetutils/Makefile.am (noinst_HEADERS): Added tftpsubs.h
shishi_def.h to list.
* libinetutils/Makefile.am (INCLUDES): Removed
-I$(top_srcdir)/headers from list. Added
-I$(top_srcdir)/libinetutils to list.
* Makefile.am: File removed.
* headers/shishi_def.h: File renamed to ..
* libinetutils/shishi_def.h: ... this.
* headers/tftpsubs.h: File renamed to ...
* libinetutils/tftpsubs.h: ... this.
* src/.gitignore: New file.
* src/Makefile.am: New file.
* man/Makefile.am (hostname.1, inetd.8, logger.1, rcp.1, rexec.1)
(rexecd.8, rlogin.1, rlogind.8, rsh.1, rshd.8, syslogd.8, tftp.1)
(tftpd.8, traceroute.1, uucpd.8): Look for main program file in
src/.
(mapped_name): Added rewrite rules for hostname, inetd, logger,
rcp, rexec, rexecd, rlogin, rlogind, rsh, rshd, syslogd, tftp,
tftpd, traceroute, and uucpd.
* configure.ac (AC_CONFIG_SRCDIR): Look for src/inetd.c.
(AC_CONFIG_FILES): Removed hostname/Makefile, inetd/Makefile,
logger/Makefile, rcp/Makefile, rexec/Makefile, rexecd/Makefile,
rlogin/Makefile, rlogind/Makefile, rsh/Makefile, rshd/Makefile,
syslogd/Makefile, tftp/Makefile, tftpd/Makefile,
traceroute/Makefile, and uucpd/Makefile from list. Added
src/Makefile to list. Sorted list (in the order: libraries,
programs, documentation, tests, misc.).
* Makefile.am (SUBDIRS): Removed hostname, inetd, logger, rcp,
rexec, rexecd, rlogin, rlogind, rsh, rshd, syslogd, tftp, tftpd,
traceroute, and uucpd from list. Added src to list. Sorted list
(in the order: libraries, programs, documentation, tests).
* hostname/.gitignore, hostname/Makefile.am: Files removed.
* hostname/hostname.c: File renamed to ...
* src/hostname.c: ... this.
* inetd/.gitignore, inetd/Makefile.am: Files removed.
* inetd/inetd.c: File renamed to ...
* src/inetd.c: ... this.
* logger/.gitignore, logger/Makefile.am: Files removed.
* logger/logger.c: File renamed to ...
* src/logger.c: ... this.
* rcp/.gitignore, rcp/Makefile.am: Files removed.
* rcp/rcp.c: File renamed to ...
* src/rcp.c: ... this.
* rexec/.gitignore, rexec/Makefile.am: Files removed.
* rexec/rexec.c: File renamed to ...
* src/rexec.c: ... this.
* rexecd/.gitignore, rexecd/Makefile.am: Files removed.
* rexecd/rexecd.c: File renamed to ...
* src/rexecd.c: ... this.
* rlogin/.gitignore, rlogin/Makefile.am: Files removed.
* rlogin/rlogin.c: File renamed to ...
* src/rlogin.c: ... this.
* rlogind/.gitignore, rlogind/Makefile.am: Files removed.
* rlogind/rlogind.c: File renamed to ...
* src/rlogind.c: ... this.
* rsh/.gitignore, rsh/Makefile.am: Files removed.
* rsh/rsh.c: File renamed to ...
* src/rsh.c: ... this.
* rshd/.gitignore, rshd/Makefile.am: Files removed.
* rshd/rshd.c: File renamed to ...
* src/rshd.c: ... this.
* syslogd/.gitignore, syslogd/Makefile.am: Files removed.
* syslogd/syslogd.c: File renamed to ...
* src/syslogd.c: ... this.
* tftp/.gitignore, tftp/Makefile.am: Files removed.
* tftp/tftp.c: File renamed to ...
* src/tftp.c: ... this.
* tftpd/.gitignore, tftpd/Makefile.am: Files removed.
* tftpd/tftpd.c: File renamed to ...
* src/tftpd.c: ... this.
* traceroute/.gitignore, traceroute/Makefile.am: Files removed.
* traceroute/traceroute.c: File renamed to ...
* src/traceroute.c: ... this.
* uucpd/.gitignore, uucpd/Makefile.am: Files removed.
* uucpd/uucpd.c: File renamed to ...
* src/uucpd.c: ... this.
2010-01-12 Alfred M. Szmidt <ams@gnu.org>
Merged tftp/extern.h and tftp/main.c into tftp/tftp.c.
* tftp/Makefile.am (tftp_SOURCES): Removed main.c from list.
(noinst_HEADERS): Variable removed.
* tftp/extern.h, tftp/main.c: Files removed.
* tftp/tftp.c: Include <sys/file.h>, <arpa/inet.h>, <fcntl.h>,
<netdb.h>, <stdlib.h>, <argp.h>, <libinetutils.h>, "xalloc.h", and
"progname.h". Don't include "extern.h".
(TIMEOUT, HELPINDENT, RESOLVE_OK, RESOLVE_FAIL)
(RESOLVE_NOT_RESOLVED): New macros.
(cmd): New structure.
(intr, get, help, modecmd, put, quit, setascii, setbinary)
(setpeer, setrexmt, settimeout, settrace, setverbose, status)
(command, getusage, makeargv, putusage, settftpmode, getcmd, tail)
(recvfile, send_file): New forward declarations.
(peeraddr, f, port, trace, verbose, connected, mode, line, margc)
(margv, prompt, toplevel, sp, vhelp, thelp, chelp, qhelp, hhelp)
(shelp, rhelp, mhelp, sthelp, xhelp, ihelp, ashelp, bnhelp)
(cmdtab, args_doc, doc, argp_options, host_port_argv)
(hostport_argc, toplevel, argp, hostname, modes, rexmtval)
(maxtimeout): New variables.
(parse_opt, main, resolve_name, get_args, setpeer, modecmd)
(setbinary, setascii, setftpmode, put, putusage, get, getusage)
(setrexmt, settimeout, status, intr, tail, command, getcmd)
(makeargv, quit, help, settrace, setverbose): New functions.
2010-01-08 Simon Josefsson <simon@josefsson.org>
* README-alpha: Explain more.
2009-12-28 Alfred M. Szmidt <ams@gnu.org>
* man/.gitignore: Added `*.8' to list.
2009-12-28 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (gnulib_modules): Added `update-copyright' to
list.
2009-12-28 Giuseppe Scrivano <gscrivano@gnu.org>
* man/ping6.h2m: New file.
2009-12-28 Giuseppe Scrivano <gscrivano@gnu.org>
* bootstrap.conf (gnulib_modules): Add `xvasprintf' to list.
* telnet/commands.c: Include "xalloc.h" and "xvasprintf.h".
(cmdrc): Use xvasprintf/xstrdup to allocate RCNAME. Removed
variable M1SAVE.
(rcbuf): Variable removed.
* .gitignore: Added asprintf.c, vasprintf.c, xasprintf.c,
xvasprintf.c, xvasprintf.h to list.
Reported by Zhitong Wangzt <zhitong.wangzt@alibaba-inc.com>.
2009-12-19 Alfred M. Szmidt <ams@gnu.org>
* configure.ac: Bump version number to 1.7.90.
2009-12-19 Winston Edmond <wbe@psr.com>
* inetd/inetd.c (main): Close CTRL before exiting main loop.
2009-12-17 Simon Josefsson <simon@josefsson.org>
* man/Makefile.am (all): Add ping6.1.
(dist_man1_MANS) [ENABLE_ping6]: Add ping6.1.
(ping6.1): Add rule.
(mapped_name): New variable, for mapping non-standard tool paths.
(man): Use $(mapped_name).
* NEWS: Updated.
2009-12-17 Simon Josefsson <simon@josefsson.org>
* man/Makefile.am (all): Change daemon man section from 1 to 8.
(.h2m.8): Add rule for daemons.
(.h2m.1): Invoke new meta-rule 'man'.
(man): New meta-rule to invoke help2man, simplified from before.
(EXTRA_DIST): Add $(all:.8=.h2m).
* NEWS: Updated. Reported by Juergen Daubert
<juergen.daubert@gmx.net>.
2009-12-17 Simon Josefsson <simon@josefsson.org>
* tests/Makefile.am (TESTS): Change $(check_SCRIPTS) to
$(dist_check_SCRIPTS).
2009-12-13 Alfred M. Szmidt <ams@gnu.org>
* configure.ac: Bump version number to 1.7.
2009-12-13 Alfred M. Szmidt <ams@gnu.org>
* man/.gitignore: New file.
2009-12-13 Alfred M. Szmidt <ams@gnu.org>
* configure.ac: Bump version number to 1.6.92.
2009-12-13 Alfred M. Szmidt <ams@gnu.org>
* cfg.mk (release-prep-hook): New variable.
2009-12-11 Simon Josefsson <simon@josefsson.org>
* tests/Makefile.am (EXTRA_DIST): Remove variable.
(check_SCRIPTS): Renamed to dist_check_SCRIPTS. Reported by
ludo@gnu.org (Ludovic Courtès).
2009-12-10 Simon Josefsson <simon@josefsson.org>
* bootstrap.conf (gnulib_modules): Add pty.
2009-12-10 Simon Josefsson <simon@josefsson.org>
* README-alpha: Change daily snapshot URL.
2009-12-09 Simon Josefsson <simon@josefsson.org>
* Makefile.am (AUTOMAKE_OPTIONS): Increase required automake
version to 1.11 (because of AM_SILENT_RULES).
2009-12-08 Simon Josefsson <simon@josefsson.org>
* tftp/main.c: Include <argp.h>, <libinetutils.h>, "progname.h".
(program_name): Removed variable.
(argp, args_doc, doc, argp_options, hostport_argv, hostport_argc):
New variable.
(parse_opt): New function.
(main): Use progname and argp.
* man/Makefile.am (all): Add tftp.1 and tftpd.1.
(dist_man1_MANS) [ENABLE_tftp]: Add tftp.1.
(dist_man1_MANS) [ENABLE_tftpd]: Add tftpd.1.
* NEWS: Updated.
2009-12-08 Simon Josefsson <simon@josefsson.org>
* man/Makefile.am (all): New variable.
(EXTRA_DIST): Use $(all).
(MAINTAINERCLEANFILES): Likewise. Suggested by Alfred M. Szmidt
<ams@gnu.org>.
2009-12-08 Simon Josefsson <simon@josefsson.org>
* man/Makefile.am (dist_man1_MANS): Variable cleared.
(dist_man1_MANS) [ENABLE_hostname]: Add `hostname.1'.
(dist_man1_MANS) [ENABLE_ifconfig]: Add `ifconfig.1'.
(dist_man1_MANS) [ENABLE_inetd]: Add `inetd.1'.
(dist_man1_MANS) [ENABLE_ftp]: Add `ftp.1'.
(dist_man1_MANS) [ENABLE_ftpd]: Add `ftpd.1'.
(dist_man1_MANS) [ENABLE_logger]: Add `logger.1'.
(dist_man1_MANS) [ENABLE_ping]: Add `ping.1'.
(dist_man1_MANS) [ENABLE_rcp]: Add `rcp.1'.
(dist_man1_MANS) [ENABLE_rexec]: Add `rexec.1'.
(dist_man1_MANS) [ENABLE_rexecd]: Add `rexecd.1'.
(dist_man1_MANS) [ENABLE_rlogin]: Add `rlogin.1'.
(dist_man1_MANS) [ENABLE_rlogind]: Add `rlogind.1'.
(dist_man1_MANS) [ENABLE_rsh]: Add `rsh.1'.
(dist_man1_MANS) [ENABLE_rshd]: Add `rshd.1'.
(dist_man1_MANS) [ENABLE_syslogd]: Add `syslogd.1'.
(dist_man1_MANS) [ENABLE_talk]: Add `talk.1'.
(dist_man1_MANS) [ENABLE_talkd]: Add `talkd.1'.
(dist_man1_MANS) [ENABLE_telnet]: Add `telnet.1'.
(dist_man1_MANS) [ENABLE_telnetd]: Add `telnetd.1'.
(dist_man1_MANS) [ENABLE_traceroute]: Add `traceroute.1'.
(dist_man1_MANS) [ENABLE_uucpd]: Add `uucpd.1'.
(dist_man1_MANS) [ENABLE_whois]: Add `whois.1'.
(man_aux): Variable removed.
(EXTRA_DIST): Set it directly instead of via man_aux.
* am/enable.m4 (IU_ENABLE_FOO): Export ENABLE_foo.
Reported by Ludovic Courtès <ludo@gnu.org>.
2009-12-08 Simon Josefsson <simon@josefsson.org>
* man/Makefile.am: Use .h2m as extension for help2man includes.
* man/ftp.x: Renamed to ftp.h2m.
* man/ftpd.x: Renamed to ftpd.h2m.
* man/hostname.x: Renamed to hostname.h2m.
* man/ifconfig.x: Renamed to ifconfig.h2m.
* man/inetd.x: Renamed to inetd.h2m.
* man/logger.x: Renamed to logger.h2m.
* man/ping.x: Renamed to ping.h2m.
* man/rcp.x: Renamed to rcp.h2m.
* man/rexec.x: Renamed to rexec.h2m.
* man/rexecd.x: Renamed to rexecd.h2m.
* man/rlogin.x: Renamed to rlogin.h2m.
* man/rlogind.x: Renamed to rlogind.h2m.
* man/rsh.x: Renamed to rsh.h2m.
* man/rshd.x: Renamed to rshd.h2m.
* man/syslogd.x: Renamed to syslogd.h2m.
* man/talk.x: Renamed to talk.h2m.
* man/talkd.x: Renamed to talkd.h2m.
* man/telnet.x: Renamed to telnet.h2m.
* man/telnetd.x: Renamed to telnetd.h2m.
* man/tftp.x: Renamed to tftp.h2m.
* man/tftpd.x: Renamed to tftpd.h2m.
* man/traceroute.x: Renamed to traceroute.h2m.
* man/uucpd.x: Renamed to uucpd.h2m.
* man/whois.x: Renamed to whois.h2m.
2009-12-07 Simon Josefsson <simon@josefsson.org>
* doc/inetutils.texi (hostname invocation): Fix typo. Reported by
Alfred M. Szmidt <ams@gnu.org>.
2009-12-07 Simon Josefsson <simon@josefsson.org>
* libinetutils/libinetutils.h: Don't include config.h, leads to
double inclusion of config.h.
* talkd/intalkd.h: Likewise.
2009-12-07 Simon Josefsson <simon@josefsson.org>
* rexec/rexec.c (do_rexec): Don't use reserved variable 'stdin'.
2009-12-07 Simon Josefsson <simon@josefsson.org>
* NEWS: Mention that man pages are generated using help2man.
* configure.ac: Check for LN_S.
* man/Makefile.am: Rewrite using skeleton rules. Add man pages
for many tools.
* man/ftpd.x: New file.
* man/ftp.x: Likewise.
* man/hostname.x: Likewise.
* man/ifconfig.x: Likewise.
* man/inetd.x: Likewise.
* man/logger.x: Likewise.
* man/ping.x: Likewise.
* man/rcp.x: Likewise.
* man/rexecd.x: Likewise.
* man/rexec.x: Likewise.
* man/rlogind.x: Likewise.
* man/rlogin.x: Likewise.
* man/rsh.x: Likewise.
* man/syslogd.x: Likewise.
* man/talkd.x: Likewise.
* man/talk.x: Likewise.
* man/tftpd.x: Likewise.
* man/tftp.x: Likewise.
* man/traceroute.x: Likewise.
* man/uucpd.x: Likewise.
* man/whois.x: Likewise.
2009-12-07 Simon Josefsson <simon@josefsson.org>
* doc/inetutils.texi (hostname invocation): Add section.
2009-12-07 Simon Josefsson <simon@josefsson.org>
* configure.ac: Check for help2man.
* configure.ac (AC_CONFIG_FILES): Add man/Makefile.
* Makefile.am (SUBDIRS): Add man directory.
* man/Makefile.am: Add file.
* man/telnet.x, man/telnetd.x, man/rshd.x: New files.
2009-12-06 Giuseppe Scrivano <gscrivano@gnu.org>
* NEWS: Mention the new program rexec.
2009-12-06 Guillem Jover <guillem@hadrons.org>
* hostname/hostname.c (parse_file): Use a do ... while loop
instead of a while loop.
2009-12-05 Guillem Jover <guillem@hadrons.org>
* configure.ac: Remove libbsd check.
2009-12-05 Guillem Jover <guillem@hadrons.org>
* syslogd/syslogd.c (doexit): New function declaration.
(main): Install doexit as SIGTERM handler. Send SIGTERM instead
of SIGALRM to the parent process.
(doexit): New function.
2009-12-06 Alfred M. Szmidt <ams@gnu.org>
* configure.ac (AM_INIT_AUTOMAKE): Depend on automake 1.11.
2009-12-05 Guillem Jover <guillem@hadrons.org>
* ftpd/logwtmp.c (logwtmp) [_HAVE_UT_TV]: Use a `struct timeval'
variable to get the result from gettimeofday.
* libinetutils/logwtmp.c (logwtmp) [HAVE_STRUCT_UTMP_UT_TV]:
Likewise.
* libinetutils/utmp_init.c (utmp_init) [HAVE_STRUCT_UTMPX_UT_TV]:
Likewise.
* libinetutils/utmp_logout.c (utmp_logout): Likewise.
2009-12-05 Guillem Jover <guillem@hadrons.org>
* uucpd/uucpd.c (dologin): New `time_t' variable to use with
time(), copy its contents to `ll.ll_time' afterwards.
2009-12-05 Guillem Jover <guillem@hadrons.org>
* configure.ac (AM_SILENT_RULES): Call macro.
2009-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org> (tiny change)
* am/config_paths.m4 (IU_CONFIG_PATHS): Set iu_test_type to `e'.
2009-12-05 Ludovic Courtès <ludo@gnu.org> (tiny change)
* tests/Makefile.am (check_SCRIPTS): New variable.
(TESTS): Added $(check_SCRIPTS), removed `ping-localhost.sh' and
`traceroute-localhost.sh' from list.
(EXTRA_DIST): New variable.
2009-12-05 Alfred M. Szmidt <ams@gnu.org>
* cfg.mk (news-check-regexp): New variable.
2009-12-04 Guillem Jover <guillem@hadrons.org>
* ftp/ftp.c (hookup, initconn): Change `len' type from size_t to
socklen_t.
(dataconn): Change `fromlen' type from size_t to socklen_t.
* ftpd/server_mode.c (server_mode): Change `addrlen' type from
size_t to socklen_t.
* ping/libping.c (ping_recv): Change `fromlen' type from size_t to
socklen_t.
* rexecd/rexecd.c (main): Likewise.
* rlogind/rlogind.c (rlogin_daemon, rlogind_mainloop): Change
`size' type from size_t to socklen_t.
(rlogind_auth): Change `optsize' type from size_t to socklen_t.
* rshd/rshd.c (main): Change `fromlen' type from size_t to
socklen_t.
(doit): Change `optsize' type from size_t to socklen_t.
* syslogd/syslogd.c (main): Change `len' type from size_t to
socklen_t.
* talk/ctl.c (open_sockt, open_ctl): Change `length' type from
size_t to socklen_t.
* talkd/talkd.c (talkd_run): Change `len' type from size_t to
socklen_t.
* tftp/tftp.c (send_file, recvfile): Change `fromlen' type from
size_t to socklen_t.
* tftpd/tftpd.c (fromlen): Likewise.
(main): Change `j' type from size_t to socklen_t.
2009-12-04 Simon Josefsson <simon@josefsson.org>
* doc/inetutils.texi: Improve chapter titles.
2009-12-03 Giuseppe Scrivano <gscrivano@gnu.org>
* ftp/Makefile.am (LDADD): Replace "-L../lib -lgnu" with
"../lib/libgnu.a".
* ftpd/Makefile.am (LDADD): Likewise.
* gwhois/Makefile.in (LDADD): Likewise.
* inetd/Makefile.am (LDADD): Likewise.
* ping/Makefile.am (ping_LDADD, ping6_LDADD): Likewise.
* rcp/Makefile.am (LDADD): Likewise.
* rexec/Makefile.am (LDADD): Likewise.
* rexecd/Makefile.am (LDADD): Likewise.
* rlogin/Makefile.am (LDADD): Likewise.
* rlogind/Makefile.am (LDADD): Likewise.
* rsh/Makefile.am (LDADD): Likewise.
* rshd/Makefile.am (LDADD): Likewise.
* syslogd/Makefile.am (LDADD): Likewise.
* talk/Makefile.am (LDADD): Likewise.
* talkd/Makefile.am (LDADD): Likewise.
* telnet/Makefile.am (LDADD): Likewise.
* telnetd/Makefile.am (LDADD): Likewise.
* tests/Makefile.am (LDADD): Likewise.
* tftp/Makefile.am (LDADD): Likewise.
* tftpd/Makefile.am (LDADD): Likewise.
* traceroute/Makefile.am (LDADD): Likewise.
* uucpd/Makefile.am (LDADD): Likewise.
* whois/Makefile.am (LDADD): Likewise.
* hostname/Makefile.am (LDADD): Replace "-lgnu" with
"../lib/libgnu.a".
2009-12-03 Giuseppe Scrivano <gscrivano@gnu.org>
* tests/Makefile.am (LDADD): Add missing dependency to gnulib.
2009-12-03 Giuseppe Scrivano <gscrivano@gnu.org>
* ftp/cmds.c (domap): Add braces around the else branch.
(strup): Remove function.
* ftp/ftp.c (hookup): Change `len' type to size_t.
(getreply): Add parentheses around logic operators.
(initconn): Change `len' type to size_t.
(dataconn): Change `fromlen' type to size_t.
(gunique): Add braces around the else branch.
* ftp/main.c [HAVE_LIBREADLINE]: Include <readline/history.h>.
* ftp/ruserpass.c (ruserpass): Add braces around the if branch.
Add parentheses around logic operators.
* ftpd/popen.c (ls_main): Add prototype.
(ftpd_popen): Add parentheses.
* ftpd/ftpd.c (off_to_str): Add casts to satisfy what the format
string expects.
(yyparse) Add prototype.
(authentication_setup) Remove prototype.
* ftpd/ftpcmd.y (yylex): Cast p->name to (char *) when its value
is assigned to yylval.s. Convert a ternary operator to an
explicit if/else.
* ftpd/server_mode.c (server_mode): Change type of `addrlen' to
size_t.
* hostname/hostname.c (struct hostname_arguments): Change type of
`hostname_new' to (char *).
(set_name): Likewise.
(get_name): Remove unused variable.
* ifconfig/system/linux.c (system_fh_hwaddr): Add cast.
* inetd/inetd.c (expand_enter): Remove unused variables.
(getconfigent): Change type of `argc' to int.
* libinetutils/tftpsubs.c (synchnet): Change the `fromlen' type to
socklen_t.
* libinetutils/ttymsg.c (normalize_path): Use parentheses around
assignment used as truth value.
* libinetutils/utmp_logout.c (utmp_logout): Move assignment out
from the if condition.
* libls/ls.c (mastercmp): Add explicit braces.
* ping/libping.c (ping_recv): Change `fromlen' type to size_t.
* ping/ping6.c (parse_opt): Remove unused variable.
* rcp/rcp.c (toremote): Remove unused variable.
(rsource): Use parentheses around assignment used as truth value.
* rexecd/rexecd.c (main): Change type of `fromlen' to size_t. Use
NULL as sentinel value to execl. Add return statement.
* rlogind/rlogind.c (iruserok): Add prototype.
(rlogind_auth): Change type of `optisize' to size_t.
* rsh/rsh.c (main): Remove unused variable.
* rshd/rshd.c (iruserok): Add prototype.
(main): Change type of `addrlen' to size_t. Remove unused
variable.
(doit): Change type of `optsize' to size_t. Add parentheses. Use
NULL as sentinel to execl instead of 0.
* talk/ctl.c (open_sockt): Change `length' type to size_t. Add
return statement.
(open_ctl): Likewise.
* talk/ctl_transact.c (ctl_transact): Add return statement.
* talk/display.c (display): Add return statement.
* talk/get_addrs.c (get_addrs): Likewise.
* talk/get_names.c (get_names): Likewise.
* talk/init_disp.c (init_display): Likewise.
(set_edit_chars): Likewise.
* talk/invite.c (announce_invite): Likewise.
(invite_remote): Likewise.
(send_delete): Likewise.
* talk/io.c (p_error): Add return statement.
(message): Add return statement.
* talk/look_up.c (check_local): add return statement.
* talk/msgs.c (start_msgs): Add return statement.
(end_msgs): Add return statement.
* talk/talk.h (display): Change the type of 'text' to (char *).
* talk/talk.c (display): Likewise. Insert <unistd.h>.
* talkd/talkd.c (talkd_run): Change type of len to size_t.
* telnetd/slc.c (change_slc): Introduce a new variable `func' of
type int. Rename the previous `func' to `func_c' and assign its
value to `func'.
* telnetd/state.c (telrcv): Add parentheses around comparison.
* telnetd/telnetd.c (struct debug_mode): Add missing braces around
initializer.
(telnetd_run): Add missing return statement.
* telnetd/term.c (term_change_eof): Likewise.
(oldeofc): Define it only if VEOF == VMIN.
* telnetd/termstat.c (clientstat): Add parentheses around
assignment.
(getconfigent): Change `argc' and `i' type to int.
* telnetd/utility.c [HAVE_READLINE_READLINE_H]: Include <term.h>.
(net_get_char): Add default return statement.
(pty_get_char): Likewise.
(pty_input_putback): Likewise.
(debug_close): Likewise.
(printsub): Cast &pointer[i] to (char *) when used as argument to
debug_output_datalen.
* tftpd/tftpd.c (fromlen): Change type to size_t. Make it static.
(peer, rexmtval, maxtimeout, buf, ackbuf, from): Make static.
(main): Change type of `j' to size_t.
* telnet/externs.h (env_getvalue): Change argument type to const
char *.
* telnet/commands.c (makeargv): Add parentheses around assignment
used as boolean value.
(dokludgemode): Add return statement.
(shell): Use NULL as sentinel to execl.
(quit): Add return statement.
(env_default, env_undefine, getcmd, tn): Add parentheses around
assignment used as boolean value.
(env_define, env_export, env_getvalue, env_init, env_undefine)
(env_unexport): Move assignment out from the if condition.
(env_export, env_find, env_define, env_send, env_unexport)
(env_varval): Change type of `var' to (const char *).
(tn): Add parentheses around logic operators.
(cmdtab, cmdtab2): Add missing braces around initializer.
* telnet/main.c (main): Add parentheses around assignment used as
boolean value.
* telnet/sys_bsd.c (process_rings): Cast ttyiring.supply to char *
when used as argument to TerminalRead.
* telnet/telnet.c [HAVE_READLINE_READLINE_H]: Include <term.h>.
(initfunc, env_opt_add): Add parentheses around assignment used as
boolean value.
(dooption, gettermname, suboption, telnet): Remove cast.
(suboption): Add casts to int.
* telnet/terminal.c (ttyflush): When used as argument, cast
ttyiring.{bottom, consume} (char *) to TerminalRead.
* tftp/tftp.c (send_file): Change `fromlen' type to size_t.
(recvfile): Likewise.
(printstats): Add cast.
* whois/whois.c (queryformat): Remove unused variable.
2009-12-03 Alfred M. Szmidt <ams@gnu.org>
* inetd/inetd.c (setup) [IPV6]: Reverse the value of
SEP->se_v4mapped before setting socket options. Reported by Ross
Alexander <Ross.Alexander@eu.nec.com>.
2009-11-23 Alfred M. Szmidt <ams@gnu.org>
* ping/ping6.c (argp_options) <numeric>: Fix typo.
2009-11-16 Simon Josefsson <simon@josefsson.org>
* tests/ping-localhost.sh: Call the right executable. Support
EXEEXT. Fix license header.
* tests/traceroute-localhost.sh: Likewise.
* tests/Makefile.am: Set EXEEXT, for Windows builds.
2009-11-16 Simon Josefsson <simon@josefsson.org>
* configure.ac: Don't call AB_INIT here too, it is already invoked
via gnulib. Reported by Alfred M. Szmidt <ams@gnu.org>.
2009-11-15 Alfred M. Szmidt <ams@gnu.org>
* configure.ac: Quote first argument in AC_DEFINE macro calls.
(fixes sc_m4_quote_check)
* am/config_paths.m4: Likewise.
* am/check_weak_refs.m4: Likewise.
2009-11-15 Alfred M. Szmidt <ams@gnu.org>
* libtelnet/shishi.c: Don't include <assert.h> (fixes
prohibit_assert_without_use).
2009-11-15 Alfred M. Szmidt <ams@gnu.org>
* .gitignore (*.sig): Added new ignore rule.
2009-11-14 Simon Josefsson <simon@josefsson.org>
* cfg.mk: Ignore failing tests, please revisit later.
2009-11-14 Simon Josefsson <simon@josefsson.org>
* rcp/rcp.c (RCP_MODEMASK): Use S_ISVTX instead of S_ISTXT.
2009-11-14 Simon Josefsson <simon@josefsson.org>
* ifconfig/system.c: Include config.h properly.
* libinetutils/argcv.c: Likewise.
* libinetutils/defauthors.c: Likewise.
* libinetutils/logwtmpko.c: Likewise.
* libtelnet/forward.c: Likewise.
* talk/init_disp.c: Likewise.
* talkd/acl.c: Likewise.
* talkd/announce.c: Likewise.
* talkd/print.c: Likewise.
* talkd/process.c: Likewise.
* talkd/table.c: Likewise.
* telnet/ring.c: Likewise.
* telnetd/pty.c: Likewise.
* telnetd/slc.c: Likewise.
* telnetd/state.c: Likewise.
* telnetd/telnetd.c: Likewise.
* telnetd/term.c: Likewise.
* telnetd/termstat.c: Likewise.
* telnetd/utility.c: Likewise.
* tests/localhost.c: Likewise.
2009-11-14 Simon Josefsson <simon@josefsson.org>
* rcp/rcp.c: Drop replacement of S_ISTXT, we use gnulib.
2009-11-14 Simon Josefsson <simon@josefsson.org>
* libinetutils/daemon.c: Doc fix.
2009-11-14 Alfred M. Szmidt <ams@gnu.org>
* configure.ac: Bump version number to 1.6.91.
2009-11-14 Alfred M. Szmidt <ams@gnu.org>
* ftp/cmds.c (ls, setnmap): Fix syntax-check
sc_avoid_if_before_free.
* ftp/ftp.c (login, recvrequest, pswitch, gunique): Likewise.
* ftp/ruserpass.c (ruserpass): Likewise.
* ftpd/auth.c (auth_user, sgetcred): Likewise.
* ftpd/ftpcmd.y (cmd_list, cmd, rcmd): Likewise.
* ftpd/ftpd.c (curdir, end_login, dolog, send_file_list):
Likewise.
* ftpd/pam.c (pam_user): Likewise.
* ifconfig/if_index.c (if_freenameindex): Likewise.
* inetd/inetd.c (freeconfig, getconfigent): Likewise.
* libinetutils/argcv.c (int argcv_free): Likewise.
* libls/fts.c (fts_close, fts_build): Likewise.
* libtelnet/kerberos5.c (kerberos5_is_auth): Likewise.
* libtelnet/misc.c (auth_encrypt_init, auth_encrypt_user):
Likewise.
* syslogd/syslogd.c (main, logmsg): Likewise.
* telnet/commands.c (env_define, env_undefine, tn): Likewise.
* telnetd/state.c (suboption): Likewise.
* telnetd/utility.c (getterminaltype): Likewise.
* tftpd/tftpd.c (validate_access): Likewise.
2009-11-14 Alfred M. Szmidt <ams@gnu.org>
* doc/inetutils.texi: Don't split copyright year list.
2009-11-14 Simon Josefsson <simon@josefsson.org>
* ftpd/ftpd.c: Don't include getopt.h without using it.
* whois/whois.c: Likewise.
* uucpd/uucpd.c: Likewise.
* tftpd/tftpd.c: Likewise.
* telnetd/telnetd.c: Likewise.
* telnet/main.c: Likewise.
* talk/talk.c: Likewise.
* rshd/rshd.c: Likewise.
* rlogind/rlogind.c: Likewise.
* rexecd/rexecd.c: Likewise.
* rcp/rcp.c: Likewise.
* ifconfig/options.c: Likewise.
2009-11-14 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (gnulib_modules): Added gnupload.
2009-11-14 Alfred M. Szmidt <ams@gnu.org>
* .gitignore (GNUmakefile, bootstrap.conf): Added new ignore
rules.
2009-11-14 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (gnulib_modules): Added dirname-lgpl.
(lib/.gitignore): Updated by ./bootstrap.
2009-11-14 Alfred M. Szmidt <ams@gnu.org>
* tests/Makefile.am (TESTS): Added ping-localhost.sh and
traceroute-localhost.sh. Use $(check_PROGRAMS) instead of
specifying all C test cases manually.
* tests/traceroute-localhost.sh, tests/ping-localhost.sh: New
file.
2009-11-14 Alfred M. Szmidt <ams@gnu.org>
* .gitignore (*.gcno, *.gcda, *.gcov, inetutils-*/)
(inetutils-*.tar.gz): Added new ignore rules.
2009-11-14 Alfred M. Szmidt <ams@gnu.org>
* whois/whois.h, rsh/rsh.c (usage): Removed prototype.
2009-11-13 Simon Josefsson <simon@josefsson.org>
* hostname/hostname.c (get_aliases, get_ip_addresses): Fix
syntax-check sc_cast_of_x_alloc_return_value.
* ping/ping_common.c (init_data_buffer): Likewise.
* rsh/rsh.c (main): Likewise.
2009-11-13 Simon Josefsson <simon@josefsson.org>
* rshd/rshd.c (doit): Fix syntax-check
sc_cast_of_alloca_return_value.
* ftpd/ftpd.c (send_file_list): Likewise.
2009-11-13 Simon Josefsson <simon@josefsson.org>
* inetd/inetd.c (nextconfig): Fix syntax-check
sc_cast_of_argument_to_free.
* hostname/hostname.c (set_name): Likewise.
2009-11-12 Simon Josefsson <simon@josefsson.org>
* bootstrap.conf (gnulib_modules): Add maintainer-makefile, to get
coverage generating rules.
* cfg.mk: New file, with coverage uploading rules.
2009-11-08 Alfred M. Szmidt <ams@gnu.org>
* hostname/hostname.c (_hostname_options): Struct renamed to ..
(hostname_arguments): ... this. Updated all references.
(parse_opt, main, get_name, set_name): Renamed ARGUMENTS to ARGS.
Updated all references.
2009-10-29 Alfred M. Szmidt <ams@gnu.org>
* hostname/hostname.c (argp_options): Fixed typo.
2009-10-29 Alfred M. Szmidt <ams@gnu.org>
* rlogind/rlogind.c, telnetd/pty.c: Include <pty.h>.
2009-10-29 Alfred M. Szmidt <ams@gnu.org>
* rexecd/rexecd.c (doit): Added forward declaration.
2009-10-29 Alfred M. Szmidt <ams@gnu.org>
* .gitignore (TAGS): Added to list.
2009-10-29 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (gnulib_modules): Use `getopt-gnu' instead of
`getopt'.
2009-10-26 Alfred M. Szmidt <ams@gnu.org>
* uucpd/uucpd.c [BSD4_2]: Removed obsolete code.
(main) [BSDINETD]: Likewise.
(doit) [BSD4_2]: Likewise.
(usage_str): Variable removed.
(usage): Function removed.
2009-10-26 Alfred M. Szmidt <ams@gnu.org>
* traceroute/traceroute.c: Don't include "traceroute.h".
(TRACE_UDP_PORT, TRACE_TTL): New macros.
(TRACE_UDP, TRACE_ICMP, TRACE_1393): New enums.
(trace): New struct.
(trace_init, trace_inc_ttl, trace_inc_port, trace_port)
(trace_read, trace_write, trace_udp_sock, trace_icmp_sock): Added
forward declarations.
* traceroute/traceroute.h: File removed.
* traceroute/Makefile.am (noinst_HEADERS): Variable removed.
2009-10-26 Alfred M. Szmidt <ams@gnu.org>
* rcp/rcp.c: Include <sys/wait.h>. Removed include for
"extern.h".
(BUF): New structure (from rcp/util.c).
(allocbuf, colon, lostconn, nospace, okname, run_err, susystem)
(verifydir): New functions (from rcp/util.c).
* rcp/extern.h, rcp/util.c: Files removed.
* rcp/Makefile.am (rcp_SOURCES): Removed `util.c'.
(noinst_HEADERS): Variable removed.
2009-10-23 Alfred M. Szmidt <ams@gnu.org>
* ftpd/README.sec, ping/README.sec, syslogd/README.sec,
talkd/README.sec, telnet/README.sec, telnetd/README.sec: Files
removed.
* whois/README: File removed.
2009-10-23 Alfred M. Szmidt <ams@gnu.org>
* whois/TODO, ping/TODO, libicmp/TODO, ifconfig/TODO: Files
removed (content merged into top-level TODO).
* TODO: Updated.
2009-10-23 Alfred M. Szmidt <ams@gnu.org>
Renamed `gwhois' to `whois'.
* Makefile.am (SUBDIRS): Renamed `gwhois' to `whois'
* configure.ac: Likewise.
* gwhois/.gitignore: Renamed file to ...
* whois/.gitignore: ... this.
* gwhois/Makefile.am: Renamed file to ...
* whois/Makefile.am: ... this.
* gwhois/README: Renamed file to ...
* whois/README: ... this.
* gwhois/TODO: Renamed file to ...
* whois/TODO: ... this.
* gwhois/as_del_list: Renamed file to ...
* whois/as_del_list: ... this.
* gwhois/data.h: Renamed file to ...
* whois/data.h: ... this.
* gwhois/ip_del_list: Renamed file to ...
* whois/ip_del_list: ... this.
* gwhois/make_as_del.pl: Renamed file to ...
* whois/make_as_del.pl: ... this.
* gwhois/make_ip_del.pl: Renamed file to ...
* whois/make_ip_del.pl: ... this.
* gwhois/make_tld_serv.pl: Renamed file to ...
* whois/make_tld_serv.pl: ... this.
* gwhois/tld_serv_list: Renamed file to ...
* whois/tld_serv_list: ... this.
* gwhois/whois.c: Renamed file to ...
* whois/whois.c: ... this.
* gwhois/whois.h: Renamed file to ...
* whois/whois.h: ... this.
2009-10-23 Alfred M. Szmidt <ams@gnu.org>
* .gitignore (ChangeLog): Removed from list.
2009-10-23 Alfred M. Szmidt <ams@gnu.org>
* rexec/.gitignore: New file.
2009-10-20 Rakesh Pandit <rakesh@fedoraproject.org>
* ping/ping.c (parse_opt): Handle `--debug' and `--ignore-routing'
simultaneously.
* ping/ping6.c (parse_opt): Likewise. Set `socket_type' to
SO_DONTROUTE.
2009-10-10 Giuseppe Scrivano <gscrivano@gnu.org>
* TODO: Updated.
2009-10-06 Rakesh Pandit <rakesh@fedoraproject.org>
* ping/ping_common.h (ping_data): New member `ping_start_time'.
(ping_timeout_p): New prototype.
* ping/ping_common.c (ping_timeout_p): New function.
* ping/ping6.c: Rename `timeout' to `resp_time', and use `timeout'
for --timeout.
(argp_options, parse_opt): New option --timeout.
(ping_run): Check if we should abort due to timeout.
(ping_init): Initialise P->ping_start_time.
* ping/ping.c: Rename `timeout' to `resp_time', and use `timeout'
for --timeout.
(argp_options, parse_opt): New option --timeout.
(ping_run): Check if we should abort due to timeout.
* ping/libping.c (ping_init): Initialise P->ping_start_time.
* doc/inetutils.texi (ping invocation): Updated.
* NEWS: Updated.
2009-10-01 Rakesh Pandit <rakesh@fedoraproject.org>
* talkd/talkd.c [HAVE_CONFIG_H]: Include config.h.
2009-08-21 Giuseppe Scrivano <gscrivano@gnu.org>
rexec: show all missing arguments before exit.
* rexec/rexec.c (main): Show all missing arguments before exit
from the process.
2009-08-20 Giuseppe Scrivano <gscrivano@gnu.org>
rexec: new program.
* configure.ac: Add new client `rexec'.
* Makefile.am (SUBDIRS): Add `rexec'.
* doc/inetutils.texi: Document the new program.
* rexec/Makefile.am: New file.
* rexec/rexec.c: New file.
2009-08-18 Sergey Poznyakoff <gray@gnu.org.ua>
Fix possible array overflow in ping.
* ping/ping.h (_C_BIT, _C_MASK)
(_PING_SET, _PING_CLR, _PING_TST): Remove in favor of
ping_common.h
* ping/ping6.h: Likewise.
* ping/ping_common.h (_C_BIT, _C_MASK): Moved from ping.h
(_C_IND): New macro.
(_PING_SET, _PING_CLR, _PING_TST): Modified versions of macros
from ping.h.
* ping/libping.c, ping/ping6.c: Update calls to _PING macros.
2009-07-19 Sergey Poznyakoff <gray@gnu.org.ua>
Fix net-tool output format in ifconfig.
* configure.ac: Check for struct ifreq.ifr_map
* paths: Add PATH_PROCNET_DEV
* ifconfig/Makefile.am (AM_CPPFLAGS): Add $(PATHDEF_PROCNET_DEV)
* ifconfig/if_index.c (if_nameindex): Fix typo.
* ifconfig/options.c (net-tool format): Display interface
statistics, if available.
* ifconfig/printif.c: New macros: map?, irq?, irq, baseaddr?,
baseaddr, memstart?, memstart, memend?, memend, dma?, dma.
* ifconfig/printif.h (put_ulong): New prototype.
(fh_map_query, fh_irq_query, fh_irq, fh_baseaddr_query)
(fh_baseaddr, fh_memstart_query, fh_memstart, fh_memend_query)
(fh_memend, fh_dma_query, fh_dma): New prototypes.
* ifconfig/system/linux.c: Implement reading /proc/net/dev.
* ifconfig/system/linux.h: Declare /proc/net/dev-related
functions.
* ping/ping_address.c: Rearrange includes to fix compilation on
FreeBSD
* ping/ping_echo.c: Likewise.
* ping/ping_router.c: Likewise.
* ping/ping_timestamp.c: Likewise.
2009-07-10 Giuseppe Scrivano <gscrivano@gnu.org>
Alfred M. Szmidt <ams@gnu.org>
* rexecd/rexecd.c: Use EXIT_FAILURE consistently for calls to
error.
(doit): Add return value check after use
setegid/setuid/setgid/initgroups and define its prototype.
2009-07-03 Sergey Poznyakoff <gray@mirddin.farlep.net>
Use separate sources for autoconf macros, as recommended by
Autoconf.
* acinclude.m4: Remove
* am: New directory.
* am/check_macro.m4: New file
* am/check_member.m4: New file
* am/check_weak_refs.m4: New file
* am/config_paths.m4: New file
* am/enable.m4: New file
* am/flushleft.m4: New file
* am/krb5.m4: New file
* am/libcurses.m4: New file
* am/result.m4: New file
* bootstrap: Get aclocal flags from Makefile.am
* Makefile.am (ACLOCAL_AMFLAGS): Add -I am.
2009-06-28 Sergey Poznyakoff <gray@gnu.org.ua>
* acinclude.m4 (IU_FLUSHLEFT): Fix the definition.
* configure.ac: Use IU_FLUSHLEFT where needed.
2009-06-28 Sergey Poznyakoff <gray@gnu.org.ua>
* logger/logger.c: Rewritten from scratch, not using the libc
syslog function.
* doc/inetutils.texi: Update logger description.
* NEWS: Update.
2009-06-26 Sergey Poznyakoff <gray@gnu.org.ua>
Finish argp-fying the utilities.
* libinetutils/Makefile.am (libinetutils_a_SOURCES): Order source
names.
* libinetutils/libinetutils.h (iu_argp_init): New macro.
* ftp/main.c, ftpd/ftpd.c, hostname/hostname.c, inetd/inetd.c,
logger/logger.c, ping/ping.c, ping/ping6.c, rcp/rcp.c,
rexecd/rexecd.c, rlogin/rlogin.c, rlogind/rlogind.c, rsh/rsh.c,
rshd/rshd.c, syslogd/syslogd.c, talk/talk.c, talkd/talkd.c,
telnet/main.c, telnetd/telnetd.c, tftpd/tftpd.c,
traceroute/traceroute.c, uucpd/uucpd.c: Use iu_argp_init. Rewrite
option descriptions to conform to standards.texi.
* ifconfig/Makefile.am (INCLUDES): Add libinetutils
* ifconfig/changeif.c: Use error() for diagnostics.
* ifconfig/printif.c: Likewise.
* ifconfig/ifconfig.c: Likewise.
(main): Call parse_cmdline.
* ifconfig/ifconfig.h: Include error.h, argp.h and libinetutils.h.
* ifconfig/options.c: Use argp. "check-existence": fix typo (was
*check-existance).
(usage): Remove. Use error() for diagnostics.
* ifconfig/options.h (parse_opt): Rename to parse_cmdline.
* ifconfig/system.h (system_argp_child): New extern.
(system_help_options, SYSTEM_SHORT_OPTIONS)
(SYSTEM_LONG_OPTIONS): Remove.
* ifconfig/system/generic.c: Use new command line parsing method.
* ifconfig/system/hpux.c: Likewise.
* ifconfig/system/linux.c: Likewise.
* ifconfig/system/linux.h: Likewise.
* ifconfig/system/osf.c: Likewise.
* ifconfig/system/qnx.c: Likewise.
* ifconfig/system/solaris.c: Likewise.
* gwhois/Makefile.am (INCLUDES): Add libinetutils.
* gwhois/whois.c: Use argp to parse the command line.
(is_ripe_server): New function.
(queryformat): Use is_ripe_server to determine if the server
supports RIPE syntax.
2009-06-26 Sergey Poznyakoff <gray@gnu.org.ua>
Use argp in r* utils, telnet, talk and uucpd.
* inetd/inetd.c: Remove unused forward decl.
* rlogind/rlogind.c, rsh/rsh.c, rshd/rshd.c, telnet/main.c,
telnetd/telnetd.c, tftpd/tftpd.c, uucpd/uucpd.c: Use argp to parse
command line.
* talk/talk.c: Use argp to parse command line.
* talk/get_names.c (get_names): Argv no longer include program
name.
* rsh/Makefile.am (INCLUDES): Add libinetutils.
* tftpd/Makefile.am: Likewise.
* uucpd/Makefile.am: Likewise.
2009-06-25 Alfred M. Szmidt <ams@gnu.org>
* tests/Makefile.am (AM_CPPFLAGS): Added `-I$(top_srcdir)/lib' to
list.
2009-06-25 Alfred M. Szmidt <ams@gnu.org>
* rexecd/Makefile.am (INCLUDES): Use
`-I$(top_srcdir)/libinetutils' instead of `-I../libinetutils'
* rexecd/rexecd.c: Include "libinetutils.h" instead of
<libinetutils.h>.
2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
Use argp-version-etc module from gnulib
* bootstrap.conf: Add argp-version-etc; Remove deprecated modules.
* ftp/main.c, ftpd/ftpd.c, hostname/hostname.c, inetd/inetd.c,
logger/logger.c, ping/ping.c, ping/ping6.c, rlogin/rlogin.c,
syslogd/syslogd.c, talkd/talkd.c, traceroute/traceroute.c: Use
argp-version-etc instead of ARGP_PROGRAM_DATA.
* libinetutils/defauthors.c: New file.
* libinetutils/Makefile.am (libinetutils_a_SOURCES): Add
defauthors.c.
* libinetutils/libinetutils.h: Include argp-version-etc.h.
(default_program_authors): New extern.
(ARGP_PROGRAM_DATA_SIMPLE, ARGP_PROGRAM_DATA): Removed.
* rcp/Makefile.am (INCLUDES): Add libinetutils.
* rcp/rcp.c: Use argp and asprintf. Remove obsolete varargs
stuff. Use error to display error messages on tty.
* rexecd/Makefile.am (INCLUDES): Add libinetutils.
* rexecd/rexecd.c: Use argp. Remove obsolete varargs stuff. Use
error to display error messages on tty.
2009-06-15 Simon Josefsson <simon@josefsson.org>
* libtelnet/*: Change use of 'InetUtils' to 'Inetutils' as per
mailing list discussions.
2009-06-10 Simon Josefsson <simon@josefsson.org>
* libinetutils/shishi.c: Add includes for strlen, memcpy, etc.
* libtelnet/Makefile.am (noinst_HEADERS): Add genget.h.
* libtelnet/auth-proto.h: Add prototype for auth_sendname, used by
kerberos5.c and shishi.c.
* libtelnet/auth.c: Add include for alarm.
* libtelnet/enc_des.c: Add include for memcpy, etc. Make type of
encrypt_debug_mode explicit.
* libtelnet/encrypt.c: Add includes for printf, isprefix, etc.
(encrypt_send_keyid, encrypt_dec_keyid): Make return type
explicit.
(encrypt_keyid): Make return type explicit and mark as static.
* libtelnet/misc.c: Add includes for auth_init and encrypt_init.
2009-06-02 Simon Josefsson <simon@josefsson.org>
* README-alpha: Mention statcvs URL.
2009-05-09 Alfred M. Szmidt <ams@gnu.org>
* ROADMAP: File removed, content to moved ...
* TODO: ... here.
2009-05-07 Simon Josefsson <simon@josefsson.org>
* bootstrap.conf (gnulib_modules): Import fdl-1.3 instead of fdl,
we want a version specific import.
* doc/Makefile.am: Rename fdl.texi to fdl-1.3.texi.
* doc/inetutils.texi: Use FDLv1.3+. Reported by Karl Berry
<karl@freefriends.org>.
2009-04-30 Simon Josefsson <simon@josefsson.org>
* acinclude.m4: Avoid comment to fix script.
2009-04-30 Alfred M. Szmidt <ams@gnu.org>
* ftp/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* ftpd/Makefile.am (EXTRA_DIST): Removed man_MANS from list
* ftpd/Makefile.am (man_MANS): Variable removed.
* inetd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* libls/Makefile.am (EXTRA_DIST): Variable removed.
* logger/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* ping/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* rcp/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* rexecd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* rlogin/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* rlogind/Makefile.am (EXTRA_DIST, man_MANS): Variable removed.
* rsh/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* rshd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* syslogd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* talk/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* talkd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* telnet/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* telnetd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* tftp/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* tftpd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* ftp/ftp.1, ftpd/ftpd.8, gwhois/whois.1, inetd/inetd.8,
libls/ls.1, logger/logger.1, ping/ping.8, rcp/rcp.1,
rexecd/rexecd.8, rlogin/rlogin.1, rlogind/rlogind.8, rsh/rsh.1,
rshd/rshd.8, syslogd/syslog.conf.5, syslogd/syslogd.8,
talk/talk.1, talkd/talkd.8, telnet/telnet.1, telnetd/telnetd.8,
tftp/tftp.1, tftpd/tftpd.8: Files removed.
2009-04-29 Simon Josefsson <simon@josefsson.org>
* NEWS: Mention that manual is now GFDLv1.3+.
* bootstrap.conf: Import fdl-1.3 module.
* doc/fdl.texi: Remove.
2009-04-29 Alfred M. Szmidt <ams@gnu.org>
* doc/Makefile.am (inetutils_TEXINFOS): Removed ftp.texi,
ftpd.texi, inetd.texi, logger.texi ping.texi, rcp.texi
rexecd.texi, rlogin.texi, rlogind.texi, rsh.texi rshd.texi,
syslogd.texi, talk.texi, talkd.texi tftp.texi and traceroute.texi
from list.
* ftp.texi, ftpd.texi, inetd.texi, logger.texi, ping.texi,
rcp.texi, rexecd.texi, rlogin.texi, rlogind.texi, rsh.texi,
rshd.texi, syslogd.texi talk.texi, talkd.texi tftp.texi,
traceroute.texi: Files removed.
* doc/inetutils.texi: Rewritten.
2009-04-11 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (checkout_only_file): Removed variable.
* README-hacking: New file.
2009-04-11 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (checkout_only_file): New variable.
* README-hacking: File removed.
* README-alpha: Updated.
2009-02-06 Simon Josefsson <simon@josefsson.org>
* configure.ac: Bump version number to 1.6.90.
2009-01-23 Rakesh Pandit <rakesh.pandit@gmail.com>
* ftpd/ftpcmd.y: Fix typo.
2008-12-27 Sergey Poznyakoff <gray@gnu.org.ua>
* bootstrap.conf: Add xgethostname and xgetdomainname.
* configure.ac: Check for opendir2
* hostname/hostname.c: Use xgethostname and xgetdomainname.
* libinetutils/libinetutils.h (ARGP_PROGRAM_DATA_SIMPLE): New
macro.
(ARGP_PROGRAM_DATA): Rewrite using ARGP_PROGRAM_DATA_SIMPLE.
* ftp/main.c, logger/logger.c, rlogin/rlogin.c, syslogd/syslogd.c:
Use ARGP_PROGRAM_DATA_SIMPLE.
* libls/fts.c: Fix bsdisms.
* ping/ping.c: Include netinet/in.h
* ping/ping_common.c: Include sys/socket.h and string.h.
* bootstrap.conf: Add dirfd, filemode, inttostr and progname.
* configure.ac: Fix checks for IPv6 header files.
* doc/Makefile.am (inetutils_TEXINFOS): Add traceroute.texi.
* doc/ftp.texi: Fixes.
* ftp/cmds.c: Add missing includes.
* ftp/ftp.c: Remove extern program_name.
* ftp/ftp_var.h: Include progname.h
* ftp/main.c (main): Call set_program_name
* ftp/ruserpass.c: Include error.h
* ftpd/Makefile.am (LDADD): Link LIBLS before libgnu.
* ftpd/extern.h: Include getopt.h
* ftpd/ftpd.c, gwhois/whois.c, hostname/hostname.c,
logger/logger.c, rcp/rcp.c, rexecd/rexecd.c, rlogin/rlogin.c,
rsh/rsh.c, rshd/rshd.c, syslogd/syslogd.c, talk/talk.c,
traceroute/traceroute.c: Include progname.h
(main): Call set_program_name.
* ftpd/popen.c: Remove useless extern.
* ifconfig/ifconfig.h: Include progname.h.
* ifconfig/options.c (parse_opt): Call set_program_name.
* ifconfig/options.h (program_name): Remove extern.
* inetd/inetd.c: Include progname.h
(main): Call set_program_name.
(EAI_ADDRFAMILY): Provide a fallback definition for FreeBSD.
* libinetutils/argcv.c: Include ctype.h
* libinetutils/libinetutils.h (utmp_logout, logwtmp_keep_open):
New protos.
* libls/bsdport.h: Remove
* libls/bsdport.c: Remove
* libls/Makefile.am (libls_a_SOURCES): Remove bsdport.c
(noinst_HEADERS): Remove bsdport.h
(INCLUDES): New var.
* libls/fts.c: Remove bsdport.h
* libls/ls.c: Remove bsdisms.
* libls/print.c: Likewise.
* libtelnet/auth.h (auth_debug_mode): Fix extern.
* ping/libping.c (ping_recv): Fix call to ping_event.handler.
* ping/ping.c, ping/ping6.c (main): Call set_program_name.
* ping/ping_common.c (ping_set_data): Remove useless if.
* ping/ping_common.h: Include error.h and progname.h
* rcp/util.c: Include error.h
* rlogind/rlogind.c: Include utmp.h
* talk/ctl.c (print_addr): Remove unused function.
* talk/ctl_transact.c: Include talk.h
* talk/display.c: Fix order of function definitions.
* talk/get_addrs.c: Include unistd.h
* talk/get_names.c: Include unistd.h and netinet/in.h
* talk/init_disp.c: Include unistd.h
* talk/invite.c: Fix order of function definitions.
* talk/io.c: Include unistd.h
* talk/look_up.c: Include unistd.h. Fix order of function
definitions.
* talk/talk.h: Include progname.h. Add missing prototypes.
* talk/talk_ctl.h (ctl_transact): New proto.
* telnet/commands.c: Include sys/wait.h. Reorder function
definitions.
* telnet/externs.h, telnet/ring.h: Add missing prototypes.
* telnet/telnet.c: Reorder function definitions.
* telnet/utilities.c: Include sys/socket.h
* telnetd/telnetd.h: Include sys/stat.h and ctype.h. Add missing
prototypes.
* traceroute/Makefile.am (INCLUDES): Add ../lib.
(LDADD): Add ../libgnu.a
* uucpd/uucpd.c: Reorder function definitions.
* NEWS, configure.ac: Version 1.6
* doc/ftp.texi: Use proper Texinfo markup
* doc/ftpd.texi: Likewise.
* doc/inetutils.texi: Likewise.
* doc/logger.texi: Likewise.
* doc/ping.texi: Likewise.
* doc/rcp.texi: Likewise.
* doc/rexecd.texi: Likewise.
* doc/rlogin.texi: Likewise.
* doc/rlogind.texi: Likewise.
* doc/rsh.texi: Likewise.
* doc/rshd.texi: Likewise.
* doc/syslogd.texi: Likewise.
* doc/talk.texi: Likewise.
* doc/talkd.texi: Likewise.
* doc/tftp.texi: Likewise.
* doc/traceroute.texi: Likewise.
2008-12-12 Sergey Poznyakoff <gray@gnu.org.ua>
* bootstrap.conf: Add version-etc-fsf.
* inetd/inetd.c: Restore (approximate) list of authors from the
ChangeLog. Fix memory allocation. Use getline for reading config
files. Reorder stuff in a logical manner.
2008-12-11 Sergey Poznyakoff <gray@gnu.org.ua>
* README-alpha: Rewrite. Add information on how to get sources
from CVS and Git.
* README-hacking: New file.
* bootstrap.conf: Update copyright year. Remove
checkout_only_file override.
* bootstrap: New file.
* bootstrap.conf: Read in the options from .bootstrap, if it is
present.
* configure.ac: Always check for getaddrinfo.
* inetd/inetd.c: Support optional address specifications. Use
getaddrinfo wherever it is available, otherwise fall back to
gethostbyname/getservbyname approach. Improve debugging
diagnostics.
* doc/inetd.texi: Rewrite in a manual fashion. Document new
features.
* inetd/inetd.8: Provide a reference to texinfo docs.
2008-10-14 Rakesh Pandit <rakesh.pandit@gmail.com>
* ping/ping_impl.h, ping/ping.h, ping/ping_common.h, ping/ping6.h
(ping_stat, PEV_RESPONSE, PEV_DUPLICATE, PEV_NOECHO)
(PING_INTERVAL, PING_CKTABSIZE, MAXWAIT, OPT_FLOOD, OPT_INTERVAL)
(OPT_NUMERIC, OPT_QUIET, OPT_RROUTE, OPT_VERBOSE, PING_TIMING)
(PING_HEADER_LEN, PING_DATALEN): Moved all these common macros and
structures from ping_impl.h , ping6.h and ping_ping.h to
ping_common.h. Removed PING_INTERVAL.
* ping/ping6.c (ping_run): Used PING_SET_INTERVAL similar to
libping.c and used PING_DEFAULT_INTERVAL in place of
PING_INTERVAL.
* ping/libping.c (ping_set_datalen): Removed.
* ping/libping.c, ping/ping_common.c (_ping_freebuf,
ping_unset_data): Moved _ping_freebuf, ping_unset_data from
libping.c to ping_common.c.
* ping/ping6.c (ping_run): Free memory with call to
ping_unset_data.
2008-10-14 Rakesh Pandit <rakesh.pandit@gmail.com>
* ping/libping.c, ping/ping_common.c, ping/ping_common.h
(ping_set_count, ping_set_sockopt, ping_set_interval): Moved
functions from libping.c to ping_common.c and made corresponding
entries in ping_common.h
* ping/ping6.c (main): Used ping_set_interval, ping_set_sockopt,
ping_set_count in place of directly modifying struct p.
2008-10-14 Rakesh Pandit <rakesh.pandit@gmail.com>
* ping/ping_common.h, ping/ping.c, ping/ping_address.c,
ping/ping_echo.c, ping/ping_router.c, ping/ping_timestamp.c,
ping/libping.c: Added common headers from ping related files
(ping.c, ping_address.c, ping_echo.c, ping_router.c)
(ping_timestamp.c, libping.c) and ping6.c to ping/ping_common.h.
* ping/ping.h, ping/ping6.h, ping/ping_common.h (ping_data,
ping_efp): Moved ping_data, ping_efp from ping.h & ping6.h to
ping_common.h
* ping/libping.c, ping/ping6.c, ping/ping_common.c (_ping_setbuf,
ping_set_data): Moved _ping_setbuf and ping_set_data from
libping.c & ping6.c to ping_common.c
* ping/ping_common.h (ping_address, event, ping_data): Introduced
new unions ping_address and event in ping_common.h. Replaced ping
efp handler(ping_efp/ping_efp6) with event union and socket
address(sockaddr_in sockaddr_in6) with ping_address union.
* ping/ping_common.h (_PING_BUFLEN, _ping_setbuf, ping_set_data):
New argument use_ipv6 and all callers changed.
2008-10-14 Rakesh Pandit <rakesh.pandit@gmail.com>
* libicmp/Makefile.am (libicmp_a_SOURCES): Removed libping.c and
ping.h
* ping/Makefile.am (ping_SOURCES): Added libping.c and ping.h
2008-10-14 Rakesh Pandit <rakesh.pandit@gmail.com>
* ping/ping6.c (is_root, count, interval, socket_type): New global
variables count, interval & socket_type, similar to ping.c
Initialize to is_root and count to false and DEFAULT_PING_COUNT
respectively.
* ping/ping6.c (parse_opt): Replaced ping structure usage with
global variables.
* ping/ping6.c (main): Assigned parsed values to ping structure.
2008-09-27 Alfred M. Szmidt <ams@gnu.org>
* doc/inetutils.texi: Renamed ftp and ftpd nodes to `FOO
invocation'. Formatting fixes.
2008-09-27 Alfred M. Szmidt <ams@gnu.org>
* Makefile.am (DISTCLEANFILES): Removed `include/*.h,
`include/*/*.h', and `include/stamp-'h from list.
* configure.ac (AC_CONFIG_FILES): Removed `doc/rfc/Makefile.am'
from list
* doc/Makefile.am (SUBDIRS): Remove variable.
* doc/rfc/.cvsignore, doc/rfc/Makefile.am, doc/rfc/rfc1282.txt:
Files removed.
2008-09-26 Arash Yadegarnia <arash@bluehome.net> (tiny change)
* doc/ftpd.texi (ftpd): Updated documentation for `--auth'.
2008-09-26 Alfred M. Szmidt <ams@gnu.org>
* .cvsignore (config.h, confpaths.h, stamp-h1): Added files.
* hostname/.cvsignore: New file.
2008-09-26 Alfred M. Szmidt <ams@gnu.org>
* doc/inetutils.texi: Refer to `COMMAND invocation' nodes for
logger, rcp, rexecd and syslogd. Formating fixes. Mention
traceroute in the TOC.
* doc/logger.texi, doc/rcp.texi, doc/rexecd.texi, doc/syslogd.texi
doc/talk.texi, doc/talkd.texi, doc/tftp.texi: Fixed some
formatting details. Renamed all nodes to `COMMAND invocation'.
2008-09-26 Alfred M. Szmidt <ams@gnu.org>
* doc/traceroute.texi: New file.
2008-09-26 Alfred M. Szmidt <ams@gnu.org>
* README-alpha: Update details where to get gnulib.
2008-08-23 Debarshi Ray <rishi@gnu.org>
* hostname/hostname.c (main): Initialize OPTIONS to zero.
2008-08-23 Debarshi Ray <rishi@gnu.org>
* hostname/hostname.c (hostname_options): New structure to
encapsulate command line options.
(hostname_file, hostname_new, hostname_alias, hostname_fqdn)
(hostname_ip_address, hostname_dns_domain, hostname_short):
Variables removed.
(get_name): Changed type to `void get_name (const hostname_options
*const options)'. All users changed accordingly.
(set_name): Likewise.
(main): Added new variable OPTIONS.
2008-08-13 Debarshi Ray <rishi@gnu.org>
* hostname/hostname.c: Options --alias and --ip-adress aliased to
--aliases and --ip-addresses respectively.
2008-08-12 Debarshi Ray <rishi@gnu.org>
* hostname/hostname.c: Include arpa/inet.h and netinet/in.h.
Added new switches --alias, --ip-address and removed OPTION_HIDDEN
from --file.
(hostname_alias, hostname_ip_address): New variables.
(get_aliases, get_ip_addresses, parse_file): New functions.
(main): Replace printf with puts.
(get_short_hostname): Changes to follow GNU coding style.
2008-08-12 Debarshi Ray <rishi@gnu.org>
* hostname/hostname.c (parse_opt) <ARGP_KEY_NO_ARGS>: Removed.
(main): Removed unused variable INDEX. Specify default value of
GET_NAME_ACTION.
2008-08-12 Debarshi Ray <rishi@gnu.org>
* NEWS: Mention the addition of `hostname'.
* configure.ac: Add new client `hostname'.
(AC_CONFIG_FILES): Add `hostname/Makefile'.
* Makefile.am (SUBDIRS): Add `hostname' to list.
* hostname/Makefile.am: New file.
* hostname/hostname.c: Likewise.
2008-08-09 Debarshi Ray <rishi@gnu.org>
* libicmp/icmp_timestamp.c: Include <stddef.h>.
2008-07-19 Sergey Poznyakoff <gray@gnu.org.ua>
* inetd.c (TOOMANY): Raise to 1000, as specified in the docs.
(struct servtab): New member se_max.
(main): Take into account se_max settings.
(getconfigent): Initialize se_max.
* inetd/inetd.8: Document [.max] suffix.
2008-06-11 Debarshi Ray <rishi@gnu.org>
* rlogin/Makefile.am (INCLUDES): Added
`-I$(top_srcdir)/libinetutils'.
* rlogin/rlogin.c: Include <argp.h>. Remove include for
<getopt.h>. Include "libinetutils.h".
(dflag, host, user): New variables.
(msg, usage): Functions removed. Use argp_error or error in all
callers accordingly.
(short_options, long_options): Variables removed.
(ARGP_PROGRAM_DATA): Call macro.
(args_doc, doc, argp_options): New variables.
(program_name): Variable removed.
(parse_opt): New function.
(argp): New variable.
(main): Added new variable INDEX. Removed variables CH, DFLAG,
HOST and USER. Use argp to parse program options.
2008-06-05 Debarshi Ray <rishi@gnu.org>
* libicmp/libping.c (ping_reset): New function.
(_ping_freebuf): Free PING->ping_cktab.
(ping_unset_data): New function.
* libicmp/ping.h (ping_reset): New function.
(ping_unset_data): New function.
* ping/ping.c (ping_type): Changed type to `int (*ping_type) (char
*hostname)'. All users changed accordingly.
(decode_type): Likewise.
(main): Allow multiple hosts on the command line.
(ping_run): Avoid decrementing PRELOAD. Replaced free with
ping_unset_data.
* ping/ping6.c (main): Added new variable STATUS. Multiple host
support implemented.
(ping_run): Avoid decrementing PRELOAD.
(ping_echo): Changed type to `static int ping_echo (char
*hostname)`. All callers and declarations changed accordingly.
Added new variable STATUS. Free PING->ping_hostname.
(ping_reset): New function.
(echo_finish): Call return instead of exit.
* ping/ping_address.c (ping_address): Changed type to `int
ping_address (char *hostname)'. All callers and extern
declarations changed accordingly.
* ping/ping_echo.c (ping_echo): Likewise.
* ping/ping_router.c (ping_router): Likewise.
* ping/ping_timestamp.c (ping_timestamp): Likewise.
2008-05-20 Debarshi Ray <rishi@gnu.org>
* ftp/cmds.c, ftp/ftp.c, ftp/main.c, ftpd/ftpd.c, ftpd/popen.c,
inetd/inetd.c, libinetutils/argcv.c, libls/ls.c, ping/ping6.c,
rcp/util.c, rexecd/rexecd.c, rlogind/rlogind.c, rsh/rsh.c,
talk/get_names.c, talk/invite.c, talk/look_up.c, talkd/talkd.c,
telnet/commands.c, telnet/utilities.c, telnetd/utility.c,
uucpd/uucpd.c: Remove unused variables and add ARG_UNUSED
attribute to unused function arguments.
2008-05-13 Debarshi Ray <rishi@gnu.org>
* libls/bsdport, libls/cmp.c, libls/ls.c, libls/print.c,
libls/stat_flags.c [ORIGINAL_SOURCE]: Removed dead code.
2008-04-21 Guillem Jover <guillem@hadrons.org>
* syslogd/syslogd.c (init): Add ARG_UNUSED attribute to SIGNO
argument.
(domark): Likewise. Remove now unneeded no-op SIGNO statement.
2008-04-20 Michal Svoboda <pht@spatium.org> (tiny change)
* ping/ping6.c (print_echo): Cast ICMP6+1 and not ICMP6 to `struct
timeval *'.
2008-04-19 Debarshi Ray <rishi@gnu.org>
* traceroute/traceroute.c: Added new switch --type.
(opt_type): New variable.
(main): Replace getuid with geteuid. Use OPT_TYPE instead of
hard-coding TRACE_ICMP.
2008-04-18 Debarshi Ray <rishi@gnu.org>
* ChangeLog: Remove unnecessary "(tiny change)"s.
2008-04-17 Debarshi Ray <rishi@gnu.org>
* traceroute/traceroute.c: Include <error.h>. Added new switch
--tries.
(opt_max_tries): Declared static.
2008-04-17 Alfred M. Szmidt <ams@gnu.org>
* traceroute/traceroute.c (do_try): Removed unused variable HOST.
2008-04-16 Debarshi Ray <rishi@gnu.org>
* syslogd/syslogd.c: Include <argp.h>, and <error.h>. Remove
include for <getopt.h>.
(program_name): Variable removed.
(ARGP_PROGRAM_DATA): Call macro.
(args_doc, doc): New variables.
(usage): Function removed.
(OPT_NO_FORWARD, OPT_NO_KLOG, OPT_NO_UNIXAF, OPT_PIDFILE): New
enums.
(argp_options): New variable.
(short_options, long_options): Variables removed.
(parse_opt): New function.
(argp): New variable.
(main): Removed variable OPTION. Use argp to parse program
options. Use error instead of "output message; exit;"
concoction's.
(add_funix): Use error instead of "output message; exit;"
concoction's.
(crunch_list): Use error instead of "output message; exit;"
concoction's.
(die): Use program_invocation_name instead of program_name.
2008-04-16 Debarshi Ray <rishi@gnu.org>
* logger/Makefile.am (INCLUDES): Added
`-I$(top_srcdir)/libinetutils'.
* logger/logger.c: Include <argp.h>, and <error.h>. Remove
include for <getopt.h>. Include "libinetutils.h".
(program_name, short_options, long_options): Variables removed.
(tag, logflags, pri): New variables.
(ARGP_PROGRAM_DATA): Call macro.
(args_doc, doc, argp_options): New variables.
(usage): Function removed.
(parse_opt): New function.
(argp): New variable.
(main): Added new variable INDEX. Removed variables OPTION,
LOGFLAGS, PRI and TAG. Use argp to parse program options.
(pencode): Use error instead of "output message; exit;"
concoction's. Use EXIT_FAILURE.
2008-04-15 Ludovic Courtès <ludo@gnu.org> (tiny change)
* acinclude.m4 (IU_CONFIG_PATHS): Honor `$TMPDIR'.
2008-04-14 Edward Attfield <attfield@nortel.com> (tiny change)
* telnet/sys_bsd.c (process_rings): New variable NFDS. Detect the
number of open file descriptors during FD_SET.
2008-02-06 Simon Josefsson <simon@josefsson.org>
* libtelnet/shishi.c: Delay initialization of Shishi until it is
really needed.
2007-09-06 Debarshi Ray <rishi@gnu.org>
* ftp/cmds.c (setpeer): If HOSTNAME is set, try to reconnect to
it.
2007-09-02 Debarshi Ray <rishi@gnu.org>
* bootstrap.conf (gnulib_modules): Added `readline'.
* configure.ac: Check for add_history libhistory and libreadline.
* ftp/Makefile.am (READLINE): Added `@LIBHISTORY@'.
* ftp/extern.h (another): Changed type of PROMPT to `const char
*'.
* ftp/cmds.c (another): Added new variables BUFFER and ARG. Use
readline for input. Use better error handling.
(another) [HAVE_LIBHISTORY]: Use add_history.
* ftp/ftp.c (login): Removed all references to HAVE_LIBREADLINE.
* ftp/ftp_var.h: Likewise.
* ftp/main.c [!HAVE_LIBREADLINE]: #include "readline.h".
(cmdscanner): Use readline uniformly. Use NULL instead of 0.
(cmdscanner) [HAVE_LIBHISTORY]: Use add_history.
2007-09-02 Pedro Alves <pedro_alves@portugalmail.pt> (tiny change)
* rcp/rcp.c (rsource): Free BUF after call to source().
2007-07-26 Debarshi Ray <rishi@gnu.org>
* ping/ping_echo.c (ping_echo): Free PING->ping_hostname.
(echo_finish): Call return instead of exit.
* ping/ping.c (main): Free PING and DATA_BUFFER.
(ping_run): Free PING->ping_buffer and PING->ping_cktab.
2007-07-21 Debarshi Ray <rishi@gnu.org>
* ftp/main.c: Include <argp.h>, and <string.h>. Remove include
for <getopt.h>. Include "libinetutils.h".
(program_name): Variable removed.
(usage): Function removed.
(ARGP_PROGRAM_DATA): Call macro.
(args_doc, doc, argp_options): New variables.
(parse_opt): New function.
(short_options, long_options): Variables removed.
(argp): New variable.
(main): Added new variable INDEX. Use EXIT_FAILURE and
EXIT_SUCCESS. Use argp to parse program options. Use
program_invocation_name instead of program_name.
* ftp/cmds.c (quit): Use EXIT_SUCCESS.
(shell): Use EXIT_FAILURE.
2007-07-15 Alfred M. Szmidt <ams@gnu.org>
* ftp/ftp.c (command): Ignore SIGPIPE when flushing COUT.
* ftp/cmds.c (setpeer): Check that the connection is still open by
sending a NOOP command to the server.
2007-07-15 Karl Berry <karl@freefriends.org> (tiny change)
* doc/inetutils.texi: Fix typo.
2007-06-26 Alfred M. Szmidt <ams@gnu.org>
* COPYING: Updated to GPLv3.
* Makefile.am, acinclude.m4, bootstrap.conf, configure.ac, paths,
doc/Makefile.am, doc/rfc/Makefile.am, ftp/Makefile.am, ftp/cmds.c,
ftpd/Makefile.am, ftpd/logwtmp.c, gwhois/Makefile.am,
gwhois/whois.c, headers/Makefile.am, headers/shishi_def.h,
ifconfig/Makefile.am, ifconfig/changeif.c, ifconfig/flags.c,
ifconfig/flags.h, ifconfig/if_index.c, ifconfig/if_index.h,
ifconfig/ifconfig.c, ifconfig/ifconfig.h, ifconfig/options.c,
ifconfig/options.h, ifconfig/printif.c, ifconfig/printif.h,
ifconfig/system.h, ifconfig/system/Makefile.am,
ifconfig/system/generic.c, ifconfig/system/generic.h,
ifconfig/system/hpux.c, ifconfig/system/hpux.h,
ifconfig/system/linux.c, ifconfig/system/linux.h,
ifconfig/system/osf.c, ifconfig/system/osf.h,
ifconfig/system/qnx.c, ifconfig/system/qnx.h,
ifconfig/system/solaris.c, ifconfig/system/solaris.h,
inetd/Makefile.am, inetd/inetd.c, lib/Makefile.am,
libicmp/Makefile.am, libicmp/icmp.h, libicmp/icmp_address.c,
libicmp/icmp_cksum.c, libicmp/icmp_echo.c,
libicmp/icmp_timestamp.c, libicmp/libping.c, libicmp/ping.h,
libinetutils/Makefile.am, libinetutils/argcv.c,
libinetutils/argcv.h, libinetutils/cleansess.c,
libinetutils/libinetutils.h, libinetutils/localhost.c,
libinetutils/logwtmp.c, libinetutils/setsig.c,
libinetutils/shishi.c, libls/Makefile.am, libtelnet/Makefile.am,
libtelnet/kerberos5.c, libtelnet/shishi.c, logger/Makefile.am,
ping/Makefile.am, ping/ping.c, ping/ping6.c, ping/ping6.h,
ping/ping_address.c, ping/ping_common.c, ping/ping_common.h,
ping/ping_echo.c, ping/ping_router.c, ping/ping_timestamp.c,
rcp/Makefile.am, rexecd/Makefile.am, rlogin/Makefile.am,
rlogind/Makefile.am, rlogind/rlogind.c, rsh/Makefile.am,
rshd/Makefile.am, syslogd/Makefile.am, talk/Makefile.am,
talkd/Makefile.am, talkd/acl.c, talkd/announce.c, talkd/intalkd.h,
talkd/print.c, talkd/process.c, talkd/table.c, talkd/talkd.c,
telnet/Makefile.am, telnetd/Makefile.am, telnetd/pty.c,
telnetd/telnetd.c, telnetd/telnetd.h, telnetd/term.c,
telnetd/utility.c, tests/Makefile.am, tests/localhost.c,
tftp/Makefile.am, tftpd/Makefile.am, traceroute/Makefile.am,
traceroute/traceroute.c, traceroute/traceroute.h,
uucpd/Makefile.am: Updated license blurbs to the GNU General
Public License version 3.
2007-06-26 Karl Berry <karl@freefriends.org> (tiny change)
* doc/inetutils.texi: Updated Info directory entries. Use
@copying for permission notice.
2007-06-26 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (gnulib_modules): Removed `allocsa'.
2007-06-11 Alfred M. Szmidt <ams@gnu.org>
* ftpd/ftpd.c (makedir): Pass NAME when calling reply().
2007-05-28 Debarshi Ray <rishi@gnu.org>
* inetd/inetd.8: Fix typo.
* inetd/Makefile.am (INCLUDES): Added
-I$(top_srcdir)/libinetutils.
* inetd/inetd.c: Include <stdbool.h>, <argp.h> and
"libinetutils.h". Don't include <getopt.h>
(program_name): Variable removed.
(debug, env_option, resolve_option): Changed type to bool.
(ARGP_PROGRAM_DATA): Call macro.
(args_doc, doc): New variables.
(OPT_ENVIRON, OPT_RESOLVE): New enums.
(argp_options): New variable.
(parse_opt): New function.
(argp): New variable.
(usage): Function removed.
(short_options, long_options): Variables removed.
(main): Use argp to parse program options.
2007-06-04 Alfred M. Szmidt <ams@gnu.org>
* ping/ping6.c (main): Move argument parsing before calling
ping_init.
* ping/ping.c (main): Reorder assignment of argc and argv to be
right after calling argp_parse.
* tftpd/tftpd.c (struct formats) [notdef]: Removed unused field
"mail"..
* telnet/telnet.c (modelist) [notdef]: Removed variable.
(printring) [notdef]: Removed function.
* telnet/sys_bsd.c (TerminalRestoreState) [notdef]: Remvoved
function.
(TerminalNewMode) [notdef]: Removed unused code.
* telnet/ring.h (ring_consume_data) [notdef]: Removed extern
declaration.
* telnet/ring.c (ring_consume_data) [notdef]: Removed function.
* telnet/commands.c (filestuff) [notdef]: Removed unused code.
* rshd/rshd.c (doit) [notdef]: Removed unused code.
* libtelnet/kerberos.c (prkey) [notdef]: Function removed.
* libtelnet/encrypt.c (encrypt_init, encrypt_session_key)
[notdef]: Removed unused code.
* libls/fts.c (fts_build) [notdef]: Removed unused code.
* libinetutils/des_rw.c (des_pcbc_encrypt) [notdef]: Removed
forward declaration.
* AUTHORS: Rewritten.
2007-05-31 Alfred M. Szmidt <ams@gnu.org>
* whois/.cvsignore: File removed.
* ping/ping_router.c: Don't include "getopt.h".
2007-05-28 Debarshi Ray <rishi@gnu.org>
* ping/ping_timestamp.c: Don't include "getopt.h". Include
"ping_common.h".
(ping_timestamp): Use error instead of "output message; exit;"
concoction's.
* ping/ping_impl.h (is_root, preload): Removed extern
declarations.
* ping/ping_echo.c (ping_echo): Use error instead of "output
message; exit;" concoction's.
* ping/ping_common.h (show_license): Removed declaration.
* ping/ping_common.c: Include "ping_common.h".
(ping_cvt_number, decode_pattern): Use error instead of "output
message; exit;" concoction's.
(show_license): Function removed.
* ping/ping_address.c: Don't include "getopt.h". Include
"ping_common.h".
(ping_address): Use error instead of "output message; exit;"
concoction's.
* ping/ping6.c: Include <stdbool.h>. Don't include <getopt.h>.
Include <argp.h> and "libinetutils.h".
(short_options, long_options): Variables removed.
(is_root, patptr, one, pattern_len): New variables.
(show_usage): Function removed.
(program_name): Variable removed.
(ARGP_PROGRAM_DATA): Call macro.
(args_doc, doc, argp_options): New variables.
(parse_opt): New function.
(argp): New variable.
(main): Use argp to parse program options.
(ping_echo, ping_init): Use error instead of "output message;
exit;" concoction's.
* ping/ping.c: Don't include <getopt.h>. Include <argp.h> and
"libinetutils.h".
(short_options, long_options): Variables removed.
(is_root, patptr, pattern_len, socket_type, count, interval): New
variables.
(show_usage): Function removed.
(decode_type): Changed type to `int (*decode_type (const char
*arg)) (int argc, char **argv)'. All callers changed accordingly.
(program_name): Variable removed.
(ARGP_PROGRAM_DATA): Call macro.
(args_doc, doc): New variables.
(ARG_ECHO, ARG_ADDRESS, ARG_TIMESTAMP, ARG_ROUTERDISCOVERY): New
enums.
(argp_options): New variable.
(parse_opt): New function.
(main): Use argp to parse program options.
* ping/Makefile.am (INCLUDES): Added
`-I$(top_srcdir)/libinetutils'.
2007-05-28 Debarshi Ray <rishi@gnu.org>
* talkd/talkd.c (parse_opt): Renamed argument ST to STATE.
2007-05-24 Alfred M. Szmidt <ams@gnu.org>
* TODO: Updated.
2007-05-24 Alfred M. Szmidt <ams@gnu.org>
* ftpd/ftpd.c (main): Changed type of ADDRLEN to socklen_t.
(dataconn): Changed type of S and FROMLEN to socklen_t.
(passive): Changed type of LEN to socklen_t.
* inetd/inetd.c (set_proc_title, echo_dg, chargen_dg, machtime_dg)
(daytime_dg): Changed type of SIZE to socklen_t.
* telnetd/state.c (doopt, dont, will, wont): Changed type to char
[].
2007-05-24 Alfred M. Szmidt <ams@gnu.org>
* traceroute/traceroute.c (do_try): Removed variable PREV_TRACE.
New variable PREV_ADDR. Only print the IP/hostname if the
previous IP was not the same.
(trace_read): Changed type of DATA to u_char.
(trace_read): Changed type of SIZ to socklen_t.
(trace_write): Cast HDR to u_char *.
2007-05-23 Alfred M. Szmidt <ams@localhost>
* talkd/talkd.c (doc): Fix typo.
2007-05-23 Debarshi Ray <rishi@gnu.org>
* talkd/talkd.c: Include <argp.h>. Don't include <getopt.h>.
(show_usage, show_version, show_license): Functions removed.
(short_options, long_options): Variables removed.
(acl_file): New variable.
(program_name): Variable removed.
(ARGP_PROGRAM_DATA): Call macro.
(args_doc, doc, argp_options): New variables.
(parse_opt): New function.
(argp): New variable.
(main): Use argp to parse program options.
2007-05-23 Alfred M. Szmidt <ams@localhost>
* bootstrap.conf (gnulib_modules): Added "argp".
2007-05-23 Debarshi Ray <rishi@gnu.org>
* traceroute/Makefile.am (INCLUDES): Added
`-I$(top_srcdir)/libinetutils'.
* traceroute/traceroute.c: Don't include <getopt.h>. Include
<argp.h> and "libinetutils.h". Use error() instead of "output
message; exit;" concoction's.
(show_usage): Function removed.
(program_name): Variable removed.
(host): New variable.
(OPT_VERSION, OPT_HELP, OPT_RESOLVE_HOSTNAMES): Macros removed.
(shor_options, option long_options): Variable removed.
(ARGP_PROGRAM_DATA): Call macro.
(args_doc, doc): New variables.
(OPT_RESOLVE): New enum.
(argp_options): New variable.
(parse_opt): New function.
(main) Use argp to parse program options.
2007-05-23 Debarshi Ray <rishi@gnu.org>
* libinetutils/libinetutils.h: Include "config.h".
(ARGP_PROGRAM_DATA): New macro.
2007-04-19 Alfred M. Szmidt <ams@gnu.org>
* NEWS: Minor clean up.
2007-04-19 Alfred M. Szmidt <ams@gnu.org>
* whois/Makefile.am, whois/main.c, whois/net.c,
whois/whois-servers: Files removed.
2007-04-12 Simon Josefsson <simon@josefsson.org>
* tests/.cvsignore: New file.
2007-04-12 Simon Josefsson <simon@josefsson.org>
* tests/localhost.c: Need to #include <stdio.h> for printf.
2007-04-12 Alfred M. Szmidt <ams@gnu.org>
* libinetutils/Makefile.am (libinetutils_a_SOURCES): Removed
`xalloc-die.c' from list.
* libinetutils/xalloc-die.c: File removed.
2007-04-12 Alfred M. Szmidt <ams@gnu.org>
* libinetutils/utmp_init.c (__USE_GNU): Define macro if and only
if __USE_GNU was not defined.
2007-04-12 Simon Josefsson <simon@josefsson.org>
* tests/Makefile.am: New file.
* tests/localhost.c: New self test.
* configure.ac: Build tests/Makefile.
* Makefile.am (SUBDIRS): Add tests/.
2007-04-12 Simon Josefsson <simon@josefsson.org>
* acinclude.m4: Remove AB_INIT.
* bootstrap.conf (gnulib_modules): Add autobuild.
2007-04-12 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf (gnulib_modules): Removed `restrict' and
`stdio-safer'.
2007-04-12 Alfred M. Szmidt <ams@gnu.org>
* acinclude.m4 (jm_INCLUDED_REGEX): Function removed.
* configure.ac: Don't call `jm_INCLUDED_REGEX'.
* bootstrap.conf (gnulib_modules): Add `regex' to list.
2007-04-12 Alfred M. Szmidt <ams@gnu.org>
* bootstrap.conf: Create m4/ if it does not exist.
* README-alpha: Updated.
2007-04-12 Simon Josefsson <simon@josefsson.org>
* README-alpha: Mention new daily builds and autobuild logs.
* acinclude.m4: Add contents of autobuild.m4. Suggested by
"Alfred M. Szmidt" <ams@gnu.org>.
* configure.ac: Call AB_INIT.
2007-03-31 Alfred M. Szmidt <ams@gnu.org>
* Makefile.am (snapshot): Target renamed to `snapshot'.
2007-03-30 Alfred M. Szmidt <ams@gnu.org>
Revert change from 2007-03-29.
* Makefile.am (MAINTAINERCLEANFILES): Removed variable.
* ping/Makefile.am (MAINTAINERCLEANFILES): Likewise.
2007-03-30 Sergey Poznyakoff <gray@gnu.org.ua>
* README-alpha: Fixed typo.
2007-03-29 Debarshi Ray <rishi@gnu.org> (tiny change)
* Makefile.am (MAINTAINERCLEANFILES): New variable.
2007-03-29 Debarshi Ray <rishi@gnu.org> (tiny change)
* ping/Makefile.am (MAINTAINERCLEANFILES): New variable.
2007-03-27 Debarshi Ray <rishi@gnu.org> (tiny change)
* bootstrap.conf (checkout_only_file): New variable.
* README-alpha: Updated.
2007-03-21 Alfred M. Szmidt <ams@gnu.org>
* ftp/main.c (usage): Fix typo.
2007-03-16 Alfred M. Szmidt <ams@gnu.org>
* README-alpha: Updated instructions for generating auto* and
gnulib files.
* autogen.sh: File removed.
* bootstrap.conf, lib/Makefile.am: New files.
2007-03-16 Simon Josefsson <simon@josefsson.org>
* libtelnet/shishi.c (krb5shishi_send): Don't set a
use-session-key ap-options, that is for user2user authentication
which is not appropriate here.
2007-03-16 Alfred M. Szmidt <ams@gnu.org>
* .cvsignore: Added `build-aux'.
* ping/.cvsignore: Added `ping6'.
* traceroute/.cvsignore: New file.
2007-03-16 Alfred M. Szmidt <ams@gnu.org>
* configure.ac: Removed libglob checks.
(AC_CONFIG_FILES): Don't list glob/Makefile.
* Makefile.am (SUBDIRS): Removed `glob'.
* glob/.cvsignore, glob/COPYING.LIB, glob/Makefile.am,
glob/SMakefile, glob/configure.bat, glob/configure.in,
glob/fnmatch.c, glob/fnmatch.h, glob/glob.c, glob/glob.h: Files
removed.
2007-03-16 Alfred M. Szmidt <ams@gnu.org>
* lib/.cvsignore, lib/Makefile.am, lib/alloca.c, lib/alloca_.h,
lib/allocsa.c, lib/allocsa.h, lib/allocsa.valgrind,
lib/asnprintf.c, lib/dup-safer.c, lib/error.c, lib/error.h,
lib/exit.h, lib/exitfail.c, lib/exitfail.h, lib/fd-safer.c,
lib/fopen-safer.c, lib/free.c, lib/getcwd.c, lib/getcwd.h,
lib/getdelim.c, lib/getdelim.h, lib/getline.c, lib/getline.h,
lib/getopt.c, lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h,
lib/getpass.c, lib/getpass.h, lib/gettext.h, lib/getusershell.c,
lib/malloc.c, lib/mbchar.c, lib/mbchar.h, lib/mbuiter.h,
lib/memchr.c, lib/memcmp.c, lib/memcpy.c, lib/memmove.c,
lib/mempcpy.c, lib/mempcpy.h, lib/memset.c, lib/minmax.h,
lib/obstack.c, lib/obstack.h, lib/pipe-safer.c, lib/poll.c,
lib/poll_.h, lib/printf-args.c, lib/printf-args.h,
lib/printf-parse.c, lib/printf-parse.h, lib/readutmp.c,
lib/readutmp.h, lib/realloc.c, lib/regcomp.c, lib/regex.c,
lib/regex.h, lib/regex_internal.c, lib/regex_internal.h,
lib/regexec.c, lib/setenv.c, lib/setenv.h, lib/size_max.h,
lib/snprintf.c, lib/snprintf.h, lib/stdbool_.h, lib/stdint_.h,
lib/stdio--.h, lib/stdio-safer.h, lib/strcase.h, lib/strcasecmp.c,
lib/strchrnul.c, lib/strchrnul.h, lib/strdup.c, lib/strdup.h,
lib/strerror.c, lib/strncasecmp.c, lib/strndup.c, lib/strndup.h,
lib/strnlen.c, lib/strnlen.h, lib/strnlen1.c, lib/strnlen1.h,
lib/sysexit_.h, lib/unistd--.h, lib/unistd-safer.h,
lib/unlocked-io.h, lib/unsetenv.c, lib/vasnprintf.c,
lib/vasnprintf.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/wcwidth.h,
lib/xalloc-die.c, lib/xalloc.h, lib/xgetcwd.c, lib/xgetcwd.h,
lib/xmalloc.c, lib/xsize.h, m4/absolute-header.m4, m4/alloca.m4,
m4/allocsa.m4, m4/codeset.m4, m4/d-ino.m4, m4/eealloc.m4,
m4/eoverflow.m4, m4/error.m4, m4/exitfail.m4, m4/extensions.m4,
m4/free.m4, m4/getcwd-abort-bug.m4, m4/getcwd-path-max.m4,
m4/getcwd.m4, m4/getdelim.m4, m4/getline.m4, m4/getndelim2.m4,
m4/getopt.m4, m4/getpass.m4, m4/gettext.m4, m4/getusershell.m4,
m4/glibc2.m4, m4/glibc21.m4, m4/gnulib-cache.m4,
m4/gnulib-comp.m4, m4/gnulib-tool.m4, m4/iconv.m4, m4/intdiv0.m4,
m4/intmax.m4, m4/intmax_t.m4, m4/inttypes-h.m4,
m4/inttypes-pri.m4, m4/inttypes.m4, m4/inttypes_h.m4,
m4/isc-posix.m4, m4/lcmessage.m4, m4/lib-ld.m4, m4/lib-link.m4,
m4/lib-prefix.m4, m4/lock.m4, m4/longdouble.m4, m4/longlong.m4,
m4/mbchar.m4, m4/mbiter.m4, m4/mbrtowc.m4, m4/memchr.m4,
m4/memcmp.m4, m4/memcpy.m4, m4/memmove.m4, m4/mempcpy.m4,
m4/memset.m4, m4/minmax.m4, m4/nls.m4, m4/obstack.m4,
m4/onceonly_2_57.m4, m4/po.m4, m4/poll.m4, m4/printf-posix.m4,
m4/progtest.m4, m4/readutmp.m4, m4/regex.m4, m4/restrict.m4,
m4/setenv.m4, m4/signed.m4, m4/size_max.m4, m4/snprintf.m4,
m4/ssize_t.m4, m4/stdbool.m4, m4/stdint.m4, m4/stdint_h.m4,
m4/stdio-safer.m4, m4/strcase.m4, m4/strchrnul.m4, m4/strdup.m4,
m4/strerror.m4, m4/strerror_r.m4, m4/strndup.m4, m4/strnlen.m4,
m4/sysexits.m4, m4/uintmax_t.m4, m4/ulonglong.m4,
m4/unistd-safer.m4, m4/unistd_h.m4, m4/unlocked-io.m4,
m4/vasnprintf.m4, m4/visibility.m4, m4/vsnprintf.m4,
m4/wchar_t.m4, m4/wcwidth.m4, m4/wint_t.m4, m4/xalloc.m4,
m4/xgetcwd.m4, m4/xsize.m4: Files removed.
2007-03-10 Elian Gidoni <arkaino@gmail.com>
Alfred M. Szmidt <ams@gnu.org>
* NEWS: Mention the addition of `traceroute'.
* configure.ac: Add new client `traceroute'.
(AC_CONFIG_FILES): Add `traceroute/Makefile'.
* Makefile.am (SUBDIRS): Add `traceroute' to list.
* traceroute/Makefile.am: New file.
* traceroute/traceroute.h: Likewise.
* traceroute/traceroute.c: Likewise.
2007-03-10 Alfred M. Szmidt <ams@gnu.org>
* README-alpha, ROADMAP, THANKS, TODO: Updated.
2007-03-08 Petr Salinger <Petr.Salinger@seznam.cz>
* configure.ac (IU_CHECK_MEMBERS): Fix typo 'stuct' -> 'struct'.
2007-03-08 Simon Josefsson <jas@extundo.com>
* telnet/ring.h (ring_encrypt): Fix typo in prototype.
2006-11-17 Sergey Poznyakoff <gray@gnu.org.ua>
* ping/ping.c (main): Allow zero argument for -c
2006-11-11 Alfred M. Szmidt <ams@gnu.org>
* ping/ping_common.h (DEFAULT_PING_COUNT): New macro.
* ping/ping6.c (ping_init): Set default ping count to
DEFAULT_PING_COUNT.
(show_usage): Mention the default.
* ping/ping.c (main): Set default ping count to
DEFAULT_PING_COUNT.
(show_usage): Mention the default.
* NEWS: Mention new behaviour.
2006-10-25 Alfred M. Szmidt <ams@gnu.org>
* rsh/rsh.c: Include "xalloc.h".
* telnet/authenc.c [AUTHENTICATION || ENCRYPTION]: Include
<unistd.h>.
* libinetutils/utmp_init.c: Include <utmpx.h> if and only if
HAVE_UTMPX_H is defined.
(utmp_init): Changed all references of UTMPX to HAVE_UTMPX_H.
* talk/io.c (errno, sys_nerr): Removed extern declarations.
2006-10-21 Alfred M. Szmidt <ams@gnu.org>
* ftp/cmds.c, ftp/cmdtab.c, ftp/domacro.c, ftp/ftp.c, ftp/main.c,
ftp/ruserpass.c, ftpd/ftpcmd.y, ftpd/ftpd.c, ftpd/logwtmp.c,
ftpd/popen.c, inetd/inetd.c, lib/regex_internal.c,
libinetutils/des_rw.c, libinetutils/kcmd.c, libinetutils/krcmd.c,
libinetutils/tftpsubs.c, libinetutils/ttymsg.c, libls/cmp.c,
libls/fts.c, libls/ls.c, libls/print.c, libls/stat_flags.c,
libls/util.c, libtelnet/auth.c, libtelnet/enc_des.c,
libtelnet/encrypt.c, libtelnet/forward.c, libtelnet/genget.c,
libtelnet/getent.c, libtelnet/kerberos.c, libtelnet/misc.c,
libtelnet/read_passwd.c, logger/logger.c, rcp/rcp.c, rcp/util.c,
rexecd/rexecd.c, syslogd/syslogd.c, talk/ctl.c,
talk/ctl_transact.c, talk/display.c, talk/get_addrs.c,
talk/get_names.c, talk/init_disp.c, talk/invite.c, talk/io.c,
talk/look_up.c, talk/msgs.c, talk/talk.c, telnet/authenc.c,
telnet/commands.c, telnet/main.c, telnet/network.c, telnet/ring.c,
telnet/sys_bsd.c, telnet/telnet.c, telnet/terminal.c,
telnet/tn3270.c, telnet/utilities.c, telnetd/slc.c,
telnetd/state.c, telnetd/termstat.c, tftp/main.c, tftp/tftp.c,
tftpd/tftpd.c, uucpd/uucpd.c, whois/net.c: Removed lint cruft.
2006-10-21 Guillem Jover <guillem@hadrons.org>
* syslogd/syslogd.c (init): Close CF properly before returning.
2006-10-21 Guillem Jover <guillem@hadrons.org>
* ftpd/ftpd.c (store): Do not overwrite `name' with gunique's
return value, to avoid passing NULL to LOGCMD.
2006-10-21 Guillem Jover <guillem@hadrons.org>
* libinetutils/localhost.c (localhost): Determine the FQDN only if
gethostname did not fail.
2006-10-21 Alfred M. Szmidt <ams@gnu.org>
* telnetd/utility.c: Include <time.h>.
(expand_line): Cast LINE to (char *).
* ftpd/auth.c: Include <string.h>
(auth_user) <default>: Cast LEN to (size_t).
* ftp/cmdtab.c: Include <string.h>
* libinetutils/xalloc_die.c: Include <stdlib.h>
* talk/get_addrs.c: Include <stdlib.h>, and <string.h>.
* talk/get_names.c: Include <stdlib.h>, and <string.h>.
* talk/init_disp.c: Include <stdlib.h>.
* talk/invite.c: Include <string.h>
* talk/look_up.c: Include <string.h>
* talk/talk.c: Include <stdlib.h>
* telnet/network.c: Include <stdlib.h>
* telnet/ring.c: Include <string.h>.
* telnet/terminal.c: Include <stdlib.h>.
* telnet/utilities.c: Include <stdlib.h>.
* rexecd/rexecd.c: Renamed all occurences of ASIN to A_SIN.
* libtelnet/encrypt.c, ftp/cmds.c, libls/util.c,
libls/stat_flags.c, libls/print.c, libls/ls.c, libls/fts.c,
libinetutils/tftpsubs.c, libinetutils/des_rw.c, ftpd/popen.c,
ftpd/logwtmp.c, ftpd/ftpcmd.y, whois/net.c, telnetd/termstat.c,
telnetd/state.c, telnetd/slc.c, telnet/utilities.c, telnet/main.c,
libtelnet/misc-proto.h, libtelnet/key-proto.h,
libtelnet/forward.c, rcp/util.c, talk/invite.c, telnet/externs.h:
Remove useless casts to (void).
* libtelnet/encrypt.c, libtelnet/enc_des.c, libtelnet/enc-proto.h,
libtelnet/auth.h, telnetd/utility.c, telnetd/telnetd.h,
telnetd/telnetd.c, telnet/ring.h, telnet/krb4-proto.h,
telnet/commands.c, rlogind/rlogind.c, libtelnet/encrypt.h,
libtelnet/kerberos.c, libtelnet/read_passwd.c: Remove all
references to P().
2006-10-21 Sergey Poznyakoff <gray@gnu.org.ua>
* configure.ac: Version 1.5
* NEWS: Version 1.5
* lib/readutmp.c, lib/readutmp.h: Update from gnulib
* syslogd/syslogd.c (wallmsg): Use new read_utmp interface.
* talkd/process.c (find_user): Use new read_utmp interface.
2006-10-21 Alfred M. Szmidt <ams@gnu.org>
* ftpd/auth.c (auth_user) <default>: Free PCRED->message before
returning if sgetcred() returned non-zero.
* inetd/inetd.8: Fix typos. Based on patch from Stephen Liebbe
<sliebbe@gmail.com>.
2006-10-21 Guillem Jover <guillem@hadrons.org>
* configure.ac (AC_CHECK_LIB): Remove check for unused libz.
2006-10-12 Sergey Poznyakoff <gray@gnu.org.ua>
* doc/ChangeLog, ftp/ChangeLog, ftpd/ChangeLog, glob/ChangeLog,
gwhois/ChangeLog, headers/ChangeLog, ifconfig/ChangeLog,
inetd/ChangeLog, libicmp/ChangeLog, libinetutils/ChangeLog,
libls/ChangeLog, libtelnet/ChangeLog, logger/ChangeLog,
ping/ChangeLog, rcp/ChangeLog, rexecd/ChangeLog, rlogin/ChangeLog,
rlogind/ChangeLog, rsh/ChangeLog, rshd/ChangeLog,
syslogd/ChangeLog, talk/ChangeLog, talkd/ChangeLog,
telnet/ChangeLog, telnetd/ChangeLog, tftp/ChangeLog,
tftpd/ChangeLog, uucpd/ChangeLog, whois/ChangeLog: Merge with this
file and remove.
* configure.ac (AC_CHECK_HEADERS): Add dependecy headers
* doc/Makefile.am (inetutils_TEXINFOS): Add fdl.texi
* ftp/Makefile.am, ftpd/Makefile.am, gwhois/Makefile.am,
ifconfig/Makefile.am, inetd/Makefile.am, libinetutils/Makefile.am,
logger/Makefile.am, ping/Makefile.am, rcp/Makefile.am,
rexecd/Makefile.am, rlogin/Makefile.am, rlogind/Makefile.am,
rsh/Makefile.am, rshd/Makefile.am, syslogd/Makefile.am,
talk/Makefile.am, talkd/Makefile.am, telnet/Makefile.am,
telnetd/Makefile.am, tftp/Makefile.am, tftpd/Makefile.am,
uucpd/Makefile.am, whois/Makefile.am: Move pathdefs to
AM_CPPFLAGS. Load libgnu after libinetutils.
* lib/Makefile.am: Fresh import from the CVS gnulib
* lib/alloca.c, lib/alloca_.h, lib/allocsa.c, lib/allocsa.h,
lib/asnprintf.c, lib/dup-safer.c, lib/error.c, lib/error.h,
lib/exit.h, lib/exitfail.c, lib/fd-safer.c, lib/fopen-safer.c,
lib/free.c, lib/getcwd.c, lib/getopt.c, lib/getopt1.c,
lib/getpass.c, lib/gettext.h, lib/getusershell.c, lib/malloc.c,
lib/mbchar.c, lib/mbchar.h, lib/memchr.c, lib/memcmp.c,
lib/memcpy.c, lib/memmove.c, lib/obstack.c, lib/pipe-safer.c,
lib/printf-args.c, lib/printf-parse.c, lib/readutmp.c,
lib/readutmp.h, lib/realloc.c, lib/regcomp.c, lib/regex.c,
lib/regex.h, lib/regex_internal.c, lib/regex_internal.h,
lib/regexec.c, lib/setenv.c, lib/size_max.h, lib/snprintf.c,
lib/stdbool_.h, lib/stdint_.h, lib/stdio--.h, lib/stdio-safer.h,
lib/strcasecmp.c, lib/strdup.c, lib/strerror.c, lib/strncasecmp.c,
lib/strndup.c, lib/strnlen.c, lib/strnlen1.c, lib/strnlen1.h,
lib/sysexit_.h, lib/unsetenv.c, lib/vasnprintf.c, lib/vsnprintf.c,
lib/xalloc-die.c, lib/xgetcwd.c, lib/xmalloc.c, m4/codeset.m4,
m4/d-ino.m4, m4/exitfail.m4, m4/extensions.m4,
m4/getcwd-path-max.m4, m4/getcwd.m4, m4/getdelim.m4,
m4/getline.m4, m4/getopt.m4, m4/getpass.m4, m4/gettext.m4,
m4/getusershell.m4, m4/gnulib-cache.m4, m4/gnulib-comp.m4,
m4/intmax_t.m4, m4/inttypes-pri.m4, m4/inttypes_h.m4,
m4/lib-link.m4, m4/longdouble.m4, m4/longlong.m4, m4/mbchar.m4,
m4/mempcpy.m4, m4/nls.m4, m4/onceonly_2_57.m4, m4/po.m4,
m4/poll.m4, m4/readutmp.m4, m4/regex.m4, m4/setenv.m4,
m4/signed.m4, m4/size_max.m4, m4/stdbool.m4, m4/stdint.m4,
m4/stdint_h.m4, m4/stdio-safer.m4, m4/strdup.m4, m4/strndup.m4,
m4/strnlen.m4, m4/ulonglong.m4, m4/unistd-safer.m4,
m4/unlocked-io.m4, m4/xalloc.m4, m4/xgetcwd.m4: Update from gnulib
* lib/wcwidth.h, m4/absolute-header.m4, m4/getcwd-abort-bug.m4,
m4/getndelim2.m4, m4/inttypes-h.m4, m4/lock.m4, m4/ssize_t.m4,
m4/unistd_h.m4, m4/visibility.m4, m4/wcwidth.m4: New files from
gnulib
* ftp/extern.h, ftp/ftp.c, ftp/ftp_var.h, ftp/main.c,
ftp/ruserpass.c, ftpd/auth.c, ftpd/extern.h, ftpd/ftpcmd.y,
ftpd/ftpd.c, ftpd/pam.c, ftpd/server_mode.c, glob/fnmatch.h,
glob/glob.c, glob/glob.h, headers/tftpsubs.h, inetd/inetd.c,
libicmp/ping.h, libinetutils/argcv.h, libinetutils/des_rw.c,
libinetutils/kcmd.c, libinetutils/krcmd.c,
libinetutils/tftpsubs.c, libinetutils/ttymsg.c, libls/extern.h,
libls/fts.c, libls/fts.h, libls/ls.c, libls/print.c,
libtelnet/auth-proto.h, libtelnet/misc.c, logger/logger.c,
ping/ping.c, ping/ping6.c, ping/ping_common.c, rcp/extern.h,
rcp/rcp.c, rexecd/rexecd.c, rlogin/rlogin.c, rlogind/rlogind.c,
rsh/rsh.c, rshd/rshd.c, talk/talk.c, talkd/talkd.c,
telnet/commands.c, telnet/externs.h, telnetd/telnetd.c,
tftp/extern.h, tftp/main.c, tftp/tftp.c, tftpd/tftpd.c,
uucpd/uucpd.c: Remove __P wrappers, use program_name instead of
__progname, define it in main (required by error.c)
* ifconfig/changeif.c, ifconfig/flags.c, ifconfig/ifconfig.c,
ifconfig/options.c, ifconfig/options.h, ifconfig/printif.c,
ifconfig/system/hpux.c, ifconfig/system/linux.c,
ifconfig/system/osf.c, ifconfig/system/solaris.c: Include
sys/types.h before sys/socket.h and netinet/in.h before
arpa/inet.h Use program_name instead of __progname.
* libicmp/icmp_address.c, libicmp/icmp_echo.c,
libicmp/icmp_timestamp.c: Include sys/types.h before sys/socket.h
* syslogd/syslogd.c: Use read_utmp instead of manually fiddling
with utmp(x) subtleties. Remove __P wrappers, use program_name
instead of __progname.
* talkd/process.c: Likewise
2006-07-28 Sergey Poznyakoff <gray@gnu.org.ua>
Implement passing client/server data via environment variables,
based on the patch by Dirk Jagdmann <doj@cubic.org>
* inetd/inetd.c: New options: --environment, to enable passing
client/server data via environment variables, and --resolve, to
resolve IP addresses when doing so.
(prepenv): New function
(nextconfig): Allow numeric port values as service names.
* inetd/inetd.8: Document new options
2006-07-28 Sergey Poznyakoff <gray@gnu.org.ua>
* THANKS: Add Dirk Jagdmann
2006-07-25 Alfred M. Szmidt <ams@gnu.org>
* doc/inetutils.texi: Updated the license to the GNU Free
Documentation License.
(GNU Free Documentation License): New node.
* doc/fdl.texi: New file.
2006-05-12 Alfred M. Szmidt <ams@gnu.org>
* Makefile.am (SUBDIRS): Added `ifconfig'.
2006-04-20 Sergey Poznyakoff <gray@gnu.org.ua>
* telnet/Makefile.am (INCLUDES): Add -I$(top_srcdir)/libinetutils
* telnet/commands.c: Include libinetutils.h
* telnet/telnet.c: Likewise
2006-04-20 Sergey Poznyakoff <gray@gnu.org.ua>
* talkd/talkd.c: Include libinetutils.h
2006-04-20 Sergey Poznyakoff <gray@gnu.org.ua>
* talk/Makefile.am (INCLUDES): Add -I$(top_srcdir)/libinetutils
* talk/get_names.c: Include libinetutils.h
2006-04-20 Sergey Poznyakoff <gray@gnu.org.ua>
* syslogd/syslogd.c: Include libinetutils.h
2006-04-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
* syslogd/Makefile.am (INCLUDES): Add PATHDEF_KLOG.
2006-04-20 Sergey Poznyakoff <gray@gnu.org.ua>
* rshd/Makefile.am (INCLUDES): Add -I$(top_srcdir)/libinetutils
* rshd/rshd.c: Include libinetutils.h
2006-04-20 Sergey Poznyakoff <gray@gnu.org.ua>
* rlogind/Makefile.am (INCLUDES): Add -I$(top_srcdir)/libinetutils
* rlogind/rlogind.c: Include libinetutils.h
2006-04-20 Sergey Poznyakoff <gray@gnu.org.ua>
* logger/Makefile.am (LDADD): Add libgnu
2006-04-20 Sergey Poznyakoff <gray@gnu.org.ua>
* libinetutils/libinetutils.h: New file
* libinetutils/Makefile.am (noinst_HEADERS): Add libinetutils.h
2006-04-20 Sergey Poznyakoff <gray@gnu.org.ua>
* inetd/inetd.c (main): Use sigsuspend in favor of sigpause.
Change proposed by Guillem Jover <guillem@hadrons.org>
2006-04-20 Guillem Jover <guillem@hadrons.org>
* ifconfig/Makefile.am (LDADD): Link against gnulib.
2006-04-20 Sergey Poznyakoff <gray@gnu.org.ua>
* Makefile.am (INCLUDES): Add -I$(top_srcdir)/libinetutils
* ftpd/extern.h (logwtmp): Remove prototype
* ftpd/ftpd.c: Include libinetutils.h
2006-04-20 Sergey Poznyakoff <gray@gnu.org.ua>
* ftp/main.c [HAVE_READLINE_READLINE_H]: Include
<readline/readline.h>
* ftp/Makefile.am (INCLUDES): Add -I$(top_srcdir)/libinetutils
* ftp/ruserpass.c: Include libinetutils.h and xalloc.h
2006-04-20 Sergey Poznyakoff <gray@gnu.org.ua>
* THANKS: Add Guillem Jover
* configure.ac: Use build-aux as an auxiliary tools directory
(AC_CHECK_HEADERS): Add readline/readline.h
* config.rpath: Remove autogenerated file
2006-01-14 Sergey Poznyakoff <gray@gnu.org.ua>
* rcp/rcp.c (write_stat_time): Pass modification times first.
Patch by Tim Adye <T.J.Adye@rl.ac.uk>
2005-12-08 Alfred M. Szmidt <ams@gnu.org>
* README: Reformated. Mention that GNU Inetutils doesn't work on
Solaris.
2005-12-02 Alfred M. Szmidt <ams@gnu.org>
* libinetutils/localhost.c: Include <stdint.h>
2005-12-02 Alfred M. Szmidt <ams@gnu.org>
Imported GNUlib module: stdint.
* lib/Makefile.am, m4/gnulib-cache.m4, m4/gnulib-comp.m4: Updated.
* m4/stdint.m4, lib/stdint_.h: New files.
2005-12-02 Alfred M. Szmidt <ams@gnu.org>
Update from GNUlib.
* config.rpath, lib/getdelim.c, lib/getdelim.h, lib/mbchar.c,
lib/mbchar.h, lib/mbuiter.h, lib/memchr.c, lib/pipe-safer.c,
lib/stdio--.h, lib/strnlen.h, lib/strnlen1.c, lib/strnlen1.h,
lib/unistd--.h, m4/getdelim.m4, m4/gnulib-cache.m4,
m4/gnulib-comp.m4, m4/gnulib-tool.m4, m4/mbchar.m4, m4/mbiter.m4,
m4/mbrtowc.m4, m4/memchr.m4: New files.
* lib/Makefile.am, lib/dup-safer.c, lib/exitfail.c,
lib/fd-safer.c, lib/fopen-safer.c, lib/free.c, lib/getcwd.c,
lib/getcwd.h, lib/getline.c, lib/getline.h, lib/getopt1.c,
lib/getopt_.h, lib/getpass.c, lib/getusershell.c, lib/malloc.c,
lib/memcmp.c, lib/memcpy.c, lib/memmove.c, lib/obstack.c,
lib/obstack.h, lib/poll.c, lib/readutmp.c, lib/realloc.c,
lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c,
lib/regex_internal.h, lib/regexec.c, lib/strcase.h,
lib/strcasecmp.c, lib/strerror.c, lib/strncasecmp.c,
lib/strndup.c, lib/strnlen.c, lib/unistd-safer.h,
lib/xalloc-die.c, lib/xgetcwd.c, lib/xmalloc.c, m4/free.m4,
m4/getcwd.m4, m4/getline.m4, m4/getopt.m4, m4/getpass.m4,
m4/lib-link.m4, m4/lib-prefix.m4, m4/minmax.m4,
m4/onceonly_2_57.m4, m4/regex.m4, m4/stdbool.m4,
m4/stdio-safer.m4, m4/strcase.m4, m4/strndup.m4, m4/strnlen.m4,
m4/unistd-safer.m4, m4/xgetcwd.m4: Updated from gnulib.
* lib/getndelim2.c, lib/getndelim2.h, m4/argp.m4,
m4/getndelim2.m4, m4/gnulib.m4, m4/ssize_t.m4: Removed files.
2005-12-02 Alfred M. Szmidt <ams@gnu.org>
* configure.ac (gl_MODULES): Removed call to function.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* uucpd/uucpd.c: Remove leftover BSD-isms: err, errx, warn, warnx,
cast to (void) before function calls. Use GNU error() uniformly.
* uucpd/Makefile.am: Remove ansi2knr. Add copyleft header.
Update INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* tftpd/tftpd.c: Remove leftover BSD-isms: err, errx, warn, warnx,
cast to (void) before function calls. Use GNU error() uniformly.
* tftpd/Makefile.am: Remove ansi2knr. Add copyleft header.
Update INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* tftp/main.c: Remove leftover BSD-isms: err, errx, warn, warnx,
cast to (void) before function calls. Use GNU error() uniformly.
* tftp/Makefile.am: Remove ansi2knr. Add copyleft header. Update
INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* telnetd/Makefile.am: Remove ansi2knr. Add copyleft header.
Update INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* telnet/commands.c: Remove leftover BSD-isms: err, errx, warn,
warnx, cast to (void) before function calls. Use GNU error()
uniformly.
* telnet/sys_bsd.c: Likewise
* telnet/telnet.c: Likewise
* telnet/tn3270.c: Likewise
* telnet/Makefile.am: Move defines to AM_CPPFLAGS. Add INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* talkd/table.c: Remove leftover BSD-isms: err, errx, warn, warnx,
cast to (void) before function calls. Use GNU error() uniformly.
* talkd/talkd.c: Likewise
* talkd/Makefile.am: Remove ansi2knr. Add copyleft header.
Update INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* talk/init_disp.c: Remove leftover BSD-isms: err, errx, warn,
warnx, cast to (void) before function calls. Use GNU error()
uniformly. Signal handlers return RETSIGTYPE.
* talk/Makefile.am: Remove ansi2knr. Add copyleft header. Update
INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* syslogd/syslogd.c: Remove leftover BSD-isms: err, errx, warn,
warnx, cast to (void) before function calls. Use GNU error()
uniformly. Signal handlers return RETSIGTYPE.
* syslogd/Makefile.am: Remove ansi2knr. Add copyleft header.
Update INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* rshd/rshd.c: Remove leftover BSD-isms: err, errx, warn, warnx,
cast to (void) before function calls. Use GNU error() uniformly.
Signal handlers return RETSIGTYPE. Add Shishi support. Patch by
Simon Josefsson
* rshd/Makefile.am: Remove ansi2knr. Add copyleft header. Update
INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* rsh/rsh.c: Remove leftover BSD-isms: err, errx, warn, warnx,
cast to (void) before function calls. Use GNU error() uniformly.
Signal handlers return RETSIGTYPE. Add Shishi support. Patch by
Simon Josefsson
* rsh/Makefile.am: Remove ansi2knr. Add copyleft header. Update
INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* rlogind/rlogind.c: Signal handlers return RETSIGTYPE. Add
Shishi support based on patch by Simon Josefsson
* rlogind/Makefile.am: Remove ansi2knr. Add copyleft header.
Update INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* rlogin/rlogin.c: Remove leftover BSD-isms: err, errx, warn,
warnx, cast to (void) before function calls. Use GNU error()
uniformly. Signal handlers return RETSIGTYPE. Add Shishi support
based on patch by Simon Josefsson
* rlogin/Makefile.am: Remove ansi2knr. Add copyleft header.
Update INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* rexecd/Makefile.am: Remove ansi2knr. Add copyleft header.
Update INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* rcp/rcp.c: Remove leftover BSD-isms: err, errx, warn, warnx,
cast to (void) before function calls. Use GNU error() uniformly
* rcp/util.c: Likewise.
* rcp/Makefile.am: Remove ansi2knr. Add copyleft header. Update
INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* ping/Makefile.am: Remove ansi2knr. Add copyleft header. Update
INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* logger/logger.c: Remove leftover BSD-isms: err, errx, warn,
warnx, cast to (void) before function calls. Use GNU error()
uniformly
* logger/Makefile.am: Remove ansi2knr. Add copyleft header.
Update INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* libtelnet/auth.c: Signal handlers return RETSIGTYPE Add Shishi
support. Patch by Simon Josefsson.
* libtelnet/auth-proto.h: Add Shishi support. Patch by Simon
Josefsson.
* libtelnet/auth.h: Likewise.
* libtelnet/enc_des.c: Likewise.
* libtelnet/encrypt.c: Likewise.
* libtelnet/encrypt.h: Define SK_OTHER
* libtelnet/shishi.c: New file
* libtelnet/Makefile.am (libtelnet_a_SOURCES): Add shishi.c
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* libls/Makefile.am: Remove ansi2knr. Add copyleft header.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* libinetutils/daemon.c: Signal handlers return RETSIGTYPE
* libinetutils/kcmd.c: Do not include <kerberosIV/kparse.h> Add
Shishi support based on patch by Simon Josefsson
* libinetutils/krcmd.c: Add Shishi support. Patch by Simon
Josefsson.
* libinetutils/ttymsg.c: Remove leftover BSD-isms: err, errx,
warn, warnx, cast to (void) before function calls. Use GNU
error() uniformly
* libinetutils/shishi.c: New file
* libinetutils/Makefile.am (libinetutils_a_SOURCES): Add shishi.c
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* inetd/inetd.c: Remove leftover BSD-isms: err, errx, warn, warnx,
cast to (void) before function calls. Use GNU error() uniformly.
* inetd/Makefile.am: Remove ansi2knr. Add copyleft header.
Update INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* ifconfig/Makefile.am: Remove ansi2knr. Add copyleft header.
Update INCLUDES.
* ifconfig/system/Makefile.am: Remove ansi2knr. Add copyleft
header. Update INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* headers/shishi_def.h: New file.
* headers/Makefile.am (noinst_HEADERS): Add shishi_def.h
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* gwhois/whois.c (main): Change --version output.
* gwhois/whois.h: Signal handlers return RETSIGTYPE
* gwhois/Makefile.am: Remove ansi2knr. Add copyleft header.
Update INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* glob/Makefile.am: Remove ansi2knr. Add copyleft header. Update
INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* ftpd/conf.c: Remove leftover BSD-isms: err, errx, warn, warnx,
cast to (void) before function calls. Use GNU error() uniformly
* ftpd/ftpd.c: Likewise
* ftpd/server_mode.c: Likewise
* ftpd/Makefile.am: Remove ansi2knr. Add copyleft header. Update
INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* ftp/cmds.c: Remove leftover BSD-isms: err, errx, warn, warnx,
cast to (void) before function calls. Use GNU error() uniformly
* ftp/ftp.c: Likewise.
* ftp/main.c: Likewise.
* ftp/ruserpass.c: Likewise.
* ftp/domacro.c: Likewise. Use do while loop instead of goto.
* ftp/Makefile.am: Remove ansi2knr. Add copyleft header. Update
INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* doc/Makefile.am: Remove ansi2knr. Add copyleft header. Update
INCLUDES.
2005-10-11 Sergey Poznyakoff <gray@gnu.org.ua>
* acinclude.m4: Properly quote arguments to AC_ARG_ENABLE and
AC_ARG_WITH. Use AC_HELP_STRING where appropriate.
* configure.ac: Likewise. Add --with-shishi options. Patch by
Simon Josefsson
* THANKS: Add Simon Joseffson
* lib/getpass.c: Remove leftover BSD-isms: err, errx, warn, warnx,
cast to (void) before function calls. Use GNU error() uniformly
* Makefile.am: Remove ansi2knr. Add copyleft header. Update
INCLUDES.
2005-09-22 Sergey Poznyakoff <gray@gnu.org.ua>
* whois/main.c: Changed FSF postal mail address.
2005-09-22 Alfred M. Szmidt <ams@gnu.org>
* uucpd/uucpd.c: #include <getopt.h>
(usage): New function.
(long_options, short_options, usage_str): New variables.
(main): Added new options `--help' and `--version'.
2005-09-22 Alfred M. Szmidt <ams@gnu.org>
* tftpd/tftpd.c: (usage): New function.
(long_options, short_options, usage_str): New variables.
(main): Added new options `--help' and `--version'.
2005-09-22 Alfred M. Szmidt <ams@gnu.org>
* talk/talk.c: #include <getopt.h>
(usage): New function.
(long_options, short_options, usage_str): New variables.
(main): Added new options `--help' and `--version'.
2005-09-22 Alfred M. Szmidt <ams@gnu.org>
* rexecd/rexecd.c: #include <getopt.h>
(usage): New function.
(long_options, short_options, usage_str): New variables.
(main): Added new options `--help' and `--version'.
2005-09-22 Sergey Poznyakoff <gray@gnu.org.ua>
* inetd/inetd.c: Updated FSF postal mail address.
2005-09-22 Sergey Poznyakoff <gray@gnu.org.ua>
* ifconfig/changeif.c, ifconfig/flags.c, ifconfig/flags.h,
ifconfig/if_index.c, ifconfig/if_index.h, ifconfig/ifconfig.c,
ifconfig/ifconfig.h, ifconfig/options.c, ifconfig/options.h,
ifconfig/printif.c, ifconfig/printif.h, ifconfig/system.h,
ifconfig/system/generic.c, ifconfig/system/generic.h,
ifconfig/system/hpux.c, ifconfig/system/hpux.h,
ifconfig/system/linux.c, ifconfig/system/linux.h,
ifconfig/system/osf.c, ifconfig/system/osf.h,
ifconfig/system/qnx.c, ifconfig/system/qnx.h,
ifconfig/system/solaris.c, ifconfig/system/solaris.h: Updated FSF
postal mail address.
2005-09-22 Alfred M. Szmidt <ams@gnu.org>
* gwhois/whois.c (main): Output version information to stdout.
(usage): Output usage information to stdout.
2005-09-22 Alfred M. Szmidt <ams@gnu.org>
* autogen.sh: Don't pass `-s' to autoreconf.
2005-09-08 Sergey Poznyakoff <gray@gnu.org.ua>
* ftp/main.c (getcmd, help): Moved to cmdtab.c
* ftp/cmdtab.c (getcmd, help): Moved from main.c
* ftp/extern.h (cmdtab): Remove declaration
2005-08-27 Alfred M. Szmidt <ams@gnu.org>
* ftp/ftp_var.h: #include "extern.h" at the end.
2005-07-31 Sergey Poznyakoff <gray@gnu.org.ua>
* telnetd/pty.c, telnetd/telnetd.c, telnetd/telnetd.h,
telnetd/term.c, telnetd/utility.c: Updated FSF postal mail
address.
2005-07-31 Sergey Poznyakoff <gray@gnu.org.ua>
* talkd/acl.c, talkd/announce.c, talkd/intalkd.h, talkd/print.c,
talkd/process.c, talkd/table.c, talkd/talkd.c: Updated FSF postal
mail address.
2005-07-31 Sergey Poznyakoff <gray@gnu.org.ua>
* rlogind/rlogind.c: Updated FSF postal mail address.
2005-07-31 Sergey Poznyakoff <gray@gnu.org.ua>
* ping/ping.c, ping/ping6.c, ping/ping6.h, ping/ping_address.c,
ping/ping_common.c, ping/ping_common.h, ping/ping_echo.c,
ping/ping_router.c, ping/ping_timestamp.c: Updated FSF postal mail
address.
2005-07-31 Sergey Poznyakoff <gray@gnu.org.ua>
* libtelnet/kerberos5.c: Updated FSF postal mail address.
2005-07-31 Sergey Poznyakoff <gray@gnu.org.ua>
* libinetutils/xalloc_die.c: Updated FSF postal mail address.
2005-07-31 Sergey Poznyakoff <gray@gnu.org.ua>
* libicmp/icmp.h, libicmp/icmp_address.c, libicmp/icmp_cksum.c,
libicmp/icmp_echo.c, libicmp/icmp_timestamp.c, libicmp/libping.c,
libicmp/ping.h: Updated FSF postal mail address.
* libicmp/Makefile.am: Remove ansi2knr. Add copyleft header.
Update INCLUDES.
2005-07-31 Sergey Poznyakoff <gray@gnu.org.ua>
* ftpd/logwtmp.c: Updated FSF postal mail address.
2005-07-31 Sergey Poznyakoff <gray@gnu.org.ua>
* COPYING: Updated FSF postal mail address.
* lib/Makefile.am: Removed unused argp
* lib/getcwd.c, lib/getcwd.h, lib/regex.c, lib/regex.h
m4/getcwd-path-max.m4, m4/getcwd.m4, m4/getopt.m4, m4/gnulib.m4
m4/poll.m4, m4/regex.m4, m4/size_max.m4: Updated from gnulib
* lib/dup-safer.c, lib/fd-safer.c, lib/fopen-safer.c,
lib/regcomp.c, lib/regex_internal.c, lib/regex_internal.h,
lib/regexec.c, lib/size_max.h, lib/stdio-safer.h,
lib/unistd-safer.h, m4/glibc2.m4, m4/minmax.m4, m4/stdio-safer.m4,
m4/unistd-safer.m4: Likewise
* lib/argp-ba.c, lib/argp-eexst.c, lib/argp-fmtstream.c,
lib/argp-fmtstream.h, lib/argp-fs-xinl.c, lib/argp-help.c,
lib/argp-namefrob.h, lib/argp-parse.c, lib/argp-pv.c,
lib/argp-pvh.c, lib/argp-xinl.c, lib/argp.h: Removed unused files.
2005-07-30 Sergey Poznyakoff <gray@gnu.org.ua>
* ping/ping.c (main, ping_run): Handle ping intervals with
millisecond precision.
2005-07-30 Sergey Poznyakoff <gray@gnu.org.ua>
* libicmp/libping.c (ping_init): Use PING_DEFAULT_INTERVAL
* libicmp/ping.h (PING_INTERVAL): Renamed to to
PING_DEFAULT_INTERVAL
(PING_PRECISION, PING_SET_INTERVAL): New defines
2005-07-29 Alfred M. Szmidt <ams@gnu.org>
* ping/ping_common.h (ping_cvt_number): Prototype restored (but
with updated types).
* ping/ping_common.c (ping_cvt_number): Changed return type to
size_t, changed type of argument maxval to size_t.
* ping/ping.c (ping_cvt_number): Removed (once again).
2005-07-29 Sergey Poznyakoff <gray@gnu.org.ua>
* ping/ping.c (main): Changed types of count and interval
(ping_cvt_number): Restored function. atoi should not be used to
convert to size_t. According to POSIX "The atoi() function is
subsumed by strtol() but is retained because it is used
extensively in existing code. If the number is not known to be in
range, strtol() should be used because atoi() is not required to
perform any error checking.
* ping/ping_common.h (ping_cvt_number): Remove prototype
2005-07-29 Sergey Poznyakoff <gray@gnu.org.ua>
* libicmp/libicmp/libping.c (ping_set_count, ping_set_interval)
(ping_set_packetsize): Second argument is size_t
* libicmp/libicmp/ping.h: Likewise
2005-07-29 Sergey Poznyakoff <gray@gnu.org.ua>
* ftp/extern.h: Reverted changes made 2005-05-01. Initializing a
scalar type (struct cmd *cmdtab) with a vector is an error, which
leads to coredump when trying to access cmdtab.
* ftp/cmdtab.c: Likewise
2005-07-29 Sergey Poznyakoff <gray@gnu.org.ua>
* configure.ac: Remove AC_AIX, AC_MINIX, these are called by
gl_USE_SYSTEM_EXTENSIONS, invoked by gl_EARLY
* lib/Makefile.am: Updated
* lib/alloca_.h, lib/allocsa.c, lib/allocsa.h, lib/argp-ba.c,
lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
lib/argp.h, lib/asnprintf.c, lib/error.c, lib/error.h, lib/exit.h,
lib/exitfail.c, lib/exitfail.h, lib/getcwd.c, lib/getcwd.h,
lib/getline.c, lib/getline.h, lib/getndelim2.c, lib/getndelim2.h,
lib/getopt.c, lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h,
lib/getpass.c, lib/getpass.h, lib/gettext.h, lib/getusershell.c,
lib/malloc.c, lib/memcmp.c, lib/memcpy.c, lib/mempcpy.c,
lib/mempcpy.h, lib/memset.c, lib/minmax.h, lib/obstack.c,
lib/obstack.h, lib/poll.c, lib/poll_.h, lib/printf-args.c,
lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
lib/readutmp.c, lib/readutmp.h, lib/realloc.c, lib/regex.c,
lib/regex.h, lib/setenv.c, lib/setenv.h, lib/snprintf.c,
lib/snprintf.h, lib/stdbool_.h, lib/strcase.h, lib/strcasecmp.c,
lib/strchrnul.c, lib/strchrnul.h, lib/strdup.c, lib/strdup.h,
lib/strerror.c, lib/strndup.clib/strndup.h, lib/strnlen.c,
lib/sysexit_.h, lib/unlocked-io.h, lib/unsetenv.c,
lib/vasnprintf.c, lib/vasnprintf.h, lib/vsnprintf.c,
lib/vsnprintf.h, lib/xalloc.h, lib/xgetcwd.c, lib/xgetcwd.h,
lib/xmalloc.c, lib/xsize.h: Updated from the recent gnulib
* m4/alloca.m4, m4/argp.m4, m4/d-ino.m4, m4/error.m4,
m4/exitfail.m4, m4/extensions.m4, m4/getcwd-path-max.m4,
m4/getcwd.m4, m4/getline.m4, m4/getndelim2.m4, m4/getopt.m4,
m4/getpass.m4, m4/gettext.m4, m4/getusershell.m4, m4/gnulib.m4,
m4/intdiv0.m4, m4/intmax.m4, m4/inttypes-pri.m4, m4/inttypes.m4,
m4/isc-posix.m4, m4/lcmessage.m4, m4/lib-link.m4,
m4/lib-prefix.m4, m4/memcmp.m4, m4/memcpy.m4, m4/memmove.m4,
m4/memset.m4, m4/nls.m4, m4/obstack.m4, m4/po.m4, m4/poll.m4,
m4/printf-posix.m4, m4/progtest.m4, m4/readutmp.m4, m4/regex.m4,
m4/restrict.m4, m4/snprintf.m4, m4/strchrnul.m4, m4/strdup.m4,
m4/strerror.m4, m4/strerror_r.m4, m4/strndup.m4, m4/strnlen.m4,
m4/sysexits.m4, m4/unlocked-io.m4, m4/vsnprintf.m4, m4/xalloc.m4,
m4/xgetcwd.m4: Updated from the recent gnulib
2005-06-19 Jeroen Dekkers <jeroen@dekkers.cx>
* telnetd/telnetd.c (telnetd_setup): Add support for IPv6.
2005-06-19 Jeroen Dekkers <jeroen@dekkers.cx>
* telnet/commands.c: Include <arpa/telnet.h>. Remove variable tos
and _hostname.
(tn): Rewritten. Removed support for source routing and added
support for IPv6.
(sourceroute): Function removed.
* telnet/main.c (help): Add "-4" and "-6", remove "-S".
(long_options): Add "ipv4" and "ipv6", remove "tos".
(main): New variable family. Implement "-4" and "-6" options and
remove "-S" option.
2005-06-19 Jeroen Dekkers <jeroen@dekkers.cx>
* ping/Makefile.am: Add ping6.
(ping_SOURCES): Add ping_common.c and ping_common.h.
* ping/ping6.c: New file.
* ping/ping6.h: Likewise.
* ping/ping_common.c: Likewise.
* ping/ping_common.h: Likewise.
* ping/ping.c: Include "ping_common.h". Remove __P macro in
prototypes.
(ping_cvt_number, init_data_buffer, decode_pattern, show_license):
Move to ...
* ping/ping_common.c: ... here.
* ping/ping_echo.c: Include "ping_common.h".
(tvsub, nabs, nsqrt): Move to ...
* ping/ping_common.c: ... here.
2005-06-19 Jeroen Dekkers <jeroen@dekkers.cx>
* inetd/inetd.c: Move global variable sp to...
(nextconfig): Here. Only use the getservbyname code when
[!IPV6]. Remove unused variable i.
(struct servtab): Change type of to pid_t. Add se_family.
[IPV6] Add se_v4mapped. Change se_ctrladdr to struct
sockaddr_storage.
(setup): Add support for IPv6.
(INETD_FIELDS_MIN): Define to 6.
(getconfigent): Add support for IPv6. Remove unused variable arg.
(set_proc_title): Add support for IPv6.
(echo_dg): Likewise.
(chargen_dg): Likewise.
(machtime_dg): Likewise.
(daytime_dg): Likewise.
2005-06-19 Jeroen Dekkers <jeroen@dekkers.cx>
* doc/inetd.texi (inetd): Document IPv6 configuration options.
2005-06-19 Jeroen Dekkers <jeroen@dekkers.cx>
* acinclude.m4 (IU_ENABLE_FOO): Use AS_HELP_STRING.
* configure.ac: Add checks for IPv6.
2005-05-01 Alfred M. Szmidt <ams@gnu.org>
* ftp/cmdtab.c (cmdtab): Changed type to pointer.
* ftp/extern.h (cmdtab): Updated extern declaration.
2005-01-31 Alfred M. Szmidt <ams@gnu.org>
* Makefile.am (AUTOMAKE_OPTIONS): Require automake 1.9.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* tftpd/tftpd.c (TIMEOUT) [!HAVE_DECL_STRERROR]: Removed extern
declaration for strerror.
* tftpd/Makefile.am (LDADD): Added `-L../lib -lgnu'.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* tftp/tftp.c: [!HAVE_DECL_ERRNO]: Removed extern declaration for
errno.
[!HAVE_DECL_STRERROR]: Removed extern declaration for strerror.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* telnetd/utility.c (terminaltypeok): Just do tgetent if
HAVE_LIBREADLINE is defined.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* telnet/telnet.c (init_term): New variable err. Only do tgetent
if we HAVE_LIBREADLINE is defined.
(termbuf) [!TERMCAP]: Removede termbuf and ttytype.
* telnet/Makefile.am (LDADD): Added `-L../lib -lgnu'.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* talkd/Makefile.am (LDADD): Added `-L../lib -lgnu'.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* syslogd/Makefile.am (LDADD): Added `-L../lib -lgnu'.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* rshd/Makefile.am (LDADD): Added `-L../lib -lgnu'.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* rsh/Makefile.am (LDADD): Added `-L../lib -lgnu'.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* rlogind/Makefile.am (LDADD): Added `-L../lib -lgnu'.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* rlogin/Makefile.am (LDADD): Added `-L../lib -lgnu'.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* rexecd/Makefile.am (LDADD): Added `-L../lib -lgnu'.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* rcp/rcp.c [!HAVE_DECL_STRERROR]: Removed extern declaration for
strerror.
* rcp/Makefile.am (LDADD): Added `-L../lib -lgnu'.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* libinetutils/Makefile.am (noinst_HEADERS, EXTRA_DIST): New
variables.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* inetd/Makefile.am (LDADD): Added `-L../lib -lgnu'.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* headers/Makefile.am (noinst_HEADERS): New variable.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* gwhois/Makefile.am (LDADD): Added `-L../lib -lgnu'.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* ftpd/ftpd.c (retrieve): Don't use ST_BLKSIZE.
* ftpd/extern.h: Include <sys/types.h>
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* ftp/ftp.c (recvrequest): Removed unused variable `st'. Don't
use ST_BLKSIZE when setting blksiz, just set blksiz to BUFSIZ
unconditionally.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* configure.ac: Bump version to 1.4.3.
2005-01-22 Alfred M. Szmidt <ams@gnu.org>
* lib/.cvsignore: New file.
* configure.ac: Don't check for __P. Removed almost all
references to AH_BOTTOM, the only one that is left is so that we
don't have to include <confpaths.h> everywhere.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* uucpd/uucpd.c (doit): Use `crypt' instead of `CRYPT'.
* uucpd/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* tftpd/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'. Added `-I$(top_srcdir)/headers'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* tftp/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'. Added `-I$(top_srcdir)/headers' and
`-I$(top_srcdir)/lib'.
(LDADD): Added `-L../lib -lgnu'.
* tftp/main.c: Use "xalloc.h" instead of <xalloc.h> when including
it.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* telnetd/telnetd.h: Include "xalloc.h"
* telnetd/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include', and `-I$(top_srcdir)'.
(LDADD): Added `-L../lib -lgnu'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* telnet/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* talkd/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* talk/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* syslogd/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* rshd/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* rsh/Makefile.am (INCLUDES): Removed `-I$(top_builddir)/include'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* rlogind/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* rlogin/Makefile.am (INCLUDES): Variable removed.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* rexecd/rexecd.c (endpwent): Use `crypt' instead of `CRYPT'.
* rexecd/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* rcp/Makefile.am (INCLUDES): Removed `-I$(top_builddir)/include'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* ping/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'.
(LDADD): Added `-L../lib -lgnu'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* logger/Makefile.am (INCLUDES): Variable removed.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* libtelnet/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* libls/Makefile.am (INCLUDES): Variable removed.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* libinetutils/__progname.c, libinetutils/err.c,
libinetutils/forkpty.c, libinetutils/getopt.c,
libinetutils/getopt.h, libinetutils/getopt1.c,
libinetutils/getpass.c, libinetutils/gettext.h,
libinetutils/getusershell.c, libinetutils/herror.c,
libinetutils/hstrerror.c, libinetutils/iruserok.c,
libinetutils/login.c, libinetutils/login_tty.c,
libinetutils/logout.c, libinetutils/malloc.c,
libinetutils/memcmp.c, libinetutils/memcpy.c,
libinetutils/memmove.c, libinetutils/memset.c,
libinetutils/obstack.c, libinetutils/obstack.h,
libinetutils/openpty.c, libinetutils/opieclient.c,
libinetutils/pathmax.h, libinetutils/poll.c,
libinetutils/readstream.c, libinetutils/realloc.c,
libinetutils/regex.c, libinetutils/regex.h, libinetutils/revoke.c,
libinetutils/ruserok.c, libinetutils/setenv.c,
libinetutils/setenv.h, libinetutils/snprintf.c,
libinetutils/snprintf.h, libinetutils/strcasecmp.c,
libinetutils/strdup.c, libinetutils/strerror.c,
libinetutils/strsignal.c, libinetutils/stub_tgetent.c,
libinetutils/syslog.c, libinetutils/waitpid.c,
libinetutils/xalloc.h, libinetutils/xgetcwd.c,
libinetutils/getcwd.h, libinetutils/xmalloc.c,
libinetutils/xstrdup.c: Files removed.
* libinetutils/localhost.c (localhost): Removed extern declaration
of `xrealloc'. Use `realloc' instead of `xrealloc'.
* libinetutils/xalloc_die.c: New file.
* libinetutils/Makefile.am (libinetutils_a_SOURCES): Added
`xalloc_die.c'.
* libinetutils/Makefile.am (libinetutils_a_SOURCES): Removed
xmalloc.c, xstrdup.c, and xgetcwd.c.
(libinetutils_a_LIBADD): Removed `@LIBOBJS@'. Added
`$(top_builddir)/lib/libgnu.a'.
(noinst_HEADERS, EXTRA_DIST): Variable removed.
(INCLUDES): Removed `-I$(top_builddir)/include'. Added
`-I$(top_srcdir)/headers', and `-I$(top_srcdir)/lib'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* libicmp/Makefile.am (INCLUDES): Variable removed.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* inetd/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* headers/Makefile.am (dist-hook): Target removed.
(header_dirs): Variable removed.
(EXTRA_DIST): Variable removed.
* headers/confpaths.h.in, headers/crypt.h, headers/err.h,
headers/getopt.h, headers/obstack.h, headers/osockaddr.h,
headers/paths.h, headers/poll.h, headers/syslog-int.h,
headers/arpa/DISTFILES, headers/arpa/ftp.h, headers/arpa/telnet.h,
headers/arpa/tftp.h, headers/protocols/DISTFILES,
headers/protocols/talkd.h: Files removed.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* gwhois/Makefile.am (INCLUDES): Variable removed.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* glob/Makefile.am (INCLUDES): Variable removed.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* ftpd/auth.c (auth_pass): Use `crypt' instead of `CRYPT'.
* ftpd/Makefile.am (INCLUDES): Removed
`-I$(top_builddir)/include'.
(LDADD): Added `-L../lib -lgnu'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* ftp/Makefile.am (INCLUDES): Removed `-I$(top_builddir)/include'.
(LDADD): Added `-L../lib -lgnu'.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
Imported files from gnulib.
* lib/Makefile.am, lib/alloca.c, lib/alloca_.h, lib/allocsa.c,
lib/allocsa.h, lib/allocsa.valgrind, lib/argp-ba.c,
lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
lib/argp.h, lib/asnprintf.c, lib/error.c, lib/error.h, lib/exit.h,
lib/exitfail.c, lib/exitfail.h, lib/getcwd.c, lib/getcwd.h,
lib/getline.c, lib/getline.h, lib/getndelim2.c, lib/getndelim2.h,
lib/getopt.c, lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h,
lib/getpass.c, lib/getpass.h, lib/gettext.h, lib/getusershell.c,
lib/malloc.c, lib/memcmp.c, lib/memcpy.c, lib/memmove.c,
lib/mempcpy.c, lib/mempcpy.h, lib/memset.c, lib/minmax.h,
lib/obstack.c, lib/obstack.h, lib/poll.c, lib/poll_.h,
lib/printf-args.c, lib/printf-args.h, lib/printf-parse.c,
lib/printf-parse.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
lib/regex.c, lib/regex.h, lib/setenv.c, lib/setenv.h,
lib/snprintf.c, lib/snprintf.h, lib/stdbool_.h, lib/strcase.h,
lib/strcasecmp.c, lib/strchrnul.c, lib/strchrnul.h, lib/strdup.c,
lib/strdup.h, lib/strerror.c, lib/strncasecmp.c, lib/strndup.c,
lib/strndup.h, lib/strnlen.c, lib/sysexit_.h, lib/unlocked-io.h,
lib/unsetenv.c, lib/vasnprintf.c, lib/vasnprintf.h,
lib/vsnprintf.c, lib/vsnprintf.h, lib/xalloc.h, lib/xgetcwd.c,
lib/xgetcwd.h, lib/xmalloc.c, lib/xsize.h, m4/alloca.m4,
m4/allocsa.m4, m4/argp.m4, m4/codeset.m4, m4/d-ino.m4,
m4/eealloc.m4, m4/eoverflow.m4, m4/error.m4, m4/exitfail.m4,
m4/extensions.m4, m4/getcwd-path-max.m4, m4/getcwd.m4,
m4/getline.m4, m4/getndelim2.m4, m4/getopt.m4, m4/getpass.m4,
m4/gettext.m4, m4/getusershell.m4, m4/glibc21.m4, m4/gnulib.m4,
m4/iconv.m4, m4/intdiv0.m4, m4/intmax.m4, m4/intmax_t.m4,
m4/inttypes-pri.m4, m4/inttypes.m4, m4/inttypes_h.m4,
m4/isc-posix.m4, m4/lcmessage.m4, m4/lib-ld.m4, m4/lib-link.m4,
m4/lib-prefix.m4, m4/longdouble.m4, m4/longlong.m4, m4/memcmp.m4,
m4/memcpy.m4, m4/memmove.m4, m4/mempcpy.m4, m4/memset.m4,
m4/nls.m4, m4/obstack.m4, m4/onceonly_2_57.m4, m4/po.m4,
m4/poll.m4, m4/printf-posix.m4, m4/progtest.m4, m4/readutmp.m4,
m4/regex.m4, m4/restrict.m4, m4/setenv.m4, m4/signed.m4,
m4/size_max.m4, m4/snprintf.m4, m4/ssize_t.m4, m4/stdbool.m4,
m4/stdint_h.m4, m4/strcase.m4, m4/strchrnul.m4, m4/strdup.m4,
m4/strerror.m4, m4/strerror_r.m4, m4/strndup.m4, m4/strnlen.m4,
m4/sysexits.m4, m4/uintmax_t.m4, m4/ulonglong.m4,
m4/unlocked-io.m4, m4/vasnprintf.m4, m4/vsnprintf.m4,
m4/wchar_t.m4, m4/wint_t.m4, m4/xalloc.m4, m4/xgetcwd.m4,
m4/xsize.m4: New files.
2005-01-21 Alfred M. Szmidt <ams@gnu.org>
* confpaths.h.in: New file.
* Makefile.am (ACLOCAL_AMFLAGS): New variable.
(SUBDIRS): Added lib.
* configure.ac: Moved AC_PROG_CC check up a bit eariler and added
gl_EARLY directly after it. Call gl_MODULES and gl_INIT after
inital program checks. Removed all usage of AC_LIBOBJ. Don't
check for herror, strcasecmp, strsignal, waitpid, and revoke.
Removed all references to LINK_POLL_H and LINK_SYSLOG_INIT_H.
Removed checks for verrx, __progname, login, logout, logwtmp,
openpty, forkpty, ruserok, iruserok, and login_tty. Removed check
for libutil.
* configure.ac: Use <confpaths.h> instead of
<include/confpaths.h>.
(AC_CONFIG_FILES): Added lib/Makefile. Changed
`include/confpaths.h:headers/confpaths.h.in' to
`confpaths.h:confpaths.h.in'.
* acinclude.m4 (IU_CONFIG_LINKS): Function removed.
* configure.ac: Removed all references to IU_CONFIG_LINKS.
2005-01-20 Alfred M. Szmidt <ams@gnu.org>
* ping/ping.c: Comply with GCS.
(init_data_buffer): Use xmalloc().
(show_usage): Print the "report bugs" string as all other GNU
programs do.
2005-01-20 Alfred M. Szmidt <ams@gnu.org>
* ping/ping.c: Include <stdbool.h>
(ping_cvt_number): Function removed.
(main): Store the values for -c, -i and -t in variables, and don't
use `ping_cvt_number' to check if the arguments to an option are
valid, do it manually. Set them accordingly after ping_init() is
done.
* ping/ping.c (main): Changed type of `is_root' to `bool'. Update
all usage accordingly.
* ping/ping.c (main): Moved ping startup code to after the parsing
of the command line. (and no, this should not be done before any
command line parsing!)
2005-01-20 Alfred M. Szmidt <ams@gnu.org>
* libicmp/libping.c: Comply with GCS.
(_ping_packetsize): Rewritten.
2005-01-13 Alfred M. Szmidt <ams@gnu.org>
* ftp/cmds.c (setpeer): Changed type of PORT to `int'. Check that
the port number isn't strictly greater than 65535.
2004-12-28 Simon Josefsson <jas@extundo.com>
* inetd/Makefile.am (INCLUDES): Fix typo.
2004-12-28 Alfred M. Szmidt <ams@gnu.org>
* ftpd/ftpd.c (off_to_str): Don't write out of bounds. From
<uchiyama@s-lab.com>.
2004-12-28 Alfred M. Szmidt <ams@gnu.org>
* NEWS: Added news entries for 1.4.3. Based on suggestions from
Jeff Bailey and Simon Josefsson.
2004-09-29 Alfred M. Szmidt <ams@kemisten.nu>
* tftp/Makefile.am (LDADD): Use `$(top_srcdir)' instead of
relative path.
(INCLUDES): Search for headers in `$(top_srcdir)/libinetutils'
instead of `$(top_builddir)/libinetutils'.
2004-09-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* tftp/Makefile.am (INCLUDES): Add libinetutils
* tftp/main.c: Fixed possible memory overruns.
(setpeer): Fixed coredump on hitting return after '(to)' prompt.
Fixed indentation.
* tftp/tftp.c: Fixed indentation.
2004-08-13 Jeff Bailey <jbailey@raspberryginger.com>
* syslogd/syslogd.c: Fix disable forwarding option.
Patch by Anthony Awtrey.
2004-07-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* rshd/rshd.c (doit): Use cached copy of hp->h_name, since it may
be overwritten by local_domain(). Fix proposed by Andrew Klossner
<andrew@cesa.opbu.xerox.com> and Martin J. Evans
<martin@easysoft.com>.
2004-07-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* rexecd/rexecd.c (doit): Added support for shadow suite.
Proposed by Andrew Klossner <andrew@cesa.opbu.xerox.com>
2004-07-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* rcp/Makefile.am: Conditional install-exec-hook
2004-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* rsh/rsh.c (short_options): Prefix with '+' to disable reordering
by getopt_long. Proposed by Todd R. Eigenschink
<todd@tekinteractive.com>
* rsh/Makefile.am: Conditional install-exec-hook
2004-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* rlogin/rlogin.c: Handle ^S/^Q without using -8:
(ixon_state): New variable
(mode): Save and restore ixon state. Patch by Todd R.
Eigenschink <todd@tekinteractive.com>
* rlogin/Makefile.am: Conditional install-exec-hook
2004-03-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* ping/ping.c (ping_cvt_number): Take an additional parameter
indicating whether zero value is allowed.
* ping/Makefile.am: Conditional install-exec-hook
2003-11-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* ping/ping.c (ping_cvt_number): New function.
(main): Check numeric options for validity.
* ping/ping_echo.c: Rewritten diagnostic output. Use original
returned IP header.
* ping/ping_impl.h (PING_MAX_DATALEN): New define.
2003-11-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* libicmp/libping.c (ping_recv): Check icmp ID only for replies.
Use more detailed check for other packet types.
2003-11-01 Jeff Bailey <jbailey@raspberryginger.com>
* ftp/ftp_var.h (MAXLINE): New define. Define line and argbuf in
terms of MAXLINE.
* ftp/main.c: Make sure line from readline isn't larger than
MAXLINE.
Patch from John Hasler.
2003-10-24 Marcus Brinkmann <marcus@gnu.org>
* ifconfig/options.c (PARSE_OPT_SET_ADDR): Fix macro for gcc 3.3.
(PARSE_OPT_SET_INT): Likewise.
2003-09-02 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (init): Fix long line support. Submitted by
Julian Gilbey <jdg@debian.org>.
2003-08-29 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (init): Use strchr instead memchr. Skip
whitespace at the beginning of the next part of a continued line.
2003-08-29 Jeff Bailey <jbailey@raspberryginger.com>
* inetd/inetd.c: Create a PID file.
(Patch thanks to Robert Millan)
* inetd/Makefile.am (INCLUDES): Use PATHDEF_INETDPID
2003-11-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* inetd/inetd.c: Signal handling rewritten.
2003-11-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* inetd/inetd.c: Use argcv_get to parse configuration files.
Improved config error diagnostics. Removed obvious bsdisms.
2003-08-29 Jeff Bailey <jbailey@raspberryginger.com>
* paths: Support PATH_INETDPID.
(Patch from Robert Millan)
2004-09-29 Alfred M. Szmidt <ams@kemisten.nu>
* acinclude.m4 (IU_LIB_NCURSES): Set LIBNCURSES to "" if we didn't
find any headers for ncurses.
2004-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* configure.ac: Check for termcap before checking for readline,
since the latter might depend on the former. Patch by Todd R.
Eigenschink <todd@tekinteractive.com>
* acinclude.m4 (IU_ENABLE_FOO): Define $1_INSTALL_HOOK
(IU_CHECK_KRB5): Quote the definition
* THANKS: Added Todd R. Eigenschink
2004-01-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* acinclude.m4 (IU_CONFIG_LINKS): New macro
* configure.ac: Use IU_CONFIG_LINKS. Raised autoconf requirement
to 2.59
* Makefile.am: Require automake 1.8
* headers/Makefile.am: Fixed disthook
* headers/arpa/DISTFILES: Added to the repository
* headers/protocols/DISTFILES: Likewise
2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
* acinclude.m4 (IU_CONFIG_PATHS): New variables `IU_UCASE' and
`iu_lcase'.
2003-05-24 Alain Magloire
* libinetutils/snprintf.c: Change to be under LGPL not GPL.
(vsnprintf): implement "%lld", "%qd", "%Lg"
* libinetutils/snprintf.h: New macro LONG_LONG, LONG_DOUBLE
default to long long, long double.
2003-05-24 Alain Magloire
* configure.ac: New check AC_CHECK_TYPES(long long, long dougle).
2003-05-21 Sergey Poznyakoff
* syslogd/syslogd.c (main): Call init before opening the sockets.
(Thanks Peter Rehley <peter@rehley.net> for the patch)
(logmsg, cfline): Fixed handling of INTERNAL_NOPRI.
2003-05-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* libinetutils/libinetutils/ttymsg.c (ttymsg): Bugfix: typecast is
not a valid lvalue
2003-04-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* ping/ping.c (ping_run): Bugfix. Thanks Jim Balter
<Jim.Balter@cw.com> for the patch.
2003-04-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* libinetutils/setenv.c: Provide an extern declaration of environ
if necessary
* libinetutils/xmalloc.c: Use err() instead of error().
2003-04-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* libicmp/libping.c (ping_recv): Placed checksum and id test
before the switch.
2003-04-05 Sergey Poznyakoff <gray@Noldor.runasimi.org>
* telnetd/telnetd.c (telnetd_setup): Use socklen_t.
2003-04-05 Sergey Poznyakoff <gray@Noldor.runasimi.org>
* talk/display.c (display): Allow use of 8-bit ascii.
2003-04-05 Sergey Poznyakoff <gray@Noldor.runasimi.org>
* rshd/Makefile.am: Added AUTHLIBS to LDADD
2003-04-05 Sergey Poznyakoff <gray@Noldor.runasimi.org>
* rsh/rsh.c (dst_realm_buf): Typo.
* rsh/Makefile.am: Added AUTHLIBS to LDADD
2003-04-05 Sergey Poznyakoff <gray@Noldor.runasimi.org>
* rlogind/Makefile.am: Added AUTHLIBS to LDADD
* rlogind/rlogind.c: Use KRB5 instead of KERBEROS_V
2003-04-05 Sergey Poznyakoff <gray@Noldor.runasimi.org>
* rlogin/rlogin.c (dst_realm_buf): Typo.
* rlogin/Makefile.am: Added AUTHLIBS to LDADD
2003-04-05 Sergey Poznyakoff <gray@Noldor.runasimi.org>
* rcp/Makefile.am: Added AUTHLIBS to LDADD
* rcp/rcp.c (dst_realm_buf): Typo.
2003-04-05 Sergey Poznyakoff <gray@Noldor.runasimi.org>
* ping/ping.c: Bugfix: ping.ping_count means the maximum number of
packets to send.
* ping/ping_echo.c (nabs): New function.
2003-04-05 Sergey Poznyakoff <gray@Noldor.runasimi.org>
* libinetutils/Makefile.am: Added malloc.c and realloc.c
* libinetutils/xmalloc.c: Removed checks for HAVE_MALLOC and
HAVE_REALLOC: configure takes care that malloc and realloc be
always POSIX-compliant.
2003-04-05 Sergey Poznyakoff <gray@gnu.org>
* acinclude.m4 (IU_CHECK_KRB5): Check for libresolv. Minor
bugfix: LIBS and LDFLAGS were not properly restored.
* configure.ac: Removed KERBEROS_IV and KERBEROS_V defines. Added
check for socklen_t.
2003-02-08 Simon Josefsson <jas@extundo.com>
* telnet/commands.c (tn): Don't set hostname to DNS canonicalized
value. Attackers may control DNS and fool the Kerberos
authentication code to use the wrong realm for the server, and
consequently the wrong KDC for the server, which the attackers
could also control. Ultimately the attacker can fool the server
authentication check in the client.
2003-01-15 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* ping/Makefile.am: Removed libm dependency.
* ping/ping_echo.c: Removed call to sqrt.
2002-12-22 Jeff Bailey <jbailey@gnu.org>
* libinetutils/Makefile.am: Include new files in dist rules.
2002-12-22 Jeff Bailey <jbailey@gnu.org>
* configure.ac: Bump version to 1.4.2
* NEWS: Update for inetutils 1.4.2
2002-12-11 Jeff Bailey <jbailey@gnu.org>
* libinetutils/getopt.h: New file from Gnulib CVS
* libinetutils/obstack.h: New file from Gnulib CVS
* libinetutils/setenv.h: New file from Gnulib CVS
* libinetutils/gettext.h: New file from Gnulib CVS
* libinetutils/xalloc.h: New file from Gnulib CVS
* libinetutils/xgetcwd.h: New file from Gnulib CVS
* libinetutils/malloc.c: New file from Gnulib CVS
* libinetutils/realloc.c: New file from Gnulib CVS
* libinetutils/getopt.c: Update from Gnulib CVS
* libinetutils/getopt1.c: Update from Gnulib CVS
* libinetutils/getpass.c: Update from Gnulib CVS
* libinetutils/getusershell.c: Update from Gnulib CVS
* libinetutils/memcmp.c: Update from Gnulib CVS
* libinetutils/memcpy.c: Update from Gnulib CVS
* libinetutils/memmove.c: Update from Gnulib CVS
* libinetutils/memset.c: Update from Gnulib CVS
* libinetutils/obstack.c: Update from Gnulib CVS
* libinetutils/pathmax.h: Update from Gnulib CVS
* libinetutils/setenv.c: Update from Gnulib CVS
* libinetutils/strcasecmp.c: Update from Gnulib CVS
* libinetutils/strdup.c: Update from Gnulib CVS
* libinetutils/strerror.c: Update from Gnulib CVS
* libinetutils/xgetcwd.c: Update from Gnulib CVS
* libinetutils/xmalloc.c: Update from Gnulib CVS
* libinetutils/xstrdup.c: Update from Gnulib CVS
2002-12-11 Jeff Bailey <jbailey@gnu.org>
* configure.ac: Add AC_FUNC_MALLOC and AC_FUNC_REALLOC calls.
2002-12-06 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* telnetd/state.c: Fixed indentation.
2002-12-06 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* ping/ping.c (main): Added spaces between cases in a switch to
conform to the GCS.
2002-12-06 Sergey Poznyakoff
* libtelnet/auth-proto.h: Renamed Authenticator to
TN_Authenticator to avoid name collisions when compiling with
Heimdal implementation of Kerberos.
* libtelnet/auth.h: Likewise.
* libtelnet/kerberos.c: Likewise.
* libtelnet/kerberos5.c: Likewise. Improved debugging output
(patch courtesy of Simon Josefsson <jas@extundo.com>)
* libtelnet/auth.c: Likewise.
* libtelnet/misc.c: Removed unused variable.
2002-12-06 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* libinetutils/iruserok.c (iruserok): Removed unneded typecasts to
(void).
2002-11-15 Alfred M. Szmidt <ams@kemisten.nu>
* configure.ac (AC_CONFIG_FILES): Removed duplicate entries
`libicmp/Makefile' and `ping/Makefile' from the list.
2002-10-30 Jeff Bailey <jbailey@gnu.org>
* autogen.sh: Just use autoreconf - it's the right tool now.
* configure.ac: Require autoconf 2.54
* Makefile.am: Require automake 1.7
2002-09-30 Sergey Poznyakoff
* syslogd/syslogd.c: Fix processing accumulated messages from
/proc/kmsg (patch provided by Michael Deutschmann).
2002-09-20 Alain Magloire
* ftpd/server_mode.c: getservbyname() returns the port number in
network byte order, use ntohs(sv->s_port) for the conversion.
Patch From Paul Poh <paul@paulpoh.com>
2002-09-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* telnet/telnet/Makefile.am: Add LIBAUTH to the list of libraries.
2002-09-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* libtelnet/auth.h: Added OPTS_FORWARD.* defines
* libtelnet/kerberos5.c: Rewritten.
2002-09-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* headers/arpa/telnet.h: Added AUTH_ENCRYPT_ defines
2002-09-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* acinclude.m4 (IU_CHECK_KRB5): Fixed.
* configure.ac: Define KRB5 as well as KERBEROS_V. When kerberos
support is finally rewritten one of these will disappear.
2002-09-09 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* rshd/rshd.c: Change to the user's directory after switching to
the user privileges. Thanks to Alex Muntada <alexm@ac.upc.es> for
the idea. Removed unneded casts to (void). Create a local copy
of hostname, lest it be spoiled by a call to localhost(). Thanks
to Chris Ulherr for reporting.
2002-09-09 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* rexecd/rexecd.c: Change to the user's directory after switching
to the user privileges. Thanks to Alex Muntada <alexm@ac.upc.es>
for the idea. Removed unneded casts to (void).
2002-09-06 Sergey Poznyakoff <gray@Noldor.runasimi.org>
* ping/ping.c (main): Removed duplicate startup introduced
2002-06-24. Should have been more careful!
2002-09-02 Sergey Poznyakoff
* syslogd/syslogd.c: '**' extension (Michael Deutschmann
<michael@talamasca.ocis.net> allows to catch all facilities not
specified explicitely in the configuration file.
2002-09-02 Jeff Bailey <jbailey@outpost.dnsalias.org>
* rshd/rshd.c: We must not seteuid before we setuid. If we do, we
don't have priviledges to complete the second operation. Thanks
to Chris Ulherr <chris.ulherr@inet.com> for reporting this.
2002-09-02 Jeff Bailey <jbailey@outpost.dnsalias.org>
* rcp/rcp.c: Add support for rcp -V, Thanks to Chris Ulherr
<chris.ulherr@inet.com> for reporting this.
2002-09-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* doc/doc/syslogd.texi: Documented ** extensions, provided by
Michael Deutschmann <michael@talamasca.ocis.net>.
2002-09-02 Jeff Bailey <jbailey@outpost.dnsalias.org>
* configure.ac: Bump version to 1.4.1
2002-09-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* THANKS: Added Michael Deutschmann.
* NEWS: Updated.
2002-09-02 Jeff Bailey <jbailey@outpost.dnsalias.org>
* ROADMAP: Update
* NEWS: Update
* THANKS: Add Chris Ulherr
2002-08-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* syslogd/syslogd.c (main): Fixed memory overrun when writing long
data blocks from /proc/kmsg. Thanks to Michael Deutschmann
<michael@talamasca.ocis.net>
2002-08-09 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* ping/ping.c (main): Restored ping startup to its right place.
2002-08-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* telnetd/Makefile.am (PATHDEF_DEV): Added to INCLUDES.
2002-08-04 Sergey Poznyakoff <Mirddin.farlep.net>
* acinclude.m4 (IU_CHECK_MEMBER, IU_CHECK_MEMBERS): added new
macros to override the autoconf bug noted on 2002-05-14. The old
workaround didn't work for some cases (namely, utmp.ut_exit, whose
members are named differently on different systems). When the
autoconf is updated, the need for these macros will disappear.
* configure.ac: Use IU_CHECK_MEMBER(S) instead of AC_CHECK_MEMBERS
throughout the file.
2002-07-31 Jeff Bailey <jbailey@outpost.dnsalias.org>
* configure.ac: Update version to 1.4
* ROADMAP: New file
2002-07-27 Marcus Brinkmann <marcus@gnu.org>
* NEWS: Update to reflect the recent changes, and change its
format to match current GNU practice. Add a copyright statement,
and some emacs local variables to support editing it.
2002-06-26 Alfred M. Szmidt <ams@kemisten.nu>
* .cvsignore (config.h.in): Removed.
(config.hin, autom4te.cache): Added.
* configure.ac: Removed erroneous #ifdef's in the checks for __P
and syslog internal macros.
2002-06-24 Alfred M. Szmidt <ams@kemisten.nu>
* ping/ping.c (main): Moved ping startup code to after the parsing
of the command line.
(is_root): Variable moved into main().
2002-05-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* tftp/tftp.c: Checks for HAVE_DECL variables must read #if
!HAVE_DECL_something, since AC_CHECK_DECLS always declares
HAVE_DECL, either to 0 or to 1.
* tftpd/tftpd.c: Likewise.
2002-05-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* telnet/authenc.c: Checks for HAVE_DECL variables must read #if
!HAVE_DECL_something, since AC_CHECK_DECLS always declares
HAVE_DECL, either to 0 or to 1.
* telnet/commands.c: Likewise.
2002-05-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* talk/ctl.c: Use HAVE_STRUCT_type_member instead of
HAVE_type_member.
2002-05-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* rexecd/rexecd.c: Use HAVE_STRUCT_type_member instead of
HAVE_type_member.
2002-05-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* rcp/rcp.c: Checks for HAVE_DECL variables must read #if
!HAVE_DECL_something, since AC_CHECK_DECLS always declares
HAVE_DECL, either to 0 or to 1.
(tolocal): Removed redefinitions of IP_TOS et al.
2002-05-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* libinetutils/herror.c: Checks for HAVE_DECL variables must read
#if !HAVE_DECL_something, since AC_CHECK_DECLS always declares
HAVE_DECL, either to 0 or to 1.
* libinetutils/hstrerror.c: Likewise.
* libinetutils/logwtmp.c: Likewise.
* libinetutils/revoke.c: Likewise.
* libinetutils/setenv.c: Likewise.
* libinetutils/iruserok.c: Use HAVE_STRUCT_type_member instead of
HAVE_type_member.
* libinetutils/logout.c: Likewise.
* libinetutils/ruserok.c: Likewise.
* libinetutils/utmp_init.c: Likewise.
* libinetutils/utmp_logout.c: Likewise.
2002-05-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* ifconfig/Makefile.am: Removed obsolete OMIT_DEPENDENCIES.
* ifconfig/system.h: Use HAVE_STRUCT_type_member instead of
HAVE_type_member.
2002-05-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* headers/crypt.h: Checks for HAVE_DECL variables must read #if
!HAVE_DECL_something, since AC_CHECK_DECLS always declares
HAVE_DECL, either to 0 or to 1.
2002-05-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* ftpd/ftp.c: Checks for HAVE_DECL variables must read #if
!HAVE_DECL_something, since AC_CHECK_DECLS always declares
HAVE_DECL, either to 0 or to 1.
* ftpd/extern.h: Likewise.
* ftpd/ftpd.c: Likewise.
2002-05-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* configure.ac: AC_CHECK_MEMBERS (as of version 2.53 ) fails to
recognize the presense of a structure member which is itself of an
aggregate type. Thus, tests for struct ifreq.ifr_netmask and
struct ifreq.ifr_broadaddr always fail. To work around the bug,
first check for a non-aggregate sub-member of the member in
question and then create an appropriate HAVE_ define.
Use AC_CHECK_DECLS on crypt and errno, as AC_CHECK_DECL does not
generate HAVE_DECL_ define.
(AH_BOTTOMs): Checks for HAVE_DECL variables must read #if
!HAVE_DECL_something, since AC_CHECK_DECLS always declares
HAVE_DECL, either to 0 or to 1. The only exception is
HAVE_DECL_HSTRERROR, whose AC_CHECK_DECLS is under a conditional
expression, so we have to check for !defined(HAVE_DECL_HSTRERROR)
first.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* whois/main.c <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* telnetd/telnetd.c <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* telnet/main.c <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
(inetutils_bugaddr): Renamed to PACKAGE_BUGREPORT.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* talkd/talkd.c <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* syslogd/syslogd.c <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
(inetutils_bugaddr): Renamed to PACKAGE_BUGREPORT.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* rshd/rshd.c <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
(inetutils_bugaddr): Renamed to PACKAGE_BUGREPORT.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* rsh/rsh.c <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
(inetutils_bugaddr): Renamed to PACKAGE_BUGREPORT.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* rlogind/rlogind.c <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
(inetutils_bugaddr): Renamed to PACKAGE_BUGREPORT.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* rlogin/rlogin.c <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
(inetutils_bugaddr): Renamed to PACKAGE_BUGREPORT.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* ping/ping_timestamp.c, ping_router.c, ping_echo.c,
ping_address.c <version.h>: Include removed.
* ping/ping.c <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
(inetutils_bugaddr): Renamed to PACKAGE_BUGREPORT.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* logger/logger.c: <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
(inetutils_bugaddr): Renamed to PACKAGE_BUGREPORT.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* inetd/inetd.c: <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
(inetutils_bugaddr): Renamed to PACKAGE_BUGREPORT.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* ifconfig/system/solaris.c, system/qnx.c, system/osf.c,
system/linux.c, system/hpux.c, system/generic.c, printif.c,
ifconfig.c, changeif.c, options.c <version.h>: Include removed.
* ifconfig/options.c (inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
(inetutils_bugaddr): Renamed to PACKAGE_BUGREPORT.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* headers/Makefile.am (EXTRA_DIST): Removed version.h.in from the
list.
* headers/version.h.in: Removed.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* gwhois/whois.c <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* ftpd/ftpd.c <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
(inetutils_bugaddr): Renamed to PACKAGE_BUGREPORT.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* ftp/main.c <version.h>: Include removed.
(inetutils_package): Renamed to PACKAGE_NAME.
(inetutils_version): Renamed to PACKAGE_VERSION.
(inetutils_bugaddr): Renamed to PACKAGE_BUGREPORT.
2002-04-29 Alfred M. Szmidt <ams@kemisten.nu>
* configure.ac (VERSION): Variable removed.
(AC_OUTPUT): Removed headers/version.h and headers/version.h.in
from the list.
2002-04-28 Alfred M. Szmidt <ams@kemisten.nu>
* configure.ac: Removed form feeds.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* whois/Makefile.am (bin_PROGRAMS): Use whois_BUILD instead of
BUILD_WHOIS.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* uucpd/Makefile.am (inetdaemon_PROGRAMS): Use uucpd_BUILD instead
of BUILD_UUCPD.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* tftpd/Makefile.am (inetdaemon_PROGRAMS): Use tftpd_BUILD instead
of BUILD_TFTPD.
* tftpd/tftpd.c [HAVE_STRERROR_DECL]: Renamed to
HAVE_DECL_STRERROR.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* tftp/Makefile.am (inetdaemon_PROGRAMS): Use tftpd_BUILD instead
of BUILD_TFTPD.
* tftp/tftp.c [HAVE_STRERROR_DECL]: Renamed to HAVE_DECL_STRERROR.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* telnet/Makefile.am (bin_PROGRAMS): Use telnet_BUILD instead of
BUILD_TELNET.
* telnet/authenc.c [HAVE_GETPASS_DECL]: Renamed to
HAVE_DECL_GETPASS.
* telnet/commands.c [HAVE_HTONS_DECL]: Renamed to HAVE_DECL_HTONS.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* talkd/Makefile.am (inetdaemon_PROGRAMS): Use talkd_BUILD instead
of BUILD_TALKD.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* talk/Makefile.am (bin_PROGRAMS): Use talk_BUILD instead of
BUILD_TALK.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* syslogd/Makefile.am (inetdaemon_PROGRAMS): Use syslogd_BUILD
instead of BUILD_SYSLOGD.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* rshd/Makefile.am (inetdaemon_PROGRAMS): Use rshd_BUILD instead
of BUILD_RSHD.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* rsh/Makefile.am (bin_PROGRAMS): Use rsh_BUILD instead of
BUILD_RSH.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* rlogind/Makefile.am (inetdaemon_PROGRAMS): Use rlogind_BUILD
instead of BUILD_RLOGIND.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* rlogin/Makefile.am (bin_PROGRAMS): Use rlogin_BUILD instead of
BUILD_RLOGIN.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* rexecd/Makefile.am (inetdaemon_PROGRAMS): Use rexecd_BUILD
instead of BUILD_REXECD.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* rcp/Makefile.am (bin_PROGRAMS): Use rcp_BUILD instead of
BUILD_RCP.
* rcp/rcp.c [HAVE_STRERROR_DECL]: Renamed to HAVE_DECL_STRERROR.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* ping/Makefile.am (bin_PROGRAMS): Use ping_BUILD instead of
BUILD_PING.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* logger/Makefile.am (bin_PROGRAMS): Use logger_BUILD instead of
BUILD_LOGGER.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* libls/Makefile.am (noinst_LIBRARIES): Use libls_BUILD instead of
BUILD_LIBLS.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* libinetutils/herror.c [HAVE_H_ERRNO_DECL]: Renamed to
HAVE_DECL_H_ERRNO.
* libinetutils/hstrerror.c [HAVE_H_ERRLIST_DECL]: Renamed to
HAVE_DECL_H_ERRLIST.
* libinetutils/logwtmp.c [HAVE_ERRNO_DECL]: Renamed to
HAVE_DECL_ERRNO.
* libinetutils/revoke: Likewise.
* libinetutils/setenv.c: Likewise.
[HAVE_ENVIRON_DECL]: Renamed to HAVE_DECL_ENVIRON.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* inetd/Makefile.am (inetdaemon_PROGRAMS): Use inetd_BUILD instead
of BUILD_INETD.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* ifconfig/Makefile.am (bin_PROGRAMS): Use ifconfig_BUILD instead
of BUILD_IFCONFIG.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* headers/crypt.h [HAVE_CRYPT_DECL]: Renamed to HAVE_DECL_CRYPT.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* gwhois/Makefile.am (bin_PROGRAMS): Use whois_BUILD instead of
BUILD_WHOIS.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* glob/Makefile.am (noinst_LIBRARIES) Use libglob_BUILD instead of
BUILD_LIBGLOB.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* ftpd/Makefile.am (inetdaemon_PROGRAMS): Use ftpd_BUILD instead
of BUILD_FTPD.
* ftpd/extern.h [HAVE_GETUSERSHELL_DECL]: Renamed to
HAVE_DECL_GETUSERSHELL.
* ftpd/ftpd.c [HAVE_FCLOSE_DECL]: Renamed to HAVE_DECL_FCLOSE.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* ftp/Makefile.am (bin_PROGRAMS): Use ftp_BUILD instead of
BUILD_FTP.
* ftp/ftp.c [HAVE_FCLOSE_DECL]: Renamed to HAVE_DECL_FCLOSE.
[HAVE_PCLOSE_DECL]: Renamed to HAVE_DECL_PCLOSE.
2002-04-21 Alfred M. Szmidt <ams@kemisten.nu>
* Makefile.am (AUTOMAKE_OPTIONS): Require GNU Automake 1.6.
* acinclude.m4 (IU_UCASE, iu_lcase): Variables removed.
(IU_RESULT_ACTIONS, IU_CHECK_WEAK_REFS): Use the new AC_DEFINE
syntax.
(IU_CHECK_DECL, IU_CHECK_TYPE, IU_CHECK_STRUCT_FIELD): Functions
removed.
(IU_ENABLE_FOO): Use name_BUILD instead of BUILD_NAME.
(IU_INCLUDED_REGEX): Replaced with..
(jm_INCLUDED_REGEX): this.
* acconfig.h: Removed.
* configure.ac: Rewrite.
2002-04-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* telnetd/Makefile.am: Added @INCAUTH@ and @LIBAUTH@.
* telnetd/telnetd.c: Fixed to compile with
AUTHENTICATION/ENCRYPTION on.
* telnetd/telnetd.h: Likewise.
* telnetd/utility.c: Likewise.
2002-04-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* libtelnet/Makefile.am: Added @INCAUTH@ to INCLUDES list
2002-04-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* acconfig.h: #undef's for KERBEROS_IV and KERBEROS_V
* acinclude.m4 (IU_CHECK_KRB5): New macro: check for the presense
of kerberos v.5
* configure.ac: New options: --with-krb4[=PATH],
--with-krb5[=PATH]
2002-04-07 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* telnetd/telnetd.c (print_hostinfo): Print local host name.
* telnetd/utility.c: Include <termio.h>
2002-04-07 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* telnetd/telnetd.c: Initialize login_invocation. Fixed calls to
inet_ntoa.
(print_hostinfo): Implemented.
* telnetd/pty.c: Use new expand_line to create login command line.
* telnetd/telnetd.h: Added missing prototypes.
* telnetd/utility.c: Added line expansion code.
(io_setup): Initialize ptyip.
(pty_input_putback): new function.
2002-04-07 Sergey Poznyakoff
* rlogind/rlogind.c: Updated for use with Kerberos V.
2002-04-07 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* libinetutils/utmp_logout.c (utmp_logout): Bugfix: gettimeofday()
(and time()) was used over a member of utx, instead of ut.
Consequently, all sessions were recorded in wtmp as having zero
duration.
2002-04-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
Major rewrite of telnetd.
* telnetd/defs.h: Removed.
* telnetd/ext.h: Removed.
* telnetd/global.c: Removed.
* telnetd/authenc.c: Removed.
* telnetd/sys_term.c: Removed
* telnetd/term.c: (new) Terminal-specific functions.
* telnetd/Makefile.am: Modified.
* telnetd/telnetd.c: Rewritten.
* telnetd/telnetd.h: Rewritten.
* telnetd/utility.c: Rewritten.
* telnetd/pty.c: Use obstack instead of manually allocating
memory.
* telnetd/slc.c: Lots of fixes: Removed conditional dependencies
on LINEMODE, reduced number of global variables.
* telnetd/state.c: Likewise.
* telnetd/termstat.c: Likewise.
2002-04-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* libinetutils/libinetutils/obstack.c: new
* libinetutils/libinetutils/Makefile.am: Added obstack.c
* libinetutils/libinetutils/utmp_init.c: Use ifdef UTMPX, instead
of HAVE_UTMPX_H.
* libinetutils/libinetutils/utmp_logout.c: Likewise.
(utmp_logout): fallback to logwtmp() if updwtmp() is not
available.
2002-04-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* headers/obstack.h: (new)
* headers/Makefile.am: Added obstack.h
2002-04-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* ftp/Makefile.am: Add READLINE variable.
2002-04-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* acconfig.h: Removed extra HAVE_UTMPX_H. Added HAVE_CC_T and
HAVE_LIBREADLINE.
* configure.ac: Check for obstack functions. Modified readline
check: assign -lreadline to the separate AC_SUBST variable,
instead of appending it to LIBS. Check for cc_t type. Raised
patchlevel.
2002-03-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
Started fixing horrible mess in telnetd. To begin with,
segregated pty-related functions from tty-related ones. Use
forkpty instead of manually fiddling with lots of ifdefs. The
stuff has been tested on GNU/Linux and Solaris.
* telnetd/pty.c (new): PTY-related functions.
* telnetd/Makefile.am: Added pty.c
* telnetd/ext.h: Changed definition of line.
* telnetd/sys_term.c: Removed unneeded functions. Some of them
are re-implemented in pty.c
* telnetd/telnetd.c (doit, telnet, readstream): Reorganized.
2002-03-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* configure.ac: Added AC_CANONICAL_SYSTEM to set $host properly.
Additional AC_DEFINEs for Solaris.
2002-03-05 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (main): New variables KLINE and KLINE_LEN, to
store partial lines from the kernel log device. Collect partial
lines until we either have a maximum partial line or a full line.
Log that, and all following lines collected so far, and in the
case of the maximum partial line skip the remainder of the current
line. Reported by Davin McCall <davmac@iname.com>.
2002-02-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
* glob/Makefile.am (INCLUDES): Added -I$(top_builddir)/include
(needed for fnmatch.h and confpaths.h)
2002-02-12 Jeff Bailey <jbailey@outpost.dnsalias.org>
* TODO: Remove ping
* THANKS: Update
* README-alpha: *Wow* this file was really inaccurate.
* NEWS: Mention talkd, and ping
* AUTHORS: Update
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* uucpd/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* tftpd/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* tftp/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* telnetd/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* telnet/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* talkd/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* talk/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* syslogd/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* rshd/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* rsh/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* rlogind/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* rlogin/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* rexecd/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* rcp/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* ping/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* logger/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* libtelnet/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* libls/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* libinetutils/Makefile.am: Add -I$(top_builddir)/include to
INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* libicmp/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* inetd/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* headers/Makefile.am: Don't refer to config.h.in anymore
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* gwhois/.cvsignore: Add Generated headers
* gwhois/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* ftpd/Makefile.am: Add -I$(top_builddir)/include to INCLUDES
* ftpd/.cvsignore: Add ftpcmd.c
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* ftp/Makefile.am: Add $(top_builddir)/include to INCLUDES
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* doc/rfc/.cvsignore: New file
* doc/.cvsignore: New file
2002-02-10 Jeff Bailey <jbailey@outpost.dnsalias.org>
* configure.in: Reworked for autoconf 2.52 and renamed to
* configure.ac: this.
* autogen.sh: Don't point autoheader to headers/
* headers/acconfig.h: Move to ...
* acconfig.h: Here
* Makefile.am: Require Automake 1.5. Add doc and doc/rfc to build
tree. Don't tell autoheader to look in headers/
I moved config.h to the top_builddir to overcome a bug in autoconf
that requires the config.h to be in the same directory as
aclocal.m4
This meant that I also had to add
INCLUDES=-I$(top_builddir)/include. The upshot is that make
distcheck now passes, even for $(srcdir)!=$(builddir)
* .cvsignore: Add files relating moving config.h to
$(top_builddir)
2001-12-25 Alain Magloire
* libinetutils/poll.c: Added <time.h>
* libinetutils/getpass.c: New file, getpass(). Bert De Knuydt
<Bert.Deknuydt@esat.kuleuven.ac.be>.
2001-12-25 Alain Magloire
* ftp/cmds.c: Guard HAVE_MKSTEMP and use mktemp() has a fallback
Note from Bert De Knuydt <Bert.Deknuydt@esat.kuleuven.ac.be>
2001-12-25 Alain Magloire
* configure.in: Add check for mkstemp (). Check for getpass().
Note from Bert De Knuydt <Bert.Deknuydt@esat.kuleuven.ac.be>.
2001-11-22 Sergey Poznyakoff
* rlogin/rlogin.c: Fixed syntax error: sizeof int. Should be:
sizeof(int).
2001-11-22 Sergey Poznyakoff
* rcp/rcp.c: Fixed syntax error: sizeof int. Should be:
sizeof(int).
2001-11-21 Sergey Poznyakoff
* syslogd/syslogd.c: Removed redeclaration of hstrerror: it is
provided in include/config.h when missing.
2001-11-21 Sergey Poznyakoff <gray@farlep.net>
* ping/Makefile.am: Added $(man_MANS) to EXTRA_DIST.
* ping/ping.8: Fixed permissions
2001-11-21 Sergey Poznyakoff
* configure.in: Removed poll.h, sys/poll.h from AC_CHECK_HEADERS.
Added individual check for poll.h, since syslogd uses it
unconditionally.
2001-11-10 Alain Magloire
* rcp/rcp.c (help): New function. Convert to getopt_long () for
long options support.
2001-11-10 Alain Magloire
* doc/ftp.texi: New file.
* doc/Makefile.am: Added ftp.texi.
* doc/inetutils.texi: Enable ftp.texi.
* doc/tftp.texi: New file.
* doc/Makefile.am: Added tftp.texi.
* doc/inetutils.texi: Enable tftp.texi.
* doc/ping.texi: New file.
* doc/Makefile.am: Added ping.texi.
* doc/inetutils.texi: Enable ping.texi.
* doc/talkd.texi: New file.
* doc/Makefile.am: Added talkd.texi.
* doc/inetutils.texi: Enable talkd.texi.
* doc/talk.texi: New file.
* doc/Makefile.am: Added talk.texi.
* doc/inetutils.texi: Enable talk.texi.
* doc/ftpd.texi: New file.
* doc/Makefile.am: Added ftpd.texi.
* doc/inetutils.texi: Enable ftpd.texi.
* doc/inetd.texi: New file.
* doc/Makefile.am: Added inetd.texi.
* doc/inetutils.texi: Enable inetd.texi.
* doc/rexecd.texi: New file.
* doc/Makefile.am: Added rexecd.texi.
* doc/inetutils.texi: Enable rexecd.texi.
* doc/rcp.texi: New file.
* doc/Makefile.am: Added rcp.texi.
* doc/inetutils.texi: Enable rcp.texi.
* doc/rsh.texi: New file.
* doc/Makefile.am: Added rsh.texi.
* doc/inetutils.texi: Enable rsh.texi.
2001-11-06 Alain Magloire
* doc/rshd.texi: New file.
* doc/Makefile.am: Added rshd.texi.
* doc/inetutils.texi: Enable rshd.texi.
2001-11-04 Sergey Poznyakoff
* rlogind/rlogind.c: The second argument for daemon() should be 0:
close all descriptors and reserve first three ones. Otherwise
master/slave ptys could get all messed up. Also changed first
argument to 0, i.e. perform chdir("/"), so we don't keep cwd
used.
2001-11-03 Alain Magloire
* rsh/rsh.c: Removed copyright and sccsid variable. Changes to
follow GNU coding style. #include <version.h>. In long_options
add options from rlogin.
(help): Put info about rlogin options.
(main): Change the code to use getop_long() correctly. Added
option -V and -h.
2001-11-03 Alain Magloire
* rlogind/rlogind.c: A little indentation work 8-).
(rlogin_daemon): Use function daemon(1, 1) to daemonize. More
portable and any bug fix will benefit all.
2001-11-03 Alain Magloire
* rlogin/rlogin.c: Removed copyryght and sccsid. #include
<err.h>. short_options add -V.
(main): Check if we are setuid root, if not bail out early.
(usage): Add -l, -V and -h info.
2001-11-03 Alain Magloire
* rlogin/rlogin.c: #include <version.h> Reindent to comply to GNU
coding style. Implemented long version options. Call seteeuid()
not only setuid() when rcmd is finish. Get rid of __STDC__ for
function prototype, it was not use consistently anyways. Nuked -L
option 'litout' the code was commented out and nowadays nobody
cares.
(usage): Changed for long option output.
2001-11-03 Alain Magloire
* libinetutils/daemon.c: GNU coding style changes.
(waitdaemon): Try to find the number of file descriptor, check
_SC_OPEN_MAX, getdtablsize() before falling to the default.
2001-11-03 Alain Magloire
* ftpd/server_mode.c: [DEFPORT] defiine to 21. Fallback to
DEFPORT if getservbyname() failed. Lots of site does not
configure the /etc/services correctly.
2001-11-03 Alain Magloire
* doc/rlogind.texi: New file.
* doc/rlogin.texi: New file.
* doc/Makefile.am: Add rlogin.texi and rlogind.texi in
dependencies. SUBDIRS added rfc.
* doc/inetutils.texi: Enable rlogin and rlogind.
* doc/rfc/1282.txt: New file.
2001-11-03 Alain Magloire
* configure.in: Added doc/rfc/Makefile.
2001-11-02 Marcus Brinkmann <marcus@212.23.136.22>
* tftpd/tftpd.c: Prototype send_file, not sendfile.
(formats): Use send_file, not sendfile.
(sendfile): Rename to ...
(send_file): ... this.
2001-11-02 Marcus Brinkmann <marcus@gnu.org>
There is a function sendfile() in the FreeBSD system headers, so:
* tftp/tftp.c (sendfile): Rename to...
(send_file): ... this.
* tftp/main.c (put): Call send_file, not sendfile.
* tftp/extern.h: Prototype send_file, not sendfile.
2001-11-02 Marcus Brinkmann <marcus@gnu.org>
* libtelnet/getent.c (getent): Move variable declaration to the
beginning of the function.
(getstr): Likewise.
2001-11-02 Marcus Brinkmann <marcus@gnu.org>
* libinetutils/utmp_logout.c (utmp_logout): Add a horde of
conditionals to get it working on FreeBSD.
* libinetutils/utmp_init.c (utmp_init): Likewise.
2001-11-02 Marcus Brinkmann <marcus@gnu.org>
* headers/acconfig.h: Add macros for HAVE_UTMP_UT_PID,
HAVE_UTMP_UT_ID, HAVE_UTMP_UT_USER.
2001-11-02 Marcus Brinkmann <marcus@gnu.org>
* ftpd/ftpd.c (complete_login): Add missing `;'.
2001-11-02 Marcus Brinkmann <marcus@gnu.org>
* doc/inetutils.texi: Fix dir entries and the menu. Remove all
those nonexisting nodes, and replace them by include directives.
Comment out missing nodes. Fix some minor formatting.
* doc/syslogd.texi: Add node and chapter directives.
* doc/logger.texi: Likewise.
* doc/Makefile.am: New file.
* doc/version.texi: Remove file (will be generated by automake).
2001-11-02 Marcus Brinkmann <marcus@gnu.org>
* doc/syslogd.texi: A lot of small formatting fixes.
* doc/logger.texi: New file.
* doc/inetutils.texi: Rename syslog to logger and add entry for
it.
2001-11-02 Marcus Brinkmann <marcus@gnu.org>
* configure.in: When checking for utmp structure fields, always
include sys/types.h [HAVE_SYS_TYPES_H] before utmp.h (for time_t)
to get it working on FreeBSD. Add checks for fields pid, id and
user.
2001-11-02 Marcus Brinkmann <marcus@gnu.org>
* configure.in: Add doc/Makefile as output file.
2001-11-01 Alain Magloire
* ping/ping.8: New file.
* ping/Makefile.am: man_MANS = ping.8.
2001-11-01 Sergey Poznyakoff
* libinetutils/ttymsg.c: Added missing %s to format spec
2001-10-30 Alain Magloire
* talkd/Makefile.am: Add -I ../libinetutils to have the argvc_xx()
prototypes.
* talkd/acl.c: Add <ctype.h> we use isdigit(). Add "argv.h" we
use argv_xx() functions.
(read_address): Declared static and variable addr unused nuked.
(netdef_parse): Declared static.
(open_users_acl): Declared static.
(netdef_free): Declared static.
(acl_free): Declared static.
(discard_acl): Declared static.
* talkd/announce.c (init_line format_line finish_line print_mesg):
Declared static.
* talkd/intalkd.h: Add prototypes for global functions.
* talkd/print.c (messages_types): Array declared const and static.
(answers): Array declared const and static.
(_xlat_num): Declared static.
(print_request): First argument declared const and should have a
return value.
(print_response): First argument declared const and should have a
return value.
* talkd/process.c (process_request): Bug, process did not have a
return value.
* talkd/table.c (lookup_request): Declared static and function
pointer with proper prototypes.
(fuzzy_comp): Declared static.
(exact_comp): Did not have a return value.
(delete_invite): Change prototype to correspond to
include/protocols/talkd.h which wanted an unsinged long.
* talkd/talkd.c (main): Returned 0 for good measure.
(alarm_handler): Proper signal handler prototype.
2001-10-29 Sergey Poznyakoff
* talkd/acl.c: Fixed declaration of read_address(). Bugfix in
discard_acl(): it was discarding the extra entry. acl_match():
Set default action to ACT_ALLOW.
* talkd/intalkd.h: Macro os2sin_addr: extract struct in_addr from
struct osockaddr.
* talkd/process.c: do_announce(): use os2sin_addr for readability.
* talkd/table.c: Added extra debug info.
* talkd/talkd.c: Removed `if (getuid ())' block.
2001-10-28 Alain Magloire
* talkd/talkd/process.c (open_users_acl): free (filename);
* talkd/talkd/talkd.c (talkd_init): Do not bail out if not root,
Do we have to be root?
2001-10-28 Alain Magloire
Unfortunately some platforms, like QNX/Neutrino does not implement
flow control packet mode TIOCPKT. If it is not defined, provide
the constant. It should not affect the functionnality, but the
server will not be able to process CTRL-Q CTRL-S.
* rlogin/rlogin/rlogin.c: Define the macros TIOCPKT_XXX.
(speed_translate): This did not work on QNX/Neutrino, since we
were assuming things that does not hold true. We were assuming
that B0, B50 etc .. were ascending constant corresponding to 0,
1, etc ... This is not portable POSIX only says that
cfgetispeed() return symbolic functions. To correct use
approximatively the same code in telnet/sys_bsd.c.
2001-10-28 Alain Magloire
Certain programs __MUST__ be install root to work properly. There
is a hook in the installation to warn the user. But maybe in the
future we should try to install as root and failed the
installation if it does not work?
* ping/Makefile.am: Rules to try install setuid root.
* rcp/Makefile.am: Rules to try install setuid root.
* rlogin/Makefile.am: Rules to try install setuid root.
* rsh/Makefile.am: Rules to try install setuid root.
2001-10-27 Sergey Poznyakoff
* talkd/acl.c: read_acl(): Initialize `head' to NULL (in case the
acl contains null hostlist).
2001-10-25 Alain Magloire
* telnetd/telnetd/telnetd.c: Remove stupid/obsolete hack, if an
array is declare const char *, you can not write(readonly) to it.
This the way ISO C defines it, even if some compiler let it
trough. Do the right thing everytime not only for GCC.
2001-10-25 Alain Magloire
* telnet/telnet/telnet.c: jmp_buf is an opaque struct/object we
should not try to initialize it, and in any case globals and
static variables are initialize to zeros, a prerequesite of ISO C.
2001-10-25 Alain Malgoire
* talkd/announce.c: Add <sys/uio.h> for "struct iovec" definition.
#undef MAX before redefining it. It was set in different system
includes.
2001-10-25 Sergey Poznyakoff
Talkd essencially rewritten. New feature: system-wide and
user-specific access-control lists allow for controlling who and
from where is able to request talks.
* talkd/intalkd.h: (new) Implementation-specific defines.
* talkd/acl.c: (new) Access-control lists.
* talkd/Makefile.am: Added new sources.
* talkd/talkd.c: Completely rewritten.
* talkd/table.c: Likewise.
* talkd/announce.c: Likewise.
* talkd/print.c: Likewise.
* talkd/process.c: Likewise.
2001-10-25 Alain Magloire
* syslogd/syslogd.c: Use the same code in talkd/talkd.c to handle
utmp vs utmpx.
(wallmesg): Use the macros when manipulating utmp functions.
2001-10-25 Alain Magloire
* rlogind/rlogind.c (topdomain): In badly configure systems (like
mine 8), there is no domainame, this case will cause a sigsegv.
Because, we take for granted that local_domain_name, will be
initialized correctly: local_domain_name = topdomain() // will
return NULL. Change topdomain() to return the original name on
failure.
2001-10-25 Sergey Poznyakoff
* libinetutils/argcv.c: (new) Simple string tokenizer. Needed by
talkd acls.
* libinetutils/argcv.h: (new) Definitions for argcv.c
* libinetutils/regex.c: (new) Regex functions.
* libinetutils/regex.h: (new) Definitions for regex functions.
* libinetutils/Makefile.am: Added argcv.[ch], regex.[ch]
2001-10-25 Sergey Poznyakoff
* gwhois/Makefile.am: Added missing LDADD.
2001-10-25 Sergey Poznyakoff
* ftpd/pam.c: Provide replacements for PAM_CONV_AGAIN and
PAM_INCOMPLETE for systems that miss them (e.g. Solaris)
2001-10-25 Alain Magloire
* configure.in: Version to 1.3.2g.
2001-10-25 Sergey Poznyakoff
* acinclude.m4: IU_INCLUDED_REGEX: Check for working regex,
provide replacement, if necessary.
* configure.in: Check for regex.
2001-09-06 Alain Magloire
* configure.in: Check for strsignal().
* libinetutils/strsignal.c: New file.
2001-09-05 Michael Weiser <mweiser@robin.imn.htwk-leipzig.de>
* talkd/process.c: merge redundant #ifdef's
2001-09-05 Sergey Poznyakoff
* gwhois/Makefile.am: List built headers in BUILT_SOURCES so the
autodependency code works. Removed $(srcdir)/ prefix from
targets: the source directory might not be writable, so its better
to build headers in the build directory if they are not present in
srcdir. Restored EXTRA_DIST.
2001-09-04 Michael Weiser <mweiser@robin.imn.htwk-leipzig.de>
* talkd/process.c: Guard <utmp.h> utmpx.h> properly.
(find_user): Guard calls to setutent() or setutxent(). Use
sizeof(PATH_DEV) instead of hardcoded numbers.
2001-08-29 Marcus Brinkmann <marcus@gnu.org>
* Makefile.am (SUBDIRS): Remove `ifconfig' for now
(see ifconfig/TODO for a list of items that need to be resolved).
2001-08-27 Alain Magloire
* ftpd/Makefile.am: Add EXTRA_DIST = ftpcmd.c. To force the
generation of the file when doing the distribution. This way YACC
is no longer an requirement.
2001-08-26 Alain Magloire
* inetd/inetd.c (main): Fixed memory overryn in main 8-).
config_files is a null terminate array of pointers.
2001-08-26 Sergey Poznyakoff
* inetd/inetd.c: Fixed memory overrun in main.
2001-08-26 Alain Magloire
The idea is to provide an easy way to add services without mocking
around with inetd.conf. It is possible to just drop a file in
PATH_INETDDIR, and the file will be pick and merge like if it was
a configuration file. For example,
/etc/inetd.d/telnet
/etc/inetd.d/ftp
/etc/inetd.d/login
/etc/inetd.d/shell
will contain the entries to start telnet/ftp/rlogin/shell without
having to put them in /etc/inetd.conf. The idea was submitted by
Jakob.
The code had a face lift to comply with GNU coding style.
* inetd/inetd.c: prototypes changes:
void endconfig __P((FILE *));
struct servtab *getconfigent __P((FILE *, const char *));
char *newstr __P((const char *));
void nextconfig __P((const char *));
void print_service __P((const char *, const char *, struct servtab *));
FILE *setconfig __P((const char *));
char *sskip __P((char **, FILE *, const char *));
char *skip __P((char **, FILE *));
(usage): Updated.
(main): Localised the variables. Read the line configuration
files in to an array.
(config): Go through the configuration files arrays and call
nextconfig on each file for parsing.
(nextconfig): Parse the configuration file and construct an
service entry.
* inetd/inetd.8: Update to document the new PATH_INETDDIR feature.
2001-08-26 Alain Magloire
* gwhois/ChangeLog: New File.
* gwhois/Makefile.am: EXTRA_DIST = as_del.h ip_del.h tld_serv.h So
no need to have PERL in the distribution. Add missing
dependencies.
* gwhois/whois.c: Guard <config.h> with the appropriate
HAVE_CONFIG_H Remove macors GETOP_LONG and HAVE_GETOPT_LONG.
inetutils always provide a version even for platforms missing it.
* gwhois/config.h: remove and merge in whois.h
2001-08-26 Alain Magloire
Marco D'Itri whois is much more complete then the original one
provided by Joel N. Weber II (devnull). So it is enable.
* configure.in: use gwhois instead whois
* Makefile.am: SUBDIRS have gwhois instead of whois.
2001-08-25 Alain Magloire
* libls/Makefile.am: use BUILD_LS.
2001-08-25 Alain Magloire
* ftpd/Makefile.am: Check for LIBLS and add it to the link.
* ftpd/popen.c: WITH_LIBLS check.
2001-08-25 Alain Magloire
* configure.in: AC_ARG_ENABLE(libls ..) libls will not work on all
platforms, make it possible to disable it. LIBLS, BUILD_LIBLS,
WITH_LIBLS, new variable.s
* header/acconfig.h: WITH_LIBLS new.
2001-08-17 Marcus Brinkmann <marcus@gnu.org>
* telnet/sys_bsd.c (TerminalFlushOutput): New variable FLAGS.
Pass pointers to it to the ioctls.
2001-08-11 Sergey Poznyakoff <gray@farlep.net>
* rlogind/rlogind.c: Use ENCRYPTION instead of CRYPT.
2001-08-11 Sergey Poznyakoff <gray@farlep.net>
* ping/ping_echo.c: Removed restriction on hostname lengths in
ipaddr2str.
* ping/ping.c: Fixed coding style to comply with GNU.
* ping/ping_address.c: Likewise.
* ping/ping_impl.h: Likewise.
* ping/ping_router.c: Likewise.
* ping/ping_timestamp.c: Likewise.
2001-08-11 Sergey Poznyakoff <gray@farlep.net>
* icmp.h: Fixed coding style to comply with GNU.
* libicmp/icmp_address.c: Likewise.
* libicmp/icmp_cksum.c: Likewise.
* libicmp/icmp_echo.c: Likewise.
* libicmp/icmp_timestamp.c: Likewise.
* libicmp/libping.c: Likewise.
* libicmp/ping.h: Likewise.
2001-07-26 Alain Magloire
The patch was provided by Eric Gillespie, Jr., it addresses a
vulnerability in telnetd: TESO Security Advisory 06/10/2001
Multiple vendor Telnet Daemon vulnerability
Summary
===================
Within most of the current telnet daemons in use today there exist a
buffer overflow in the telnet option handling. Under certain
circumstances it may be possible to exploit it to gain root
priviledges remotely.
Impact
===================
Through sending a specially formed option string to the remote telnet
daemon a remote attacker might be able to overwrite sensitive
information on the static memory pages. If done properly this may
result in arbitrary code getting executed on the remote machine under
the priviledges the telnet daemon runs on, usually root.
Explanation
===================
Within every BSD derived telnet daemon under UNIX the telnet options
are processed by the 'telrcv' function. This function parses the
options according to the telnet protocol and its internal state.
During this parsing the results which should be send back to the
client are stored within the 'netobuf' buffer. This is done without
any bounds checking, since it is assumed that the reply data is
smaller than the buffer size (which is BUFSIZ bytes, usually).
However, using a combination of options, especially the 'AYT' Are You
There option, it is possible to append data to the buffer, usually
nine bytes long. To trigger this response, two bytes in the input
buffer are necessary. Since this input buffer is BUFSIZ bytes long,
you can exceed the output buffer by as much as
(BUFSIZ / 2) * 9) - BUFSIZ bytes. For the common case that BUFSIZ is
defined to be 1024, this results in a buffer overflow by up to 3584
bytes. On systems where BUFSIZ is defined to be 4096, this is an
even greater value (14336).
Due to the limited set of characters an attacker is able to write
outside of the buffer it is difficult - if not impossible on some
systems - to exploit this buffer overflow. Another hurdle for a
possible attacker may be the lack of interesting information to
modify after the buffer.
This buffer overflow should be considered serious nevertheless, since
experience has shown that even complicated vulnerabilities can be
exploited by skilled attackers, BIND TSIG and SSH deattack come to
mind.
We have constructed a working exploit for any version of BSDI, NetBSD
and FreeBSD. Exploitation on Solaris sparc may be possible but if it
is, it is very difficult involving lots of arcane tricks. OpenBSD is
not as easily exploitable as the other BSD's, because they do compile
with other options by default, changing memory layout.
* telnetd/ext.h (output_data): Add prototypes for output_data.
* telnetd/state.c (output_data): Implement output_data(). Patch
provided by "Eric Gillespie, Jr.".
2001-07-18 Alain Magloire
Much of the changes where indentation to follow GNU coding style.
Use of "const" where appropriate. atoi() is not ANSI C nor POSIX.
Preferable to use strto(u)l(). The same for bcopy() moving to
POSIX mem*() functions.
* rlogind/rlogind.c:#include <sys/stat.h> is needed for chmod ().
#include <sys/ioctl.h> is needed for the ioctl() calls. Remove
the "static" scope since the functions were define whithout the
static qualificator.
(main): atoi() replace by strtoul() where needed.
(rlogind_mainloop): Need to return a value since it is use as an
argument to exit () add return 0.
(getstr): argument is now const.
(protocol): Initialize variables pdp and fpb gcc was complaining
about it.
(protocol): n was shadowed by another n previosuly declared rename
the variable len and change its scope.
(protocol): bcopy() replace by memmove().
(control): argument change to size_t.
(fatal): second argument now is const char *.
2001-07-14 Sergey Poznyakoff <gray@farlep.net>
* rlogind/rlogind.c: use regular read() instead of getmsg() on the
master side of pty.
2001-07-14 Sergey Poznyakoff <gray@farlep.net>
* rlogind/rlogind.c: Rewritten from scratch. Implemented -a
(verify hostname) option. Added --reverse-required and --daemon
options. Kerberos code is not tested, though.
2001-07-14 Sergey Poznyakoff <gray@farlep.net>
* ping/ping.c: Use inetutils_package instead of PACKAGE. Same for
VERSION.
2001-07-14 Sergey Poznyakoff <gray@farlep.net>
* libinetutils/openpty.c: Set RMSGN|RPROTDAT on master side of pty
pair, so it can be read using read() call.
2001-07-14 Sergey Poznyakoff <gray@farlep.net>
* libinetutils/localhost.c: Return fully qualified domain name.
* libinetutils/login_tty.c: Rewritten from scratch. This version
works on systems lacking TIOCSCTTY ioctl (eg. Solaris).
2001-07-14 Sergey Poznyakoff <gray@farlep.net>
* configure.in: Check for setpgid(), vhangup().
* ping/ChangeLog: (new)
* libicmp/ChangeLog: (new)
* libinetutils: See libinetutils/ChangeLog.
* rlogind: See rlogind/ChangeLog.
* ping: See ping/ChangeLog.
2001-07-10 Sergey Poznyakoff
* ifconfig/if_index.c: Include ifconfig.h instead of if_index.h.
Reason: ifconfig.h includes system.h which contains definition of
ifr_index member for systems lacking it. It also includes
if_index.h. Thanks to Alain.
2001-06-30 Sergey Poznyakoff
* ifconfig/if_index.c: if_nameindex(): Actually fall back :^).
Besides, the return value was unspecified if socked() failed.
Removed # define ifr_ifindex ifr_index. Use ifr_index instead of
ifr_ifindex throughout the module, since the check for its
presence is already made in configure.in and appropriate define is
in system.h. if_nameindex(): reverted condition on ioctl()
return.
2001-06-26 Alain Magloire
* ifconfig/if_index.c: Solaris does not define ifr_index but
rather ifr_ifindex ... sigh .. redefine it to ifr_index to be
consistent.
(if_indextoname): Typo missing closing bracket.
* ifconfig/options.c (parse_opt_finalize): The return of getopt()
should be an int not a char since on many OS for example
QNX4/Watcomm C char is unsigned.
* ifconfig/system.c: Use __QNX__
* ifconfig/system.h: Use __QNX__
* ifconfig/system/qnx.h: remove qfh_netmask and qfh_brdaddr, the
generic versions will work fine.
2001-06-25 Alain Magloire
* ifconfig/if_index.c: Fall back to the generic version if
SIOCGIFINDEX and SIOCGIFNAME fail. Note from Sergey. Define
BSD_COMP for solaris machines to include the ioctl definitions.
* ifconfig/options.c (usage): Terminate the string with '\n\'.
* ifconfig/printif.c (print_interfaceX): Use alloca() instead of
dynamique allocated arrays, may compiler can not cope with this
yet.
2001-06-23 Marcus Brinkmann <marcus@gnu.org>
* ifconfig/system/qnx.c (qfh_brdaddr, qfh_netmask): Functions
removed, the generic ones will work fine with the changes to
system.h.
* ifconfig/system/qnx.h: Prototypes for these functions removed.
* ifconfig/system/qnx.h: Do not define ifr_netmask.
* ifconfig/printif.h: Move check for HAVE_* introduced in last
change to ...
* system.h: ... here.
* ifconfig/options.c: Revert change from Alain.
2001-06-20 Sergey Poznyakoff <gray@farlep.net>
Patches by Alain:
* ping/ping_address.c, ping/ping_echo.c, ping/ping_router.c,
ping/ping_timestamp.c: <signal.h> -> <sys/signal.h>
2001-06-20 Sergey Poznyakoff <gray@farlep.net>
Patches by Alain:
* libicmp/icmp_cksum.c, libicmp/icmp_echo.c,
libicmp/icmp_timestamp.c, libicmp/libping.c: use <signal.h>
instead of <sys/signal.h>, truncate pid_t before using as
ping_ident.
2001-06-20 Sergey Poznyakoff <gray@farlep.net>
Patches by Alain:
* libicmp/icmp_cksum.c, libicmp/icmp_echo.c,
libicmp/icmp_timestamp.c, libicmp/libping.c: use <signal.h>
instead of <sys/signal.h>, truncate pid_t before using as
ping_ident.
* libicmp/ping.h: changed type of ping_datalen to size_t.
* libicmp/icmp_address.c: icmp was used unitialized.
* ping/ping_address.c, ping/ping_echo.c, ping/ping_router.c,
ping/ping_timestamp.c: <signal.h> -> <sys/signal.h>
2001-06-20 Sergey Poznyakoff <gray@farlep.net>
Patches by Alain:
* libicmp/icmp_cksum.c, libicmp/icmp_echo.c,
libicmp/icmp_timestamp.c, libicmp/libping.c: use <signal.h>
instead of <sys/signal.h>, truncate pid_t before using as
ping_ident.
* libicmp/ping.h: changed type of ping_datalen to size_t.
* libicmp/icmp_address.c: icmp was used unitialized.
* ping/ping_address.c, ping/ping_echo.c, ping/ping_router.c,
ping/ping_timestamp.c: <signal.h> -> <sys/signal.h>
2001-06-19 Sergey Poznyakoff <gray@farlep.net>
* ping/Makefile.am: use @BUILD_PING@ instead of directly assigning
bin_PROGRAMS.
* ping/ping.h: changed counters in struct PING from int to longs.
* ping/ping.c, ping/ping_address.c, ping/ping_echo.c,
ping/ping_impl.h, ping/ping_router.c, ping/ping_timestamp.c: Fixed
a bunch of inconsistencies (thanks to Alain). Changes to make gcc
-Wall less verbose.
2001-06-19 Sergey Poznyakoff <gray@farlep.net>
* libicmp/icmp_timestamp.c: forgotten to commit yesterday :^)
* libicmp/ping.h: changed counters in struct PING from int to
longs.
* libicmp/icmp.h, libping.c,
2001-06-19 Sergey Poznyakoff <gray@farlep.net>
* configure.in, Makefile.am: added libicmp and ping to build.
* ping/Makefile.am: use @BUILD_PING@ instead of directly assigning
bin_PROGRAMS.
* libicmp/icmp_timestamp.c: forgotten to commit yesterday :^)
* libicmp/ping.h: changed counters in struct PING from int to
longs.
* libicmp/icmp.h, libicmp/libping.c, ping/ping.c,
ping/ping_address.c, ping/ping_echo.c, ping/ping_impl.h,
ping/ping_router.c, ping/ping_timestamp.c: Fixed a bunch of
inconsistencies (thanks to Alain). Changes to make gcc -Wall less
verbose.
2001-06-18 Sergey Poznyakoff <gray@farlep.net>
* ping/Makefile.am: added OMIT_DEPENDENCIES
* ping/ping.c, ping/ping_address.c, ping/ping_echo.c,
ping/ping_impl.h, ping/ping_timestamp.c: Implemented
ICMP_TIMESTAMP and ICMP_ADDRESSMASK requests. None of existing
routers answers the latter, though.
2001-06-18 Sergey Poznyakoff <gray@farlep.net>
* libicmp/Makefile.am: added icmp_address.c
* libicmp/icmp_address.c: added.
* libicmp/icmp.h: added new protos
* libicmp/icmp_echo.c: eliminated unused variable
* libicmp/icmp_timestamp.c: implemented
* libicmp/libping.c: changes too numerous to mention.
* libicmp/ping.h: reflect changes to libping.c
* ping/Makefile.am: added OMIT_DEPENDENCIES
* ping/ping.c, ping/ping_address.c, ping/ping_echo.c,
ping/ping_impl.h, ping/ping_timestamp.c: Implemented
ICMP_TIMESTAMP and ICMP_ADDRESSMASK requests. None of existing
routers answers the latter, though.
2001-06-13 Sergey Poznyakoff <gray@farlep.net>
* ping/ping.c: implemented
* ping/ping_address.c, ping/ping_echo.c, ping/ping_impl.h,
ping/ping_router.c, ping/ping_timestamp.c: added to repository.
2001-06-13 Sergey Poznyakoff <gray@farlep.net>
* libicmp/Makefile.am, libicmp/icmp.h, libicmp/icmp_cksum.c,
libicmp/icmp_echo.c, libicmp/icmp_timestamp.c, libicmp/libping.c,
libicmp/ping.h: added to repository. Currently it is more libping
than libicmp, I will be adding required functionality latter.
* ping/ping.c: implemented
* ping/ping_address.c, ping/ping_echo.c, ping/ping_impl.h,
ping/ping_router.c, ping/ping_timestamp.c: added to repository.
* paths: PATH_HEQUIV needs search in <netdb.h> (for Solaris)
2001-06-05 Sergey Poznyakoff <gray@farlep.net>
* libinetutils/ttymsg.c (normalize_path): Define static and
provide a prototype and it was call with the wrong number of
arguments.
2001-06-05 Sergey Poznyakoff <gray@farlep.net>
* ftpd/ftpd.c: MAP_FAILED is not defined on some systems
(e.g. Solaris, SunOS)
* headers/paths.h: Added missing _PATH_LOGCONF, _PATH_LOGPID,
_PATH_LOG
* libls/print.c: Provided defaults for major() and minor() macros
for systems lacking them.
2001-06-04 Alain Magloire
After patches and feedback From Sergey and Marcus.
* ifconfig/if_index.h: New file, prototypes for if_nameindex().
* ifconfig/if_index.c: New version base on the one in GLIBC.
* ifconfig/Makefile.am: Added if_index.c unconditionnaly.
* ifconfig/changeif.c(configure_if): memset(0) ifr, it helps
debugging.
* ifconfig/flags.c: const consistencies.
* ifconfig/ifconfig.h: include if_index.h
* ifconfig/options.c: Defined SYSTEM_SHORT_OPTIONS
SYSTEM_LONG_OPTIONS.
* ifconfig/options.h: const consistencies.
* ifconfig/printif.c: const consistencies.
* ifconfig/printif.h: const consistencies. Check for
HAVE_IFREQ_IFR_INDEX HAVE_IFREQ_IFR_NETMASK
HAVE_IFREQ_IFR_BROADADDR.
* ifconfig/system.c: Use marcor processor #elif for clarity.
* ifconfig/system.h: const consistencies.
* ifconfig/system/qnx.c: New file.
* ifconfig/system/qnx.h: New file.
* ifconfig/system/solaris.c: Define system_configure.
2001-06-04 Marcus Brinkmann <marcus@gnu.org>
* options.c (long_options): Only add SYSTEM_LONG_OPTIONS if it is
defined.
Lots of small fixes submitted Sergey Poznyakoff
<gray@Mirddin.farlep.net>:
* ifconfig/ifconfig.h: Do not include <config.h>.
* ifconfig/printif.h: Likewise.
* ifconfig/changeif.c: Include <sys/socket.h>.
* ifconfig/ifconfig.c: Likewise.
* ifconfig/printif.c: Likewise.
* ifconfig/system/hpux.c: Don't include <stdint.h>.
* ifconfig/system/osf.c: Likewise.
* ifconfig/system/linux.c: Likewise.
* ifconfig/system/solaris.c: Likewise.
* ifconfig/printif.c: Likewise.
* ifconfig/system/generic.c (system_configure): New function.
* ifconfig/system/osf.c (system_configure): Likewise.
* ifconfig/system/hpux.c (system_configure): Likewise.
* ifconfig/system/solaris.c (system_parse_opt_rest): Fix order of
operators.
(system_default_format): Fix syntax. Include <sys/socket.h>,
<netinet/in.h>, <netinet/if_ether.h>
(rather than <linux/if_ether.h>).
* ifconfig/system.h: Change __solaris__ to __sun__.
* ifconfig/system.c: Likewise.
2001-06-02 Sergey Poznyakoff <gray@farlep.net>
* libinetutils/ttymsg.c: Simple check for '/' in the line name is
way too week: it doesn't work for tty names like pts/2, which are
perfectly OK. Changed to more sophisticated one: all "./", "../"
references in the name are resolved and the resulting name is
compared with PATH_TTY_PFX. If it lies under it, everything's Ok.
Otherwise we just bail out and quit.
* talk/display.c: Added check for *text == '\a' to produce audible
bell.
* talk/io.c: changed \007's in initial message to beep() after
message(). On solaris's AT386 those \007 just produce ^G on the
screen. Changed read(0, buf, nb) to getch() in loop. Reason:
read() returns raw data from console, thus pressing <enter>
returns '\r' which gets displayed on console as ^M, because
display.c is expecting to get '\n'. getch() returns '\n' and
everything goes smooth.
* talk/announce.c: syslog error message from ttymsg(). One never
knows...
* talkd/process.c: changed find_user(). Previous version returned
first console the remote party was logged onto. This one returns
the one where he currently is. This is a slightly modified
version of berkeley's find_user() dated 1997/04/06.
2001-05-07 Jeff Bailey <jbailey@oasis.zugzug.com>
* ifconfig/system/Makefile.am: New File, for 'make dist' derived
targets.
* ifconfig/Makefile.am: Add printif.h and system.h to
noinst_HEADERS.
2001-05-07 Jeff Bailey <jbailey@oasis.zugzug.com>
* Makefile.am: Integrate ifconfig into build
* configure.in: Integrate ifconfig into build
2001-03-14 Joachim Gabler <joga@sun.com>
* rlogind/rlogind.c: exec to /bin/login requires additional
parameters on SOLARIS
2001-02-27 Marcus Brinkmann <marcus@gnu.org>
* ifconfig/system/linux.c (system_configure): Move return
statement outside of if-block.
* ifconfig/printif.h: Declare had_output.
* ifconfig/printif.c (had_output): New global variable.
(many functions): Whereever we output something, set had_output to
1.
(join): Remove variable first. New variable had_output_saved.
Clear had_output after storing it in had_output_saved. Use that
to determine if to print delimiter. Later on, restore had_output.
* ifconfig/system/linux.c (some functions): Whereever we output
something, set had_output to 1.
2001-02-26 Alain Magloire
* libinetutils/openpty.c (ptys_open) : ioctl of "pckt" should be
done on the master file descriptor. Found by Joachim Gabler
<Joachim.Gabler@germany.sun.com>
2001-02-26 Alain Magloire
* ftp/domacro.c : Check if the margv is not NULL and return.
* ftp/ftp.c (login) : The variable "line" is used as a target of
strcpy. Unfortunately, the readline() changes cause this to be
NULL when processing an automatic login via $HOME/.netrc. Bug and
patch for ftp.c provided by "B. D. Elliott" <bde@nwlink.com>.
2001-02-22 Marcus Brinkmann <marcus@gnu.org>
* ifconfig/flags.c: Protect inclusion of config.h.
2001-02-22 Marcus Brinkmann <marcus@gnu.org>
* ifconfig/Initial release.
2001-02-09 Jeff Bailey <jbailey@oasis.zugzug.com>
* Makefile.am: Use 4 digit year for `make release'
2001-01-31 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (usage): Add missing parentheses in help text.
2001-01-16 Alain Magloire
* gwhois/whois.c, gwhois/TODO, gwhois/Makefile: Update from the
patch send by Marco d'Itri.
2001-01-16 Marcus Brinkmann <marcus@gnu.org>
* whois/main.c: Terminate array longopts with an element
containing all zeros.
2001-01-03 Alain Magloire
* rcp/rcp.c: GNU coding style changes.
2000-11-25 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (main): Give reason for failure of waitdaemon.
(add_funix): Print program name and reason for failure in error
message.
2000-11-25 Marcus Brinkmann <marcus@gnu.org>
* README: Uppercase the Hurd, fix comment about long option
support missing (most -> many).
* TODO: Update the entry about long options support (we can now
list those which are missing, instead those which have it). Add
internationalization/gettext to the list. Uppercase the Hurd.
2000-11-03 Alain Magloire
* rshd/rshd.c: #include <version.h> added. Removed copyright and
sccsid variables.
(help): New function to display info.
(short_options): New variable.
(long_options): New variable.
(main): Implemented long options with getopt_long().
2000-11-03 Marcus Brinkmann <marcus@gnu.org>
* libinetutils/localhost.c (localhost): Make an initial guess of
256 for the name length: SUSv2 says a hostname is up to 255
characters long, and doesn't specify any error codes, so stay on
the safe side.
2000-10-31 Marcus Brinkmann <marcus@gnu.org>
* libinetutils/localhost.c: Prototype xrealloc, not xalloc.
(localhost): Add missing parenthese.
2000-10-31 Marcus Brinkmann <marcus@gnu.org>
* inetd/inetd.c: Remove COPYRIGHT (it's in the header) and "#if
0"-out SCCSID. Declare __PROGNAME. New variables SHORT_OPTIONS
and LONG_OPTIONS.
(main): Initialize __progname if not HAVE___PROGNAME. Rename CH
to OPTION. Rework option parsing to use getopt_long.
(usage): Completely new and conforming to the others.
2000-10-31 Marcus Brinkmann <marcus@gnu.org>
* ftpd/ftpd.c: Remove PROGRAM, declare __PROGNAME. Remove
COPYRIGHT
(it's in the header) and "#if 0"-out SCCSID.
(usage): Replace PROGRAM with __PROGNAME.
(main): Likewise. Also initialize __PROGNAME if not
HAVE___PROGNAME.
2000-10-30 Marcus Brinkmann
* telnetd/sys_term.c: Add prototype for cleanopen().
* telnetd/telnetd.c (main): Move assignment outside if condition.
2000-10-30 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c: Remove PROGRAM, declare __PROGNAME.
Prototype waitdaemon(). Remove COPYRIGHT (it's in the comment at
the top). Replace "#ifndef lint" with "#if 0" for SCCSID to avoid
gcc warning.
(main): Initialize __PROGNAME if not HAVE___PROGNAME. Use
__PROGNAME instead PROGRAM.
(usage): Likewise.
(crunch_list): Likewise.
(die): Likewise.
2000-10-30 Marcus Brinkmann <marcus@gnu.org>
* rcp/rcp.c (rsource): Don't take the address of a pointer when
the pointer is what we need, so change &statp to statp.
2000-10-30 Marcus Brinkmann <marcus@gnu.org>
* logger/logger.c: Declare __PROGNAME. Remove PROGRAM. Remove
COPYRIGHT (it's in the header) and replace "#ifndef lint" with
"#if 0" for SCCSID.
(main): Initialize __PROGNAME if not HAVE___PROGNAME. Use
__PROGNAME instead PROGRAM.
(pencode): Likewise.
(usage): Likewise.
2000-10-30 Marcus Brinkmann <marcus@gnu.org>
* libtelnet/getent.c: Define AREA only when HAVE_CGETENT, to
silence compiler warning.
2000-10-30 Marcus Brinkmann <marcus@gnu.org>
* libls/ls.c (traverse): Fix format of error message.
* libls/fts.c (fts_stat): Not all systems have S_IFWHT even if
they have DT_WHT, so check for this.
2000-10-30 Marcus Brinkmann <marcus@gnu.org>
* libinetutils/utmp_init.c: Define __USE_GNU before including
utmpx to get prototype of updwtmpx.
2000-10-30 Marcus Brinkmann <marcus@gnu.org>
* inetd/inetd.c: Include <grp.h> for initgroups().
2000-10-30 Marcus Brinkmann <marcus@gnu.org>
* ftpd/ftpd.c: New variable PROGRAM.
(usage): Frob it to behave like the syslogd usage(), so it gives
the correct output.
(main): Beautify option parsing code (more comments, proper use of
usage). Reject unknown options instead ignoring them. Initialize
PROGRAM and use it instead of argv.
2000-10-30 Marcus Brinkmann <marcus@gnu.org>
* ftp/main.c: Convert to GNU coding standards.
* ftp/main.c: Remove COPYRIGHT (it's in the header) and "#if
0"-out SCCSID.
(ohelp): Removed.
(try_help): Removed.
(usage): Incorporate functionality of ohelp and try_help, and
accept new argument ERR.
* ftp/main.c (getcmd): Add parenthese around assignment used as
truth value to silence gcc warning.
(makeargv): Likewise.
2000-10-30 Marcus Brinkmann <marcus@gnu.org>
* ftp/cmds.c (remglob): New variable fd, use it to create
temporary file with mkstemp(), and not insecure mktemp().
2000-08-24 Alain Magloire
* libls/fts.c: Check for HAVE_FCHDIR, and disable fchdir() for OS
lacking. bcopy --> memmove, bzero --> memset.
* libls/fts.c: Include <config.h>.
* libls/cmp.c: Include <config.h>.
* libls/ls.c: Include <config.h>.
* libls/print.c: Include <config.h>.
* libls/stat_flags.c: Include <config.h>.
* libls/util.c: Include <config.h>.
2000-08-24 Alain Magloire
* libinetutils/stub_tgetent.c: Prototype was wrong.
* libinetutils/openpty.c: Prototype was wrong.
2000-08-22 Alain Magloire
* rcp/util.c: Define the roundup() macro if not define by the OS.
2000-08-22 Alain Magloire
* configure.in: Options --with-pam and --with-wrap so far they are
only usefull for ftpd.
* Makefile.am: Syslog change for logger.
2000-08-21 Alain Magloire
The idea is to reduce the number of side effects i.e. reducing
the number of global variables. To help we regroup some of them
in a structure call credentials, that is pass around. The second
approach to help detect side effects; when possible the variables
are pass by parameter. All the gots of the authentication have
move out elsewere(auth.c, pam.c) this will save us from the pesky
#ifdef's.
* ftpd/ftpd.c: Passwd handling code removed. PAM code removed.
Variables guess, pw, logged_in, remotehost part of the credential
structure.
(end_login): Take the credential as an argument.
(dolog): Likewise.
(user): Call auth_user() to do the job.
(pass): Call auth_pass() to do the job.
(complete_login): Draft support for guest chroot. Do not display
passwd part of setproctitle() and syslog() messages.
(main): Remove on anonymous-name, was not use.
* ftpd/auth.c: New file.
* ftpd/Makefile.am: PATHDEF_FTPCHROOT in INCLUDES.
* ftpd/logwtmp.c: bzero replaced by memset.
2000-08-16 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (usage): If err != 0, print Usage: ... line
to stdout. Uppercase all sentences.
(main): Fix indentation in while condition and add a newline after
a break statement.
2000-08-16 Alain Magloire
* logger/logger.c: syslog.c rename logger.c
* logger/logger.1: syslog.1 rename logger.1
* logger/Makefile.am: bin_LOGGER now.
2000-08-16 Marcus Brinkmann <marcus@gnu.org>
* logger/syslog.c: Include version.h. New global variables
program, short_options, long_options.
(usage): New argument err. Make usage and help message GNU
compliant.
(main): Use short_options, long_options, getopt_long instead
getopt, memcpy instead bcopy. Add options --help and --version.
Remove "register" attribute. Rename ch to option.
(pencode): Remove "register" attribute, format to GNU coding
standard.
(decode): Likewise.
2000-08-16 Alain Magloire
* syslog: Deleted.
* logger: New directory, .i.e syslog rename to logger.
* configure.in: Change name syslog for logger.
2000-08-15 Alain Magloire
* libinetutils/iruserok.c: use <signal> not <sys/signal.h> Remove
ruserok().
* libinetutils/ruserok.c: new funtion.
2000-08-15 Alain Magloire
* configure.in: Check for fchdir(). Check for ruserok().
2000-08-13 Alain Magloire
* syslogd/syslogd.c (main): Error in the code the inet file
descriptor was not initialize correctely.
2000-08-13 Alain Magloire
* syslogd/syslogd.c (main): New variable short_options. Removed
of reap_child() and SIGCHLD signal handler. ttymsg() now double
fork() and do itself the waitpid() to clean up. Remove all those
little loops that uses tolower() to bring the string to loser case
for a comparison and use strcasecmp() when comparison are needed.
2000-08-13 Alain Magloire
* libinetutils/ttymsg.c (fork2): New function, that is doing a
double fork() when I/O is non-bloclking.
2000-08-11 Alain Magloire
* syslogd/syslogd.c: Include unconditionnaly <utmpx.h> and
<poll.h>, we (will) provide a stub when the OS is lacking.
2000-08-11 Alain Magloire
* libinetutils/poll.c: Update from James Antill.
2000-08-10 Alain Magloire
* syslogd/syslogd.c (wallmsg): Only check for the type
USER_PROCESS The others on GNU/Linux generate errors. And we only
need to alert legitimate users that are login.
* syslogd/syslogd.c : New option '-S, --sync' to behave like
GNU/Linux syslogd that sync on every line. Syncing on every lines
can bring a machine to its knees if an application is trying to be
malicious.
2000-08-10 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (main): When -d option is given, set NoDetach
to 1. Only test for !NoDetach when daemonising, and no longer for
!Debug.
2000-08-09 Marcus Brinkmann <marcus@gnu.org>
Fix ChangeLog weirdness.
* syslogd/syslogd.c: "New" prototype reap_childs.
(main): Install SIGCHLD handler.
(reap_childs): Function back. We do fork for blocking I/O. This
time use waitpid unconditionally.
2000-08-09 Alain Magloire
* rlogind/rlogind.c: Typo utmpx_logout should be utmp_logout.
2000-08-09 Alain Magloire
* configure.in: Check for poll() and link headers/poll.h to
include/poll.h if the OS does not have poll.
2000-08-08 Alain Magloire
* telnetd/extern.h: rename interrupt() to interrupts() since it
use as a reserve word by the some C compiler.
* telnetd/state.c: Likewise.
* telnetd/telnetd.c: Likewise.
* telnetd/sys_term.c: L_SET rename to SEEK_SET for portability.
2000-08-08 Alain Magloire
* talkd/announce.c: Uncoditionnaly undef max before use it as a
macro.
2000-08-08 Alain Magloire
* syslogd/syslogd.c (dbg_printf): [HAVE_STDARG_H][_STDC__] to
palliate for OS not having ANSI C.
[HAVE_UTMPX_H] before including <utmpx.h>.
(usage): Some of the strings where missing newlines.
[IOVCNT]: new macro to define the size of the iovec array.
(fprintlog): Clear the iovec before using it.
(logmsg): get rid of ugly hardcode and use sizeof (f->f_lastime) -
1 intead for the len of the f_lastime string.
(fprintlog): use sizeof(f->lastime) - 1.
2000-08-08 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c: Don't prototype reapchild.
(main): Don't install SIGCHLD handler.
(reapchild): Function removed. It is cruft needed for the linux
wallmsg implementation, which we don't useb.
2000-08-08 Alain Magloire
* rshd/rshd.c: [HAVE_INITGROUPS] guard.
2000-08-08 Alain Magloire
* rsh/rsh.c: <sys/signal> is not portable use <signal.h>.
2000-08-08 Alain Magloire
* rexecd/rexecd.c: Let ansi2knr take care of the vararg/stdarg
issues. Add prototype for error(). Guard [HAVE_INITGROUPS].
2000-08-08 Alain Magloire
* rcp/rcp.c: Non portable d_ino for the DIR readdir() pointer
removed.
2000-08-08 Alain Magloire
* libinetutils/ttymsg.c: Formatting, bcopy() to memcpy(). Just
check for '/' in the path for security attempts.
* libinetutils/poll.c: Typo in prototypes. Not including
<sys/select.h>
* libinetutils/poll.h: Typos.
2000-08-08 Alain Magloire
* ftp/extern.h: Remove empty() declaration, one the arg is fd_set
and <select.h> is not included in extern.h.
2000-08-08 Marcus Brinkmann <marcus@gnu.org>
* doc/: Fix some factual errors, and one typo. We don't have a
limit on 19 sockets anymore, and we allow many -l and -s options.
2000-08-07 Alain Magloire
* doc/doc/inetutils.texi doc/syslogd.texi First draft.
2000-08-06 Alain Magloire
* telnet/ring.h: error in the prototype declarion of ring_mark().
2000-08-05 Alain Magloire
* libinetutils/daemon.c (waitdaemon): We are using the double
trick to avoid zombies and control terminals. So we're going
simply to pause() to avoid messing with waitpid().
2000-08-05 Alain Magloire
* libinetutils/localhost.c: No longer use static buffers to cache
the result. This cause subtil bugs and make it impossible in
non-threaded environment if we ever move to it.
2000-08-05 Alain Magloire
* ftp/ruserpass.c (ruserpass): When calling localhost() make sure
we free(). Various formating to GNU coding style.
2000-08-05 Alain Magloire
* configure.in: Remove the check for setlinebuf(), it was for
syslogd. We use the more portable: setvbuf (stream, 0, _IOLBF,
0);
* header/config.h.in: remove HAVE_SETLINEBUF
2000-08-04 Alain Magloire
* libinetutils/iruserok.c (iruserok): Typo in prototype.
2000-08-03 Marcus Brinkmann <marcus@gnu.org>
* libinetutils/daemon.c (waitdaemon): Add comment.
(waitdaemon_timeout): If child told us to go away, use _exit
rather than exit.
2000-08-03 Marcus Brinkmann <marcus@gnu.org>
* libinetutils/daemon.c (waitdaemon): New function from FreeBSD
syslogd rev 1.66.
(waitdaemon_timeout): Likewise (but called timedout in FreeBSD
syslogd).
(daemon): Redefine in terms of the more generic waitdaemon.
2000-08-03 Jeff Bailey
* .cvsignore: Add INCLUDE file. Delete it from repository.
2000-08-02 Jeff Bailey
* whois/.cvsignore: Add generated file config.c
2000-08-02 Jeff Bailey
* */.cvsignore: Mass add of .cvsignore files to beat CVS into
submission.
2000-08-02 Jeff Bailey
* README-alpha: Advertise the new commit-inetutils@gnu.org mailing
list.
2000-08-01 Michael Vogt
* libls/ls.h: Nuke u_quad_t, for unsigned long long.
* libls/print.c: Use "%*llu" instead of "%*qd".
2000-08-14 Alain Magloire
* libls/print.c: Define [howmany] macro.
* libls/bsdport.c: Remove [_XOPEN_SOURCE], [_BSD_SOURCE],
[_GNU_SOURCE] we have no business defining this.
* libls/bsdport.h: Do not include <config.h> here.
* libls/ls.c: Include <termios.h> not <sys/termios.h>
2000-08-03 Marcus Brinkmann <marcus@gnu.org>
Someday I might learn how to use incremental search properly.
* libls/ls.c (traverse): strerr -> strerror.
(display): Likewise.
2000-08-03 Marcus Brinkmann <marcus@gnu.org>
* libls/ls.c (traverse): strerr -> strerror.
(display): Likewise.
* libls/print.c (printlink): Likewise.
2000-08-01 Michael Vogt
* libls/bsdport.h: added dirfd() macro, add _D_EXACT_NAMLEN macro
* libls/fts.h: minor portability changes
* libls/ls.c: minor bugfix ( strerr() -> strerror() )
* libls/print.c: added <sys/mkdev.h> if avaiable
2000-08-01 Michael Vogt
* configure.in: added checks for mkdev.h, features.h, dirfd()
* headers/config.h.in: added defines for HABE_SYS_MKDEV
HAVE_FEATURES_H, HAVE_DIRFD.
2000-07-31 Michael Vogt
* libls/fts.c, libls/ls.c, libls/print.c: portability changes
(solaris lacks warn, warnx, err)
2000-07-30 Alain Magloire
* libls/print.c(printlink): ifdef MAXPATHLEN.
2000-07-30 Michel Vogt
* libls/fts.c: Change GNU Lib C specifics functions for their
standard counterpart example: __opendir() --> opendir().
2000-07-30 Alain Magloire
* headers/config.h.in: new macro HAVE_LIBWRAP.
2000-07-30 Michael Vogt <mvo@debian.org>
* configure.in: check for libwrap and <tcpd.h>
* headers/config.h.in: new macros HAVE_TCPD_H
2000-07-27 Michel Vogt
* libls/fts.c fts.h: new files to support BSD fts_*() functions.
2000-07-26 Alain Magloire
* configure.in: check for libpam and <security/pam_appl.h>.
* headers/config.h.in: new marcros HAVE_LIBPAM,
HAVE_SECURITY_APPL_H.
2000-07-18 Alain Magloire
* rexecd/rexed.c(error): get rid of the int error() varargs hack.
and put support for stdarg and vararg correctly.
2000-07-18 Alain Magloire
* inetd/inetd.c(main): Check for SIGPIPE too.
* inetd/inetd.c(run_service): New function, This the same code
when fork()ing in main(), but it put here so it could be reuse for
tcpmux.
* inetd/inetd.c(tcpmux): better support and change of prototype.
2000-07-18 Alain Magloire
* all C files and header files, we make a bold move and translate
the prototypes to ANSI C, instead of K&R for better compile time
warnings etc .. ansi2knr will the massaging for old C compilers.
2000-07-14 Alain Magloire
* libinetutils/openpty.c: ptys_open() call wrong arguments ...
* libinetutils/Makefile.am: AUTOMAKE_OPTIONS = ansi2knr all the
files are now prototype and we rely on ansi2knr to the right
thing.
2000-07-14 Alain Magloire
* configure.in: check for initgroups().
2000-07-08 Michael Vogt <mvo@debian.org>
* ftpd/Makefile.am (INCLUDES): Added $(PATHDEF_FTPDPID)
* paths: add PATHDEF_FTPDPID
2000-07-07 Alain Magloire
* glob/Makefile.am: EXTRA_DIST add configure.bat and SMakefile
2000-07-07 Matt Roberds
* ftp/cmds.c/sethash(): read the optionnal argument for hash.
* ftp/ftp.1: update man page, hash take optional argument.
* ftp/ftp.c/sendrequests(): print hasbyte.
* ftp/ftp_var.h: hashbytes global var: number of bytes per #
printed.
2000-07-07 Alain Magloire
* configure.in: check for <shadow.h>
2000-07-06 Alain Magloire
* whois/Makefile.am : change the rule to generate config.c
* whois/gen-config-c: removed
2000-07-06 Michel Vogt
This is a Linux port of the BSD ls program. You probably aren't
interested in this, since GNU ls is much better (IMHO). But this
port is needed for internal ls on inetutils-ftpd.
2000-07-06 Jeff Bailey <jbailey@nisa.net>
* autogen.sh: New file for generating build environment for the
first time from a CVS checkout. Not added to Makefile.am for
distribution.
2000-07-05 Alain Magloire
* whois/*: Clause 3 removed. excerpt from email with RMS: "UCB
has agreed to drop the advertising clause from the license for all
BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* uucpd/*: Clause 3 removed. excerpt from email with RMS: "UCB
has agreed to drop the advertising clause from the license for all
BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* tftpd/*: Clause 3 removed. excerpt from email with RMS: "UCB
has agreed to drop the advertising clause from the license for all
BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* tftp/*: Clause 3 removed. excerpt from email with RMS: "UCB has
agreed to drop the advertising clause from the license for all BSD
software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* telnetd/*: Clause 3 removed. excerpt from email with RMS: "UCB
has agreed to drop the advertising clause from the license for all
BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* telnet/*: Clause 3 removed. excerpt from email with RMS: "UCB
has agreed to drop the advertising clause from the license for all
BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* talkd/*: Clause 3 removed. excerpt from email with RMS: "UCB
has agreed to drop the advertising clause from the license for all
BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* talk/*: Clause 3 removed. excerpt from email with RMS: "UCB has
agreed to drop the advertising clause from the license for all BSD
software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* rshd/*: Clause 3 removed. excerpt from email with RMS: "UCB has
agreed to drop the advertising clause from the license for all BSD
software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* rsh/*: Clause 3 removed. excerpt from email with RMS: "UCB has
agreed to drop the advertising clause from the license for all BSD
software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* rlogind/*: Clause 3 removed. excerpt from email with RMS: "UCB
has agreed to drop the advertising clause from the license for all
BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* rlogin/*: Clause 3 removed. excerpt from email with RMS: "UCB
has agreed to drop the advertising clause from the license for all
BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* rexecd/*: Clause 3 removed. excerpt from email with RMS: "UCB
has agreed to drop the advertising clause from the license for all
BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* rcp/*: Clause 3 removed. excerpt from email with RMS: "UCB has
agreed to drop the advertising clause from the license for all BSD
software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* logger/*: Clause 3 removed. excerpt from email with RMS: "UCB
has agreed to drop the advertising clause from the license for all
BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* libtelnet/*: Clause 3 removed. excerpt from email with RMS:
"UCB has agreed to drop the advertising clause from the license
for all BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* libinetutils/*: Clause 3 removed. excerpt from email with RMS:
"UCB has agreed to drop the advertising clause from the license
for all BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* inetd/*: Clause 3 removed. excerpt from email with RMS: "UCB
has agreed to drop the advertising clause from the license for all
BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* headers/*: Clause 3 removed. excerpt from email with RMS: "UCB
has agreed to drop the advertising clause from the license for all
BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-07-05 Alain Magloire
* ftp/*: Clause 3 removed. excerpt from email with RMS: "UCB has
agreed to drop the advertising clause from the license for all BSD
software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
2000-06-23 Jakob 'sparky' Kaivo <jkaivo@timothy.nodomainname.net>
* inetd/inetd.c (main): fix typo in usage
* inetd/Makefile.am (INCLUDES): add $(PATHDEF_INETDDIR)
* inetd/inetd.c (config): use nextconfig()
(nextconfig): new function
2000-06-23 Jakob 'sparky' Kaivo <jkaivo@timothy.nodomainname.net>
* paths: add PATH_INETDDIR
2000-06-15 David O'Shea
* rlogin/rlogin.c (speed): the fd may not be associated with a
terminal, when checking for speed(), take appropriate actions to
handle the error case.
2000-06-14 Joachim Gabler
* configure.in: add check for element ut_exit in struct utmp
* lininetutils/utmp_logout: check for HAVE_UTMP_UT_EXIT
* libinetutils/openpty.c: smaller fixes (missing ';', structure
element gr_pid of struct group replaced by gr_gid
2000-03-28 Alain Magloire
* telnetd/sys_term.c: STREAMSPTY change for HAVE_STREAMSPTY UTMPX
change for HAVE_UTMPX.
* telnetd/sys_term.c: modutx() change for updwtmpx().
* telnetd/telnetd: STREAMSPTY change to HAVE_STREAMSPTY
2000-03-28 Alain Magloire
* libinetutils/Makefile.am : added PATHDEF_WTMPX in INCLUDES.
* libinetutils/libinetutils/utmp_logout.c: WTMPX_FILE change for
PATH_WTMPX.
Adding poll() bring to light that we do the creation of sockets
inside init(), this has the unfortunate side effect of close()ing
and recreating the sockets at every SIGHUP. This was done to
speedup initialization of syslogd, since on GNU/Linux the rc.*
files would start klogd also. This is also the reason for a waitdaemon():
"Wed Feb 14 12:42:09 CST 1996: Dr. Wettstein
Parent process of syslogd does not exit until child process has
finished initialization process. This allows rc.* startup to
pause until syslogd facility is up and operating."
* syslogd/syslogd.c (init): Remove call to creation of sockets and
move it to the main() before going in the loop.
2000-08-06 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (add_funix): New function to add new unix
sockets.
2000-08-06 Alain Magloire
* syslogd/syslogd.c (init): Remove restriction of LINE_MAX by
reallocating the buffer when the line is too long, by doing this
the continuation line feature was more straightforward. The
downfall is dealing with out of memory errors. But the code, so
far, does not deal with this anywhere.
(domark): signo ignored.
(init): signo ignored.
(dbg_toggle): signo ignored.
(trigger_restart): signo ignored. Remove superfluous
initializations of global and static variables.
2000-08-05 Alain Magloire
Remove restrictions on options -l, -s, better compliance to GNU
coding rules .i.e no limits in the number of possible open sockets.
Code indenting to conform to GNU style.
* syslogd/syslogd.c: Use ``const'' consistenly for readonly
strings; cfline(), dbg_printf(), logerror(), etc ...
Prototypes/declarations use ``void'' for consistency. Standardise
all function definitions, so ansi2knr could do its job properly.
(create_inet_socket): Variable ``on'' unuse.
(usage): try_help() and help() merge to usage (int). usage() is
pass an integer and exit(err);
(main): Remove setlinebuf() use setvbuf() only.
(main): Regroup unix sockets and fd's into the same structure
easier to carry. Remove restriction on 19 + 1 possible open unix
sockets.
(crunch_list): Take one more argument, the oldlist so it can be
reallocated for new entries. This removed the restrictions of the
number of LocalHosts and StripDomains.
2000-08-05 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (help): --no-forward does not override -r, but
-h.
(init): Create inet socket if either AcceptRemote or Forwarding is
true, but with Forwarding only if not --no-forward was provided.
This is less restrictive than before, where --no-forward would
prevent incoming messages allowed with -r, which was documented
but not intended.
* syslogd/syslogd.8: Document (badly) all the new options from
last change.
2000-08-04 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c: In the whole file, change the formatting to
conform to the GNU coding standards. Also clean up some debug and
error messages. All further functional changes are listed below.
Initialize finet and fklog to -1. New variables NoKLog, NoUnixAF,
NoForward, long_options, program_name. New symbols USAGE,
TTYMSGTIME.
(help): New function.
(try_help): New function.
(usage): Use try_help.
(main): Don't initialize finet, fklog here. Initialize
program_name. Use getopt_long instead getopt. Handle option '&'
(--help). Handle unknown options with try_help and usage. Handle
long options 'P' (--pidfile), 'F' (--no-foward), 'K' (--no-klog),
'U' (--no-unixaf). Move initialization of tv into the main loop.
select meddles with the timeval on some systems (Linux) and we
don't want to take any risk.
(init): (Re-) Initialize fklog here if not NoKLog. Only open unix
sockets if not NoUnixAF. Failing to open the primary socket is
fatal. Only open inet socket if not NoForward.
(fprintlog): More diagnostic in case F_FORW: Show debug info when
forwarding is disabled or finet is invalid for other reasons.
(wallmsg): Use TTYMSGTIME instead hard coded default.
(cfline): In case '|' fix nasty bug in if clause.
2000-08-03 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (waitdaemon): Removed.
(timedout): Removed.
2000-08-03 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c: If HAVE_SYS_TYPES_H, include <sys/types> for
pid_t. New global variable fklog.
(main): Fix comment. Remove local variables fklog, sunx, sin.
(die): Close fklog if open.
(waitdaemon): Ansify.
(timedout): Likewise. Drop __unused attribute.
2000-08-03 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (waitdaemon, timedout): New prototype and
functions from FreeBSD syslogd (rev 1.66).
(main): Remove conditional MSG_BSIZE on line variable. New
variables tv, tvp, ppid. Call waitdaemon instead daemon to fork
into background. Before main loop, initialize tv and tvp to zero.
In main loop, pass tvp to select. This will make syslogd return
immediately until we set tvp to NULL. Check return value of
select. If it is zero (no messages), and tvp is not NULL, set it
to NULL and send parent a SIGALRM. This will be its signal to
terminate.
2000-08-03 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c: Include <stdarg.h>.
(struct msg_part): Fix type declaration.
(main): Rename variable c to l. Initialize all of funix, finet to
-1. Remove dangling closing brace. Main loop: Declare variable
nfds. Pass argument to init. Add missing parentheses to
if-clause. Back out from using printchopped in unix and inet
socket handling, not only because it doesn't work, but also
because it is utterly nonsense without the S_STREAM patch.
(make_part): Add missing brace.
(die): Add missing variable i.
2000-08-03 Marcus Brinkmann <marcus@gnu.org>
This covers the following Linux changes:
Thu Jan 6 12:07:36 CST 1994: Dr. Wettstein
Also thanks to Juha for a patch to exclude users with a class
of LOGIN from receiving messages.
Mon Oct 12 20:22:59 CEST 1998: Martin Schulze <joey@infodrom.north.de>
Added support for setutent()/getutent()/endutend() instead of
binary reading the UTMP file. This is the the most portable
way. This allows /var/run/utmp format to change, even to a
real database or utmp daemon. Also if utmp file locking is
implemented in libc, syslog will use it immediately. Thanks
to Topi Miettinen <tom@medialab.sonera.net>.
* syslogd/syslogd.c: Include <utmpx.h> instead <utmp.h>.
(wallmsg): Use pointer to struct utmpx, not struct utmp. Fix the
size of line accoridngly. Use setutxent instead opening the utmp
file ourself. Use getutxent instead fread. Don't log to ut_type
LOGIN_PROCESS, and don't log to ut_user LOGIN (paranoia check).
Use ut_user instead ut_name. Use endutxent instead fclose.
2000-08-02 Marcus Brinkmann <marcus@gnu.org>
This is among others the equivalent to the following Linux change:
Thu Jan 6 12:07:36 CST 1994: Dr. Wettstein
Added support for proper decomposition and re-assembly of
fragment messages on UNIX domain sockets. Lack of this capability
was causing 'partial' messages to be output. Since facility and
priority information is encoded as a leader on the messages this
was causing lines to be placed in erroneous files.
* syslogd/syslogd.c: New symbol INITIAL_PARTS. New struct
msg_part, new global variables parts, nparts.
(get_part): New prototype, new function.
(free_part): Likewise.
(make_part): Likewise.
(printchopped): Likewise.
(main): New variable c. Allocate initial parts table after
installing signal handlers. In main loop, use c instead i to
count through funices. If a read from a unx domain socket returns
0, close this fd. Use printchopped instead printline to support
partial messages (a bit messy though).
2000-08-02 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c: Remove global variable InetInuse.
(main): Check finet instead InetInuse.
(fprintlog): Case F_FORW: Only try to forward message when finet
is valid.
(die): Check finet instead InetInuse.
(init): Don't fiddle InetInuse.
(cfline): Case '@': Don't check InetInuse (instead we check finet
in fprintlog, see above).
2000-08-02 Marcus Brinkmann <marcus@gnu.org>
Merged from the Linux source (sysklogd 1.3):
* syslogd/syslogd.c: New global variable restart.
(main): Main loop: If restart is set, call init() and reset
restart. Install sighup_handler as SIGHUP handler.
(sighup_handler): New prototype, new function.
2000-08-02 Marcus Brinkmann <marcus@gnu.org>
I think this is among others the equivalent to the following Linux change:
Mon Feb 23 23:32:35 CET 1998: Topi Miettinen <Topi.Miettinen@ml.tele.fi>
Re-worked handling of Unix and UDP sockets to support closing /
opening of them in order to have it open only if it is needed
either for forwarding to a remote host or by receiption from
the network.
* syslogd/syslogd.c (FDMASK): Removed.
(create_unix_socket): New prototype, new function.
(create_inet_socket): Likewise.
(main): Remove variables funix, inetm, klogm. Move SUN_LEN and
creation of unix domaim sockets/inet socket to create_*_socket and
init(). When opening PATH_KLOG, use fklog to store result. Main
loop: Rediddle code to use a fd_set and FD_* operations instead an
int and bit operations. New variable maxfds to store highest fd.
Check fklog before checking fklog fd bit. Check InetInuse before
checking inet fd bit. Clear buffer line before reading inet
message.
(die): Close inet socket.
(init): New variable Forwarding and sp. Check here for service
syslog/udp instead in main. Set Forwarding when appropriate (one
of F_FORW* types). Looping over funix here, closing and
(re)opening unix sockets using create_unix_socket. Closing and
opening inet socet as appropriate.
2000-08-02 Marcus Brinkmann <marcus@gnu.org>
This is the equivalent to the following Linux change:
Mon Oct 12 14:02:51 CEST 1998: Martin Schulze <joey@infodrom.north.de>
Applied patch provided vom Topi Miettinen with regard to the
people from OpenBSD. This provides the additional '-a'
argument used for specifying additional UNIX domain sockets to
listen to. This is been used with chroot()'ed named's for
example. See for http://www.psionic.com/papers/dns.html
* syslogd/Note: The above link is actually ".../papers/dns/".
* syslogd/syslogd.c (LogName): Remove global variable.
(nfunix, funixn, funix): New global variables.
(MAXFUNIX): New symbol.
(main): Add option '-a' to getopt() invocation. Learn the
alphabet. Add '-a' option processing. Convert '-p' option to
funixn. Don't unlink LogName (doesn't exist anymore). Create
nfunix unix sockets in funix (using funixn)
(also unlink funixn here). Main loop: Diddle the readfds
initialization a bit. Initialize nfds on the way. Loop over all
funix sockets and add their descriptors. In select call, use
nfds+1 and not arbitrary 20. Later, check all funix for available
reads.
(usage): Document '-a' option.
(die): Don't unlink LogName, instead close and unlink all unix
sockets in funix.
2000-08-01 Marcus Brinkmann <marcus@gnu.org>
This is the equivalent to the following Linux change:
Mon Oct 12 20:49:18 MET DST 1998: Martin Schulze <joey@infodrom.north.de>
Avoid logging of SIGCHLD when syslogd is in the process of
exiting and closing its files. Again thanks to Topi.
* syslogd/syslogd.c (init): New variable was_initialized. Set
Initialize to 0 temporarily to avoid logging of SIGCHLD.
2000-08-01 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (main): Really fix getopt argument this time.
Break after acting on option '-n'.
(crunch_list): Remove semicolon that makes a prototype from the
implementation (doh!).
2000-08-01 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (usage): Beautify with package name and
version number.
2000-08-01 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (cvthname): Fix some really stupid errors in
last change.
2000-08-01 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (domark): Don't log mark if MarkInterval is <=
0.
* syslogd/syslogd.8 (SYNOPSIS): Add '-l', '-r', '-n' and '-s'
(oops). Document behaviour of '-m 0'.
2000-08-01 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c: Fix prototype of debug_switch.
(cfline): In case '|', check for terminal and console. In case
'/', rearrange this very check.
(debug_switch): Fix parameter list to match prototype. Don't
install signal handler here.
* syslogd/syslogd.c (repeatinterval): Shorten from 30, 120, 600 to
30, 60. This is what Linux sysklogd 1.3 uses.
2000-07-31 Marcus Brinkmann <marcus@gnu.org>
This is the equivalent to the following Linux change:
Mon Feb 10 00:09:11 MET DST 1997: Martin Schulze
Improved debug code to decode the numeric facility/priority
pair into textual information.
* syslogd/syslogd.c (textpri): New prototype and function.
(logmsg): Use textpri in log message.
2000-07-31 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (cfline): Instead number 0 use char '\0'.
Make debug output nicer by better alignment.
2000-07-31 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (init): Replace hard coded "/dev/console" by
PATH_CONSOLE.
2000-07-31 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (cfline): Fix off-by-one error. We have to
take into account "LOG_MARK" which has facility number
LOG_NFACILITIES.
2000-07-31 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (main): Add "-s" option to getopt invocation.
2000-07-31 Marcus Brinkmann <marcus@gnu.org>
This is based on the equivalent Linux change:
Thu Oct 19 00:02:07 MET 1995: Martin Schulze
The default behavior has changed for security reasons. The
syslogd will not receive any remote message unless you turn
reception on with the "-r" option.
* syslogd/syslogd.c (AllowRemote): New global variable.
(main): New option "-r" to set AllowRemote. Only if AllowRemote
is true add inetm to readfds and check for messages from there.
(usage): Document new option "-r".
(init): In start-up message, show if we allow remote messages.
* syslogd/syslogd.8: Document new option "-r".
(init): In start-up message, show package name and version number
(like: "GNU inetutils 1.3.2c").
2000-07-31 Marcus Brinkmann <marcus@gnu.org>
This is the equivalent to the following Linux changes:
Audit: Coding style to comply to GNU style, cleanup the code
to be ANSI C, provide the necessary prototypes, reinforce const
policy for strings, move functions definitions only where
they are use and make them static scope if possible, variables
not exported are change to static scope, all function declarations
are ANSI C and rely on ansi2knr for OS lacking, nuke non-portable
semantics, POSIX functions/behaviour are followed intead of BSD.
The definition for setproctitle is remove, this function is to
machine dependant and we did not get it right, if the OS supplies
we'll use it. The approach later will be to provide a fairly
portable of setproctitle() and get configure to the rigth thing, with
AC_REPLACE_FUNC (setproctitle).
* ftpd/ftpd.c: allow_severity, deny_severity should be guarded
with [HAVE_TCPD_H]. Move all globals to <extern.h>. Remove
[SETPROCTITLE] add [HAVE_SETPROCTITLE]
[HAVE_INITSETPROCTITLE], remove setproctitle () definition.
(main): SA_LEN () macro not portable remove. Variable "quiet"
change for "no_version".
(reapchild): Use waitpid ().
(user): Remove previous code handling of PAM. and move the
relevant pieces to sgetpwnam ().
(user): when strncpy ()ing curname make sure we null terminate the
string.
(user): complete_login () call removed form user ().
(delete): Use the portable S_ISDIR () marcro.
(main): Don't typecast signal () use SIG_ERR.
(display_file): New function.
(statcmd): Global variable mode, rename to the more informative
stru_mode, it was also shadowing a lot of local variable mode, for
fopen ().
(main): Remove initialization of global variables and initialize
when defined.
(main): New option '-p' to override pid file.
(main): Adding SO_KEEPALIVE, to let the tcp/ip stack detect when
the connection been drop, IPTOS_LOWDELAY for the control
connection and IPTOS_THROUGHPUT for the data connection.
* ftpd/ftpcmd.y: Remove definition of yyerror () from ftpd.c and
move it to ftpcmd.y, result "cbuf" static scope. Move all globals
to <extern.h>. Move declaration of cmdtab[] and sitetab[] to
<extern.h>.
* ftpd/conf.c: New file, define checkuser () and display_file ().
* ftpd/pam.c: New file, define PAM related functions.
* ftpd/wrap.c: New file, define TCPD related functions.
* ftpd/server.c: New file, move all related standalone function to
this module reapchild (), server_mode () and tcpd wrapper
handling.
2000-08-10 Michael Vogt <mvo@debian.org>
* ftpd/ftpd.c: cleaned up PAM code.
2000-07-30 Alain Magloire
* ftpd/ftpd.c: protect initgroups() with HAVE_INITGROUPS.
2000-07-30 Michael Vogt <mvo@debian.org>
* ftpd/ftpd.c (main): added TCP_WRAPPER support for daemon mode.
2000-07-26 Michael Vogt <mvo@debian.org>
* ftpd/ftpd.c (pass): added pam support.
2000-07-08 Michael Vogt <mvo@debian.org>
* ftpd/ftpd.c (main): added new option "-A" anonymous login only
added new option "-q" quiet to do not print ftpd version.
2000-07-08 Michael Vogt <mvo@debian.org>
* ftpd/ftpd.c (main): added new option "-D" for daemon-mode, ftpd
can now run without inetd.
2000-07-07 Alain Magloire
* ftpd/ftpd.c (sgetpwnam): if HAVE_GETSPNAM && HAVE_SHADOW_H, call
getspnam() to get the encrypted passwd.
2000-07-06 Michel Vogt
* ftpd/popen.c: Instead of spwaning "/bin/ls" use the internal ls
from libls.a.
* ftpd/ftpd.c: use setproctitle ("%s", protittle);
2000-07-05 Alain Magloire
* ftpd/*: Clause 3 removed. excerpt from email with RMS: "UCB has
agreed to drop the advertising clause from the license for all BSD
software. The advertising clause is this one:
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement: This product
includes software developed by the University of California,
Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
1999-17-02 Alain Magloire
* tftpd/It has to do with handling of files with more than 32766
blocks. The TFTP packets should be able to handle up to 65535
blocks. But many tftpd's seem to treat the block# as a short
instead of an unsigned short. This appears to be caused by the
arpa/tftp.h header declaring it as a short. The relevant RFC's do
not indicate that this is supposed to be the case. Patch and
Email exchange from Nathan Neulinger.
1999-17-02 Alain Magloire
* rexecd/rexecd.c : check HAVE_SOCKADDR_IN_SIN_LEN before doing
static initialization.
* rexecd/Use STD{IN, OUT, ERR}_FILENO.
* rexecd/Set also sete{g, u}id(pw->{g, u}id).
* rexecd/Set the number of file desc. for select() correctly.
* rexecd/Initialize pid to 0;
* rexecd/Use FD_ISSET/FD_CLR/FD_SET macros instead.
1999-10-03 Jeff Bailey
* README-alpha: Update with CVS info and mailing list info.
* THANKS: Add Marcus Brinkmann.
1999-09-13 Jeff Bailey
* COPYING, INSTALL, aclocal.m4, install-sh, missing,
mkinstalldirs: Remove from CVS repository - They are automatically
generated.
1999-06-12 Jeff Smith
* ftp/cmds.c/getit(): Y2K problem with MDTM.
* ftp/cmds.c/{setntrans, dotrans}(): use
sizeof(ntin)/sizeof(ntout) instead of hardcoded numbers(was 16).
* ftp/cmds.c/account(): occurences of 49 change for sizeof(acct) -
1
* ftp/cmds.c: Typos in comments corrected.
1999-05-19 Jeff Bailey
* uucpd/Makefile.am : add LIBUTIL, needed for the Hurd.
1999-05-19 Alain Magloire
* telnetd/telnetd.h: If HAVE_PTSNAME is defined, we assume that
the platform can handle SYSVR4 pseudo ttys and define STREAMSPTY.
1999-05-19 Alain Magloire
* rlogind/rlogind.c : make an utmp entry before exec(login);
remove entry in cleanup().
1999-05-19 Jeff Bailey
* rlogind/Makefile.am : add LIBUTIL, needed for the Hurd.
1999-05-19 Alain Magloire
* ftp/ruserpass.c: MACH was define on Hurd. We protect the
defines before using them, MACH was change to MACHINE. Noted by
the Hurd people (Jeff Bailey, Marcus Brinkmann)
* cmds.c: use xgetcwd().
1999-05-19 Alain Magloire
* configure.in : check for ptsname(), this will give a hint to use
SYSVR4 pseudo ptys handling. particularly for telnetd and
rlogind.
* libinetutls/utmp_{init, logout} : new files.
* libinetutils/openpty.c : a new version that should be compatible
with SYSV STREAM.
* paths : add check for PATH_UTMPX and PATH_WTMPX
* configure.in : add check for getcwd, since we use xgetcwd.
1999-05-18 Dan Stromberg
* headers/arpa/tftp.h : changing tu_clock to be unsigned to handle
larger files (twice as big), without sacrificing anything. We
need this to allow sgis to roboinst from a sun tftp server.
1999-05-16 Alain Magloire
* config.guess, config.sub: files removed from the repository. We
let automake -a create a newer version when releasing From Jeff
Bailey.
* Makefile.am : added ChangeLog.0 in EXTRA_DIST Noted by Jeff
Bailey.
1999-05-14 Alain Magloire
* libinetutils/opentty.c : writing on a constant string
"/dev/ptyXX" would cause the server to sigsegv. Change to be an
array. Problem first noted by Frederic Goudal.
1999-04-18 Alain Magloire
* whois/main.c : protect FN_* defines.
1999-04-18 Alain Magloire
* configure.in: ping disable.
* configure.in: make links for fnmatch
* libinetutils/snprintf.[ch] : support for "%ul". patch from
Gerald Combs <gerald@unicom.net>
1999-03-13 Alain Magloire
* rshd/ChangeLog : New file.
* rshd/Use STD{IN, OUT, ERR}_FILENO.
* rshd/Use memcmp() instead of bcmp().
* rshd/Add LOGNAME to environment variable exported to child.
* rshd/Restricted port to > IPPORT_RESERVED/2 && >=
IPPORT_RESERVED
* rshd/Set also sete{g, u}id(pwd->{g, u}id).
* rshd/change doit() signature to pass the socket. It was done in
case we change and the server is not started via inetd.
* rshd/initialise s(socket descriptor) s = (sockfd).
* rshd/Add more comments.
1999-03-13 Alain Magloire
* rsh/ChangeLog : New file.
* rsh/Before doing an exec revert euid to real uid.
* rsh/Use the right maxfd in select().
1999-02-26 Alain Magloire
The security fixes are gather from different sources: folks of
OpenBSD, FreeBSD, Debian, Redhat and wu-ftpd. Heads-up for their
nice work.
* ftpd/popen.c : overflow in argv[] and gargv[] fix.
1999-02-17 Alain Magloire
* telnetd/rexecd.c : check HAVE_SOCKADDR_IN_SIN_LEN before doing
static initialization.
1999-02-17 Alain Magloire
* ftpd/ftpd.c(send_data): Use mmap() if possible, HAVE_MMAP.
* ftpd/extern.h : Add toolong() to be exported.
* ftpd/ftpcmnd.y : toolong() no longer a static function.
* ftpd/ftpd.c : Set the alarm(timeout) when doing an accept() for
the data port and use signal(SIGALRM, toolong).
* ftpd/ftpd.c(maing): tzset(), in case no timezone database in
~ftp.
* ftpd/ftpd.c(datacon) : Use snprintf() instead of sprintf() for
fix array buffers. Assign *sizebuf ='\0' instead of strcpy
(sizebuf, "");
* ftpd/Use xgetcwd() from libinetutils instead of getcwd();
1999-02-17 Alain Magloire
* configure.in: Force the check of HAVE_SOCKADDR_IN_SIN_LEN all
the time not just for talk.
* configure.in: Check for mmap(), HAVE_MMAP.
* configure.in: Check for tzset(), HAVE_TZSET.
* configure.in: Check for strcasecmp().
* libinetutils/strcasecmp.c: New file.
* libinetutils/xgetcwd.c: New file.
* libinetutils/pathmax.h: New file.
1999-02-13 Alain Magloire
* ftpd/ftpcmd.y : PORT command disallow PORT if: - port <= 1023 ||
data_addr.sin_addr != his_addr.sin_addr This will take care of FTP
bounce. See README.sec
* ftpd/ftpcmd.y : PASS clear passwd var(memset) asap.
* ftpd/ftpcmd.y : PASV check if loggin.
* ftpd/ftpcmd.y : RNTO check loggin and free $4 pointer.
* ftpd/ftpcmd.y : HELP free $3 pointer.
* ftpd/ftpcmd.y : SITE free $5 pointer.
* ftpd/ftpcmd.y : RNFR free $4 pointer.
* ftpd/ftpcmd.y : MDTM year 2000 compliant use %04d (tm_year +
1900).
* ftpd/ftpcmd.y : SITE IDLE not permit to disable timeout and
check login.
1999-02-13 Alain Magloire
* ChangeLog.0 : New file, mv ChangeLog ChangeLog.0. Since
inetutils is such an heteroclite package, it is more manageable
for each utility to have their own ChangLog.
* */ChangeLog : New files.
Sat Jul 20 21:55:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Win32 hacks from <Rob_Tulloh@tivoli.com>.
* glob/posix/glob.c [WIN32]: Don't include <pwd.h>; don't use
d_ino; use void * for my_realloc; include <malloc.h> for alloca.
(glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
* glob/posix/fnmatch.h [WIN32]: Use prototypes even if
[!__STDC__].
* glob/posix/glob.h: Likewise.
Fri Jul 19 16:56:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* glob/posix/glob.h [!_AMIGA && !VMS]: Check this instead of just
[!_AMIGA] for `struct stat;' forward decl.
Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* glob/posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not
[sparc].
Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* glob/posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment
name ptr only for ?s, not for *s. Fix from Chet Ramey.
Wed Nov 22 22:32:55 1995 Martin Schulze
Added the fabulous strip-domain feature that allows us to
strip off (several) domain names from the fqdn and only log
the simple hostname. This is useful if you're in a LAN that
has a central log server and also different domains.
I have also also added the -l switch do define hosts as
local. These will get logged with their simple hostname, too.
* syslogd/syslogd.c (LIST_DELIMITER): New symbol.
(StripDomains, LocalHosts): New variables.
(crunch_list): New prototype and function.
(main): New options "-s" and "-l".
(usage): Document "-s" and "-l".
(cvthname): Use StripDomains and LocalHosts to frob the hostname
before returning.
* syslogd/syslogd.8: Document new options "-s" and "-l".
2000-07-31 Marcus Brinkmann <marcus@gnu.org>
Merged from the Linux source (sysklogd 1.3):
* syslogd/syslogd.c (F_FORW_SUSP): New symbol.
(F_FORW_UNKN, F_PIPE): Increment value, to make space for
F_FORW_SUSP.
(TypeNames): Insert name for F_FORW_SUSP.
(fprintlog): Add case for F_FORW_SUSP. In case F_FORW use
F_FORW_SUSP on error (and not F_FORW_UNKN). Add debug message.
(init): Handle case F_FORW_SUSP in debug output like F_FORW.
2000-07-31 Marcus Brinkmann <marcus@gnu.org>
* syslogd/syslogd.c (NoDetach): New global variable.
(main): New option "-n". If NoDetach is true, don't background
and detach from controlling terminal.
(usage): Document new option n.
* syslogd/syslogd.8: Document new option "-n".
2000-07-05 Alain Magloire
*syslogd/: Clause 3 removed. excerpt from email with RMS: "UCB
has agreed to drop the advertising clause from the license for all
BSD software. The advertising clause is this one:
3. All advertising materials mentioning features or use of
this software must display the following acknowledgement:
This product includes software developed by the
University of California, Berkeley and its contributors.
This means that we can delete that paragraph from all files which
give the University of California as the only copyright holder."
1999-10-01 Marcus Brinkmann <brinkmd@debian.org>
* syslogd/syslogd.c (main): Type of len changed from int to
size_t.
(usage): Add -V option, make output consistent with other GNU
tools.
* syslogd/syslogd.8: Document "-V" option.
* syslogd/syslogd.c (logmsg): Only accept priority if the exact
bit is set (instead of an inequality).
(cfline): negate_pri, excl_pri, pri_set, pri_clear: New variables.
Allow '!' and '=' prepended to priority specification to exclude
these resp. higher priorities.
* syslogd/syslogd.c (printline): Add SYNC_FILE to logmsg
invocation for more reliability.
(struct filed): New member f_flags to hold new macro OMIT_SYNC.
(logmsg): Only fsync if OMIT_SYNC is not set.
(cfline): Clear f_flags at initialization. Set OMIT_SYNC in
f_flags if action is prepended by `-' in the conf file.
* syslogd/syslog.conf.5: Document level modifiers '!' and '='.
Add `-' rule.
1999-10-01 Marcus Brinkmann <brinkmd@debian.org>
This is the equivalent to the following Linux change:
Wed Feb 14 12:42:09 CST 1996: Dr. Wettstein
Allowed forwarding of messages received from remote hosts to
be controlled by a command-line switch. Specifying -h allows
forwarding. The default behavior is to disable forwarding of
messages which were received from a remote host.
* syslogd/syslogd.c: New global variable "NoHops".
(main): New option "-h" to clear NoHops.
(usage): Document new "-h" option.
(fprintlog): New argument (char *) from. If from != LocalHostName
and NoHops set, don't forward message.
(logmsg): Add from argument to fprintlog invocation.
(domark): Likewise.
(die): Likewise.
(init): Likewise.
* syslogd/syslogd.8: Document new "-h" option.
1999-10-01 Marcus Brinkmann <brinkmd@debian.org>
This is the equivalent to the following Linux change:
Wed Jul 26 18:57:23 MET DST 1995: Martin Schulze
The 'LocalDomain' and the hostname of a remote machine is
converted to lower case, because the original caused some
inconsistency, because the (at least my) nameserver did respond an
fqdn containing of upper- _and_ lowercase letters while
'LocalDomain' consisted only of lowercase letters and that didn't
match.
* syslogd/syslogd.c (main): Try harder to get the FQDN of
localhost and convert LocalDomain to lowercase. (This should
probably be in libinetutils).
(cvthname): Add "." to output strings. Convert hostname to
lowercase before comparing with LocalDomain.
1999-10-01 Marcus Brinkmann <brinkmd@debian.org>
This is the equivalent to the following Linux change:
Tue May 28 00:58:45 MET DST 1996: Martin Schulze
Corrected behaviour of blocking pipes - i.e. the whole system
hung. Michael Nonweiler <mrn20@hermes.cam.ac.uk> has sent us
a patch to correct this. A new logfile type F_PIPE has been
introduced.
* syslogd/syslogd.c: New macro F_PIPE.
(TypeNames): New logfile type PIPE.
(fprintlog): Support for F_PIPE added.
(init): Likewise.
(cfline): Likewise, use '|' in conf file.
(cfline): Open log files with O_CREAT and permission 0644.
* syslogd/syslog.conf.5: Add documentation for new logfile type
PIPE.
1999-10-01 Marcus Brinkmann <brinkmd@debian.org>
This is the equivalent to the following Linux change:
Mon May 20 13:29:32 MET DST 1996: Miquel van Smoorenburg <miquels@cistron.nl>
Added continuation line support.
* syslogd/syslogd.c (init): Add support for continuated lines
(implemented by Miquel van Smoorenburg <miquels@cistron.nl>).
* syslogd/syslog.conf.5: Mention continuated line feature.
1999-10-01 Marcus Brinkmann <brinkmd@debian.org>
This is the equivalent to the following Linux change:
Mon Aug 21 22:10:35 MET DST 1995: Martin Schulze
Corrected a strange behavior during parsing of configuration
file. The original BSD syslogd doesn't understand spaces as
separators between specifier and action. This syslogd now
understands them. The old behavior caused some confusion over
the Linux community.
* syslogd/syslogd.c (cfline): Allow space as delimiter.
* syslogd/syslog.conf.5: Seperator can now be a space, too.
1999-10-01 Marcus Brinkmann <brinkmd@debian.org>
This is the equivalent to the following Linux change:
Thu Oct 26 13:14:06 MET 1995: Martin Schulze
Added another logfile type F_FORW_UNKN. The problem I ran into
was a name server that runs on my machine and a forwarder of
kern.crit to another host. The hosts address can only be
fetched using the nameserver. But named is started after
syslogd, so syslogd complained.
This logfile type will retry to get the address of the
hostname ten times and then complain. This should be enough to
get the named up and running during boot sequence.
Sat Jan 10 01:33:06 CET 1998: Martin Schulze <joey@infodrom.north.de>
Fixed small bugs in F_FORW_UNKN meachanism. Thanks to Torsten
Neumann <torsten@londo.rhein-main.de> for pointing me to it.
* syslogd/syslogd.c: INET_SUSPEND_TIME, INET_RETRY_MAX,
F_FORW_UNKN: New macros. TypeNames: Add "FORW(UNKNOWN)". If
gethostbyname fails for some host, this type will retry
INET_RETRY_TIMES times before it finally fails.
(fprintlog): New variable hp. Move clearing f_time inside every
case it is appropriate for. Add new case F_FORW_UNKN. New goto
target f_forw. Only clear f_prevcount if appropriate.
(init): Do not close f_file for F_FORW. Add debug output for
F_FORW_UNKN.
(cfline): If gethostbyname fails, set f_type to F_FORW_UNKN
instead giving up instantly.
1999-06-08 Marcus Brinkmann <brinkmd@debian.org>
* syslogd/syslogd/syslogd.c (MAXSVLINE): Increase number.
(cfline): Double size of ebuf.
* syslogd/syslogd/syslogd.c (decode): Double buffer size.
199-08-07 Marcus Brinkmann <brinkmd@debian.org>
* syslogd/syslogd/syslogd.c (usage): Add -V option, make output
consistent with other GNU tools.
1999-08-07 Marcus Brinkmann <brinkmd@debian.org>
This is the equivalent to the following Linux change:
Mon Oct 12 22:18:34 CEST 1998: Martin Schulze <joey@infodrom.north.de>
Modified printline() to support 8bit characters - such as
russion letters. Thanks to Vladas Lapinskas <lapinskas@mail.iae.lt>.
* syslogd/syslogd/syslogd.c (printline): Make eight bit clean for
our friends in Russia (and other).
1999-06-08 Marcus Brinkmann <brinkmd@debian.org>
* syslogd/syslogd/syslogd.c (fprintlog): Use snprintf instead of
sprintf.
* syslogd/syslogd/syslogd.c: Fixed typo in comment.
* syslogd/syslogd/syslogd.c: Include <version.h>.
(main): Add option -V (version).
Copyright (C) 1999-2025 Free Software Foundation, Inc.
This file is part of GNU Inetutils.
GNU Inetutils is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at
your option) any later version.
GNU Inetutils is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see `http://www.gnu.org/licenses/'.
|