summaryrefslogtreecommitdiff
path: root/ChangeLog
blob: 67d8e18008bd7580b3fbaa409577c53e4773680c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2006-08-15  Jim Meyering  <jim@meyering.net>

	* Version 6.0.
	* NEWS: Record the 6.0 release date.
	* configure.ac (AC_INIT): Remove "-cvs" suffix from version string.

	* TODO: Add an item (convert to use gnulib-tool), add to the plan
	for id-vs-getgrouplist, and remove a few completed items.

2006-08-13  Jim Meyering  <jim@meyering.net>

	* src/shred.c (usage): Don't indent the second line of an item.
	Otherwise, help2man would misformat the output.
	Reported by Adam Buchbinder in <https://launchpad.net/bugs/48917>.

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

	* configure.ac (AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.
	Suggested by Eric Blake to avoid problems like
	<http://lists.gnu.org/archive/html/bug-coreutils/2006-07/msg00087.html>.

2006-08-11  Jim Meyering  <jim@meyering.net>

	* tests/ls/stat-vs-dirent: Too many (losing) systems trigger the
	failure that this test checks for (stat/dirent inode mismatch at
	a mount point), so continue to give a diagnostic about the failure,
	but don't actually count it as a failure.

2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>

	* ABOUT-NLS: Update from gettext 0.15.
	* configure.ac (AM_GNU_GETTEXT_VERSION): Update from 0.13.1 to 0.15.

	* src/csplit.c (struct control): Remove fastmap member.
	(extract_regexp): Allocate fastmap separately, since otherwise
	it might move due to a realloc.  This fixes a bug that led
	to a core dump on 64-bit sparc Solaris 10 (Sun Studio 10).

2006-08-10  Jim Meyering  <jim@meyering.net>

	* tests/ls/stat-dtype: If "." is tmpfs, skip this test unless uname -s
	reports "Linux".  This avoids a failure on Solaris 10's tmpfs.
	Redirect both stdout and stderr of df invocations.

	* src/dircolors.hin: Add a TERM directive for each of the following:
	ansi, color-xterm, gnome, konsole, kterm, rxvt-cygwin,
	rxvt-cygwin-native, screen.linux, xterm-256color.
	Sort the TERM directives.
	From Mike Frysinger.

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

	* src/dd.c (usage): Warn about oflag=append without conv=notrunc.
	See Debian bug 373736.

	* src/dircolors.hin: Add mlterm, rxvt-unicode; this fixes Debian
	bug 317503.

	* src/.cvsignore: Add shuf.

	* Makefile.maint: Remove the po-update procedure; it doesn't
	work with the new repository on http://www.iro.umontreal.ca/.
	For now I guess we'll have to fix things by hand.
	(do-po-update, po-update): Remove.  All references removed.

	* src/shuf.c (next_line): New function.
	(read_input): Use it, to avoid relying on GCC-specific behavior
	with void * arithmetic.  Problem reported by Bob Proulx.
	* Makefile.maint (my-distcheck): Compile with -Wpointer-arith
	to detect this sort of problem automatically in the future.

2006-08-09  Jim Meyering  <jim@meyering.net>

	* src/ls.c: Add a compile-time check to ensure that filetype
	and filetype_letter have the same number of elements.

	* tests/misc/sort-rand: Remove use of --seed=S.

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

	Add a command 'shuf', and modify shred and sort to use the new
	random number generator library of 'shuf'.

	* AUTHORS: Add shuf.
	* README: Likewise.
	* NEWS: Likewise.  Mention new --random-source option for shred
	and sort.  Move "sort +1 -2" notice to the appropriate section,
	and clarify its role with respect to POSIXLY_CORRECT.
	* man/.cvsignore: Add shuf.1.
	* man/Makefile.am (dist_man_MANS): Add shuf.1.
	(shuf.1): New dependency.
	* man/shuf.x: New file.
	* src/Makefile.am (bin_PROGRAMS): Add shuf.
	(EXTRA_DIST): Remove rand-isaac.c.
	(shuf_LDADD): New macro.
	* src/rand-isaac.c: Remove, moving most of its contents to
	lib/rand-isaac.c.
	* src/shuf.c: New file.
	* src/shred.c: Use new random-number interface rather than rand-isaac.c.
	Don't include rand-isaac.c; include randint.h and randread.h instead.
	(RANDOM_SOURCE_OPTION): New enum.
	(long_opts, usage, main): New option --random-source.
	* src/sort.c: Likewise.
	* src/shred.c (struct irand_state, irand_init, irand32, irand_mod): Remove.
	All callers changed to use randint interface.
	(fillrand): Remove.  All callers changed to use randread interface.
	(dopass): Remove dependency on ISAAC buffer size.
	(genpattern): Don't wipe the random state here.
	(randint_source): New static var.
	(clear_random_data): New function.
	(main): Allocate random source, and arrange to wipe it on exit.
	* src/sort.c: Include md5.h, randread.h, xmemxfrm.h.
	(longopts, usage, main): Remove undocumented --seed option;
	it's now replaced by --random-source.
	(rand_state, get_hash): Remove.
	(randread_source): New static var.
	(random_state, cmp_hashes, compare_random): New functions; they guarantee
	no collisions in the random hash function.
	(keycompare): Use compare_random for -R; don't fall back on comparing
	via memcoll, since compare_random does the right thing.
	* tests/misc/Makefile.am (TESTS): Add shuf.
	* tests/misc/shuf: New file.

2006-07-29  Paul Eggert  <eggert@cs.ucla.edu>

	* src/copy.c (set_author): Preserve the st_author field via the
	file descriptor dest_desc.

2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>

	* NEWS: chmod now preserves setuid and setgid bits on directories
	if you use a numeric mode with them clear, e.g., "chmod 755 DIR".

	Fix test case problems if working directory is setgid,
	reported by Bob Proulx.
	* tests/cp/fail-perm: Use symbolic mode so that we clear
	setgid bit more reliably on directories.
	* tests/mkdir/special-1 (set_mode_string): Likewise.

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

	* src/chgrp.c (usage): Use correct grammar in description of the
	--reference option
	* src/chown.c (usage): Likewise.

2006-07-26  Thomas Schwinge  <tschwinge@gnu.org>  (tiny change)

	* src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:
	Correctly access SRC_SB's element ST_AUTHOR.

2006-07-26  Jim Meyering  <jim@meyering.net>

	* tests/ls/stat-failed: Adapt to match new expected output.
	From Paul Eggert.

	* src/ls.c (print_color_indicator): Test for S_IFREG first, rather
	than having the code test for all of the other types first.
	Hoist the set-uid/gid-testing code "up" into this new block.
	Classify any other type of file (e.g., S_TYPEISSHM, etc.) as
	C_ORPHAN, not as C_FILE.

2006-07-26  Jim Meyering  <jim@meyering.net>

	Checking in a change from Paul.

	2006-07-25  Paul Eggert  <eggert@cs.ucla.edu>

	* src/ls.c (DT_INIT): Remove.  All uses removed.
	(enum filetype): Use an ordinary enum rather than trying to keep
	the values in sync with DT_FIFO etc.  That way, we don't have
	to make special assumptions about them.  All uses changed.
	(whiteout): New constant member of enum filetype.
	(filetype_letter): New constant, for use with enum filetype.
	(FILETYPE_INDICATORS): New initializer list.
	(print_dir): Add case for DT_WHT.
	(gobble_file): If stat fails, don't discard information from
	readdir; instead, preserve it so it can be printed.
	(print_long_format): Fall back on readdir result if stat info
	is not available.  Use "?" to denote each unknown mode char,
	instead of an overall "?", since we now know some of the mode
	typically.
	(print_type_indicator): Now that MODE isn't necessarily
	useful, guard all uses.
	Now that two blocks in the type-checking tree can set "type = C_FILE",
	move the suffix-handling code out and down.

2006-07-26  Jim Meyering  <jim@meyering.net>

	Prepare for the above change.
	* src/ls.c [struct fileinfo] (stat_ok): Rename from stat_failed,
	and adjust uses.  From a patch by Paul Eggert.

2006-07-26  Jim Meyering  <jim@meyering.net>

	* src/ls.c: Correct indentation/formatting in a few places.

2006-07-25  Paul Eggert  <eggert@cs.ucla.edu>

	* tests/cp/fail-perm: Use "chmod 0500" rather than "chmod 500".
	Problem report and fix from Bob Proulx.
	* NEWS: Clarify the "chmod 0500" news, and correct the vague
	statements about compatibility with BSD.

2006-07-25  Jim Meyering  <jim@meyering.net>

	* src/ls.c (gobble_file): When handling a stat-failed entry,
	print the entry name not the absolute_name -- to be consistent
	with the usual case.
	* tests/ls/stat-failed: Update accordingly.

	* src/ls.c: Add parens around the new uses of ?: ternary operator.

	* src/dircolors.hin: Mention that ORPHAN refers not just to dangling
	symlinks.

	Get --dired offsets right when handling stat-failed entries.
	* src/ls.c (print_long_format): Be careful to increment P by the
	appropriate amount, even when inode_number_width and nlink_width
	are zero.
	* tests/ls/stat-failed: Test for the above.

	* src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the
	have_acl member.  That would happen for a directory with both a
	non-stat'able entry and one with an ACL.

	* src/ls.c (gobble_file): Make it so failure to stat a
	non-command-line file provokes an exit status of 1, not 0.
	Say "cannot access" rather than "cannot stat".
	* tests/ls/stat-failed: New file/test, for the above.
	* tests/ls/Makefile.am (TESTS): Add stat-failed.
	* tests/ls-2/tests (no-a-isdir-b): Update to reflect addition
	of "cannot access " to diagnostic.

	* src/ls.c: Declare stat_failed to be "bool", not "int" everywhere.

	* src/ls.c [enum filetype] (command_line): Remove member.  Not needed.
	Replace all occurrences of "type == command_line" with the
	equivalent, "command_line_arg".

	* src/ls.c: Apply the stat-failed parts of Red Hat's
	coreutils-selinux.patch.  From Ulrich Drepper.
	This makes it so files not mentioned on the command line (e.g.,
	names read from a directory that *is* mentioned on the command
	line) for which stat fails are still listed.  With --color,
	such files are colored just like ORPHANs (aka dangling symlinks).

	* src/df.c (n_valid_args): Declare global to be static.

2006-07-24  Jim Meyering  <jim@meyering.net>

	* tests/ls/stat-dtype: Skip this test on reiserfs, since that file
	system lacks d_type support.

2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>

	* man/chmod.x: Update to reflect recent changes to coreutils.texi.

2006-07-21  Jim Meyering  <jim@meyering.net>

	* src/su.c (usage): Correct typo in --help output: s/commmand/command/
	Reported by Tim Waugh.
	Also remove the comment duplicating much of --help output.

	* src/ls.c (FILE_TYPE_INDICATOR_OPTION): Reposition this new
	name so the list remains alphabetized.

	Fix another bug: ls --indicator-style=file-type would call
	stat for a symlink, even though it wasn't always needed.
	In some cases, that unnecessary stat would cause ls to fail.
	* src/ls.c (gobble_file): Don't treat symlinks specially (in
	requiring a stat syscall).  Remove the offending exclusion.

	* NEWS: Mention the fix.

	* tests/ls/stat-dtype: New file/test, for the above fix.
	Also exercises the new df feature, below.

	* src/df.c (main): Fail and don't print the headers if no
	file system is processed.  This makes it easy to test whether
	a specified directory is on a file system of a given type or types.
	Otherwise, applications would have had to parse df's output.
	E.g., is "." either ext3 or reiserfs: df -t ext3 -t reiserfs .

	Fix a bug: ls --file-type worked like --indicator-style=slash,
	rather than like --indicator-style=file-type.
	* src/ls.c (FILE_TYPE_INDICATOR_OPTION): New enum member.
	(long_options): Map "file-type" to FILE_TYPE_INDICATOR_OPTION,
	not to 'p'.
	(decode_switches): Handle new case: FILE_TYPE_INDICATOR_OPTION.
	* NEWS: Mention the fix.
	* tests/ls-2/tests (file-type): New test, for the above fix.

