
1: 2005-10-22 Jim Meyering <jim@meyering.net> 2: 3: * Version 5.92. 4: 5: * configure.ac: Remove -cvs suffix from version string. 6: * NEWS: Add today's date. 7: 8: * tests/mkdir/writable-under-readonly: New test, neither run 9: nor distributed via tarballs. 10: 11: 2005-10-20 Jim Meyering <jim@meyering.net> 12: 13: * tests/chmod/octal: New file/test, to exercise today's 14: lib/modechange.c fix. 15: * tests/chmod/Makefile.am (TESTS): Add octal. 16: * NEWS: Mention this chmod fix as well as the dircolors one. 17: 18: 2005-10-18 Paul Eggert <eggert@cs.ucla.edu> 19: 20: * src/dircolors.c (append_quoted): Quote ' correctly. 21: Problem reported by Eric Blake. 22: 23: 2005-10-19 Jim Meyering <jim@meyering.net> 24: 25: * tests/dircolors/simple (quote): Add test for the above fix. 26: 27: 2005-10-18 Jim Meyering <jim@meyering.net> 28: 29: * tests/chgrp/basic: Add a comment explaining (probably) why this 30: test fails on OpenBSD 3.2 when run in an NFS-mounted directory. 31: 32: 2005-10-17 Jim Meyering <jim@meyering.net> 33: 34: * configure.ac: Use 5.92-cvs as the version string. 35: * NEWS: Adjust accordingly. 36: 37: * Makefile.maint (my-distcheck): Depend on 38: $(release_archive_dir)/$(prev-tgz) here, so that if it's missing 39: we fail earlier. 40: 41: 2005-10-16 Jim Meyering <jim@meyering.net> 42: 43: * Version 5.91. 44: 45: * Makefile.maint (VERSION_REGEXP): New variable. 46: (news-date-check, changelog-check): Use tighter regular expressions. 47: 48: * configure.ac: Remove -cvs suffix from version string. 49: * NEWS: Add today's date. 50: 51: * NEWS: Mention the `mkdir -p' bug fix. 52: 53: 2005-10-15 Jim Meyering <jim@meyering.net> 54: 55: * src/who.c (usage): Undocument deprecated --idle (-i) option. 56: 57: * src/df.c (main): Warn about the deprecated --kilobytes option. 58: * src/ls.c (decode_switches): Likewise. 59: 60: * src/du.c (usage): Document -m, once again. 61: (main): Warn about use of deprecated long options: 62: --kilobytes and --megabytes. 63: * src/tail.c (parse_options): Remove --allow-missing option. 64: You can use --retry instead. 65: * src/stat.c (main): Remove --link -l options. 66: You can use --dereference (-L) instead. 67: 68: 2005-09-30 Eric Blake <ebb9@byu.net> (tiny change) 69: 70: * man/Makefile.am (.x.1): Remove temp directory first. 71: * NEWS: Document dircolors change of 2005-09-05. 72: 73: 2005-10-07 Paul Eggert <eggert@cs.ucla.edu> 74: 75: * src/sort.c (sortlines_temp): Redo previous change, since I'm 76: no longer confident that the m4/stdbool.m4 patch suffices. 77: 78: 2005-10-06 Paul Eggert <eggert@cs.ucla.edu> 79: 80: * src/sort.c (sortlines_temp): Undo previous change, since 81: today's change to m4/stdbool.m4 should catch it. 82: 83: 2005-10-06 Jim Meyering <jim@meyering.net> 84: 85: * TODO: rm: add support for a -I option, like that from FreeBSD's. 86: 87: 2005-10-05 Jim Meyering <jim@meyering.net> 88: 89: * src/sort.c (sortlines_temp): Declare temporary as `int' rather 90: than `bool' to work around AIX 5.3 compiler bug in 64-bit mode. 91: From James Lemley. 92: 93: 2005-10-03 Jim Meyering <jim@meyering.net> 94: 95: * src/factor.c (MAX_N_FACTORS): Define in terms of sizeof (uintmax_t) 96: rather than hard-coding to 128. From Thomas M.Ott. 97: 98: 2005-10-02 Jim Meyering <jim@meyering.net> 99: 100: * Makefile.maint (sc_unmarked_diagnostics): 101: Search only cvs-controlled files. 102: * .x-sc_unmarked_diagnostics: New file. 103: * Makefile.am (EXTRA_DIST): Add it. 104: 105: 2005-10-01 Jim Meyering <jim@meyering.net> 106: 107: * src/factor.c (main): Don't stop processing arguments upon 108: the first invalid one. Suggestion from Eric Blake 109: * tests/factor/basic: Add a test for this. 110: 111: 2005-09-30 Jim Meyering <jim@meyering.net> 112: 113: * configure.ac: Use 5.91-cvs as the version string. 114: * NEWS: Adjust accordingly. 115: 116: 2005-09-29 Paul Eggert <eggert@cs.ucla.edu> 117: 118: * src/dd.c (main): Don't assume size_t has the same width 119: as unsigned long. Problem reported by Eric Blake. 120: 121: * NEWS: Clarify "tail - f" example. 122: 123: 2005-09-29 Jim Meyering <jim@meyering.net> 124: 125: * Version 5.90. 126: 127: * configure.ac: Remove -cvs suffix from version string. 128: * NEWS: Add today's date. 129: 130: * NEWS: Mention this bug fix: 131: stat now exits nonzero if a file operand does not exist 132: 133: 2005-09-28 Paul Eggert <eggert@cs.ucla.edu> 134: 135: * src/system.h (LONGEST_MODIFIER): Use ULONG_MAX_LT_ULLONG_MAX 136: instead of ULLONG_MAX, as the latter doesn't work with GCC 2.7.2.1. 137: 138: 2005-09-28 Jim Meyering <jim@meyering.net> 139: 140: * configure.ac: Use 5.90-cvs as the version string, not 5.3.1-cvs. 141: * NEWS: Adjust accordingly. 142: 143: * README: Remove note about FreeBSD make test failure. 144: 145: 2005-09-28 Paul Eggert <eggert@cs.ucla.edu> 146: 147: * tests/install/trap: Work around a bug in FreeBSD 5.0. 148: 149: 2005-09-28 Jim Meyering <jim@meyering.net> 150: 151: * README: Warn about a (now-)known problem on FreeBSD 5.0: 152: 153: 2005-09-26 Paul Eggert <eggert@cs.ucla.edu> 154: 155: * src/touch.c (touch): Handle "touch -c - >&-" by checking for EBADF 156: and ENOSYS. 157: Do not pass "-" to futimens; pass NULL instead. 158: If close (STDIN_FILENO) fails, report the error separately instead 159: of letting the 'close' pollute errno. 160: * tests/touch/empty-file: Test "touch -" too. 161: * tests/touch/no-create-missing: Likewise. 162: * tests/touch/read-only: Likewise. 163: 164: 2005-09-26 Jim Meyering <jim@meyering.net> 165: 166: * tests/touch/read-only: New test, for root of chmod/usage failure. 167: * tests/touch/Makefile.am (TESTS): Add read-only. 168: 169: Work around the root cause of alpha-linux-1.sf.net test failure. 170: * tests/chmod/usage: Remove *all* files before each inner loop 171: iteration. Otherwise, with a touch program that fails on unwritable 172: files, (this happens at least on linux-2.2.20) a -w file left behind 173: from a previous iteration could cause a spurious test failure. 174: 175: 2005-09-25 Paul Eggert <eggert@cs.ucla.edu> 176: 177: * tests/chmod/usage: Undo the s/files/file/ change, but add 178: comments about why the old version was desired. 179: 180: 2005-09-25 Jim Meyering <jim@meyering.net> 181: 182: * tests/ls-2/tests (setuid-etc): Work around output mismatch when 183: a just-created test file cannot be made set-group-ID. 184: 185: Avoid test failures on alpha-linux-1.sf.net. 186: * tests/chmod/usage: Use newer trap and tmpdir-creation framework. 187: Fix apparent typos (s/files/file/) in inner loop. 188: 189: 2005-09-24 Paul Eggert <eggert@cs.ucla.edu> 190: 191: * NEWS: "touch -" now touches standard output. 192: * src/touch.c (touch): Implement this. 193: (usage): Document this. 194: 195: * src/copy.c (HAVE_FCHMOD, HAVE_FCHOWN): Define to 0 if not defined. 196: (copy_reg): New args CHOWN_SUCCEDED and DST_SB. All callers changed. 197: Add a "goto close_src_and_dst_desc;" that was missing in the 198: previous patch. 199: (copy_reg) [HAVE_FCHOWN]: Prefer fchown to chown. 200: (copy_reg) [HAVE_FCHMOD]: Prefer fchmod to chmod. 201: (copy_internal): Don't invoke chown if fchown worked, 202: and likewise for chmod and fchmod. 203: 204: 2005-09-24 Jim Meyering <jim@meyering.net> 205: 206: * src/shred.c: Use `#ifdef HAVE_CONFIG_H', not `#if HAVE_CONFIG_H', 207: for consistency with gnulib. 208: * src/dircolors.c: Likewise. 209: 210: * Makefile.maint (sc_no_if_have_config_h): New rule. 211: (syntax-check-rules): Add it. 212: .x-sc_no_if_have_config_h: New file. 213: * Makefile.am (EXTRA_DIST): Add it. 214: 215: * tests/seq/basic (eq-wid-1, eq-wid-2): Disable these tests for now. 216: They fail with non-gcc compilers and some combinations 217: of options and libraries on Solaris systems. 218: 219: * tests/misc/date (uninit-64): Restore this test. 220: Add start-up code to detect, and work around, the cases in 221: which the test might fail. 222: 223: 2005-09-24 Paul Eggert <eggert@cs.ucla.edu> 224: 225: * tests/misc/date (uninit-64): Remove this test. It wasn't 226: portable in theory (it doesn't work on hosts where 'int' is 64 227: bits, example) or in practice (Solaris 8 localtime returns garbage 228: in tm_year for the specified date, but that's not coreutils's 229: fault). 230: 231: 2005-09-23 Paul Eggert <eggert@cs.ucla.edu> 232: 233: * src/copy.c (copy_reg): Preserve time stamps if 234: x->preserve_timestamps is set, using futimens so that 235: we needn't resolve the path again. 236: (copy_internal): Don't preserve time stamps if copy_reg did it 237: already. 238: * src/install.c (change_timestamps): First arg is source 239: struct stat, not file name. All uses changed. 240: (install_file_in_file): Stat the source file. 241: Don't try to change time stamps if copy_file did it. 242: * src/system.h: Don't include utime.h; not needed. 243: (struct utimbuf) [!defined HAVE_STRUCT_UTIMBUF]: Remove; not needed. 244: 245: 2005-09-23 Jim Meyering <jim@meyering.net> 246: 247: * src/od.c: Use `verify' to ensure that our hard-coded 248: bytes_to_*_digits arrays are long enough. Of course, 17+-byte 249: integral types aren't on the near horizon, but just in case... 250: (MAX_INTEGRAL_TYPE_SIZE): Move definition to precede new first use. 251: (bytes_to_oct_digits, bytes_to_signed_dec_digits): 252: (bytes_to_unsigned_dec_digits, bytes_to_hex_digits): Change base 253: type from `char' to the clearer `unsigned int'. 254: 255: 2005-09-21 Paul Eggert <eggert@cs.ucla.edu> 256: 257: * src/rmdir.c (EEXIST, ENOTEMPTY): Remove unused macros. 258: 259: Sync from gnulib. 260: 261: * src/dircolors.c: Include strcase.h. 262: * src/pinky.c: Include canon-host.h rather than declaring 263: canon_host ourselves. 264: * src/who.c: Likewise. 265: 266: * src/system.h (X2NREALLOC, X2REALLOC): Moved here from 267: ../lib/xalloc.h, with args properly parenthesized, and using 268: verify_expr rather than the old VERIFY_EXPR. 269: 270: 2005-09-21 Jim Meyering <jim@meyering.net> 271: 272: * tests/install/basic-1: Require that this test be run as non-root. 273: Otherwise, it fails due to the fact that the chmod 0 . doesn't 274: affect root. 275: 276: 2005-09-20 Jim Meyering <jim@meyering.net> 277: 278: * src/remove.c (write_protected_non_symlink): Change comment to 279: agree with the code. 280: 281: 2005-09-19 Jim Meyering <jim@meyering.net> 282: 283: * src/remove.c (remove_dir): Return RM_ERROR, not `1', 284: when attempting to remove `/' with --preserve-root. 285: 286: * src/remove.c (remove_cwd_entries): Syntactic tweak: move an 287: assignment out of an if-expression. 288: 289: 2005-09-17 Jim Meyering <jim@meyering.net> 290: 291: * src/extract-magic (usage): Request that additions be sent to 292: bug-coreutils@gnu.org, too. 293: 294: 2005-09-16 Jim Meyering <jim@meyering.net> 295: 296: * tests/misc/date (rfc822-1): Compensate for Solaris 5.9's /bin/sh, 297: which emits a diagnostic to stderr when this test's LC_ALL=de_DE 298: setting cannot be honored. 299: 300: * tests/misc/date (subfmt-up1): Put quotes around format string 301: to protect `^' from interpretation by some shells. 302: Add a use of OUT_SUBST to compensate for Solaris strftime's slightly 303: different formatting of %c. 304: 305: * src/dd.c (main): When failing to truncate, mention both the seek 306: block count and the block size, in case the block size is very large. 307: Now `make distcheck' should pass, once again. 308: 309: 2005-09-16 Paul Eggert <eggert@cs.ucla.edu> 310: 311: * src/copy.c: Include stat-time.h. 312: (copy_internal): Use its functions instead of the obsolete 313: TIMESPEC_NS macro. 314: * src/cp.c (re_protect): Likewise. 315: * src/date.c (main): Likewise. 316: * src/du.c (struct duinfo, duinfo_init, duinfo_set, duinfo_add): 317: (show_date, print_size, process_file): Likewise. 318: * src/install.c (change_timestamps): Likewise. 319: * src/ls.c (cmp_ctime, cmp_mtime, cmp_atime, print_long_format): 320: Likewise. 321: * src/pr.c (init_header): Likewise. 322: * src/stat.c (human_time, print_stat): Likewise. 323: * src/tail.c (record_open_fd, tail_forever): Likewise. 324: * src/test.c (get_mtime, binary_operator): Likewise. 325: * src/touch.c (touch, main): Likewise. 326: * src/test.c (get_mtime): Renamed from age_of. All uses changed. 327: 328: 2005-09-16 Jim Meyering <jim@meyering.net> 329: 330: Date no longer needs to allocate virtual memory to do its job, 331: so it can no longer fail due to an out-of-memory condition. 332: 333: * src/date.c: Include fprintftime.h. 334: Don't include strftime.h or xanstrftime.h -- no longer needed. 335: (show_date): Use new fprintftime function rather than xanstrftime. 336: Correct comment: this function no longer handles a NULL format string. 337: * src/du.c: Likewise. 338: * NEWS: Mention this. 339: 340: * tests/misc/date (subfmt-up1): Test the combination of the 341: to-upper-case modifier (^) and a conversion specifier that 342: expands to a string containing lower case characters. 343: 344: 2005-09-15 Paul Eggert <eggert@cs.ucla.edu> 345: 346: * NEWS: uname -a no longer generates the -p and -i outputs if they 347: are unknown. 348: * src/uname.c (usage): Document this. 349: (main): Implement this. 350: 351: 2005-09-14 Jim Meyering <jim@meyering.net> 352: 353: * tests/misc/date (tz-5w, tz-5wf): Test new %:z format with 354: a field width. 355: 356: 2005-09-13 Paul Eggert <eggert@cs.ucla.edu> 357: 358: * src/dd.c: Detect some very unlikely buffer overflows. 359: (INPUT_BLOCK_SLOP, OUTPUT_BLOCK_SLOP): New macros. 360: (MAX_BLOCKSIZE): Now accepts an arg. All uses changed. 361: (page_size): New var. 362: (scanargs, skip, main): Use more-straightforward way to detect overflow. 363: (dd_copy): Use page_size rather than invoking getpagesize. 364: Use INPUT_BLOCK_SLOP, OUTPUT_BLOCK_SLOP. 365: (main): Set page_size. 366: Avoid a call to stat in the usual case where ftruncate succeeds. 367: 368: * src/expr.c (docolon): Add IF_LINT check to avoid GCC warning. 369: 370: * configure.ac: Don't invoke AC_CONFIGURE_HOST directly; AB_INIT 371: does it for us, and our invocation evokes a diagnostic from 372: Autoconf 2.59. 373: 374: * NEWS: date has a new --rfc-3339 option, and the old --iso-8601 375: option is deprecated. date, du, ls, and pr also have new time format 376: specifiers %:z, %::z, %:::z. 377: * src/date.c (TIME_SPEC_DATE): No longer needs to be nonzero, so 378: remove the "=1". 379: (TIME_SPEC_HOURS, TIME_SPEC_MINUTES): Must be at end now, so put 380: them there. 381: (time_spec_string, time_spec): Hours and minutes must be at 382: start now, so put them there. 383: (rfc_2822_format): Now a string constant, not a boolean. All uses 384: changed. 385: (iso_8601_format, rfc_format): Remove. 386: (RFC_3339_OPTION): New constant. 387: (long_options): Add --rfc-3339. 388: (usage): Add --rfc-3339. Don't mention --iso-8601. 389: Mention %:z, %::z, %:::z. 390: (main): Simplify calculation of 'format'; it was getting too hairy 391: to follow. Add --rfc-3339. 392: (show_date): Assume format arg is not NULL, which is the case 393: now. The default code is moved to 'main'. This simplifies things 394: and allows the default to be calculated just once. 395: * tests/misc/date: Add tests for --rfc-3339, %:z, %::z, %:::z. 396: 397: 2005-09-13 Jim Meyering <jim@meyering.net> 398: 399: * Makefile.maint (GZIP_ENV): Add --rsyncable option. 400: (makefile-check): Escape a `$' in a diagnostic. 401: 402: * configure.ac: Use AB_INIT (from autobuild). 403: 404: 2005-09-11 Jim Meyering <jim@meyering.net> 405: 406: * src/factor.c (usage): Remove leading spaces in 2-line 407: description, so that help2man doesn't mangle it. 408: Reported by Justin Pryzby. 409: 410: 2005-09-10 Jim Meyering <jim@meyering.net> 411: 412: csplit could produce corrupt output, given input lines longer than 8KB 413: 414: * src/csplit.c (load_buffer): Don't read from free'd memory 415: when handling lines longer than the initial buffer length. 416: (save_to_hold_area): Don't leak the previous hold_area buffer. 417: Reported by Tristan Miller and Luke Kendall. 418: * NEWS: Mention this. 419: * tests/misc/csplit: New test for this. 420: 421: * src/csplit.c (load_buffer): Avoid integer overflow in buffer 422: size calculations for very long lines. 423: 424: 2005-09-09 Paul Eggert <eggert@cs.ucla.edu> 425: 426: Support regular expressions in 64-bit code correctly, by 427: importing the latest gnulib regexp code, and not assuming 428: that sizes fit in 32 bits. 429: * src/csplit.c (process_regexp): Store match length in regoff_t, 430: not int. Assume that negative return values less than -2 431: represent regoff_t overflow. 432: * src/expr.c (docolon): Likewise. 433: * src/nl.c (proc_text): Likewise. 434: * src/ptx.c (SKIP_SOMETHING, find_occurs_in_text): Likewise. 435: * src/tac.c (tac_seekable): Likewise. 436: * src/expr.c (docolon) Check for size calculation overflow. 437: * src/nl.c (build_type_arg): Likewise. 438: * src/ptx.c (matcher_error): New function. 439: (SKIP_SOMETHING): Use it to report matcher errors. 440: (alloc_and_compile_regex): No longer any need to worry about 441: int versus size_t mismatch. 442: 443: * NEWS: Document "niceness" vs "nice value". 444: * configure.ac (utils_cv_func_setpriority): Simplify the tests. 445: Define HAVE_NICE rather than NICE_PRIORITY (since a niceness is 446: not a priority); all uses changed. 447: * src/nice.c (main): Hoist errno=0 outside the ifdef. 448: 449: 2005-09-09 Jim Meyering <jim@meyering.net> 450: 451: * tests/misc/date (neg-secs2, fill-1, fill-2): Add new tests. 452: 453: 2005-09-07 Paul Eggert <eggert@cs.ucla.edu> 454: 455: Use the phrase "niceness" instead of "nice value" to describe 456: the biased nice value that can go negative. This corrects 457: a discrepancy with POSIX, which states that nice values are 458: nonnegative. 459: * src/nice.c (GET_NICENESS): Renamed from GET_NICE_VALUE. 460: All uses changed. 461: (usage): Say "niceness" rather than "nice value". 462: (main): Say "niceness" rather than "priority" (which is something else 463: entirely nowadays). 464: 465: 2005-09-07 Jim Meyering <jim@meyering.net> 466: 467: * src/du.c (time_args): Use NULL in place of 0. 468: 469: 2005-09-05 Jim Meyering <jim@meyering.net> 470: 471: * src/dcgen: Don't omit comments until there is better documentation. 472: 473: Colorize set-user-ID and set-group-ID files and sticky, 474: other-writable, and sticky-and-other-writable directories. 475: * src/dircolors.c (slack_codes): Add new dircolors mode names. 476: (ls_codes): Add corresponding two-letter ls mode strings. 477: * src/ls.c (indicator_no[]): Add new symbols. 478: (indicator_name[]): Add corresponding mode strings. 479: (color_indicator[]): Add an entry for each new mode string. 480: (print_color_indicator): Honor new types. 481: * src/dircolors.hin: Document the default colors for the new strings. 482: From Mike Frysinger, based on a patch from Fedora. 483: * tests/ls-2/tests (setuid-etc): New test, for the above. 484: 485: 2005-08-29 Paul Eggert <eggert@cs.ucla.edu> 486: 487: * NEWS: "rm -FOO" now suggests "rm ./-FOO" if the file "-FOO" 488: exists and "-FOO" is not a valid option. 489: * src/rm.c: Include lstat.h, quotearg.h. 490: (diagnose_leading_hyphen): New function. 491: (main): Use it. 492: 493: 2005-08-27 Jim Meyering <jim@meyering.net> 494: 495: * src/du.c: Go ahead and leave the patch in (i.e., revert 496: today's change). It doesn't cause a problem after all, since 497: --exclude-from=- is always handled before --files0-from=F. 498: 499: * src/du.c: Revert the du.c part of the change from 2005-07-02: 500: That change (to reopen stdin on F for --files0-from=F) made it so 501: --exclude-from=- and --files0-from=F would not work together. 502: 503: 2005-08-23 Jim Meyering <jim@meyering.net> 504: 505: * configure.ac: Use `5.3.1-cvs' as the version string. 506: * NEWS: Adjust accordingly. 507: 508: * Makefile.maint (sc_useless_cpp_parens): New rule. 509: (syntax-check-rules): Add it. 510: * .x-sc_useless_cpp_parens: New file. 511: * Makefile.am (EXTRA_DIST): Add it. 512: 513: * src/od.c: Include <float.h> unconditionally. 514: * src/uptime.c (print_uptime): Remove unnecessary parens in 515: `#if defined (SYMBOL)' expressions. 516: * src/system.h: Likewise. 517: * src/hostname.c: Likewise. 518: * src/su.c: Likewise. 519: * src/test.c: Likewise. 520: 521: 2005-08-22 Jim Meyering <jim@meyering.net> 522: 523: * src/tail.c (xwrite_stdout): Rename from xwrite. Remove always- 524: equal-to-STDOUT_FILENO parameter and associated assertion. 525: Adjust all callers. 526: 527: 2005-08-21 Jim Meyering <jim@meyering.net> 528: 529: * src/ln.c (do_link): If ln is invoked with --interactive (-i), 530: encounters an existing destination file, and gets an affirmative 531: response, then first try to unlink the destination file rather 532: than simply failing. Suggestion from Karl Berry. 533: FIXME: add test for this 534: 535: * src/ln.c (main): Declare `target_directory' with const attribute. 536: * src/du.c (time_style): Add `const' attribute. 537: (tot_dui): Remove unnecessary (and too-short) initializer list. 538: 539: 2005-08-19 Jim Meyering <jim@meyering.net> 540: 541: * src/sort.c (usage) [-b,-t]: Ensure that there are at least two 542: spaces between each option and the corresponding description -- this 543: lets help2man format entries properly. Reported by Edward Welbourne. 544: 545: 2005-08-17 Jim Meyering <jim@meyering.net> 546: 547: * src/sort.c (usage): Fix typo s/POS 2/POS2/. 548: Reported by Edward Welbourne. 549: 550: * tests/misc/date [neg-secs]: New test for today's strftime.c bug fix. 551: * tests/misc/date: Remove terminating "\n"s once again. 552: Automatically add them whenever EXIT != 0. 553: 554: 2005-08-16 Paul Eggert <eggert@cs.ucla.edu> 555: 556: * src/df.c (show_dev): New arg STAT_FILE. All uses changed. 557: This sometimes gives better results on networked file systems 558: that do not respect POSIX semantics. Problem reported by 559: Bruno Haible. 560: 561: 2005-08-15 Jim Meyering <jim@meyering.net> 562: 563: Don't print uninitialized data (or anything else) to stdout 564: upon localtime failure. 565: * src/date.c (show_date): Remove stray `puts (buf);' (debugging?) 566: from the 2004-02-02 change. 567: * tests/misc/date (uninit-64): New test for the above. 568: Rewrite all other OUT strings to include the terminating "\n". 569: 570: 2005-08-14 Jim Meyering <jim@meyering.net> 571: 572: * src/md5sum.c (usage): Fix typo s/formated/formatted/ reported 573: by Norbert Kiesel. 574: 575: Use one fewer file descriptor in a common case. 576: * src/touch.c: Include "fd-reopen.h", rather than "fcntl--.h". 577: Use fd_reopen rather than open. 578: 579: 2005-08-14 James Youngman <jay@gnu.org> 580: 581: * src/test.c (age_of): Return the nanoseconds part of the timestamp, 582: if available. 583: (binary_operator) [-nt, -ot]: Use nanosecond values to break ties. 584: 585: 2005-08-14 Jim Meyering <jim@meyering.net> 586: 587: * src/ls.c (long_time_expected_width): Revert last change, just to 588: be paranoid, and add a comment explaining why. Paul Eggert mentioned 589: the possibility. 590: 591: * src/wc.c: Don't define mbrtowc at all. 592: If mbstate_t is not defined, then AC_TYPE_MBSTATE_T will define 593: it to `int' for us. Now wc.c really does compile on HP-UX 11.23. 594: 595: 2005-08-13 Jim Meyering <jim@meyering.net> 596: 597: * tests/date: Remove directory 598: * tests/Makefile.am (SUBDIRS): Remove date. 599: * configure.ac (AC_CONFIG_FILES): Remove tests/date/Makefile. 600: 601: * tests/Coreutils.pm: New keywords, ENV and ENV_DEL, to support 602: tests/misc/date. 603: 604: With todays additions, the generated shell script, 605: tests/date/date-tests had becoming far too large (over 350KB), 606: so use the superior-but-perl-requiring framework instead. 607: * tests/date/Test.pm: Move all tests from here... 608: * tests/misc/date: ...to this new file. 609: * tests/misc/Makefile.am (TESTS): Add date. 610: 611: * tests/date/Test.pm (test_vector) [cross-dst]: New test for 612: just-fixed getdate.y bug. 613: * tests/date/Test.pm (test_vector): Add 364 more tests like the above. 614: Remove unused $sunos4 variable. 615: 616: 2005-08-12 Jim Meyering <jim@meyering.net> 617: 618: * src/nohup.c (main): Explain why we reopen stdin for write-only access. 619: 620: * src/ls.c (long_time_expected_width): Don't test for failed localtime. 621: That cannot happen when the result date's year is in range. 622: Add an assertion instead. 623: 624: * src/ls.c (sort_files): Use cleaner `sizeof *VAR_NAME' 625: rather than `sizeof (TYPE_NAME)'. 626: * src/ptx.c (sort_found_occurs, digest_word_file): Likewise. 627: (alloc_and_compile_regex): Likewise. 628: 629: * src/wc.c: Test `!defined HAVE_MBSTATE_T' rather than 630: `defined mbstate_t' to detect missing support for mbstate_t. 631: The latter didn't work for HP-UX 11.23. 632: 633: Add bulletproofing in case stdin is closed. 634: * src/dircolors.c (have_read_stdin): Remove global variable. 635: (dc_parse_stream): Always use stdin (freopen, if needed) rather 636: than sometimes using fopen to get a new file descriptor. 637: Call fclose unconditionally. 638: (main): Don't close stdin here. If needed, now it's already done 639: by dc_parse_stream. 640: 641: * src/dircolors.c (dc_parse_file): Remove comment about 642: now-removed OPENOPTS. 643: 644: * src/fold.c (fold_file): Cosmetic: use X2REALLOC rather than x2realloc. 645: * src/pr.c (main): Likewise. 646: 647: * src/csplit.c (new_control_record): Cosmetic: use X2NREALLOC (only 648: two arguments) rather than x2nrealloc (with three). 649: * src/cut.c (ADD_RANGE_PAIR): Likewise. 650: * src/expand.c (add_tab_stop): Likewise. 651: * src/join.c (extract_field, getseq): Likewise. 652: * src/od.c (decode_format_string): Likewise. 653: * src/sort.c (add_temp_dir): Likewise. 654: * src/unexpand.c (add_tab_stop): Likewise. 655: 656: * src/pr.c (main): Cosmetic: use '\0' in place of 0. 657: 658: 2005-08-02 Jim Meyering <jim@meyering.net> 659: 660: * src/date.c: Include "xanstrftime.h". 661: (show_date): Use xanstrftime instead of open-coding it. 662: * src/du.c: Likewise. 663: 664: 2005-07-29 Jim Meyering <jim@meyering.net> 665: 666: * src/date.c (show_date): Remove now-unnecessary code that 667: treated an empty format string as a special case. 668: * tests/date/Test.pm (empty-format): New test, for this case. 669: 670: 2005-07-19 Jim Meyering <jim@meyering.net> 671: 672: * src/md5sum.c (usage): Adjust printf argument list to match 673: new format string. 674: 675: 2005-07-19 Paul Eggert <eggert@cs.ucla.edu> 676: 677: * NEWS: md5sum --check now accepts multiple input files, and 678: similarly for sha1sum. Extension suggested by Chris Girling. 679: * src/md5sum.c (usage, main): Support this new usage. 680: 681: 2005-07-18 Paul Eggert <eggert@cs.ucla.edu> 682: 683: Fix a problem noted by James Youngman: VPATH-style builds don't 684: work because of po file problems. 685: * src/Makefile.am (BUILT_SOURCES): Remove false.c. 686: (false.c): Remove; it's now a source file. 687: * src/false.c: New file. 688: * src/true.c (EXIT_STATUS): New macro. 689: (PROGRAM_NAME, usage): Behave like "false" if EXIT_STATUS indicates. 690: (usage): Remove "These option names may not be abbreviated." 691: 692: 2005-07-15 Paul Eggert <eggert@cs.ucla.edu> 693: 694: * src/nohup.c (main): Don't worry about POSIXLY_CORRECT. Today's 695: Austin Group Minutes says that the GNU behavior will be put 696: forward as proposed text for a future revision. 697: 698: 2005-07-13 Paul Eggert <eggert@cs.ucla.edu> 699: 700: * src/Makefile.am (nanosec_libs): Remove $(FESETROUND_LIBM); no longer 701: needed. Problem reported by Jeff Bailey. 702: 703: 2005-07-12 Jim Meyering <jim@meyering.net> 704: 705: * Makefile.maint (copyright-check): Reflect rearrangement in 706: version-etc files. 707: 708: 2005-07-11 Paul Eggert <eggert@cs.ucla.edu> 709: 710: * NEWS: Binary input and output are now implemented more consistently. 711: These changes affect only platforms like MS-DOS that distinguish 712: between binary and text files. 713: * src/cat.c (usage, main, long_options) [O_BINARY]: 714: Remove support for -B. Use same rules as other programs to decide 715: whether to use binary I/O, except that the -bensAE options always 716: select text mode. 717: * src/cat.c (main): Avoid setmode; use POSIX-specified routines instead. 718: * src/cksum.c (cksum): Likewise. 719: * src/head.c (head_lines, head_file): Likewise. 720: * src/od.c (open_next_file): Likewise. 721: * src/split.c (main): Likewise. 722: * src/sum.c (bsd_sum_file, sysv_sym_file): Likewise. 723: * src/tac.c (copy_to_temp, tac_file, main): Likewise. 724: * src/tail.c (tail_bytes, tail_lines, tail_file, main): Likewise. 725: * src/tee.c (tee): Likewise. 726: * src/tr.c (main): Likewise. 727: * src/wc.c (wc): Likewise. 728: * src/copy.c (copy_reg): Always copy in binary mode. 729: * src/expand.c (expand): Always copy in text mode. POSIX says 730: the input and output must be text. 731: * src/unexpand.c (unexpand): Likewise. 732: * src/head.c (elide_tail_bytes_file, elide_tail_lines_file, head_bytes): 733: (head_lines, head_file): Always use binary mode except for std tty. 734: * src/md5sum.c (usage): Clarify whether text or binary is the default. 735: (split_3, main): BINARY is now a 3-way value. All uses changed. 736: (digest_file): Likewise. Clear *BINARY if we determine the file 737: to be text. All uses changed. 738: (main): Don't report a file to be binary if we actually read it 739: as text in MS-DOS, because it was a terminal. 740: * src/shred.c (wipefile): Always use binary mode. Clearly this 741: never worked right on DOS! 742: * src/system.h (setmode, fileno): Remove; no longer needed, we think. 743: (SET_MODE, SET_BINARY, SET_BINARY2): Remove. 744: [defined __DJGPP__]: Don't include <io.h> or <sys/exceptn.h>.