1 2007-03-16 Jim Meyering <jim@meyering.net>
3 * bootstrap: Update from gnulib.
5 * .x-sc_prohibit_atoi_atof: Add TODO here, too.
7 2007-03-16 Paul Eggert <eggert@cs.ucla.edu>
9 * src/copy.c: Include filemode.h.
10 (overwrite_prompt): Say "try to overwrite", not "overwrite", to
11 make it clearer that the attempt may fail. Problem reported by
13 http://lists.gnu.org/archive/html/bug-coreutils/2007-03/msg00130.html
14 Output symbolic mode as well as numeric.
15 * tests/mv/i-2 (fail): Adjust to new prompt format.
17 2007-03-15 Jim Meyering <jim@meyering.net>
19 Enforce policy: don't use *scanf functions.
20 * Makefile.maint (sc_prohibit_atoi_atof): Add to regexp and diagnostic.
21 * .x-sc_prohibit_atoi_atof: Give stty a temporary pass.
22 * TODO: note that stty.c needs this small clean-up.
24 2007-03-13 Jim Meyering <jim@meyering.net>
26 Prepare to work on ACL-related failure when using Solaris ZFS.
27 * gl/lib/acl.c: New file, copied from gnulib.
29 Work around a failing test due to an NFS-based race condition.
30 * tests/cp/sparse: Accept a report that the copy is *smaller*.
32 2007-03-12 Jim Meyering <jim@meyering.net>
34 Make bootstrap.conf a tiny bit more generic.
35 * bootstrap.conf (XGETTEXT_OPTIONS): Exclude gettext-related .m4
36 files when e.g., AM_GNU_GETTEXT([external] appears in configure.ac.
38 2007-03-10 Jim Meyering <jim@meyering.net>
40 Try to fix today's NFS-related failure: Treat ESTALE like EACCES.
41 * gl/lib/savewd.c: Copy this file from gnulib, then change
42 "errno != EACCES" to (errno != EACCES && errno != ESTALE).
43 The symptom was this failure in tests/install/basic-1:
44 ginstall: cannot create directory `rel/a': Stale NFS file handle
46 The preceding change solved part of the problem. Now ginstall fails.
47 * tests/install/basic-1: Temporarily, don't redirect ginstall's
48 stderr to /dev/null, so I can see why the NFS autobuilder's NFS test
51 * tests/install/basic-1: When setting up an unreadable "." in an
52 inaccessible parent, make the parent inaccessible *after* making "."
53 unreadable. Otherwise, running "chmod a-r ." in an already-
54 inaccessible parent would fail on NFS with "Stale NFS file handle".
55 Reported by Bob Proulx.
57 * Makefile.maint (po-check): Exclude c99-to-c89.diff.
59 2007-03-09 Jim Meyering <jim@meyering.net>
61 Avoid test failures on Darwin 7.9.0 (MacOS X 10.3.9)
62 * tests/chgrp/basic: Don't let failure by chgrp to set the
63 group of a symlink make this test fail. Do give a diagnostic.
64 In the chgrp-no-change-ctime test, add darwin7.9.0 as another
66 When failing on some other system, print $host_triplet, too.
67 Also avoid test failures on Darwin 8.8.x (MacOS X 10.4).
68 Reported by Peter Fales.
70 2007-03-08 Jim Meyering <jim@meyering.net>
72 * src/c99-to-c89.diff: Reflect the new c99'ism, update offsets.
74 2007-03-08 Paul Eggert <eggert@cs.ucla.edu>
76 rm without -f: give a better diagnostic when euidaccess fails.
77 * src/remove.c (write_protected_non_symlink): Return int, not bool,
78 so that we can indicate failure too (as a postive error number).
79 (prompt): If write_protected_non_symlink fails, report that error
80 number and fail rather than charging ahead and removing the dubious
81 entry. Redo the logic of printing a diagnostic so that we need to
82 invoke quote (full_filename (...)) only once. More details at:
83 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/9952/focus=9996>
85 2007-03-08 Jim Meyering <jim@meyering.net>
87 Generalize a few more cvs-isms.
88 * bootstrap (checkout_only_file): Rename from CVS_only_file.
89 Change comments and diagnostics not to say "CVS".
91 * bootstrap: Run libtool, if necessary.
93 Make bootstrap a little more general.
94 * bootstrap (build_aux): Factor out/use this definition.
95 Formally require a "AC_CONFIG_AUX_DIR($build_aux)" line in configure.ac.
96 (insert_sorted_if_absent): Move function definition "up", to
97 precede new first use.
98 If $build_aux/ doesn't exist initially, create it, and
101 2007-03-03 Andrew Church <achurch@achurch.org> (tiny change)
102 Paul Eggert <eggert@cs.ucla.edu>
104 Fix a bug: cp -x would fail to set mount point permissions.
105 * NEWS: mention cp -x bug fix
106 * src/copy.c (copy_internal): Don't return immediately after
107 copying a mount point that we do not intend to recurse under.
108 Based on a patch by Andrew Church.
110 2007-03-03 Jim Meyering <jim@meyering.net>
112 pwd-unreadable-parent: Skip test on ia64/Linux, too.
113 * tests/misc/pwd-unreadable-parent: Also skip when $REPLACE_GETCWD.
114 Reported by Bob Proulx.
116 2007-03-02 Jim Meyering <jim@meyering.net>
118 pwd-unreadable-parent: Skip test on non-Linux/GNU systems.
119 * tests/misc/pwd-unreadable-parent: Rather than trying to decide
120 whether this test has a chance of succeeding, run it only when
121 $(host_os) is linux-gnu. It was failing on powerpc-apple-darwin8.8.0
122 * tests/misc/Makefile.am (TESTS_ENVIRONMENT): Add host_os=$(host_os).
124 * tests/misc/pwd-long: Also allow "+" in $PWD.
126 Remove another coreutils-ism. Formatting cleanup.
127 * Makefile.maint (my-distcheck): Update an outdated comment.
128 (emit_upload_commands): Use $(PACKAGE) rather than "coreutils".
129 (my-distcheck): Skip the c99/c89 check if there's no such .diff file.
131 2007-03-01 Jim Meyering <jim@meyering.net>
133 * Makefile.maint (warn_cflags): Hoist, adding "-Dlint -O".
134 (my-distcheck): Use the new variable, instead of too-long literal.
136 Make "make syntax-check" rules less coreutils-specific.
137 * Makefile.maint (sc_cast_of_x_alloc_return_value): Use CVS_LIST_EXCEPT.
138 (sc_cast_of_alloca_return_value): Likewise.
139 (sc_root_tests): Do nothing if there is no check-root target
140 in tests/Makefile.am.
142 Run the writable-files check only for release-building targets.
143 * Makefile.maint (local-checks-available): Remove writable-files.
144 (alpha beta major): Put it here, instead.
146 "make syntax-check" now runs only Makefile.cfg-selected tests
147 * Makefile.maint (syntax-check-rules): Hoist this definition so that
148 it precedes the indirect use in the definition of $(local-check).
149 (local-check): Use :=, not just "=".
150 (syntax-check): Depend on $(local-check), not $(syntax-check-rules).
152 2007-02-28 Bruno Haible <bruno@clisp.org>
154 * bootstrap.conf (gnulib_modules): Replace xreadlink with
155 xreadlink-with-size. Add xreadlink.
156 * src/copy.c (copy_internal): Update.
157 * src/ls.c (is_directory): Update.
158 * src/stat.c (print_stat): Update.
159 * src/readlink.c (main): Use the one-argument xreadlink function.
161 2007-02-28 Paul Eggert <eggert@cs.ucla.edu>
163 * doc/coreutils.texi (Common options): --si outputs "M", not "MB".
164 Problem reported by Philip Rowlands in
165 <http://lists.gnu.org/archive/html/bug-coreutils/2007-02/msg00283.html>.
167 2007-02-28 Jim Meyering <jim@meyering.net>
169 * .x-sc_file_system: Add the new test, tests/misc/df-P, to this
170 list of exceptions, for the "make distcheck" sc_file_system rule.
172 * Makefile.maint (gnulib_snapshot_date): Remove now-unused definition.
174 2007-02-27 Paul Eggert <eggert@cs.ucla.edu>
176 Make df -P immune to effects of e.g., the BLOCK_SIZE envvar.
177 * NEWS: With -P, the default block size and output format is not
178 affected by DF_BLOCK_SIZE, BLOCK_SIZE, or BLOCKSIZE.
179 * src/df.c (main): Implement this.
181 2007-02-27 Jim Meyering <jim@meyering.net>
183 Add a test for the above.
184 * tests/misc/df-P: New file.
185 * tests/misc/Makefile.am (TESTS): Add df-P.
187 2007-02-25 Jim Meyering <jim@meyering.net>
189 * Makefile.maint (announcement): Adjust so that it works with
190 announce-gen's --gnulib-snapshot-time-stamp option.
191 Indent one of the command lines using TAB, not 8 spaces.
193 Post-release version change.
194 * NEWS: Add a line for 6.8+.
195 * configure.ac (AC_INIT): Set new version string.
197 2007-02-24 Jim Meyering <jim@meyering.net>
200 * NEWS: Record release date and new version number.
201 * configure.ac (AC_INIT): New version number.
203 Don't skip this test on new-enough Linux/GNU systems.
204 * tests/misc/pwd-unreadable-parent: Test $REPLACE_GETCWD = 0,
205 rather than for __GETCWD_PREFIX in config.h (the latter is no
206 longer defined, ever, due to gnulib changes).
207 * tests/misc/Makefile.am (TESTS_ENVIRONMENT): Define REPLACE_GETCWD.
209 Remove the "gnits" option; it prohibits my using "+" as a version
210 string suffix, and all it does (beyond the default "gnu" option)
211 is to _require_ the THANKS file.
212 * configure.ac (AM_INIT_AUTOMAKE): Remove it.
214 Remove all AUTOMAKE_OPTIONS settings in Makefile.am files.
215 * tests/chgrp/Makefile.am, tests/chmod/Makefile.am:
216 * tests/chown/Makefile.am, tests/cp/Makefile.am:
217 * tests/du/Makefile.am, tests/expr/Makefile.am:
218 * tests/factor/Makefile.am, tests/general/Makefile.am:
219 * tests/install/Makefile.am, tests/ln/Makefile.am:
220 * tests/ls/Makefile.am, tests/mkdir/Makefile.am:
221 * tests/mv/Makefile.am, tests/readlink/Makefile.am:
222 * tests/rm/Makefile.am, tests/rmdir/Makefile.am:
223 * tests/seq/Makefile.am, tests/stty/Makefile.am:
224 * tests/tee/Makefile.am, tests/touch/Makefile.am:
226 * README: Document the OSF/1 4.0d build failure and work-around.
227 Reported by Bruno Haible.
229 * NEWS: Use a simple "+" suffix to denote pre-release, not "-dirty".
231 * configure.ac: Use 6.7+, not 6.7-dirty.
233 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
235 * NEWS: sort no longer compresses temporaries by default.
236 * bootstrap.conf: Remove findprog.
237 * doc/coreutils.texi (sort invocation): The default is to not
238 compress. Don't treat "" specially.
239 * src/sort.c: Don't include findprog.h.
240 (create_temp): Compress only if the user specified --compress-program.
241 * tests/misc/sort-compress: Adjusts tests to match new behavior.
243 2007-02-24 Jim Meyering <jim@meyering.net>
245 Avoid a shell syntax error, when building with an inadequate Perl.
246 * man/Makefile.am (.x.1): Add quotes around $(PERL) in case, since
247 it can expand to "/.../missing perl".
249 * man/Makefile.am (.x.1): Warn when unable to update a man page.
250 Suggestion from Bruno Haible.
252 2007-02-23 Bruno Haible <bruno@clisp.org>
254 Handle better the combination of old Perl and a pre-c99 compiler.
255 * man/Makefile.am (.x.1): If the autoconf test has determined that
256 perl is missing or not a sufficient version, do nothing.
258 * tests/readlink/can-e: Put the closing double-quote at the end of a
259 backquoted word, not in the middle. Works around a bug in sh on
261 * tests/readlink/can-f: Likewise.
262 * tests/readlink/can-m: Likewise.
264 * tests/du/slink: Skip the test if executing on an nfsv3 file system.
265 This avoids a test failure at least on OSF/1 4.0d.
267 2007-02-23 Jim Meyering <jim@meyering.net>
269 * src/date.c (usage): Split a diagnostic that had grown to be
270 longer than the C89 maximum of 509 bytes.
272 2007-02-23 Ed Santiago <ed@edsantiago.com>
274 * src/date.c (usage): Mention that --rfc-3339 uses space, not 'T',
275 for a separator. Include sample RFC 2822 and 3339 output.
277 2007-02-23 Jim Meyering <jim@meyering.net>
279 With -Dlint, make shuf free all heap-allocated storage.
280 * src/shuf.c (main): Move declaration of input_lines to
281 function scope, and initialize to NULL, so we can free it.
282 [lint]: Free all malloc'd memory.
283 * tests/misc/shuf: Also test shuf's -e and -i options.
285 2007-02-22 Jim Meyering <jim@meyering.net>
287 Merge in a change from some other incarnation of this file (gzip?)
288 * bootstrap (gnulib_tool): Skip get_translations if there is no po/ dir.
290 Adjust preceding change not to perform an unaligned access.
291 * src/copy.c (copy_reg): Undo previous change. Instead, make
292 it clearer that we're using a single-byte sentinel, and
293 [lint]: Initialize sizeof (uintptr_t) - 1 bytes after the sentinel.
294 Reported by Andreas Schwab.
296 Placate valgrind, wrt ./cp --sparse=always
297 * src/copy.c (copy_reg): Place the sentinel by setting a
298 full word's worth of bits, not just a single byte's worth.
299 This avoids a harmless (but distracting) case of memory being
302 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
304 Honor dd's noatime flag if possible, even if not supported on build fs
305 * doc/coreutils.texi (dd invocation): Warn that noatime might not be
307 * src/dd.c (flags, usage): Look at O_NOATIME, not
308 HAVE_WORKING_O_NOATIME, to decide whether to support the noatime
309 flag, so that dd attempts O_NOATIME even if the build file system
310 does not support it. Problem reported by Jim Meyering today in
312 * tests/dd/misc: Generate a warning, not a failure, if noatime
315 2007-02-21 Jim Meyering <jim@meyering.net>
317 * tests/misc/date: Remove vestigial use of Data::Dumper.
319 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
321 * src/copy.c (cached_umask): Cast -1 to mode_t to avoid a warning
322 about out-of-range initializer with Sun C 5.8.
324 2007-02-20 Jim Meyering <jim@meyering.net>
326 * bootstrap (CVS_only_file): Use README-hacking.
328 Now that we use GIT, not cvs, rename README-cvs.
329 * README-hacking: Renamed from...
330 Update to reflect that we now use git.
332 * README-cvs: ...this.
334 * src/env.c (main): When invoked with no arguments (i.e. when printing
335 the environment), use a local variable to iterate through the global
336 "environ" array, rather than "environ" itself. This is solely to
337 avoid changing the environment for an LD_PRELOAD-substituted "puts"
338 or "exit" function. Tiny patch by Harvey Eneman. See
339 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/9735>.
342 * bootstrap: Move definitions of temporary directory names and the
343 new bt_regex "up" to precede all uses, so it's clearer what their
344 scope is. Also, use [.], rather than \\., since the former works
347 * bootstrap: Remove occurrences of $bt (._bootmp) from lib/Makefile.
348 Based on the bison 2007-02-19 change by Joel E. Denny.
350 2007-02-19 Paul Eggert <eggert@cs.ucla.edu>
352 * NEWS: sort now uses a --compress-program option rather than
353 an environment variable.
354 * doc/coreutils.texi (sort invocation): Document this.
355 * src/sort.c (usage): Likewise.
356 (COMPRESS_PROGRAM_OPTION): New const.
357 (long_options, create_temp, main): Support new option.
358 * tests/misc/sort-compress: Test it.
360 2007-02-19 Jim Meyering <jim@meyering.net>
362 * bootstrap: Fix typo s/dowloading/downloading/ in --help output.
364 2007-02-18 Jim Meyering <jim@meyering.net>
366 * src/system.h: Don't include exit.h, now that it's subsumed
367 by the gnulib-generated stdlib.h.
369 * tests/rm/fail-eacces: Skip this test when running as root.
370 Reported by Matthew Woehlke.
372 * bootstrap: Use "._bootmp" as the temporary directory name,
373 not ".#bootmp". The latter's "#" caused trouble with the new,
374 gnulib-added "LINK_WARNING_H = $(top_srcdir)/.#bootmp/..." line.
376 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
378 * bootstrap.conf (gnulib_modules): Add c-strcase. Remove strcase.
379 * src/dircolors.c: Include c-strcase.h.
380 (dc_parse_stream): Use c_strcasecmp rather than
381 strcasecmp to avoid unreliable results in locales like Turkish
382 where strcasecmp is incompatible with the C locale.
384 2007-02-13 Jim Meyering <jim@meyering.net>
386 Also check for and print stderr output, in case a program fails.
387 * tests/misc/tty-eof: Occasionally (not reproducible), this
388 test would fail, with one or more programs exiting nonzero, e.g.,
389 tty-eof: sha224sum exited with status 1 (expected 0)
390 Now, maybe we'll get a clue, the next time that happens.
392 2007-02-12 Jim Meyering <jim@meyering.net>
394 * .x-sc_useless_cpp_parens: Ignore a false-positive in a shell script.
396 * tests/misc/pwd-unreadable-parent: Skip the test if we're
397 definitely using the replacement.
398 * tests/misc/Makefile.am (TESTS_ENVIRONMENT): Define CONFIG_HEADER.
400 2007-02-10 Jim Meyering <jim@meyering.net>
402 Remove excess leading spaces that would make help2man misbehave.
403 * src/printf.c (usage): Remove excess spaces on 2nd line of %b desc.
404 * src/nl.c (usage): Remove excess spaces on 2nd line of pBRE desc.
405 * src/dd.c (usage): Remove excess spaces on 2nd line of sync desc.
406 * src/date.c (usage): Use two spaces after each optional flag, not one.
407 Reported by Thomas Huriaux in <http://bugs.debian.org/410407>.
409 * Makefile.maint (longopt_re): Relax the regexp, making square
410 brackets optional, so it matches the newly reported violations, too.
412 * src/csplit.c (usage): Use two spaces (not one) to separate
413 each option string from its description, so help2man formats
414 the derived man page properly. Reported by Thomas Huriaux in
415 <http://bugs.debian.org/410407>.
416 * src/df.c (usage): Likewise.
417 * src/du.c (usage): Likewise.
418 * src/install.c (usage): Likewise.
419 * src/ls.c (usage): Likewise.
421 2007-02-03 Jim Meyering <jim@meyering.net>
423 Test for today's gnulib/lib/getcwd.c fix affecting pwd and readlink
424 * NEWS: Mention the bug fix.
425 * tests/misc/pwd-unreadable-parent: New file.
426 * tests/misc/Makefile.am (TESTS): Ad pwd-unreadable-parent.
428 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
430 * NEWS: Document fix for cp --preserve=mode.
431 * src/copy.c (copy_internal): Omit the group- or other-writeable
432 permissions when creating a directory, to avoid a race condition
433 if the special mode bits aren't right just after the directory is
435 * src/cp.c (make_dir_parents_private): Likewise.
436 * tests/cp/parent-perm-race: Test for the "cp --preserve=mode"
439 * NEWS: Document fix for cp --parents.
440 * src/cp.c (make_dir_parents_private): Report the error sooner with
441 "cp --parents DIR/FILE DEST" when DIR is a non-directory, thus not
442 creating the directory, DEST/DIR.
443 * tests/cp/cp-parents: Test for the non-race-condition bug fixed
446 2007-02-02 Jim Meyering <jim@meyering.net>
448 * src/nl.c (proc_text): Use "NULL", not "(struct re_registers *) 0".
450 * src/c99-to-c89.diff: Make shred.c Index: and a/b prefixes
451 consistent, so this can be applied with patch -p0.
452 Reported by Matthew Woehlke.
454 * Makefile.maint (patch-check): Use patch with its -p2 option,
455 since that makes this check slightly more strict.
457 2007-01-29 Jim Meyering <jim@meyering.net>
460 * src/ls.c (print_dir): Don't leak a "DIR"+fd upon failure to
461 determine dev/inode or upon detecting a symlink loop.
463 * src/ls.c: Rename three global variables.
464 (cwd_file): Rename from 'files'.
465 (cwd_n_alloc): Rename from 'nfiles'.
466 (cwd_n_used): Rename from 'files_index'.
468 Shave 8 bytes off the size of "struct fileinfo".
469 * src/ls.c (fileinfo): Put all members of type "bool" together.
471 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
473 Modify "ls" to sort its data faster, using the new gnulib mpsort
474 module rather than qsort. This is particularly a win in
475 environments where strcoll is slow, since mpsort typically calls
476 strcoll less often than qsort does.
477 * bootstrap.conf (gnulib_modules): Add mpsort.
478 * src/ls.c: Include mpsort.h.
479 (sorted_file, sorted_file_alloc): New vars, for a new vector of
480 pointers to the file info, for speed.
481 (clear_files, extract_dirs_from_files, sort_files, print_current_files):
482 (print_many_per_line, print_horizontal, print_with_commas):
483 (calculate_columns): Set and use new vector.
484 (initialize_ordering_vector): New function.
486 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
488 Adjust to today's change to gnulib, which added a module for
489 string.h to replace the little include files like strcase.h.
490 * src/dircolors.c: Don't include strcase.h.
491 * src/system.h: Don't include mempcpy.h, memrchr.h, stpcpy.h, strpbrk.h.
493 2007-01-26 Jim Meyering <jim@meyering.net>
495 * src/dd.c (advance_input_after_read_error): Change diagnostic to
496 say "invalid file offset" rather than "screwy file offset".
498 * .x-sc_cast_of_argument_to_free: Remove this file.
499 * Makefile.am (EXTRA_DIST): Likewise.
501 2007-01-25 Dan Hipschman <dsh@linux.ucla.edu>
503 * src/sort.c (create_temp): Remove superfluous access-X_OK
504 check. find_in_path does this for us.
506 2007-01-24 Jim Meyering <jim@meyering.net>
508 Remove usually-skipped test.
509 * tests/cp/open-perm-race: Remove this file. It is subsumed
511 * tests/cp/Makefile.am (TESTS): Remove open-perm-race.
512 * tests/sort/Makefile.am: Regenerate.
514 Pass "make distcheck" again.
515 * src/sort.c (usage): Split a diagnostic that had grown to be
516 longer than the C89 maximum of 509 bytes.
517 * .x-sc_cast_of_argument_to_free: New file. Allow a cast in sort.c.
518 FIXME: this is just temporary, while we wait to remove the offending
520 * Makefile.am (EXTRA_DIST): Add .x-sc_cast_of_argument_to_free.
521 * Makefile.maint (sc_cast_of_argument_to_free): Use the
522 canonical, $$($(CVS_LIST_EXCEPT)).
523 * m4/.gitignore, m4/.cvsignore, lib/.gitignore, lib/.cvsignore: Update.
525 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
527 * NEWS: New option sort -C, proposed by XCU ERN 127, which looks
528 like it will be approved. Also add --check=quiet, --check=silent
529 as long aliases, and --check=diagnose-first as an alias for -c.
530 * doc/coreutils.texi (sort invocation): Document this.
531 Also, mention that sort -c can take at most one file.
532 * src/sort.c: Implement this.
534 (usage): Document the change.
535 (CHECK_OPTION): New constant.
536 (long_options): --check now takes an optional argument, and is now
537 treated differently from 'c'.
538 (check_args, check_types): New constant arrays.
539 (check): New arg CHECKONLY, which suppresses diagnostic if -C.
540 (main): Parse the new options.
541 * tests/sort/Test.pm (02d, 02d, incompat5, incompat6):
544 2007-01-24 Jim Meyering <jim@meyering.net>
547 * tests/misc/sort-compress: Use $abs_top_builddir, not $top_builddir.
548 * tests/misc/Makefile.am (TESTS_ENVIRONMENT): Likewise.
550 Don't depend on "which".
551 * tests/misc/sort-compress (SORT): Use $abs_builddir, now which.
552 * tests/misc/Makefile.am (TESTS_ENVIRONMENT): Export top_builddir.
554 2007-01-24 Dan Hipschman <dsh@linux.ucla.edu>
556 Test sort compression.
557 * tests/misc/Makefile.am: Add the test.
558 * tests/misc/sort-compress: New file containing the tests.
560 2007-01-24 Jim Meyering <jim@meyering.net>
562 * NEWS: sort temp file compression: tweak wording.
563 * src/sort.c (struct sortfile) [name]: Declare member to be const.
565 2007-01-21 Jim Meyering <jim@meyering.net>
567 * src/sort.c (MAX_FORK_RETRIES_COMPRESS, MAX_FORK_RETRIES_DECOMPRESS):
568 In pipe_fork callers, use these named constants, not "2" and "8".
569 (proctab, nprocs): Declare to be "static".
570 (pipe_fork) [lint]: Initialize local, pid,
571 to avoid unwarranted may-be-used-uninitialized warning.
572 (create_temp): Use the active voice. Describe parameters, too.
574 2007-01-21 James Youngman <jay@gnu.org>
576 Centralize all the uses of sigprocmask(). Don't restore an invalid
578 * src/sort.c (enter_cs, leave_cs): New functions for protecting
579 code sequences against signal delivery.
580 * (exit_cleanup): Use enter_cs and leave_cs instead of
581 calling sigprocmask directly.
582 (create_temp_file, pipe_fork, zaptemp): Likewise
584 2007-01-21 Dan Hipschman <dsh@linux.ucla.edu>
586 Add compression of temp files to sort.
587 * NEWS: Mention this.
588 * bootstrap.conf: Import findprog.
589 * configure.ac: Add AC_FUNC_FORK.
590 * doc/coreutils.texi: Document GNUSORT_COMPRESSOR environment
592 * src/sort.c (compress_program): New global, holds the name of the
593 external compression program.
594 (struct sortfile): New type used by mergepfs and friends instead
595 of filenames to hold PIDs of compressor processes.
596 (proctab): New global, holds compressor PIDs on which to wait.
597 (enum procstate, struct procnode): New types used by proctab.
598 (proctab_hasher, proctab_comparator): New functions for proctab.
599 (nprocs): New global, number of forked but unreaped children.
600 (reap, reap_some): New function, wait for/cleanup forked processes.
601 (register_proc, update_proc, wait_proc): New functions for adding,
602 modifying and removing proctab entries.
603 (create_temp_file): Change parameter type to pointer to file
604 descriptor, and return type to pointer to struct tempnode.
605 (dup2_or_die): New function used in create_temp and open_temp.
606 (pipe_fork): New function, creates a pipe and child process.
607 (create_temp): Creates a temp file and possibly a compression
608 program to which we filter output.
609 (open_temp): Opens a compressed temp file and creates a
610 decompression process through which to filter the input.
611 (mergefps): Change FILES parameter type to struct sortfile array
612 and update access accordingly. Use open_temp and reap_some.
613 (avoid_trashing_input, merge): Change FILES parameter like
614 mergefps and call create_temp instead of create_temp_file.
615 (sort): Call create_temp instead of create_temp_file.
617 (avoid_trashing_input, merge, sort, main): Adapt to mergefps.
619 The idea of compressing sorts temporary files was first
620 suggested/implemented by Jay Soffian in 1998, and again
621 by Charles Randall in 2001.
623 2007-01-20 Jim Meyering <jim@meyering.net>
625 * tests/misc/pwd-long: Work properly even when run from the
626 wrong one of two or more bind-mounted sibling directories.
627 Suggestion from Mike Stone in <http://bugs.debian.org/380552>.
629 2007-01-20 Paul Eggert <eggert@cs.ucla.edu>
631 Standardize on list of signals when an app catches signals.
632 * src/csplit.c (main): Also catch SIGALRM, SIGPIPE, SIGPOLL,
633 SIGPROF, SIGVTALRM, SIGXCPU, SIGXFSZ.
634 * src/ls.c (main): Likewise (except SIGPIPE was already caught).
635 Note that ls.c is special, as it also catches SIGTSTP.
636 * src/sort.c (main): Likewise. Also catch SIGQUIT. More details in
637 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/9510>.
639 2007-01-19 Dan Hipschman <dsh@linux.ucla.edu>
640 and Paul Eggert <eggert@cs.ucla.edu>
642 * src/sort.c (cleanup): Clear temphead at the end.
643 (exit_cleanup): New function.
644 (main): Don't invoke atexit until we're ready.
645 Invoke it with exit_cleanup, not with cleanup and close_stdout,
646 to avoid a race condition with cleanup and signal handling. More
647 details: http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/9508
649 2007-01-18 Jim Meyering <jim@meyering.net>
651 * src/c99-to-c89.diff: Adjust remove.c offsets.
653 2007-01-17 Jim Meyering <jim@meyering.net>
655 Make "rm --interactive=never ..." never prompt.
656 * NEWS: Mention this.
657 * src/remove.h (enum rm_interactive): New ternary type.
658 (struct rm_options) [interactive]: Use it, here -- rather than bool.
659 * src/remove.c (prompt): Reflect type change.
660 * src/mv.c (rm_option_init): Initialize to RMI_NEVER now.
661 * src/rm.c (main): Add a FIXME comment for '-d' option.
662 Adapt to type change of rm_options.interactive.
664 * tests/rm/i-never: New file. Test for the above fix.
665 * tests/rm/Makefile.am (TESTS): Add i-never.
667 2007-01-15 Jim Meyering <jim@meyering.net>
669 * bootstrap (gnulib_tool): When adding to .cvsignore and .gitignore,
670 emit foo.h, for each foo_.h. This yields one false-positive, fts.h,
671 but that's ok, since fts_.h will eventually be renamed.
673 * src/remove.c (remove_dir): Don't use errno in diagnostic.
674 Root-only test failure reported by Alex van Hout and Jon Grosshart in
675 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/9415/focus=9415>.
677 * bootstrap.conf (avoided_gnulib_modules): Fix my typo:
678 s/--avoid=canonicalize-lgpl/--avoid=canonicalize-gpl/
680 2007-01-14 Bruno Haible <bruno@clisp.org>
682 Enable use of gnulib's new fchdir module.
683 * bootstrap.conf (avoided_gnulib_modules): Avoid canonicalize-lgpl,
684 since we use canonicalize.
685 (gnulib_modules): Add fchdir.
686 * m4/jm-macros.m4 (coreutils_MACROS): Remove fchdir-stub.
688 2007-01-13 Jim Meyering <jim@meyering.net>
690 * Transform all Makefile.am files so that when running "make check",
691 CU_TEST_NAME is set to the name of the test. This is so that when I
692 run valgrind-enabled (--log-file-qualifier=CU_TEST_NAME) "make check"
693 on the entire package it is more convenient to map a leak or error
694 found in a valgrind log file back to the offending test.
696 (echo tests/Makefile.am.in; find tests -name Makefile.am) \
697 |xargs perl -pi -e '/^(\s*)PATH=...VG_PATH_PREFIX/ and ' \
698 -e 'print $1,q|CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst |,"\\\n"'
700 2007-01-11 Jim Meyering <jim@meyering.net>
702 Avoid a leak in expr's implementation of the ":" (match) operator.
703 * src/expr.c (docolon): Free the regexp buffer using regfree, rather
704 than doing it manually, being careful to set fastmap to NULL first.
705 Free any re_regs.start and .end members, if necessary.
707 * tests/misc/test-diag: Work also when libc's error function
708 reports the entire program name ("../../src/test"), rather than
709 just the final component.
711 2007-01-10 Jim Meyering <jim@meyering.net>
713 Don't use fts_statp uninitialized for "chown -RLh --preserve-root ...".
714 * src/chown-core.c (FTSENT_IS_DIRECTORY): New macro.
715 (change_file_owner): Perform the ROOT_DEV_INO_CHECK only for a
716 directory. Non-directory entries lack fts_statp data when using
717 the FTS_NOSTAT option.
719 2007-01-07 Jim Meyering <jim@meyering.net>
721 * tests/sample-test: Update copyright date to 2007.
722 * Makefile.maint (copyright-check): Also check the copyright date
723 in tests/sample-test.
725 2007-01-06 Jim Meyering <jim@meyering.net>
727 * tests/fmt/basic (pfx-only, pfx-of-pfx): New tests,
728 based on examples from G.P. Halkes in
729 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9388>.
731 2007-01-06 G.P. Halkes <buscom@ghalkes.nl>
733 * src/fmt.c (copy_rest): Correct prefix handling.
734 Don't elide a line with the prefix followed by only white space.
735 (get_line): Move EOF-check to loop-termination condition.
736 * tests/fmt/basic (pfx-1): Adjust test to expect desired result.
737 (pfx-2): Remove test; its premise was contrary to the documentation.
739 2007-01-05 Jim Meyering <jim@meyering.net>
741 Avoid a used-uninitialized bug for invalid input, i.e., when the size
742 of the input, not counting newlines, is 1 % 4.
743 * gl/lib/base64.c (base64_decode): Don't hard-code inlen==4.
744 It may be smaller when flushing.
746 2007-01-05 Mike Frysinger <vapier@gentoo.org>
748 * src/dircolors.hin: Add a TERM directive for cons25.
750 2007-01-04 Jim Meyering <jim@meyering.net>
752 * Makefile.cfg (local-checks-to-skip): Skip strftime-check, in
753 case you don't have convenient access to glibc info documentation.
755 Use the release year, not the current year.
756 * src/groups.sh (version): Use a better name: @RELEASE_YEAR@.
757 * src/Makefile.am (RELEASE_YEAR): Define it.
759 Thanks to a prod from Eric Blake.
761 Ensure that "group --version" always prints the current year.
762 * src/groups.sh (version): Use @CURRENT_YEAR@, rather than 2006.
763 * src/Makefile.am (.sh): Also substitute for @CURRENT_YEAR@.
764 Suggestion from Eric Blake.
766 When decoding, always allow newlines in input, with almost no
768 * src/base64.c (do_decode): Initialize decode context.
769 Call base64_decode one more time, after all input is processed.
770 (usage): When decoding, newlines are always accepted.
772 * tests/misc/base64: Add a bunch of tests, for the above.
773 * gl/lib/base64.c: Include <string.h>.
774 (base64_decode_ctx_init, get_4, decode_4): New functions.
775 (base64_decode): Efficiently handle interspersed newlines.
776 (base64_decode_alloc): Update signature.
777 * gl/lib/base64.h (struct base64_decode_context): Define.
778 (base64_decode_ctx_init): Add prototype.
779 (base64_decode, base64_decode_alloc): Update prototypes.
781 * gl/lib/base64.c: Copied from gnulib.
782 * gl/lib/base64.h: Likewise.
784 2007-01-03 Jim Meyering <jim@meyering.net>
786 * THANKS: Add Evan Hunt.
788 2007-01-03 Bruno Haible <bruno@clisp.org>
790 Avoid spurious test failures on MacOS X 10.3.9, in a German locale.
791 * tests/chown/deref: Apply lang-default.
792 * tests/misc/split-a: Likewise.
793 * tests/mv/reply-no: Likewise.
795 * src/copy.c (copy_internal): Use mkfifo as a fallback if mknod fails.
798 2007-01-02 Paul Eggert <eggert@cs.ucla.edu>
800 Now, "ls -FRL" always follows symbolic links on Linux.
801 * NEWS: Mention this bug fix.
802 * src/ls.c (gobble_file): Fix bug reported by
803 Nobuyuki Tsuchimura in
804 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00152.html
805 where "ls -FRL" didn't follow a symbolic link in some cases on Linux.
806 * tests/ls/follow-slink: Add a test for this case.
808 2007-01-01 Jim Meyering <jim@meyering.net>
810 * tests/rm/fail-eperm: Revert last change. The PATH=... setting
811 is not honored at least on HP-UX 11.23 systems.
812 Instead, simply transform the actual output diagnostic.
813 Test failure reported by Bob Proulx.
815 2006-12-30 Jim Meyering <jim@meyering.net>
817 * bootstrap (gnulib_extra_files): Remove announce-gen.
818 * bootstrap.conf (gnulib_modules): Add it here instead, now that
821 * tests/misc/base64: Factor a long, repetitive string.
823 * src/c99-to-c89.diff: Adjust remove.c offsets.
825 Clean up after the change of 2006-12-28.
826 * src/remove.c (AD_pop_and_chdir): Change **DIRP parameter to *DIRP,
827 now that this function never modifies the pointer. Adjust comments
828 and code accordingly.
829 (remove_dir): Set "dirp" to NULL right after AD_pop_and_chdir call,
830 now that AD_pop_and_chdir no longer does that.
832 * tests/rm/fail-eperm: Avoid spurious differences (the error function
833 from latest glibc no longer prints the full program_name): so don't
834 invoke rm via ../../src/rm. Instead, invoke it via "PATH=../../src rm".
836 * tests/mv/acl (skip): Skip this test also if the destination
837 directory, which is on a different file system, lacks ACL support.
839 * src/copy.c (copy_reg): Rewrite a comment that was rendered
840 inaccurate by the 2006-10-18 change.
842 2006-12-28 Jim Meyering <jim@meyering.net>
844 When moving "up" the hierarchy, be careful to remove a just-emptied
845 directory before opening ".", to avoid trouble with file system
846 implementations that cache readdir results at opendir-time.
847 * src/remove.c (AD_pop_and_chdir): Add a file descriptor parameter.
848 Don't update **DIRP. Don't call fdopendir here.
849 (remove_dir): Call fdopendir here instead.
850 Report and patch from Mikulas Patocka:
851 <http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00170.html>
853 2006-12-27 Jim Meyering <jim@meyering.net>
855 * src/tail.c (usage): Mention +N for --bytes and --lines.
856 Suggestion from Evan Hunt.
858 2006-12-26 Jim Meyering <jim@meyering.net>
860 * configure.ac: Require autoconf-2.61 and automake-1.10.
861 Without the former (even with autoconf-2.60), "make distcheck"
862 would fail (without the 2006-09-26 autoconf AC_CHECK_DECL fix),
863 due to an inttypes.h generated with CFLAGS including -pedantic.
864 With the old decl check, @HAVE_DECL_STRTOUMAX@ would be 0.
866 * Makefile.maint (VC-tag): Define, so as to gpg-sign each release
867 tag, using the release version number as the message.
868 (vc-dist): Use $(VC-tag), rather than "$(VC) tag".
870 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
872 * NEWS: dd bs= operands now silently override later ibs= and obs=,
874 * src/dd.c (scanargs): Implement it.
875 * tests/dd/misc (outbytes): Test it.
876 * doc/coreutils.texi (dd invocation): Specify that bs=N
877 overrides later ibs and obs, undoing part of the
878 previous change. (The behavior was wrong.)
880 2006-12-20 Jim Meyering <jim@meyering.net>
882 "rm -rf /etc/motd" (run by non-root) now prints a diagnostic.
883 * src/remove.c (remove_entry): Handle EACCES for a non-directory, too.
884 Don't let a non-directory get by with errno == EPERM, either.
885 Check the file type directly (using cached stat value), rather
886 than trying to guess it from errno values.
887 Karl Berry reported that a cross-partition "mv /etc/issue ~"
888 failed with the um,... suboptimal diagnostic,
889 "mv: cannot remove `/etc/issue': Not a directory".
890 * tests/rm/Makefile.am (TESTS): Add fail-eacces.
891 * tests/rm/fail-eacces: New file.
892 * NEWS: Mention that both mv and rm are affected.
894 "cut -f 2- A B" no longer triggers a double-free bug
895 * src/cut.c (cut_fields): Set file-scoped global to NULL after
896 freeing it. This avoids a double-free (and core dump on some systems)
897 for this usage: "echo 1>a; echo 2>b; cut -f2- a b". Reported by
898 James Hunt in <http://bugzilla.redhat.com/220312>.
899 * NEWS: List this bug fix.
900 * THANKS: Mention him.
901 * tests/misc/cut: New file.
902 * tests/misc/Makefile.am (TESTS): Add cut.
904 2006-12-15 Jim Meyering <jim@meyering.net>
906 * tests/cp/open-perm-race: Correct the gdb-existence check.
907 Don't run either subsequent gdb command in a sub-shell.
908 Reported by Thomas Schwinge.
909 * THANKS: bring up to date.
911 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
913 Make sure cp -p isn't too generous with file permissions.
914 * tests/cp/Makefile.am (TESTS): Add file-perm-race.
915 * tests/cp/file-perm-race: New file.
917 Ensure cp -pR --parents isn't too generous with parent permissions.
918 * tests/cp/Makefile.am (TESTS): Add parent-perm-race.
919 * tests/cp/parent-perm-race: New file.
921 2006-12-14 Jim Meyering <jim@meyering.net>
923 * tests/chgrp/default-no-deref: Don't assume that files are created
924 with the primary group by default. That's not true in a directory
925 with the set-GID bit set.
927 Don't hang when there's no input tty.
928 * tests/cp/open-perm-race: Skip this test if there is no
929 controlling input `terminal'.
931 Test for a hard-to-detect race fix, using gdb.
932 * tests/cp/open-perm-race: New file, to test for the
933 cp --preserve=ownership fix of 2006-12-06.
935 * tests/cp/Makefile.am (TESTS_ENVIRONMENT): Define abs_top_builddir.
936 (TESTS): Add open-perm-race.
938 * src/chgrp.c (main): Don't prohibit -RLh, aka -RL with --no-dereference.
939 * src/chown.c (main): Likewise.
940 * src/chown-core.c (change_file_owner): Add to a comment.
941 * tests/chown/preserve-root: Add tests.
943 * NEWS: --preserve-root now works with chgrp, chmod, and chown.
944 * src/chmod.c (process_file): Do honor the --preserve-root option.
945 * src/chown-core.c (change_file_owner): Likewise, but here, also
946 handle the case in which a traversal would go "through" a symlink
947 to root. Reported by Matthew M. Boedicker
948 * tests/chown/preserve-root: Test for the above.
949 * tests/chown/Makefile.am (TESTS): Add preserve-root.
951 * NEWS: Mention the chmod fix induced by the 2006-12-11 change
952 to gnulib's m4/openat.m4.
954 2006-12-13 Andreas Schwab <schwab@suse.de>
956 Don't fail if mv/acl test succeeds.
957 * tests/mv/acl (skip): Check for acl support in the file system.
958 * tests/mv/Makefile.am (XFAIL_TESTS): Remove.
959 (TESTS_ENVIRONMENT): Pass CONFIG_HEADER.
961 2006-12-13 Paul Eggert <eggert@cs.ucla.edu>
963 Remove some arbitrary restrictions on size fields, so that
964 commands like "sort -k 18446744073709551616" no longer fail merely
965 because 18446744073709551616 doesn't fit in uintmax_t. The trick
966 is that these fields can all be treated as effectively infinity;
967 their exact values don't matter, since no internal buffer can be
969 * src/join.c (string_to_join_field): Verify that SIZE_MAX <=
970 ULONG_MAX if the code assumes this. Silently truncate too-large
971 values to SIZE_MAX, as the remaining code will do the right thing
973 * src/sort.c (parse_field_count): Likewise.
974 * src/uniq.c (size_opt, main): Likewise.
975 * tests/join/Test.pm (bigfield): New test.
976 * tests/sort/Test.pm (bigfield): New test.
977 * tests/uniq/Test.pm (121): New test.
979 2006-12-13 Jim Meyering <jim@meyering.net>
981 * tests/chgrp/default-no-deref: New test.
982 * tests/chgrp/Makefile.am (TESTS): Add default-no-deref.
984 2006-12-12 Jim Meyering <jim@meyering.net>
986 * src/system.h (SETVBUF): Remove definition, now that the
987 autoconf macro, AC_FUNC_SETVBUF_REVERSED, does nothing.
988 * src/tee.c (tee_files): s/SETVBUF/setvbuf/.
989 * src/od.c (open_next_file): Likewise.
991 2006-12-09 Jim Meyering <jim@meyering.net>
993 * man/Makefile.am (.x.1): Make help2man use $(PACKAGE_STRING) as the
994 "source". I.e. "GNU coreutils 6.7".
996 * NEWS: With the change from "-pre" to "-dirty" suffix, also change
997 from NEXT_VER-pre to CUR_VER-dirty. So, this is 6.7-dirty.
998 * configure.ac (AC_INIT): s/6.8-dirty/6.7-dirty/.
1000 * tests/uniq/Test.pm (test_vector): Skip the pipe-reading test
1001 whenever uniq is expected to fail. This should catch the other case
1002 [test #112] in which uniq emits "cat: write error: Broken pipe" on
1005 2006-12-08 Jim Meyering <jim@meyering.net>
1007 Include bootstrap tool version info in the announcement form.
1008 * Makefile.maint (gnulib_snapshot_date): Define.
1009 (announcement): Use two new announce-gen options,
1010 --bootstrap-tools and --gnulib-snapshot-date.
1011 * Makefile.cfg (gnulib_dir): Set.
1013 Post-release version change.
1014 * NEWS: Add a line for 6.8-dirty.
1015 * configure.ac (AC_INIT): Set new version string.
1017 2006-12-07 Jim Meyering jim@meyering.net
1020 * NEWS: Record release date. Remove '-pre' suffix.
1021 * configure.ac (AC_INIT): Remove version string suffix.
1023 2006-12-07 Jim Meyering <jim@meyering.net>
1025 Make the output of "make check" more reproducible.
1026 * tests/touch/empty-file: Use envvar-check, so "make check" doesn't
1027 evoke diagnostics like this when COLUMNS=0 in the environment:
1028 ls: ignoring invalid width in environment variable COLUMNS: 0
1029 * tests/touch/no-rights: Likewise.
1030 * tests/help-version: Likewise.
1031 * tests/uniq/Test.pm: Don't perform the pipe-reading version of test
1032 118, since it emits "cat: write error: Broken pipe" on some systems.
1034 2006-12-06 Paul Eggert <eggert@cs.ucla.edu>
1036 * NEWS: Document the cp -p fix for special bits.
1037 * src/copy.c (set_owner): Now returns a three-way result, so
1038 that the caller can clear the special bits. All callers changed.
1039 (copy_reg): Don't set the special bits if chown failed.
1040 (copy_internal): Likewise.
1041 * tests/cp/special-bits: Test this fix.
1043 2006-12-06 Paul Eggert <eggert@cs.ucla.edu>
1045 * NEWS: Document the cp --preserve=ownership fix.
1046 * m4/jm-macros.m4 (coreutils_MACROS): Check for fchmod.
1047 * src/copy.c (fchmod_or_lchmod): New function.
1048 (copy_reg): New arg OMITTED_PERMISSIONS. All uses changed.
1049 Omit confusing and unused ", dst_mode" arg to 'open' without O_CREAT.
1050 When creating a file, use O_EXCL, so we're more likely to detect
1051 funny business by other processes. At the end, if permissions
1052 were omitted, chmod them back in.
1053 (copy_internal): If the ownership might change, omit some permissions
1054 at first, then restore them after chowning the file.
1055 * src/cp.c (make_dir_parents_private): Likewise.
1056 * src/copy.c (cached_umask): New function.
1057 * src/copy.h (cached_umask): New decl.
1059 2006-12-06 Jim Meyering <jim@meyering.net>
1061 Make the output of "make check" more reproducible.
1062 * tests/misc/date-sec: Don't emit any diagnostic about sleeping.
1064 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
1066 * src/install.c (install_file_in_file): Preserve time stamps
1067 before changing owner or file mode bits, for consistency with
1068 other coreutils programs.
1070 2006-12-03 Jim Meyering <jim@meyering.net>
1072 * tests/misc/date-sec: Output a fixed string.
1074 * NEWS: du --one-file-system (-x) would skip subdirectories of any
1075 directory listed as second or subsequent command line argument.
1076 * tests/du/one-file-system: New file. Test for today's fts.c fix.
1077 * tests/du/Makefile.am (TESTS): Add one-file-system.
1078 Reported by Mike Frysinger.
1080 2006-12-02 Jim Meyering <jim@meyering.net>
1082 * tests/du/basic: Generate 4KB file simply using printf, rather than
1083 seq+head. This avoids a spurious "Broken pipe" diagnostic from seq.
1085 2006-11-28 Jim Meyering <jim@meyering.net>
1087 * tests/mv/no-target-dir: Detect a buggy rename syscall. If found,
1088 skip this test. This happens at least on ia64 linux-2.4.19 w/ext3.
1089 Reported by Matthew Woehlke.
1091 * tests/mv/dir2dir: Also accept EBUSY.
1092 Reported by Matthew Woehlke.
1094 2006-11-27 Jim Meyering <jim@meyering.net>
1096 * Makefile.maint (patch-check): Rewrite to diagnose failure.
1097 * src/c99-to-c89.diff: Adjust shred.c offsets.
1099 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
1101 Improve the check for departures from C89, and fix the departures
1103 * Makefile.maint (my-distcheck): Also check for C89 compatibility
1104 as best we can with GCC.
1105 * src/stat.c (PRINTF_OPTION): Omit comma before } in enum
1106 declaration; C89 doesn't allow this.
1107 * src/dcgen: Don't generate string literals longer than
1108 what C89 requires support for.
1109 * src/cut.c (usage): Don't use string literals longer than
1110 what C89 requires support for.
1111 * src/date.c (usage): Likewise.
1112 * src/dd.c (usage): Likewise.
1113 * src/du.c (usage): Likewise.
1114 * src/ls.c (usage): Likewise.
1115 * src/od.c (usage): Likewise.
1116 * src/readlink.c (usage): Likewise.
1117 * src/seq.c (usage): Likewise.
1118 * src/shred.c (usage): Likewise.
1120 2006-11-26 Mike Frysinger <vapier@gentoo.org>
1122 Recognize new archive, audio and image formats.
1123 Give audio files a separate color.
1124 * src/dircolors.hin: Add comments for common .sh and .csh scripts.
1125 Add .bz2, .tbz2, .tz, .rar, .ace, .zoo, .cpio, .7z, .rz as archive
1126 suffixes. Add .mng, .pcx, .m2v, .mkv, .ogm, .mp4, .m4v, .mp4v, .vob,
1127 .qt, .nuv, .wmv, .asf, .rm, .rmvb, .flc, .yuv as image formats.
1128 Add .aac, .au, .mid, .midi, .mka, .ra as audio suffixes. Change
1129 audio color to 00;36 to differentiate from image/video color.
1131 2006-11-26 Jim Meyering <jim@meyering.net>
1133 * Makefile.maint (patch-check): Compile patched sources with
1134 CFLAGS='-Wdeclaration-after-statement -Werror', to ensure that
1135 no violations remain.
1137 * src/c99-to-c89.diff: Remove 3 bogus hunks.
1139 * src/remove.c (fd_to_subdirp): Remove unused parameter, ds.
1142 * src/c99-to-c89.diff: Adjust for changes in rm.c and in remove.c.
1144 * src/rm.c (main): Remove unnecessary (assuming C99) braces.
1146 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
1148 Port parts of the code to C89 to minimize the need for c99-to-c89.diff,
1149 while trying to retain the readability of C99 as much as possible.
1150 * src/remove.c (rm_1): Remove decl of local, fd_cwd.
1151 Replace each of two uses with literal AT_FDCWD.
1152 (cache_stat_init): Return its argument, for convenience.
1153 Update the caller in remove_dir.
1154 (AD_pop_and_chdir): Return prev_dir rather than storing through
1155 a pointer argument. All uses changed.
1156 (AD_ensure_initialized): New function.
1157 (AD_mark_helper): Use it, to avoid the need for declaration
1159 (rm): Move cycle_check_init call into callee...
1161 Use an else clause in place of a "continue" statement.
1162 (close_preserve_errno): Remove.
1163 (fd_to_subdirp): Rewrite to avoid the need for decl after statement.
1165 2006-11-25 Jim Meyering <jim@meyering.net>
1167 * Makefile.am (EXTRA_DIST): Remove announce-gen from here, too.
1169 2006-11-24 Theodoros V. Kalamatianos <thkala@softlab.ece.ntua.gr> (tiny change)
1171 * tests/du/inacc-dest: Skip this test when running as root.
1173 2006-11-23 Jim Meyering <jim@meyering.net>
1175 * announce-gen: Remove file. It's moving to gnulib.
1176 * bootstrap: Pull it from gnulib/build-aux instead.
1177 * Makefile.maint (announcement): Reflect move to ./build-aux.
1179 * tests/du/deref-args: Use "printf %65536s x" to create a 64KB file,
1180 rather than a pipeline that would sometimes evoke a diagnostic
1181 like "seq: write error: Broken pipe".
1183 * tests/help-version: Suppress dd transfer rate output.
1185 * configure.ac (AC_INIT): Bump to 6.7-pre, not 6.6-pre.
1187 2006-11-22 Jim Meyering <jim@meyering.net>
1189 * announce-gen (print_news_deltas): Fix silly, but harmless typo:
1190 change "(:?..." to "(?:..." in regexps.
1192 Post-release version change.
1193 * NEWS: Add a line for 6.7-pre.
1194 * configure.ac (AC_INIT): Bump to 6.7 and add "-pre" suffix.
1197 * NEWS: Record release date. Remove "-pre" suffix.
1198 * configure.ac (AC_INIT): Remove "-pre" suffix from version string.
1200 * announce-gen: Remove unused --release-archive-directory option.
1201 (print_news_deltas): Accept new adjective, "Noteworthy", in addition
1203 Match version numbers in NEWS using tighter regular expressions.
1204 (main): Require the --gpg-key-id=ID option.
1205 * Makefile.maint (announcement): Don't use now-removed
1206 --release-archive-directory=... option.
1208 * NEWS: Mention the three noteworthy changes, all fixed via gnulib.
1210 2006-11-21 Jim Meyering <jim@meyering.net>
1212 * tests/rm/one-file-system: Upon setup failure (e.g., mount failure),
1213 skip the test rather than failing. Reported by Michael Deutschmann.
1215 * tests/rm/fail-eperm: Use the "(exit N); exit N" idiom,
1216 rather than just "exit N".
1218 Arrange for "make check-root" to run the new root-only test.
1219 * tests/Makefile.am (t7): New target, to run tests/ls/nameless-uid.
1222 2006-11-20 Jim Meyering <jim@meyering.net>
1224 Add a root-only test for today's lib/idcache.c fix.
1225 * tests/ls/nameless-uid: New file.
1226 * tests/ls/Makefile.am (TESTS): Add nameless-uid.
1227 (TESTS_ENVIRONMENT): Add PERL to the list.
1229 2006-11-19 Jim Meyering <jim@meyering.net>
1231 * tests/tail-2/assert-2: Mark as a very-expensive test, because I
1232 find the 7-second sleep annoyingly long. Besides, this test is
1233 probably far too specific and timing sensitive ever to trigger again.
1234 * tests/tail-2/assert: Likewise.
1236 Post-release version change.
1237 * NEWS: Add a line for 6.6-pre.
1238 * configure.ac (AC_INIT): Bump to 6.6 and add "-pre" suffix.
1241 * NEWS: Record release date. Remove "-cvs" suffix.
1242 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
1244 2006-11-18 Jim Meyering <jim@meyering.net>
1246 "ln --backup f f" produces a misleading diagnostic:
1247 ln: creating hard link `f' => `f': No such file or directory
1248 * src/ln.c (do_link): Give a better diagnostic in this unusual case.
1249 (do_link): Rename local: s/lstat_ok/dest_lstat_ok/.
1250 * tests/ln/Makefile.am (TESTS): Add hard-backup.
1251 * tests/ln/hard-backup: New test for the above.
1252 * NEWS: Mention this fix.
1254 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
1256 * bootstrap.conf (gnulib_modules): Add sys_stat, since we use it
1258 * lib/.cvsignore, lib/.gitignore: Add root-dev-ino.c, root-dev-ino.h.
1259 * m4/.cvsignore, m4/.gitignore: Add root-dev-ino.m4.
1260 * src/ls.c (DIRED_FPUTS_LITERAL, PUSH_CURRENT_DIRED_POS):
1261 Omit unnecessary parenthesization of args.
1262 * src/od.c (EQUAL_BLOCKS): Likewise.
1263 * src/system.h (STREQ, ASSIGN_STRDUPA): Likewise.
1265 2006-11-16 Jim Meyering <jim@meyering.net>
1267 * tests/tail-2/append-only: If chattr +a fails, exit 77 (to tell
1268 automake we're skipping this test), and give a diagnostic to tell
1269 the user the same thing. Reported by Mike Grayson.
1271 2006-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1273 * man/Makefile.am (dist_man_MANS): Replace all optional manpages
1274 with `$(MAN)', computed at configure time; also, list them ...
1275 (optional_mans): ... in this new variable.
1276 (max_aux, EXTRA_DIST): Ensure that we distribute all manpages.
1278 2006-11-16 Jim Meyering <jim@meyering.net>
1280 Help valgrind see that there is no leak in dd.c.
1281 * src/dd.c (dd_copy): Declare real_buf and real_obuf to be static,
1282 so we need not free them at all. This is easier than freeing
1283 both buffers at each of the early "return"s.
1285 * src/csplit.c (load_buffer): Plug an inconsequential leak.
1287 2006-11-15 Jim Meyering <jim@meyering.net>
1289 * .x-po-check: Exclude gl/ files. Otherwise, po-check would
1290 complain that some of gl/lib/*.[ch] are not listed in POTFILES.in.
1292 2006-11-14 Jim Meyering <jim@meyering.net>
1294 * gl/m4/root-dev-ino.m4: Now that this is part of a real "module",
1295 remove the now-unnecessary use of AC_LIBSOURCES.
1297 Adapt to new version of gnulib-tool.
1298 * gl/modules/root-dev-ino: New file.
1299 * lib/root-dev-ino.c, lib/root-dev-ino.h: Move these files ...
1300 * gl/lib/root-dev-ino.c, gl/lib/root-dev-ino.h: ... to here.
1301 * m4/root-dev-ino.m4: Move this file ...
1302 * gl/m4/root-dev-ino.m4: ... to here.
1304 * bootstrap.conf (gnulib_modules): Add root-dev-ino.
1306 2006-11-13 Jim Meyering <jim@meyering.net>
1308 * src/sort.c (insertkey): Use xmemdup, rather than xmalloc+assignment.
1311 Plug another technically-unimportant leak in sort.
1312 * src/sort.c (main): Don't allocate memory for each new key here.
1313 (insertkey): Allocate memory for each key here, instead.
1314 (key_init): Rename from new_key. Don't allocate.
1316 * src/sort.c (main): Plug a tiny memory leak.
1317 Move declaration of local "minus" down to be nearer point of use.
1319 2006-11-12 Jim Meyering <jim@meyering.net>
1321 du would exit early, when encountering an inaccessible directory
1322 Reported by Mike Frysinger, in
1323 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8831
1324 * tests/du/inacc-dest: New test, based on an example from Mike Frysinger.
1325 * tests/chgrp/no-x: Remove the "fts_read failed: ..."
1326 diagnostic from the expected output when using native fdopendir.
1327 * tests/chmod/no-x: Likewise.
1328 * tests/du/no-x: Likewise.
1329 * NEWS: Mention this bug fix.
1330 * tests/du/Makefile.am (TESTS): Add inacc-dest.
1332 * Makefile.maint (sc_cast_of_x_alloc_return_value): Add an exclusion
1333 for xalloc.h itself.
1335 Avoid false-positive when testing via valgrind.
1336 * tests/mv/atomic: Grep strace output for a more specific pattern
1337 than just "unlink", since that got a false positive when testing
1338 under valgrind: unlink("/tmp/valgrind_proc_9657_cmdline_A51E9991") = 0
1339 * tests/mv/Makefile.am (TESTS_ENVIRONMENT): Define EGREP.
1341 2006-10-28 Jim Meyering <jim@meyering.net>
1343 * Makefile.maint (patch-check): Make it easier to regenerate
1344 the src/c99-to-c89.diff file. E.g., I do this:
1345 make patch-check REGEN_PATCH=1; ediff src/c99-to-c89.diff new-diff
1347 * src/c99-to-c89.diff: Update to reflect new offsets in rm.c.
1349 2006-10-26 Jim Meyering <jim@meyering.net>
1351 * src/system.h (ftello): Add a compile-time check for the highly
1352 unlikely condition of off_t narrower than long int, rather than
1353 handling it at run time. Based on a patch from Paul Eggert.
1355 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
1357 * tests/chmod/c-option: When double-quoting part of a word, prefer
1358 to double-quote the whole word. This is a bit easier to read (at
1359 least for me), and in some cases it avoids a shell bug with Tru64
1360 4.0 sh reported by Nelson H. F. Beebe. For example, instead of
1361 "$abs_srcdir"/../setgid-check we now write
1362 "$abs_srcdir/../setgid-check".
1363 * tests/cp/cp-parents: Likewise.
1364 * tests/du/inaccessible-cwd: Likewise.
1365 * tests/du/long-from-unreadable: Likewise.
1366 * tests/install/basic-1: Likewise.
1367 * tests/install/trap: Likewise.
1368 * tests/misc/close-stdout: Likewise.
1369 * tests/mkdir/concurrent-1: Likewise.
1370 * tests/mkdir/p-1: Likewise.
1371 * tests/mkdir/p-3: Likewise.
1372 * tests/mkdir/parents: Likewise.
1373 * tests/mkdir/perm: Likewise.
1374 * tests/readlink/can-e: Likewise.
1375 * tests/readlink/can-f: Likewise.
1376 * tests/readlink/can-m: Likewise.
1377 * tests/rm/inaccessible: Likewise.
1378 * tests/rm/unread3: Likewise.
1379 * tests/touch/no-create-missing: Likewise.
1381 * lib/.cvsignore: Add uinttostr.c.
1383 2006-10-25 Jim Meyering <jim@meyering.net>
1385 Portability to Tru64 V4.0.
1386 * src/system.h (ftello) [!HAVE_FSEEKO && !defined ftello]:
1387 Define inline replacement function.
1388 This (along with a yesterday's fix for autoconf's
1389 _AC_SYS_LARGEFILE_MACRO_VALUE macro) makes it so coreutils
1390 now builds once more on Tru64 V4.0. Reported by Nelson Beebe.
1392 2006-10-25 Bruno Haible <bruno@clisp.org>
1394 * src/cat.c (infile): Add "const" to declaration.
1395 * src/csplit.c (prefix): Likewise.
1396 * src/printf.c (cfcc_msg): Likewise.
1397 * src/tail.c (valid_file_spec): Likewise.
1398 * src/cut.c (cut_file): Likewise, for a parameter.
1399 * src/expr.c (str_value): Likewise.
1400 * src/fold.c (fold_file): Likewise.
1401 * src/pr.c (init_header): Likewise.
1402 * src/dircolors.c (dc_parse_stream): Likewise, for a local.
1403 * src/tr.c (make_printable_str): Likewise.
1404 * src/nl.c (body_type, header_type, footer_type, current_type):
1405 (separator_str, build_type_arg, nl_file): Likewise, for many.
1406 * src/paste.c (main): Don't assign a read-only string to 'optarg'.
1407 * src/tac.c (separator, tac_seekable, copy_to_temp): Likewise.
1409 2006-10-25 Jim Meyering <jim@meyering.net>
1411 * tests/sample-test: Update copyright year list to include only
1412 the current year, since this is what I'll want in any new test.
1414 2006-10-24 Jim Meyering <jim@meyering.net>
1416 * src/c99-to-c89.diff: Update to reflect new offsets.
1418 * NEWS: new feature: rm accepts new option: --one-file-system
1419 Suggested by Steve McIntyre in <http://bugs.debian.org/392925>.
1420 * src/remove.h (struct rm_options) [one_file_system]: New member.
1421 * src/rm.c (rm_option_init): Initialize it.
1422 (usage): Document the option.
1423 * src/mv.c (rm_option_init): Likewise.
1424 * src/remove.c (remove_dir): With --one-file-system and --recursive,
1425 for each directory command line argument, do not affect a file system
1426 different from that of the starting directory. And give a diagnostic.
1427 * src/rm.c (ONE_FILE_SYSTEM): New enum.
1428 (main): Handle new option.
1429 * tests/rm/one-file-system: Test the above.
1430 * tests/rm/Makefile.am (TESTS): Add one-file-system.
1431 * tests/Makefile.am (check-root): Add the rm/one-file-system
1433 (EXTRA_DIST): Add other-fs-tmpdir.
1435 * tests/mv/setup: Removed. Renamed to...
1436 * tests/other-fs-tmpdir: ...this new file.
1437 * tests/mv/Makefile.am (EXTRA_DIST): Remove setup.
1438 * tests/mv/acl: Reflect renaming: use ../other-fs-tmpdir.
1439 * tests/mv/backup-is-src: Likewise.
1440 * tests/mv/hard-link-1: Likewise.
1441 * tests/mv/leak-fd: Likewise.
1442 * tests/mv/mv-special-1: Likewise.
1443 * tests/mv/part-fail: Likewise.
1444 * tests/mv/part-hardlink: Likewise.
1445 * tests/mv/part-rename: Likewise.
1446 * tests/mv/part-symlink: Likewise.
1447 * tests/mv/partition-perm: Likewise.
1448 * tests/mv/to-symlink: Likewise.
1449 * tests/mv/into-self-2: Likewise.
1451 Don't let a failure in one test stop "make -k" from running the others.
1452 * tests/Makefile.am (t1 t2 t3 t4 t5): New targets.
1453 (check-root): Depend on them, rather than executing the five
1454 commands in a single rule. Reported by Greg Schafer.
1456 2006-10-23 Bob Proulx <bob@proulx.com> (tiny change)
1458 * Makefile.maint (alpha beta major): Use a better log message for
1459 the automatic commit of .prev-version.
1461 2006-10-23 Jim Meyering <jim@meyering.net>
1463 * tests/misc/pwd-long: Undo last change, since it made Perl invoke
1464 pwd via a shell. Instead, ensure that the absolute name of the
1465 pwd binary consists solely of reasonable characters.
1466 Whoops. Don't exec the perl script. Otherwise, the sh-trap-based
1467 clean-up code isn't run.
1469 * NEWS: Add a line for 6.5-cvs.
1470 * configure.ac (AC_INIT): Bump to 6.5 and add "-cvs" suffix.
1472 2006-10-22 Jim Meyering <jim@meyering.net>
1476 * NEWS: Record the 6.4 release date.
1477 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
1479 * Makefile.maint: Complete the adaptation to function with a working
1480 directory that is using git (rather than cvs) for version control.
1482 2006-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1484 * tests/chmod/c-option: Double-quote instances of `$abs_srcdir'.
1485 * tests/cp/cp-parents: Likewise.
1486 * tests/mkdir/parents: Likewise.
1487 * tests/mkdir/perm: Likewise.
1489 * tests/sample-test: Quote variables containing absolute build
1490 tree paths. In the cleanup trap, make sure `cd' succeeds before
1491 `chmod'ing and `rm'ing the temporary files.
1492 * tests/chgrp/basic: Likewise.
1493 * tests/chgrp/deref: Likewise.
1494 * tests/chgrp/no-x: Likewise.
1495 * tests/chgrp/posix-H: Likewise.
1496 * tests/chgrp/recurse: Likewise.
1497 * tests/chmod/c-option: Likewise.
1498 * tests/chmod/equal-x: Likewise.
1499 * tests/chmod/equals: Likewise.
1500 * tests/chmod/inaccessible: Likewise.
1501 * tests/chmod/no-x: Likewise.
1502 * tests/chmod/octal: Likewise.
1503 * tests/chmod/setgid: Likewise.
1504 * tests/chmod/umask-x: Likewise.
1505 * tests/chmod/usage: Likewise.
1506 * tests/chown/basic: Likewise.
1507 * tests/chown/deref: Likewise.
1508 * tests/chown/separator: Likewise.
1509 * tests/cp/acl: Likewise.
1510 * tests/cp/backup-1: Likewise.
1511 * tests/cp/backup-dir: Likewise.
1512 * tests/cp/backup-is-src: Likewise.
1513 * tests/cp/cp-HL: Likewise.
1514 * tests/cp/cp-deref: Likewise.
1515 * tests/cp/cp-i: Likewise.
1516 * tests/cp/cp-mv-backup: Likewise.
1517 * tests/cp/cp-parents: Likewise.
1518 * tests/cp/deref-slink: Likewise.
1519 * tests/cp/dir-rm-dest: Likewise.
1520 * tests/cp/dir-slash: Likewise.
1521 * tests/cp/dir-vs-file: Likewise.
1522 * tests/cp/fail-perm: Likewise.
1523 * tests/cp/into-self: Likewise.
1524 * tests/cp/link: Likewise.
1525 * tests/cp/link-no-deref: Likewise.
1526 * tests/cp/link-preserve: Likewise.
1527 * tests/cp/no-deref-link1: Likewise.
1528 * tests/cp/no-deref-link2: Likewise.
1529 * tests/cp/no-deref-link3: Likewise.
1530 * tests/cp/perm: Likewise.
1531 * tests/cp/preserve-2: Likewise.
1532 * tests/cp/r-vs-symlink: Likewise.
1533 * tests/cp/same-file: Likewise.
1534 * tests/cp/slink-2-slink: Likewise.
1535 * tests/cp/sparse: Likewise.
1536 * tests/cp/special-bits: Likewise.
1537 * tests/cp/src-base-dot: Likewise.
1538 * tests/cp/symlink-slash: Likewise.
1539 * tests/dd/not-rewound: Likewise.
1540 * tests/dd/skip-seek2: Likewise.
1541 * tests/dd/unblock-sync: Likewise.
1542 * tests/du/2g: Likewise.
1543 * tests/du/8gb: Likewise.
1544 * tests/du/basic: Likewise.
1545 * tests/du/deref: Likewise.
1546 * tests/du/deref-args: Likewise.
1547 * tests/du/exclude: Likewise.
1548 * tests/du/fd-leak: Likewise.
1549 * tests/du/hard-link: Likewise.
1550 * tests/du/inaccessible-cwd: Likewise.
1551 * tests/du/long-from-unreadable: Likewise.
1552 * tests/du/long-sloop: Likewise.
1553 * tests/du/no-deref: Likewise.
1554 * tests/du/no-x: Likewise.
1555 * tests/du/restore-wd: Likewise.
1556 * tests/du/slash: Likewise.
1557 * tests/du/slink: Likewise.
1558 * tests/du/trailing-slash: Likewise.
1559 * tests/du/two-args: Likewise.
1560 * tests/fmt/long-line: Likewise.
1561 * tests/install/basic-1: Likewise.
1562 * tests/install/create-leading: Likewise.
1563 * tests/install/d-slashdot: Likewise.
1564 * tests/install/trap: Likewise.
1565 * tests/ln/misc: Likewise.
1566 * tests/ln/target-1: Likewise.
1567 * tests/ls/color-dtype-dir: Likewise.
1568 * tests/ls/dangle: Likewise.
1569 * tests/ls/dired: Likewise.
1570 * tests/ls/file-type: Likewise.
1571 * tests/ls/follow-slink: Likewise.
1572 * tests/ls/infloop: Likewise.
1573 * tests/ls/inode: Likewise.
1574 * tests/ls/m-option: Likewise.
1575 * tests/ls/no-arg: Likewise.
1576 * tests/ls/recursive: Likewise.
1577 * tests/ls/rt-1: Likewise.
1578 * tests/ls/stat-dtype: Likewise.
1579 * tests/ls/stat-failed: Likewise.
1580 * tests/ls/stat-vs-dirent: Likewise.
1581 * tests/misc/cat-proc: Likewise.
1582 * tests/misc/close-stdout: Likewise.
1583 * tests/misc/csplit: Likewise.
1584 * tests/misc/date-sec: Likewise.
1585 * tests/misc/false-status: Likewise.
1586 * tests/misc/head-c: Likewise.
1587 * tests/misc/head-pos: Likewise.
1588 * tests/misc/mknod: Likewise.
1589 * tests/misc/nl: Likewise.
1590 * tests/misc/nohup: Likewise.
1591 * tests/misc/pathchk1: Likewise.
1592 * tests/misc/printf: Likewise.
1593 * tests/misc/printf-hex: Likewise.
1594 * tests/misc/pwd-long: Likewise.
1595 * tests/misc/shuf: Likewise.
1596 * tests/misc/sort-rand: Likewise.
1597 * tests/misc/split-a: Likewise.
1598 * tests/misc/split-fail: Likewise.
1599 * tests/misc/split-l: Likewise.
1600 * tests/misc/stat-fmt: Likewise.
1601 * tests/misc/tac-continue: Likewise.
1602 * tests/misc/wc-files0: Likewise.
1603 * tests/mkdir/concurrent-1: Likewise.
1604 * tests/mkdir/p-1: Likewise.
1605 * tests/mkdir/p-2: Likewise.
1606 * tests/mkdir/p-3: Likewise.
1607 * tests/mkdir/p-slashdot: Likewise.
1608 * tests/mkdir/p-thru-slink: Likewise.
1609 * tests/mkdir/p-v: Likewise.
1610 * tests/mkdir/parents: Likewise.
1611 * tests/mkdir/perm: Likewise.
1612 * tests/mkdir/t-slash: Likewise.
1613 * tests/mv/acl: Likewise.
1614 * tests/mv/atomic: Likewise.
1615 * tests/mv/backup-dir: Likewise.
1616 * tests/mv/childproof: Likewise.
1617 * tests/mv/diag: Likewise.
1618 * tests/mv/dir-file: Likewise.
1619 * tests/mv/dir2dir: Likewise.
1620 * tests/mv/dup-source: Likewise.
1621 * tests/mv/hard-2: Likewise.
1622 * tests/mv/hard-3: Likewise.
1623 * tests/mv/hard-4: Likewise.
1624 * tests/mv/hard-link-1: Likewise.
1625 * tests/mv/hard-verbose: Likewise.
1626 * tests/mv/i-2: Likewise.
1627 * tests/mv/i-3: Likewise.
1628 * tests/mv/i-4: Likewise.
1629 * tests/mv/i-5: Likewise.
1630 * tests/mv/i-link-no: Likewise.
1631 * tests/mv/into-self-4: Likewise.
1632 * tests/mv/leak-fd: Likewise.
1633 * tests/mv/mv-special-1: Likewise.
1634 * tests/mv/no-target-dir: Likewise.
1635 * tests/mv/part-fail: Likewise.
1636 * tests/mv/part-hardlink: Likewise.
1637 * tests/mv/part-rename: Likewise.
1638 * tests/mv/part-symlink: Likewise.
1639 * tests/mv/partition-perm: Likewise.
1640 * tests/mv/perm-1: Likewise.
1641 * tests/mv/reply-no: Likewise.
1642 * tests/mv/trailing-slash: Likewise.
1643 * tests/mv/update: Likewise.
1644 * tests/od/od-N: Likewise.
1645 * tests/od/x8: Likewise.
1646 * tests/readlink/can-e: Likewise.
1647 * tests/readlink/can-f: Likewise.
1648 * tests/readlink/can-m: Likewise.
1649 * tests/readlink/rl-1: Likewise.
1650 * tests/rm/cycle: Likewise.
1651 * tests/rm/dangling-symlink: Likewise.
1652 * tests/rm/deep-1: Likewise.
1653 * tests/rm/dir-no-w: Likewise.
1654 * tests/rm/dir-nonrecur: Likewise.
1655 * tests/rm/dot-rel: Likewise.
1656 * tests/rm/empty-inacc: Likewise.
1657 * tests/rm/f-1: Likewise.
1658 * tests/rm/fail-2eperm: Likewise.
1659 * tests/rm/hash: Likewise.
1660 * tests/rm/i-1: Likewise.
1661 * tests/rm/i-no-r: Likewise.
1662 * tests/rm/ignorable: Likewise.
1663 * tests/rm/inaccessible: Likewise.
1664 * tests/rm/interactive-always: Likewise.
1665 * tests/rm/interactive-once: Likewise.
1666 * tests/rm/ir-1: Likewise.
1667 * tests/rm/isatty: Likewise.
1668 * tests/rm/no-give-up: Likewise.
1669 * tests/rm/r-1: Likewise.
1670 * tests/rm/r-2: Likewise.
1671 * tests/rm/r-3: Likewise.
1672 * tests/rm/r-4: Likewise.
1673 * tests/rm/readdir-bug: Likewise.
1674 * tests/rm/rm1: Likewise.
1675 * tests/rm/rm2: Likewise.
1676 * tests/rm/rm3: Likewise.
1677 * tests/rm/rm4: Likewise.
1678 * tests/rm/rm5: Likewise.
1679 * tests/rm/sunos-1: Likewise.
1680 * tests/rm/unread2: Likewise.
1681 * tests/rm/unread3: Likewise.
1682 * tests/rmdir/fail-perm: Likewise.
1683 * tests/rmdir/t-slash: Likewise.
1684 * tests/shred/exact: Likewise.
1685 * tests/shred/remove: Likewise.
1686 * tests/sum/sysv: Likewise.
1687 * tests/tail-2/append-only: Likewise.
1688 * tests/tail-2/assert: Likewise.
1689 * tests/tail-2/assert-2: Likewise.
1690 * tests/tail-2/big-4gb: Likewise.
1691 * tests/tail-2/fflush: Likewise.
1692 * tests/tail-2/infloop-1: Likewise.
1693 * tests/tail-2/proc-ksyms: Likewise.
1694 * tests/tail-2/start-middle: Likewise.
1695 * tests/tail-2/tail-n0f: Likewise.
1696 * tests/tee/basic: Likewise.
1697 * tests/tee/dash: Likewise.
1698 * tests/touch/fail-diag: Likewise.
1699 * tests/touch/no-create-missing: Likewise.
1700 * tests/touch/not-owner: Likewise.
1701 * tests/touch/obsolescent: Likewise.
1702 * tests/touch/read-only: Likewise.
1703 * tests/touch/relative: Likewise.
1705 2006-10-21 Jim Meyering <jim@meyering.net>
1707 * NEWS: (cp --backup fix): Fix a typo.
1709 * .gitignore: Remove some references to files in subdirectories.
1710 * build-aux/.gitignore, doc/.gitignore, lib/.gitignore: New files.
1711 * m4/.gitignore, po/.gitignore, src/.gitignore: Likewise.
1713 * src/copy.c (copy_internal): Add a comment saying why we prefer
1716 Enable an fts optimization (call lstat only for directories,
1717 on some file system types) also with the --preserve-root option
1719 * src/chown-core.c (change_file_owner): Compare fts_statp-based
1720 dev/ino against root dev/ino only for directories.
1721 (chown_files): Don't let the root_dev_ino setting influence whether
1722 we use FTS_NOSTAT: fts always sets *fts_statp for a directory.
1724 2006-10-20 Jim Meyering <jim@meyering.net>
1726 * src/od.c (usage): Change description of default to use "-w16",
1727 not the now-invalid "-w 16" syntax. From Dan Jacobson.
1729 2006-10-19 Jim Meyering <jim@meyering.net>
1731 * bootstrap: Add names to each .gitignore file (if it exists)
1732 as well as to .cvsignore.
1734 * Makefile.maint (po-check): This rule didn't detect the new use
1735 of "gettext" (as opposed to the use of "_" everywhere else) in
1736 lib/xstrtol.h. Adjust the grep regexp so that now it does.
1738 2006-10-18 Paul Eggert <eggert@cs.ucla.edu>
1740 * src/copy.c (copy_reg): Rewrite slightly to avoid duplicate code
1741 when opening dst_name.
1742 (copy_reg, copy_internal): Use (SYSCALL != 0) rather than plain
1743 (SYSCALL) to test for failure in a system call.
1745 * src/copy.c (copy_internal): Use mknod rather than mkfifo to copy
1746 a fifo. This preserves the special mode bits on Solaris 10, which
1747 is compatible with what Solaris 10 cp -R does.
1749 * src/copy.c (copy_internal): Remove redundant and confusing local
1752 * src/copy.c (copy_internal): Don't pass mkdir a mode greater than
1753 7777. This matches historical 'cp' behavior and avoids some
1754 (though not all) implementation-defined behavior of mkdir.
1755 * src/cp.c (make_dir_parents_private): Likewise.
1756 * src/copy.c (copy_internal): Don't pass 'open' a mode greater
1757 than 777. This is required by POSIX. It doesn't make any difference
1758 in actual behavior on any host that I know of.
1760 2006-10-17 Jim Meyering <jim@meyering.net>
1762 * src/dd.c (usage): Use two spaces (not one) to separate the
1763 "fdatasync" option string from its description, so help2man formats
1764 the derived man page properly. Reported by Samuel Thibault
1765 in <http://bugs.debian.org/393649>.
1767 2006-10-16 Jim Meyering <jim@meyering.net>
1769 * .x-sc_trailing_blank: Remove names of files that are no longer
1772 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
1774 * src/groups.sh (version): Reword message to match the other programs.
1775 Problem reported by Eric Blake.
1777 2006-10-14 Jim Meyering <jim@meyering.net>
1779 * Makefile.maint (headers_with_interesting_macro_defs): Define.
1780 (.re-defmac, sc_always_defined_macros): New rules.
1782 * src/system.h (EXIT_FAILURE, EXIT_SUCCESS): Remove definitions.
1783 Instead, include "exit.h". This hereby retires the work-around for
1784 "Sony NEWS-OS Release 4.0C"'s bug due to "#define EXIT_FAILURE 0".
1786 * src/cksum.c (uint_fast32_t): Don't define.
1787 Instead, include <stdint.h>.
1789 * src/pinky.c (S_IWGRP): Don't define.
1790 It's already defined by "stat-macros.h" (included via system.h).
1792 * Makefile.cfg: Remove cruft that's now handled via bootstrap.
1793 * Makefile.maint: Likewise, remove these targets/rules/variables:
1794 (local_updates, update, cvs-update, wget_files, get-targets): Remove.
1795 (cvs_files, wget-update, automake_repo): Likewise.
1796 Move the comment about cvsu to build-aux/vc-list-files,
1797 where cvsu is actually used.
1799 * Makefile.maint (cvs-update): Use $(CVS), not "cvs".
1801 Work also when the working directory (with e.g. coreutils sources)
1802 is version controlled with git, rather than CVS.
1803 * bootstrap (CVS_only_file): Test for the existence of README-cvs,
1805 In messages and comments, say e.g., "checked-out sources",
1806 rather than "CVS sources".
1807 (version_controlled_file): New function. Work for git as well as
1808 for CVS. Don't use grep's -q option.
1809 (slurp): Call it here, in place of CVS-specific code.
1811 * NEWS: cp -r --backup dir1 dir2, would rename an existing dir1/dir2
1813 * src/copy.c (copy_internal): Although we do create a backup of each
1814 destination directory when in move mode, don't do that when copying.
1815 Reported by Peter Breitenlohner, in
1816 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8616>.
1817 * tests/cp/backup-dir: New file. Test for the above.
1818 * tests/cp/Makefile.am (TESTS): Add backup-dir.
1820 2006-10-13 Jim Meyering <jim@meyering.net>
1822 More chown/chgrp dereferencing-related fixes.
1823 * src/chown-core.c (change_file_owner): Don't use fts_statp if
1824 we're dereferencing symlinks.
1825 Reverse conjuncts, so that we use dereference file_stats
1826 (aka ent->fts_statp) only *after* we've confirmed that
1827 chopt->affect_symlink_referent is true. Otherwise, we might
1828 use ent->fts_statp uninitialized.
1829 Don't turn on FTS_NOSTAT when dereferencing symlinks.
1830 * tests/chown/deref: Update the expected diagnostic, now that
1831 this test case (trying to use "chown --dereference ..." on a
1832 dangling symlink) takes a different code path.
1834 2006-10-13 Paul Eggert <eggert@cs.ucla.edu>
1836 Sync from Bison, as follows:
1838 2006-10-01 Paul Eggert <eggert@cs.ucla.edu>
1840 Fix problems with translating English-language diagnostics.
1841 * bootstrap: Fix bug introduced in recent bootstrap changes, with
1842 respect to bison-runtime pot generation. The YY_ stuff
1843 wasn't being captured.
1845 2006-10-13 Jim Meyering <jim@meyering.net>
1847 * src/chown-core.c (change_file_owner): Use fstatat, not stat,
1848 now that we're using fts_open with FTS_CWDFD.
1849 * tests/chgrp/posix-H: Add --preserve-root to an invocation of
1850 chgrp, to exercise the above fix.
1851 * NEWS: Mention the above.
1853 * src/du-tests: Clean up a little, though it's still not portable.
1855 * .vg-suppressions: Add 3 more for debian unstable.
1857 * tests/ls/Test.pm: Remove long-unused file.
1858 * Makefile.am (EXTRA_DIST): Add bootstrap.conf.
1859 Suggestions from Bruno Haible.
1861 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1863 * Makefile.am (THANKS-to-translators): Add missing $(srcdir).
1864 (MAINTAINERCLEANFILES): Add .kludge-stamp.
1865 * man/Makefile.am (MAINTAINERCLEANFILES): Typo $(dist_man_MANS)
1866 instead of $(man_MANS).
1868 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1870 * configure.ac: Avoid compiler warnings about default return
1871 type in function definitions and unused variables in tests.
1872 * src/who.c (print_user) [HAVE_UT_HOST]: hostlen is only needed
1873 if this is #defined.
1875 2006-10-12 Jim Meyering <jim@meyering.net>
1877 * configure.ac: Reflect s/gl_MACROS/coreutils_MACROS/ renaming.
1878 Call gl_INIT directly, rather than through the above.
1880 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
1882 * bootstrap (symlink_to_gnulib): Fix bug: the dot_dots shell
1883 variable was sometimes used without being initialized. This
1884 messed up the installation of the INSTALL file in some cases.
1886 2006-10-11 Jim Meyering <jim@meyering.net>
1888 * src/ls.c (usage): Correct description of -s, --size.
1889 It works even without -l. Suggestion from Karl Berry.
1891 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
1893 * src/ls.c (quote_name): Use initializer rather than memset to
1894 initialize an object to zero. This is easier to read and is less
1895 likely to introduce a runtime error due to a mixup. It causes
1896 gcc -W to issue a warning, but you can work around this by
1897 appending -Wno-missing-field-initializers.
1898 * src/pathchk.c (portable_chars_only): Likewise.
1899 * src/shred.c (main): Likewise.
1900 * src/stty.c (main): Likewise.
1901 * src/tr.c (card_of_complement): Likewise.
1902 * src/wc.c (wc): Likewise.
1904 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
1906 * src/sort.c (usage): Mention again that sort fields are origin 1.
1908 * NEWS: Fix typo: iso-8602 -> iso-8601. Problem reported by
1911 * bootstrap (usage, main program, symlink_to_gnulib): Add option
1912 --copy. Inspired by a suggestion from Bruno Haible.
1914 2006-10-09 Jim Meyering <jim@meyering.net>
1916 Avoid a compiler warning.
1917 * src/pathchk.c (portable_chars_only): Initialize variable of type
1918 mbstate_t via memset, rather than via '{0}'. Patch from Bruno Haible.
1920 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
1922 Fix bug reported today by Mike Frysinger: mkdir -pv is logging the
1923 wrong file name in some cases. Lars Wendler reported a bug in
1925 * src/install.c (make_ancestor): New arg COMPONENT.
1926 * src/mkdir.c (make_ancestor): Likewise.
1927 * tests/install/basic-1: Check for install -Dv bug.
1928 * tests/mkdir/Makefile.am (TESTS): Add p-v.
1929 * tests/mkdir/p-v: New file, to test this bug.
1931 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
1933 * src/chgrp.c: Don't include lchown.h; no longer needed.
1934 * src/chown.c: Likewise.
1936 * tests/ls/stat-dtype: Use a dynamic test to decide whether the
1937 current file system has useful d_type info.
1939 * src/dd.c (flags): noatime and nofollow now depend on
1940 HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW, too.
1941 (usage): Output info about noatime and nofollow only if
1942 they are known to work.
1943 * src/remove.c (AD_push): Inspect HAVE_WORKING_O_NOFOLLOW rather
1944 than O_NOFOLLOW, when testing whether it's possible to avoid a
1945 race condition reliably.
1947 2006-10-05 Jim Meyering <jim@meyering.net>
1949 * src/c99-to-c89.diff: Update to reflect new offsets.
1951 * tests/install/basic-1: Skip the latter part of this test if the
1952 just-built dd binary is not readable. Otherwise, this test would fail
1953 when binaries were created as root. Reported by Bauke Jan Douma in
1954 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8433>.
1956 2006-10-03 Paul Eggert <eggert@cs.ucla.edu>
1958 * src/system.h (ST_BLKSIZE): Ceiling at SIZE_MAX / 8 + 1, not at 4
1959 MiB, since XFS hosts can legitimately have large values of
1960 st_blksize. Problem reported by Tony Ernst in
1961 <http://savannah.gnu.org/bugs/?17903>.
1963 2006-10-04 Jim Meyering <jim@meyering.net>
1965 * src/remove.c (nonexistent_file_errno): Remove ENAMETOOLONG.
1966 Paul Eggert pointed out that the specified file may exist,
1967 in spite of such an errno value.
1968 * tests/rm/Makefile.am (TESTS): Remove ignore-name-too-long.
1969 * tests/rm/ignore-name-too-long: Remove file.
1970 * NEWS: Update here, too.
1972 2006-10-03 Jim Meyering <jim@meyering.net>
1974 * tests/rm/fail-eperm: Report failure also if rm is terminated by
1977 * src/c99-to-c89.diff: Convert two c99'isms -- one in remove.c
1978 and one in shred.c -- that were added before coreutils-6.3.
1979 Reported by Michael Deutschmann.
1981 * src/c99-to-c89.diff: Update to reflect new offsets.
1983 * src/remove.c (remove_entry): With -f, exit successfully in spite
1984 of a missing file under some very unusual conditions (with errno
1985 being any of ENOENT, ENOTDIR, ENAMETOOLONG).
1987 With --force (-f), rm no longer fails for ENOTDIR.
1988 * src/remove.c (ignorable_missing): New function.
1989 Use it everywhere, rather than open-coding the test.
1990 Andreas Schwab reported the ENOTDIR problem.
1991 (ignorable_missing): Similarly, don't fail for ENAMETOOLONG.
1993 * NEWS: Mention the bug fix.
1994 * tests/rm/ignorable: New file. Test for the ENOTDIR case.
1995 * tests/rm/ignore-name-too-long: New file. Test for ENAMETOOLONG.
1996 * tests/rm/Makefile.am (TESTS): Add the new file names.
1998 * bootstrap: Undo last change to this file, since now gnulib-tool
1999 sticks with the automake default in generating dependencies.
2001 * NEWS: Add a line for 6.4-cvs.
2002 * configure.ac (AC_INIT): Bump to 6.4 and add "-cvs" suffix.
2004 2006-09-30 Jim Meyering <jim@meyering.net>
2007 * NEWS: Record the 6.3 release date.
2008 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2010 * NEWS: Mention Paul's Solaris 8 vs. 10 work-around.
2012 * src/c99-to-c89.diff: Update offsets.
2014 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
2016 * tests/rm/readdir-bug: Don't use $(...) in a shell script,
2017 as it doesn't work with Solaris /bin/sh.
2019 2006-09-29 Jim Meyering <jim@meyering.net>
2021 * NEWS: Mention Paul's fix (to gnulib's canon-host.c) for
2024 * tests/seq/basic [neg-2, eq-wid-2]: Comment out tests that
2025 use .1 as the increment. Actual output varies too much.
2026 [eq-wid-3]: New, commented out test.
2028 * src/shuf.c (read_input): Fix an off-by-one error that
2029 would cause an infloop for piped input of 8KB or more.
2030 * NEWS: Mention the fix.
2031 * tests/misc/shuf: Test for the above fix.
2033 Since any system may be affected by the Darwin readdir bug,
2034 perform the extra rewinddir unconditionally. The performance
2035 impact of rewinding a directory is negligible.
2036 * src/remove.c (NEED_REWIND): Define to use
2037 CONSECUTIVE_READDIR_UNLINK_THRESHOLD unconditionally.
2039 * tests/seq/basic: Use .11 as the upper bound, in case the ".1"
2040 increment translates to a slightly larger value.
2041 This corrects a test failure on FreeBSD 6.1 reported by Nelson Beebe.
2042 The final expected value wasn't being printed.
2044 Work around a readdir bug in Darwin 7.9.0 (MacOS X 10.3.9) on HFS+
2045 and NFS, whereby rm would not remove all files in a directory.
2046 * src/remove.c (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Reduce to 10.
2047 (NEED_REWIND): New macro, so that we incur the cost of the work-around
2048 rewinddir only on afflicted systems.
2049 * NEWS: Clarify and correct.
2050 * tests/rm/readdir-bug: New file. Test for the above fix.
2051 * tests/rm/Makefile.am (TESTS): Add it.
2052 Prompted by testing and analysis from Bruno Haible:
2053 http://lists.gnu.org/archive/html/bug-coreutils/2006-09/msg00326.html
2055 2006-09-28 Paul Eggert <eggert@cs.ucla.edu>
2057 * tests/rm/fail-eperm: Unset BASH_ENV, CDPATH, and ENV, too;
2058 suggested for Debian stable, which uses Perl 5.8.4.
2060 2006-09-28 Jim Meyering <jim@meyering.net>
2062 Automatically generated dependencies are important even
2063 when all of the sources in a directory come from gnulib.
2064 * bootstrap (gnulib_tool): Remove the "no-dependencies" automake
2065 option that gnulib-tool adds to what becomes our lib/gnulib.mk.
2067 * tests/rm/fail-eperm: Enable Perl's (-T) taint checking.
2068 Ensure that IFS is set properly and unset PATH.
2070 Work properly even when the name of the selected file starts with "-".
2071 Invoke rm via "../../src/rm", and adjust expected output.
2072 Prompted by a patch from Tim Waugh.
2074 * README-cvs: Add Bison to the list of required packages.
2076 2006-09-26 Jim Meyering <jim@meyering.net>
2078 * src/c99-to-c89.diff: Update offsets.
2080 * NEWS: rm works around a bug in Darwin 8.6.1 w/NFS that kept
2081 it from removing a directory containing 188 or more entries.
2082 * src/remove.c (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Decrease by
2083 20, go work around the buggy readdir on Darwin 8.6.1 with NFS.
2084 Reported by Matthew Woehlke.
2086 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
2088 * NEWS: "groups user" no longer outputs "user :"; you need at least
2089 two users. "groups" now processes options like --help more compatibly.
2090 * src/groups.sh: Implement the option-processing change.
2091 Handle user and group names with special characters more robustly.
2092 Report write errors instead of exiting silently with status 1.
2094 2006-09-26 Jim Meyering <jim@meyering.net>
2096 * README: Warn not to run autoreconf manually. Use bootstrap instead.
2098 * src/groups.sh: When invoked with 0 or 1 argument, just exec "id".
2099 Rewrite to avoid using temporary, $status.
2101 * NEWS: Mention the bug fix.
2102 * src/groups.sh: Don't hide a write failure.
2103 Reported by Iain Calder <ic56@rogers.com>.
2105 2006-09-25 Jim Meyering <jim@meyering.net>
2107 * src/chown.c (usage): Clarify --dereference description.
2108 * src/chgrp.c (usage): Likewise. Suggestion from Jamie McClelland.
2110 2006-09-24 Jim Meyering <jim@meyering.net>
2112 * NEWS: Mention these fixes.
2113 * src/copy.c (copy_reg): With --verbose (-v), print
2114 "removed `file_name'" just after unlinking a file.
2115 (copy_internal): Likewise, in three more places.
2116 Marc Lehman reported that "touch x; ln x y; mv -v x y" was silent.
2117 * tests/mv/hard-verbose: New file. Test for the above fix.
2118 * tests/mv/Makefile.am (TESTS): Add hard-verbose.
2120 * tests/help-version (sync_args): Don't call sync, since it spins up
2121 disks that I've deliberately caused to spin down (but not unmounted).
2123 * NEWS: Mention the improvement to sort.
2125 * tests/tail-2/proc-ksyms: Require that /proc/ksyms be readable
2126 as well as existing.
2128 * tests/ls/stat-dtype: Don't use tmpfs on linux-2.4 or older,
2129 since that predated addition of d_type support.
2131 2006-09-23 Jim Meyering <jim@meyering.net>
2133 * gl/modules/getloadavg.diff: New file. Work around the way the latest
2134 version of the getloadavg module interacts with our bootstrap script.
2135 * bootstrap (gnulib_tool_options): Add "--local-dir gl".
2136 * Makefile.am (EXTRA_DIST): Sort file names.
2137 Add bootstrap and gl/modules/getloadavg.diff
2139 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
2141 * bootstrap: Add support for --force.
2142 (usage): New function. Describe usage less tersely.
2143 (CVS_only_file): New var.
2145 * NEWS: Document fix for cp -i and mv -i.
2146 * src/copy.c (copy_internal): With -i, prompt even if the source
2147 is a directory and the destination is not. This is required by
2148 POSIX and gives the user a chance to bail out before failing.
2149 * tests/cp/Makefile.am (TESTS): Add cp-i.
2150 * tests/cp/cp-i: New file.
2151 * tests/mv/Makefile.am (TESTS): Add i-5.
2152 * tests/mv/i-5: New file.
2154 2006-09-20 Jim Meyering <jim@meyering.net>
2156 * NEWS: Mention the chmod bug fix.
2158 * tests/chmod/inaccessible: New test, specifically for this bug.
2159 Based on a test case from Paul Eggert.
2160 * tests/chmod/Makefile.am (TESTS): Add inaccessible.
2162 Fix the 2006-09-18 bug differently.
2163 * src/chmod.c: (process_file): Upon FTS_NS for a top-level file,
2164 tell fts_read to stat the file again, in case it has become
2165 accessible since the initial fts_open call.
2166 * src/chown-core.c (change_file_owner): Likewise.
2168 * src/chmod.c: Revert last change. There is a better way.
2169 * src/chown-core.c: Likewise.
2171 2006-09-19 Paul Eggert <eggert@cs.ucla.edu>
2173 * src/ln.c (target_directory_operand): Rewrite to avoid porting
2174 problem on Tandem reported by Matthew Woehlke in
2175 <https://savannah.gnu.org/bugs/?17172>.
2177 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
2179 Fix bug where chmod, chown, and chgrp did not process operands
2180 left-to-right in some cases.
2181 * src/chmod.c (wd_errno): New var.
2182 (chmod_file): New function, with most of the contents of the
2183 old prcess_file function.
2184 (process_files): Use it. This gives file names to fts one
2185 at a time, so that they are processed left-to-right as POSIX
2187 * src/chown-core.c (wd_errno, chown_files): Likewise.
2188 (chown_file): New function.
2189 * tests/install/basic-1: Redo test so as to not workaround
2190 the chmod bug, thereby testing for it.
2192 * src/shuf.c (main): Quote the entire range when reporting an
2193 invalid one, rather than just the part that contained the error.
2195 * tests/stty/row-col-1: Rewrite to avoid temporary file that is
2196 sometimes left behind if the test is skipped or interrupted.
2198 * bootstrap (symlink_to_gnulib): New function.
2199 (cp_mark_as_generated): Use it, to prefer symlinks-to-gnulib
2200 to copies-of-gnulib.
2201 (cp_mark_as_generated, slurp, gnulib_files):
2202 Avoid making a copy if it's the same as the old version.
2203 (gnulib_files): Add support for this variable (used by Bison).
2205 * tests/ls/stat-vs-dirent: Fix quoting problem in diagnostic
2206 indicating flaw in kernel. Reword to say that the flaw isn't
2207 serious for coreutils, since the flaw does affect ls -i.
2209 * tests/chgrp/basic: Fix bug in test case exposed by building on
2210 Solaris 8 in a setgid directory. The test case incorrectly
2211 assumed that 'symlink' would be in group $g1.
2213 2006-09-18 Jim Meyering <jim@meyering.net>
2215 * NEWS: Add a line for 6.3-cvs.
2216 * configure.ac (AC_INIT): Bump to 6.3 and add "-cvs" suffix.
2219 * NEWS: Record the 6.2 release date.
2220 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2222 2006-09-17 Jim Meyering <jim@meyering.net>
2224 * tests/chgrp/basic: On an OpenBSD system, rather than failing
2225 due to a known problem, merely warn about it.
2226 Rewrite to avoid testing output of chgrp --verbose and chgrp -c.
2227 Instead, use stat to test file system for desired results, directly.
2228 * tests/chgrp/Makefile.am (TESTS_ENVIRONMENT): Set host_triplet.
2230 * tests/envvar-check: Add more variable names to the list of those
2231 that can affect these programs and tests: _POSIX2_VERSION, COLUMNS,
2232 QUOTING_STYLE, TABSIZE, TERM, TMPDIR.
2234 2006-09-16 Paul Eggert <eggert@cs.ucla.edu>
2236 * NEWS: Document that mkdir -p and install -d now fork on occasion.
2237 * bootstrap.conf (gnulib_modules): Add savewd.
2238 * src/install.c: Include savewd.h.
2239 (process_dir): New function.
2240 (main, install_file_in_file_parents): Use it, along with the new
2241 savewd module, to avoid some race conditions.
2242 * src/mkdir.c: Include savewd.h.
2243 (struct mkdir_options): New members make_ancestor_function, mode,
2245 (make_ancestor): Return 1 if the resulting directory is not readable.
2246 (process_dir): New function.
2247 (main): Use it, along with new savewd module, to avoid some
2248 race conditions. Fill in new slots of struct mkdir_options, so
2249 that callees get the values.
2250 * tests/install/basic-1: Test for coreutils 5.97 bug that was
2251 fixed in coreutils 6.0, and which should still be fixed with
2253 * tests/mkdir/p-3: Likewise.
2255 2006-09-15 Jim Meyering <jim@meyering.net>
2257 * bootstrap.conf (gnulib_modules): Add rename-dest-slash.
2258 The 2006-09-08 changes made it so "mv dir new-name/" would
2259 fail on NetBSD 1.6. This makes it work once again.
2261 2006-09-14 Jim Meyering <jim@meyering.net>
2263 * src/mv.c (main): Remove unnecessary (always-true) test for 2 <= n.
2264 Instead, since it's a little fragile, assert the condition.
2265 (target_directory_operand): Update comment to reflect latest change.
2267 2006-09-12 Paul Eggert <eggert@cs.ucla.edu>
2269 * src/who.c (print_user): Rewrite to avoid warning from
2270 GCC 4.1.1 with -Wall.
2272 2006-09-12 Jim Meyering <jim@meyering.net>
2274 * tests/mv/atomic: Check for specific strace output, rather than
2275 simply nonempty. RHEL AS 4 would fail this test due to strace
2276 generating "[ Process PID=14434 runs in 32 bit mode. ]".
2277 Reported by Nelson Beebe.
2279 2006-09-11 Jim Meyering <jim@meyering.net>
2281 * src/remove.c (remove_dir): Move new cache_stat_init call onto
2283 (rm_1): Move declaration of "st" and new cache_stat_init call
2284 "down" to nearer where they're used.
2285 * src/c99-to-c89.diff: Add another set of curly braces.
2287 2006-09-10 Paul Eggert <eggert@cs.ucla.edu>
2289 * src/expr.c (eval6): Fix buffer overrun, or bad performance, if
2290 substr's last operand is very large. Performance problem reported
2293 2006-09-09 Jim Meyering <jim@meyering.net>
2295 * Makefile.maint (sc_prohibit_jm_in_m4): Don't hang when there
2297 (sc_require_config_h): Skip this test if there are no version-
2298 controlled .c files.
2299 (sc_prohibit_assert_without_use): Likewise.
2301 2006-09-08 Jim Meyering <jim@meyering.net>
2303 * bootstrap: Export CVS_RSH separate from its assignment, to work
2304 even with Solaris 10's /bin/sh. Suggestion from Mark D. Baushke.
2306 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
2308 * NEWS: tail now ignores the -f option if POSIXLY_CORRECT is set,
2309 no file operand is given, and standard input is any FIFO.
2310 This is in response to Open Group XCU ERN 114.
2311 * src/tail.c (main): Likewise.
2313 2006-09-08 Jim Meyering <jim@meyering.net>
2315 mv and "cp -r" no longer fail when invoked with two arguments
2316 where the first one names a directory and the second name ends in
2317 a slash and doesn't exist. E.g., "mv dir B/", for nonexistent B,
2318 now succeeds, once more. This reverts part of the 2004-06-27
2320 * NEWS: Say the above.
2321 * src/mv.c (target_directory_operand): Don't require (here)
2322 that the target operand "look like" a directory. This change
2323 pushes the test down to the rename syscall level, where a
2324 "mv dir existing-non-dir/" will mistakenly succeed on older systems
2325 that ignore trailing slashes in the rename destination argument.
2326 * src/cp.c (target_directory_operand): Likewise, but for cp.
2327 * tests/mv/trailing-slash: Exercise the above fixes.
2328 * tests/cp/trailing-slash: New file.
2329 * tests/cp/Makefile.am (EXTRA_DIST): Add trailing-slash.
2331 * bootstrap: Use the previously unused variable, $src,
2332 to avoid repeating "$GNULIB_SRCDIR/$file".
2334 * bootstrap (cp_mark_as_generated): Don't use "local", to
2335 accommodate ancient "/bin/sh". Suggested by Ralf Wildenhues.
2336 Rename now-global "$src" and "$dst" to have cp_ prefix.
2337 Safer, and avoids confusion.
2339 * bootstrap (cp_mark_as_generated): New function.
2340 (slurp): Use it to prepend editor hints and a warning that
2341 the file we're copying is generated.
2342 Suggestion from Bruce Korb.
2343 (cp_mark_as_generated): Don't add C-style comments for .l or .y files.
2344 Fix last-minute typo.
2346 2006-09-07 Jim Meyering <jim@meyering.net>
2348 * bootstrap: Revert last change. There are less disruptive ways
2349 to mark these generated files as read-only.
2351 * src/c99-to-c89.diff: Update to have proper offsets.
2353 2006-09-06 Jim Meyering <jim@meyering.net>
2355 Ensure that some gnulib-tool-generated files are read-only.
2356 * bootstrap (slurp): Put the body of this function in a sub-shell,
2357 with "umask a-w" so that all new files are read-only. Remove each
2358 file before we write to it, in case it's read-only.
2359 Make po/Makevars and runtime-po/Makevars read-only, too.
2361 2006-09-05 Jim Meyering <jim@meyering.net>
2363 * tests/cp/acl: Skip this test when cp lacks ACL support.
2364 * tests/cp/Makefile.am (TESTS_ENVIRONMENT): Set $(CONFIG_HEADER).
2366 * src/c99-to-c89.diff (remove.c): Adapt one hunk to match the new
2367 context from change of 2006-09-02.
2369 2006-09-04 Jim Meyering <jim@meyering.net>
2371 * README-cvs: Fix typo in update command.
2373 2006-09-03 Jim Meyering <jim@meyering.net>
2375 * NEWS: Tweak the wording in the new change description so that
2376 no one can think this change causes e.g., `rm -fr foo../' to fail.
2378 * tests/rm/inaccessible: Adjust for movement of config.h to lib/.
2379 Use $CONFIG_HEADER, rather than hard-coding it.
2380 * tests/rm/Makefile.am (TESTS_ENVIRONMENT): Set $CONFIG_HEADER.
2382 2006-09-02 Paul Eggert <eggert@cs.ucla.edu>
2384 * NEWS: rm now rejects attempts to remove /, ./, and ../.
2385 * src/basename.c: Don't include dirname.h, since system.h does it now.
2386 * src/chmod.c: Likewise.
2387 * src/copy.c: Likewise.
2388 * src/cp.c: Likewise.
2389 * src/df.c: Likewise.
2390 * src/dircolors.c: Likewise.
2391 * src/dirname.c: Likewise.
2392 * src/du.c: Likewise.
2393 * src/install.c: Likewise.
2394 * src/ln.c: Likewise.
2395 * src/ls.c: Likewise.
2396 * src/mkdir.c: Likewise.
2397 * src/mv.c: Likewise.
2398 * src/remove.c: Likewise.
2399 * src/rm.c: Likewise.
2400 * src/rmdir.c: Likewise.
2401 * src/shred.c: Likewise.
2402 * src/split.c: Likewise.
2403 * src/su.c: Likewise.
2404 * src/system.h: Include "dirname.h", since dot_or_dotdot needs it
2406 (dot_or_dotdot): Succeed even if "." or ".." is followed by a
2408 * src/rm.c (usage, main): --preserve-root is now the default.
2409 * src/remove.h: Fix comment.
2410 * src/remove.c (cache_fstatat, cache_stat_init): New functions.
2411 (cache_statted, cache_stat_ok): New functions.
2412 (write_protected_non_symlink): Remove struct stat ** buf_p arg,
2413 which is no longer needed with the new functions. All callers
2415 (prompt, is_dir_lstat, remove_entry, remove_dir):
2416 New struct stat * arg. All callers changed.
2417 (write_protected_non_symlink, prompt, is_dir_lstat, remove_entry):
2418 (remove_cwd_entries, remove_dir, rm_1):
2419 Use and maintain the file status cache.
2420 (prompt, remove_entry): Omit the first "directory" in the diagnostic
2421 "Cannot remove directory `foo': is a directory". This causes "rm"
2422 to pass a test case that it would otherwise fail now that it
2423 "knows" more about its argument. I think the diagnostic is better
2424 without the first "directory" anyway.
2425 (prompt): Remove the no-longer-needed IS_DIR arg; all callers changed.
2426 (rm_1): Reject attempts to remove /, ./, or ../.
2427 * tests/rm/Makefile.am (TESTS): Add r-4.
2428 * tests/rm/r-4: New file.
2430 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
2432 * src/stat.c: Include <stddef.h>
2433 (alignof): New macro.
2434 (HAVE_STRUCT_STATXFS_F_FSID___VAL, HAVE_STRUCT_STATXFS_F_FSID_VAL):
2436 (STRUCT_STATXFS_F_FSID_IS_INTEGER): New macro.
2438 (print_statfs): If f_fsid isn't an integer, grab its words one
2439 at a time in little-endian order. This is a bit easier to configure
2440 and should avoid a compilation failure on MacOS reported by Bruno
2443 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
2445 * src/stat.c (HAVE_STRUCT_STATXFS_F_FSID_VAL, FSID_VAL): New macros, to
2446 work around a Mac OS X porting problem reported by Bruno Haible in
2447 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00308.html>.
2448 (print_statfs): Use them.
2450 * bootstrap.conf (gnulib_modules): Add isapipe.
2451 * src/tail.c: Include isapipe.h.
2452 (IS_PIPE_LIKE_FILE_TYPE): Remove.
2453 (IS_TAILABLE_FILE_TYPE): Just list both FIFOs and sockets as
2454 tailable, since this seems to be portable.
2455 (main): Use isapipe, to fix a bug on MacOS X reported by Bruno Haible in
2456 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00304.html>.
2458 * src/system.h (LOCALEDIR): Remove, since configmake.h now defines
2461 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
2463 * src/copy.c (copy_internal): Don't test whether macros like
2464 S_ISLNK are defined, since they're always defined now.
2465 * src/cp.c (main): Likewise.
2466 * src/ln.c (main): Likewise.
2467 * src/ls.c (get_link_name, make_link_name): Likewise.
2468 * src/mknod.c (main): Likewise.
2469 * src/mkfifo.c (usage): Likewise.
2470 * src/who.c (S_IWGRP): Likewise.
2472 Adjust to recent gnulib changes for the gnulib module.
2473 * bootstrap.conf (gnulib_modules): Add fcntl.
2474 * src/system.h (SEEK_SET, SEEK_CUR, SEEK_END): Remove. Other code
2475 is already assuming these macros are defined.
2476 (O_DIRECT, O_DIRECTORY, O_DSYNC, O_NDELAY, O_NOATIME, O_NONBLOCK):
2477 (O_NOCTTY, O_NOFOLLOW, O_NOLINKS, O_RSYNC, O_SYNC, O_BINARY, O_TEXT):
2478 Remove; the fcntl module now handles these.
2480 Adjust to recent gnulib changes for the inttypes module.
2481 * bootstrap.conf (gnulib_modules): Remove stdint; add inttypes.
2482 (excluded_files): Don't exclude m4/inttypes-h.m4 or m4/inttypes-pri.m4.
2484 * src/system.h: Don't bother to include <stdint.h>, since we can
2485 now assume inttypes.h does the equivalent of including stdint.h.
2487 2006-08-27 Jim Meyering <jim@meyering.net>
2489 * src/copy.c (copy_internal): Don't make a backup if the last
2490 component of the source name is "." or "..".
2491 Reported by Andreas Schwab in http://savannah.gnu.org/bugs/?17540.
2492 * NEWS: Mention this.
2493 * tests/cp/src-base-dot: New file. Test for the above fix.
2494 * tests/cp/Makefile.am (TESTS): Add src-base-dot.
2496 * src/system.h (DOT_OR_DOTDOT): Remove macro. Rewrite as a...
2497 (dot_or_dotdot): ...new static inline function.
2498 * src/remove.c (rm_1): Reflect this renaming.
2499 * src/ls.c (basename_is_dot_or_dotdot): Likewise.
2501 * src/copy.c (copy_internal): Add comments.
2503 2006-08-26 Paul Eggert <eggert@cs.ucla.edu>
2505 * src/Makefile.am (AM_CPPFLAGS): Remove -I$(srcdir) and -I../lib,
2506 since Automake supplies them for us. It always did -I$(srcdir),
2507 and with the recent change to AC_CONFIG_HEADERS in configure.ac it
2508 is now also doing -I../lib.
2510 * bootstrap (get_translations): Skip this if WGET_COMMAND is empty.
2511 Fail if the first "echo" fails. Suppress diagnostics from "ls po/*.po"
2512 since there might not be any .po files.
2513 (WGET_COMMAND): Set to empty if wget doesn't
2514 seem to be available.
2516 2006-08-26 Jim Meyering <jim@meyering.net>
2518 This test was failing in some environments.
2519 * tests/ls/color-dtype-dir: Don't rely on eval "`dircolors -b`"
2520 to set LS_COLORS in the environment.
2521 * tests/envvar-check: Instead, ensure that LS_COLORS is not set.
2522 Reported by Bob Proulx.
2524 * src/c99-to-c89.diff: Remove hunk for copy.c; no longer needed.
2526 * Makefile.am (EXTRA_DIST): Remove these files here, too:
2527 .x-sc_no_if_have_config_h, .x-sc_prohibit_assert_without_use,
2528 .x-sc_two_space_separator_in_usage.
2530 Fix "mv --verbose --backup" so its output includes the
2531 " (backup: foo.~1~)" suffix also when backing up a directory.
2532 * NEWS: Report this bug fix.
2533 * src/copy.c (emit_verbose): New function, factored out of...
2534 (copy_internal): ...here. Use the new function.
2535 * tests/mv/backup-dir: Test for the above fix.
2536 * tests/mv/Makefile.am (TESTS): Add backup-dir.
2538 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
2540 * .x-sc_no_if_have_config_h: Remove; no longer needed.
2541 * .x-sc_prohibit_assert_without_use: Remove; it was empty.
2542 * .x-sc_two_space_separator_in_usage: Likewise.
2543 * Makefile.maint (sc_no_have_config_h): Renamed from
2544 sc_no_if_have_config_h, since it now checks that HAVE_CONFIG_H
2545 is absent everywhere.
2546 * bootstrap.conf (gnulib_modules): Add config-h.
2547 * src/shred.c: Include <config.h> unconditionally, since
2548 we now assume config.h exists.
2549 * src/dircolors.c: Likewise.
2551 2006-08-26 Jim Meyering <jim@meyering.net>
2553 "ls --color" would highlight other-writable and sticky directories
2554 no differently than regular directories on a file system with
2555 dirent.d_type support.
2556 * NEWS: Say the above.
2557 * src/ls.c (gobble_file): With --color, also stat the file when
2558 we know it is a directory.
2559 Derived from an anonymous one-line fix and bug report:
2560 <http://savannah.gnu.org/bugs/?15043>.
2561 * tests/ls/color-dtype-dir: New file. Test for the above fix.
2562 * tests/ls/Makefile.am (TESTS): Add color-dtype-dir.
2564 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
2566 * .cvsignore: Remove stamp-h1. Add coreutils-*, to ignore
2568 * bootstrap.conf: Add configmake, verify.
2569 * src/.cvsignore: Remove localedir.h.
2570 * src/Makefile.am (localedir, DISTCLEANFILES, localedir.h): Remove;
2571 subsumed by configmake.
2572 * src/system.h: Include configmake.h rather than localedir.h
2573 (LOCALEDIR): New macro.
2575 Rewrite to avoid some unnecessary casts, macros, literals.
2576 * src/shred.c (DEFAULT_PASSES, VERBOSE_UPDATE): Now constants,
2578 (SECTOR_SIZE, SECTOR_MASK): New constants.
2579 (fillpattern, dopass, do_wipefd, main): Remove unnecessary casts,
2580 and use the SECTOR_* constants when applicable. Check for size <
2581 0 rather than size == -1, since negative-size files are a sign of
2584 2006-08-25 Bruno Haible <bruno@clisp.org>
2586 * src/shred.c (dopass): Assume a continuable error if EIO even
2587 if the current position is not a multiple of 512.
2589 2006-08-24 Jim Meyering <jim@meyering.net>
2591 * src/stat.c (print_statfs): Fix typo: remove extra "sizeof".
2593 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
2595 * src/stat.c (HAVE_STRUCT_STATXFS_F_FSID___VAL): Define. This
2596 macro was being used without being defined.
2597 (SB_F_NAMEMAX): Remove cast.
2598 (f_fsid) [BeOS]: Likewise.
2599 (OUT_NAMEMAX): Renamed from NAMEMAX_FORMAT, with a new meaning.
2601 (out_string, out_int, out_uint, out_uint_o, out_uint_x): New
2603 (xstrcat): Remove. All uses changed to use the above functions.
2604 (print_statfs, print_stat): 2nd arg is now the prefix len, not the
2605 buffer len. All uses changed. Output '?', not '*', for unknown
2606 data or errors. Do not assume signed values can be interchanged
2607 with unsigned when printing.
2608 (print_statfs): For %i, print the fsid as a single int, not as a
2610 (print_it): Quote invalid format better.
2612 * NEWS: printf supports the I flag.
2613 * src/printf.c (print_formatted) [glibc 2.2 or later]: Likewise.
2615 2006-08-23 Bruno Haible <bruno@clisp.org>
2617 * src/stat.c (STRUCT_STATVFS, statfs, f_fsid, f_blocks, f_bfree) [BeOS]:
2618 (f_bavail, f_bsize, STATFS_FRSIZE, f_files, f_ffree) [BeOS]:
2619 (STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME) [BeOS]: Define.
2621 * src/ls.c (SA_RESTART): Fallback define.
2623 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
2625 * src/system.h (EDQUOT): Define if not already defined.
2626 Problem reported by Bruno Haible for BeOS.
2628 * .cvsignore: Remove config.h, config.hin, as they are now
2630 * configure.ac (AC_CONFIG_HEADERS): Move config.h and config.hin
2632 * src/Makefile.am (AM_CPPFLAGS): Remove '-I..'; no longer needed.
2634 * bootstrap (slurp): Define gl_LOCK_EARLY instead of gl_LOCK,
2635 to accommodate today's gnulib change.
2637 2006-08-23 Jim Meyering <jim@meyering.net>
2639 * NEWS: Mention the sweeping infrastructure changes.
2641 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
2643 * bootstrap.conf (gnulib_modules): Add gnupload.
2644 * Makefile.maint (emit_upload_commands): gnupload is now
2646 * gnupload: Remove from CVS, since it's now a gnulib module.
2648 * bootstrap (bootstrap_conf_cleanup): Remove.
2649 (excluded_files): New var.
2650 * bootstrap.conf: Likewise.
2651 * bootstrap (slurp): Exclude files early if they're in the
2652 excluded_files list. That way, their names don't get put into
2655 * aclocal.m4, config.hin, configure:
2656 Remove from CVS, since ./bootstrap generates them automatically.
2657 * .cvsignore: Add INSTALL, Makefile.in, aclocal.m4, config.hin,
2658 configure, *.cache, *.lineno, *.log.
2659 Remove more-specific entries. This catches files like configure.lineno.
2660 * man/.cvsignore: Add Makefile.in.
2661 * src/.cvsignore: Add Makefile.in.
2662 Remove .version, dir.c, install, mvdir, stamp-v, vdir.c, version.c.
2665 * tests/chgrp/.cvsignore:
2666 * tests/chmod/.cvsignore:
2667 * tests/chown/.cvsignore:
2668 * tests/cp/.cvsignore:
2669 * tests/cut/.cvsignore:
2670 * tests/dd/.cvsignore:
2671 * tests/dircolors/.cvsignore:
2672 * tests/du/.cvsignore:
2673 * tests/expr/.cvsignore:
2674 * tests/factor/.cvsignore:
2675 * tests/fmt/.cvsignore:
2676 * tests/head/.cvsignore:
2677 * tests/install/.cvsignore:
2678 * tests/join/.cvsignore:
2679 * tests/ln/.cvsignore:
2680 * tests/ls/.cvsignore:
2681 * tests/ls-2/.cvsignore:
2682 * tests/md5sum/.cvsignore:
2683 * tests/misc/.cvsignore:
2684 * tests/mkdir/.cvsignore:
2685 * tests/mv/.cvsignore:
2686 * tests/od/.cvsignore:
2687 * tests/pr/.cvsignore:
2688 * tests/readlink/.cvsignore:
2689 * tests/rm/.cvsignore:
2690 * tests/rmdir/.cvsignore:
2691 * tests/seq/.cvsignore:
2692 * tests/sha1sum/.cvsignore:
2693 * tests/shred/.cvsignore:
2694 * tests/sort/.cvsignore:
2695 * tests/stty/.cvsignore:
2696 * tests/sum/.cvsignore:
2697 * tests/tac/.cvsignore:
2698 * tests/tail/.cvsignore:
2699 * tests/tail-2/.cvsignore:
2700 * tests/tee/.cvsignore:
2701 * tests/test/.cvsignore:
2702 * tests/touch/.cvsignore:
2703 * tests/tr/.cvsignore:
2704 * tests/tsort/.cvsignore:
2705 * tests/unexpand/.cvsignore:
2706 * tests/uniq/.cvsignore:
2707 * tests/wc/.cvsignore:
2708 Add Makefile.in. Sort entries if necessary. Remove *.I, *.E,
2709 *.X, *.O, *-tests, build-script, mk-script if they're never
2710 created in this directory.
2712 2006-08-22 Bruno Haible <bruno@clisp.org>
2715 * src/uptime.c: Include OS.h if it exists.
2716 (print_uptime): On BeOS, use the get_system_info function (actually a
2717 macro). Loop through utmp entries only if utmp.h or utmpx.h exists.
2718 (uptime): Call read_utmp only if utmp.h or utmpx.h exists.
2720 2006-08-22 Jim Meyering <jim@meyering.net>
2722 * .cvsignore: Add ABOUT-NLS.
2724 Move the check-AUTHORS rule to be run as part of "make distcheck",
2725 rather than "make check".
2726 * src/Makefile.am (check): Don't depend on check-AUTHORS; it would
2727 cause "make check" to fail on systems unable to build all binaries.
2728 * Makefile.maint (check-AUTHORS): New rule.
2729 (local-checks-available): Add it here.
2730 Reported by Bruno Haible. Needed for BeOS.
2732 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
2734 * src/df.c (print_header, show_dev): Use a column width that
2735 depends on the block size of -P is specified and not autoscaling.
2736 Problem reported by Gustavo G. Rondina in:
2737 http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00164.html
2739 2006-08-21 Jim Meyering <jim@meyering.net>
2741 * tests/dircolors/simple (a): Don't fail with an unexpected diagnostic
2742 when the shell variable, SHELL, is not set.
2743 Trigger the failure with "(unset SHELL; make check TESTS=simple)".
2744 Reported by Sven Joachim in <http://bugs.debian.org/355368>.
2746 * src/od.c: Now that HAVE_UNSIGNED_LONG_LONG is no longer defined
2747 in config.h, change the uses to HAVE_UNSIGNED_LONG_LONG_INT.
2748 Otherwise, on a system with 4-byte longs, "od -t u8" fails with this:
2749 od: invalid type string `u8';
2750 this system doesn't provide a 8-byte integral type
2751 FIXME: add a test for this, but skip it when sizeof uintmax < 8.
2753 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
2755 Add a bootstrap procedure, so that the CVS version contains fewer
2756 files and we bootstrap the rest from gnulib, gettext, etc.
2757 * README-cvs: New file.
2758 * bootstrap: New file.
2759 * bootstrap.conf: New file.
2760 * .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
2761 * configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
2763 (gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
2764 (gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
2766 (gl_MACROS): Call just after gl_EARLY, just for clarity.
2767 * src/c99-to-c89.diff: Remove patch to ls.c; no longer needed.
2768 * src/kill.c (strtoimax): Remove decl.
2769 * src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
2770 * src/wc.c: Likewise.
2771 * src/ls.c (sort_files): Rewrite to avoid need for C99-style
2772 declaration, so that we don't need to patch this file.
2773 * src/printf.c (strtoimax, strtoumax): Remove decls.
2774 * src/su.c: Include getpass.h.
2776 * src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
2777 Include inttypes.h unconditionally.
2778 (LONGEST_MODIFIER, PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX): Remove.
2779 (stpcpy, strndup, strstr, strtoul, mempcpy, CHAR_MIN, CHAR_MAX):
2780 (SCHAR_MIN, SCHAR_MAX, UCHAR_MAX, SHRT_MIN, SHRT_MAX, INT_MAX):
2781 (INT_MIN, INTMAX_MAX, INTMAX_MIN, UINT_MAX, LONG_MAX, ULONG_MAX):
2782 (SIZE_MAX, SSIZE_MAX, UINTMAX_MAX): Remove.
2784 * ABOUT-NLS, INSTALL, Makefile.in, man/Makefile.in:
2785 * src/Makefile.in, tests/Makefile.in, tests/chgrp/Makefile.in:
2786 * tests/chmod/Makefile.in, tests/chown/Makefile.in:
2787 * tests/cp/Makefile.in, tests/cut/Makefile.in:
2788 * tests/dd/Makefile.in, tests/dircolors/Makefile.in:
2789 * tests/du/Makefile.in, tests/expr/Makefile.in:
2790 * tests/factor/Makefile.in, tests/fmt/Makefile.in:
2791 * tests/general/Makefile.in, tests/head/Makefile.in:
2792 * tests/install/Makefile.in, tests/join/Makefile.in:
2793 * tests/ln/Makefile.in, tests/ls/Makefile.in:
2794 * tests/ls-2/Makefile.in, tests/md5sum/Makefile.in:
2795 * tests/misc/Makefile.in, tests/mkdir/Makefile.in:
2796 * tests/mv/Makefile.in, tests/od/Makefile.in:
2797 * tests/pr/Makefile.in, tests/readlink/Makefile.in:
2798 * tests/rm/Makefile.in, tests/rmdir/Makefile.in:
2799 * tests/seq/Makefile.in, tests/sha1sum/Makefile.in:
2800 * tests/shred/Makefile.in, tests/sort/Makefile.in:
2801 * tests/stty/Makefile.in, tests/sum/Makefile.in:
2802 * tests/tac/Makefile.in, tests/tail/Makefile.in:
2803 * tests/tail-2/Makefile.in, tests/tee/Makefile.in:
2804 * tests/test/Makefile.in, tests/touch/Makefile.in:
2805 * tests/tr/Makefile.in, tests/tsort/Makefile.in:
2806 * tests/unexpand/Makefile.in, tests/uniq/Makefile.in:
2807 * tests/wc/Makefile.in:
2808 Remove from CVS, since ./bootstrap generates them automatically.
2810 2006-08-20 Eric Blake <ebb9@byu.net>
2812 * src/stat.c (USE_STATVFS): Reinstate the patch from 2006-08-15;
2813 the patch from 2006-08-18 broke on cygwin.
2815 2006-08-20 Jim Meyering <jim@meyering.net>
2817 * NEWS: Add a line for 6.2-cvs.
2818 * configure.ac (AC_INIT): Bump to 6.2 and add "-cvs" suffix.
2820 2006-08-19 Jim Meyering <jim@meyering.net>
2823 * NEWS: Record the 6.1 release date.
2824 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2826 * tests/Makefile.am (EXTRA_DIST): Add sparse-file.
2828 Avoid test failure when `make check' is run through debuild.
2829 * tests/help-version: Ensure that $SHELL is set to some value
2830 and exported. Patch from Sven Joachim. For details, see
2831 <http://bugs.debian.org/355368>.
2833 * tests/ls/stat-dtype: Test for the 2006-08-17 `ls -CF' fix.
2835 * README: Describe potential "pre-C99 build failure", and work-around.
2837 Some of my 2006-07-03 changes to tests/*/Makefile.am were being
2838 backed out due to updates provoked by the copyright changes.
2839 * tests/Makefile.am.in (PATH): Prepend $(VG_PATH_PREFIX), so that
2840 it propagates to the derived Makefile.am files.
2841 ($(srcdir)/Makefile.am): Mark generated .am files as read-only,
2842 so we don't mistakenly edit them again.
2843 * tests/cut/Makefile.am: Regenerate.
2844 * tests/head/Makefile.am: Likewise.
2845 * tests/join/Makefile.am: Likewise.
2846 * tests/pr/Makefile.am: Likewise.
2847 * tests/sort/Makefile.am: Likewise.
2848 * tests/tac/Makefile.am: Likewise.
2849 * tests/tail/Makefile.am: Likewise.
2850 * tests/test/Makefile.am: Likewise.
2851 * tests/tr/Makefile.am: Likewise.
2852 * tests/uniq/Makefile.am: Likewise.
2853 * tests/wc/Makefile.am: Likewise.
2855 * NEWS: Fix cp --sparse so that it preserves tail-end sparseness, even
2856 when the file's apparent size is not a multiple of its block size.
2857 * src/copy.c (copy_reg): Don't write a NUL before calling ftruncate.
2858 For some file sizes, writing that single byte would unnecessarily
2859 waste a few file blocks. That write may have been necessary in the
2860 early days of Linux, but now, removing it should be safe.
2861 Based on a patch by Alan Curry: <http://bugs.debian.org/370792>
2862 * tests/cp/sparse: New test for the above.
2863 * tests/cp/Makefile.am (TESTS): Add sparse.
2865 * tests/sparse-file: New file, essence factored out of...
2866 * tests/du/8gb: ... here. Use the new script.
2868 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
2870 * src/system.h (select_plural): Reduce by 1000000, not 1000, since
2871 the CVS gettext manual now suggests 1000000.
2873 2006-08-18 Bruno Haible <bruno@clisp.org>
2875 Add support for NetBSD 3.0.
2876 * src/stat.c (USE_STATVFS): Set to 1 if 'struct statvfs' has a field
2878 (STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME): Define also if 'struct statvfs'
2879 has a field f_fstypename.
2880 This undoes the 2006-08-15 to src/stat.c.
2882 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
2884 Copyright notice fixes.
2886 * COPYING: Upgrade to latest version from FSF.
2888 * src/uname.c: Use (C) in copyright notice.
2890 * .vg-suppressions: Add copyright notice.
2891 * ChangeLog: Likewise.
2892 * ChangeLog-2005: Likewise.
2893 * Makefile.am: Likewise.
2896 * README-valgrind: Likewise.
2898 * announce-gen: Likewise.
2899 * man/Makefile.am: Likewise.
2900 * man/chmod.x: Likewise.
2901 * man/chown.x: Likewise.
2902 * man/df.x: Likewise.
2903 * man/du.x: Likewise.
2904 * man/rm.x: Likewise.
2905 * src/dircolors.hin: Likewise.
2906 * src/du-tests: Likewise.
2907 * src/extract-magic: Likewise.
2908 * src/tac-pipe.c: Likewise.
2909 * src/wheel-gen.pl: Likewise.
2910 * tests/Coreutils.pm: Likewise.
2911 * tests/Makefile.am.in: Likewise.
2912 * tests/acl: Likewise.
2913 * tests/envvar-check: Likewise.
2914 * tests/expensive: Likewise.
2915 * tests/group-names: Likewise.
2916 * tests/help-version: Likewise.
2917 * tests/mk-script: Likewise.
2918 * tests/priv-check: Likewise.
2919 * tests/rwx-to-mode: Likewise.
2920 * tests/sample-test: Likewise.
2921 * tests/setgid-check: Likewise.
2922 * tests/chgrp/basic: Likewise.
2923 * tests/chgrp/deref: Likewise.
2924 * tests/chgrp/no-x: Likewise.
2925 * tests/chgrp/posix-H: Likewise.
2926 * tests/chgrp/recurse: Likewise.
2927 * tests/chmod/c-option: Likewise.
2928 * tests/chmod/equal-x: Likewise.
2929 * tests/chmod/equals: Likewise.
2930 * tests/chmod/no-x: Likewise.
2931 * tests/chmod/octal: Likewise.
2932 * tests/chmod/setgid: Likewise.
2933 * tests/chmod/umask-x: Likewise.
2934 * tests/chmod/usage: Likewise.
2935 * tests/chown/basic: Likewise.
2936 * tests/chown/deref: Likewise.
2937 * tests/chown/separator: Likewise.
2938 * tests/cp/Makefile.am: Likewise.
2939 * tests/cp/acl: Likewise.
2940 * tests/cp/backup-1: Likewise.
2941 * tests/cp/backup-is-src: Likewise.
2942 * tests/cp/cp-HL: Likewise.
2943 * tests/cp/cp-deref: Likewise.
2944 * tests/cp/cp-mv-backup: Likewise.
2945 * tests/cp/cp-parents: Likewise.
2946 * tests/cp/deref-slink: Likewise.
2947 * tests/cp/dir-rm-dest: Likewise.
2948 * tests/cp/dir-slash: Likewise.
2949 * tests/cp/dir-vs-file: Likewise.
2950 * tests/cp/fail-perm: Likewise.
2951 * tests/cp/into-self: Likewise.
2952 * tests/cp/link: Likewise.
2953 * tests/cp/link-no-deref: Likewise.
2954 * tests/cp/link-preserve: Likewise.
2955 * tests/cp/no-deref-link1: Likewise.
2956 * tests/cp/no-deref-link2: Likewise.
2957 * tests/cp/no-deref-link3: Likewise.
2958 * tests/cp/perm: Likewise.
2959 * tests/cp/preserve-2: Likewise.
2960 * tests/cp/r-vs-symlink: Likewise.
2961 * tests/cp/same-file: Likewise.
2962 * tests/cp/slink-2-slink: Likewise.
2963 * tests/cp/special-bits: Likewise.
2964 * tests/cp/symlink-slash: Likewise.
2965 * tests/cut/Makefile.am: Likewise.
2966 * tests/cut/Test.pm: Likewise.
2967 * tests/dd/misc: Likewise.
2968 * tests/dd/not-rewound: Likewise.
2969 * tests/dd/skip-seek: Likewise.
2970 * tests/dd/skip-seek2: Likewise.
2971 * tests/dd/unblock-sync: Likewise.
2972 * tests/dircolors/simple: Likewise.
2973 * tests/du/2g: Likewise.
2974 * tests/du/8gb: Likewise.
2975 * tests/du/Makefile.am: Likewise.
2976 * tests/du/basic: Likewise.
2977 * tests/du/deref: Likewise.
2978 * tests/du/deref-args: Likewise.
2979 * tests/du/exclude: Likewise.
2980 * tests/du/fd-leak: Likewise.
2981 * tests/du/files0-from: Likewise.
2982 * tests/du/hard-link: Likewise.
2983 * tests/du/inaccessible-cwd: Likewise.
2984 * tests/du/long-from-unreadable: Likewise.
2985 * tests/du/long-sloop: Likewise.
2986 * tests/du/no-deref: Likewise.
2987 * tests/du/no-x: Likewise.
2988 * tests/du/restore-wd: Likewise.
2989 * tests/du/slash: Likewise.
2990 * tests/du/slink: Likewise.
2991 * tests/du/trailing-slash: Likewise.
2992 * tests/du/two-args: Likewise.
2993 * tests/expr/basic: Likewise.
2994 * tests/factor/basic: Likewise.
2995 * tests/fmt/basic: Likewise.
2996 * tests/fmt/long-line: Likewise.
2997 * tests/general/Makefile.am: Likewise.
2998 * tests/general/atgeneral.m4: Likewise.
2999 * tests/general/dd.at: Likewise.
3000 * tests/head/Makefile.am: Likewise.
3001 * tests/head/Test.pm: Likewise.
3002 * tests/install/basic-1: Likewise.
3003 * tests/install/create-leading: Likewise.
3004 * tests/install/d-slashdot: Likewise.
3005 * tests/install/trap: Likewise.
3006 * tests/join/Makefile.am: Likewise.
3007 * tests/join/Test.pm: Likewise.
3008 * tests/ln/backup-1: Likewise.
3009 * tests/ln/misc: Likewise.
3010 * tests/ln/sf-1: Likewise.
3011 * tests/ln/target-1: Likewise.
3012 * tests/ls/Makefile.am: Likewise.
3013 * tests/ls/Test.pm: Likewise.
3014 * tests/ls/dangle: Likewise.
3015 * tests/ls/dired: Likewise.
3016 * tests/ls/file-type: Likewise.
3017 * tests/ls/follow-slink: Likewise.
3018 * tests/ls/infloop: Likewise.
3019 * tests/ls/inode: Likewise.
3020 * tests/ls/m-option: Likewise.
3021 * tests/ls/no-arg: Likewise.
3022 * tests/ls/recursive: Likewise.
3023 * tests/ls/rt-1: Likewise.
3024 * tests/ls/stat-dtype: Likewise.
3025 * tests/ls/stat-failed: Likewise.
3026 * tests/ls/stat-vs-dirent: Likewise.
3027 * tests/ls/symlink-slash: Likewise.
3028 * tests/ls/time-1: Likewise.
3029 * tests/ls-2/tests: Likewise.
3030 * tests/md5sum/basic-1: Likewise.
3031 * tests/md5sum/newline-1: Likewise.
3032 * tests/misc/Makefile.am: Likewise.
3033 * tests/misc/base64: Likewise.
3034 * tests/misc/basename: Likewise.
3035 * tests/misc/cat-proc: Likewise.
3036 * tests/misc/close-stdout: Likewise.
3037 * tests/misc/csplit: Likewise.
3038 * tests/misc/date: Likewise.
3039 * tests/misc/date-sec: Likewise.
3040 * tests/misc/df: Likewise.
3041 * tests/misc/dirname: Likewise.
3042 * tests/misc/expand: Likewise.
3043 * tests/misc/false-status: Likewise.
3044 * tests/misc/fold: Likewise.
3045 * tests/misc/head-c: Likewise.
3046 * tests/misc/head-elide-tail: Likewise.
3047 * tests/misc/head-pos: Likewise.
3048 * tests/misc/mknod: Likewise.
3049 * tests/misc/nice: Likewise.
3050 * tests/misc/nl: Likewise.
3051 * tests/misc/nohup: Likewise.
3052 * tests/misc/paste-no-nl: Likewise.
3053 * tests/misc/pathchk1: Likewise.
3054 * tests/misc/printf: Likewise.
3055 * tests/misc/printf-hex: Likewise.
3056 * tests/misc/pwd-long: Likewise.
3057 * tests/misc/sha224sum: Likewise.
3058 * tests/misc/sha256sum: Likewise.
3059 * tests/misc/sha384sum: Likewise.
3060 * tests/misc/sha512sum: Likewise.
3061 * tests/misc/shuf: Likewise.
3062 * tests/misc/sort-merge: Likewise.
3063 * tests/misc/sort-rand: Likewise.
3064 * tests/misc/split-a: Likewise.
3065 * tests/misc/split-fail: Likewise.
3066 * tests/misc/split-l: Likewise.
3067 * tests/misc/stat-fmt: Likewise.
3068 * tests/misc/stat-printf: Likewise.
3069 * tests/misc/tac-continue: Likewise.
3070 * tests/misc/test-diag: Likewise.
3071 * tests/misc/tty-eof: Likewise.
3072 * tests/misc/wc-files0: Likewise.
3073 * tests/misc/wc-files0-from: Likewise.
3074 * tests/mkdir/concurrent-1: Likewise.
3075 * tests/mkdir/p-1: Likewise.
3076 * tests/mkdir/p-2: Likewise.
3077 * tests/mkdir/p-3: Likewise.
3078 * tests/mkdir/p-slashdot: Likewise.
3079 * tests/mkdir/p-thru-slink: Likewise.
3080 * tests/mkdir/parents: Likewise.
3081 * tests/mkdir/perm: Likewise.
3082 * tests/mkdir/special-1: Likewise.
3083 * tests/mkdir/t-slash: Likewise.
3084 * tests/mkdir/writable-under-readonly: Likewise.
3085 * tests/mv/Makefile.am: Likewise.
3086 * tests/mv/acl: Likewise.
3087 * tests/mv/atomic: Likewise.
3088 * tests/mv/backup-is-src: Likewise.
3089 * tests/mv/childproof: Likewise.
3090 * tests/mv/diag: Likewise.
3091 * tests/mv/dir-file: Likewise.
3092 * tests/mv/dir2dir: Likewise.
3093 * tests/mv/dup-source: Likewise.
3094 * tests/mv/force: Likewise.
3095 * tests/mv/hard-2: Likewise.
3096 * tests/mv/hard-3: Likewise.
3097 * tests/mv/hard-4: Likewise.
3098 * tests/mv/hard-link-1: Likewise.
3099 * tests/mv/i-1: Likewise.
3100 * tests/mv/i-2: Likewise.
3101 * tests/mv/i-3: Likewise.
3102 * tests/mv/i-4: Likewise.
3103 * tests/mv/i-link-no: Likewise.
3104 * tests/mv/into-self: Likewise.
3105 * tests/mv/into-self-2: Likewise.
3106 * tests/mv/into-self-3: Likewise.
3107 * tests/mv/into-self-4: Likewise.
3108 * tests/mv/leak-fd: Likewise.
3109 * tests/mv/mv-special-1: Likewise.
3110 * tests/mv/no-target-dir: Likewise.
3111 * tests/mv/part-fail: Likewise.
3112 * tests/mv/part-hardlink: Likewise.
3113 * tests/mv/part-rename: Likewise.
3114 * tests/mv/part-symlink: Likewise.
3115 * tests/mv/partition-perm: Likewise.
3116 * tests/mv/perm-1: Likewise.
3117 * tests/mv/reply-no: Likewise.
3118 * tests/mv/setup: Likewise.
3119 * tests/mv/to-symlink: Likewise.
3120 * tests/mv/trailing-slash: Likewise.
3121 * tests/mv/update: Likewise.
3122 * tests/mv/vfat: Likewise.
3123 * tests/od/od-N: Likewise.
3124 * tests/od/x8: Likewise.
3125 * tests/pr/Makefile.am: Likewise.
3126 * tests/pr/Test.pm: Likewise.
3127 * tests/readlink/can-e: Likewise.
3128 * tests/readlink/can-f: Likewise.
3129 * tests/readlink/can-m: Likewise.
3130 * tests/readlink/rl-1: Likewise.
3131 * tests/rm/Makefile.am: Likewise.
3132 * tests/rm/cycle: Likewise.
3133 * tests/rm/dangling-symlink: Likewise.
3134 * tests/rm/deep-1: Likewise.
3135 * tests/rm/dir-no-w: Likewise.
3136 * tests/rm/dir-nonrecur: Likewise.
3137 * tests/rm/dot-rel: Likewise.
3138 * tests/rm/empty-inacc: Likewise.
3139 * tests/rm/empty-name: Likewise.
3140 * tests/rm/f-1: Likewise.
3141 * tests/rm/fail-2eperm: Likewise.
3142 * tests/rm/fail-eperm: Likewise.
3143 * tests/rm/hash: Likewise.
3144 * tests/rm/i-1: Likewise.
3145 * tests/rm/i-no-r: Likewise.
3146 * tests/rm/inaccessible: Likewise.
3147 * tests/rm/interactive-always: Likewise.
3148 * tests/rm/interactive-once: Likewise.
3149 * tests/rm/ir-1: Likewise.
3150 * tests/rm/isatty: Likewise.
3151 * tests/rm/no-give-up: Likewise.
3152 * tests/rm/r-1: Likewise.
3153 * tests/rm/r-2: Likewise.
3154 * tests/rm/r-3: Likewise.
3155 * tests/rm/rm1: Likewise.
3156 * tests/rm/rm2: Likewise.
3157 * tests/rm/rm3: Likewise.
3158 * tests/rm/rm4: Likewise.
3159 * tests/rm/rm5: Likewise.
3160 * tests/rm/sunos-1: Likewise.
3161 * tests/rm/unread2: Likewise.
3162 * tests/rm/unread3: Likewise.
3163 * tests/rm/unreadable: Likewise.
3164 * tests/rmdir/fail-perm: Likewise.
3165 * tests/rmdir/ignore: Likewise.
3166 * tests/rmdir/t-slash: Likewise.
3167 * tests/seq/basic: Likewise.
3168 * tests/sha1sum/basic-1: Likewise.
3169 * tests/sha1sum/sample-vec: Likewise.
3170 * tests/shred/exact: Likewise.
3171 * tests/shred/remove: Likewise.
3172 * tests/sort/Makefile.am: Likewise.
3173 * tests/sort/Test.pm: Likewise.
3174 * tests/sort-time/Makefile: Likewise.
3175 * tests/sort-time/README: Likewise.
3176 * tests/sort-time/rand-gen: Likewise.
3177 * tests/stty/basic-1: Likewise.
3178 * tests/stty/row-col-1: Likewise.
3179 * tests/sum/basic-1: Likewise.
3180 * tests/sum/sysv: Likewise.
3181 * tests/tac/Makefile.am: Likewise.
3182 * tests/tac/Test.pm: Likewise.
3183 * tests/tail/Makefile.am: Likewise.
3184 * tests/tail/Test.pm: Likewise.
3185 * tests/tail-2/Makefile.am: Likewise.
3186 * tests/tail-2/append-only: Likewise.
3187 * tests/tail-2/assert: Likewise.
3188 * tests/tail-2/assert-2: Likewise.
3189 * tests/tail-2/big-4gb: Likewise.
3190 * tests/tail-2/fflush: Likewise.
3191 * tests/tail-2/infloop-1: Likewise.
3192 * tests/tail-2/proc-ksyms: Likewise.
3193 * tests/tail-2/start-middle: Likewise.
3194 * tests/tail-2/tail-n0f: Likewise.
3195 * tests/tee/basic: Likewise.
3196 * tests/tee/dash: Likewise.
3197 * tests/test/Makefile.am: Likewise.
3198 * tests/test/Test.pm: Likewise.
3199 * tests/touch/Makefile.am: Likewise.
3200 * tests/touch/dangling-symlink: Likewise.
3201 * tests/touch/empty-file: Likewise.
3202 * tests/touch/fail-diag: Likewise.
3203 * tests/touch/fifo: Likewise.
3204 * tests/touch/no-create-missing: Likewise.
3205 * tests/touch/no-rights: Likewise.
3206 * tests/touch/not-owner: Likewise.
3207 * tests/touch/obsolescent: Likewise.
3208 * tests/touch/read-only: Likewise.
3209 * tests/touch/relative: Likewise.
3210 * tests/tr/Makefile.am: Likewise.
3211 * tests/tr/Test.pm: Likewise.
3212 * tests/tr/failures: Likewise.
3213 * tests/tsort/basic-1: Likewise.
3214 * tests/unexpand/basic-1: Likewise.
3215 * tests/uniq/Makefile.am: Likewise.
3216 * tests/uniq/Test.pm: Likewise.
3217 * tests/wc/Makefile.am: Likewise.
3218 * tests/wc/Test.pm: Likewise.
3220 2006-08-17 Jim Meyering <jim@meyering.net>
3222 ls -CF would misalign columns in some cases.
3223 * src/ls.c (get_type_indicator): New function. extracted from...
3224 (print_type_indicator): ...here. Use it.
3225 (length_of_file_name_and_frills): Use it here, too, rather than
3226 assuming stat.st_mode is valid.
3227 Reported by Andreas Schwab, here:
3228 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7774>
3229 See the test for this above. FYI, I did ls -CF /proc and visually
3230 inspected the result.
3232 * src/copy.c (copy_internal, same_file_ok): Adjust comments not
3233 to mention the now-removed cp_options.xstat member.
3235 * Makefile.maint (patch-check): Adapt to work now that the patch
3236 modifies more than one file in src/.
3238 With this patch, permit building with Solaris cc on Solaris 7.
3239 * src/c99-to-c89.diff: Add diffs to convert more c99-isms.
3240 This integrates patches from Bruno Haible.
3242 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
3244 Fix some problems reported by Bruno Haible.
3245 * tests/chmod/setgid (abs_srcdir): Remove; not used or needed.
3246 Skip this test if "chmod g+s d" silently does nothing.
3247 * tests/ls-2/tests: Skip this test suite if we can't set up files
3248 properly for the setuid-etc test. This simplifies some of the
3249 hacks we were using to work around porting problems.
3251 2006-08-16 Jim Meyering <jim@meyering.net>
3253 * tests/cp/Makefile.am: Don't mark "acl" as XFAIL.
3254 * tests/cp/acl: Instead, skip the test if either setfacl
3256 Reported by Michael Stone.
3258 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
3260 * tests/lang-default (LC_ALL): Set to "C", so we get
3261 English-language diagnostics. Unset the other variables; it
3262 should be portable to use 'unset' for this stuff nowadays.
3263 Problem reported by Bruno Haible. Using "C" reverses the
3264 2000-10-22 change to fileutils in this area.
3266 Fix bugs when printing plurals of numbers that are not
3267 unsigned long int values.
3268 * src/system.h (select_plural): New function.
3269 * src/md5sum.c (digest_check): Use select_plural to avoid bug.
3270 * src/uptime.c (print_uptime): Likewise.
3271 * src/dd.c (print_stats): Likewise. Also, don't use ngettext to
3272 print a floating point number, as reducing to 0 or 1 doesn't work
3273 for some languages. Instead, just use "s" for seconds since it
3274 doesn't need a plural form.
3276 2006-08-16 Bruno Haible <bruno@clisp.org>
3278 Old versions of gzip would write --help output to stderr, and it
3279 would be annoying to see that in the output of every "make" command.
3280 * Makefile.maint (gzip_rsyncable): Throw away stderr output of
3283 2006-08-16 Andreas Schwab <schwab@suse.de>
3285 * tests/cp/acl: Don't use non-portable == operator for test.
3287 2006-08-16 Jim Meyering <jim@meyering.net>
3289 * tests/ls/stat-dtype: Use stat to test file system type, rather
3290 than df -T, in case /etc/mtab lies. Reported by Michael Stone.
3292 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
3294 * NEWS: Mention that df exits with nonzero status if it generates
3295 no output. This change was in 6.0 but inadvertently unmentioned.
3296 * src/df.c (file_systems_processed): Renamed from n_valid_args, and now
3298 (show_dev): Don't set it until we actually output something.
3299 Print the header if this is the first output.
3300 (main): Don't print a header, as that is now show_dev's job.
3301 * tests/misc/Makefile.am (TESTS): Add df.
3302 * tests/misc/df: New file.
3304 2006-08-15 Eric Blake <ebb9@byu.net>
3306 * src/stat.c (USE_STATVFS): Define to 0 if f_type is needed, but
3307 statvfs.f_type not present. See
3308 <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16325>.
3310 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
3312 * src/dd.c (print_stats): Don't substitute "1" for number, as this
3313 causes confusion for the Hungarian translators. Problem reported
3314 by Egmont Koblinger here:
3315 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7726
3317 2006-08-15 Jim Meyering <jim@meyering.net>
3319 * .x-sc_require_config_h: Add lib/at-func.c.
3321 * NEWS: Add a line for 6.1-cvs.
3322 * configure.ac (AC_INIT): Bump to 6.1 and add "-cvs" suffix.
3324 2006-08-15 Jim Meyering <jim@meyering.net>
3327 * NEWS: Record the 6.0 release date.
3328 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
3330 * TODO: Add an item (convert to use gnulib-tool), add to the plan
3331 for id-vs-getgrouplist, and remove a few completed items.
3333 * Makefile.maint (alpha beta major): Fix syntax error.
3335 2006-08-13 Jim Meyering <jim@meyering.net>
3337 * src/shred.c (usage): Don't indent the second line of an item.
3338 Otherwise, help2man would misformat the output.
3339 Reported by Adam Buchbinder in <https://launchpad.net/bugs/48917>.
3341 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
3343 * configure.ac (AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.
3344 Suggested by Eric Blake to avoid problems like
3345 <http://lists.gnu.org/archive/html/bug-coreutils/2006-07/msg00087.html>.
3347 2006-08-11 Jim Meyering <jim@meyering.net>
3349 * tests/ls/stat-vs-dirent: Too many (losing) systems trigger the
3350 failure that this test checks for (stat/dirent inode mismatch at
3351 a mount point), so continue to give a diagnostic about the failure,
3352 but don't actually count it as a failure.
3354 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
3356 * ABOUT-NLS: Update from gettext 0.15.
3357 * configure.ac (AM_GNU_GETTEXT_VERSION): Update from 0.13.1 to 0.15.
3359 * src/csplit.c (struct control): Remove fastmap member.
3360 (extract_regexp): Allocate fastmap separately, since otherwise
3361 it might move due to a realloc. This fixes a bug that led
3362 to a core dump on 64-bit sparc Solaris 10 (Sun Studio 10).
3364 2006-08-10 Jim Meyering <jim@meyering.net>
3366 * tests/ls/stat-dtype: If "." is tmpfs, skip this test unless uname -s
3367 reports "Linux". This avoids a failure on Solaris 10's tmpfs.
3368 Redirect both stdout and stderr of df invocations.
3370 * src/dircolors.hin: Add a TERM directive for each of the following:
3371 ansi, color-xterm, gnome, konsole, kterm, rxvt-cygwin,
3372 rxvt-cygwin-native, screen.linux, xterm-256color.
3373 Sort the TERM directives.
3374 From Mike Frysinger.
3376 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
3378 * src/dd.c (usage): Warn about oflag=append without conv=notrunc.
3379 See Debian bug 373736.
3381 * src/dircolors.hin: Add mlterm, rxvt-unicode; this fixes Debian
3384 * src/.cvsignore: Add shuf.
3386 * Makefile.maint: Remove the po-update procedure; it doesn't
3387 work with the new repository on http://www.iro.umontreal.ca/.
3388 For now I guess we'll have to fix things by hand.
3389 (do-po-update, po-update): Remove. All references removed.
3391 * src/shuf.c (next_line): New function.
3392 (read_input): Use it, to avoid relying on GCC-specific behavior
3393 with void * arithmetic. Problem reported by Bob Proulx.
3394 * Makefile.maint (my-distcheck): Compile with -Wpointer-arith
3395 to detect this sort of problem automatically in the future.
3397 2006-08-09 Jim Meyering <jim@meyering.net>
3399 * src/ls.c: Add a compile-time check to ensure that filetype
3400 and filetype_letter have the same number of elements.
3402 * tests/misc/sort-rand: Remove use of --seed=S.
3404 2006-08-08 Paul Eggert <eggert@cs.ucla.edu>
3406 Add a command 'shuf', and modify shred and sort to use the new
3407 random number generator library of 'shuf'.
3409 * AUTHORS: Add shuf.
3411 * NEWS: Likewise. Mention new --random-source option for shred
3412 and sort. Move "sort +1 -2" notice to the appropriate section,
3413 and clarify its role with respect to POSIXLY_CORRECT.
3414 * man/.cvsignore: Add shuf.1.
3415 * man/Makefile.am (dist_man_MANS): Add shuf.1.
3416 (shuf.1): New dependency.
3417 * man/shuf.x: New file.
3418 * src/Makefile.am (bin_PROGRAMS): Add shuf.
3419 (EXTRA_DIST): Remove rand-isaac.c.
3420 (shuf_LDADD): New macro.
3421 * src/rand-isaac.c: Remove, moving most of its contents to
3423 * src/shuf.c: New file.
3424 * src/shred.c: Use new random-number interface rather than rand-isaac.c.
3425 Don't include rand-isaac.c; include randint.h and randread.h instead.
3426 (RANDOM_SOURCE_OPTION): New enum.
3427 (long_opts, usage, main): New option --random-source.
3428 * src/sort.c: Likewise.
3429 * src/shred.c (struct irand_state, irand_init, irand32, irand_mod): Remove.
3430 All callers changed to use randint interface.
3431 (fillrand): Remove. All callers changed to use randread interface.
3432 (dopass): Remove dependency on ISAAC buffer size.
3433 (genpattern): Don't wipe the random state here.
3434 (randint_source): New static var.
3435 (clear_random_data): New function.
3436 (main): Allocate random source, and arrange to wipe it on exit.
3437 * src/sort.c: Include md5.h, randread.h, xmemxfrm.h.
3438 (longopts, usage, main): Remove undocumented --seed option;
3439 it's now replaced by --random-source.
3440 (rand_state, get_hash): Remove.
3441 (randread_source): New static var.
3442 (random_state, cmp_hashes, compare_random): New functions; they guarantee
3443 no collisions in the random hash function.
3444 (keycompare): Use compare_random for -R; don't fall back on comparing
3445 via memcoll, since compare_random does the right thing.
3446 * tests/misc/Makefile.am (TESTS): Add shuf.
3447 * tests/misc/shuf: New file.
3449 2006-07-29 Paul Eggert <eggert@cs.ucla.edu>
3451 * src/copy.c (set_author): Preserve the st_author field via the
3452 file descriptor dest_desc.
3454 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
3456 * NEWS: chmod now preserves setuid and setgid bits on directories
3457 if you use a numeric mode with them clear, e.g., "chmod 755 DIR".
3459 Fix test case problems if working directory is setgid,
3460 reported by Bob Proulx.
3461 * tests/cp/fail-perm: Use symbolic mode so that we clear
3462 setgid bit more reliably on directories.
3463 * tests/mkdir/special-1 (set_mode_string): Likewise.
3465 2006-07-27 Jim Meyering <jim@meyering.net>
3467 * src/chgrp.c (usage): Use correct grammar in description of the
3469 * src/chown.c (usage): Likewise.
3471 2006-07-26 Thomas Schwinge <tschwinge@gnu.org> (tiny change)
3473 * src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:
3474 Correctly access SRC_SB's element ST_AUTHOR.
3476 2006-07-26 Jim Meyering <jim@meyering.net>
3478 * tests/ls/stat-failed: Adapt to match new expected output.
3481 * src/ls.c (print_color_indicator): Test for S_IFREG first, rather
3482 than having the code test for all of the other types first.
3483 Hoist the set-uid/gid-testing code "up" into this new block.
3484 Classify any other type of file (e.g., S_TYPEISSHM, etc.) as
3485 C_ORPHAN, not as C_FILE.
3487 2006-07-26 Jim Meyering <jim@meyering.net>
3489 Checking in a change from Paul.
3491 2006-07-25 Paul Eggert <eggert@cs.ucla.edu>
3493 * src/ls.c (DT_INIT): Remove. All uses removed.
3494 (enum filetype): Use an ordinary enum rather than trying to keep
3495 the values in sync with DT_FIFO etc. That way, we don't have
3496 to make special assumptions about them. All uses changed.
3497 (whiteout): New constant member of enum filetype.
3498 (filetype_letter): New constant, for use with enum filetype.
3499 (FILETYPE_INDICATORS): New initializer list.
3500 (print_dir): Add case for DT_WHT.
3501 (gobble_file): If stat fails, don't discard information from
3502 readdir; instead, preserve it so it can be printed.
3503 (print_long_format): Fall back on readdir result if stat info
3504 is not available. Use "?" to denote each unknown mode char,
3505 instead of an overall "?", since we now know some of the mode
3507 (print_type_indicator): Now that MODE isn't necessarily
3508 useful, guard all uses.
3509 Now that two blocks in the type-checking tree can set "type = C_FILE",
3510 move the suffix-handling code out and down.
3512 2006-07-26 Jim Meyering <jim@meyering.net>
3514 Prepare for the above change.
3515 * src/ls.c [struct fileinfo] (stat_ok): Rename from stat_failed,
3516 and adjust uses. From a patch by Paul Eggert.
3518 2006-07-26 Jim Meyering <jim@meyering.net>
3520 * src/ls.c: Correct indentation/formatting in a few places.
3522 2006-07-25 Paul Eggert <eggert@cs.ucla.edu>
3524 * tests/cp/fail-perm: Use "chmod 0500" rather than "chmod 500".
3525 Problem report and fix from Bob Proulx.
3526 * NEWS: Clarify the "chmod 0500" news, and correct the vague
3527 statements about compatibility with BSD.
3529 2006-07-25 Jim Meyering <jim@meyering.net>
3531 * src/ls.c (gobble_file): When handling a stat-failed entry,
3532 print the entry name not the absolute_name -- to be consistent
3533 with the usual case.
3534 * tests/ls/stat-failed: Update accordingly.
3536 * src/ls.c: Add parens around the new uses of ?: ternary operator.
3538 * src/dircolors.hin: Mention that ORPHAN refers not just to dangling
3541 Get --dired offsets right when handling stat-failed entries.
3542 * src/ls.c (print_long_format): Be careful to increment P by the
3543 appropriate amount, even when inode_number_width and nlink_width
3545 * tests/ls/stat-failed: Test for the above.
3547 * src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the
3548 have_acl member. That would happen for a directory with both a
3549 non-stat'able entry and one with an ACL.
3551 * src/ls.c (gobble_file): Make it so failure to stat a
3552 non-command-line file provokes an exit status of 1, not 0.
3553 Say "cannot access" rather than "cannot stat".
3554 * tests/ls/stat-failed: New file/test, for the above.
3555 * tests/ls/Makefile.am (TESTS): Add stat-failed.
3556 * tests/ls-2/tests (no-a-isdir-b): Update to reflect addition
3557 of "cannot access " to diagnostic.
3559 * src/ls.c: Declare stat_failed to be "bool", not "int" everywhere.
3561 * src/ls.c [enum filetype] (command_line): Remove member. Not needed.
3562 Replace all occurrences of "type == command_line" with the
3563 equivalent, "command_line_arg".
3565 * src/ls.c: Apply the stat-failed parts of Red Hat's
3566 coreutils-selinux.patch. From Ulrich Drepper.
3567 This makes it so files not mentioned on the command line (e.g.,
3568 names read from a directory that *is* mentioned on the command
3569 line) for which stat fails are still listed. With --color,
3570 such files are colored just like ORPHANs (aka dangling symlinks).
3572 * src/df.c (n_valid_args): Declare global to be static.
3574 2006-07-24 Jim Meyering <jim@meyering.net>
3576 * tests/ls/stat-dtype: Skip this test on reiserfs, since that file
3577 system lacks d_type support.
3579 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
3581 * man/chmod.x: Update to reflect recent changes to coreutils.texi.
3583 2006-07-21 Jim Meyering <jim@meyering.net>
3585 * src/su.c (usage): Correct typo in --help output: s/commmand/command/
3586 Reported by Tim Waugh.
3587 Also remove the comment duplicating much of --help output.
3589 * src/ls.c (FILE_TYPE_INDICATOR_OPTION): Reposition this new
3590 name so the list remains alphabetized.
3592 Fix another bug: ls --indicator-style=file-type would call
3593 stat for a symlink, even though it wasn't always needed.
3594 In some cases, that unnecessary stat would cause ls to fail.
3595 * src/ls.c (gobble_file): Don't treat symlinks specially (in
3596 requiring a stat syscall). Remove the offending exclusion.
3598 * NEWS: Mention the fix.
3600 * tests/ls/stat-dtype: New file/test, for the above fix.
3601 Also exercises the new df feature, below.
3603 * src/df.c (main): Fail and don't print the headers if no
3604 file system is processed. This makes it easy to test whether
3605 a specified directory is on a file system of a given type or types.
3606 Otherwise, applications would have had to parse df's output.
3607 E.g., is "." either ext3 or reiserfs: df -t ext3 -t reiserfs .
3609 Fix a bug: ls --file-type worked like --indicator-style=slash,
3610 rather than like --indicator-style=file-type.
3611 * src/ls.c (FILE_TYPE_INDICATOR_OPTION): New enum member.
3612 (long_options): Map "file-type" to FILE_TYPE_INDICATOR_OPTION,
3614 (decode_switches): Handle new case: FILE_TYPE_INDICATOR_OPTION.
3615 * NEWS: Mention the fix.
3616 * tests/ls-2/tests (file-type): New test, for the above fix.
3618 2006-07-19 Jim Meyering <jim@meyering.net>
3620 * src/ls.c (print_dir): Give a better diagnostic for failed opendir.
3622 * Makefile.am (EXTRA_DIST): Add build-aux/vc-list-files.
3624 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
3626 * NEWS: chmod, install, and mkdir now leave setgid and setuid bits
3627 of directories alone unless you specify them explicitly.
3628 install and mkdir now implement X correctly.
3629 install now creates parent directories with mode 755, without
3630 changing their owner or group.
3631 * src/chmod.c (process_file): Adjust to mode_adjust API change.
3632 * src/install.c: Include mkancesdirs.h.
3633 (announce_mkdir, make_ancestor): New functions.
3634 (DEFAULT_MODE): New macro, specifying initial value of 'mode'.
3636 (dir_mode, dir_mode_bits): New vars.
3637 (main): Set dir modes separately from nondir, so that the X
3638 op of -m works correctly.
3639 (main): Remove cwd_errno cruft, since make_dir_parents no longer
3640 affects cwd. Adjust to new make_dir_parents API.
3641 (install_file_in_file_parents): 2nd arg is now char *, not char
3642 const *. Use mkancesdirs instead of rolling our own code.
3643 (change_attributes): Don't worry about AFS, since that kludge
3644 should not be needed any more.
3645 * src/mkdir.c (struct mkdir_options): New struct.
3646 (announce_mkdir, make_ancestor): New functions.
3647 (main): Use them. Adjust to mode_adjust API change. Stick with
3648 umask 0. Use make_dir_parents for all the work.
3649 * src/mkfifo.c (main): Adjust to new mode_adjust API.
3650 * src/mknod.c (main): Likewise.
3651 * tests/chmod/setgid: Do the setgid test instead of bailing.
3652 * tests/mkdir/p-3: Remove re_protect case that no longer applies.
3653 GNU chmod now behaves like other versions of chmod.
3654 * tests/mkdir/perm: Add a test for the X bug.
3656 2006-07-14 Paul Eggert <eggert@cs.ucla.edu>
3658 * src/base64.c (do_decode): Output to parameter OUT, not to stdout.
3659 This doesn't fix any bugs, since OUT always equals stdout, but it
3660 makes the code easier to understand.
3662 2006-07-14 Jim Meyering <jim@meyering.net>
3664 * Makefile.maint (CVS_LIST): Use new file, build-aux/vc-list-files,
3665 rather than open-coding it. Now supports mercurial, too.
3666 * .hgignore: New file.
3667 * Makefile.am (EXTRA_DIST): Add .hgignore, which ignores nearly
3668 all generated files, including ones like configure and po/*.po
3669 that are currently version-controlled in cvs.
3671 * Makefile.am (EXTRA_DIST): Add a few more .??* files.
3672 They've been in CVS, just haven't been distributed before this.
3673 Distribute ChangeLog-2005, too.
3674 (MAINTAINERCLEANFILES): Add THANKS-to-translators.
3676 2006-07-11 Paul Eggert <eggert@cs.ucla.edu>
3678 * src/system.h: Assume <dirent.h> exists, since gnulib assumes
3681 2006-07-09 Jim Meyering <jim@meyering.net>
3683 * tests/mv/dir2dir: Adjust so failing with ENOTEMPTY is ok, too.
3684 That happens with Linux/tmpfs.
3685 * tests/mv/Makefile.am (TESTS): Add dir2dir.
3687 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
3689 Adjust to recent updates from gnulib.
3690 * src/dd.c (apply_translations): Use toupper rather than
3691 islower followed by toupper; it's simpler and typically
3692 faster now that we assume at least C89 semantics. Similarly
3694 * src/sort.c (inittables): Likewise.
3695 * src/expand.c (expand): Don't assume that isprint etc. return
3696 booleans (needed for pre-C99 hosts).
3697 * src/fmt.c (check_punctuation): Likewise.
3698 * src/ptx.c (initialize_regex, fix_output_parameters): Likewise.
3699 * src/tr.c (is_char_class_member): Likewise.
3700 * src/unexpand.c (unexpand): Likewise.
3701 * src/join.c (is_blank): Remove; no longer needed. All uses
3702 replaced by isblank (to_uchar (...)).
3703 * src/pinky.c (create_fullname): Don't assume char is unsigned.
3704 * src/printf.c (print_esc): Likewise.
3705 * src/ptx.c (SKIP_NON_WHITE, SKIP_WHITE, SKIP_WHITE_BACKWARDS):
3706 (copy_unescaped_string): Likewise.
3707 * src/stat.c (print_it): Likewise.
3708 * src/system.h (_D_EXACT_NAMELEN): Renamed from NLENGTH, for
3709 convenience on GNU systems. All uses changed. Don't bother
3710 looking for any dirent.h substitute other than ndir.h.
3711 (D_INO): Remove unnecessary parentheses.
3712 (IN_CTYPE_DOMAIN, ISGRAPH, ISPRINT, ISALNUM, ISALPHA):
3713 (ISCNTRL, ISLOWER, ISPUNCT, ISSPACE, ISUPPER, ISXDIGIT):
3714 (ISDIGIT_LOCALE, TOLOWER, TOUPPER): Remove. All uses changed
3715 to ctype.h equivalents.
3716 (isblank): Renamed from ISBLANK. Check for HAVE_DECL_ISBLANK too.
3719 2006-07-08 Jim Meyering <jim@meyering.net>
3721 * tests/mv/dir2dir: New file, test for 2006-07-05 fix in copy.c.
3723 * Makefile.maint (sc_the_the): New rule.
3725 * src/dd.c (skip): Remove one of two adjacent "the"s in a comment.
3726 * tests/Coreutils.pm (run_tests): Remove one of two adjacent "then"s
3729 2006-07-07 Jim Meyering <jim@meyering.net>
3731 * NEWS: Mention that mv can now remove an empty destination directory,
3732 and give an example. Prompted by a report from Florent Bayle.
3734 2006-07-05 Jim Meyering <jim@meyering.net>
3736 * src/ls.c (usage): Correct the description of -G: it is useful
3737 only in a long listing. Reported by Martin Pool in
3738 <https://launchpad.net/distros/ubuntu/+source/coreutils/+bug/51653>.
3740 * man/chmod.x: Correct the description of the sticky bit. Reported
3741 by Chris Moore via Ian Jackson in <http://bugs.debian.org/376745>.
3743 * src/copy.c (copy_internal): Don't work around old NFS clients like
3744 SunOS-4.1.4 and Irix 5.3 that set errno to values like EIO and
3745 ENOTEMPTY upon failed rename. Otherwise, we risk misinterpreting
3746 a banal failure as a recursive move-into-self failure.
3747 Reported by Florent Bayle in <http://bugs.debian.org/376749>.
3749 * src/c99-to-c89.diff: Regenerate, to remove fuzz.
3751 2006-07-03 Jim Meyering <jim@meyering.net>
3753 Plug another unusual leak.
3754 (AD_mark_helper): Free malloc'd filename if hash_insert says
3755 that string is already in the hash table.
3757 The dev/inode of the topmost directory in each hierarchy were not
3759 * src/remove.c (remove_cwd_entries): Don't call cycle_check here.
3760 (AD_push): Call it from here instead.
3762 Fix two small leaks.
3763 * src/remove.c (AD_stack_clear): New function.
3765 (AD_pop_and_chdir): Free *prev_dir just before longjmp.
3767 * tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT):
3768 Add $VG_PATH_PREFIX as a prefix to $PATH
3770 * tests/envvar-check (vars): Add CDPATH and POSIXLY_CORRECT.
3771 * tests/Makefile.am (evar-check): Remove rule.
3772 (EXTRA_DIST): Remove .env-warn.
3773 * tests/.env-warn: Remove file. No longer used.
3774 Suggestion from Eric Blake.
3776 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
3778 * src/system.h: Include <stdint.h> unconditionally, since we
3779 now assume the stdint module.
3781 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
3783 * NEWS: With no operand, 'tail -f' now silently ignores the '-f'
3784 only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
3785 * src/tail.c (main): Implement this.
3786 * tests/tail/Test.pm (f-pipe-1): Renamed from f-1.
3787 (test_vector): Set POSIXLY_CORRECT for the f-pipe-* tests.
3789 2006-07-01 Jim Meyering <jim@meyering.net>
3791 * src/ln.c (do_link): Use new, shorter URL, for ag-review link.
3793 * .x-sc_require_config_h: Add ^lib/xstrtold\.c$, so make distcheck
3796 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
3798 * NEWS: seq now uses long double internally rather than double.
3799 It now defaults to a minimal fixed point format if possible.
3800 It lets you use %a, %A, %E, %F, %G.
3801 * src/Makefile.am (seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB).
3802 * src/seq.c: Don't include <math.h> or <xstrtol.h>; no longer needed.
3803 (isfinite) [!defined isfinite]: New macro.
3804 (separator, terminator): Now points to const.
3805 (first, step, last): Remove.
3806 (usage): Update to match new behavior.
3807 (struct operand, operand): New type.
3808 (scan_arg): Renamed from scan_double_arg, since we no longer use double.
3810 Compute and return a value of type operand, not double.
3811 (long_double_format): Renamed from valid_format, and now returns a
3812 new format with an "L" added if needed, if the original format was
3813 valid. Allow %a, %A, %E, %F, and %G formats.
3814 (print_numbers): Take numeric values as args rather than from globals.
3815 Print long double, not double.
3816 (get_width_format): Remove.
3817 (get_default_format): New function.
3818 (main): Implement new way of calculating default format.
3819 Don't worry about locale's representation of the decimal point, since
3820 the arguments are always processed in the C locale.
3821 * tests/seq/basic (neg-2): Adjust to new default format.
3822 (eq-wid-1, eq-wid-2): Resurrect these tests, since the new
3823 implementation should do the right thing.
3825 2006-06-30 Jim Meyering <jim@meyering.net>
3827 * tests/stty/basic-1: Work around an intermittent test failure
3828 on HP-UX 11.11. Report and analysis from Bob Proulx.
3829 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7475
3831 2006-06-28 Paul Eggert <eggert@cs.ucla.edu>
3833 * NEWS: Support obsolete usages like "sort +1 -2" even when
3834 conforming to POSIX 1003.1-2001, since this is a pure extension to
3835 POSIX. Problem reported by Christian in:
3836 http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00220.html
3837 * src/sort.c (main): Implement this.
3839 * src/system.h (CLOSEDIR): Remove. All uses changed to closedir.
3840 Autoconf 2.60 says this stuff was obsolete.
3842 2006-06-28 Jim Meyering <jim@meyering.net>
3844 * src/c99-to-c89.diff: Regenerate, to remove fuzz.
3846 2006-06-28 Bob Proulx <bob@proulx.com> (tiny change)
3848 * tests/mv/i-link-no: Work around HP-UX /bin/sh tracing problem
3849 (set -x when VERBOSE=yes) when stderr is redirected before stdout
3850 causing shell tracing of the stdout redirection to be written to
3851 the stderr file. Avoid problem and test failure on HP-UX by
3852 redirecting stderr last.
3853 * tests/dd/unblock-sync: Order shell file redirections for
3854 stderr and stdout in the common style.
3855 tests/acl: Likewise.
3857 2006-06-27 Jim Meyering <jim@meyering.net>
3859 * tests/misc/cat-proc: Try to avoid any spurious numeric
3860 differences in frequently-changing /proc/cpuinfo.
3861 Reported by Nelson Beebe.
3863 2006-06-26 Jim Meyering <jim@meyering.net>
3865 Attempt rmdir (actually, unlinkat-with-AT_REMOVEDIR) upon any
3866 fd_to_subdirp failure, not just when errno == EACCES.
3867 * src/remove.c (remove_dir): Use unlinkat-with-AT_REMOVEDIR, not
3868 rmdir, here, even though rmdir may happen to be adequate.
3870 * NEWS: rm no longer fails to remove an empty, unreadable directory
3871 * src/remove.c (remove_cwd_entries): If we can't open a directory,
3872 and the failure is not being ignored, try to remove the directory
3873 with rmdir (aka unlinkat-with-AT_REMOVEDIR), in case it's empty.
3874 Problem report and test case from Paul Eggert in
3875 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7425>.
3877 * tests/rm/empty-inacc: New test, for the above.
3879 Avoid a segfault for wc --files0=- < /dev/null.
3880 * src/wc.c (compute_number_width): Return right away if nfiles == 0.
3882 2006-06-25 Jim Meyering <jim@meyering.net>
3884 * NEWS: wc accepts a new option --files0-from=FILE, where FILE
3885 contains a list of NUL-separated file names.
3887 * src/wc.c: Include "readtokens.h".
3888 (usage): Describe the new option, and adjust the `Usage':
3889 with this option, no FILE may be specified on the command line.
3890 (main): Handle the new option.
3891 * tests/misc/wc-files0: New tests, for the above.
3892 * tests/misc/wc-files0-from: Likewise.
3893 * tests/misc/Makefile.am (TESTS): Add wc-files0.
3895 2006-06-24 Jim Meyering <jim@meyering.net>
3897 * src/md5sum.c (DIGEST_BUFFER): Remove now-unused definitions.
3899 2006-06-22 Jim Meyering <jim@meyering.net>
3901 * src/tee.c (tee_files): Rename from tee, to avoid conflict with
3902 the function in glibc's <fcntl.h>. Reported by Andreas Schwab.
3904 2006-06-19 Jim Meyering <jim@meyering.net>
3906 * Makefile.cfg (local-checks-to-skip): Add changelog-check,
3907 so this check is not run as part of "make distcheck".
3909 2006-06-18 Bob Proulx <bob@proulx.com> (tiny change)
3911 * tests/misc/pwd-long: Fix typo (s/neq/ne/) in previous change.
3913 2006-06-18 Jim Meyering <jim@meyering.net>
3915 * tests/misc/pwd-long: Make error output a little clearer.
3917 2006-06-17 Jim Meyering <jim@meyering.net>
3919 * tests/rm/inaccessible: Skip this test on systems without openat
3920 support. Reported by Bob Proulx.
3922 2006-06-15 Bob Proulx <bob@proulx.com> (tiny change)
3924 * tests/misc/mknod: Improve permission checks to handle
3925 running mkdir test in set-gid directories.
3927 2006-06-14 Jim Meyering <jim@meyering.net>
3929 * tests/du/basic: Revamp not to hard-code file system block sizes.
3931 2006-06-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3933 * tests/du/Makefile.am (TESTS_ENVIRONMENT): Pass $(PERL), for
3936 2006-06-11 Jim Meyering <jim@meyering.net>
3938 * .gitignore: New file.
3939 * Makefile.am (EXTRA_DIST): Add .gitignore.
3941 Setting TIME_STYLE=long-iso in the environment would make the
3942 cp/same-file test fail.
3943 * tests/envvar-check (vars): Add TIME_STYLE to the list.
3944 * tests/cp/same-file: Revert last change.
3945 Source the envvar-check script, to ensure that TIME_STYLE
3946 settings don't affect these tests.
3948 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
3950 * tests/cp/same-file: Execute 'ls' in the C locale, so that it
3951 uses POSIX time stamp formats. Problem reported by John Nixon in
3952 <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00062.html>.
3954 2006-06-10 Jim Meyering <jim@meyering.net>
3956 * NEWS: Mention the AIX-strndup-bug vs. dircolors workaround.
3958 Require a "Version N.M" line at the top of the ChangeLog
3959 file only when making the actual release, not when running
3961 * Makefile.maint (maintainer-distcheck): Don't depend on
3963 (alpha beta major): Depend on it here, instead.
3965 2006-06-08 Jim Meyering <jim@meyering.net>
3967 Ensure that cat works with any of the options, -A -v -e -E -T,
3968 when applied to files in /proc and /sys, even when the FIONREAD
3969 ioctl produces nonsensical results. Before this change, cat would
3970 produce no output (or truncated output), for some linux kernels.
3972 * src/cat.c (write_pending): New function, factored out of cat.
3973 (cat): Also interpret a negative ioctl/FIONREAD count as indicating
3974 that there are bytes to read. Some versions of linux-2.6.16 do that.
3975 Write any pending output before returning.
3976 Reported by Dan Jacobson in <http://bugs.debian.org/370583>.
3977 * NEWS: Mention this bug fix.
3978 * tests/misc/cat-proc: New file. Test for the above.
3979 * tests/misc/Makefile.am (TESTS): Add cat-proc.
3981 2006-06-07 Paul Eggert <eggert@cs.ucla.edu>
3983 * src/expr.c (eval4): Detect overflow properly when multiplying
3986 2006-06-06 Paul Eggert <eggert@cs.ucla.edu>
3988 * NEWS: The 'expr' command now detects and reports integer overflow.
3989 (It would be better to use extended precision instead, but that
3990 would be more work.)
3991 * src/expr.c (integer_overflow): New function.
3992 (eval4, eval3): Check for integer overflow.
3994 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
3996 Fix problems when building with Solaris/SVR4/etc. make, which uses a
3997 different and somewhat bogus implementation of VPATH. In the
3998 directory tests/misc, rename tests whose names might appear in the
3999 Automake-generated rules. For example, we can't use a test named
4000 'test', since Automake generates a rule that contains the text
4001 "if test -f ./$$tst; ...", and this might expand to something like
4002 "if ../../../coreutils-6.0/tests/misc/test -f ./$$test; ...",
4003 which executes the 'test' script rather than the 'test' command.
4004 * tests/misc/false-status: Renamed from tests/misc/false.
4005 * tests/misc/pwd-long: Renamed from tests/misc/pwd.
4006 * tests/misc/sort-merge: Renamed from tests/misc/sort.
4007 ($prog): Set to 'sort' rather than to $PROG.
4008 * tests/misc/test-diag: Renamed from tests/misc/test.
4009 * tests/misc/Makefile.am (PROG): Take the basename of $$tst,
4010 in case Solaris make has prepended the directory.
4011 (TESTS): Adjust to above renamings.
4012 * tests/misc/expand: Don't assign to PROG; no longer needed
4013 now that Makefile.am sets PROG to the basename.
4014 * tests/misc/fold: Likewise.
4016 2006-06-03 Jim Meyering <jim@meyering.net>
4018 Make `cp --link --no-dereference' work also on systems where the
4019 link system call cannot create a hard link to a symbolic link.
4020 * src/copy.c (copy_internal) [LINK_FOLLOWS_SYMLINKS]: Don't use
4021 the link syscall on a symlink when it would do the wrong thing.
4022 Based on the patch by Aurelien Jarno: <http://bugs.debian.org/329451>
4023 * tests/cp/link-no-deref: New file/test for the above.
4024 * tests/cp/Makefile.am (TESTS): Add link-no-deref.
4025 * NEWS: Mention the change (doesn't affect Linux).
4027 2006-06-01 Paul Eggert <eggert@cs.ucla.edu>
4029 Fix some porting problems in the test cases reported by
4030 Ralf Wildenhues for HP-UX 11.23 in:
4031 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00238.html
4032 * tests/help-version: Don't assume that \< \> works in sed.
4033 * tests/misc/close-stdout: Don't assume that >&- works.
4034 Add a /dev/full test.
4035 * tests/touch/no-create-missing: Don't assume that >&- works.
4037 2006-05-30 Jim Meyering <jim@meyering.net>
4039 * src/ls.c (usage): Add `v' to the list of sorting-related options.
4042 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4044 * tests/cp/fail-perm: source lang-default.
4045 * tests/rm/inaccessible: Likewise.
4047 2006-05-28 Jim Meyering <jim@meyering.net>
4049 * tests/rm/inaccessible: AIX 4.3.3 gives a different diagnostic.
4050 Recognize it, too. Reported by Ralf Wildenhues, in
4051 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html
4053 2006-05-27 Jim Meyering <jim@meyering.net>
4055 * src/chgrp.c: Support new options: --preserve-root and
4056 --no-preserve-root. Somehow this program was skipped when those
4057 options were added to chown, chmod, and rm. Reported by
4058 vaqflabuopac@spammotel.com in <http://bugs.debian.org/365656>.
4059 * NEWS: Mention this.
4061 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
4063 * NEWS: Remove mention of --seed. We'll replace it with something
4064 better, and don't want to indicate that it is supported.
4065 * src/sort.c (usage): Likewise.
4067 2006-05-20 Jim Meyering <jim@meyering.net>
4069 * src/chmod.c (main): Use FTS_PHYSICAL here, too.
4071 * src/du.c (main): Rename local, s/symlink_deref_bit/symlink_deref_bits/
4072 and arrange for -D to set fts' FTS_PHYSICAL bit as well as
4073 FTS_COMFOLLOW. Spotted by Justin Pryzby.
4075 * gnupload: Merge changes from automake, retaining the ""--to...
4076 kludge to placate overzealous `make distcheck' check.
4078 2006-05-19 Jim Meyering <jim@meyering.net>
4080 * src/du.c (main): Don't let -D, -L, or -P turn off the internal
4081 FTS_TIGHT_CYCLE_CHECK directory traversal option.
4082 Reported by Justin Pryzby in http://bugs.debian.org/367691
4084 2006-05-15 Jim Meyering <jim@meyering.net>
4086 * src/cp.c (usage): Correct description of -a: s/-dpR/-dpPR/.
4087 From Tomas Pospisek.
4089 2006-05-13 Jim Meyering <jim@meyering.net>
4091 * tests/mv/no-target-dir: Test two more cases.
4093 2006-05-11 Jim Meyering <jim@meyering.net>
4095 mv -T DIR EMPTY_DIR no longer fails unconditionally
4096 * src/copy.c (copy_internal): Don't manually prohibit a move where
4097 the destination is an existing directory. Sometimes doing that is
4098 valid. Let the rename system call enforce the rules. That is
4099 allowed only when the source is a directory and the destination
4100 directory (to be replaced) is empty. Reported by Eric Blake.
4101 * tests/mv/no-target-dir: New file/test for this.
4102 * tests/mv/Makefile.am (TESTS): Add no-target-dir.
4103 * NEWS: Mention this.
4105 * tests/mv/atomic: New file/test for yesterday's fix.
4106 * tests/mv/Makefile.am (TESTS): Add atomic.
4108 * tests/du/long-sloop: Avoid harmless `ambiguous redirect' diagnostic.
4110 2006-05-10 Jim Meyering <jim@meyering.net>
4112 * src/copy.c (copy_internal): Don't explicitly unlink the destination
4113 when moving a symlink into the place of an existing non-directory.
4114 Reported by Joshua Hudson.
4115 * NEWS: mention this.
4117 2006-05-07 Jim Meyering <jim@meyering.net>
4119 * Makefile.maint (patch-check): Fail if patch generates any output,
4120 even merely for changed offsets.
4122 * src/c99-to-c89.diff: Adjust to reflect new offsets.
4124 * NEWS: Mention changes affecting df, pwd, shred.
4126 2006-05-06 Jim Meyering <jim@meyering.net>
4128 * tests/ls/stat-vs-dirent: New test, to detect the bogus file
4129 system condition where dirent.d_ino != stat.st_ino.
4130 * tests/ls/Makefile.am (TESTS): Add stat-vs-dirent.
4132 2006-05-06 Eric Blake <ebb9@byu.net>
4134 * tests/ls/inode: Expand to test inode from readdir case.
4135 * tests/ls/follow-slink: Expand to test broken links encountered
4136 implicitly, favoring Solaris 9 and OpenBSD 3.4 behavior.
4138 2006-05-06 Eric Blake <ebb9@byu.net>
4140 * tests/mv/leak-fd: Work even on case-insensitive file system.
4142 2006-05-04 Jim Meyering <jim@meyering.net>
4144 * NEWS: Mention the 2006-03-19 pwd-related change that makes
4145 lib/getcwd.c work around inconsistent file system dirent.d_ino data.
4147 2006-05-03 Jim Meyering <jim@meyering.net>
4149 * src/ls.c (DEFINE_SORT_FUNCTIONS, LIST_SORTFUNCTION_VARIANTS):
4150 Use better macro parameter names: s/basename/key_name/,
4151 s/basefunc/key_cmp_func. Fix typo in comment.
4153 2006-04-29 Eric Blake <ebb9@byu.net>
4155 * src/ls.c (main): On systems with d_type, directories_first only
4156 implies format_needs_type, not format_needs_stat.
4158 2006-05-03 Jim Meyering <jim@meyering.net>
4160 * src/ls.c (xstrcoll_df_version, rev_xstrcoll_df_version): Add space
4161 after comma in arg list, from Eric Blake.
4163 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
4165 * tests/misc/date (relative-3): New test, derived from a bug
4166 report by John Thomas McDole.
4168 2006-04-23 Francesco Montorsi <fr_m@hotmail.com>
4170 New option for ls: --group-directories-first.
4171 It makes ls list directories before files.
4172 * NEWS [New features]: Mention it.
4173 * src/ls.c (sort_type): Rearrange to use as an array index when
4174 choosing sort function; added new sort_numtypes member for
4176 (time_type): Add new time_numtypes member for compile-time check.
4177 (directories_first): New global variable.
4178 (GROUP_DIRECTORIES_FIRST_OPTION): New enum.
4179 (long_options): Add --directories-first.
4180 (main): Support new option.
4181 (is_directory): New function.
4182 (extract_dirs_from_files): Use it.
4183 (DIRFIRST_CHECK, DEFINE_SORT_FUNCTIONS)
4184 (LIST_SORTFUNCTION_VARIANTS): New macros.
4185 (sort_functions): New global variable.
4186 (sort_files): Use it.
4187 (usage): Document new option.
4189 2006-04-18 Paul Eggert <eggert@cs.ucla.edu>
4191 * src/shred.c (fillrand): The assertion was way too weak, due to
4192 what must be a typo. Strengthen it to its intended value.
4193 (dopass): Don't use alloca; it's not worth the aggravation here,
4194 since it's used only to get a page-aligned buffer, and page
4195 alignment doesn't buy us much here. I'm suspicious that alloca
4196 causes problems on some hosts, due to a recent bug report by Adam
4197 Waltman: http://bugs.gentoo.org/130246.
4199 2006-04-18 Jim Meyering <jim@meyering.net>
4201 * tests/misc/tty-eof: Add new programs, base64, sha224sum, sha256sum,
4202 sha384sum, sha512sum.
4204 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
4206 * src/chmod.c (describe_change): Adjust to filemode changes.
4207 * src/ls.c (HAVE_ST_DM_MODE): Remove; moved to ../lib/filemode.c.
4208 (print_long_format): Use (new) filemodestring rather than
4209 (old) mode_string, so that we get more file types right, at least
4210 in theory. Adjust to filemode changes.
4211 * src/stat.c (human_access): Likewise.
4213 2006-04-18 Jim Meyering <jim@meyering.net>
4215 * src/ptx.c (main) [DEFAULT_IGNORE_FILE]: Remove code to use a default
4216 ignore file. This has never been enabled. Reported by Eric Blake.
4218 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
4220 * src/ln.c (linkfunc): Remove. This method ran into a compiler/linker
4221 bug in Interix. Just call symlink or link directly. All uses changed.
4222 * src/setuidgid.c (main) [! HAVE_SETGROUPS]: Don't call setgroups.
4223 * src/stat.c (USE_STATVFS): New macro.
4224 Include <sys/statvfs.h> and use statvfs only if USE_STATVFS.
4225 (NAMEMAX_FORMAT): define a bit more clearly, now that the
4226 statvfs-using code is a bit more regular.
4227 * src/system.h (sync) [!HAVE_SYNC]: New macro.
4229 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
4231 * NEWS: csplit, nl, expr now conform to POSIX better, and are
4232 more-compatible with traditional Unix, with respect to regular
4234 * src/csplit.c (extract_regexp): Set re_syntax_options to a
4235 value that is compatible with what POSIX requires.
4236 * src/nl.c (build_type_arg): Likewise.
4237 * src/expr.c (docolon): Likewise. Also, don't let anchors match
4238 newline; this fixes an incompatibility with tradition and with POSIX.
4239 Don't warn about leading ^. POSIX says it is unspecified whether
4240 ^ is a special character, which means that implementations can
4241 either treat it as special or not, but either way a warning is not
4242 allowed (unless the regexp is otherwise invalid). Instead, anchor
4243 the expression but treat ^ as an anchor; this is the traditional
4244 behavior (e.g., Solaris 10).
4245 (eval4, eval3, eval2): Treat non-numeric args, division by zero,
4246 and the like as invalid expressions (exit status 2), not as
4247 failure of 'expr' (exit status 3). This is more consistent with
4248 how Solaris behaves.
4249 * tests/expr/basic (fail-a): Adjust exit status to match new expr
4250 behavior, for status 2 versus 3.
4252 (bre1, bre2, bre3, bre4, bre5, bre6, bre7, bre8, bre9, bre10):
4253 (bre11, bre12, bre13, bre14, bre15, bre16, bre17, bre18, bre19, bre20):
4254 (bre21, bre22, bre23, bre24, bre25, bre26, bre27, bre28, bre29, bre30):
4255 (bre31, bre32, bre33, bre34, bre35, bre36, bre37, bre38, bre39, bre40):
4256 (bre41, bre42, bre43, bre44, bre45, bre46, bre47, bre48, bre49, bre50):
4257 (bre51, bre52, bre53, bre54, bre55, bre56, bre57, bre58, bre59, bre60):
4258 (bre61, bre62): New tests.
4259 * tests/misc/csplit: Use \{...\} in test RE, to test that we're
4260 conforming to POSIX.
4263 * tests/du/long-from-unreachable: Solaris 8 sh doesn't understand
4264 "if !". Do not assume that 'sed' can handle long, newline-free input.
4265 * tests/du/long-sloop: Likewise. Evaluate expr once, not $n times.
4267 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
4269 Adjust to new regex.h API (with new fastmap type), and clean
4270 up the regex storage allocation a bit.
4272 * src/csplit.c (struct control): Put re_compiled member at the
4273 end, since it's large. Change regexpr member from char * to bool;
4274 all uses changed. Add new member fastmap.
4275 (extract_regexp): regexp arg is now char const *, not char *.
4276 Don't bother duplicating the regular expression; it's not needed.
4277 Set fastmap from new fastmap member. Don't bother allocating
4278 a buffer, as the regexp code does a better job than we do.
4279 * src/expr.c (docolon): Allocate and use a fastmap.
4280 Don't bother allocating a buffer.
4281 * src/nl.c (body_fastmap, header_fastmap, footer_fastmap):
4283 (build_type_arg): New fastmap arg. All uses changed.
4284 Don't bother allocating a buffer, but set a fastmap.
4285 * src/ptx.c (context_regex_string, word_regex_string): Remove.
4286 (context_regex, word_regex): New vars, replacing the above.
4288 (struct regex_data): New type.
4289 (compile_regex): Renamed from alloc_and_compile_regex, since
4290 we no longer allocate storage. Arg is now a struct regex_data *,
4291 not a const char *. All uses changed. Don't allocate the fastmap;
4292 instead, take it from the caller. Don't convert size_t to int,
4293 to avoid arithmetic overflow problems. Don't bother freeing
4294 storage afterwards; it's not worth the aggravation.
4295 * src/tac.c (compiled_separator_fastmap): New ver.
4296 (main): Use it. Don't bother allocating a buffer.
4298 2006-03-30 Jim Meyering <jim@meyering.net>
4300 * src/dd.c (iwrite): Remove assignment without effect.
4301 Reported by Felix Rauch Valenti.
4303 2006-03-22 Eric Blake <ebb9@byu.net>
4305 * src/ptx.c (usage): Remove mention of --copyright/-C.
4306 (main): Alias --copyright to --version plus a deprecation warning.
4307 * NEWS: Mention this.
4309 2006-03-27 Jim Meyering <jim@meyering.net>
4311 * src/Makefile.am (uptime_LDADD): Add $(POW_LIB), for uptime's
4312 use of strtod. Tiny patch from Nickolai Zeldovich.
4314 2006-03-11 Eric Blake <ebb9@byu.net>
4316 * tests/misc/dirname: New file.
4317 * tests/basename/Makefile.am: Delete.
4318 * tests/basename/basic: Move to...
4319 * tests/misc/basename: ... this new file. Add some tests,
4320 including fixed behavior for //.
4321 * tests/misc/Makefile.am (TESTS): Sort. Add basename, dirname.
4322 * tests/Makefile.am (SUBDIRS): Remove basename.
4323 * configure.ac (AC_CONFIG_FILES): Remove tests/basename.
4325 Improvements to dirname/basename handling on platforms like
4326 cygwin with distinct // and with drive letters.
4327 * NEWS: Document new behavior.
4328 * src/basename.c (main): Don't strip suffix from file system
4330 * src/cp.c (target_directory_operand): Use new last_component.
4331 (ASSIGN_BASENAME_STRDUPA): Likewise. Reduce time spent
4332 traversing the string.
4333 * src/dircolors.c (guess_shell_syntax): Use new last_component.
4334 * src/install.c (target_directory_operand, install_file_in_dir):
4336 * src/ln.c (target_directory_operand, main): Likewise.
4337 * src/ls.c (basename_is_dot_or_dotdot): Likewise.
4338 * src/mv.c (target_directory_operand, movefile): Likewise.
4339 * src/remove.c (rm_1): Likewise.
4340 * src/shred.c (wipename): Likewise.
4341 * src/split.c (next_file_name): Likewise.
4342 * src/su.c (log_su, run_shell): Likewise.
4344 2006-03-23 Paul Eggert <eggert@cs.ucla.edu>
4346 * NEWS: nohup diagnostics are now more precise, and nohup now
4347 redirects stderr to nohup.out if stdout is closed and stderr is a tty.
4348 * src/nohup.c (main): Implement this.
4349 * tests/misc/nohup: Test the new behavior.
4351 2006-03-12 Jim Meyering <jim@meyering.net>
4353 * src/copy.c (set_author): Rename function, from preserve_author.
4355 * src/remove.c (AD_pop_and_chdir): Use new macro,
4356 CYCLE_CHECK_REFLECT_CHDIR_UP, rather than open-coding it.
4358 * src/system.h (SAME_INODE): Remove definition.
4359 Include "same-inode.h", instead.
4361 2006-03-11 Eric Blake <ebb9@byu.net>
4363 * src/pwd.c (robust_getcwd): Prepend only one slash, not two.
4365 2006-03-10 Jim Meyering <jim@meyering.net>
4367 Fix a bug whereby a user with write access to a directory being removed
4368 could cause the removal of that directory to fail with an erroneous
4369 diagnostic about a directory cycle. Reported by Vineet Chadha.
4371 * NEWS: Mention this.
4372 * src/remove.c (AD_pop_and_chdir): If the directory we're about to
4373 leave (and try to rmdir) is the one whose dev_ino is being used to
4374 detect a cycle, reset cycle_check_state.dev_ino to that of the parent.
4376 2006-03-08 Paul Eggert <eggert@cs.ucla.edu>
4378 * NEWS: Document dd's new 'directory' and 'nolinks' flags.
4379 * src/dd.c (set_fd_flags): Handle file-creation flags on file
4380 descriptors, rather than ignoring them.
4381 * tests/dd/misc: Add test cases for append, nofollow, directory,
4382 and nolinks flags. Simplify redirection to /dev/null in some cases.
4384 * tests/dd/misc: iflags->iflag. This fixes a typo that meant the
4385 noatime test never tested anything.
4387 2006-03-05 Paul Eggert <eggert@cs.ucla.edu>
4389 * src/dd.c (flags, usage): New flags directory, nolinks.
4390 * src/system.h (O_NOLINKS): Define to 0 if not already defined.
4392 * src/ls.c (usage): Mention that -f disables --color.
4393 Problem reported by Niels Möller.
4395 2006-03-03 Justin Pryzby <pryzbyj@justinpryzby.com>
4397 * man/*.x: Add references to syscalls from utilities of the same name.
4399 2006-03-05 Jim Meyering <jim@meyering.net>
4401 * tests/help-version: Set SHELL, if not already set, in order to
4402 avoid failure when `make check' is run through debuild; dircolors
4403 would fail due to lack of $SHELL. Reported by Sven Joachim.
4405 Make `base64 --wrap=N' work for N=0, and for N larger than SIZE_MAX.
4406 * src/base64.c (wrap_write, do_encode, main): Change type of
4407 parameters and locals, wrap_column, form size_t to uintmax_t.
4408 (main): Adjust to use xstrtoumax, accordingly.
4410 2006-03-03 Jim Meyering <jim@meyering.net>
4412 Don't fail when run from an environment with SHELL not a Bourne
4413 shell, e.g. `env SHELL=/bin/csh make check' would fail this test.
4414 * tests/dircolors/simple: Invoke each non-failing test with -b.
4415 Reported by Michael Stone.
4417 2006-02-27 Jim Meyering <jim@meyering.net>
4419 * tests/misc/base64: Derive --decode-using tests from the
4422 * tests/misc/base64: Factor out a long constant string.
4423 Split lines to stay within 80 columns.
4425 * tests/misc/Makefile.am (TESTS): Add base64.
4426 * tests/misc/base64: Test base64. From Simon Josefsson.
4428 * src/base64.c (do_decode): Use correct type for parameter,
4429 ignore_garbage: s/size_t/bool/.
4431 * src/base64.c: Don't include .h files already included by system.h:
4432 <string.h>, <stdlib.h>, <stdbool.h>, <limits.h>, <errno.h>.
4433 Include "system.h" before the other lib/*.h header files.
4434 Include <sys/types.h> before "system.h".
4435 (wrap_write): Remove declaration of unused local, initial_column.
4436 (wrap_write): Correct declaration syntax: s/size_t * V/size_t *V/.
4438 * README: Add base64 to the list.
4440 2006-02-17 Simon Josefsson <jas@extundo.com>
4442 New program: base64.
4443 * AUTHORS: Mention base64.
4445 * man/Makefile.am: Build base64.1.
4446 * man/base64.x: New file.
4447 * src/Makefile.am (bin_PROGRAMS): Add base64.
4448 * src/base64.c: New file.
4450 2006-02-25 Eric Blake <ebb9@byu.net>
4452 In ls, avoid calling stat for --inode (-i), when possible.
4453 * src/pwd.c (NOT_AN_INODE_NUMBER, D_INO): Move to ...
4454 * src/system.h: ... here, for use in ...
4455 * src/ls.c (main): ... here. Prefer dirent.d_ino to stat when
4457 (gobble_file): Add inode argument.
4458 (print_dir): Pass inode if available.
4459 (usage): Remove inaccuracy.
4461 2006-02-23 Jim Meyering <jim@meyering.net>
4463 * TODO: Update/correct some obsolete entries.
4465 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
4467 * doc/coreutils.texi (join invocation): Mention `sort -k 1b,1'.
4468 * src/join.c (usage): Likewise.
4469 Documentation problem reported by Philip Kensche.
4471 2006-02-20 Eric Blake <ebb9@byu.net>
4473 * man/rm.x: Update documentation to match previous patch.
4475 2006-02-18 Eric Blake <ebb9@byu.net>
4477 New option for rm: --interactive=once (-I).
4478 * NEWS: Document it, along with change to rm --interactive.
4479 * TODO: Remove entry for implementing rm -I
4480 * src/rm.c (INTERACTIVE_OPTION): New enum value.
4481 (interactive_type): New enum.
4482 (long_opts): Let interactive take an optional argument.
4483 (interactive_args, interactive_types): New option arguments.
4484 (usage): Document -I, --interactive=WHEN. Use program_name
4485 instead of a basename.
4486 (main): New -I option, new behavior to --interactive.
4487 * tests/rm/interactive-once: New tests.
4488 * tests/rm/interactive-always: Ditto.
4489 * tests/rm/Makefile.am (TESTS): Run them.
4491 2006-02-18 Jim Meyering <jim@meyering.net>
4493 * Makefile.maint (sc_two_space_separator_in_usage): Make the regular
4494 expression match more of the target lines, e.g., those that start with
4495 `-S,' (short option followed by a comma) or that include `=[...]'.
4496 Patch by Nicolas François.
4497 Fix the four offenders thus exposed:
4498 * src/join.c (usage): Use two spaces (not one) to separate the
4499 --first-only option string from its description, so help2man formats
4500 the derived man page properly.
4501 * src/pr.c (usage): Likewise.
4502 * src/uniq.c (usage): Likewise.
4503 * src/install.c (usage): Likewise.
4505 2006-02-15 Jim Meyering <jim@meyering.net>
4507 * Makefile.maint (alpha beta major): For `make major', ensure that the
4508 version string is of the form N.N[.N]*, where N is one or more digits.
4510 2006-02-14 Jim Meyering <jim@meyering.net>
4512 * INSTALL: Update from gnulib.
4514 2006-02-13 Jim Meyering <jim@meyering.net>
4516 * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
4518 2006-02-12 Jim Meyering <jim@meyering.net>
4520 * Makefile.maint (patch-check): New target.
4521 (local-checks-available): Add to the list.
4523 2006-02-11 Jim Meyering <jim@meyering.net>
4525 * src/c99-to-c89.diff: New file.
4526 * src/Makefile.am (EXTRA_DIST): Add c99-to-c89.diff.
4528 * .x-po-check: New file, with exclusions so that `make distcheck'
4530 * Makefile.am (EXTRA_DIST): Add .x-po-check.
4532 rm -r must remove an empty directory, even if it is inaccessible.
4533 * src/remove.c (close_preserve_errno): New function.
4534 (fd_to_subdirp): Don't print a diagnostic in this function.
4535 Do it from the callers instead, unless rmdir succeeds.
4536 (remove_cwd_entries, remove_dir): Adjust callers.
4537 * tests/rm/empty-inacc: New test for the above.
4538 * tests/rm/Makefile.am (TESTS): Add empty-inacc.
4539 * NEWS: Mention this bug fix.
4540 * tests/rm/rm2: Adjust two expected diagnostics, now that they're
4541 a tiny bit less precise: cannot remove `a/1': ... instead of
4542 cannot open directory `a/1': ...
4544 * Makefile.maint (syntax-check-rules): Automatically derive this
4545 list of sc_-prefixed rule names.
4547 2006-02-10 Paul Eggert <eggert@cs.ucla.edu>
4549 * Makefile.maint (CVS_LIST): Don't assume cvsu is available.
4550 (CVS_LIST_EXCEPT): New macro, to simplify exception-processing.
4551 Most uses of CVS_LIST changed to use CVS_LIST_EXCEPT.
4552 (syntax-check-rules): Bring back sc_changelong. (Hmm, why did it
4553 go away? was that an accident?)
4554 (sc_cast_of_argument_to_free, sc_cast_of_x_alloc_return_value):
4555 (sc_cast_of_alloca_return_value, sc_space_tab, sc_prohibit_atoi_atof):
4556 (sc_error_exit_success, sc_file_system, sc_no_if_have_config_h):
4557 (sc_system_h_headers, sc_sun_os_names, sc_trailing_blank):
4558 (sc_two_space_separator_in_usage, sc_unmarked_diagnostics):
4559 (sc_obsolete_symbols, sc_changelog, sc_prohibit_jm_in_m4):
4560 (sc_useless_cpp_parens, makefile-check, m4-check, po-check):
4561 (author_mark_check, makefile_path_separator_check):
4562 Output line numbers, to simplify navigation of Emacs *compilation*
4564 (sc_prohibit_atoi_atof, sc_file_system):
4565 Rework slightly so that Makefile.maint doesn't get reported as a
4566 violation of its own syntax rules.
4567 (sc_dd_max_sym_length): Use ifneq to do nothing, instead of doing
4568 it at run-time (which didn't work with Bison). Fix a makefile typo,
4569 caught by Makefile.maint itself: spaces where a tab should be.
4570 (po-check): Check lib/*.[ch] even if not in CVS; used by Bison,
4571 which copies from ../gnulib/lib/*.[ch] to lib/*.[ch].
4572 Ignore djgpp and man subdirectories, to avoid false matches with
4573 Bison and coreutils, respectively. Use sort -u to remove the
4574 resulting duplicates.
4575 * gnupload: Rework slightly to avoid bogus warning from
4576 sc_two_space_separator_in_usage.
4578 2006-02-10 Jim Meyering <jim@meyering.net>
4580 Use gzip's --rsyncable option only if it's available.
4581 * Makefile.maint (gzip_rsyncable): New variable.
4584 2006-02-08 Jim Meyering <jim@meyering.net>
4586 * Makefile.maint (local-checks-available): Define in terms of
4587 the expansion, $(syntax-check-rules), rather than the single,
4588 top-level target `syntax-check', so that it's easier to exclude
4589 individual rules (via $(local-checks-to-skip)).
4590 (tgz-md5, tgz-sha1, ...): Remove now-unused definitions.
4592 2006-02-07 Jim Meyering <jim@meyering.net>
4594 * src/system.h (!defined O_DIRECT): If O_DIRECTIO is defined (as it
4595 is on Tru64), define O_DIRECT to that. Patch From James Lemley.
4597 * tests/help-version (expected_failure_status_vdir):
4598 Redirect an expected disk-full diagnostic to /dev/null.
4600 2006-02-06 Jim Meyering <jim@meyering.net>
4602 * src/unexpand.c (usage): Use two spaces (not one) to separate the
4603 --first-only option string from its description, so help2man formats
4604 the derived man page properly.
4605 * src/rm.c (usage): Likewise for --no-preserve-root.
4606 * src/chown.c (usage): Likewise.
4607 * src/chgrp.c (usage): Likewise.
4609 Add a rule to ensure that the above doesn't happen again.
4610 * Makefile.maint (sc_two_space_separator_in_usage): New rule.
4611 (syntax-check-rules): Add it.
4612 * .x-sc_two_space_separator_in_usage: New empty file.
4613 * Makefile.am (EXTRA_DIST): Add .x-sc_two_space_separator_in_usage.
4615 2006-02-06 Jim Meyering <jim@meyering.net>
4617 * src/cp.c (usage): Use two spaces (not one) to separate each
4618 option string from its description, so help2man formats the
4619 derived man page properly.
4620 * src/mv.c (usage): Likewise.
4621 Patch from Nicolas François in http://bugs.debian.org/351601.
4623 2006-02-04 Jim Meyering <jim@meyering.net>
4625 * src/copy.c (copy_internal): cp -RL would fail when encountering
4626 the same directory more than once in the hierarchy beneath a single
4627 command-line argument. That is legitimate, e.g. when there are
4628 two or more symbolic links, each pointing to some directory that
4629 would not otherwise be copied. Reported by Christophe LYON.
4630 * tests/cp/cp-deref: New file. Test for today's fix.
4631 * tests/cp/Makefile.am (TESTS): Add cp-deref.
4632 * NEWS: Document this.
4634 2006-02-03 Jim Meyering <jim@meyering.net>
4636 * configure.ac: Require automake-1.9.6, not 1.8.3.
4638 2006-02-01 Paul Eggert <eggert@cs.ucla.edu>
4640 * src/od.c (usage): Mention that -t a ignores high order bit.
4641 Documentation problem reported by Ed Avis.
4643 2006-02-01 Jim Meyering <jim@meyering.net>
4645 * src/pwd.c (find_dir_entry): Remove unused local, `ent_sb_valid'.
4647 2006-01-30 Paul Eggert <eggert@cs.ucla.edu>
4649 * src/head.c (main): Use a better diagnostic when someone uses a
4650 trailing numeric option in an invalid way. Problem reported by
4652 * src/tail.c (parse_options): Likewise.
4654 2006-01-30 Jim Meyering <jim@meyering.net>
4656 * man/wc.x: Include `count' keyword in man page synopsis,
4657 per suggestion from http://bugs.debian.org/181585.
4659 2006-01-24 Paul Eggert <eggert@cs.ucla.edu>
4661 * src/df.c (show_dev): If the file system claims to have
4662 more available than total blocks, report the number of used
4663 blocks as being total - available (a negative number) rather
4664 than as garbage. Problem reported by Toralf Foerster.
4666 2006-01-24 Jim Meyering <jim@meyering.net>
4668 * src/tail.c (tail_forever): Don't exit-nonzero when an attempt
4669 to put a regular file in O_NONBLOCK mode fails with EPERM.
4670 That happens on Linux (up to 2.6.15) when using tail -f on a file with
4671 the append-only attribute. Reported by Dean Gaudet. For details,
4672 see http://savannah.gnu.org/bugs/?func=detailitem&item_id=15473.
4673 * NEWS: Mention this fix.
4674 * tests/tail-2/append-only: New file. Test for the above.
4675 * tests/tail-2/Makefile.am (TESTS): Add append-only.
4676 * tests/Makefile.am (check-root): Add tail-2/append-only
4678 2006-01-21 Jim Meyering <jim@meyering.net>
4680 * NEWS: Mention fts-related improvements and bug fixes.
4682 2006-01-19 Jim Meyering <jim@meyering.net>
4684 * tests/fmt/basic (pfx-1, pfx-2): New tests, to demonstrate the bug
4685 reported as http://bugs.debian.org/147577. Forwarded by Thomas Hood.
4687 2006-01-18 Jim Meyering <jim@meyering.net>
4689 * tests/du/Makefile.am (TESTS): Add long-from-unreadable.
4691 2006-01-17 Jim Meyering <jim@meyering.net>
4693 Now that fts no longer changes the current working directory, adjust
4694 its clients accordingly -- note that du.c uses fts but doesn't need
4695 any adjustment, since it doesn't operate on the actual files,
4696 but rather just uses the stat buffers provided by fts.
4698 * src/chown-core.c: Include "openat.h".
4699 Don't include "lchown.h".
4700 (restricted_chown): Accept a new parameter, CWD_FD, and use it in
4701 calling openat, lchownat, chownat, rather than open, lchown, chown.
4703 * src/chmod.c: Include "openat.h".
4704 (process_file): Use chmodat (fts->fts_cwd_fd,... in place of chmod (...
4706 * tests/du/long-from-unreadable: New test, to exercise one small
4709 2006-01-13 Jim Meyering <jim@meyering.net>
4711 * tests/Makefile.am (SUBDIRS): Add comments discouraging the
4712 addition of new directories under tests/.
4714 * tests/acl: Redirect stdin to /dev/null. Otherwise, FreeBSD 5.0's
4717 2006-01-12 Jim Meyering <jim@meyering.net>
4719 * tests/du/long-sloop: Adjust not to hard-code the expected
4720 diagnostic corresponding to ELOOP. Solaris' diagnostic differs
4721 from that of GNU libc. Reported by Paul Eggert.
4723 * tests/du/long-sloop: Create file at end of symlink chain.
4725 * tests/misc/test: New file, with a test for one of the
4726 bugs fixed by yesterday's test.c changes.
4727 * tests/misc/Makefile.am (TESTS): Add test.
4729 2006-01-11 Jim Meyering <jim@meyering.net>
4731 * tests/du/long-sloop: New file. Test for today's fts.c bug fix.
4732 That bug could make du -L, chgrp -L, or chown -L fail to diagnose
4733 a very long sequence of symbolic links (not necessarily a loop).
4734 * tests/du/Makefile.am (TESTS): Add long-sloop.
4736 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
4738 * src/test.c (test_syntax_error): Append a newline. All callers
4739 changed, except for the ones that didn't already append a newline.
4740 Bug reported by Eric Blake.
4742 2006-01-11 Jim Meyering <jim@meyering.net>
4744 * src/system.h (X2NREALLOC): Now that verify_true is no longer
4745 void, cast its result to void, to avoid gcc's warning that
4746 ``left-hand operand of comma expression has no effect''.
4747 (DECIMAL_DIGIT_ACCUMULATE, X2REALLOC): Likewise.
4749 2006-01-10 Jim Meyering <jim@meyering.net>
4751 * tests/chmod/no-x: Add a test for today's fts.c fix.
4753 2006-01-10 Jim Meyering <jim@meyering.net> (tiny change)
4755 * src/ls.c (gobble_file): Use DTTOIF only if it's defined.
4756 This is necessary for Dragonfly. Patch by Joerg Sonnenberger.
4758 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
4760 * src/system.h (X2NREALLOC, X2REALLOC, DECIMAL_DIGIT_ACCUMULATE):
4761 Use verify_true instead of verify_expr, to sync with gnulib.
4763 2006-01-08 Jim Meyering <jim@meyering.net>
4765 * src/date.c (usage): Adjust the formatting of the entries for
4766 %::z and %:::z (separate with two spaces, not one) so that help2man
4767 formats them properly. Reported by Philip Rowlands.
4769 2006-01-06 Paul Eggert <eggert@cs.ucla.edu>
4771 * configure.ac (gl_IGNORE_UNUSED_LIBRARIES): Add.
4773 2006-01-06 Jim Meyering <jim@meyering.net>
4775 * Makefile.maint (copyright-check): Use date +%Y in place of
4778 * src/remove.c (rm_1): Remove `static' attribute on local `status'.
4779 First off, the attribute should have been `volatile' (not static)
4780 to avoid longjmp-related risk of clobber. Secondly, now there is
4781 no longer any risk of a local variable being clobbered, so there's
4782 no need for any attribute at all.
4784 2006-01-05 Jim Meyering <jim@meyering.net>
4786 * src/remove.c: Give a few functions the inline attribute.
4787 (AD_pop_and_chdir): Use gotos to avoid some duplication.
4788 (AD_push): Rewrite an assertion so that the entire computation
4789 goes away when assertions are turned off.
4791 * src/tail.c (ENOSYS) [!defined ENOSYS]: Don't define here.
4792 It's already defined in "system.h".
4793 * Makefile.maint: Add a FIXME comment.
4795 2006-01-04 Jim Meyering <jim@meyering.net>
4797 * ChangeLog: Remove entries from 2005-10-22 and earlier.
4798 * ChangeLog-2005: New file, for entries up to version 5.92.
4800 2006-01-03 Jim Meyering <jim@meyering.net>
4802 * tests/du/no-x: Also allow a slightly different diagnostic -- the
4803 one you get when using openat-enabled fts.c and du (coming soon).
4804 * tests/chmod/no-x: Likewise.
4805 * tests/chgrp/no-x: Likewise.
4807 * src/system.h (O_DIRECTORY) [!defined O_DIRECTORY]: Define.
4809 2006-01-02 Paul Eggert <eggert@cs.ucla.edu>
4811 * src/chown-core.c (RC_do_ordinary_chown): New enum value.
4812 (restricted_chown): Return it, if the file cannot be accessed due
4813 to EPERM, or if no uid or gid are required, or if the file is
4814 neither a directory nor a regular file. Rewrite to avoid gotos.
4815 (change_file_owner): Handle RC_do_ordinary_chown case.
4816 Rewrite to avoid gotos.
4817 * tests/chgrp/basic: Make sure we can change the group of
4820 * src/date.c (usage): Explain %g, %G, and %V a bit better.
4822 2006-01-02 Jim Meyering <jim@meyering.net>
4824 * src/copy.c (set_owner): Correct a comment.
4826 * src/tail.c (parse_options): Change warning to say that --retry
4827 is useful `mainly' (not `only') when following by name.
4828 Reported here: http://bugs.debian.org/273781
4830 2006-01-01 Paul Eggert <eggert@cs.ucla.edu>
4832 * NEWS: Document that mkfifo and mknod -m no longer set special bits.
4833 * src/copy.c: Include lchmod.h.
4834 (copy_internal): Use lchmod rather than chmod.
4835 * src/cp.c: Include lchmod.h.
4836 (re_protect, make_dir_parents_private): Use lchmod rather than chmod.
4837 * src/mkdir.c: Include lchmod.h.
4838 (usage): Clarify -m's operation.
4839 (main): Use lchmod rather than chmod. Don't use lchmod unless the
4840 new mode contains bits outside the 777 range.
4841 * src/mkfifo.c (usage): Clarify -m's operation.
4842 (main): If -m is given, don't invoke chmod; use umask 0 instead.
4843 Report an error if -m asks for bits outside the 777 range.
4844 * src/mknod.c (usage, main): Likewise.
4846 * src/mkdir.c, src/mkfifo.c, src/mknod.c: Undo 2005-12-19 changes.
4848 2005-12-27 Jim Meyering <jim@meyering.net>
4850 * Makefile.maint (sc_obsolete_symbols): Prohibit use of O_NDELAY.
4851 (sc_prohibit_assert_without_use): New rule.
4852 (syntax-check-rules): Add it to the list.
4853 * .x-sc_prohibit_assert_without_use: New empty file.
4854 * Makefile.am (EXTRA_DIST): Add it.
4856 * Makefile.maint (CVS_LIST): Define in terms of $(srcdir).
4858 * cp.c, df.c, link.c, mknod.c, nice.c, sleep.c, unlink.c:
4859 Don't include <assert.h>; it wasn't used.
4861 2005-12-26 Paul Eggert <eggert@cs.ucla.edu>
4863 * src/chown-core.c (restricted_chown):
4864 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
4865 * src/remove.c (fd_to_subdirp): Open with O_DIRECTORY | O_NOCTTY
4866 | O_NOFOLLOW too, for consistency with other dir-openers.
4867 Use POSIX-preferred O_NONBLOCK rather than O_NDELAY.
4868 (is_empty_dir): Likewise.
4869 * src/shred.c (wipename): Likewise. Don't bother trying to open
4870 dir for writing, since POSIX prohibits it.
4872 2005-12-22 Jim Meyering <jim@meyering.net>
4874 * tests/help-version: Redirect stderr to /dev/full, to suppress
4875 write error diagnostic.
4877 2005-12-19 Jim Meyering <jim@meyering.net>
4879 * src/mkdir.c, src/mknod.c, src/mkfifo.c (main)
4880 Avoid a minor race condition when `-m MODE' is specified, by using
4881 open, fchown, and close rather than just chown. To do that reliably --
4882 even with an overly restrictive umask -- ensure that each mkdir,
4883 mknod and mkfifo call uses a mode including at least owner-read access.
4884 * src/mknod.c (main): When `-m MODE' is specified, exit nonzero if
4885 the subsequent chown (or equivalent open,fchown,close) fails.
4886 * tests/misc/mknod: New tests.
4887 * tests/misc/Makefile.am (TESTS): Add mknod.
4889 2005-12-17 Jim Meyering <jim@meyering.net>
4891 * src/remove.c (is_empty_dir): Open with O_NDELAY, so we don't hang,
4892 e.g., on a named pipe.
4893 (OPEN_NO_FOLLOW_SYMLINK): Remove definition. Use O_NOFOLLOW in
4894 place of all uses, since it is guaranteed (system.h) to be defined.
4896 2005-12-05 Andreas Gruenbacher <agruen@suse.de>
4898 Add POSIX ACL support
4899 * src/ls.c: Switch back from HAVE_ACL to USE_ACL: The acl() syscall
4900 is no requirement for ACL support; particularly, it does not exist
4901 on systems that have POSIX ACLs.
4902 * src/copy.h (cp_option_init) [umask_kill]: Remove member.
4903 * src/cp.c (umask_kill): With default acls, the umask is not to be
4904 applied. Remove umask_kill, don't change the process umask, and let
4905 the kernel apply the umask where appropriate.
4906 * src/cp.c (make_dir_parents_private): Fix logic for POSIX ACLs.
4907 * src/copy.c (get_dest_mode): Remove; it is obsolete after removing
4909 (copy_reg, copy_internal): Use copy_acl and set_acl
4910 instead of fchown/chown. Fix the logic for POSIX ACLs.
4911 (chown_succeded): Remove; we now always copy acls and
4912 preserve S_ISUID, S_ISGID, and S_ISVTX when needed, no matter if we
4913 did a chown before or not.
4914 * src/mv.c, src/install.c (cp_option_init): Don't set umask_kill member.
4915 * src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD, cp_LDADD,
4916 mv_LDADD, ginstall_LDADD): On systems with an ACL library, arrange
4917 to link with it via $(LIB_ACL), for the utilities that need it.
4919 2005-12-16 Paul Eggert <eggert@cs.ucla.edu>
4921 * src/remove.c (OPENAT_CWD_RESTORE__REQUIRE): Remove.
4922 (OPENAT_CWD_RESTORE__ALLOW_FAILURE): Likewise.
4923 (fd_to_subdirp): Remove openat_cwd_restore_allow_failure arg; its
4924 value is now signified by whether cwd_errno is null.
4925 (fd_to_subdirp, remove_dir, rm_1); Change cwd failure indicator from
4926 pointer-to-bool to pointer-to-errno-value. All callers changed.
4927 (rm_1): Don't bother setting a local cwd failure flag and then
4928 ORing it into the caller's. Just set the caller's.
4929 (rm): Use cwd failure errno value to print a slightly-better
4932 2005-12-15 Jim Meyering <jim@meyering.net>
4934 * src/stat.c (print_it): Properly handle a backslash at the
4935 end of a --printf format string. Reported by Paul Eggert.
4936 * tests/misc/stat-printf (end-bs): Add a test for the above.
4938 2005-12-15 Paul Eggert <eggert@cs.ucla.edu>
4940 * tests/acl: Port to pre-POSIX shells like Solaris 8 /bin/sh.
4941 Don't assume /etc/passwd contains user names; use 'id' instead.
4943 2005-12-15 Jim Meyering <jim@meyering.net>
4945 stat: revert behavior of --format=FMT (-c)
4946 stat: add new option: --printf=FMT
4947 * NEWS: Mention this.
4948 * src/stat.c (isodigit, octtobin, hextobin): Define.
4949 (PRINTF_OPTION): Define.
4950 (interpret_backslash_escapes, trailing_delim): New globals.
4951 (usage): Document them. Alphabetize on long option names.
4952 (print_esc_char): New function.
4953 (print_it): Rewrite, in order to handle backslash escapes.
4954 (main): Handle new option. Set globals for --format, too.
4956 * tests/misc/stat-printf: Test --printf and --format.
4957 * tests/misc/Makefile.am (TESTS): Add stat-printf.
4959 2005-12-14 Paul Eggert <eggert@cs.ucla.edu>
4961 * NEWS: sort now reports incompatible options.
4962 * src/sort.c (incompatible_options, check_ordering_compatibility):
4964 (main): Use them. Don't bother with a usage message for
4965 "sort -c a b", for consistency with other error diagnostics.
4966 * tests/sort/Test.pm (incompat1, incompat2, incompat3, incompat4):
4969 * src/cat.c (main): Undo previous change. close_stdout already
4970 does the check, so the previous change wasn't necessary.
4972 2005-12-13 Paul Eggert <eggert@cs.ucla.edu>
4974 * src/cat.c (main): Check for close (STDOUT_FILENO) failure.
4976 2005-12-12 Paul Eggert <eggert@cs.ucla.edu>
4978 Install a more-conservative approach for sort -R. It's the
4979 same basic idea as the existing code, except it uses the full ISAAC
4980 approach (called the "more kosher" approach in the existing comments).
4981 This makes "sort -R" quite a bit slower (about a factor of 2 on my
4982 little tests involving 10000 lines on a 2.4 GHz P4), but I think it's
4983 better to be conservative here at first, and review any performance
4984 improvements carefully.
4985 * .x-sc_require_config_h: Add src/rand-isaac.c.
4986 * src/rand-isaac.h: Remove. All uses now simply include rand-isaac.c.
4987 * src/Makefile.am (noinst_HEADERS): Remove rand-isaac.h.
4988 (shred_SOURCES, sort_SOURCES): Remove.
4989 (EXTRA_DIST): Add rand-isaac.c.
4990 * src/rand-isaac.c: Revert to what used to be in shred.c, without
4991 changing it to allow for varying numbers of words in the state.
4992 Alter so that we include rand-isaac.c directly rather than
4993 compiling it and linking to it. Don't include config.h or
4994 system.h; that's the includer's responsibility.
4995 Omit functions that are specific to shred.
4996 (ISAAC_LOG, ISAAC_WORDS, ISAAC_BYTES, struct isaac_state, ind):
4997 (isaac_step, struct irand_state):
4998 Resurrect these, with the same defns that used to be in shred.c.
4999 (ISAAC_SIZE, isaac_new, isaac_copy): Remove.
5000 (isaac_refill, isaac_seed_start, isaac_seed_data, irand_init, irand32):
5002 (struct isaac_state, isaac_refill, isaac_mix, isaac_init):
5003 (isaac_seed_start, isaac_seed_data, isaac_seed_finish, isaac_seed):
5004 (irand_init, irand32, irand_mod):
5005 Number of words is constant again.
5006 (struct irand_state, irand_init, irand32, irand_mod): Move to shred.c.
5007 * src/shred.c: Include rand-isaac.c rather than rand-isaac.h.
5008 * src/sort.c: Likewise.
5009 * src/shred.c (fillrand, dopass, main): Undo previous change.
5010 (struct irand_state, irand_init, irand32, irand_mod): Moved back here,
5012 * src/sort.c: Don't include md5.h; it wasn't needed.
5013 (struct keyfield): Rename random_hash to random, for consistency
5014 with the other member names. All uses changed.
5015 (usage): Tweak wording to mention STRING for --seed option.
5016 (short_options): Rorder for consistency with other programs.
5017 (rand_state): Now a struct, not a pointer to one. All uses changed.
5018 (HASH_WORDS, HASH_SIZE): Remove.
5019 (get_hash): Remove comments around resbuf size, since we can assume C89.
5020 Use a "more-kosher" (but slower) approach of invoking isaac_refill.
5021 (keycompare): Adjust to the new get_hash.
5023 (badfieldspec): Omit recently-introduced comment; it isn't needed.
5024 (main): Don't set need_random simply because gkey has it set; that
5025 doesn't necessarily mean we'll need random numbers.
5026 Redo seeding to match new get_hash approach.
5028 2005-12-10 Jim Meyering <jim@meyering.net>
5030 * src/Makefile.am (noinst_HEADERS): Add rand-isaac.h.
5032 Avoid shred segfault on 64-bit systems.
5033 * src/rand-isaac.c (isaac_refill): Don't try to negate a
5034 local of type uint32_t. Make the local an `int' instead.
5036 * NEWS: Mention sort's new options.
5038 * src/rand-isaac.c (isaac_mix): Declare to be static.
5039 Mark all other functions as `extern' so the tight-scope
5040 part of `make distcheck' passes once again.
5041 * src/rand-isaac.h (isaac_mix): Remove declaration.
5043 * src/sort.c (get_hash): Change position of `*' in parameter
5044 type to conform with convention.
5045 (main): Split a long line so it fits in 80 columns.
5046 (keycompare): Remove stray SPACE before TAB that was
5047 causing `make distcheck' to fail.
5049 * src/shred.c: Don't include gethrxtime.h. No longer needed.
5051 * tests/misc/sort-rand: New file: basic tests for the new options.
5052 * tests/misc/Makefile.am (TESTS): Add sort-rand.
5054 2005-12-10 Frederik Eaton <frederik@ofb.net>
5056 * src/Makefile.am (sort_LDADD): Add $(LIB_GETHRXTIME).
5057 (shred_SOURCES, sort_SOURCES): New macros, so we compile rand-isaac.c.
5058 * src/rand-isaac.c: New file, containing ISAAC code that was in shred.c.
5059 Make state size runtime-configurable.
5060 (isaac_new, isaac_copy): New functions.
5061 * src/rand-isaac.h: New file.
5062 * src/shred.c: Include rand-isaac.h. Move ISAAC code to rand-isaac.c.
5063 (fillrand, main): Adjust to the fact that the state size is now
5064 runtime-configurable.
5065 * src/sort.c (short_options, long_options, WORDS, keycompare, main):
5066 (usage): Add options --random-sort and --seed to implement a random
5068 Include md5.h and rand-isaac.h.
5069 (get_hash): New function.
5070 (rand_state): New var.
5071 (HASH_WORDS, HASH_SIZE): New macros.
5073 2005-12-09 Paul Eggert <eggert@cs.ucla.edu>
5075 * tests/dd/misc: Add test for dd iflags=noatime.
5077 2005-12-09 Jim Meyering <jim@meyering.net>
5079 * src/sort.c (usage): Mention white space vs -b and -t options.
5082 2005-12-09 Eric Blake <ebb9@byu.net>
5084 * src/test.c (main): Fix misleading comment.
5086 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
5088 * NEWS: Mention dd's new noatime flag.
5089 * src/system.h (O_NOATIME): Define to 0 if not already defined.
5090 * src/dd.c (flags, usage): Add support for noatime flag.
5092 2005-12-07 Jim Meyering <jim@meyering.net>
5094 Distribute the cvsu script, used only by `make syntax-check'.
5095 * Makefile.am (EXTRA_DIST): Add build-aux/cvsu.
5096 * Makefile.maint (CVS_LIST): Use build-aux/cvsu, now that we
5097 distribute a copy of this script.
5098 * .x-sc_unmarked_diagnostics: Add build-aux/cvsu.
5100 * tests/mv/acl: exit-77 before the trap, not after, if we fail
5101 to create a temporary directory on another partition.
5102 From Andreas Gruenbacher.
5104 2005-12-06 Tomas Pospisek <tpo@sourcepole.ch> (tiny change)
5106 * man/basename.x: Cross-reference to dirname and readlink.
5107 * man/dirname.x: Cross-reference to basename and readlink.
5109 2005-12-05 Andreas Gruenbacher
5111 * src/copy.c [!HAVE_FCHOWN]: Define fchown(...) to -1.
5112 (set_owner, preserve_author): New functions, factored out of copy_reg.
5113 (copy_reg): Use them.
5114 (copy_internal): Use them here, too.
5116 2005-12-04 Jim Meyering <jim@meyering.net>
5118 * src/sleep.c (usage): Say what happens with two or more arguments.
5119 Suggested by Justin Pryzby.
5121 * src/uptime.c (print_uptime): Move decl of `upsecs' into scope
5124 2005-12-03 Jim Meyering <jim@meyering.net>
5126 * src/rm.c (long_opts): Change the name of each undocumented, for-
5127 testing-only option to start with `-', so that it cannot render
5128 ambiguous any prefix it happens to share with some other option name.
5129 Problem reported by Eric Blake.
5130 * src/head.c (long_options): Likewise.
5131 * src/tail.c (long_options): Likewise.
5133 * tests/misc/head-elide-tail: Update uses of undocumented, for-
5134 testing-only --presume* options to start with `---'.
5135 * tests/rm/dangling-symlink: Likewise.
5136 * tests/rm/dir-no-w: Likewise.
5137 * tests/rm/isatty: Likewise.
5139 2005-11-30 Jim Meyering <jim@meyering.net>
5141 * Makefile.maint: Add a comment about cvsu.
5143 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
5145 * NEWS: df updates for "none", "proc", inaccessible file systems.
5146 * src/df.c (show_point): Ignore inaccessible file systems.
5147 (usage): -a includes dummy file systems, not size-0 file systems.
5149 * src/od.c (unsigned_long_long_int): Renamed from ulonglong_t,
5150 to avoid collision with POSIX name space. All uses changed.
5152 2005-11-24 Jim Meyering <jim@meyering.net>
5154 * tests/Makefile.am (EXTRA_DIST): Add acl to the list.
5155 * tests/acl: Add `$0: ' prefix to diagnostics.
5157 * .x-sc_require_config_h: Add lib/buffer-lcm.c to the list.
5159 2005-11-23 Paul Eggert <eggert@cs.ucla.edu>
5161 * src/copy.c: Improve performance a bit by optimizing away
5162 unnecessary system calls and going to a block size of at least
5163 8192 (on normal hosts, anyway). This improved performance 5% on my
5164 Debian stable host (2.4.27 kernel, x86, copying from root
5165 ext3 file system to itself).
5166 Include "buffer-lcm.h".
5167 (copy_reg): Omit last argument. All callers changed.
5168 Use xmalloc to allocate rather than trusting alloca
5169 (which is unwise with large block sizes).
5170 Declare locals more locally, if possible.
5171 Use uintptr_t words instead of int words, for a bit more speed
5172 when looking for null blocks on 64-bit hosts.
5173 Optimize away reads of zero bytes on regular files.
5174 In the typical case, insist on 8 KiB buffers, at least.
5175 Avoid unnecessary extra call to fstat when checking for sparse files.
5176 Avoid now-unnecessary cast to off_t, and "0L".
5177 Avoid unnecessary test of *new_dst when checking for same owner
5180 2005-11-22 Paul Eggert <eggert@cs.ucla.edu>
5182 * src/remove.c (rm): Don't assume C99 for-loop syntax.
5184 2005-11-22 Jim Meyering <jim@meyering.net>
5186 * src/remove.c (AD_push): Remove debugging cruft.
5188 * tests/rm/unread2 (rm): Change expected diagnostic,
5189 `cannot open directory' to `cannot remove', to align with
5191 * tests/rm/rm2: Ensure that rm now continues removing entries
5192 even after certain types of failure.
5194 * src/remove.c: Rewrite. Now, this module is reentrant on systems
5195 that provide openat (Solaris), and on systems like Linux+procfs
5196 where our openat emulation code is reentrant. This also fixes a
5197 few low-probability leaks and eliminates some code that could,
5198 in very unusual circumstances, cause rm() (via a callee) to exit.
5199 * NEWS: Mention this.
5201 * configure.ac: Put copyright dates all on one line so the
5202 emacs function that updates them works properly.
5204 2005-11-18 Paul Eggert <eggert@cs.ucla.edu>
5206 * configure.ac (AM_PROG_CC_C_O): Add. Needed for CVS Automake.
5207 Problem reported by Eric Blake.
5208 (AC_PROG_CC_STDC): Use this instead of AC_PROG_CC, so that
5209 we get a standard-conforming compiler. This relies on the new
5210 m4/c.m4 file. Note that it's a bit tricky, since c.m4 doesn't
5211 define AC_PROG_CC_STDC; we are relying on Autoconf 2.59 internals.
5212 m4/c.m4 can go away with Autoconf 2.60 comes out.
5214 2005-11-17 Jim Meyering <jim@meyering.net>
5216 * src/remove.c (AD_mark_helper): Make a `char *' parameter `const'.
5217 (AD_mark_current_as_unremovable): Likewise, but for a local.
5220 * tests/mv/acl: Let traps handle removing temporary directories.
5222 Expect acl-related tests to fail, until the corresponding
5223 patches are committed.
5224 * tests/mv/Makefile.am (XFAIL_TESTS): Add acl.
5225 * tests/cp/Makefile.am (XFAIL_TESTS): Likewise.
5227 ACL tests, from Andreas Gruenbacher.
5228 * tests/acl, tests/mv/acl, tests/cp/acl: New files.
5229 * tests/mv/Makefile.am (TESTS): Add acl.
5230 * tests/cp/Makefile.am (TESTS): Add acl.
5232 * src/ls.c (basename_is_dot_or_dotdot): Correct wording in comment.
5234 2005-11-16 Paul Eggert <eggert@cs.ucla.edu>
5236 * NEWS: Improve quality of ln's diagnostics.
5237 * src/ln.c (do_link, usage): Likewise.
5238 (do_link): Don't use alloca on a buffer of unbounded size.
5240 2005-11-16 Jim Meyering <jim@meyering.net>
5242 * tests/cp/fail-perm: Accommodate HPUX. It appears to fail
5243 with EACCES rather than EPERM. Reported by Peter O'Gorman here:
5244 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/5766
5245 This also affects AIX 4.3.3, according to Ralf Wildenhues, in
5246 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html
5248 2005-11-14 Jim Meyering <jim@meyering.net>
5250 * NEWS (sort): Mention consequences of today's mkstemp-safer.c fix.
5252 2005-11-13 Jim Meyering <jim@meyering.net>
5254 * announce-gen: Accept new option, --gpg-key-id=ID and
5255 emit a blurb telling how to use the .sig files.
5256 * Makefile.cfg (gpg_key_ID): Define.
5257 * Makefile.maint (announcement): Use new option and key.
5259 Require that most .c files include <config.h>.
5260 * Makefile.maint (sc_require_config_h): New rule.
5261 (syntax-check-rules): Add it.
5262 * .x-sc_require_config_h: New file listing exceptions to the
5263 above rule. Some are legit, others are simply grandfathered in.
5264 * Makefile.am (EXTRA_DIST): Add .x-sc_require_config_h here, too.
5266 2005-11-12 Jim Meyering <jim@meyering.net>
5268 * src/checksum.h, src/md5.c, src/sha1sum.c: Remove now-unused files.
5270 2005-11-11 Jim Meyering <jim@meyering.net>
5272 * NEWS: Mention `readlink -f' bug fix in 5.3.0 news.
5273 Mention new readlink options in 5.3.0's `New features' section.
5274 Spotted by Thomas Hood.
5276 2005-11-08 Jim Meyering <jim@meyering.net>
5278 * NEWS: Merge in changes from b5_9x branch.
5280 2005-11-08 Paul Eggert <eggert@cs.ucla.edu>
5282 * NEWS: ls now defaults to --time-style='locale', which in turn acts
5283 like --time-style='posix-long-iso' if the locale settings are messed up.
5284 * src/ls.c (decode_switches): Implement this.
5286 2005-11-08 Jim Meyering <jim@meyering.net>
5288 * tests/du/2g: s/expensive/very expensive/ in a comment.
5291 2005-10-17 Eric Blake <ebb9@byu.net>
5293 * src/ls.c (usage): Fix descriptions of --sort, --time.
5294 Reported by Vitaly A. Ostanin.
5296 2005-11-04 Paul Eggert <eggert@cs.ucla.edu>
5298 * src/ln.c: Include filenamecat.c.
5299 (FILE_BASENAME_CONCAT): Remove.
5300 (do_link): Remove last arg DEST_IS_DIR. All callers changed.
5301 (main): Use file_name_concat, base_name, and strip_trailing_slashes
5302 instead of FILE_BASENAME_CONCAT. This simplifies the code, and avoids
5305 2005-11-04 Jim Meyering <jim@meyering.net>
5307 * src/du.c (process_file): Don't overflow for files of size >= 2^31
5308 on systems with stat.st_blocks of a signed 32-bit type.
5309 This bug causes trouble on some AIX 5.1 systems.
5310 Report and trivial patch from Paul Townsend:
5311 <http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00033.html>
5312 * NEWS: Mention this.
5314 * tests/du/2g: New (very-expensive) test for the above-fixed bug.
5315 * tests/du/Makefile.am (TESTS): Add it here.
5316 * tests/very-expensive: New file.
5317 * tests/Makefile.am (EXTRA_DIST): Add it here.
5318 * tests/cp/perm: Mark this test as `very-expensive', too.
5320 2005-11-02 Paul Eggert <eggert@cs.ucla.edu>
5322 * NEWS: Mention that rm -d and maybe ln -d are scheduled for
5324 * src/remove.h (struct rm_options): Remove unlink_dirs. All uses
5326 * src/rm.c (usage): Don't mention rm -d.
5328 2005-11-02 Jim Meyering <jim@meyering.net>
5330 * tests/dd/skip-seek: Fix typo in comment: s/fileutils/coreutils.
5331 From Andreas Schwab.
5333 * tests/dd/unblock-sync: Redirect stderr to /dev/null so the
5334 `M+N records in/out' lines don't pollute `make check' output.
5336 * tests/dd/skip-seek (sk-seek4): New test, to exercise the bug
5337 fixed on 2005-10-31. This test uses the new, IN_PIPE specifier.
5338 * tests/Coreutils.pm: Accept a new type of input specifier: IN_PIPE,
5339 to indicate that the input file should be piped into the command
5340 under test (via `cat FILE | $prog ...').
5342 * src/remove.c (remove_entry): Emit a better diagnostic when rm
5343 (without -r) fails to remove a directory on a non-Linux system.
5344 This change affects only newer Solaris systems (with priv_*
5345 functions like priv_allocset). Reported by Keith Thompson.
5347 * tests/rm/dir-nonrecur: New file/test for the above fix.
5348 * tests/rm/Makefile.am (TESTS): Add dir-nonrecur.
5350 2005-11-01 Paul Eggert <eggert@cs.ucla.edu>
5352 * NEWS: "tail -c 2 FILE" and "touch 0101000000" now operate as
5353 POSIX 1002.1-2001 requires.
5354 * src/tail.c (parse_obsolete_option): Implement this.
5355 Problem reported by Vincent Lefevre.
5356 * src/touch.c (main): Pass PDS_PRE_2000 to posixtime.
5357 * tests/tail/Test.pm (c-2, c-2-minus, c2, c2-minus): New tests.
5358 (test_vector): Add special cases for _POSIX2_VERSION, and
5359 regularize the old ones a bit.
5360 * tests/touch/obsolescent: Add y2000 test.
5362 2005-10-31 Paul Eggert <eggert@cs.ucla.edu>
5364 * src/dd.c (skip): Fix off-by-one error reported by
5365 Theodoros V. Kalamatianos.
5367 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
5369 * tests/mkdir/p-3: Require that the test be run as non-root.
5370 Problem and trivial fix reported by Theodoros V. Kalamatianos.
5372 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
5374 * src/ln.c (FILE_BASENAME_CONCAT): Omit unnecessary slashes in the
5375 boundary between DEST and SOURCE in the result.
5377 2005-10-26 Dmitry V. Levin <ldv@altlinux.org>
5379 * src/md5sum.c (main) [!O_BINARY]: Changed default read mode
5380 back to text, to sync with documentation and for backwards
5383 2005-10-25 Jim Meyering <jim@meyering.net>
5385 * tests/dircolors/simple (other-wr): Add an explicit test for
5386 the dircolors bug (NULL-dereference) fixed yesterday.
5388 2005-10-24 Jim Meyering <jim@meyering.net>
5390 * src/tac.c (tac_file): When determining whether a file is seekable,
5391 also test whether it is a tty. Using only the lseek-based test would
5392 give a false positive on Solaris. Reported by Peter Fales.
5394 2005-10-24 Dmitry V. Levin <ldv@altlinux.org>
5396 * tests/install/d-slashdot: New test, for "install -d" failure.
5397 * tests/install/Makefile.am (TESTS): Add d-slashdot.
5398 * tests/mkdir/p-slashdot: New test, for "mkdir -p" failure.
5399 * tests/mkdir/Makefile.am (TESTS): Add p-slashdot.
5401 2005-10-24 Jim Meyering <jim@meyering.net>
5403 * src/dircolors.c (ls_codes): Add missing comma.
5404 Anonymous report and patch from
5405 http://savannah.gnu.org/bugs/?func=detailitem&item_id=14849
5407 * src/dircolors.c: Add compile-time assertion that the slack_codes
5408 and ls_codes arrays have the same number of elements. This would
5409 have prevented the above-fixed bug.
5411 * src/expand.c (parse_tab_stops): Add a comment to make this function
5412 identical to the one in unexpand.c.
5413 * src/unexpand.c (parse_tab_stops): Adjust syntax to make this function
5414 identical to the one in expand.c.
5416 * src/expand.c (next_file): Don't assume fopen cannot return stdin.
5418 2005-10-23 Jim Meyering <jim@meyering.net>
5420 * src/md5sum.c (digest_check, main): Use ptr_align rather than
5421 a dangerous pointer-value-to-`unsigned' cast.
5422 * NEWS: mention the new sha* programs.
5423 * AUTHORS: Add new sha* programs.
5425 2005-08-28 David Madore <david.madore@ens.fr>
5427 Add new programs: sha224sum, sha256sum, sha384sum, sha512sum.
5428 * README: Add their names to the list.
5429 * src/md5sum.c: Provide framework for computing sha-2 hashes.
5430 * src/Makefile.am (sha224sum, sha256sum, sha384sum, sha512sum):
5431 Rules for compiling sha-2 utilities
5432 (noinst_HEADERS): Remove checksum.h.
5433 * man/sha512sum.x, man/sha384sum.x, man/sha256sum.x, man/sha224sum.x:
5435 * man/Makefile.am (dist_man_MANS): Add the corresponding .1 names.
5436 (sha224sum.1, sha256sum.1, sha384sum.1, sha512sum.1): New dependencies.
5437 * tests/misc/sha224sum, tests/misc/sha256sum: New files.
5438 * tests/misc/sha384sum, tests/misc/sha512sum: New files.
5439 * tests/misc/Makefile.am (TESTS): Add new sha224sum, sha256sum,
5440 sha384sum, sha512sum test scripts here rather that each in its
5443 2005-08-28 David Madore <david.madore@ens.fr>
5445 * tests/sha1sum/basic-1 (million-a): Add the "million a's" test (one
5446 of the FIPS test vectors).
5448 2005-10-23 Jim Meyering <jim@meyering.net>
5450 * configure.ac: Use 6.0-cvs as the version string.
5451 * NEWS: Adjust accordingly.
5456 Copyright (C) 2005, 2006 Free Software Foundation, Inc.
5458 Copying and distribution of this file, with or without
5459 modification, are permitted provided the copyright notice
5460 and this notice are preserved.