2006-07-19  Jim Meyering  <jim@meyering.net>

	* src/ls.c (print_dir): Give a better diagnostic for failed opendir.

	* Makefile.am (EXTRA_DIST): Add build-aux/vc-list-files.

2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>

	* NEWS: chmod, install, and mkdir now leave setgid and setuid bits
	of directories alone unless you specify them explicitly.
	install and mkdir now implement X correctly.
	install now creates parent directories with mode 755, without
	changing their owner or group.
	* src/chmod.c (process_file): Adjust to mode_adjust API change.
	* src/install.c: Include mkancesdirs.h.
	(announce_mkdir, make_ancestor): New functions.
	(DEFAULT_MODE): New macro, specifying initial value of 'mode'.
	(mode): Use it.
	(dir_mode, dir_mode_bits): New vars.
	(main): Set dir modes separately from nondir, so that the X
	op of -m works correctly.
	(main): Remove cwd_errno cruft, since make_dir_parents no longer
	affects cwd.  Adjust to new make_dir_parents API.
	(install_file_in_file_parents): 2nd arg is now char *, not char
	const *.  Use mkancesdirs instead of rolling our own code.
	(change_attributes): Don't worry about AFS, since that kludge
	should not be needed any more.
	* src/mkdir.c (struct mkdir_options): New struct.
	(announce_mkdir, make_ancestor): New functions.
	(main): Use them.  Adjust to mode_adjust API change.  Stick with
	umask 0.  Use make_dir_parents for all the work.
	* src/mkfifo.c (main): Adjust to new mode_adjust API.
	* src/mknod.c (main): Likewise.
	* tests/chmod/setgid: Do the setgid test instead of bailing.
	* tests/mkdir/p-3: Remove re_protect case that no longer applies.
	GNU chmod now behaves like other versions of chmod.
	* tests/mkdir/perm: Add a test for the X bug.

2006-07-14  Paul Eggert  <eggert@cs.ucla.edu>

	* src/base64.c (do_decode): Output to parameter OUT, not to stdout.
	This doesn't fix any bugs, since OUT always equals stdout, but it
	makes the code easier to understand.

2006-07-14  Jim Meyering  <jim@meyering.net>

	* Makefile.maint (CVS_LIST): Use new file, build-aux/vc-list-files,
	rather than open-coding it.  Now supports mercurial, too.
	* .hgignore: New file.
	* Makefile.am (EXTRA_DIST): Add .hgignore, which ignores nearly
	all generated files, including ones like configure and po/*.po
	that are currently version-controlled in cvs.

	* Makefile.am (EXTRA_DIST): Add a few more .??* files.
	They've been in CVS, just haven't been distributed before this.
	Distribute ChangeLog-2005, too.
	(MAINTAINERCLEANFILES): Add THANKS-to-translators.

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

	* src/system.h: Assume <dirent.h> exists, since gnulib assumes
	this now as well.

2006-07-09  Jim Meyering  <jim@meyering.net>

	* tests/mv/dir2dir: Adjust so failing with ENOTEMPTY is ok, too.
	That happens with Linux/tmpfs.
	* tests/mv/Makefile.am (TESTS): Add dir2dir.

2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>

	Adjust to recent updates from gnulib.
	* src/dd.c (apply_translations): Use toupper rather than
	islower followed by toupper; it's simpler and typically
	faster now that we assume at least C89 semantics.  Similarly
	for tolower.
	* src/sort.c (inittables): Likewise.
	* src/expand.c (expand): Don't assume that isprint etc. return
	booleans (needed for pre-C99 hosts).
	* src/fmt.c (check_punctuation): Likewise.
	* src/ptx.c (initialize_regex, fix_output_parameters): Likewise.
	* src/tr.c (is_char_class_member): Likewise.
	* src/unexpand.c (unexpand): Likewise.
	* src/join.c (is_blank): Remove; no longer needed.  All uses
	replaced by isblank (to_uchar (...)).
	* src/pinky.c (create_fullname): Don't assume char is unsigned.
	* src/printf.c (print_esc): Likewise.
	* src/ptx.c (SKIP_NON_WHITE, SKIP_WHITE, SKIP_WHITE_BACKWARDS):
	(copy_unescaped_string): Likewise.
	* src/stat.c (print_it): Likewise.
	* src/system.h (_D_EXACT_NAMELEN): Renamed from NLENGTH, for
	convenience on GNU systems.  All uses changed.  Don't bother
	looking for any dirent.h substitute other than ndir.h.
	(D_INO): Remove unnecessary parentheses.
	(IN_CTYPE_DOMAIN, ISGRAPH, ISPRINT, ISALNUM, ISALPHA):
	(ISCNTRL, ISLOWER, ISPUNCT, ISSPACE, ISUPPER, ISXDIGIT):
	(ISDIGIT_LOCALE, TOLOWER, TOUPPER): Remove.  All uses changed
	to ctype.h equivalents.
	(isblank): Renamed from ISBLANK.  Check for HAVE_DECL_ISBLANK too.
	All uses changed.

2006-07-08  Jim Meyering  <jim@meyering.net>

	* tests/mv/dir2dir: New file, test for 2006-07-05 fix in copy.c.

	* Makefile.maint (sc_the_the): New rule.

	* src/dd.c (skip): Remove one of two adjacent "the"s in a comment.
	* tests/Coreutils.pm (run_tests): Remove one of two adjacent "then"s
	in a comment.

2006-07-07  Jim Meyering  <jim@meyering.net>

	* NEWS: Mention that mv can now remove an empty destination directory,
	and give an example.  Prompted by a report from Florent Bayle.

2006-07-05  Jim Meyering  <jim@meyering.net>

	* src/ls.c (usage): Correct the description of -G: it is useful
	only in a long listing.  Reported by Martin Pool in
	<https://launchpad.net/distros/ubuntu/+source/coreutils/+bug/51653>.

	* man/chmod.x: Correct the description of the sticky bit.  Reported
	by Chris Moore via Ian Jackson in <http://bugs.debian.org/376745>.

	* src/copy.c (copy_internal): Don't work around old NFS clients like
	SunOS-4.1.4 and Irix 5.3 that set errno to values like EIO and
	ENOTEMPTY upon failed rename.  Otherwise, we risk misinterpreting
	a banal failure as a recursive move-into-self failure.
	Reported by Florent Bayle in <http://bugs.debian.org/376749>.

	* src/c99-to-c89.diff: Regenerate, to remove fuzz.

2006-07-03  Jim Meyering  <jim@meyering.net>

	Plug another unusual leak.
	(AD_mark_helper): Free malloc'd filename if hash_insert says
	that string is already in the hash table.

	The dev/inode of the topmost directory in each hierarchy were not
	being recorded.
	* src/remove.c (remove_cwd_entries): Don't call cycle_check here.
	(AD_push): Call it from here instead.

	Fix two small leaks.
	* src/remove.c (AD_stack_clear): New function.
	(rm_1): Use it.
	(AD_pop_and_chdir): Free *prev_dir just before longjmp.

	* tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT):
	Add $VG_PATH_PREFIX as a prefix to $PATH

	* tests/envvar-check (vars): Add CDPATH and POSIXLY_CORRECT.
	* tests/Makefile.am (evar-check): Remove rule.
	(EXTRA_DIST): Remove .env-warn.
	* tests/.env-warn: Remove file.  No longer used.
	Suggestion from Eric Blake.

2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>

	* src/system.h: Include <stdint.h> unconditionally, since we
	now assume the stdint module.

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

	* NEWS: With no operand, 'tail -f' now silently ignores the '-f'
	only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
	* src/tail.c (main): Implement this.
	* tests/tail/Test.pm (f-pipe-1): Renamed from f-1.
	(test_vector): Set POSIXLY_CORRECT for the f-pipe-* tests.

2006-07-01  Jim Meyering  <jim@meyering.net>

	* src/ln.c (do_link): Use new, shorter URL, for ag-review link.

	* .x-sc_require_config_h: Add ^lib/xstrtold\.c$, so make distcheck
	passes once again.

2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>

	* NEWS: seq now uses long double internally rather than double.
	It now defaults to a minimal fixed point format if possible.
	It lets you use %a, %A, %E, %F, %G.
	* src/Makefile.am (seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB).
	* src/seq.c: Don't include <math.h> or <xstrtol.h>; no longer needed.
	(isfinite) [!defined isfinite]: New macro.
	(separator, terminator): Now points to const.
	(first, step, last): Remove.
	(usage): Update to match new behavior.
	(struct operand, operand): New type.
	(scan_arg): Renamed from scan_double_arg, since we no longer use double.
	All uses changed.
	Compute and return a value of type operand, not double.
	(long_double_format): Renamed from valid_format, and now returns a
	new format with an "L" added if needed, if the original format was
	valid.  Allow %a, %A, %E, %F, and %G formats.
	(print_numbers): Take numeric values as args rather than from globals.
	Print long double, not double.
	(get_width_format): Remove.
	(get_default_format): New function.
	(main): Implement new way of calculating default format.
	Don't worry about locale's representation of the decimal point, since
	the arguments are always processed in the C locale.
	* tests/seq/basic (neg-2): Adjust to new default format.
	(eq-wid-1, eq-wid-2): Resurrect these tests, since the new
	implementation should do the right thing.

2006-06-30  Jim Meyering  <jim@meyering.net>

	* tests/stty/basic-1: Work around an intermittent test failure
	on HP-UX 11.11.  Report and analysis from Bob Proulx.
	http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7475

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

	* NEWS: Support obsolete usages like "sort +1 -2" even when
	conforming to POSIX 1003.1-2001, since this is a pure extension to
	POSIX.  Problem reported by Christian in:
	http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00220.html
	* src/sort.c (main): Implement this.

	* src/system.h (CLOSEDIR): Remove.  All uses changed to closedir.
	Autoconf 2.60 says this stuff was obsolete.

2006-06-28  Jim Meyering  <jim@meyering.net>

	* src/c99-to-c89.diff: Regenerate, to remove fuzz.

2006-06-28  Bob Proulx  <bob@proulx.com>  (tiny change)

	* tests/mv/i-link-no: Work around HP-UX /bin/sh tracing problem
	(set -x when VERBOSE=yes) when stderr is redirected before stdout
	causing shell tracing of the stdout redirection to be written to
	the stderr file.  Avoid problem and test failure on HP-UX by
	redirecting stderr last.
	* tests/dd/unblock-sync: Order shell file redirections for
	stderr and stdout in the common style.
	tests/acl: Likewise.

2006-06-27  Jim Meyering  <jim@meyering.net>

	* tests/misc/cat-proc: Try to avoid any spurious numeric
	differences in frequently-changing /proc/cpuinfo.
	Reported by Nelson Beebe.

2006-06-26  Jim Meyering  <jim@meyering.net>

	Attempt rmdir (actually, unlinkat-with-AT_REMOVEDIR) upon any
	fd_to_subdirp failure, not just when errno == EACCES.
	* src/remove.c (remove_dir): Use unlinkat-with-AT_REMOVEDIR, not
	rmdir, here, even though rmdir may happen to be adequate.

	* NEWS: rm no longer fails to remove an empty, unreadable directory
	* src/remove.c (remove_cwd_entries): If we can't open a directory,
	and the failure is not being ignored, try to remove the directory
	with rmdir (aka unlinkat-with-AT_REMOVEDIR), in case it's empty.
	Problem report and test case from Paul Eggert in
	<http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7425>.

	* tests/rm/empty-inacc: New test, for the above.

	Avoid a segfault for wc --files0=- < /dev/null.
	* src/wc.c (compute_number_width): Return right away if nfiles == 0.

2006-06-25  Jim Meyering  <jim@meyering.net>

	* NEWS: wc accepts a new option --files0-from=FILE, where FILE
	contains a list of NUL-separated file names.

	* src/wc.c: Include "readtokens.h".
	(usage): Describe the new option, and adjust the `Usage':
	with this option, no FILE may be specified on the command line.
	(main): Handle the new option.
	* tests/misc/wc-files0: New tests, for the above.
	* tests/misc/wc-files0-from: Likewise.
	* tests/misc/Makefile.am (TESTS): Add wc-files0.

2006-06-24  Jim Meyering  <jim@meyering.net>

	* src/md5sum.c (DIGEST_BUFFER): Remove now-unused definitions.

2006-06-22  Jim Meyering  <jim@meyering.net>

	* src/tee.c (tee_files): Rename from tee, to avoid conflict with
	the function in glibc's <fcntl.h>.  Reported by Andreas Schwab.

2006-06-19  Jim Meyering  <jim@meyering.net>

	* Makefile.cfg (local-checks-to-skip): Add changelog-check,
	so this check is not run as part of "make distcheck".

2006-06-18  Bob Proulx  <bob@proulx.com>  (tiny change)

	* tests/misc/pwd-long: Fix typo (s/neq/ne/) in previous change.

2006-06-18  Jim Meyering  <jim@meyering.net>

	* tests/misc/pwd-long: Make error output a little clearer.

2006-06-17  Jim Meyering  <jim@meyering.net>

	* tests/rm/inaccessible: Skip this test on systems without openat
	support.  Reported by Bob Proulx.

2006-06-15  Bob Proulx  <bob@proulx.com>  (tiny change)

	* tests/misc/mknod: Improve permission checks to handle
	running mkdir test in set-gid directories.

2006-06-14  Jim Meyering  <jim@meyering.net>

	* tests/du/basic: Revamp not to hard-code file system block sizes.

2006-06-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* tests/du/Makefile.am (TESTS_ENVIRONMENT): Pass $(PERL), for
	files0-from test.

2006-06-11  Jim Meyering  <jim@meyering.net>

	* .gitignore: New file.
	* Makefile.am (EXTRA_DIST): Add .gitignore.

	Setting TIME_STYLE=long-iso in the environment would make the
	cp/same-file test fail.
	* tests/envvar-check (vars): Add TIME_STYLE to the list.
	* tests/cp/same-file: Revert last change.
	Source the envvar-check script, to ensure that TIME_STYLE
	settings don't affect these tests.

2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>

	* tests/cp/same-file: Execute 'ls' in the C locale, so that it
	uses POSIX time stamp formats.  Problem reported by John Nixon in
	<http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00062.html>.

2006-06-10  Jim Meyering  <jim@meyering.net>

	* NEWS: Mention the AIX-strndup-bug vs. dircolors workaround.

	Require a "Version N.M" line at the top of the ChangeLog
	file only when making the actual release, not when running
	"make distcheck".
	* Makefile.maint (maintainer-distcheck): Don't depend on
	changelog-check.
	(alpha beta major): Depend on it here, instead.

2006-06-08  Jim Meyering  <jim@meyering.net>

	Ensure that cat works with any of the options, -A -v -e -E -T,
	when applied to files in /proc and /sys, even when the FIONREAD
	ioctl produces nonsensical results.  Before this change, cat would
	produce no output (or truncated output), for some linux kernels.

	* src/cat.c (write_pending): New function, factored out of cat.
	(cat): Also interpret a negative ioctl/FIONREAD count as indicating
	that there are bytes to read.  Some versions of linux-2.6.16 do that.
	Write any pending output before returning.
	Reported by Dan Jacobson in <http://bugs.debian.org/370583>.
	* NEWS: Mention this bug fix.
	* tests/misc/cat-proc: New file.  Test for the above.
	* tests/misc/Makefile.am (TESTS): Add cat-proc.

2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>

	* src/expr.c (eval4): Detect overflow properly when multiplying
	INTMAX_MIN * -1.

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

	* NEWS: The 'expr' command now detects and reports integer overflow.
	(It would be better to use extended precision instead, but that
	would be more work.)
	* src/expr.c (integer_overflow): New function.
	(eval4, eval3): Check for integer overflow.

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

	Fix problems when building with Solaris/SVR4/etc. make, which uses a
	different and somewhat bogus implementation of VPATH.  In the
	directory tests/misc, rename tests whose names might appear in the
	Automake-generated rules.  For example, we can't use a test named
	'test', since Automake generates a rule that contains the text
	"if test -f ./$$tst; ...", and this might expand to something like
	"if ../../../coreutils-6.0/tests/misc/test -f ./$$test; ...",
	which executes the 'test' script rather than the 'test' command.
	* tests/misc/false-status: Renamed from tests/misc/false.
	* tests/misc/pwd-long: Renamed from tests/misc/pwd.
	* tests/misc/sort-merge: Renamed from tests/misc/sort.
	($prog): Set to 'sort' rather than to $PROG.
	* tests/misc/test-diag: Renamed from tests/misc/test.
	* tests/misc/Makefile.am (PROG): Take the basename of $$tst,
	in case Solaris make has prepended the directory.
	(TESTS): Adjust to above renamings.
	* tests/misc/expand: Don't assign to PROG; no longer needed
	now that Makefile.am sets PROG to the basename.
	* tests/misc/fold: Likewise.

2006-06-03  Jim Meyering  <jim@meyering.net>

	Make `cp --link --no-dereference' work also on systems where the
	link system call cannot create a hard link to a symbolic link.
	* src/copy.c (copy_internal) [LINK_FOLLOWS_SYMLINKS]: Don't use
	the link syscall on a symlink when it would do the wrong thing.
	Based on the patch by Aurelien Jarno: <http://bugs.debian.org/329451>
	* tests/cp/link-no-deref: New file/test for the above.
	* tests/cp/Makefile.am (TESTS): Add link-no-deref.
	* NEWS: Mention the change (doesn't affect Linux).

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

	Fix some porting problems in the test cases reported by
	Ralf Wildenhues for HP-UX 11.23 in:
	http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00238.html
	* tests/help-version: Don't assume that \< \> works in sed.
	* tests/misc/close-stdout: Don't assume that >&- works.
	Add a /dev/full test.
	* tests/touch/no-create-missing: Don't assume that >&- works.

2006-05-30  Jim Meyering  <jim@meyering.net>

	* src/ls.c (usage): Add `v' to the list of sorting-related options.
	From Justin Pryzby.

2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* tests/cp/fail-perm: source lang-default.
	* tests/rm/inaccessible: Likewise.

2006-05-28  Jim Meyering  <jim@meyering.net>

	* tests/rm/inaccessible: AIX 4.3.3 gives a different diagnostic.
	Recognize it, too.  Reported by Ralf Wildenhues, in
	http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html

2006-05-27  Jim Meyering  <jim@meyering.net>

	* src/chgrp.c: Support new options: --preserve-root and
	--no-preserve-root.  Somehow this program was skipped when those
	options were added to chown, chmod, and rm.  Reported by
	vaqflabuopac@spammotel.com in <http://bugs.debian.org/365656>.
	* NEWS: Mention this.

2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>

	* NEWS: Remove mention of --seed.  We'll replace it with something
	better, and don't want to indicate that it is supported.
	* src/sort.c (usage): Likewise.

2006-05-20  Jim Meyering  <jim@meyering.net>

	* src/chmod.c (main): Use FTS_PHYSICAL here, too.

	* src/du.c (main): Rename local, s/symlink_deref_bit/symlink_deref_bits/
	and arrange for -D to set fts' FTS_PHYSICAL bit as well as
	FTS_COMFOLLOW.  Spotted by Justin Pryzby.

	* gnupload: Merge changes from automake, retaining the ""--to...
	kludge to placate overzealous `make distcheck' check.

2006-05-19  Jim Meyering  <jim@meyering.net>

	* src/du.c (main): Don't let -D, -L, or -P turn off the internal
	FTS_TIGHT_CYCLE_CHECK directory traversal option.
	Reported by Justin Pryzby in http://bugs.debian.org/367691

2006-05-15  Jim Meyering  <jim@meyering.net>

	* src/cp.c (usage): Correct description of -a: s/-dpR/-dpPR/.
	From Tomas Pospisek.

2006-05-13  Jim Meyering  <jim@meyering.net>

	* tests/mv/no-target-dir: Test two more cases.

2006-05-11  Jim Meyering  <jim@meyering.net>

	mv -T DIR EMPTY_DIR no longer fails unconditionally
	* src/copy.c (copy_internal): Don't manually prohibit a move where
	the destination is an existing directory.  Sometimes doing that is
	valid.  Let the rename system call enforce the rules.  That is
	allowed only when the source is a directory and the destination
	directory (to be replaced) is empty.  Reported by Eric Blake.
	* tests/mv/no-target-dir: New file/test for this.
	* tests/mv/Makefile.am (TESTS): Add no-target-dir.
	* NEWS: Mention this.

	* tests/mv/atomic: New file/test for yesterday's fix.
	* tests/mv/Makefile.am (TESTS): Add atomic.

	* tests/du/long-sloop: Avoid harmless `ambiguous redirect' diagnostic.

2006-05-10  Jim Meyering  <jim@meyering.net>

	* src/copy.c (copy_internal): Don't explicitly unlink the destination
	when moving a symlink into the place of an existing non-directory.
	Reported by Joshua Hudson.
	* NEWS: mention this.

2006-05-07  Jim Meyering  <jim@meyering.net>

	* Makefile.maint (patch-check): Fail if patch generates any output,
	even merely for changed offsets.

	* src/c99-to-c89.diff: Adjust to reflect new offsets.

	* NEWS: Mention changes affecting df, pwd, shred.

2006-05-06  Jim Meyering  <jim@meyering.net>

	* tests/ls/stat-vs-dirent: New test, to detect the bogus file
	system condition where dirent.d_ino != stat.st_ino.
	* tests/ls/Makefile.am (TESTS): Add stat-vs-dirent.

2006-05-06  Eric Blake  <ebb9@byu.net>

	* tests/ls/inode: Expand to test inode from readdir case.
	* tests/ls/follow-slink: Expand to test broken links encountered
	implicitly, favoring Solaris 9 and OpenBSD 3.4 behavior.

2006-05-06  Eric Blake  <ebb9@byu.net>

	* tests/mv/leak-fd: Work even on case-insensitive file system.

2006-05-04  Jim Meyering  <jim@meyering.net>

	* NEWS: Mention the 2006-03-19 pwd-related change that makes
	lib/getcwd.c work around inconsistent file system dirent.d_ino data.

2006-05-03  Jim Meyering  <jim@meyering.net>

	* src/ls.c (DEFINE_SORT_FUNCTIONS, LIST_SORTFUNCTION_VARIANTS):
	Use better macro parameter names: s/basename/key_name/,
	s/basefunc/key_cmp_func.  Fix typo in comment.

2006-04-29  Eric Blake  <ebb9@byu.net>

	* src/ls.c (main): On systems with d_type, directories_first only
	implies format_needs_type, not format_needs_stat.

2006-05-03  Jim Meyering  <jim@meyering.net>

	* src/ls.c (xstrcoll_df_version, rev_xstrcoll_df_version): Add space
	after comma in arg list, from Eric Blake.

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

	* tests/misc/date (relative-3): New test, derived from a bug
	report by John Thomas McDole.

2006-04-23  Francesco Montorsi  <fr_m@hotmail.com>

	New option for ls: --group-directories-first.
	It makes ls list directories before files.
	* NEWS [New features]: Mention it.
	* src/ls.c (sort_type): Rearrange to use as an array index when
	choosing sort function; added new sort_numtypes member for
	compile-time check.
	(time_type): Add new time_numtypes member for compile-time check.
	(directories_first): New global variable.
	(GROUP_DIRECTORIES_FIRST_OPTION): New enum.
	(long_options): Add --directories-first.
	(main): Support new option.
	(is_directory): New function.
	(extract_dirs_from_files): Use it.
	(DIRFIRST_CHECK, DEFINE_SORT_FUNCTIONS)
	(LIST_SORTFUNCTION_VARIANTS): New macros.
	(sort_functions): New global variable.
	(sort_files): Use it.
	(usage): Document new option.

2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>

	* src/shred.c (fillrand): The assertion was way too weak, due to
	what must be a typo.  Strengthen it to its intended value.
	(dopass): Don't use alloca; it's not worth the aggravation here,
	since it's used only to get a page-aligned buffer, and page
	alignment doesn't buy us much here.  I'm suspicious that alloca
	causes problems on some hosts, due to a recent bug report by Adam
	Waltman: http://bugs.gentoo.org/130246.

2006-04-18  Jim Meyering  <jim@meyering.net>

	* tests/misc/tty-eof: Add new programs, base64, sha224sum, sha256sum,
	sha384sum, sha512sum.

2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>

	* src/chmod.c (describe_change): Adjust to filemode changes.
	* src/ls.c (HAVE_ST_DM_MODE): Remove; moved to ../lib/filemode.c.
	(print_long_format): Use (new) filemodestring rather than
	(old) mode_string, so that we get more file types right, at least
	in theory.  Adjust to filemode changes.
	* src/stat.c (human_access): Likewise.

2006-04-18  Jim Meyering  <jim@meyering.net>

	* src/ptx.c (main) [DEFAULT_IGNORE_FILE]: Remove code to use a default
	ignore file.  This has never been enabled.  Reported by Eric Blake.

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

	* src/ln.c (linkfunc): Remove.  This method ran into a compiler/linker
	bug in Interix.  Just call symlink or link directly.  All uses changed.
	* src/setuidgid.c (main) [! HAVE_SETGROUPS]: Don't call setgroups.
	* src/stat.c (USE_STATVFS): New macro.
	Include <sys/statvfs.h> and use statvfs only if USE_STATVFS.
	(NAMEMAX_FORMAT): define a bit more clearly, now that the
	statvfs-using code is a bit more regular.
	* src/system.h (sync) [!HAVE_SYNC]: New macro.

2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>

	* NEWS: csplit, nl, expr now conform to POSIX better, and are
	more-compatible with traditional Unix, with respect to regular
	expressions.
	* src/csplit.c (extract_regexp): Set re_syntax_options to a
	value that is compatible with what POSIX requires.
	* src/nl.c (build_type_arg): Likewise.
	* src/expr.c (docolon): Likewise.  Also, don't let anchors match
	newline; this fixes an incompatibility with tradition and with POSIX.
	Don't warn about leading ^.  POSIX says it is unspecified whether
	^ is a special character, which means that implementations can
	either treat it as special or not, but either way a warning is not
	allowed (unless the regexp is otherwise invalid).  Instead, anchor
	the expression but treat ^ as an anchor; this is the traditional
	behavior (e.g., Solaris 10).
	(eval4, eval3, eval2): Treat non-numeric args, division by zero,
	and the like as invalid expressions (exit status 2), not as
	failure of 'expr' (exit status 3).  This is more consistent with
	how Solaris behaves.
	* tests/expr/basic (fail-a): Adjust exit status to match new expr
	behavior, for status 2 versus 3.
	(anchor): New test.
	(bre1, bre2, bre3, bre4, bre5, bre6, bre7, bre8, bre9, bre10):
	(bre11, bre12, bre13, bre14, bre15, bre16, bre17, bre18, bre19, bre20):
	(bre21, bre22, bre23, bre24, bre25, bre26, bre27, bre28, bre29, bre30):
	(bre31, bre32, bre33, bre34, bre35, bre36, bre37, bre38, bre39, bre40):
	(bre41, bre42, bre43, bre44, bre45, bre46, bre47, bre48, bre49, bre50):
	(bre51, bre52, bre53, bre54, bre55, bre56, bre57, bre58, bre59, bre60):
	(bre61, bre62): New tests.
	* tests/misc/csplit: Use \{...\} in test RE, to test that we're
	conforming to POSIX.

	Port to Solaris 8.
	* tests/du/long-from-unreachable: Solaris 8 sh doesn't understand
	"if !".  Do not assume that 'sed' can handle long, newline-free input.
	* tests/du/long-sloop: Likewise.  Evaluate expr once, not $n times.

2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>

	Adjust to new regex.h API (with new fastmap type), and clean
	up the regex storage allocation a bit.

	* src/csplit.c (struct control): Put re_compiled member at the
	end, since it's large.  Change regexpr member from char * to bool;
	all uses changed.  Add new member fastmap.
	(extract_regexp): regexp arg is now char const *, not char *.
	Don't bother duplicating the regular expression; it's not needed.
	Set fastmap from new fastmap member.  Don't bother allocating
	a buffer, as the regexp code does a better job than we do.
	* src/expr.c (docolon): Allocate and use a fastmap.
	Don't bother allocating a buffer.
	* src/nl.c (body_fastmap, header_fastmap, footer_fastmap):
	New vars.
	(build_type_arg): New fastmap arg.  All uses changed.
	Don't bother allocating a buffer, but set a fastmap.
	* src/ptx.c (context_regex_string, word_regex_string): Remove.
	(context_regex, word_regex): New vars, replacing the above.
	All uses changed.
	(struct regex_data): New type.
	(compile_regex): Renamed from alloc_and_compile_regex, since
	we no longer allocate storage.  Arg is now a struct regex_data *,
	not a const char *.  All uses changed.  Don't allocate the fastmap;
	instead, take it from the caller.  Don't convert size_t to int,
	to avoid arithmetic overflow problems.  Don't bother freeing
	storage afterwards; it's not worth the aggravation.
	* src/tac.c (compiled_separator_fastmap): New ver.
	(main): Use it.  Don't bother allocating a buffer.

2006-03-30  Jim Meyering  <jim@meyering.net>

	* src/dd.c (iwrite): Remove assignment without effect.
	Reported by Felix Rauch Valenti.

2006-03-22  Eric Blake  <ebb9@byu.net>

	* src/ptx.c (usage): Remove mention of --copyright/-C.
	(main): Alias --copyright to --version plus a deprecation warning.
	* NEWS: Mention this.

2006-03-27  Jim Meyering  <jim@meyering.net>

	* src/Makefile.am (uptime_LDADD): Add $(POW_LIB), for uptime's
	use of strtod.  Tiny patch from Nickolai Zeldovich.

2006-03-11  Eric Blake  <ebb9@byu.net>

	* tests/misc/dirname: New file.
	* tests/basename/Makefile.am: Delete.
	* tests/basename/basic: Move to...
	* tests/misc/basename: ... this new file.  Add some tests,
	including fixed behavior for //.
	* tests/misc/Makefile.am (TESTS): Sort.  Add basename, dirname.
	* tests/Makefile.am (SUBDIRS): Remove basename.
	* configure.ac (AC_CONFIG_FILES): Remove tests/basename.

	Improvements to dirname/basename handling on platforms like
	cygwin with distinct // and with drive letters.
	* NEWS: Document new behavior.
	* src/basename.c (main): Don't strip suffix from file system
	roots.
	* src/cp.c (target_directory_operand): Use new last_component.
	(ASSIGN_BASENAME_STRDUPA): Likewise.  Reduce time spent
	traversing the string.
	* src/dircolors.c (guess_shell_syntax): Use new last_component.
	* src/install.c (target_directory_operand, install_file_in_dir):
	Likewise.
	* src/ln.c (target_directory_operand, main): Likewise.
	* src/ls.c (basename_is_dot_or_dotdot): Likewise.
	* src/mv.c (target_directory_operand, movefile): Likewise.
	* src/remove.c (rm_1): Likewise.
	* src/shred.c (wipename): Likewise.
	* src/split.c (next_file_name): Likewise.
	* src/su.c (log_su, run_shell): Likewise.

2006-03-23  Paul Eggert  <eggert@cs.ucla.edu>

	* NEWS: nohup diagnostics are now more precise, and nohup now
	redirects stderr to nohup.out if stdout is closed and stderr is a tty.
	* src/nohup.c (main): Implement this.
	* tests/misc/nohup: Test the new behavior.

2006-03-12  Jim Meyering  <jim@meyering.net>

	* src/copy.c (set_author): Rename function, from preserve_author.

	* src/remove.c (AD_pop_and_chdir): Use new macro,
	CYCLE_CHECK_REFLECT_CHDIR_UP, rather than open-coding it.

	* src/system.h (SAME_INODE): Remove definition.
	Include "same-inode.h", instead.

2006-03-11  Eric Blake  <ebb9@byu.net>

	* src/pwd.c (robust_getcwd): Prepend only one slash, not two.

2006-03-10  Jim Meyering  <jim@meyering.net>

	Fix a bug whereby a user with write access to a directory being removed
	could cause the removal of that directory to fail with an erroneous
	diagnostic about a directory cycle.  Reported by Vineet Chadha.

	* NEWS: Mention this.
	* src/remove.c (AD_pop_and_chdir): If the directory we're about to
	leave (and try to rmdir) is the one whose dev_ino is being used to
	detect a cycle, reset cycle_check_state.dev_ino to that of the parent.

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

	* NEWS: Document dd's new 'directory' and 'nolinks' flags.
	* src/dd.c (set_fd_flags): Handle file-creation flags on file
	descriptors, rather than ignoring them.
	* tests/dd/misc: Add test cases for append, nofollow, directory,
	and nolinks flags.  Simplify redirection to /dev/null in some cases.

	* tests/dd/misc: iflags->iflag.  This fixes a typo that meant the
	noatime test never tested anything.

2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>

	* src/dd.c (flags, usage): New flags directory, nolinks.
	* src/system.h (O_NOLINKS): Define to 0 if not already defined.

	* src/ls.c (usage): Mention that -f disables --color.
	Problem reported by Niels Möller.

2006-03-03  Justin Pryzby  <pryzbyj@justinpryzby.com>

	* man/*.x: Add references to syscalls from utilities of the same name.

2006-03-05  Jim Meyering  <jim@meyering.net>

	* tests/help-version: Set SHELL, if not already set, in order to
	avoid failure when `make check' is run through debuild;  dircolors
	would fail due to lack of $SHELL.  Reported by Sven Joachim.

	Make `base64 --wrap=N' work for N=0, and for N larger than SIZE_MAX.
	* src/base64.c (wrap_write, do_encode, main): Change type of
	parameters and locals, wrap_column, form size_t to uintmax_t.
	(main): Adjust to use xstrtoumax, accordingly.

2006-03-03  Jim Meyering  <jim@meyering.net>

	Don't fail when run from an environment with SHELL not a Bourne
	shell, e.g. `env SHELL=/bin/csh make check' would fail this test.
	* tests/dircolors/simple: Invoke each non-failing test with -b.
	Reported by Michael Stone.

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

	* tests/misc/base64: Derive --decode-using tests from the
	encode-based ones.

	* tests/misc/base64: Factor out a long constant string.
	Split lines to stay within 80 columns.

	* tests/misc/Makefile.am (TESTS): Add base64.
	* tests/misc/base64: Test base64.  From Simon Josefsson.

	* src/base64.c (do_decode): Use correct type for parameter,
	ignore_garbage: s/size_t/bool/.

	* src/base64.c: Don't include .h files already included by system.h:
	<string.h>, <stdlib.h>, <stdbool.h>, <limits.h>, <errno.h>.
	Include "system.h" before the other lib/*.h header files.
	Include <sys/types.h> before "system.h".
	(wrap_write): Remove declaration of unused local, initial_column.
	(wrap_write): Correct declaration syntax: s/size_t * V/size_t *V/.

	* README: Add base64 to the list.

2006-02-17  Simon Josefsson  <jas@extundo.com>

	New program: base64.
	* AUTHORS: Mention base64.
	* NEWS: Likewise.
	* man/Makefile.am: Build base64.1.
	* man/base64.x: New file.
	* src/Makefile.am (bin_PROGRAMS): Add base64.
	* src/base64.c: New file.

2006-02-25  Eric Blake  <ebb9@byu.net>

	In ls, avoid calling stat for --inode (-i), when possible.
	* src/pwd.c (NOT_AN_INODE_NUMBER, D_INO): Move to ...
	* src/system.h: ... here, for use in ...
	* src/ls.c (main): ... here.  Prefer dirent.d_ino to stat when
	possible.
	(gobble_file): Add inode argument.
	(print_dir): Pass inode if available.
	(usage): Remove inaccuracy.

2006-02-23  Jim Meyering  <jim@meyering.net>

	* TODO: Update/correct some obsolete entries.

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

	* doc/coreutils.texi (join invocation): Mention `sort -k 1b,1'.
	* src/join.c (usage): Likewise.
	Documentation problem reported by Philip Kensche.

2006-02-20  Eric Blake  <ebb9@byu.net>

	* man/rm.x: Update documentation to match previous patch.

2006-02-18  Eric Blake  <ebb9@byu.net>

	New option for rm: --interactive=once (-I).
	* NEWS: Document it, along with change to rm --interactive.
	* TODO: Remove entry for implementing rm -I
	* src/rm.c (INTERACTIVE_OPTION): New enum value.
	(interactive_type): New enum.
	(long_opts): Let interactive take an optional argument.
	(interactive_args, interactive_types): New option arguments.
	(usage): Document -I, --interactive=WHEN.  Use program_name
	instead of a basename.
	(main): New -I option, new behavior to --interactive.
	* tests/rm/interactive-once: New tests.
	* tests/rm/interactive-always: Ditto.
	* tests/rm/Makefile.am (TESTS): Run them.

2006-02-18  Jim Meyering  <jim@meyering.net>

	* Makefile.maint (sc_two_space_separator_in_usage): Make the regular
	expression match more of the target lines, e.g., those that start with
	`-S,' (short option followed by a comma) or that include `=[...]'.
	Patch by Nicolas François.
	Fix the four offenders thus exposed:
	* src/join.c (usage): Use two spaces (not one) to separate the
	--first-only option string from its description, so help2man formats
	the derived man page properly.
	* src/pr.c (usage): Likewise.
	* src/uniq.c (usage): Likewise.
	* src/install.c (usage): Likewise.

2006-02-15  Jim Meyering  <jim@meyering.net>

	* Makefile.maint (alpha beta major): For `make major', ensure that the
	version string is of the form N.N[.N]*, where N is one or more digits.

2006-02-14  Jim Meyering  <jim@meyering.net>

	* INSTALL: Update from gnulib.

2006-02-13  Jim Meyering  <jim@meyering.net>

	* GNUmakefile (all): Emit diagnostics to stderr, not stdout.

2006-02-12  Jim Meyering  <jim@meyering.net>

	* Makefile.maint (patch-check): New target.
	(local-checks-available): Add to the list.

2006-02-11  Jim Meyering  <jim@meyering.net>

	* src/c99-to-c89.diff: New file.
	* src/Makefile.am (EXTRA_DIST): Add c99-to-c89.diff.

	* .x-po-check: New file, with exclusions so that `make distcheck'
	passes once again.
	* Makefile.am (EXTRA_DIST): Add .x-po-check.

	rm -r must remove an empty directory, even if it is inaccessible.
	* src/remove.c (close_preserve_errno): New function.
	(fd_to_subdirp): Don't print a diagnostic in this function.
	Do it from the callers instead, unless rmdir succeeds.
	(remove_cwd_entries, remove_dir): Adjust callers.
	* tests/rm/empty-inacc: New test for the above.
	* tests/rm/Makefile.am (TESTS): Add empty-inacc.
	* NEWS: Mention this bug fix.
	* tests/rm/rm2: Adjust two expected diagnostics, now that they're
	a tiny bit less precise: cannot remove `a/1': ... instead of
	cannot open directory `a/1': ...

	* Makefile.maint (syntax-check-rules): Automatically derive this
	list of sc_-prefixed rule names.

2006-02-10  Paul Eggert  <eggert@cs.ucla.edu>

	* Makefile.maint (CVS_LIST): Don't assume cvsu is available.
	(CVS_LIST_EXCEPT): New macro, to simplify exception-processing.
	Most uses of CVS_LIST changed to use CVS_LIST_EXCEPT.
	(syntax-check-rules): Bring back sc_changelong.  (Hmm, why did it
	go away? was that an accident?)
	(sc_cast_of_argument_to_free, sc_cast_of_x_alloc_return_value):
	(sc_cast_of_alloca_return_value, sc_space_tab, sc_prohibit_atoi_atof):
	(sc_error_exit_success, sc_file_system, sc_no_if_have_config_h):
	(sc_system_h_headers, sc_sun_os_names, sc_trailing_blank):
	(sc_two_space_separator_in_usage, sc_unmarked_diagnostics):
	(sc_obsolete_symbols, sc_changelog, sc_prohibit_jm_in_m4):
	(sc_useless_cpp_parens, makefile-check, m4-check, po-check):
	(author_mark_check, makefile_path_separator_check):
	Output line numbers, to simplify navigation of Emacs *compilation*
	buffers.
	(sc_prohibit_atoi_atof, sc_file_system):
	Rework slightly so that Makefile.maint doesn't get reported as a
	violation of its own syntax rules.
	(sc_dd_max_sym_length): Use ifneq to do nothing, instead of doing
	it at run-time (which didn't work with Bison).  Fix a makefile typo,
	caught by Makefile.maint itself: spaces where a tab should be.
	(po-check): Check lib/*.[ch] even if not in CVS; used by Bison,
	which copies from ../gnulib/lib/*.[ch] to lib/*.[ch].
	Ignore djgpp and man subdirectories, to avoid false matches with
	Bison and coreutils, respectively.  Use sort -u to remove the
	resulting duplicates.
	* gnupload: Rework slightly to avoid bogus warning from
	sc_two_space_separator_in_usage.

2006-02-10  Jim Meyering  <jim@meyering.net>

	Use gzip's --rsyncable option only if it's available.
	* Makefile.maint (gzip_rsyncable): New variable.
	(GZIP_ENV): Use it.

2006-02-08  Jim Meyering  <jim@meyering.net>

	* Makefile.maint (local-checks-available): Define in terms of
	the expansion, $(syntax-check-rules), rather than the single,
	top-level target `syntax-check', so that it's easier to exclude
	individual rules (via $(local-checks-to-skip)).
	(tgz-md5, tgz-sha1, ...): Remove now-unused definitions.

2006-02-07  Jim Meyering  <jim@meyering.net>

	* src/system.h (!defined O_DIRECT): If O_DIRECTIO is defined (as it
	is on Tru64), define O_DIRECT to that.  Patch From James Lemley.

	* tests/help-version (expected_failure_status_vdir):
	Redirect an expected disk-full diagnostic to /dev/null.

2006-02-06  Jim Meyering  <jim@meyering.net>

	* src/unexpand.c (usage): Use two spaces (not one) to separate the
	--first-only option string from its description, so help2man formats
	the derived man page properly.
	* src/rm.c (usage): Likewise for --no-preserve-root.
	* src/chown.c (usage): Likewise.
	* src/chgrp.c (usage): Likewise.

	Add a rule to ensure that the above doesn't happen again.
	* Makefile.maint (sc_two_space_separator_in_usage): New rule.
	(syntax-check-rules): Add it.
	* .x-sc_two_space_separator_in_usage: New empty file.
	* Makefile.am (EXTRA_DIST): Add .x-sc_two_space_separator_in_usage.

2006-02-06  Jim Meyering  <jim@meyering.net>

	* src/cp.c (usage): Use two spaces (not one) to separate each
	option string from its description, so help2man formats the
	derived man page properly.
	* src/mv.c (usage): Likewise.
	Patch from Nicolas François in http://bugs.debian.org/351601.

2006-02-04  Jim Meyering  <jim@meyering.net>

	* src/copy.c (copy_internal): cp -RL would fail when encountering
	the same directory more than once in the hierarchy beneath a single
	command-line argument.  That is legitimate, e.g. when there are
	two or more symbolic links, each pointing to some directory that
	would not otherwise be copied.  Reported by Christophe LYON.
	* tests/cp/cp-deref: New file.  Test for today's fix.
	* tests/cp/Makefile.am (TESTS): Add cp-deref.
	* NEWS: Document this.

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

	* configure.ac: Require automake-1.9.6, not 1.8.3.

2006-02-01  Paul Eggert  <eggert@cs.ucla.edu>

	* src/od.c (usage): Mention that -t a ignores high order bit.
	Documentation problem reported by Ed Avis.

2006-02-01  Jim Meyering  <jim@meyering.net>

	* src/pwd.c (find_dir_entry): Remove unused local, `ent_sb_valid'.

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

	* src/head.c (main): Use a better diagnostic when someone uses a
	trailing numeric option in an invalid way.  Problem reported by
	Karl Berry.
	* src/tail.c (parse_options): Likewise.

2006-01-30  Jim Meyering  <jim@meyering.net>

	* man/wc.x: Include `count' keyword in man page synopsis,
	per suggestion from http://bugs.debian.org/181585.

2006-01-24  Paul Eggert  <eggert@cs.ucla.edu>

	* src/df.c (show_dev): If the file system claims to have
	more available than total blocks, report the number of used
	blocks as being total - available (a negative number) rather
	than as garbage.  Problem reported by Toralf Foerster.

2006-01-24  Jim Meyering  <jim@meyering.net>

	* src/tail.c (tail_forever): Don't exit-nonzero when an attempt
	to put a regular file in O_NONBLOCK mode fails with EPERM.
	That happens on Linux (up to 2.6.15) when using tail -f on a file with
	the append-only attribute.  Reported by Dean Gaudet.  For details,
	see http://savannah.gnu.org/bugs/?func=detailitem&item_id=15473.
	* NEWS: Mention this fix.
	* tests/tail-2/append-only: New file.  Test for the above.
	* tests/tail-2/Makefile.am (TESTS): Add append-only.
	* tests/Makefile.am (check-root): Add tail-2/append-only

2006-01-21  Jim Meyering  <jim@meyering.net>

	* NEWS: Mention fts-related improvements and bug fixes.

2006-01-19  Jim Meyering  <jim@meyering.net>

	* tests/fmt/basic (pfx-1, pfx-2): New tests, to demonstrate the bug
	reported as http://bugs.debian.org/147577.  Forwarded by Thomas Hood.

2006-01-18  Jim Meyering  <jim@meyering.net>

	* tests/du/Makefile.am (TESTS): Add long-from-unreadable.

2006-01-17  Jim Meyering  <jim@meyering.net>

	Now that fts no longer changes the current working directory, adjust
	its clients accordingly -- note that du.c uses fts but doesn't need
	any adjustment, since it doesn't operate on the actual files,
	but rather just uses the stat buffers provided by fts.

	* src/chown-core.c: Include "openat.h".
	Don't include "lchown.h".
	(restricted_chown): Accept a new parameter, CWD_FD, and use it in
	calling openat, lchownat, chownat, rather than open, lchown, chown.
	Update caller.
	* src/chmod.c: Include "openat.h".
	(process_file): Use chmodat (fts->fts_cwd_fd,... in place of chmod (...

	* tests/du/long-from-unreadable: New test, to exercise one small
	corner of fts.c.

2006-01-13  Jim Meyering  <jim@meyering.net>

	* tests/Makefile.am (SUBDIRS): Add comments discouraging the
	addition of new directories under tests/.

	* tests/acl: Redirect stdin to /dev/null.  Otherwise, FreeBSD 5.0's
	getfacl would hang.

2006-01-12  Jim Meyering  <jim@meyering.net>

	* tests/du/long-sloop: Adjust not to hard-code the expected
	diagnostic corresponding to ELOOP.  Solaris' diagnostic differs
	from that of GNU libc.  Reported by Paul Eggert.

	* tests/du/long-sloop: Create file at end of symlink chain.

	* tests/misc/test: New file, with a test for one of the
	bugs fixed by yesterday's test.c changes.
	* tests/misc/Makefile.am (TESTS): Add test.

2006-01-11  Jim Meyering  <jim@meyering.net>

	* tests/du/long-sloop: New file.  Test for today's fts.c bug fix.
	That bug could make du -L, chgrp -L, or chown -L fail to diagnose
	a very long sequence of symbolic links (not necessarily a loop).
	* tests/du/Makefile.am (TESTS): Add long-sloop.

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

	* src/test.c (test_syntax_error): Append a newline.  All callers
	changed, except for the ones that didn't already append a newline.
	Bug reported by Eric Blake.

2006-01-11  Jim Meyering  <jim@meyering.net>

	* src/system.h (X2NREALLOC): Now that verify_true is no longer
	void, cast its result to void, to avoid gcc's warning that
	``left-hand operand of comma expression has no effect''.
	(DECIMAL_DIGIT_ACCUMULATE, X2REALLOC): Likewise.

2006-01-10  Jim Meyering  <jim@meyering.net>

	* tests/chmod/no-x: Add a test for today's fts.c fix.

2006-01-10  Jim Meyering  <jim@meyering.net>  (tiny change)

	* src/ls.c (gobble_file): Use DTTOIF only if it's defined.
	This is necessary for Dragonfly.  Patch by Joerg Sonnenberger.

2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>

	* src/system.h (X2NREALLOC, X2REALLOC, DECIMAL_DIGIT_ACCUMULATE):
	Use verify_true instead of verify_expr, to sync with gnulib.

2006-01-08  Jim Meyering  <jim@meyering.net>

	* src/date.c (usage): Adjust the formatting of the entries for
	%::z and %:::z (separate with two spaces, not one) so that help2man
	formats them properly.  Reported by Philip Rowlands.

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

	* configure.ac (gl_IGNORE_UNUSED_LIBRARIES): Add.

2006-01-06  Jim Meyering  <jim@meyering.net>

	* Makefile.maint (copyright-check): Use date +%Y in place of
	hard-coded 2005.

	* src/remove.c (rm_1): Remove `static' attribute on local `status'.
	First off, the attribute should have been `volatile' (not static)
	to avoid longjmp-related risk of clobber.  Secondly, now there is
	no longer any risk of a local variable being clobbered, so there's
	no need for any attribute at all.

2006-01-05  Jim Meyering  <jim@meyering.net>

	* src/remove.c: Give a few functions the inline attribute.
	(AD_pop_and_chdir): Use gotos to avoid some duplication.
	(AD_push): Rewrite an assertion so that the entire computation
	goes away when assertions are turned off.

	* src/tail.c (ENOSYS) [!defined ENOSYS]: Don't define here.
	It's already defined in "system.h".
	* Makefile.maint: Add a FIXME comment.

2006-01-04  Jim Meyering  <jim@meyering.net>

	* ChangeLog: Remove entries from 2005-10-22 and earlier.
	* ChangeLog-2005: New file, for entries up to version 5.92.

2006-01-03  Jim Meyering  <jim@meyering.net>

	* tests/du/no-x: Also allow a slightly different diagnostic -- the
	one you get when using openat-enabled fts.c and du (coming soon).
	* tests/chmod/no-x: Likewise.
	* tests/chgrp/no-x: Likewise.

	* src/system.h (O_DIRECTORY) [!defined O_DIRECTORY]: Define.

2006-01-02  Paul Eggert  <eggert@cs.ucla.edu>

	* src/chown-core.c (RC_do_ordinary_chown): New enum value.
	(restricted_chown): Return it, if the file cannot be accessed due
	to EPERM, or if no uid or gid are required, or if the file is
	neither a directory nor a regular file.  Rewrite to avoid gotos.
	(change_file_owner): Handle RC_do_ordinary_chown case.
	Rewrite to avoid gotos.
	* tests/chgrp/basic: Make sure we can change the group of
	inaccessible files.

	* src/date.c (usage): Explain %g, %G, and %V a bit better.

2006-01-02  Jim Meyering  <jim@meyering.net>

	* src/copy.c (set_owner): Correct a comment.

	* src/tail.c (parse_options): Change warning to say that --retry
	is useful `mainly' (not `only') when following by name.
	Reported here: http://bugs.debian.org/273781

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

	* NEWS: Document that mkfifo and mknod -m no longer set special bits.
	* src/copy.c: Include lchmod.h.
	(copy_internal): Use lchmod rather than chmod.
	* src/cp.c: Include lchmod.h.
	(re_protect, make_dir_parents_private): Use lchmod rather than chmod.
	* src/mkdir.c: Include lchmod.h.
	(usage): Clarify -m's operation.
	(main): Use lchmod rather than chmod.  Don't use lchmod unless the
	new mode contains bits outside the 777 range.
	* src/mkfifo.c (usage): Clarify -m's operation.
	(main): If -m is given, don't invoke chmod; use umask 0 instead.
	Report an error if -m asks for bits outside the 777 range.
	* src/mknod.c (usage, main): Likewise.

	* src/mkdir.c, src/mkfifo.c, src/mknod.c: Undo 2005-12-19 changes.

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

	* Makefile.maint (sc_obsolete_symbols): Prohibit use of O_NDELAY.
	(sc_prohibit_assert_without_use): New rule.
	(syntax-check-rules): Add it to the list.
	* .x-sc_prohibit_assert_without_use: New empty file.
	* Makefile.am (EXTRA_DIST): Add it.

	* Makefile.maint (CVS_LIST): Define in terms of $(srcdir).

	* cp.c, df.c, link.c, mknod.c, nice.c, sleep.c, unlink.c:
	Don't include <assert.h>; it wasn't used.

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

	* src/chown-core.c (restricted_chown):
	Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
	* src/remove.c (fd_to_subdirp): Open with O_DIRECTORY | O_NOCTTY
	| O_NOFOLLOW too, for consistency with other dir-openers.
	Use POSIX-preferred O_NONBLOCK rather than O_NDELAY.
	(is_empty_dir): Likewise.
	* src/shred.c (wipename): Likewise.  Don't bother trying to open
	dir for writing, since POSIX prohibits it.

2005-12-22  Jim Meyering  <jim@meyering.net>

	* tests/help-version: Redirect stderr to /dev/full, to suppress
	write error diagnostic.

2005-12-19  Jim Meyering  <jim@meyering.net>

	* src/mkdir.c, src/mknod.c, src/mkfifo.c (main)
	Avoid a minor race condition when `-m MODE' is specified, by using
	open, fchown, and close rather than just chown.  To do that reliably --
	even with an overly restrictive umask -- ensure that each mkdir,
	mknod and mkfifo call uses a mode including at least owner-read access.
	* src/mknod.c (main): When `-m MODE' is specified, exit nonzero if
	the subsequent chown (or equivalent open,fchown,close) fails.
	* tests/misc/mknod: New tests.
	* tests/misc/Makefile.am (TESTS): Add mknod.

2005-12-17  Jim Meyering  <jim@meyering.net>

	* src/remove.c (is_empty_dir): Open with O_NDELAY, so we don't hang,
	e.g., on a named pipe.
	(OPEN_NO_FOLLOW_SYMLINK): Remove definition.  Use O_NOFOLLOW in
	place of all uses, since it is guaranteed (system.h) to be defined.

2005-12-05  Andreas Gruenbacher  <agruen@suse.de>

	Add POSIX ACL support
	* src/ls.c: Switch back from HAVE_ACL to USE_ACL: The acl() syscall
	is no requirement for ACL support; particularly, it does not exist
	on systems that have POSIX ACLs.
	* src/copy.h (cp_option_init) [umask_kill]: Remove member.
	* src/cp.c (umask_kill): With default acls, the umask is not to be
	applied.  Remove umask_kill, don't change the process umask, and let
	the kernel apply the umask where appropriate.
	* src/cp.c (make_dir_parents_private): Fix logic for POSIX ACLs.
	* src/copy.c (get_dest_mode): Remove; it is obsolete after removing
	umask_kill.
	(copy_reg, copy_internal): Use copy_acl and set_acl
	instead of fchown/chown. Fix the logic for POSIX ACLs.
	(chown_succeded): Remove; we now always copy acls and
	preserve S_ISUID, S_ISGID, and S_ISVTX when needed, no matter if we
	did a chown before or not.
	* src/mv.c, src/install.c (cp_option_init): Don't set umask_kill member.
	* src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD, cp_LDADD,
	mv_LDADD, ginstall_LDADD): On systems with an ACL library, arrange
	to link with it via $(LIB_ACL), for the utilities that need it.

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

	* src/remove.c (OPENAT_CWD_RESTORE__REQUIRE): Remove.
	(OPENAT_CWD_RESTORE__ALLOW_FAILURE): Likewise.
	(fd_to_subdirp): Remove openat_cwd_restore_allow_failure arg; its
	value is now signified by whether cwd_errno is null.
	(fd_to_subdirp, remove_dir, rm_1); Change cwd failure indicator from
	pointer-to-bool to pointer-to-errno-value.  All callers changed.
	(rm_1): Don't bother setting a local cwd failure flag and then
	ORing it into the caller's.  Just set the caller's.
	(rm): Use cwd failure errno value to print a slightly-better
	diagnostic.

2005-12-15  Jim Meyering  <jim@meyering.net>

	* src/stat.c (print_it): Properly handle a backslash at the
	end of a --printf format string.  Reported by Paul Eggert.
	* tests/misc/stat-printf (end-bs): Add a test for the above.

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

	* tests/acl: Port to pre-POSIX shells like Solaris 8 /bin/sh.
	Don't assume /etc/passwd contains user names; use 'id' instead.

2005-12-15  Jim Meyering  <jim@meyering.net>

	stat: revert behavior of --format=FMT (-c)
	stat: add new option: --printf=FMT
	* NEWS: Mention this.
	* src/stat.c (isodigit, octtobin, hextobin): Define.
	(PRINTF_OPTION): Define.
	(interpret_backslash_escapes, trailing_delim): New globals.
	(usage): Document them.  Alphabetize on long option names.
	(print_esc_char): New function.
	(print_it): Rewrite, in order to handle backslash escapes.
	(main): Handle new option.  Set globals for --format, too.

	* tests/misc/stat-printf: Test --printf and --format.
	* tests/misc/Makefile.am (TESTS): Add stat-printf.

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

	* NEWS: sort now reports incompatible options.
	* src/sort.c (incompatible_options, check_ordering_compatibility):
	New functions.
	(main): Use them.  Don't bother with a usage message for
	"sort -c a b", for consistency with other error diagnostics.
	* tests/sort/Test.pm (incompat1, incompat2, incompat3, incompat4):
	New tests.

	* src/cat.c (main): Undo previous change.  close_stdout already
	does the check, so the previous change wasn't necessary.

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

	* src/cat.c (main): Check for close (STDOUT_FILENO) failure.

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

	Install a more-conservative approach for sort -R.  It's the
	same basic idea as the existing code, except it uses the full ISAAC
	approach (called the "more kosher" approach in the existing comments).
	This makes "sort -R" quite a bit slower (about a factor of 2 on my
	little tests involving 10000 lines on a 2.4 GHz P4), but I think it's
	better to be conservative here at first, and review any performance
	improvements carefully.
	* .x-sc_require_config_h: Add src/rand-isaac.c.
	* src/rand-isaac.h: Remove.  All uses now simply include rand-isaac.c.
	* src/Makefile.am (noinst_HEADERS): Remove rand-isaac.h.
	(shred_SOURCES, sort_SOURCES): Remove.
	(EXTRA_DIST): Add rand-isaac.c.
	* src/rand-isaac.c: Revert to what used to be in shred.c, without
	changing it to allow for varying numbers of words in the state.
	Alter so that we include rand-isaac.c directly rather than
	compiling it and linking to it.  Don't include config.h or
	system.h; that's the includer's responsibility.
	Omit functions that are specific to shred.
	(ISAAC_LOG, ISAAC_WORDS, ISAAC_BYTES, struct isaac_state, ind):
	(isaac_step, struct irand_state):
	Resurrect these, with the same defns that used to be in shred.c.
	(ISAAC_SIZE, isaac_new, isaac_copy): Remove.
	(isaac_refill, isaac_seed_start, isaac_seed_data, irand_init, irand32):
	static again.
	(struct isaac_state, isaac_refill, isaac_mix, isaac_init):
	(isaac_seed_start, isaac_seed_data, isaac_seed_finish, isaac_seed):
	(irand_init, irand32, irand_mod):
	Number of words is constant again.
	(struct irand_state, irand_init, irand32, irand_mod): Move to shred.c.
	* src/shred.c: Include rand-isaac.c rather than rand-isaac.h.
	* src/sort.c: Likewise.
	* src/shred.c (fillrand, dopass, main): Undo previous change.
	(struct irand_state, irand_init, irand32, irand_mod): Moved back here,
	from rand-isaac.c.
	* src/sort.c: Don't include md5.h; it wasn't needed.
	(struct keyfield): Rename random_hash to random, for consistency
	with the other member names.  All uses changed.
	(usage): Tweak wording to mention STRING for --seed option.
	(short_options): Rorder for consistency with other programs.
	(rand_state): Now a struct, not a pointer to one.  All uses changed.
	(HASH_WORDS, HASH_SIZE): Remove.
	(get_hash): Remove comments around resbuf size, since we can assume C89.
	Use a "more-kosher" (but slower) approach of invoking isaac_refill.
	(keycompare): Adjust to the new get_hash.
	Add a FIXME.
	(badfieldspec): Omit recently-introduced comment; it isn't needed.
	(main): Don't set need_random simply because gkey has it set; that
	doesn't necessarily mean we'll need random numbers.
	Redo seeding to match new get_hash approach.

2005-12-10  Jim Meyering  <jim@meyering.net>

	* src/Makefile.am (noinst_HEADERS): Add rand-isaac.h.

	Avoid shred segfault on 64-bit systems.
	* src/rand-isaac.c (isaac_refill): Don't try to negate a
	local of type uint32_t.  Make the local an `int' instead.

	* NEWS: Mention sort's new options.

	* src/rand-isaac.c (isaac_mix): Declare to be static.
	Mark all other functions as `extern' so the tight-scope
	part of `make distcheck' passes once again.
	* src/rand-isaac.h (isaac_mix): Remove declaration.

	* src/sort.c (get_hash): Change position of `*' in parameter
	type to conform with convention.
	(main): Split a long line so it fits in 80 columns.
	(keycompare): Remove stray SPACE before TAB that was
	causing `make distcheck' to fail.

	* src/shred.c: Don't include gethrxtime.h.  No longer needed.

	* tests/misc/sort-rand: New file: basic tests for the new options.
	* tests/misc/Makefile.am (TESTS): Add sort-rand.

2005-12-10  Frederik Eaton  <frederik@ofb.net>

	* src/Makefile.am (sort_LDADD): Add $(LIB_GETHRXTIME).
	(shred_SOURCES, sort_SOURCES): New macros, so we compile rand-isaac.c.
	* src/rand-isaac.c: New file, containing ISAAC code that was in shred.c.
	Make state size runtime-configurable.
	(isaac_new, isaac_copy): New functions.
	* src/rand-isaac.h: New file.
	* src/shred.c: Include rand-isaac.h.  Move ISAAC code to rand-isaac.c.
	(fillrand, main): Adjust to the fact that the state size is now
	runtime-configurable.
	* src/sort.c (short_options, long_options, WORDS, keycompare, main):
	(usage): Add options --random-sort and --seed to implement a random
	shuffle.
	Include md5.h and rand-isaac.h.
	(get_hash): New function.
	(rand_state): New var.
	(HASH_WORDS, HASH_SIZE): New macros.

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

	* tests/dd/misc: Add test for dd iflags=noatime.

2005-12-09  Jim Meyering  <jim@meyering.net>

	* src/sort.c (usage): Mention white space vs -b and -t options.
	From The Wanderer.

2005-12-09  Eric Blake  <ebb9@byu.net>

	* src/test.c (main): Fix misleading comment.

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

	* NEWS: Mention dd's new noatime flag.
	* src/system.h (O_NOATIME): Define to 0 if not already defined.
	* src/dd.c (flags, usage): Add support for noatime flag.

2005-12-07  Jim Meyering  <jim@meyering.net>

	Distribute the cvsu script, used only by `make syntax-check'.
	* Makefile.am (EXTRA_DIST): Add build-aux/cvsu.
	* Makefile.maint (CVS_LIST): Use build-aux/cvsu, now that we
	distribute a copy of this script.
	* .x-sc_unmarked_diagnostics: Add build-aux/cvsu.

	* tests/mv/acl: exit-77 before the trap, not after, if we fail
	to create a temporary directory on another partition.
	From Andreas Gruenbacher.

2005-12-06  Tomas Pospisek  <tpo@sourcepole.ch>  (tiny change)

	* man/basename.x: Cross-reference to dirname and readlink.
	* man/dirname.x: Cross-reference to basename and readlink.

2005-12-05  Andreas Gruenbacher

	* src/copy.c [!HAVE_FCHOWN]: Define fchown(...) to -1.
	(set_owner, preserve_author): New functions, factored out of copy_reg.
	(copy_reg): Use them.
	(copy_internal): Use them here, too.

2005-12-04  Jim Meyering  <jim@meyering.net>

	* src/sleep.c (usage): Say what happens with two or more arguments.
	Suggested by Justin Pryzby.

	* src/uptime.c (print_uptime): Move decl of `upsecs' into scope
	where it's used.

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

	* src/rm.c (long_opts): Change the name of each undocumented, for-
	testing-only option to start with `-', so that it cannot render
	ambiguous any prefix it happens to share with some other option name.
	Problem reported by Eric Blake.
	* src/head.c (long_options): Likewise.
	* src/tail.c (long_options): Likewise.

	* tests/misc/head-elide-tail: Update uses of undocumented, for-
	testing-only --presume* options to start with `---'.
	* tests/rm/dangling-symlink: Likewise.
	* tests/rm/dir-no-w: Likewise.
	* tests/rm/isatty: Likewise.

2005-11-30  Jim Meyering  <jim@meyering.net>

	* Makefile.maint: Add a comment about cvsu.

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

	* NEWS: df updates for "none", "proc", inaccessible file systems.
	* src/df.c (show_point): Ignore inaccessible file systems.
	(usage): -a includes dummy file systems, not size-0 file systems.

	* src/od.c (unsigned_long_long_int): Renamed from ulonglong_t,
	to avoid collision with POSIX name space.  All uses changed.

2005-11-24  Jim Meyering  <jim@meyering.net>

	* tests/Makefile.am (EXTRA_DIST): Add acl to the list.
	* tests/acl: Add `$0: ' prefix to diagnostics.

	* .x-sc_require_config_h: Add lib/buffer-lcm.c to the list.

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

	* src/copy.c: Improve performance a bit by optimizing away
	unnecessary system calls and going to a block size of at least
	8192 (on normal hosts, anyway).  This improved performance 5% on my
	Debian stable host (2.4.27 kernel, x86, copying from root
	ext3 file system to itself).
	Include "buffer-lcm.h".
	(copy_reg): Omit last argument.  All callers changed.
	Use xmalloc to allocate rather than trusting alloca
	(which is unwise with large block sizes).
	Declare locals more locally, if possible.
	Use uintptr_t words instead of int words, for a bit more speed
	when looking for null blocks on 64-bit hosts.
	Optimize away reads of zero bytes on regular files.
	In the typical case, insist on 8 KiB buffers, at least.
	Avoid unnecessary extra call to fstat when checking for sparse files.
	Avoid now-unnecessary cast to off_t, and "0L".
	Avoid unnecessary test of *new_dst when checking for same owner
	and group.

2005-11-22  Paul Eggert  <eggert@cs.ucla.edu>

	* src/remove.c (rm): Don't assume C99 for-loop syntax.

2005-11-22  Jim Meyering  <jim@meyering.net>

	* src/remove.c (AD_push): Remove debugging cruft.

	* tests/rm/unread2 (rm): Change expected diagnostic,
	`cannot open directory' to `cannot remove', to align with
	new version of rm.
	* tests/rm/rm2: Ensure that rm now continues removing entries
	even after certain types of failure.

	* src/remove.c: Rewrite.  Now, this module is reentrant on systems
	that provide openat (Solaris), and on systems like Linux+procfs
	where our openat emulation code is reentrant.  This also fixes a
	few low-probability leaks and eliminates some code that could,
	in very unusual circumstances, cause rm() (via a callee) to exit.
	* NEWS: Mention this.

	* configure.ac: Put copyright dates all on one line so the
	emacs function that updates them works properly.

2005-11-18  Paul Eggert  <eggert@cs.ucla.edu>

	* configure.ac (AM_PROG_CC_C_O): Add.  Needed for CVS Automake.
	Problem reported by Eric Blake.
	(AC_PROG_CC_STDC): Use this instead of AC_PROG_CC, so that
	we get a standard-conforming compiler.  This relies on the new
	m4/c.m4 file.  Note that it's a bit tricky, since c.m4 doesn't
	define AC_PROG_CC_STDC; we are relying on Autoconf 2.59 internals.
	m4/c.m4 can go away with Autoconf 2.60 comes out.

2005-11-17  Jim Meyering  <jim@meyering.net>

	* src/remove.c (AD_mark_helper): Make a `char *' parameter `const'.
	(AD_mark_current_as_unremovable): Likewise, but for a local.
	(rm_1): Likewise.

	* tests/mv/acl: Let traps handle removing temporary directories.

	Expect acl-related tests to fail, until the corresponding
	patches are committed.
	* tests/mv/Makefile.am (XFAIL_TESTS): Add acl.
	* tests/cp/Makefile.am (XFAIL_TESTS): Likewise.

	ACL tests, from Andreas Gruenbacher.
	* tests/acl, tests/mv/acl, tests/cp/acl: New files.
	* tests/mv/Makefile.am (TESTS): Add acl.
	* tests/cp/Makefile.am (TESTS): Add acl.

	* src/ls.c (basename_is_dot_or_dotdot): Correct wording in comment.

2005-11-16  Paul Eggert  <eggert@cs.ucla.edu>

	* NEWS: Improve quality of ln's diagnostics.
	* src/ln.c (do_link, usage): Likewise.
	(do_link): Don't use alloca on a buffer of unbounded size.

2005-11-16  Jim Meyering  <jim@meyering.net>

	* tests/cp/fail-perm: Accommodate HPUX.  It appears to fail
	with EACCES rather than EPERM.  Reported by Peter O'Gorman here:
	http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/5766
	This also affects AIX 4.3.3, according to Ralf Wildenhues, in
	http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html

2005-11-14  Jim Meyering  <jim@meyering.net>

	* NEWS (sort): Mention consequences of today's mkstemp-safer.c fix.

2005-11-13  Jim Meyering  <jim@meyering.net>

	* announce-gen: Accept new option, --gpg-key-id=ID and
	emit a blurb telling how to use the .sig files.
	* Makefile.cfg (gpg_key_ID): Define.
	* Makefile.maint (announcement): Use new option and key.

	Require that most .c files include <config.h>.
	* Makefile.maint (sc_require_config_h): New rule.
	(syntax-check-rules): Add it.
	* .x-sc_require_config_h: New file listing exceptions to the
	above rule.  Some are legit, others are simply grandfathered in.
	* Makefile.am (EXTRA_DIST): Add .x-sc_require_config_h here, too.

2005-11-12  Jim Meyering  <jim@meyering.net>

	* src/checksum.h, src/md5.c, src/sha1sum.c: Remove now-unused files.

2005-11-11  Jim Meyering  <jim@meyering.net>

	* NEWS: Mention `readlink -f' bug fix in 5.3.0 news.
	Mention new readlink options in 5.3.0's `New features' section.
	Spotted by Thomas Hood.

2005-11-08  Jim Meyering  <jim@meyering.net>

	* NEWS: Merge in changes from b5_9x branch.

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

	* NEWS: ls now defaults to --time-style='locale', which in turn acts
	like --time-style='posix-long-iso' if the locale settings are messed up.
	* src/ls.c (decode_switches): Implement this.

2005-11-08  Jim Meyering  <jim@meyering.net>

	* tests/du/2g: s/expensive/very expensive/ in a comment.
	From Paul Townsend.

2005-10-17  Eric Blake  <ebb9@byu.net>

	* src/ls.c (usage): Fix descriptions of --sort, --time.
	Reported by Vitaly A. Ostanin.

2005-11-04  Paul Eggert  <eggert@cs.ucla.edu>

	* src/ln.c: Include filenamecat.c.
	(FILE_BASENAME_CONCAT): Remove.
	(do_link): Remove last arg DEST_IS_DIR.  All callers changed.
	(main): Use file_name_concat, base_name, and strip_trailing_slashes
	instead of FILE_BASENAME_CONCAT.  This simplifies the code, and avoids
	the use of alloca.

2005-11-04  Jim Meyering  <jim@meyering.net>

	* src/du.c (process_file): Don't overflow for files of size >= 2^31
	on systems with stat.st_blocks of a signed 32-bit type.
	This bug causes trouble on some AIX 5.1 systems.
	Report and trivial patch from Paul Townsend:
	<http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00033.html>
	* NEWS: Mention this.

	* tests/du/2g: New (very-expensive) test for the above-fixed bug.
	* tests/du/Makefile.am (TESTS): Add it here.
	* tests/very-expensive: New file.
	* tests/Makefile.am (EXTRA_DIST): Add it here.
	* tests/cp/perm: Mark this test as `very-expensive', too.

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

	* NEWS: Mention that rm -d and maybe ln -d are scheduled for
	removal in 2006.
	* src/remove.h (struct rm_options): Remove unlink_dirs.  All uses
	removed.
	* src/rm.c (usage): Don't mention rm -d.

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

	* tests/dd/skip-seek: Fix typo in comment: s/fileutils/coreutils.
	From Andreas Schwab.

	* tests/dd/unblock-sync: Redirect stderr to /dev/null so the
	`M+N records in/out' lines don't pollute `make check' output.

	* tests/dd/skip-seek (sk-seek4): New test, to exercise the bug
	fixed on 2005-10-31.  This test uses the new, IN_PIPE specifier.
	* tests/Coreutils.pm: Accept a new type of input specifier: IN_PIPE,
	to indicate that the input file should be piped into the command
	under test (via `cat FILE | $prog ...').

	* src/remove.c (remove_entry): Emit a better diagnostic when rm
	(without -r) fails to remove a directory on a non-Linux system.
	This change affects only newer Solaris systems (with priv_*
	functions like priv_allocset).  Reported by Keith Thompson.

	* tests/rm/dir-nonrecur: New file/test for the above fix.
	* tests/rm/Makefile.am (TESTS): Add dir-nonrecur.

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

	* NEWS: "tail -c 2 FILE" and "touch 0101000000" now operate as
	POSIX 1002.1-2001 requires.
	* src/tail.c (parse_obsolete_option): Implement this.
	Problem reported by Vincent Lefevre.
	* src/touch.c (main): Pass PDS_PRE_2000 to posixtime.
	* tests/tail/Test.pm (c-2, c-2-minus, c2, c2-minus): New tests.
	(test_vector): Add special cases for _POSIX2_VERSION, and
	regularize the old ones a bit.
	* tests/touch/obsolescent: Add y2000 test.

2005-10-31  Paul Eggert  <eggert@cs.ucla.edu>

	* src/dd.c (skip): Fix off-by-one error reported by
	Theodoros V. Kalamatianos.

2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>

	* tests/mkdir/p-3: Require that the test be run as non-root.
	Problem and trivial fix reported by Theodoros V. Kalamatianos.

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

	* src/ln.c (FILE_BASENAME_CONCAT): Omit unnecessary slashes in the
	boundary between DEST and SOURCE in the result.

2005-10-26  Dmitry V. Levin  <ldv@altlinux.org>

	* src/md5sum.c (main) [!O_BINARY]: Changed default read mode
	back to text, to sync with documentation and for backwards
	compatibility.

2005-10-25  Jim Meyering  <jim@meyering.net>

	* tests/dircolors/simple (other-wr): Add an explicit test for
	the dircolors bug (NULL-dereference) fixed yesterday.

2005-10-24  Jim Meyering  <jim@meyering.net>

	* src/tac.c (tac_file): When determining whether a file is seekable,
	also test whether it is a tty.  Using only the lseek-based test would
	give a false positive on Solaris.  Reported by Peter Fales.

2005-10-24  Dmitry V. Levin  <ldv@altlinux.org>

	* tests/install/d-slashdot: New test, for "install -d" failure.
	* tests/install/Makefile.am (TESTS): Add d-slashdot.
	* tests/mkdir/p-slashdot: New test, for "mkdir -p" failure.
	* tests/mkdir/Makefile.am (TESTS): Add p-slashdot.

2005-10-24  Jim Meyering  <jim@meyering.net>

	* src/dircolors.c (ls_codes): Add missing comma.
	Anonymous report and patch from
	http://savannah.gnu.org/bugs/?func=detailitem&item_id=14849

	* src/dircolors.c: Add compile-time assertion that the slack_codes
	and ls_codes arrays have the same number of elements.  This would
	have prevented the above-fixed bug.

	* src/expand.c (parse_tab_stops): Add a comment to make this function
	identical to the one in unexpand.c.
	* src/unexpand.c (parse_tab_stops): Adjust syntax to make this function
	identical to the one in expand.c.

	* src/expand.c (next_file): Don't assume fopen cannot return stdin.

2005-10-23  Jim Meyering  <jim@meyering.net>

	* src/md5sum.c (digest_check, main): Use ptr_align rather than
	a dangerous pointer-value-to-`unsigned' cast.
	* NEWS: mention the new sha* programs.
	* AUTHORS: Add new sha* programs.

2005-08-28  David Madore  <david.madore@ens.fr>

	Add new programs: sha224sum, sha256sum, sha384sum, sha512sum.
	* README: Add their names to the list.
	* src/md5sum.c: Provide framework for computing sha-2 hashes.
	* src/Makefile.am (sha224sum, sha256sum, sha384sum, sha512sum):
	Rules for compiling sha-2 utilities
	(noinst_HEADERS): Remove checksum.h.
	* man/sha512sum.x, man/sha384sum.x, man/sha256sum.x, man/sha224sum.x:
	New files.
	* man/Makefile.am (dist_man_MANS): Add the corresponding .1 names.
	(sha224sum.1, sha256sum.1, sha384sum.1, sha512sum.1): New dependencies.
	* tests/misc/sha224sum, tests/misc/sha256sum: New files.
	* tests/misc/sha384sum, tests/misc/sha512sum: New files.
	* tests/misc/Makefile.am (TESTS): Add new sha224sum, sha256sum,
	sha384sum, sha512sum test scripts here rather that each in its
	own directory.

2005-08-28  David Madore  <david.madore@ens.fr>

	* tests/sha1sum/basic-1 (million-a): Add the "million a's" test (one
	of the FIPS test vectors).

2005-10-23  Jim Meyering  <jim@meyering.net>

	* configure.ac: Use 6.0-cvs as the version string.
	* NEWS: Adjust accordingly.