1 2007-01-07 Jim Meyering <jim@meyering.net>
3 * tests/sample-test: Update copyright date to 2007.
4 * Makefile.maint (copyright-check): Also check the copyright date
7 2007-01-06 Jim Meyering <jim@meyering.net>
9 * tests/fmt/basic (pfx-only, pfx-of-pfx): New tests,
10 based on examples from G.P. Halkes in
11 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9388>.
13 2007-01-06 G.P. Halkes <buscom@ghalkes.nl>
15 * src/fmt.c (copy_rest): Correct prefix handling.
16 Don't elide a line with the prefix followed by only white space.
17 (get_line): Move EOF-check to loop-termination condition.
18 * tests/fmt/basic (pfx-1): Adjust test to expect desired result.
19 (pfx-2): Remove test; its premise was contrary to the documentation.
21 2007-01-05 Jim Meyering <jim@meyering.net>
23 Avoid a used-uninitialized bug for invalid input, i.e., when the size
24 of the input, not counting newlines, is 1 % 4.
25 * gl/lib/base64.c (base64_decode): Don't hard-code inlen==4.
26 It may be smaller when flushing.
28 2007-01-05 Mike Frysinger <vapier@gentoo.org>
30 * src/dircolors.hin: Add a TERM directive for cons25.
32 2007-01-04 Jim Meyering <jim@meyering.net>
34 Use the release year, not the current year.
35 * src/groups.sh (version): Use a better name: @RELEASE_YEAR@.
36 * src/Makefile.am (RELEASE_YEAR): Define it.
38 Thanks to a prod from Eric Blake.
40 Ensure that "group --version" always prints the current year.
41 * src/groups.sh (version): Use @CURRENT_YEAR@, rather than 2006.
42 * src/Makefile.am (.sh): Also substitute for @CURRENT_YEAR@.
43 Suggestion from Eric Blake.
45 When decoding, always allow newlines in input, with almost no
47 * src/base64.c (do_decode): Initialize decode context.
48 Call base64_decode one more time, after all input is processed.
49 (usage): When decoding, newlines are always accepted.
51 * tests/misc/base64: Add a bunch of tests, for the above.
52 * gl/lib/base64.c: Include <string.h>.
53 (base64_decode_ctx_init, get_4, decode_4): New functions.
54 (base64_decode): Efficiently handle interspersed newlines.
55 (base64_decode_alloc): Update signature.
56 * gl/lib/base64.h (struct base64_decode_context): Define.
57 (base64_decode_ctx_init): Add prototype.
58 (base64_decode, base64_decode_alloc): Update prototypes.
60 * gl/lib/base64.c: Copied from gnulib.
61 * gl/lib/base64.h: Likewise.
63 2007-01-03 Jim Meyering <jim@meyering.net>
65 * THANKS: Add Evan Hunt.
67 2007-01-03 Bruno Haible <bruno@clisp.org>
69 Avoid spurious test failures on MacOS X 10.3.9, in a German locale.
70 * tests/chown/deref: Apply lang-default.
71 * tests/misc/split-a: Likewise.
72 * tests/mv/reply-no: Likewise.
74 * src/copy.c (copy_internal): Use mkfifo as a fallback if mknod fails.
77 2007-01-02 Paul Eggert <eggert@cs.ucla.edu>
79 Now, "ls -FRL" always follows symbolic links on Linux.
80 * NEWS: Mention this bug fix.
81 * src/ls.c (gobble_file): Fix bug reported by
82 Nobuyuki Tsuchimura in
83 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00152.html
84 where "ls -FRL" didn't follow a symbolic link in some cases on Linux.
85 * tests/ls/follow-slink: Add a test for this case.
87 2007-01-01 Jim Meyering <jim@meyering.net>
89 * tests/rm/fail-eperm: Revert last change. The PATH=... setting
90 is not honored at least on HP-UX 11.23 systems.
91 Instead, simply transform the actual output diagnostic.
92 Test failure reported by Bob Proulx.
94 2006-12-30 Jim Meyering <jim@meyering.net>
96 * bootstrap (gnulib_extra_files): Remove announce-gen.
97 * bootstrap.conf (gnulib_modules): Add it here instead, now that
100 * tests/misc/base64: Factor a long, repetitive string.
102 * src/c99-to-c89.diff: Adjust remove.c offsets.
104 Clean up after the change of 2006-12-28.
105 * src/remove.c (AD_pop_and_chdir): Change **DIRP parameter to *DIRP,
106 now that this function never modifies the pointer. Adjust comments
107 and code accordingly.
108 (remove_dir): Set "dirp" to NULL right after AD_pop_and_chdir call,
109 now that AD_pop_and_chdir no longer does that.
111 * tests/rm/fail-eperm: Avoid spurious differences (the error function
112 from latest glibc no longer prints the full program_name): so don't
113 invoke rm via ../../src/rm. Instead, invoke it via "PATH=../../src rm".
115 * tests/mv/acl (skip): Skip this test also if the destination
116 directory, which is on a different file system, lacks ACL support.
118 * src/copy.c (copy_reg): Rewrite a comment that was rendered
119 inaccurate by the 2006-10-18 change.
121 2006-12-28 Jim Meyering <jim@meyering.net>
123 When moving "up" the hierarchy, be careful to remove a just-emptied
124 directory before opening ".", to avoid trouble with file system
125 implementations that cache readdir results at opendir-time.
126 * src/remove.c (AD_pop_and_chdir): Add a file descriptor parameter.
127 Don't update **DIRP. Don't call fdopendir here.
128 (remove_dir): Call fdopendir here instead.
129 Report and patch from Mikulas Patocka:
130 <http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00170.html>
132 2006-12-27 Jim Meyering <jim@meyering.net>
134 * src/tail.c (usage): Mention +N for --bytes and --lines.
135 Suggestion from Evan Hunt.
137 2006-12-26 Jim Meyering <jim@meyering.net>
139 * configure.ac: Require autoconf-2.61 and automake-1.10.
140 Without the former (even with autoconf-2.60), "make distcheck"
141 would fail (without the 2006-09-26 autoconf AC_CHECK_DECL fix),
142 due to an inttypes.h generated with CFLAGS including -pedantic.
143 With the old decl check, @HAVE_DECL_STRTOUMAX@ would be 0.
145 * Makefile.maint (VC-tag): Define, so as to gpg-sign each release
146 tag, using the release version number as the message.
147 (vc-dist): Use $(VC-tag), rather than "$(VC) tag".
149 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
151 * NEWS: dd bs= operands now silently override later ibs= and obs=,
153 * src/dd.c (scanargs): Implement it.
154 * tests/dd/misc (outbytes): Test it.
155 * doc/coreutils.texi (dd invocation): Specify that bs=N
156 overrides later ibs and obs, undoing part of the
157 previous change. (The behavior was wrong.)
159 2006-12-20 Jim Meyering <jim@meyering.net>
161 "rm -rf /etc/motd" (run by non-root) now prints a diagnostic.
162 * src/remove.c (remove_entry): Handle EACCES for a non-directory, too.
163 Don't let a non-directory get by with errno == EPERM, either.
164 Check the file type directly (using cached stat value), rather
165 than trying to guess it from errno values.
166 Karl Berry reported that a cross-partition "mv /etc/issue ~"
167 failed with the um,... suboptimal diagnostic,
168 "mv: cannot remove `/etc/issue': Not a directory".
169 * tests/rm/Makefile.am (TESTS): Add fail-eacces.
170 * tests/rm/fail-eacces: New file.
171 * NEWS: Mention that both mv and rm are affected.
173 "cut -f 2- A B" no longer triggers a double-free bug
174 * src/cut.c (cut_fields): Set file-scoped global to NULL after
175 freeing it. This avoids a double-free (and core dump on some systems)
176 for this usage: "echo 1>a; echo 2>b; cut -f2- a b". Reported by
177 James Hunt in <http://bugzilla.redhat.com/220312>.
178 * NEWS: List this bug fix.
179 * THANKS: Mention him.
180 * tests/misc/cut: New file.
181 * tests/misc/Makefile.am (TESTS): Add cut.
183 2006-12-15 Jim Meyering <jim@meyering.net>
185 * tests/cp/open-perm-race: Correct the gdb-existence check.
186 Don't run either subsequent gdb command in a sub-shell.
187 Reported by Thomas Schwinge.
188 * THANKS: bring up to date.
190 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
192 Make sure cp -p isn't too generous with file permissions.
193 * tests/cp/Makefile.am (TESTS): Add file-perm-race.
194 * tests/cp/file-perm-race: New file.
196 Ensure cp -pR --parents isn't too generous with parent permissions.
197 * tests/cp/Makefile.am (TESTS): Add parent-perm-race.
198 * tests/cp/parent-perm-race: New file.
200 2006-12-14 Jim Meyering <jim@meyering.net>
202 * tests/chgrp/default-no-deref: Don't assume that files are created
203 with the primary group by default. That's not true in a directory
204 with the set-GID bit set.
206 Don't hang when there's no input tty.
207 * tests/cp/open-perm-race: Skip this test if there is no
208 controlling input `terminal'.
210 Test for a hard-to-detect race fix, using gdb.
211 * tests/cp/open-perm-race: New file, to test for the
212 cp --preserve=ownership fix of 2006-12-06.
214 * tests/cp/Makefile.am (TESTS_ENVIRONMENT): Define abs_top_builddir.
215 (TESTS): Add open-perm-race.
217 * src/chgrp.c (main): Don't prohibit -RLh, aka -RL with --no-dereference.
218 * src/chown.c (main): Likewise.
219 * src/chown-core.c (change_file_owner): Add to a comment.
220 * tests/chown/preserve-root: Add tests.
222 * NEWS: --preserve-root now works with chgrp, chmod, and chown.
223 * src/chmod.c (process_file): Do honor the --preserve-root option.
224 * src/chown-core.c (change_file_owner): Likewise, but here, also
225 handle the case in which a traversal would go "through" a symlink
226 to root. Reported by Matthew M. Boedicker
227 * tests/chown/preserve-root: Test for the above.
228 * tests/chown/Makefile.am (TESTS): Add preserve-root.
230 * NEWS: Mention the chmod fix induced by the 2006-12-11 change
231 to gnulib's m4/openat.m4.
233 2006-12-13 Andreas Schwab <schwab@suse.de>
235 Don't fail if mv/acl test succeeds.
236 * tests/mv/acl (skip): Check for acl support in the file system.
237 * tests/mv/Makefile.am (XFAIL_TESTS): Remove.
238 (TESTS_ENVIRONMENT): Pass CONFIG_HEADER.
240 2006-12-13 Paul Eggert <eggert@cs.ucla.edu>
242 Remove some arbitrary restrictions on size fields, so that
243 commands like "sort -k 18446744073709551616" no longer fail merely
244 because 18446744073709551616 doesn't fit in uintmax_t. The trick
245 is that these fields can all be treated as effectively infinity;
246 their exact values don't matter, since no internal buffer can be
248 * src/join.c (string_to_join_field): Verify that SIZE_MAX <=
249 ULONG_MAX if the code assumes this. Silently truncate too-large
250 values to SIZE_MAX, as the remaining code will do the right thing
252 * src/sort.c (parse_field_count): Likewise.
253 * src/uniq.c (size_opt, main): Likewise.
254 * tests/join/Test.pm (bigfield): New test.
255 * tests/sort/Test.pm (bigfield): New test.
256 * tests/uniq/Test.pm (121): New test.
258 2006-12-13 Jim Meyering <jim@meyering.net>
260 * tests/chgrp/default-no-deref: New test.
261 * tests/chgrp/Makefile.am (TESTS): Add default-no-deref.
263 2006-12-12 Jim Meyering <jim@meyering.net>
265 * src/system.h (SETVBUF): Remove definition, now that the
266 autoconf macro, AC_FUNC_SETVBUF_REVERSED, does nothing.
267 * src/tee.c (tee_files): s/SETVBUF/setvbuf/.
268 * src/od.c (open_next_file): Likewise.
270 2006-12-09 Jim Meyering <jim@meyering.net>
272 * man/Makefile.am (.x.1): Make help2man use $(PACKAGE_STRING) as the
273 "source". I.e. "GNU coreutils 6.7".
275 * NEWS: With the change from "-pre" to "-dirty" suffix, also change
276 from NEXT_VER-pre to CUR_VER-dirty. So, this is 6.7-dirty.
277 * configure.ac (AC_INIT): s/6.8-dirty/6.7-dirty/.
279 * tests/uniq/Test.pm (test_vector): Skip the pipe-reading test
280 whenever uniq is expected to fail. This should catch the other case
281 [test #112] in which uniq emits "cat: write error: Broken pipe" on
284 2006-12-08 Jim Meyering <jim@meyering.net>
286 Include bootstrap tool version info in the announcement form.
287 * Makefile.maint (gnulib_snapshot_date): Define.
288 (announcement): Use two new announce-gen options,
289 --bootstrap-tools and --gnulib-snapshot-date.
290 * Makefile.cfg (gnulib_dir): Set.
292 Post-release version change.
293 * NEWS: Add a line for 6.8-dirty.
294 * configure.ac (AC_INIT): Set new version string.
296 2006-12-07 Jim Meyering jim@meyering.net
299 * NEWS: Record release date. Remove '-pre' suffix.
300 * configure.ac (AC_INIT): Remove version string suffix.
302 2006-12-07 Jim Meyering <jim@meyering.net>
304 Make the output of "make check" more reproducible.
305 * tests/touch/empty-file: Use envvar-check, so "make check" doesn't
306 evoke diagnostics like this when COLUMNS=0 in the environment:
307 ls: ignoring invalid width in environment variable COLUMNS: 0
308 * tests/touch/no-rights: Likewise.
309 * tests/help-version: Likewise.
310 * tests/uniq/Test.pm: Don't perform the pipe-reading version of test
311 118, since it emits "cat: write error: Broken pipe" on some systems.
313 2006-12-06 Paul Eggert <eggert@cs.ucla.edu>
315 * NEWS: Document the cp -p fix for special bits.
316 * src/copy.c (set_owner): Now returns a three-way result, so
317 that the caller can clear the special bits. All callers changed.
318 (copy_reg): Don't set the special bits if chown failed.
319 (copy_internal): Likewise.
320 * tests/cp/special-bits: Test this fix.
322 2006-12-06 Paul Eggert <eggert@cs.ucla.edu>
324 * NEWS: Document the cp --preserve=ownership fix.
325 * m4/jm-macros.m4 (coreutils_MACROS): Check for fchmod.
326 * src/copy.c (fchmod_or_lchmod): New function.
327 (copy_reg): New arg OMITTED_PERMISSIONS. All uses changed.
328 Omit confusing and unused ", dst_mode" arg to 'open' without O_CREAT.
329 When creating a file, use O_EXCL, so we're more likely to detect
330 funny business by other processes. At the end, if permissions
331 were omitted, chmod them back in.
332 (copy_internal): If the ownership might change, omit some permissions
333 at first, then restore them after chowning the file.
334 * src/cp.c (make_dir_parents_private): Likewise.
335 * src/copy.c (cached_umask): New function.
336 * src/copy.h (cached_umask): New decl.
338 2006-12-06 Jim Meyering <jim@meyering.net>
340 Make the output of "make check" more reproducible.
341 * tests/misc/date-sec: Don't emit any diagnostic about sleeping.
343 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
345 * src/install.c (install_file_in_file): Preserve time stamps
346 before changing owner or file mode bits, for consistency with
347 other coreutils programs.
349 2006-12-03 Jim Meyering <jim@meyering.net>
351 * tests/misc/date-sec: Output a fixed string.
353 * NEWS: du --one-file-system (-x) would skip subdirectories of any
354 directory listed as second or subsequent command line argument.
355 * tests/du/one-file-system: New file. Test for today's fts.c fix.
356 * tests/du/Makefile.am (TESTS): Add one-file-system.
357 Reported by Mike Frysinger.
359 2006-12-02 Jim Meyering <jim@meyering.net>
361 * tests/du/basic: Generate 4KB file simply using printf, rather than
362 seq+head. This avoids a spurious "Broken pipe" diagnostic from seq.
364 2006-11-28 Jim Meyering <jim@meyering.net>
366 * tests/mv/no-target-dir: Detect a buggy rename syscall. If found,
367 skip this test. This happens at least on ia64 linux-2.4.19 w/ext3.
368 Reported by Matthew Woehlke.
370 * tests/mv/dir2dir: Also accept EBUSY.
371 Reported by Matthew Woehlke.
373 2006-11-27 Jim Meyering <jim@meyering.net>
375 * Makefile.maint (patch-check): Rewrite to diagnose failure.
376 * src/c99-to-c89.diff: Adjust shred.c offsets.
378 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
380 Improve the check for departures from C89, and fix the departures
382 * Makefile.maint (my-distcheck): Also check for C89 compatibility
383 as best we can with GCC.
384 * src/stat.c (PRINTF_OPTION): Omit comma before } in enum
385 declaration; C89 doesn't allow this.
386 * src/dcgen: Don't generate string literals longer than
387 what C89 requires support for.
388 * src/cut.c (usage): Don't use string literals longer than
389 what C89 requires support for.
390 * src/date.c (usage): Likewise.
391 * src/dd.c (usage): Likewise.
392 * src/du.c (usage): Likewise.
393 * src/ls.c (usage): Likewise.
394 * src/od.c (usage): Likewise.
395 * src/readlink.c (usage): Likewise.
396 * src/seq.c (usage): Likewise.
397 * src/shred.c (usage): Likewise.
399 2006-11-26 Mike Frysinger <vapier@gentoo.org>
401 Recognize new archive, audio and image formats.
402 Give audio files a separate color.
403 * src/dircolors.hin: Add comments for common .sh and .csh scripts.
404 Add .bz2, .tbz2, .tz, .rar, .ace, .zoo, .cpio, .7z, .rz as archive
405 suffixes. Add .mng, .pcx, .m2v, .mkv, .ogm, .mp4, .m4v, .mp4v, .vob,
406 .qt, .nuv, .wmv, .asf, .rm, .rmvb, .flc, .yuv as image formats.
407 Add .aac, .au, .mid, .midi, .mka, .ra as audio suffixes. Change
408 audio color to 00;36 to differentiate from image/video color.
410 2006-11-26 Jim Meyering <jim@meyering.net>
412 * Makefile.maint (patch-check): Compile patched sources with
413 CFLAGS='-Wdeclaration-after-statement -Werror', to ensure that
414 no violations remain.
416 * src/c99-to-c89.diff: Remove 3 bogus hunks.
418 * src/remove.c (fd_to_subdirp): Remove unused parameter, ds.
421 * src/c99-to-c89.diff: Adjust for changes in rm.c and in remove.c.
423 * src/rm.c (main): Remove unnecessary (assuming C99) braces.
425 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
427 Port parts of the code to C89 to minimize the need for c99-to-c89.diff,
428 while trying to retain the readability of C99 as much as possible.
429 * src/remove.c (rm_1): Remove decl of local, fd_cwd.
430 Replace each of two uses with literal AT_FDCWD.
431 (cache_stat_init): Return its argument, for convenience.
432 Update the caller in remove_dir.
433 (AD_pop_and_chdir): Return prev_dir rather than storing through
434 a pointer argument. All uses changed.
435 (AD_ensure_initialized): New function.
436 (AD_mark_helper): Use it, to avoid the need for declaration
438 (rm): Move cycle_check_init call into callee...
440 Use an else clause in place of a "continue" statement.
441 (close_preserve_errno): Remove.
442 (fd_to_subdirp): Rewrite to avoid the need for decl after statement.
444 2006-11-25 Jim Meyering <jim@meyering.net>
446 * Makefile.am (EXTRA_DIST): Remove announce-gen from here, too.
448 2006-11-24 Theodoros V. Kalamatianos <thkala@softlab.ece.ntua.gr> (tiny change)
450 * tests/du/inacc-dest: Skip this test when running as root.
452 2006-11-23 Jim Meyering <jim@meyering.net>
454 * announce-gen: Remove file. It's moving to gnulib.
455 * bootstrap: Pull it from gnulib/build-aux instead.
456 * Makefile.maint (announcement): Reflect move to ./build-aux.
458 * tests/du/deref-args: Use "printf %65536s x" to create a 64KB file,
459 rather than a pipeline that would sometimes evoke a diagnostic
460 like "seq: write error: Broken pipe".
462 * tests/help-version: Suppress dd transfer rate output.
464 * configure.ac (AC_INIT): Bump to 6.7-pre, not 6.6-pre.
466 2006-11-22 Jim Meyering <jim@meyering.net>
468 * announce-gen (print_news_deltas): Fix silly, but harmless typo:
469 change "(:?..." to "(?:..." in regexps.
471 Post-release version change.
472 * NEWS: Add a line for 6.7-pre.
473 * configure.ac (AC_INIT): Bump to 6.7 and add "-pre" suffix.
476 * NEWS: Record release date. Remove "-pre" suffix.
477 * configure.ac (AC_INIT): Remove "-pre" suffix from version string.
479 * announce-gen: Remove unused --release-archive-directory option.
480 (print_news_deltas): Accept new adjective, "Noteworthy", in addition
482 Match version numbers in NEWS using tighter regular expressions.
483 (main): Require the --gpg-key-id=ID option.
484 * Makefile.maint (announcement): Don't use now-removed
485 --release-archive-directory=... option.
487 * NEWS: Mention the three noteworthy changes, all fixed via gnulib.
489 2006-11-21 Jim Meyering <jim@meyering.net>
491 * tests/rm/one-file-system: Upon setup failure (e.g., mount failure),
492 skip the test rather than failing. Reported by Michael Deutschmann.
494 * tests/rm/fail-eperm: Use the "(exit N); exit N" idiom,
495 rather than just "exit N".
497 Arrange for "make check-root" to run the new root-only test.
498 * tests/Makefile.am (t7): New target, to run tests/ls/nameless-uid.
501 2006-11-20 Jim Meyering <jim@meyering.net>
503 Add a root-only test for today's lib/idcache.c fix.
504 * tests/ls/nameless-uid: New file.
505 * tests/ls/Makefile.am (TESTS): Add nameless-uid.
506 (TESTS_ENVIRONMENT): Add PERL to the list.
508 2006-11-19 Jim Meyering <jim@meyering.net>
510 * tests/tail-2/assert-2: Mark as a very-expensive test, because I
511 find the 7-second sleep annoyingly long. Besides, this test is
512 probably far too specific and timing sensitive ever to trigger again.
513 * tests/tail-2/assert: Likewise.
515 Post-release version change.
516 * NEWS: Add a line for 6.6-pre.
517 * configure.ac (AC_INIT): Bump to 6.6 and add "-pre" suffix.
520 * NEWS: Record release date. Remove "-cvs" suffix.
521 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
523 2006-11-18 Jim Meyering <jim@meyering.net>
525 "ln --backup f f" produces a misleading diagnostic:
526 ln: creating hard link `f' => `f': No such file or directory
527 * src/ln.c (do_link): Give a better diagnostic in this unusual case.
528 (do_link): Rename local: s/lstat_ok/dest_lstat_ok/.
529 * tests/ln/Makefile.am (TESTS): Add hard-backup.
530 * tests/ln/hard-backup: New test for the above.
531 * NEWS: Mention this fix.
533 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
535 * bootstrap.conf (gnulib_modules): Add sys_stat, since we use it
537 * lib/.cvsignore, lib/.gitignore: Add root-dev-ino.c, root-dev-ino.h.
538 * m4/.cvsignore, m4/.gitignore: Add root-dev-ino.m4.
539 * src/ls.c (DIRED_FPUTS_LITERAL, PUSH_CURRENT_DIRED_POS):
540 Omit unnecessary parenthesization of args.
541 * src/od.c (EQUAL_BLOCKS): Likewise.
542 * src/system.h (STREQ, ASSIGN_STRDUPA): Likewise.
544 2006-11-16 Jim Meyering <jim@meyering.net>
546 * tests/tail-2/append-only: If chattr +a fails, exit 77 (to tell
547 automake we're skipping this test), and give a diagnostic to tell
548 the user the same thing. Reported by Mike Grayson.
550 2006-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
552 * man/Makefile.am (dist_man_MANS): Replace all optional manpages
553 with `$(MAN)', computed at configure time; also, list them ...
554 (optional_mans): ... in this new variable.
555 (max_aux, EXTRA_DIST): Ensure that we distribute all manpages.
557 2006-11-16 Jim Meyering <jim@meyering.net>
559 Help valgrind see that there is no leak in dd.c.
560 * src/dd.c (dd_copy): Declare real_buf and real_obuf to be static,
561 so we need not free them at all. This is easier than freeing
562 both buffers at each of the early "return"s.
564 * src/csplit.c (load_buffer): Plug an inconsequential leak.
566 2006-11-15 Jim Meyering <jim@meyering.net>
568 * .x-po-check: Exclude gl/ files. Otherwise, po-check would
569 complain that some of gl/lib/*.[ch] are not listed in POTFILES.in.
571 2006-11-14 Jim Meyering <jim@meyering.net>
573 * gl/m4/root-dev-ino.m4: Now that this is part of a real "module",
574 remove the now-unnecessary use of AC_LIBSOURCES.
576 Adapt to new version of gnulib-tool.
577 * gl/modules/root-dev-ino: New file.
578 * lib/root-dev-ino.c, lib/root-dev-ino.h: Move these files ...
579 * gl/lib/root-dev-ino.c, gl/lib/root-dev-ino.h: ... to here.
580 * m4/root-dev-ino.m4: Move this file ...
581 * gl/m4/root-dev-ino.m4: ... to here.
583 * bootstrap.conf (gnulib_modules): Add root-dev-ino.
585 2006-11-13 Jim Meyering <jim@meyering.net>
587 * src/sort.c (insertkey): Use xmemdup, rather than xmalloc+assignment.
590 Plug another technically-unimportant leak in sort.
591 * src/sort.c (main): Don't allocate memory for each new key here.
592 (insertkey): Allocate memory for each key here, instead.
593 (key_init): Rename from new_key. Don't allocate.
595 * src/sort.c (main): Plug a tiny memory leak.
596 Move declaration of local "minus" down to be nearer point of use.
598 2006-11-12 Jim Meyering <jim@meyering.net>
600 du would exit early, when encountering an inaccessible directory
601 Reported by Mike Frysinger, in
602 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8831
603 * tests/du/inacc-dest: New test, based on an example from Mike Frysinger.
604 * tests/chgrp/no-x: Remove the "fts_read failed: ..."
605 diagnostic from the expected output when using native fdopendir.
606 * tests/chmod/no-x: Likewise.
607 * tests/du/no-x: Likewise.
608 * NEWS: Mention this bug fix.
609 * tests/du/Makefile.am (TESTS): Add inacc-dest.
611 * Makefile.maint (sc_cast_of_x_alloc_return_value): Add an exclusion
614 Avoid false-positive when testing via valgrind.
615 * tests/mv/atomic: Grep strace output for a more specific pattern
616 than just "unlink", since that got a false positive when testing
617 under valgrind: unlink("/tmp/valgrind_proc_9657_cmdline_A51E9991") = 0
618 * tests/mv/Makefile.am (TESTS_ENVIRONMENT): Define EGREP.
620 2006-10-28 Jim Meyering <jim@meyering.net>
622 * Makefile.maint (patch-check): Make it easier to regenerate
623 the src/c99-to-c89.diff file. E.g., I do this:
624 make patch-check REGEN_PATCH=1; ediff src/c99-to-c89.diff new-diff
626 * src/c99-to-c89.diff: Update to reflect new offsets in rm.c.
628 2006-10-26 Jim Meyering <jim@meyering.net>
630 * src/system.h (ftello): Add a compile-time check for the highly
631 unlikely condition of off_t narrower than long int, rather than
632 handling it at run time. Based on a patch from Paul Eggert.
634 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
636 * tests/chmod/c-option: When double-quoting part of a word, prefer
637 to double-quote the whole word. This is a bit easier to read (at
638 least for me), and in some cases it avoids a shell bug with Tru64
639 4.0 sh reported by Nelson H. F. Beebe. For example, instead of
640 "$abs_srcdir"/../setgid-check we now write
641 "$abs_srcdir/../setgid-check".
642 * tests/cp/cp-parents: Likewise.
643 * tests/du/inaccessible-cwd: Likewise.
644 * tests/du/long-from-unreadable: Likewise.
645 * tests/install/basic-1: Likewise.
646 * tests/install/trap: Likewise.
647 * tests/misc/close-stdout: Likewise.
648 * tests/mkdir/concurrent-1: Likewise.
649 * tests/mkdir/p-1: Likewise.
650 * tests/mkdir/p-3: Likewise.
651 * tests/mkdir/parents: Likewise.
652 * tests/mkdir/perm: Likewise.
653 * tests/readlink/can-e: Likewise.
654 * tests/readlink/can-f: Likewise.
655 * tests/readlink/can-m: Likewise.
656 * tests/rm/inaccessible: Likewise.
657 * tests/rm/unread3: Likewise.
658 * tests/touch/no-create-missing: Likewise.
660 * lib/.cvsignore: Add uinttostr.c.
662 2006-10-25 Jim Meyering <jim@meyering.net>
664 Portability to Tru64 V4.0.
665 * src/system.h (ftello) [!HAVE_FSEEKO && !defined ftello]:
666 Define inline replacement function.
667 This (along with a yesterday's fix for autoconf's
668 _AC_SYS_LARGEFILE_MACRO_VALUE macro) makes it so coreutils
669 now builds once more on Tru64 V4.0. Reported by Nelson Beebe.
671 2006-10-25 Bruno Haible <bruno@clisp.org>
673 * src/cat.c (infile): Add "const" to declaration.
674 * src/csplit.c (prefix): Likewise.
675 * src/printf.c (cfcc_msg): Likewise.
676 * src/tail.c (valid_file_spec): Likewise.
677 * src/cut.c (cut_file): Likewise, for a parameter.
678 * src/expr.c (str_value): Likewise.
679 * src/fold.c (fold_file): Likewise.
680 * src/pr.c (init_header): Likewise.
681 * src/dircolors.c (dc_parse_stream): Likewise, for a local.
682 * src/tr.c (make_printable_str): Likewise.
683 * src/nl.c (body_type, header_type, footer_type, current_type):
684 (separator_str, build_type_arg, nl_file): Likewise, for many.
685 * src/paste.c (main): Don't assign a read-only string to 'optarg'.
686 * src/tac.c (separator, tac_seekable, copy_to_temp): Likewise.
688 2006-10-25 Jim Meyering <jim@meyering.net>
690 * tests/sample-test: Update copyright year list to include only
691 the current year, since this is what I'll want in any new test.
693 2006-10-24 Jim Meyering <jim@meyering.net>
695 * src/c99-to-c89.diff: Update to reflect new offsets.
697 * NEWS: new feature: rm accepts new option: --one-file-system
698 Suggested by Steve McIntyre in <http://bugs.debian.org/392925>.
699 * src/remove.h (struct rm_options) [one_file_system]: New member.
700 * src/rm.c (rm_option_init): Initialize it.
701 (usage): Document the option.
702 * src/mv.c (rm_option_init): Likewise.
703 * src/remove.c (remove_dir): With --one-file-system and --recursive,
704 for each directory command line argument, do not affect a file system
705 different from that of the starting directory. And give a diagnostic.
706 * src/rm.c (ONE_FILE_SYSTEM): New enum.
707 (main): Handle new option.
708 * tests/rm/one-file-system: Test the above.
709 * tests/rm/Makefile.am (TESTS): Add one-file-system.
710 * tests/Makefile.am (check-root): Add the rm/one-file-system
712 (EXTRA_DIST): Add other-fs-tmpdir.
714 * tests/mv/setup: Removed. Renamed to...
715 * tests/other-fs-tmpdir: ...this new file.
716 * tests/mv/Makefile.am (EXTRA_DIST): Remove setup.
717 * tests/mv/acl: Reflect renaming: use ../other-fs-tmpdir.
718 * tests/mv/backup-is-src: Likewise.
719 * tests/mv/hard-link-1: Likewise.
720 * tests/mv/leak-fd: Likewise.
721 * tests/mv/mv-special-1: Likewise.
722 * tests/mv/part-fail: Likewise.
723 * tests/mv/part-hardlink: Likewise.
724 * tests/mv/part-rename: Likewise.
725 * tests/mv/part-symlink: Likewise.
726 * tests/mv/partition-perm: Likewise.
727 * tests/mv/to-symlink: Likewise.
728 * tests/mv/into-self-2: Likewise.
730 Don't let a failure in one test stop "make -k" from running the others.
731 * tests/Makefile.am (t1 t2 t3 t4 t5): New targets.
732 (check-root): Depend on them, rather than executing the five
733 commands in a single rule. Reported by Greg Schafer.
735 2006-10-23 Bob Proulx <bob@proulx.com> (tiny change)
737 * Makefile.maint (alpha beta major): Use a better log message for
738 the automatic commit of .prev-version.
740 2006-10-23 Jim Meyering <jim@meyering.net>
742 * tests/misc/pwd-long: Undo last change, since it made Perl invoke
743 pwd via a shell. Instead, ensure that the absolute name of the
744 pwd binary consists solely of reasonable characters.
745 Whoops. Don't exec the perl script. Otherwise, the sh-trap-based
746 clean-up code isn't run.
748 * NEWS: Add a line for 6.5-cvs.
749 * configure.ac (AC_INIT): Bump to 6.5 and add "-cvs" suffix.
751 2006-10-22 Jim Meyering <jim@meyering.net>
755 * NEWS: Record the 6.4 release date.
756 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
758 * Makefile.maint: Complete the adaptation to function with a working
759 directory that is using git (rather than cvs) for version control.
761 2006-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
763 * tests/chmod/c-option: Double-quote instances of `$abs_srcdir'.
764 * tests/cp/cp-parents: Likewise.
765 * tests/mkdir/parents: Likewise.
766 * tests/mkdir/perm: Likewise.
768 * tests/sample-test: Quote variables containing absolute build
769 tree paths. In the cleanup trap, make sure `cd' succeeds before
770 `chmod'ing and `rm'ing the temporary files.
771 * tests/chgrp/basic: Likewise.
772 * tests/chgrp/deref: Likewise.
773 * tests/chgrp/no-x: Likewise.
774 * tests/chgrp/posix-H: Likewise.
775 * tests/chgrp/recurse: Likewise.
776 * tests/chmod/c-option: Likewise.
777 * tests/chmod/equal-x: Likewise.
778 * tests/chmod/equals: Likewise.
779 * tests/chmod/inaccessible: Likewise.
780 * tests/chmod/no-x: Likewise.
781 * tests/chmod/octal: Likewise.
782 * tests/chmod/setgid: Likewise.
783 * tests/chmod/umask-x: Likewise.
784 * tests/chmod/usage: Likewise.
785 * tests/chown/basic: Likewise.
786 * tests/chown/deref: Likewise.
787 * tests/chown/separator: Likewise.
788 * tests/cp/acl: Likewise.
789 * tests/cp/backup-1: Likewise.
790 * tests/cp/backup-dir: Likewise.
791 * tests/cp/backup-is-src: Likewise.
792 * tests/cp/cp-HL: Likewise.
793 * tests/cp/cp-deref: Likewise.
794 * tests/cp/cp-i: Likewise.
795 * tests/cp/cp-mv-backup: Likewise.
796 * tests/cp/cp-parents: Likewise.
797 * tests/cp/deref-slink: Likewise.
798 * tests/cp/dir-rm-dest: Likewise.
799 * tests/cp/dir-slash: Likewise.
800 * tests/cp/dir-vs-file: Likewise.
801 * tests/cp/fail-perm: Likewise.
802 * tests/cp/into-self: Likewise.
803 * tests/cp/link: Likewise.
804 * tests/cp/link-no-deref: Likewise.
805 * tests/cp/link-preserve: Likewise.
806 * tests/cp/no-deref-link1: Likewise.
807 * tests/cp/no-deref-link2: Likewise.
808 * tests/cp/no-deref-link3: Likewise.
809 * tests/cp/perm: Likewise.
810 * tests/cp/preserve-2: Likewise.
811 * tests/cp/r-vs-symlink: Likewise.
812 * tests/cp/same-file: Likewise.
813 * tests/cp/slink-2-slink: Likewise.
814 * tests/cp/sparse: Likewise.
815 * tests/cp/special-bits: Likewise.
816 * tests/cp/src-base-dot: Likewise.
817 * tests/cp/symlink-slash: Likewise.
818 * tests/dd/not-rewound: Likewise.
819 * tests/dd/skip-seek2: Likewise.
820 * tests/dd/unblock-sync: Likewise.
821 * tests/du/2g: Likewise.
822 * tests/du/8gb: Likewise.
823 * tests/du/basic: Likewise.
824 * tests/du/deref: Likewise.
825 * tests/du/deref-args: Likewise.
826 * tests/du/exclude: Likewise.
827 * tests/du/fd-leak: Likewise.
828 * tests/du/hard-link: Likewise.
829 * tests/du/inaccessible-cwd: Likewise.
830 * tests/du/long-from-unreadable: Likewise.
831 * tests/du/long-sloop: Likewise.
832 * tests/du/no-deref: Likewise.
833 * tests/du/no-x: Likewise.
834 * tests/du/restore-wd: Likewise.
835 * tests/du/slash: Likewise.
836 * tests/du/slink: Likewise.
837 * tests/du/trailing-slash: Likewise.
838 * tests/du/two-args: Likewise.
839 * tests/fmt/long-line: Likewise.
840 * tests/install/basic-1: Likewise.
841 * tests/install/create-leading: Likewise.
842 * tests/install/d-slashdot: Likewise.
843 * tests/install/trap: Likewise.
844 * tests/ln/misc: Likewise.
845 * tests/ln/target-1: Likewise.
846 * tests/ls/color-dtype-dir: Likewise.
847 * tests/ls/dangle: Likewise.
848 * tests/ls/dired: Likewise.
849 * tests/ls/file-type: Likewise.
850 * tests/ls/follow-slink: Likewise.
851 * tests/ls/infloop: Likewise.
852 * tests/ls/inode: Likewise.
853 * tests/ls/m-option: Likewise.
854 * tests/ls/no-arg: Likewise.
855 * tests/ls/recursive: Likewise.
856 * tests/ls/rt-1: Likewise.
857 * tests/ls/stat-dtype: Likewise.
858 * tests/ls/stat-failed: Likewise.
859 * tests/ls/stat-vs-dirent: Likewise.
860 * tests/misc/cat-proc: Likewise.
861 * tests/misc/close-stdout: Likewise.
862 * tests/misc/csplit: Likewise.
863 * tests/misc/date-sec: Likewise.
864 * tests/misc/false-status: Likewise.
865 * tests/misc/head-c: Likewise.
866 * tests/misc/head-pos: Likewise.
867 * tests/misc/mknod: Likewise.
868 * tests/misc/nl: Likewise.
869 * tests/misc/nohup: Likewise.
870 * tests/misc/pathchk1: Likewise.
871 * tests/misc/printf: Likewise.
872 * tests/misc/printf-hex: Likewise.
873 * tests/misc/pwd-long: Likewise.
874 * tests/misc/shuf: Likewise.
875 * tests/misc/sort-rand: Likewise.
876 * tests/misc/split-a: Likewise.
877 * tests/misc/split-fail: Likewise.
878 * tests/misc/split-l: Likewise.
879 * tests/misc/stat-fmt: Likewise.
880 * tests/misc/tac-continue: Likewise.
881 * tests/misc/wc-files0: Likewise.
882 * tests/mkdir/concurrent-1: Likewise.
883 * tests/mkdir/p-1: Likewise.
884 * tests/mkdir/p-2: Likewise.
885 * tests/mkdir/p-3: Likewise.
886 * tests/mkdir/p-slashdot: Likewise.
887 * tests/mkdir/p-thru-slink: Likewise.
888 * tests/mkdir/p-v: Likewise.
889 * tests/mkdir/parents: Likewise.
890 * tests/mkdir/perm: Likewise.
891 * tests/mkdir/t-slash: Likewise.
892 * tests/mv/acl: Likewise.
893 * tests/mv/atomic: Likewise.
894 * tests/mv/backup-dir: Likewise.
895 * tests/mv/childproof: Likewise.
896 * tests/mv/diag: Likewise.
897 * tests/mv/dir-file: Likewise.
898 * tests/mv/dir2dir: Likewise.
899 * tests/mv/dup-source: Likewise.
900 * tests/mv/hard-2: Likewise.
901 * tests/mv/hard-3: Likewise.
902 * tests/mv/hard-4: Likewise.
903 * tests/mv/hard-link-1: Likewise.
904 * tests/mv/hard-verbose: Likewise.
905 * tests/mv/i-2: Likewise.
906 * tests/mv/i-3: Likewise.
907 * tests/mv/i-4: Likewise.
908 * tests/mv/i-5: Likewise.
909 * tests/mv/i-link-no: Likewise.
910 * tests/mv/into-self-4: Likewise.
911 * tests/mv/leak-fd: Likewise.
912 * tests/mv/mv-special-1: Likewise.
913 * tests/mv/no-target-dir: Likewise.
914 * tests/mv/part-fail: Likewise.
915 * tests/mv/part-hardlink: Likewise.
916 * tests/mv/part-rename: Likewise.
917 * tests/mv/part-symlink: Likewise.
918 * tests/mv/partition-perm: Likewise.
919 * tests/mv/perm-1: Likewise.
920 * tests/mv/reply-no: Likewise.
921 * tests/mv/trailing-slash: Likewise.
922 * tests/mv/update: Likewise.
923 * tests/od/od-N: Likewise.
924 * tests/od/x8: Likewise.
925 * tests/readlink/can-e: Likewise.
926 * tests/readlink/can-f: Likewise.
927 * tests/readlink/can-m: Likewise.
928 * tests/readlink/rl-1: Likewise.
929 * tests/rm/cycle: Likewise.
930 * tests/rm/dangling-symlink: Likewise.
931 * tests/rm/deep-1: Likewise.
932 * tests/rm/dir-no-w: Likewise.
933 * tests/rm/dir-nonrecur: Likewise.
934 * tests/rm/dot-rel: Likewise.
935 * tests/rm/empty-inacc: Likewise.
936 * tests/rm/f-1: Likewise.
937 * tests/rm/fail-2eperm: Likewise.
938 * tests/rm/hash: Likewise.
939 * tests/rm/i-1: Likewise.
940 * tests/rm/i-no-r: Likewise.
941 * tests/rm/ignorable: Likewise.
942 * tests/rm/inaccessible: Likewise.
943 * tests/rm/interactive-always: Likewise.
944 * tests/rm/interactive-once: Likewise.
945 * tests/rm/ir-1: Likewise.
946 * tests/rm/isatty: Likewise.
947 * tests/rm/no-give-up: Likewise.
948 * tests/rm/r-1: Likewise.
949 * tests/rm/r-2: Likewise.
950 * tests/rm/r-3: Likewise.
951 * tests/rm/r-4: Likewise.
952 * tests/rm/readdir-bug: Likewise.
953 * tests/rm/rm1: Likewise.
954 * tests/rm/rm2: Likewise.
955 * tests/rm/rm3: Likewise.
956 * tests/rm/rm4: Likewise.
957 * tests/rm/rm5: Likewise.
958 * tests/rm/sunos-1: Likewise.
959 * tests/rm/unread2: Likewise.
960 * tests/rm/unread3: Likewise.
961 * tests/rmdir/fail-perm: Likewise.
962 * tests/rmdir/t-slash: Likewise.
963 * tests/shred/exact: Likewise.
964 * tests/shred/remove: Likewise.
965 * tests/sum/sysv: Likewise.
966 * tests/tail-2/append-only: Likewise.
967 * tests/tail-2/assert: Likewise.
968 * tests/tail-2/assert-2: Likewise.
969 * tests/tail-2/big-4gb: Likewise.
970 * tests/tail-2/fflush: Likewise.
971 * tests/tail-2/infloop-1: Likewise.
972 * tests/tail-2/proc-ksyms: Likewise.
973 * tests/tail-2/start-middle: Likewise.
974 * tests/tail-2/tail-n0f: Likewise.
975 * tests/tee/basic: Likewise.
976 * tests/tee/dash: Likewise.
977 * tests/touch/fail-diag: Likewise.
978 * tests/touch/no-create-missing: Likewise.
979 * tests/touch/not-owner: Likewise.
980 * tests/touch/obsolescent: Likewise.
981 * tests/touch/read-only: Likewise.
982 * tests/touch/relative: Likewise.
984 2006-10-21 Jim Meyering <jim@meyering.net>
986 * NEWS: (cp --backup fix): Fix a typo.
988 * .gitignore: Remove some references to files in subdirectories.
989 * build-aux/.gitignore, doc/.gitignore, lib/.gitignore: New files.
990 * m4/.gitignore, po/.gitignore, src/.gitignore: Likewise.
992 * src/copy.c (copy_internal): Add a comment saying why we prefer
995 Enable an fts optimization (call lstat only for directories,
996 on some file system types) also with the --preserve-root option
998 * src/chown-core.c (change_file_owner): Compare fts_statp-based
999 dev/ino against root dev/ino only for directories.
1000 (chown_files): Don't let the root_dev_ino setting influence whether
1001 we use FTS_NOSTAT: fts always sets *fts_statp for a directory.
1003 2006-10-20 Jim Meyering <jim@meyering.net>
1005 * src/od.c (usage): Change description of default to use "-w16",
1006 not the now-invalid "-w 16" syntax. From Dan Jacobson.
1008 2006-10-19 Jim Meyering <jim@meyering.net>
1010 * bootstrap: Add names to each .gitignore file (if it exists)
1011 as well as to .cvsignore.
1013 * Makefile.maint (po-check): This rule didn't detect the new use
1014 of "gettext" (as opposed to the use of "_" everywhere else) in
1015 lib/xstrtol.h. Adjust the grep regexp so that now it does.
1017 2006-10-18 Paul Eggert <eggert@cs.ucla.edu>
1019 * src/copy.c (copy_reg): Rewrite slightly to avoid duplicate code
1020 when opening dst_name.
1021 (copy_reg, copy_internal): Use (SYSCALL != 0) rather than plain
1022 (SYSCALL) to test for failure in a system call.
1024 * src/copy.c (copy_internal): Use mknod rather than mkfifo to copy
1025 a fifo. This preserves the special mode bits on Solaris 10, which
1026 is compatible with what Solaris 10 cp -R does.
1028 * src/copy.c (copy_internal): Remove redundant and confusing local
1031 * src/copy.c (copy_internal): Don't pass mkdir a mode greater than
1032 7777. This matches historical 'cp' behavior and avoids some
1033 (though not all) implementation-defined behavior of mkdir.
1034 * src/cp.c (make_dir_parents_private): Likewise.
1035 * src/copy.c (copy_internal): Don't pass 'open' a mode greater
1036 than 777. This is required by POSIX. It doesn't make any difference
1037 in actual behavior on any host that I know of.
1039 2006-10-17 Jim Meyering <jim@meyering.net>
1041 * src/dd.c (usage): Use two spaces (not one) to separate the
1042 "fdatasync" option string from its description, so help2man formats
1043 the derived man page properly. Reported by Samuel Thibault
1044 in <http://bugs.debian.org/393649>.
1046 2006-10-16 Jim Meyering <jim@meyering.net>
1048 * .x-sc_trailing_blank: Remove names of files that are no longer
1051 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
1053 * src/groups.sh (version): Reword message to match the other programs.
1054 Problem reported by Eric Blake.
1056 2006-10-14 Jim Meyering <jim@meyering.net>
1058 * Makefile.maint (headers_with_interesting_macro_defs): Define.
1059 (.re-defmac, sc_always_defined_macros): New rules.
1061 * src/system.h (EXIT_FAILURE, EXIT_SUCCESS): Remove definitions.
1062 Instead, include "exit.h". This hereby retires the work-around for
1063 "Sony NEWS-OS Release 4.0C"'s bug due to "#define EXIT_FAILURE 0".
1065 * src/cksum.c (uint_fast32_t): Don't define.
1066 Instead, include <stdint.h>.
1068 * src/pinky.c (S_IWGRP): Don't define.
1069 It's already defined by "stat-macros.h" (included via system.h).
1071 * Makefile.cfg: Remove cruft that's now handled via bootstrap.
1072 * Makefile.maint: Likewise, remove these targets/rules/variables:
1073 (local_updates, update, cvs-update, wget_files, get-targets): Remove.
1074 (cvs_files, wget-update, automake_repo): Likewise.
1075 Move the comment about cvsu to build-aux/vc-list-files,
1076 where cvsu is actually used.
1078 * Makefile.maint (cvs-update): Use $(CVS), not "cvs".
1080 Work also when the working directory (with e.g. coreutils sources)
1081 is version controlled with git, rather than CVS.
1082 * bootstrap (CVS_only_file): Test for the existence of README-cvs,
1084 In messages and comments, say e.g., "checked-out sources",
1085 rather than "CVS sources".
1086 (version_controlled_file): New function. Work for git as well as
1087 for CVS. Don't use grep's -q option.
1088 (slurp): Call it here, in place of CVS-specific code.
1090 * NEWS: cp -r --backup dir1 dir2, would rename an existing dir1/dir2
1092 * src/copy.c (copy_internal): Although we do create a backup of each
1093 destination directory when in move mode, don't do that when copying.
1094 Reported by Peter Breitenlohner, in
1095 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8616>.
1096 * tests/cp/backup-dir: New file. Test for the above.
1097 * tests/cp/Makefile.am (TESTS): Add backup-dir.
1099 2006-10-13 Jim Meyering <jim@meyering.net>
1101 More chown/chgrp dereferencing-related fixes.
1102 * src/chown-core.c (change_file_owner): Don't use fts_statp if
1103 we're dereferencing symlinks.
1104 Reverse conjuncts, so that we use dereference file_stats
1105 (aka ent->fts_statp) only *after* we've confirmed that
1106 chopt->affect_symlink_referent is true. Otherwise, we might
1107 use ent->fts_statp uninitialized.
1108 Don't turn on FTS_NOSTAT when dereferencing symlinks.
1109 * tests/chown/deref: Update the expected diagnostic, now that
1110 this test case (trying to use "chown --dereference ..." on a
1111 dangling symlink) takes a different code path.
1113 2006-10-13 Paul Eggert <eggert@cs.ucla.edu>
1115 Sync from Bison, as follows:
1117 2006-10-01 Paul Eggert <eggert@cs.ucla.edu>
1119 Fix problems with translating English-language diagnostics.
1120 * bootstrap: Fix bug introduced in recent bootstrap changes, with
1121 respect to bison-runtime pot generation. The YY_ stuff
1122 wasn't being captured.
1124 2006-10-13 Jim Meyering <jim@meyering.net>
1126 * src/chown-core.c (change_file_owner): Use fstatat, not stat,
1127 now that we're using fts_open with FTS_CWDFD.
1128 * tests/chgrp/posix-H: Add --preserve-root to an invocation of
1129 chgrp, to exercise the above fix.
1130 * NEWS: Mention the above.
1132 * src/du-tests: Clean up a little, though it's still not portable.
1134 * .vg-suppressions: Add 3 more for debian unstable.
1136 * tests/ls/Test.pm: Remove long-unused file.
1137 * Makefile.am (EXTRA_DIST): Add bootstrap.conf.
1138 Suggestions from Bruno Haible.
1140 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1142 * Makefile.am (THANKS-to-translators): Add missing $(srcdir).
1143 (MAINTAINERCLEANFILES): Add .kludge-stamp.
1144 * man/Makefile.am (MAINTAINERCLEANFILES): Typo $(dist_man_MANS)
1145 instead of $(man_MANS).
1147 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1149 * configure.ac: Avoid compiler warnings about default return
1150 type in function definitions and unused variables in tests.
1151 * src/who.c (print_user) [HAVE_UT_HOST]: hostlen is only needed
1152 if this is #defined.
1154 2006-10-12 Jim Meyering <jim@meyering.net>
1156 * configure.ac: Reflect s/gl_MACROS/coreutils_MACROS/ renaming.
1157 Call gl_INIT directly, rather than through the above.
1159 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
1161 * bootstrap (symlink_to_gnulib): Fix bug: the dot_dots shell
1162 variable was sometimes used without being initialized. This
1163 messed up the installation of the INSTALL file in some cases.
1165 2006-10-11 Jim Meyering <jim@meyering.net>
1167 * src/ls.c (usage): Correct description of -s, --size.
1168 It works even without -l. Suggestion from Karl Berry.
1170 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
1172 * src/ls.c (quote_name): Use initializer rather than memset to
1173 initialize an object to zero. This is easier to read and is less
1174 likely to introduce a runtime error due to a mixup. It causes
1175 gcc -W to issue a warning, but you can work around this by
1176 appending -Wno-missing-field-initializers.
1177 * src/pathchk.c (portable_chars_only): Likewise.
1178 * src/shred.c (main): Likewise.
1179 * src/stty.c (main): Likewise.
1180 * src/tr.c (card_of_complement): Likewise.
1181 * src/wc.c (wc): Likewise.
1183 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
1185 * src/sort.c (usage): Mention again that sort fields are origin 1.
1187 * NEWS: Fix typo: iso-8602 -> iso-8601. Problem reported by
1190 * bootstrap (usage, main program, symlink_to_gnulib): Add option
1191 --copy. Inspired by a suggestion from Bruno Haible.
1193 2006-10-09 Jim Meyering <jim@meyering.net>
1195 Avoid a compiler warning.
1196 * src/pathchk.c (portable_chars_only): Initialize variable of type
1197 mbstate_t via memset, rather than via '{0}'. Patch from Bruno Haible.
1199 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
1201 Fix bug reported today by Mike Frysinger: mkdir -pv is logging the
1202 wrong file name in some cases. Lars Wendler reported a bug in
1204 * src/install.c (make_ancestor): New arg COMPONENT.
1205 * src/mkdir.c (make_ancestor): Likewise.
1206 * tests/install/basic-1: Check for install -Dv bug.
1207 * tests/mkdir/Makefile.am (TESTS): Add p-v.
1208 * tests/mkdir/p-v: New file, to test this bug.
1210 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
1212 * src/chgrp.c: Don't include lchown.h; no longer needed.
1213 * src/chown.c: Likewise.
1215 * tests/ls/stat-dtype: Use a dynamic test to decide whether the
1216 current file system has useful d_type info.
1218 * src/dd.c (flags): noatime and nofollow now depend on
1219 HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW, too.
1220 (usage): Output info about noatime and nofollow only if
1221 they are known to work.
1222 * src/remove.c (AD_push): Inspect HAVE_WORKING_O_NOFOLLOW rather
1223 than O_NOFOLLOW, when testing whether it's possible to avoid a
1224 race condition reliably.
1226 2006-10-05 Jim Meyering <jim@meyering.net>
1228 * src/c99-to-c89.diff: Update to reflect new offsets.
1230 * tests/install/basic-1: Skip the latter part of this test if the
1231 just-built dd binary is not readable. Otherwise, this test would fail
1232 when binaries were created as root. Reported by Bauke Jan Douma in
1233 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8433>.
1235 2006-10-03 Paul Eggert <eggert@cs.ucla.edu>
1237 * src/system.h (ST_BLKSIZE): Ceiling at SIZE_MAX / 8 + 1, not at 4
1238 MiB, since XFS hosts can legitimately have large values of
1239 st_blksize. Problem reported by Tony Ernst in
1240 <http://savannah.gnu.org/bugs/?17903>.
1242 2006-10-04 Jim Meyering <jim@meyering.net>
1244 * src/remove.c (nonexistent_file_errno): Remove ENAMETOOLONG.
1245 Paul Eggert pointed out that the specified file may exist,
1246 in spite of such an errno value.
1247 * tests/rm/Makefile.am (TESTS): Remove ignore-name-too-long.
1248 * tests/rm/ignore-name-too-long: Remove file.
1249 * NEWS: Update here, too.
1251 2006-10-03 Jim Meyering <jim@meyering.net>
1253 * tests/rm/fail-eperm: Report failure also if rm is terminated by
1256 * src/c99-to-c89.diff: Convert two c99'isms -- one in remove.c
1257 and one in shred.c -- that were added before coreutils-6.3.
1258 Reported by Michael Deutschmann.
1260 * src/c99-to-c89.diff: Update to reflect new offsets.
1262 * src/remove.c (remove_entry): With -f, exit successfully in spite
1263 of a missing file under some very unusual conditions (with errno
1264 being any of ENOENT, ENOTDIR, ENAMETOOLONG).
1266 With --force (-f), rm no longer fails for ENOTDIR.
1267 * src/remove.c (ignorable_missing): New function.
1268 Use it everywhere, rather than open-coding the test.
1269 Andreas Schwab reported the ENOTDIR problem.
1270 (ignorable_missing): Similarly, don't fail for ENAMETOOLONG.
1272 * NEWS: Mention the bug fix.
1273 * tests/rm/ignorable: New file. Test for the ENOTDIR case.
1274 * tests/rm/ignore-name-too-long: New file. Test for ENAMETOOLONG.
1275 * tests/rm/Makefile.am (TESTS): Add the new file names.
1277 * bootstrap: Undo last change to this file, since now gnulib-tool
1278 sticks with the automake default in generating dependencies.
1280 * NEWS: Add a line for 6.4-cvs.
1281 * configure.ac (AC_INIT): Bump to 6.4 and add "-cvs" suffix.
1283 2006-09-30 Jim Meyering <jim@meyering.net>
1286 * NEWS: Record the 6.3 release date.
1287 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
1289 * NEWS: Mention Paul's Solaris 8 vs. 10 work-around.
1291 * src/c99-to-c89.diff: Update offsets.
1293 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
1295 * tests/rm/readdir-bug: Don't use $(...) in a shell script,
1296 as it doesn't work with Solaris /bin/sh.
1298 2006-09-29 Jim Meyering <jim@meyering.net>
1300 * NEWS: Mention Paul's fix (to gnulib's canon-host.c) for
1303 * tests/seq/basic [neg-2, eq-wid-2]: Comment out tests that
1304 use .1 as the increment. Actual output varies too much.
1305 [eq-wid-3]: New, commented out test.
1307 * src/shuf.c (read_input): Fix an off-by-one error that
1308 would cause an infloop for piped input of 8KB or more.
1309 * NEWS: Mention the fix.
1310 * tests/misc/shuf: Test for the above fix.
1312 Since any system may be affected by the Darwin readdir bug,
1313 perform the extra rewinddir unconditionally. The performance
1314 impact of rewinding a directory is negligible.
1315 * src/remove.c (NEED_REWIND): Define to use
1316 CONSECUTIVE_READDIR_UNLINK_THRESHOLD unconditionally.
1318 * tests/seq/basic: Use .11 as the upper bound, in case the ".1"
1319 increment translates to a slightly larger value.
1320 This corrects a test failure on FreeBSD 6.1 reported by Nelson Beebe.
1321 The final expected value wasn't being printed.
1323 Work around a readdir bug in Darwin 7.9.0 (MacOS X 10.3.9) on HFS+
1324 and NFS, whereby rm would not remove all files in a directory.
1325 * src/remove.c (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Reduce to 10.
1326 (NEED_REWIND): New macro, so that we incur the cost of the work-around
1327 rewinddir only on afflicted systems.
1328 * NEWS: Clarify and correct.
1329 * tests/rm/readdir-bug: New file. Test for the above fix.
1330 * tests/rm/Makefile.am (TESTS): Add it.
1331 Prompted by testing and analysis from Bruno Haible:
1332 http://lists.gnu.org/archive/html/bug-coreutils/2006-09/msg00326.html
1334 2006-09-28 Paul Eggert <eggert@cs.ucla.edu>
1336 * tests/rm/fail-eperm: Unset BASH_ENV, CDPATH, and ENV, too;
1337 suggested for Debian stable, which uses Perl 5.8.4.
1339 2006-09-28 Jim Meyering <jim@meyering.net>
1341 Automatically generated dependencies are important even
1342 when all of the sources in a directory come from gnulib.
1343 * bootstrap (gnulib_tool): Remove the "no-dependencies" automake
1344 option that gnulib-tool adds to what becomes our lib/gnulib.mk.
1346 * tests/rm/fail-eperm: Enable Perl's (-T) taint checking.
1347 Ensure that IFS is set properly and unset PATH.
1349 Work properly even when the name of the selected file starts with "-".
1350 Invoke rm via "../../src/rm", and adjust expected output.
1351 Prompted by a patch from Tim Waugh.
1353 * README-cvs: Add Bison to the list of required packages.
1355 2006-09-26 Jim Meyering <jim@meyering.net>
1357 * src/c99-to-c89.diff: Update offsets.
1359 * NEWS: rm works around a bug in Darwin 8.6.1 w/NFS that kept
1360 it from removing a directory containing 188 or more entries.
1361 * src/remove.c (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Decrease by
1362 20, go work around the buggy readdir on Darwin 8.6.1 with NFS.
1363 Reported by Matthew Woehlke.
1365 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
1367 * NEWS: "groups user" no longer outputs "user :"; you need at least
1368 two users. "groups" now processes options like --help more compatibly.
1369 * src/groups.sh: Implement the option-processing change.
1370 Handle user and group names with special characters more robustly.
1371 Report write errors instead of exiting silently with status 1.
1373 2006-09-26 Jim Meyering <jim@meyering.net>
1375 * README: Warn not to run autoreconf manually. Use bootstrap instead.
1377 * src/groups.sh: When invoked with 0 or 1 argument, just exec "id".
1378 Rewrite to avoid using temporary, $status.
1380 * NEWS: Mention the bug fix.
1381 * src/groups.sh: Don't hide a write failure.
1382 Reported by Iain Calder <ic56@rogers.com>.
1384 2006-09-25 Jim Meyering <jim@meyering.net>
1386 * src/chown.c (usage): Clarify --dereference description.
1387 * src/chgrp.c (usage): Likewise. Suggestion from Jamie McClelland.
1389 2006-09-24 Jim Meyering <jim@meyering.net>
1391 * NEWS: Mention these fixes.
1392 * src/copy.c (copy_reg): With --verbose (-v), print
1393 "removed `file_name'" just after unlinking a file.
1394 (copy_internal): Likewise, in three more places.
1395 Marc Lehman reported that "touch x; ln x y; mv -v x y" was silent.
1396 * tests/mv/hard-verbose: New file. Test for the above fix.
1397 * tests/mv/Makefile.am (TESTS): Add hard-verbose.
1399 * tests/help-version (sync_args): Don't call sync, since it spins up
1400 disks that I've deliberately caused to spin down (but not unmounted).
1402 * NEWS: Mention the improvement to sort.
1404 * tests/tail-2/proc-ksyms: Require that /proc/ksyms be readable
1405 as well as existing.
1407 * tests/ls/stat-dtype: Don't use tmpfs on linux-2.4 or older,
1408 since that predated addition of d_type support.
1410 2006-09-23 Jim Meyering <jim@meyering.net>
1412 * gl/modules/getloadavg.diff: New file. Work around the way the latest
1413 version of the getloadavg module interacts with our bootstrap script.
1414 * bootstrap (gnulib_tool_options): Add "--local-dir gl".
1415 * Makefile.am (EXTRA_DIST): Sort file names.
1416 Add bootstrap and gl/modules/getloadavg.diff
1418 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
1420 * bootstrap: Add support for --force.
1421 (usage): New function. Describe usage less tersely.
1422 (CVS_only_file): New var.
1424 * NEWS: Document fix for cp -i and mv -i.
1425 * src/copy.c (copy_internal): With -i, prompt even if the source
1426 is a directory and the destination is not. This is required by
1427 POSIX and gives the user a chance to bail out before failing.
1428 * tests/cp/Makefile.am (TESTS): Add cp-i.
1429 * tests/cp/cp-i: New file.
1430 * tests/mv/Makefile.am (TESTS): Add i-5.
1431 * tests/mv/i-5: New file.
1433 2006-09-20 Jim Meyering <jim@meyering.net>
1435 * NEWS: Mention the chmod bug fix.
1437 * tests/chmod/inaccessible: New test, specifically for this bug.
1438 Based on a test case from Paul Eggert.
1439 * tests/chmod/Makefile.am (TESTS): Add inaccessible.
1441 Fix the 2006-09-18 bug differently.
1442 * src/chmod.c: (process_file): Upon FTS_NS for a top-level file,
1443 tell fts_read to stat the file again, in case it has become
1444 accessible since the initial fts_open call.
1445 * src/chown-core.c (change_file_owner): Likewise.
1447 * src/chmod.c: Revert last change. There is a better way.
1448 * src/chown-core.c: Likewise.
1450 2006-09-19 Paul Eggert <eggert@cs.ucla.edu>
1452 * src/ln.c (target_directory_operand): Rewrite to avoid porting
1453 problem on Tandem reported by Matthew Woehlke in
1454 <https://savannah.gnu.org/bugs/?17172>.
1456 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
1458 Fix bug where chmod, chown, and chgrp did not process operands
1459 left-to-right in some cases.
1460 * src/chmod.c (wd_errno): New var.
1461 (chmod_file): New function, with most of the contents of the
1462 old prcess_file function.
1463 (process_files): Use it. This gives file names to fts one
1464 at a time, so that they are processed left-to-right as POSIX
1466 * src/chown-core.c (wd_errno, chown_files): Likewise.
1467 (chown_file): New function.
1468 * tests/install/basic-1: Redo test so as to not workaround
1469 the chmod bug, thereby testing for it.
1471 * src/shuf.c (main): Quote the entire range when reporting an
1472 invalid one, rather than just the part that contained the error.
1474 * tests/stty/row-col-1: Rewrite to avoid temporary file that is
1475 sometimes left behind if the test is skipped or interrupted.
1477 * bootstrap (symlink_to_gnulib): New function.
1478 (cp_mark_as_generated): Use it, to prefer symlinks-to-gnulib
1479 to copies-of-gnulib.
1480 (cp_mark_as_generated, slurp, gnulib_files):
1481 Avoid making a copy if it's the same as the old version.
1482 (gnulib_files): Add support for this variable (used by Bison).
1484 * tests/ls/stat-vs-dirent: Fix quoting problem in diagnostic
1485 indicating flaw in kernel. Reword to say that the flaw isn't
1486 serious for coreutils, since the flaw does affect ls -i.
1488 * tests/chgrp/basic: Fix bug in test case exposed by building on
1489 Solaris 8 in a setgid directory. The test case incorrectly
1490 assumed that 'symlink' would be in group $g1.
1492 2006-09-18 Jim Meyering <jim@meyering.net>
1494 * NEWS: Add a line for 6.3-cvs.
1495 * configure.ac (AC_INIT): Bump to 6.3 and add "-cvs" suffix.
1498 * NEWS: Record the 6.2 release date.
1499 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
1501 2006-09-17 Jim Meyering <jim@meyering.net>
1503 * tests/chgrp/basic: On an OpenBSD system, rather than failing
1504 due to a known problem, merely warn about it.
1505 Rewrite to avoid testing output of chgrp --verbose and chgrp -c.
1506 Instead, use stat to test file system for desired results, directly.
1507 * tests/chgrp/Makefile.am (TESTS_ENVIRONMENT): Set host_triplet.
1509 * tests/envvar-check: Add more variable names to the list of those
1510 that can affect these programs and tests: _POSIX2_VERSION, COLUMNS,
1511 QUOTING_STYLE, TABSIZE, TERM, TMPDIR.
1513 2006-09-16 Paul Eggert <eggert@cs.ucla.edu>
1515 * NEWS: Document that mkdir -p and install -d now fork on occasion.
1516 * bootstrap.conf (gnulib_modules): Add savewd.
1517 * src/install.c: Include savewd.h.
1518 (process_dir): New function.
1519 (main, install_file_in_file_parents): Use it, along with the new
1520 savewd module, to avoid some race conditions.
1521 * src/mkdir.c: Include savewd.h.
1522 (struct mkdir_options): New members make_ancestor_function, mode,
1524 (make_ancestor): Return 1 if the resulting directory is not readable.
1525 (process_dir): New function.
1526 (main): Use it, along with new savewd module, to avoid some
1527 race conditions. Fill in new slots of struct mkdir_options, so
1528 that callees get the values.
1529 * tests/install/basic-1: Test for coreutils 5.97 bug that was
1530 fixed in coreutils 6.0, and which should still be fixed with
1532 * tests/mkdir/p-3: Likewise.
1534 2006-09-15 Jim Meyering <jim@meyering.net>
1536 * bootstrap.conf (gnulib_modules): Add rename-dest-slash.
1537 The 2006-09-08 changes made it so "mv dir new-name/" would
1538 fail on NetBSD 1.6. This makes it work once again.
1540 2006-09-14 Jim Meyering <jim@meyering.net>
1542 * src/mv.c (main): Remove unnecessary (always-true) test for 2 <= n.
1543 Instead, since it's a little fragile, assert the condition.
1544 (target_directory_operand): Update comment to reflect latest change.
1546 2006-09-12 Paul Eggert <eggert@cs.ucla.edu>
1548 * src/who.c (print_user): Rewrite to avoid warning from
1549 GCC 4.1.1 with -Wall.
1551 2006-09-12 Jim Meyering <jim@meyering.net>
1553 * tests/mv/atomic: Check for specific strace output, rather than
1554 simply nonempty. RHEL AS 4 would fail this test due to strace
1555 generating "[ Process PID=14434 runs in 32 bit mode. ]".
1556 Reported by Nelson Beebe.
1558 2006-09-11 Jim Meyering <jim@meyering.net>
1560 * src/remove.c (remove_dir): Move new cache_stat_init call onto
1562 (rm_1): Move declaration of "st" and new cache_stat_init call
1563 "down" to nearer where they're used.
1564 * src/c99-to-c89.diff: Add another set of curly braces.
1566 2006-09-10 Paul Eggert <eggert@cs.ucla.edu>
1568 * src/expr.c (eval6): Fix buffer overrun, or bad performance, if
1569 substr's last operand is very large. Performance problem reported
1572 2006-09-09 Jim Meyering <jim@meyering.net>
1574 * Makefile.maint (sc_prohibit_jm_in_m4): Don't hang when there
1576 (sc_require_config_h): Skip this test if there are no version-
1577 controlled .c files.
1578 (sc_prohibit_assert_without_use): Likewise.
1580 2006-09-08 Jim Meyering <jim@meyering.net>
1582 * bootstrap: Export CVS_RSH separate from its assignment, to work
1583 even with Solaris 10's /bin/sh. Suggestion from Mark D. Baushke.
1585 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1587 * NEWS: tail now ignores the -f option if POSIXLY_CORRECT is set,
1588 no file operand is given, and standard input is any FIFO.
1589 This is in response to Open Group XCU ERN 114.
1590 * src/tail.c (main): Likewise.
1592 2006-09-08 Jim Meyering <jim@meyering.net>
1594 mv and "cp -r" no longer fail when invoked with two arguments
1595 where the first one names a directory and the second name ends in
1596 a slash and doesn't exist. E.g., "mv dir B/", for nonexistent B,
1597 now succeeds, once more. This reverts part of the 2004-06-27
1599 * NEWS: Say the above.
1600 * src/mv.c (target_directory_operand): Don't require (here)
1601 that the target operand "look like" a directory. This change
1602 pushes the test down to the rename syscall level, where a
1603 "mv dir existing-non-dir/" will mistakenly succeed on older systems
1604 that ignore trailing slashes in the rename destination argument.
1605 * src/cp.c (target_directory_operand): Likewise, but for cp.
1606 * tests/mv/trailing-slash: Exercise the above fixes.
1607 * tests/cp/trailing-slash: New file.
1608 * tests/cp/Makefile.am (EXTRA_DIST): Add trailing-slash.
1610 * bootstrap: Use the previously unused variable, $src,
1611 to avoid repeating "$GNULIB_SRCDIR/$file".
1613 * bootstrap (cp_mark_as_generated): Don't use "local", to
1614 accommodate ancient "/bin/sh". Suggested by Ralf Wildenhues.
1615 Rename now-global "$src" and "$dst" to have cp_ prefix.
1616 Safer, and avoids confusion.
1618 * bootstrap (cp_mark_as_generated): New function.
1619 (slurp): Use it to prepend editor hints and a warning that
1620 the file we're copying is generated.
1621 Suggestion from Bruce Korb.
1622 (cp_mark_as_generated): Don't add C-style comments for .l or .y files.
1623 Fix last-minute typo.
1625 2006-09-07 Jim Meyering <jim@meyering.net>
1627 * bootstrap: Revert last change. There are less disruptive ways
1628 to mark these generated files as read-only.
1630 * src/c99-to-c89.diff: Update to have proper offsets.
1632 2006-09-06 Jim Meyering <jim@meyering.net>
1634 Ensure that some gnulib-tool-generated files are read-only.
1635 * bootstrap (slurp): Put the body of this function in a sub-shell,
1636 with "umask a-w" so that all new files are read-only. Remove each
1637 file before we write to it, in case it's read-only.
1638 Make po/Makevars and runtime-po/Makevars read-only, too.
1640 2006-09-05 Jim Meyering <jim@meyering.net>
1642 * tests/cp/acl: Skip this test when cp lacks ACL support.
1643 * tests/cp/Makefile.am (TESTS_ENVIRONMENT): Set $(CONFIG_HEADER).
1645 * src/c99-to-c89.diff (remove.c): Adapt one hunk to match the new
1646 context from change of 2006-09-02.
1648 2006-09-04 Jim Meyering <jim@meyering.net>
1650 * README-cvs: Fix typo in update command.
1652 2006-09-03 Jim Meyering <jim@meyering.net>
1654 * NEWS: Tweak the wording in the new change description so that
1655 no one can think this change causes e.g., `rm -fr foo../' to fail.
1657 * tests/rm/inaccessible: Adjust for movement of config.h to lib/.
1658 Use $CONFIG_HEADER, rather than hard-coding it.
1659 * tests/rm/Makefile.am (TESTS_ENVIRONMENT): Set $CONFIG_HEADER.
1661 2006-09-02 Paul Eggert <eggert@cs.ucla.edu>
1663 * NEWS: rm now rejects attempts to remove /, ./, and ../.
1664 * src/basename.c: Don't include dirname.h, since system.h does it now.
1665 * src/chmod.c: Likewise.
1666 * src/copy.c: Likewise.
1667 * src/cp.c: Likewise.
1668 * src/df.c: Likewise.
1669 * src/dircolors.c: Likewise.
1670 * src/dirname.c: Likewise.
1671 * src/du.c: Likewise.
1672 * src/install.c: Likewise.
1673 * src/ln.c: Likewise.
1674 * src/ls.c: Likewise.
1675 * src/mkdir.c: Likewise.
1676 * src/mv.c: Likewise.
1677 * src/remove.c: Likewise.
1678 * src/rm.c: Likewise.
1679 * src/rmdir.c: Likewise.
1680 * src/shred.c: Likewise.
1681 * src/split.c: Likewise.
1682 * src/su.c: Likewise.
1683 * src/system.h: Include "dirname.h", since dot_or_dotdot needs it
1685 (dot_or_dotdot): Succeed even if "." or ".." is followed by a
1687 * src/rm.c (usage, main): --preserve-root is now the default.
1688 * src/remove.h: Fix comment.
1689 * src/remove.c (cache_fstatat, cache_stat_init): New functions.
1690 (cache_statted, cache_stat_ok): New functions.
1691 (write_protected_non_symlink): Remove struct stat ** buf_p arg,
1692 which is no longer needed with the new functions. All callers
1694 (prompt, is_dir_lstat, remove_entry, remove_dir):
1695 New struct stat * arg. All callers changed.
1696 (write_protected_non_symlink, prompt, is_dir_lstat, remove_entry):
1697 (remove_cwd_entries, remove_dir, rm_1):
1698 Use and maintain the file status cache.
1699 (prompt, remove_entry): Omit the first "directory" in the diagnostic
1700 "Cannot remove directory `foo': is a directory". This causes "rm"
1701 to pass a test case that it would otherwise fail now that it
1702 "knows" more about its argument. I think the diagnostic is better
1703 without the first "directory" anyway.
1704 (prompt): Remove the no-longer-needed IS_DIR arg; all callers changed.
1705 (rm_1): Reject attempts to remove /, ./, or ../.
1706 * tests/rm/Makefile.am (TESTS): Add r-4.
1707 * tests/rm/r-4: New file.
1709 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1711 * src/stat.c: Include <stddef.h>
1712 (alignof): New macro.
1713 (HAVE_STRUCT_STATXFS_F_FSID___VAL, HAVE_STRUCT_STATXFS_F_FSID_VAL):
1715 (STRUCT_STATXFS_F_FSID_IS_INTEGER): New macro.
1717 (print_statfs): If f_fsid isn't an integer, grab its words one
1718 at a time in little-endian order. This is a bit easier to configure
1719 and should avoid a compilation failure on MacOS reported by Bruno
1722 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1724 * src/stat.c (HAVE_STRUCT_STATXFS_F_FSID_VAL, FSID_VAL): New macros, to
1725 work around a Mac OS X porting problem reported by Bruno Haible in
1726 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00308.html>.
1727 (print_statfs): Use them.
1729 * bootstrap.conf (gnulib_modules): Add isapipe.
1730 * src/tail.c: Include isapipe.h.
1731 (IS_PIPE_LIKE_FILE_TYPE): Remove.
1732 (IS_TAILABLE_FILE_TYPE): Just list both FIFOs and sockets as
1733 tailable, since this seems to be portable.
1734 (main): Use isapipe, to fix a bug on MacOS X reported by Bruno Haible in
1735 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00304.html>.
1737 * src/system.h (LOCALEDIR): Remove, since configmake.h now defines
1740 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1742 * src/copy.c (copy_internal): Don't test whether macros like
1743 S_ISLNK are defined, since they're always defined now.
1744 * src/cp.c (main): Likewise.
1745 * src/ln.c (main): Likewise.
1746 * src/ls.c (get_link_name, make_link_name): Likewise.
1747 * src/mknod.c (main): Likewise.
1748 * src/mkfifo.c (usage): Likewise.
1749 * src/who.c (S_IWGRP): Likewise.
1751 Adjust to recent gnulib changes for the gnulib module.
1752 * bootstrap.conf (gnulib_modules): Add fcntl.
1753 * src/system.h (SEEK_SET, SEEK_CUR, SEEK_END): Remove. Other code
1754 is already assuming these macros are defined.
1755 (O_DIRECT, O_DIRECTORY, O_DSYNC, O_NDELAY, O_NOATIME, O_NONBLOCK):
1756 (O_NOCTTY, O_NOFOLLOW, O_NOLINKS, O_RSYNC, O_SYNC, O_BINARY, O_TEXT):
1757 Remove; the fcntl module now handles these.
1759 Adjust to recent gnulib changes for the inttypes module.
1760 * bootstrap.conf (gnulib_modules): Remove stdint; add inttypes.
1761 (excluded_files): Don't exclude m4/inttypes-h.m4 or m4/inttypes-pri.m4.
1763 * src/system.h: Don't bother to include <stdint.h>, since we can
1764 now assume inttypes.h does the equivalent of including stdint.h.
1766 2006-08-27 Jim Meyering <jim@meyering.net>
1768 * src/copy.c (copy_internal): Don't make a backup if the last
1769 component of the source name is "." or "..".
1770 Reported by Andreas Schwab in http://savannah.gnu.org/bugs/?17540.
1771 * NEWS: Mention this.
1772 * tests/cp/src-base-dot: New file. Test for the above fix.
1773 * tests/cp/Makefile.am (TESTS): Add src-base-dot.
1775 * src/system.h (DOT_OR_DOTDOT): Remove macro. Rewrite as a...
1776 (dot_or_dotdot): ...new static inline function.
1777 * src/remove.c (rm_1): Reflect this renaming.
1778 * src/ls.c (basename_is_dot_or_dotdot): Likewise.
1780 * src/copy.c (copy_internal): Add comments.
1782 2006-08-26 Paul Eggert <eggert@cs.ucla.edu>
1784 * src/Makefile.am (AM_CPPFLAGS): Remove -I$(srcdir) and -I../lib,
1785 since Automake supplies them for us. It always did -I$(srcdir),
1786 and with the recent change to AC_CONFIG_HEADERS in configure.ac it
1787 is now also doing -I../lib.
1789 * bootstrap (get_translations): Skip this if WGET_COMMAND is empty.
1790 Fail if the first "echo" fails. Suppress diagnostics from "ls po/*.po"
1791 since there might not be any .po files.
1792 (WGET_COMMAND): Set to empty if wget doesn't
1793 seem to be available.
1795 2006-08-26 Jim Meyering <jim@meyering.net>
1797 This test was failing in some environments.
1798 * tests/ls/color-dtype-dir: Don't rely on eval "`dircolors -b`"
1799 to set LS_COLORS in the environment.
1800 * tests/envvar-check: Instead, ensure that LS_COLORS is not set.
1801 Reported by Bob Proulx.
1803 * src/c99-to-c89.diff: Remove hunk for copy.c; no longer needed.
1805 * Makefile.am (EXTRA_DIST): Remove these files here, too:
1806 .x-sc_no_if_have_config_h, .x-sc_prohibit_assert_without_use,
1807 .x-sc_two_space_separator_in_usage.
1809 Fix "mv --verbose --backup" so its output includes the
1810 " (backup: foo.~1~)" suffix also when backing up a directory.
1811 * NEWS: Report this bug fix.
1812 * src/copy.c (emit_verbose): New function, factored out of...
1813 (copy_internal): ...here. Use the new function.
1814 * tests/mv/backup-dir: Test for the above fix.
1815 * tests/mv/Makefile.am (TESTS): Add backup-dir.
1817 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
1819 * .x-sc_no_if_have_config_h: Remove; no longer needed.
1820 * .x-sc_prohibit_assert_without_use: Remove; it was empty.
1821 * .x-sc_two_space_separator_in_usage: Likewise.
1822 * Makefile.maint (sc_no_have_config_h): Renamed from
1823 sc_no_if_have_config_h, since it now checks that HAVE_CONFIG_H
1824 is absent everywhere.
1825 * bootstrap.conf (gnulib_modules): Add config-h.
1826 * src/shred.c: Include <config.h> unconditionally, since
1827 we now assume config.h exists.
1828 * src/dircolors.c: Likewise.
1830 2006-08-26 Jim Meyering <jim@meyering.net>
1832 "ls --color" would highlight other-writable and sticky directories
1833 no differently than regular directories on a file system with
1834 dirent.d_type support.
1835 * NEWS: Say the above.
1836 * src/ls.c (gobble_file): With --color, also stat the file when
1837 we know it is a directory.
1838 Derived from an anonymous one-line fix and bug report:
1839 <http://savannah.gnu.org/bugs/?15043>.
1840 * tests/ls/color-dtype-dir: New file. Test for the above fix.
1841 * tests/ls/Makefile.am (TESTS): Add color-dtype-dir.
1843 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
1845 * .cvsignore: Remove stamp-h1. Add coreutils-*, to ignore
1847 * bootstrap.conf: Add configmake, verify.
1848 * src/.cvsignore: Remove localedir.h.
1849 * src/Makefile.am (localedir, DISTCLEANFILES, localedir.h): Remove;
1850 subsumed by configmake.
1851 * src/system.h: Include configmake.h rather than localedir.h
1852 (LOCALEDIR): New macro.
1854 Rewrite to avoid some unnecessary casts, macros, literals.
1855 * src/shred.c (DEFAULT_PASSES, VERBOSE_UPDATE): Now constants,
1857 (SECTOR_SIZE, SECTOR_MASK): New constants.
1858 (fillpattern, dopass, do_wipefd, main): Remove unnecessary casts,
1859 and use the SECTOR_* constants when applicable. Check for size <
1860 0 rather than size == -1, since negative-size files are a sign of
1863 2006-08-25 Bruno Haible <bruno@clisp.org>
1865 * src/shred.c (dopass): Assume a continuable error if EIO even
1866 if the current position is not a multiple of 512.
1868 2006-08-24 Jim Meyering <jim@meyering.net>
1870 * src/stat.c (print_statfs): Fix typo: remove extra "sizeof".
1872 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
1874 * src/stat.c (HAVE_STRUCT_STATXFS_F_FSID___VAL): Define. This
1875 macro was being used without being defined.
1876 (SB_F_NAMEMAX): Remove cast.
1877 (f_fsid) [BeOS]: Likewise.
1878 (OUT_NAMEMAX): Renamed from NAMEMAX_FORMAT, with a new meaning.
1880 (out_string, out_int, out_uint, out_uint_o, out_uint_x): New
1882 (xstrcat): Remove. All uses changed to use the above functions.
1883 (print_statfs, print_stat): 2nd arg is now the prefix len, not the
1884 buffer len. All uses changed. Output '?', not '*', for unknown
1885 data or errors. Do not assume signed values can be interchanged
1886 with unsigned when printing.
1887 (print_statfs): For %i, print the fsid as a single int, not as a
1889 (print_it): Quote invalid format better.
1891 * NEWS: printf supports the I flag.
1892 * src/printf.c (print_formatted) [glibc 2.2 or later]: Likewise.
1894 2006-08-23 Bruno Haible <bruno@clisp.org>
1896 * src/stat.c (STRUCT_STATVFS, statfs, f_fsid, f_blocks, f_bfree) [BeOS]:
1897 (f_bavail, f_bsize, STATFS_FRSIZE, f_files, f_ffree) [BeOS]:
1898 (STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME) [BeOS]: Define.
1900 * src/ls.c (SA_RESTART): Fallback define.
1902 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
1904 * src/system.h (EDQUOT): Define if not already defined.
1905 Problem reported by Bruno Haible for BeOS.
1907 * .cvsignore: Remove config.h, config.hin, as they are now
1909 * configure.ac (AC_CONFIG_HEADERS): Move config.h and config.hin
1911 * src/Makefile.am (AM_CPPFLAGS): Remove '-I..'; no longer needed.
1913 * bootstrap (slurp): Define gl_LOCK_EARLY instead of gl_LOCK,
1914 to accommodate today's gnulib change.
1916 2006-08-23 Jim Meyering <jim@meyering.net>
1918 * NEWS: Mention the sweeping infrastructure changes.
1920 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
1922 * bootstrap.conf (gnulib_modules): Add gnupload.
1923 * Makefile.maint (emit_upload_commands): gnupload is now
1925 * gnupload: Remove from CVS, since it's now a gnulib module.
1927 * bootstrap (bootstrap_conf_cleanup): Remove.
1928 (excluded_files): New var.
1929 * bootstrap.conf: Likewise.
1930 * bootstrap (slurp): Exclude files early if they're in the
1931 excluded_files list. That way, their names don't get put into
1934 * aclocal.m4, config.hin, configure:
1935 Remove from CVS, since ./bootstrap generates them automatically.
1936 * .cvsignore: Add INSTALL, Makefile.in, aclocal.m4, config.hin,
1937 configure, *.cache, *.lineno, *.log.
1938 Remove more-specific entries. This catches files like configure.lineno.
1939 * man/.cvsignore: Add Makefile.in.
1940 * src/.cvsignore: Add Makefile.in.
1941 Remove .version, dir.c, install, mvdir, stamp-v, vdir.c, version.c.
1944 * tests/chgrp/.cvsignore:
1945 * tests/chmod/.cvsignore:
1946 * tests/chown/.cvsignore:
1947 * tests/cp/.cvsignore:
1948 * tests/cut/.cvsignore:
1949 * tests/dd/.cvsignore:
1950 * tests/dircolors/.cvsignore:
1951 * tests/du/.cvsignore:
1952 * tests/expr/.cvsignore:
1953 * tests/factor/.cvsignore:
1954 * tests/fmt/.cvsignore:
1955 * tests/head/.cvsignore:
1956 * tests/install/.cvsignore:
1957 * tests/join/.cvsignore:
1958 * tests/ln/.cvsignore:
1959 * tests/ls/.cvsignore:
1960 * tests/ls-2/.cvsignore:
1961 * tests/md5sum/.cvsignore:
1962 * tests/misc/.cvsignore:
1963 * tests/mkdir/.cvsignore:
1964 * tests/mv/.cvsignore:
1965 * tests/od/.cvsignore:
1966 * tests/pr/.cvsignore:
1967 * tests/readlink/.cvsignore:
1968 * tests/rm/.cvsignore:
1969 * tests/rmdir/.cvsignore:
1970 * tests/seq/.cvsignore:
1971 * tests/sha1sum/.cvsignore:
1972 * tests/shred/.cvsignore:
1973 * tests/sort/.cvsignore:
1974 * tests/stty/.cvsignore:
1975 * tests/sum/.cvsignore:
1976 * tests/tac/.cvsignore:
1977 * tests/tail/.cvsignore:
1978 * tests/tail-2/.cvsignore:
1979 * tests/tee/.cvsignore:
1980 * tests/test/.cvsignore:
1981 * tests/touch/.cvsignore:
1982 * tests/tr/.cvsignore:
1983 * tests/tsort/.cvsignore:
1984 * tests/unexpand/.cvsignore:
1985 * tests/uniq/.cvsignore:
1986 * tests/wc/.cvsignore:
1987 Add Makefile.in. Sort entries if necessary. Remove *.I, *.E,
1988 *.X, *.O, *-tests, build-script, mk-script if they're never
1989 created in this directory.
1991 2006-08-22 Bruno Haible <bruno@clisp.org>
1994 * src/uptime.c: Include OS.h if it exists.
1995 (print_uptime): On BeOS, use the get_system_info function (actually a
1996 macro). Loop through utmp entries only if utmp.h or utmpx.h exists.
1997 (uptime): Call read_utmp only if utmp.h or utmpx.h exists.
1999 2006-08-22 Jim Meyering <jim@meyering.net>
2001 * .cvsignore: Add ABOUT-NLS.
2003 Move the check-AUTHORS rule to be run as part of "make distcheck",
2004 rather than "make check".
2005 * src/Makefile.am (check): Don't depend on check-AUTHORS; it would
2006 cause "make check" to fail on systems unable to build all binaries.
2007 * Makefile.maint (check-AUTHORS): New rule.
2008 (local-checks-available): Add it here.
2009 Reported by Bruno Haible. Needed for BeOS.
2011 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
2013 * src/df.c (print_header, show_dev): Use a column width that
2014 depends on the block size of -P is specified and not autoscaling.
2015 Problem reported by Gustavo G. Rondina in:
2016 http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00164.html
2018 2006-08-21 Jim Meyering <jim@meyering.net>
2020 * tests/dircolors/simple (a): Don't fail with an unexpected diagnostic
2021 when the shell variable, SHELL, is not set.
2022 Trigger the failure with "(unset SHELL; make check TESTS=simple)".
2023 Reported by Sven Joachim in <http://bugs.debian.org/355368>.
2025 * src/od.c: Now that HAVE_UNSIGNED_LONG_LONG is no longer defined
2026 in config.h, change the uses to HAVE_UNSIGNED_LONG_LONG_INT.
2027 Otherwise, on a system with 4-byte longs, "od -t u8" fails with this:
2028 od: invalid type string `u8';
2029 this system doesn't provide a 8-byte integral type
2030 FIXME: add a test for this, but skip it when sizeof uintmax < 8.
2032 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
2034 Add a bootstrap procedure, so that the CVS version contains fewer
2035 files and we bootstrap the rest from gnulib, gettext, etc.
2036 * README-cvs: New file.
2037 * bootstrap: New file.
2038 * bootstrap.conf: New file.
2039 * .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
2040 * configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
2042 (gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
2043 (gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
2045 (gl_MACROS): Call just after gl_EARLY, just for clarity.
2046 * src/c99-to-c89.diff: Remove patch to ls.c; no longer needed.
2047 * src/kill.c (strtoimax): Remove decl.
2048 * src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
2049 * src/wc.c: Likewise.
2050 * src/ls.c (sort_files): Rewrite to avoid need for C99-style
2051 declaration, so that we don't need to patch this file.
2052 * src/printf.c (strtoimax, strtoumax): Remove decls.
2053 * src/su.c: Include getpass.h.
2055 * src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
2056 Include inttypes.h unconditionally.
2057 (LONGEST_MODIFIER, PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX): Remove.
2058 (stpcpy, strndup, strstr, strtoul, mempcpy, CHAR_MIN, CHAR_MAX):
2059 (SCHAR_MIN, SCHAR_MAX, UCHAR_MAX, SHRT_MIN, SHRT_MAX, INT_MAX):
2060 (INT_MIN, INTMAX_MAX, INTMAX_MIN, UINT_MAX, LONG_MAX, ULONG_MAX):
2061 (SIZE_MAX, SSIZE_MAX, UINTMAX_MAX): Remove.
2063 * ABOUT-NLS, INSTALL, Makefile.in, man/Makefile.in:
2064 * src/Makefile.in, tests/Makefile.in, tests/chgrp/Makefile.in:
2065 * tests/chmod/Makefile.in, tests/chown/Makefile.in:
2066 * tests/cp/Makefile.in, tests/cut/Makefile.in:
2067 * tests/dd/Makefile.in, tests/dircolors/Makefile.in:
2068 * tests/du/Makefile.in, tests/expr/Makefile.in:
2069 * tests/factor/Makefile.in, tests/fmt/Makefile.in:
2070 * tests/general/Makefile.in, tests/head/Makefile.in:
2071 * tests/install/Makefile.in, tests/join/Makefile.in:
2072 * tests/ln/Makefile.in, tests/ls/Makefile.in:
2073 * tests/ls-2/Makefile.in, tests/md5sum/Makefile.in:
2074 * tests/misc/Makefile.in, tests/mkdir/Makefile.in:
2075 * tests/mv/Makefile.in, tests/od/Makefile.in:
2076 * tests/pr/Makefile.in, tests/readlink/Makefile.in:
2077 * tests/rm/Makefile.in, tests/rmdir/Makefile.in:
2078 * tests/seq/Makefile.in, tests/sha1sum/Makefile.in:
2079 * tests/shred/Makefile.in, tests/sort/Makefile.in:
2080 * tests/stty/Makefile.in, tests/sum/Makefile.in:
2081 * tests/tac/Makefile.in, tests/tail/Makefile.in:
2082 * tests/tail-2/Makefile.in, tests/tee/Makefile.in:
2083 * tests/test/Makefile.in, tests/touch/Makefile.in:
2084 * tests/tr/Makefile.in, tests/tsort/Makefile.in:
2085 * tests/unexpand/Makefile.in, tests/uniq/Makefile.in:
2086 * tests/wc/Makefile.in:
2087 Remove from CVS, since ./bootstrap generates them automatically.
2089 2006-08-20 Eric Blake <ebb9@byu.net>
2091 * src/stat.c (USE_STATVFS): Reinstate the patch from 2006-08-15;
2092 the patch from 2006-08-18 broke on cygwin.
2094 2006-08-20 Jim Meyering <jim@meyering.net>
2096 * NEWS: Add a line for 6.2-cvs.
2097 * configure.ac (AC_INIT): Bump to 6.2 and add "-cvs" suffix.
2099 2006-08-19 Jim Meyering <jim@meyering.net>
2102 * NEWS: Record the 6.1 release date.
2103 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2105 * tests/Makefile.am (EXTRA_DIST): Add sparse-file.
2107 Avoid test failure when `make check' is run through debuild.
2108 * tests/help-version: Ensure that $SHELL is set to some value
2109 and exported. Patch from Sven Joachim. For details, see
2110 <http://bugs.debian.org/355368>.
2112 * tests/ls/stat-dtype: Test for the 2006-08-17 `ls -CF' fix.
2114 * README: Describe potential "pre-C99 build failure", and work-around.
2116 Some of my 2006-07-03 changes to tests/*/Makefile.am were being
2117 backed out due to updates provoked by the copyright changes.
2118 * tests/Makefile.am.in (PATH): Prepend $(VG_PATH_PREFIX), so that
2119 it propagates to the derived Makefile.am files.
2120 ($(srcdir)/Makefile.am): Mark generated .am files as read-only,
2121 so we don't mistakenly edit them again.
2122 * tests/cut/Makefile.am: Regenerate.
2123 * tests/head/Makefile.am: Likewise.
2124 * tests/join/Makefile.am: Likewise.
2125 * tests/pr/Makefile.am: Likewise.
2126 * tests/sort/Makefile.am: Likewise.
2127 * tests/tac/Makefile.am: Likewise.
2128 * tests/tail/Makefile.am: Likewise.
2129 * tests/test/Makefile.am: Likewise.
2130 * tests/tr/Makefile.am: Likewise.
2131 * tests/uniq/Makefile.am: Likewise.
2132 * tests/wc/Makefile.am: Likewise.
2134 * NEWS: Fix cp --sparse so that it preserves tail-end sparseness, even
2135 when the file's apparent size is not a multiple of its block size.
2136 * src/copy.c (copy_reg): Don't write a NUL before calling ftruncate.
2137 For some file sizes, writing that single byte would unnecessarily
2138 waste a few file blocks. That write may have been necessary in the
2139 early days of Linux, but now, removing it should be safe.
2140 Based on a patch by Alan Curry: <http://bugs.debian.org/370792>
2141 * tests/cp/sparse: New test for the above.
2142 * tests/cp/Makefile.am (TESTS): Add sparse.
2144 * tests/sparse-file: New file, essence factored out of...
2145 * tests/du/8gb: ... here. Use the new script.
2147 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
2149 * src/system.h (select_plural): Reduce by 1000000, not 1000, since
2150 the CVS gettext manual now suggests 1000000.
2152 2006-08-18 Bruno Haible <bruno@clisp.org>
2154 Add support for NetBSD 3.0.
2155 * src/stat.c (USE_STATVFS): Set to 1 if 'struct statvfs' has a field
2157 (STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME): Define also if 'struct statvfs'
2158 has a field f_fstypename.
2159 This undoes the 2006-08-15 to src/stat.c.
2161 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
2163 Copyright notice fixes.
2165 * COPYING: Upgrade to latest version from FSF.
2167 * src/uname.c: Use (C) in copyright notice.
2169 * .vg-suppressions: Add copyright notice.
2170 * ChangeLog: Likewise.
2171 * ChangeLog-2005: Likewise.
2172 * Makefile.am: Likewise.
2175 * README-valgrind: Likewise.
2177 * announce-gen: Likewise.
2178 * man/Makefile.am: Likewise.
2179 * man/chmod.x: Likewise.
2180 * man/chown.x: Likewise.
2181 * man/df.x: Likewise.
2182 * man/du.x: Likewise.
2183 * man/rm.x: Likewise.
2184 * src/dircolors.hin: Likewise.
2185 * src/du-tests: Likewise.
2186 * src/extract-magic: Likewise.
2187 * src/tac-pipe.c: Likewise.
2188 * src/wheel-gen.pl: Likewise.
2189 * tests/Coreutils.pm: Likewise.
2190 * tests/Makefile.am.in: Likewise.
2191 * tests/acl: Likewise.
2192 * tests/envvar-check: Likewise.
2193 * tests/expensive: Likewise.
2194 * tests/group-names: Likewise.
2195 * tests/help-version: Likewise.
2196 * tests/mk-script: Likewise.
2197 * tests/priv-check: Likewise.
2198 * tests/rwx-to-mode: Likewise.
2199 * tests/sample-test: Likewise.
2200 * tests/setgid-check: Likewise.
2201 * tests/chgrp/basic: Likewise.
2202 * tests/chgrp/deref: Likewise.
2203 * tests/chgrp/no-x: Likewise.
2204 * tests/chgrp/posix-H: Likewise.
2205 * tests/chgrp/recurse: Likewise.
2206 * tests/chmod/c-option: Likewise.
2207 * tests/chmod/equal-x: Likewise.
2208 * tests/chmod/equals: Likewise.
2209 * tests/chmod/no-x: Likewise.
2210 * tests/chmod/octal: Likewise.
2211 * tests/chmod/setgid: Likewise.
2212 * tests/chmod/umask-x: Likewise.
2213 * tests/chmod/usage: Likewise.
2214 * tests/chown/basic: Likewise.
2215 * tests/chown/deref: Likewise.
2216 * tests/chown/separator: Likewise.
2217 * tests/cp/Makefile.am: Likewise.
2218 * tests/cp/acl: Likewise.
2219 * tests/cp/backup-1: Likewise.
2220 * tests/cp/backup-is-src: Likewise.
2221 * tests/cp/cp-HL: Likewise.
2222 * tests/cp/cp-deref: Likewise.
2223 * tests/cp/cp-mv-backup: Likewise.
2224 * tests/cp/cp-parents: Likewise.
2225 * tests/cp/deref-slink: Likewise.
2226 * tests/cp/dir-rm-dest: Likewise.
2227 * tests/cp/dir-slash: Likewise.
2228 * tests/cp/dir-vs-file: Likewise.
2229 * tests/cp/fail-perm: Likewise.
2230 * tests/cp/into-self: Likewise.
2231 * tests/cp/link: Likewise.
2232 * tests/cp/link-no-deref: Likewise.
2233 * tests/cp/link-preserve: Likewise.
2234 * tests/cp/no-deref-link1: Likewise.
2235 * tests/cp/no-deref-link2: Likewise.
2236 * tests/cp/no-deref-link3: Likewise.
2237 * tests/cp/perm: Likewise.
2238 * tests/cp/preserve-2: Likewise.
2239 * tests/cp/r-vs-symlink: Likewise.
2240 * tests/cp/same-file: Likewise.
2241 * tests/cp/slink-2-slink: Likewise.
2242 * tests/cp/special-bits: Likewise.
2243 * tests/cp/symlink-slash: Likewise.
2244 * tests/cut/Makefile.am: Likewise.
2245 * tests/cut/Test.pm: Likewise.
2246 * tests/dd/misc: Likewise.
2247 * tests/dd/not-rewound: Likewise.
2248 * tests/dd/skip-seek: Likewise.
2249 * tests/dd/skip-seek2: Likewise.
2250 * tests/dd/unblock-sync: Likewise.
2251 * tests/dircolors/simple: Likewise.
2252 * tests/du/2g: Likewise.
2253 * tests/du/8gb: Likewise.
2254 * tests/du/Makefile.am: Likewise.
2255 * tests/du/basic: Likewise.
2256 * tests/du/deref: Likewise.
2257 * tests/du/deref-args: Likewise.
2258 * tests/du/exclude: Likewise.
2259 * tests/du/fd-leak: Likewise.
2260 * tests/du/files0-from: Likewise.
2261 * tests/du/hard-link: Likewise.
2262 * tests/du/inaccessible-cwd: Likewise.
2263 * tests/du/long-from-unreadable: Likewise.
2264 * tests/du/long-sloop: Likewise.
2265 * tests/du/no-deref: Likewise.
2266 * tests/du/no-x: Likewise.
2267 * tests/du/restore-wd: Likewise.
2268 * tests/du/slash: Likewise.
2269 * tests/du/slink: Likewise.
2270 * tests/du/trailing-slash: Likewise.
2271 * tests/du/two-args: Likewise.
2272 * tests/expr/basic: Likewise.
2273 * tests/factor/basic: Likewise.
2274 * tests/fmt/basic: Likewise.
2275 * tests/fmt/long-line: Likewise.
2276 * tests/general/Makefile.am: Likewise.
2277 * tests/general/atgeneral.m4: Likewise.
2278 * tests/general/dd.at: Likewise.
2279 * tests/head/Makefile.am: Likewise.
2280 * tests/head/Test.pm: Likewise.
2281 * tests/install/basic-1: Likewise.
2282 * tests/install/create-leading: Likewise.
2283 * tests/install/d-slashdot: Likewise.
2284 * tests/install/trap: Likewise.
2285 * tests/join/Makefile.am: Likewise.
2286 * tests/join/Test.pm: Likewise.
2287 * tests/ln/backup-1: Likewise.
2288 * tests/ln/misc: Likewise.
2289 * tests/ln/sf-1: Likewise.
2290 * tests/ln/target-1: Likewise.
2291 * tests/ls/Makefile.am: Likewise.
2292 * tests/ls/Test.pm: Likewise.
2293 * tests/ls/dangle: Likewise.
2294 * tests/ls/dired: Likewise.
2295 * tests/ls/file-type: Likewise.
2296 * tests/ls/follow-slink: Likewise.
2297 * tests/ls/infloop: Likewise.
2298 * tests/ls/inode: Likewise.
2299 * tests/ls/m-option: Likewise.
2300 * tests/ls/no-arg: Likewise.
2301 * tests/ls/recursive: Likewise.
2302 * tests/ls/rt-1: Likewise.
2303 * tests/ls/stat-dtype: Likewise.
2304 * tests/ls/stat-failed: Likewise.
2305 * tests/ls/stat-vs-dirent: Likewise.
2306 * tests/ls/symlink-slash: Likewise.
2307 * tests/ls/time-1: Likewise.
2308 * tests/ls-2/tests: Likewise.
2309 * tests/md5sum/basic-1: Likewise.
2310 * tests/md5sum/newline-1: Likewise.
2311 * tests/misc/Makefile.am: Likewise.
2312 * tests/misc/base64: Likewise.
2313 * tests/misc/basename: Likewise.
2314 * tests/misc/cat-proc: Likewise.
2315 * tests/misc/close-stdout: Likewise.
2316 * tests/misc/csplit: Likewise.
2317 * tests/misc/date: Likewise.
2318 * tests/misc/date-sec: Likewise.
2319 * tests/misc/df: Likewise.
2320 * tests/misc/dirname: Likewise.
2321 * tests/misc/expand: Likewise.
2322 * tests/misc/false-status: Likewise.
2323 * tests/misc/fold: Likewise.
2324 * tests/misc/head-c: Likewise.
2325 * tests/misc/head-elide-tail: Likewise.
2326 * tests/misc/head-pos: Likewise.
2327 * tests/misc/mknod: Likewise.
2328 * tests/misc/nice: Likewise.
2329 * tests/misc/nl: Likewise.
2330 * tests/misc/nohup: Likewise.
2331 * tests/misc/paste-no-nl: Likewise.
2332 * tests/misc/pathchk1: Likewise.
2333 * tests/misc/printf: Likewise.
2334 * tests/misc/printf-hex: Likewise.
2335 * tests/misc/pwd-long: Likewise.
2336 * tests/misc/sha224sum: Likewise.
2337 * tests/misc/sha256sum: Likewise.
2338 * tests/misc/sha384sum: Likewise.
2339 * tests/misc/sha512sum: Likewise.
2340 * tests/misc/shuf: Likewise.
2341 * tests/misc/sort-merge: Likewise.
2342 * tests/misc/sort-rand: Likewise.
2343 * tests/misc/split-a: Likewise.
2344 * tests/misc/split-fail: Likewise.
2345 * tests/misc/split-l: Likewise.
2346 * tests/misc/stat-fmt: Likewise.
2347 * tests/misc/stat-printf: Likewise.
2348 * tests/misc/tac-continue: Likewise.
2349 * tests/misc/test-diag: Likewise.
2350 * tests/misc/tty-eof: Likewise.
2351 * tests/misc/wc-files0: Likewise.
2352 * tests/misc/wc-files0-from: Likewise.
2353 * tests/mkdir/concurrent-1: Likewise.
2354 * tests/mkdir/p-1: Likewise.
2355 * tests/mkdir/p-2: Likewise.
2356 * tests/mkdir/p-3: Likewise.
2357 * tests/mkdir/p-slashdot: Likewise.
2358 * tests/mkdir/p-thru-slink: Likewise.
2359 * tests/mkdir/parents: Likewise.
2360 * tests/mkdir/perm: Likewise.
2361 * tests/mkdir/special-1: Likewise.
2362 * tests/mkdir/t-slash: Likewise.
2363 * tests/mkdir/writable-under-readonly: Likewise.
2364 * tests/mv/Makefile.am: Likewise.
2365 * tests/mv/acl: Likewise.
2366 * tests/mv/atomic: Likewise.
2367 * tests/mv/backup-is-src: Likewise.
2368 * tests/mv/childproof: Likewise.
2369 * tests/mv/diag: Likewise.
2370 * tests/mv/dir-file: Likewise.
2371 * tests/mv/dir2dir: Likewise.
2372 * tests/mv/dup-source: Likewise.
2373 * tests/mv/force: Likewise.
2374 * tests/mv/hard-2: Likewise.
2375 * tests/mv/hard-3: Likewise.
2376 * tests/mv/hard-4: Likewise.
2377 * tests/mv/hard-link-1: Likewise.
2378 * tests/mv/i-1: Likewise.
2379 * tests/mv/i-2: Likewise.
2380 * tests/mv/i-3: Likewise.
2381 * tests/mv/i-4: Likewise.
2382 * tests/mv/i-link-no: Likewise.
2383 * tests/mv/into-self: Likewise.
2384 * tests/mv/into-self-2: Likewise.
2385 * tests/mv/into-self-3: Likewise.
2386 * tests/mv/into-self-4: Likewise.
2387 * tests/mv/leak-fd: Likewise.
2388 * tests/mv/mv-special-1: Likewise.
2389 * tests/mv/no-target-dir: Likewise.
2390 * tests/mv/part-fail: Likewise.
2391 * tests/mv/part-hardlink: Likewise.
2392 * tests/mv/part-rename: Likewise.
2393 * tests/mv/part-symlink: Likewise.
2394 * tests/mv/partition-perm: Likewise.
2395 * tests/mv/perm-1: Likewise.
2396 * tests/mv/reply-no: Likewise.
2397 * tests/mv/setup: Likewise.
2398 * tests/mv/to-symlink: Likewise.
2399 * tests/mv/trailing-slash: Likewise.
2400 * tests/mv/update: Likewise.
2401 * tests/mv/vfat: Likewise.
2402 * tests/od/od-N: Likewise.
2403 * tests/od/x8: Likewise.
2404 * tests/pr/Makefile.am: Likewise.
2405 * tests/pr/Test.pm: Likewise.
2406 * tests/readlink/can-e: Likewise.
2407 * tests/readlink/can-f: Likewise.
2408 * tests/readlink/can-m: Likewise.
2409 * tests/readlink/rl-1: Likewise.
2410 * tests/rm/Makefile.am: Likewise.
2411 * tests/rm/cycle: Likewise.
2412 * tests/rm/dangling-symlink: Likewise.
2413 * tests/rm/deep-1: Likewise.
2414 * tests/rm/dir-no-w: Likewise.
2415 * tests/rm/dir-nonrecur: Likewise.
2416 * tests/rm/dot-rel: Likewise.
2417 * tests/rm/empty-inacc: Likewise.
2418 * tests/rm/empty-name: Likewise.
2419 * tests/rm/f-1: Likewise.
2420 * tests/rm/fail-2eperm: Likewise.
2421 * tests/rm/fail-eperm: Likewise.
2422 * tests/rm/hash: Likewise.
2423 * tests/rm/i-1: Likewise.
2424 * tests/rm/i-no-r: Likewise.
2425 * tests/rm/inaccessible: Likewise.
2426 * tests/rm/interactive-always: Likewise.
2427 * tests/rm/interactive-once: Likewise.
2428 * tests/rm/ir-1: Likewise.
2429 * tests/rm/isatty: Likewise.
2430 * tests/rm/no-give-up: Likewise.
2431 * tests/rm/r-1: Likewise.
2432 * tests/rm/r-2: Likewise.
2433 * tests/rm/r-3: Likewise.
2434 * tests/rm/rm1: Likewise.
2435 * tests/rm/rm2: Likewise.
2436 * tests/rm/rm3: Likewise.
2437 * tests/rm/rm4: Likewise.
2438 * tests/rm/rm5: Likewise.
2439 * tests/rm/sunos-1: Likewise.
2440 * tests/rm/unread2: Likewise.
2441 * tests/rm/unread3: Likewise.
2442 * tests/rm/unreadable: Likewise.
2443 * tests/rmdir/fail-perm: Likewise.
2444 * tests/rmdir/ignore: Likewise.
2445 * tests/rmdir/t-slash: Likewise.
2446 * tests/seq/basic: Likewise.
2447 * tests/sha1sum/basic-1: Likewise.
2448 * tests/sha1sum/sample-vec: Likewise.
2449 * tests/shred/exact: Likewise.
2450 * tests/shred/remove: Likewise.
2451 * tests/sort/Makefile.am: Likewise.
2452 * tests/sort/Test.pm: Likewise.
2453 * tests/sort-time/Makefile: Likewise.
2454 * tests/sort-time/README: Likewise.
2455 * tests/sort-time/rand-gen: Likewise.
2456 * tests/stty/basic-1: Likewise.
2457 * tests/stty/row-col-1: Likewise.
2458 * tests/sum/basic-1: Likewise.
2459 * tests/sum/sysv: Likewise.
2460 * tests/tac/Makefile.am: Likewise.
2461 * tests/tac/Test.pm: Likewise.
2462 * tests/tail/Makefile.am: Likewise.
2463 * tests/tail/Test.pm: Likewise.
2464 * tests/tail-2/Makefile.am: Likewise.
2465 * tests/tail-2/append-only: Likewise.
2466 * tests/tail-2/assert: Likewise.
2467 * tests/tail-2/assert-2: Likewise.
2468 * tests/tail-2/big-4gb: Likewise.
2469 * tests/tail-2/fflush: Likewise.
2470 * tests/tail-2/infloop-1: Likewise.
2471 * tests/tail-2/proc-ksyms: Likewise.
2472 * tests/tail-2/start-middle: Likewise.
2473 * tests/tail-2/tail-n0f: Likewise.
2474 * tests/tee/basic: Likewise.
2475 * tests/tee/dash: Likewise.
2476 * tests/test/Makefile.am: Likewise.
2477 * tests/test/Test.pm: Likewise.
2478 * tests/touch/Makefile.am: Likewise.
2479 * tests/touch/dangling-symlink: Likewise.
2480 * tests/touch/empty-file: Likewise.
2481 * tests/touch/fail-diag: Likewise.
2482 * tests/touch/fifo: Likewise.
2483 * tests/touch/no-create-missing: Likewise.
2484 * tests/touch/no-rights: Likewise.
2485 * tests/touch/not-owner: Likewise.
2486 * tests/touch/obsolescent: Likewise.
2487 * tests/touch/read-only: Likewise.
2488 * tests/touch/relative: Likewise.
2489 * tests/tr/Makefile.am: Likewise.
2490 * tests/tr/Test.pm: Likewise.
2491 * tests/tr/failures: Likewise.
2492 * tests/tsort/basic-1: Likewise.
2493 * tests/unexpand/basic-1: Likewise.
2494 * tests/uniq/Makefile.am: Likewise.
2495 * tests/uniq/Test.pm: Likewise.
2496 * tests/wc/Makefile.am: Likewise.
2497 * tests/wc/Test.pm: Likewise.
2499 2006-08-17 Jim Meyering <jim@meyering.net>
2501 ls -CF would misalign columns in some cases.
2502 * src/ls.c (get_type_indicator): New function. extracted from...
2503 (print_type_indicator): ...here. Use it.
2504 (length_of_file_name_and_frills): Use it here, too, rather than
2505 assuming stat.st_mode is valid.
2506 Reported by Andreas Schwab, here:
2507 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7774>
2508 See the test for this above. FYI, I did ls -CF /proc and visually
2509 inspected the result.
2511 * src/copy.c (copy_internal, same_file_ok): Adjust comments not
2512 to mention the now-removed cp_options.xstat member.
2514 * Makefile.maint (patch-check): Adapt to work now that the patch
2515 modifies more than one file in src/.
2517 With this patch, permit building with Solaris cc on Solaris 7.
2518 * src/c99-to-c89.diff: Add diffs to convert more c99-isms.
2519 This integrates patches from Bruno Haible.
2521 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
2523 Fix some problems reported by Bruno Haible.
2524 * tests/chmod/setgid (abs_srcdir): Remove; not used or needed.
2525 Skip this test if "chmod g+s d" silently does nothing.
2526 * tests/ls-2/tests: Skip this test suite if we can't set up files
2527 properly for the setuid-etc test. This simplifies some of the
2528 hacks we were using to work around porting problems.
2530 2006-08-16 Jim Meyering <jim@meyering.net>
2532 * tests/cp/Makefile.am: Don't mark "acl" as XFAIL.
2533 * tests/cp/acl: Instead, skip the test if either setfacl
2535 Reported by Michael Stone.
2537 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
2539 * tests/lang-default (LC_ALL): Set to "C", so we get
2540 English-language diagnostics. Unset the other variables; it
2541 should be portable to use 'unset' for this stuff nowadays.
2542 Problem reported by Bruno Haible. Using "C" reverses the
2543 2000-10-22 change to fileutils in this area.
2545 Fix bugs when printing plurals of numbers that are not
2546 unsigned long int values.
2547 * src/system.h (select_plural): New function.
2548 * src/md5sum.c (digest_check): Use select_plural to avoid bug.
2549 * src/uptime.c (print_uptime): Likewise.
2550 * src/dd.c (print_stats): Likewise. Also, don't use ngettext to
2551 print a floating point number, as reducing to 0 or 1 doesn't work
2552 for some languages. Instead, just use "s" for seconds since it
2553 doesn't need a plural form.
2555 2006-08-16 Bruno Haible <bruno@clisp.org>
2557 Old versions of gzip would write --help output to stderr, and it
2558 would be annoying to see that in the output of every "make" command.
2559 * Makefile.maint (gzip_rsyncable): Throw away stderr output of
2562 2006-08-16 Andreas Schwab <schwab@suse.de>
2564 * tests/cp/acl: Don't use non-portable == operator for test.
2566 2006-08-16 Jim Meyering <jim@meyering.net>
2568 * tests/ls/stat-dtype: Use stat to test file system type, rather
2569 than df -T, in case /etc/mtab lies. Reported by Michael Stone.
2571 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2573 * NEWS: Mention that df exits with nonzero status if it generates
2574 no output. This change was in 6.0 but inadvertently unmentioned.
2575 * src/df.c (file_systems_processed): Renamed from n_valid_args, and now
2577 (show_dev): Don't set it until we actually output something.
2578 Print the header if this is the first output.
2579 (main): Don't print a header, as that is now show_dev's job.
2580 * tests/misc/Makefile.am (TESTS): Add df.
2581 * tests/misc/df: New file.
2583 2006-08-15 Eric Blake <ebb9@byu.net>
2585 * src/stat.c (USE_STATVFS): Define to 0 if f_type is needed, but
2586 statvfs.f_type not present. See
2587 <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16325>.
2589 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2591 * src/dd.c (print_stats): Don't substitute "1" for number, as this
2592 causes confusion for the Hungarian translators. Problem reported
2593 by Egmont Koblinger here:
2594 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7726
2596 2006-08-15 Jim Meyering <jim@meyering.net>
2598 * .x-sc_require_config_h: Add lib/at-func.c.
2600 * NEWS: Add a line for 6.1-cvs.
2601 * configure.ac (AC_INIT): Bump to 6.1 and add "-cvs" suffix.
2603 2006-08-15 Jim Meyering <jim@meyering.net>
2606 * NEWS: Record the 6.0 release date.
2607 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2609 * TODO: Add an item (convert to use gnulib-tool), add to the plan
2610 for id-vs-getgrouplist, and remove a few completed items.
2612 * Makefile.maint (alpha beta major): Fix syntax error.
2614 2006-08-13 Jim Meyering <jim@meyering.net>
2616 * src/shred.c (usage): Don't indent the second line of an item.
2617 Otherwise, help2man would misformat the output.
2618 Reported by Adam Buchbinder in <https://launchpad.net/bugs/48917>.
2620 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
2622 * configure.ac (AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.
2623 Suggested by Eric Blake to avoid problems like
2624 <http://lists.gnu.org/archive/html/bug-coreutils/2006-07/msg00087.html>.
2626 2006-08-11 Jim Meyering <jim@meyering.net>
2628 * tests/ls/stat-vs-dirent: Too many (losing) systems trigger the
2629 failure that this test checks for (stat/dirent inode mismatch at
2630 a mount point), so continue to give a diagnostic about the failure,
2631 but don't actually count it as a failure.
2633 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
2635 * ABOUT-NLS: Update from gettext 0.15.
2636 * configure.ac (AM_GNU_GETTEXT_VERSION): Update from 0.13.1 to 0.15.
2638 * src/csplit.c (struct control): Remove fastmap member.
2639 (extract_regexp): Allocate fastmap separately, since otherwise
2640 it might move due to a realloc. This fixes a bug that led
2641 to a core dump on 64-bit sparc Solaris 10 (Sun Studio 10).
2643 2006-08-10 Jim Meyering <jim@meyering.net>
2645 * tests/ls/stat-dtype: If "." is tmpfs, skip this test unless uname -s
2646 reports "Linux". This avoids a failure on Solaris 10's tmpfs.
2647 Redirect both stdout and stderr of df invocations.
2649 * src/dircolors.hin: Add a TERM directive for each of the following:
2650 ansi, color-xterm, gnome, konsole, kterm, rxvt-cygwin,
2651 rxvt-cygwin-native, screen.linux, xterm-256color.
2652 Sort the TERM directives.
2653 From Mike Frysinger.
2655 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
2657 * src/dd.c (usage): Warn about oflag=append without conv=notrunc.
2658 See Debian bug 373736.
2660 * src/dircolors.hin: Add mlterm, rxvt-unicode; this fixes Debian
2663 * src/.cvsignore: Add shuf.
2665 * Makefile.maint: Remove the po-update procedure; it doesn't
2666 work with the new repository on http://www.iro.umontreal.ca/.
2667 For now I guess we'll have to fix things by hand.
2668 (do-po-update, po-update): Remove. All references removed.
2670 * src/shuf.c (next_line): New function.
2671 (read_input): Use it, to avoid relying on GCC-specific behavior
2672 with void * arithmetic. Problem reported by Bob Proulx.
2673 * Makefile.maint (my-distcheck): Compile with -Wpointer-arith
2674 to detect this sort of problem automatically in the future.
2676 2006-08-09 Jim Meyering <jim@meyering.net>
2678 * src/ls.c: Add a compile-time check to ensure that filetype
2679 and filetype_letter have the same number of elements.
2681 * tests/misc/sort-rand: Remove use of --seed=S.
2683 2006-08-08 Paul Eggert <eggert@cs.ucla.edu>
2685 Add a command 'shuf', and modify shred and sort to use the new
2686 random number generator library of 'shuf'.
2688 * AUTHORS: Add shuf.
2690 * NEWS: Likewise. Mention new --random-source option for shred
2691 and sort. Move "sort +1 -2" notice to the appropriate section,
2692 and clarify its role with respect to POSIXLY_CORRECT.
2693 * man/.cvsignore: Add shuf.1.
2694 * man/Makefile.am (dist_man_MANS): Add shuf.1.
2695 (shuf.1): New dependency.
2696 * man/shuf.x: New file.
2697 * src/Makefile.am (bin_PROGRAMS): Add shuf.
2698 (EXTRA_DIST): Remove rand-isaac.c.
2699 (shuf_LDADD): New macro.
2700 * src/rand-isaac.c: Remove, moving most of its contents to
2702 * src/shuf.c: New file.
2703 * src/shred.c: Use new random-number interface rather than rand-isaac.c.
2704 Don't include rand-isaac.c; include randint.h and randread.h instead.
2705 (RANDOM_SOURCE_OPTION): New enum.
2706 (long_opts, usage, main): New option --random-source.
2707 * src/sort.c: Likewise.
2708 * src/shred.c (struct irand_state, irand_init, irand32, irand_mod): Remove.
2709 All callers changed to use randint interface.
2710 (fillrand): Remove. All callers changed to use randread interface.
2711 (dopass): Remove dependency on ISAAC buffer size.
2712 (genpattern): Don't wipe the random state here.
2713 (randint_source): New static var.
2714 (clear_random_data): New function.
2715 (main): Allocate random source, and arrange to wipe it on exit.
2716 * src/sort.c: Include md5.h, randread.h, xmemxfrm.h.
2717 (longopts, usage, main): Remove undocumented --seed option;
2718 it's now replaced by --random-source.
2719 (rand_state, get_hash): Remove.
2720 (randread_source): New static var.
2721 (random_state, cmp_hashes, compare_random): New functions; they guarantee
2722 no collisions in the random hash function.
2723 (keycompare): Use compare_random for -R; don't fall back on comparing
2724 via memcoll, since compare_random does the right thing.
2725 * tests/misc/Makefile.am (TESTS): Add shuf.
2726 * tests/misc/shuf: New file.
2728 2006-07-29 Paul Eggert <eggert@cs.ucla.edu>
2730 * src/copy.c (set_author): Preserve the st_author field via the
2731 file descriptor dest_desc.
2733 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
2735 * NEWS: chmod now preserves setuid and setgid bits on directories
2736 if you use a numeric mode with them clear, e.g., "chmod 755 DIR".
2738 Fix test case problems if working directory is setgid,
2739 reported by Bob Proulx.
2740 * tests/cp/fail-perm: Use symbolic mode so that we clear
2741 setgid bit more reliably on directories.
2742 * tests/mkdir/special-1 (set_mode_string): Likewise.
2744 2006-07-27 Jim Meyering <jim@meyering.net>
2746 * src/chgrp.c (usage): Use correct grammar in description of the
2748 * src/chown.c (usage): Likewise.
2750 2006-07-26 Thomas Schwinge <tschwinge@gnu.org> (tiny change)
2752 * src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:
2753 Correctly access SRC_SB's element ST_AUTHOR.
2755 2006-07-26 Jim Meyering <jim@meyering.net>
2757 * tests/ls/stat-failed: Adapt to match new expected output.
2760 * src/ls.c (print_color_indicator): Test for S_IFREG first, rather
2761 than having the code test for all of the other types first.
2762 Hoist the set-uid/gid-testing code "up" into this new block.
2763 Classify any other type of file (e.g., S_TYPEISSHM, etc.) as
2764 C_ORPHAN, not as C_FILE.
2766 2006-07-26 Jim Meyering <jim@meyering.net>
2768 Checking in a change from Paul.
2770 2006-07-25 Paul Eggert <eggert@cs.ucla.edu>
2772 * src/ls.c (DT_INIT): Remove. All uses removed.
2773 (enum filetype): Use an ordinary enum rather than trying to keep
2774 the values in sync with DT_FIFO etc. That way, we don't have
2775 to make special assumptions about them. All uses changed.
2776 (whiteout): New constant member of enum filetype.
2777 (filetype_letter): New constant, for use with enum filetype.
2778 (FILETYPE_INDICATORS): New initializer list.
2779 (print_dir): Add case for DT_WHT.
2780 (gobble_file): If stat fails, don't discard information from
2781 readdir; instead, preserve it so it can be printed.
2782 (print_long_format): Fall back on readdir result if stat info
2783 is not available. Use "?" to denote each unknown mode char,
2784 instead of an overall "?", since we now know some of the mode
2786 (print_type_indicator): Now that MODE isn't necessarily
2787 useful, guard all uses.
2788 Now that two blocks in the type-checking tree can set "type = C_FILE",
2789 move the suffix-handling code out and down.
2791 2006-07-26 Jim Meyering <jim@meyering.net>
2793 Prepare for the above change.
2794 * src/ls.c [struct fileinfo] (stat_ok): Rename from stat_failed,
2795 and adjust uses. From a patch by Paul Eggert.
2797 2006-07-26 Jim Meyering <jim@meyering.net>
2799 * src/ls.c: Correct indentation/formatting in a few places.
2801 2006-07-25 Paul Eggert <eggert@cs.ucla.edu>
2803 * tests/cp/fail-perm: Use "chmod 0500" rather than "chmod 500".
2804 Problem report and fix from Bob Proulx.
2805 * NEWS: Clarify the "chmod 0500" news, and correct the vague
2806 statements about compatibility with BSD.
2808 2006-07-25 Jim Meyering <jim@meyering.net>
2810 * src/ls.c (gobble_file): When handling a stat-failed entry,
2811 print the entry name not the absolute_name -- to be consistent
2812 with the usual case.
2813 * tests/ls/stat-failed: Update accordingly.
2815 * src/ls.c: Add parens around the new uses of ?: ternary operator.
2817 * src/dircolors.hin: Mention that ORPHAN refers not just to dangling
2820 Get --dired offsets right when handling stat-failed entries.
2821 * src/ls.c (print_long_format): Be careful to increment P by the
2822 appropriate amount, even when inode_number_width and nlink_width
2824 * tests/ls/stat-failed: Test for the above.
2826 * src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the
2827 have_acl member. That would happen for a directory with both a
2828 non-stat'able entry and one with an ACL.
2830 * src/ls.c (gobble_file): Make it so failure to stat a
2831 non-command-line file provokes an exit status of 1, not 0.
2832 Say "cannot access" rather than "cannot stat".
2833 * tests/ls/stat-failed: New file/test, for the above.
2834 * tests/ls/Makefile.am (TESTS): Add stat-failed.
2835 * tests/ls-2/tests (no-a-isdir-b): Update to reflect addition
2836 of "cannot access " to diagnostic.
2838 * src/ls.c: Declare stat_failed to be "bool", not "int" everywhere.
2840 * src/ls.c [enum filetype] (command_line): Remove member. Not needed.
2841 Replace all occurrences of "type == command_line" with the
2842 equivalent, "command_line_arg".
2844 * src/ls.c: Apply the stat-failed parts of Red Hat's
2845 coreutils-selinux.patch. From Ulrich Drepper.
2846 This makes it so files not mentioned on the command line (e.g.,
2847 names read from a directory that *is* mentioned on the command
2848 line) for which stat fails are still listed. With --color,
2849 such files are colored just like ORPHANs (aka dangling symlinks).
2851 * src/df.c (n_valid_args): Declare global to be static.
2853 2006-07-24 Jim Meyering <jim@meyering.net>
2855 * tests/ls/stat-dtype: Skip this test on reiserfs, since that file
2856 system lacks d_type support.
2858 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
2860 * man/chmod.x: Update to reflect recent changes to coreutils.texi.
2862 2006-07-21 Jim Meyering <jim@meyering.net>
2864 * src/su.c (usage): Correct typo in --help output: s/commmand/command/
2865 Reported by Tim Waugh.
2866 Also remove the comment duplicating much of --help output.
2868 * src/ls.c (FILE_TYPE_INDICATOR_OPTION): Reposition this new
2869 name so the list remains alphabetized.
2871 Fix another bug: ls --indicator-style=file-type would call
2872 stat for a symlink, even though it wasn't always needed.
2873 In some cases, that unnecessary stat would cause ls to fail.
2874 * src/ls.c (gobble_file): Don't treat symlinks specially (in
2875 requiring a stat syscall). Remove the offending exclusion.
2877 * NEWS: Mention the fix.
2879 * tests/ls/stat-dtype: New file/test, for the above fix.
2880 Also exercises the new df feature, below.
2882 * src/df.c (main): Fail and don't print the headers if no
2883 file system is processed. This makes it easy to test whether
2884 a specified directory is on a file system of a given type or types.
2885 Otherwise, applications would have had to parse df's output.
2886 E.g., is "." either ext3 or reiserfs: df -t ext3 -t reiserfs .
2888 Fix a bug: ls --file-type worked like --indicator-style=slash,
2889 rather than like --indicator-style=file-type.
2890 * src/ls.c (FILE_TYPE_INDICATOR_OPTION): New enum member.
2891 (long_options): Map "file-type" to FILE_TYPE_INDICATOR_OPTION,
2893 (decode_switches): Handle new case: FILE_TYPE_INDICATOR_OPTION.
2894 * NEWS: Mention the fix.
2895 * tests/ls-2/tests (file-type): New test, for the above fix.
2897 2006-07-19 Jim Meyering <jim@meyering.net>
2899 * src/ls.c (print_dir): Give a better diagnostic for failed opendir.
2901 * Makefile.am (EXTRA_DIST): Add build-aux/vc-list-files.
2903 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
2905 * NEWS: chmod, install, and mkdir now leave setgid and setuid bits
2906 of directories alone unless you specify them explicitly.
2907 install and mkdir now implement X correctly.
2908 install now creates parent directories with mode 755, without
2909 changing their owner or group.
2910 * src/chmod.c (process_file): Adjust to mode_adjust API change.
2911 * src/install.c: Include mkancesdirs.h.
2912 (announce_mkdir, make_ancestor): New functions.
2913 (DEFAULT_MODE): New macro, specifying initial value of 'mode'.
2915 (dir_mode, dir_mode_bits): New vars.
2916 (main): Set dir modes separately from nondir, so that the X
2917 op of -m works correctly.
2918 (main): Remove cwd_errno cruft, since make_dir_parents no longer
2919 affects cwd. Adjust to new make_dir_parents API.
2920 (install_file_in_file_parents): 2nd arg is now char *, not char
2921 const *. Use mkancesdirs instead of rolling our own code.
2922 (change_attributes): Don't worry about AFS, since that kludge
2923 should not be needed any more.
2924 * src/mkdir.c (struct mkdir_options): New struct.
2925 (announce_mkdir, make_ancestor): New functions.
2926 (main): Use them. Adjust to mode_adjust API change. Stick with
2927 umask 0. Use make_dir_parents for all the work.
2928 * src/mkfifo.c (main): Adjust to new mode_adjust API.
2929 * src/mknod.c (main): Likewise.
2930 * tests/chmod/setgid: Do the setgid test instead of bailing.
2931 * tests/mkdir/p-3: Remove re_protect case that no longer applies.
2932 GNU chmod now behaves like other versions of chmod.
2933 * tests/mkdir/perm: Add a test for the X bug.
2935 2006-07-14 Paul Eggert <eggert@cs.ucla.edu>
2937 * src/base64.c (do_decode): Output to parameter OUT, not to stdout.
2938 This doesn't fix any bugs, since OUT always equals stdout, but it
2939 makes the code easier to understand.
2941 2006-07-14 Jim Meyering <jim@meyering.net>
2943 * Makefile.maint (CVS_LIST): Use new file, build-aux/vc-list-files,
2944 rather than open-coding it. Now supports mercurial, too.
2945 * .hgignore: New file.
2946 * Makefile.am (EXTRA_DIST): Add .hgignore, which ignores nearly
2947 all generated files, including ones like configure and po/*.po
2948 that are currently version-controlled in cvs.
2950 * Makefile.am (EXTRA_DIST): Add a few more .??* files.
2951 They've been in CVS, just haven't been distributed before this.
2952 Distribute ChangeLog-2005, too.
2953 (MAINTAINERCLEANFILES): Add THANKS-to-translators.
2955 2006-07-11 Paul Eggert <eggert@cs.ucla.edu>
2957 * src/system.h: Assume <dirent.h> exists, since gnulib assumes
2960 2006-07-09 Jim Meyering <jim@meyering.net>
2962 * tests/mv/dir2dir: Adjust so failing with ENOTEMPTY is ok, too.
2963 That happens with Linux/tmpfs.
2964 * tests/mv/Makefile.am (TESTS): Add dir2dir.
2966 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
2968 Adjust to recent updates from gnulib.
2969 * src/dd.c (apply_translations): Use toupper rather than
2970 islower followed by toupper; it's simpler and typically
2971 faster now that we assume at least C89 semantics. Similarly
2973 * src/sort.c (inittables): Likewise.
2974 * src/expand.c (expand): Don't assume that isprint etc. return
2975 booleans (needed for pre-C99 hosts).
2976 * src/fmt.c (check_punctuation): Likewise.
2977 * src/ptx.c (initialize_regex, fix_output_parameters): Likewise.
2978 * src/tr.c (is_char_class_member): Likewise.
2979 * src/unexpand.c (unexpand): Likewise.
2980 * src/join.c (is_blank): Remove; no longer needed. All uses
2981 replaced by isblank (to_uchar (...)).
2982 * src/pinky.c (create_fullname): Don't assume char is unsigned.
2983 * src/printf.c (print_esc): Likewise.
2984 * src/ptx.c (SKIP_NON_WHITE, SKIP_WHITE, SKIP_WHITE_BACKWARDS):
2985 (copy_unescaped_string): Likewise.
2986 * src/stat.c (print_it): Likewise.
2987 * src/system.h (_D_EXACT_NAMELEN): Renamed from NLENGTH, for
2988 convenience on GNU systems. All uses changed. Don't bother
2989 looking for any dirent.h substitute other than ndir.h.
2990 (D_INO): Remove unnecessary parentheses.
2991 (IN_CTYPE_DOMAIN, ISGRAPH, ISPRINT, ISALNUM, ISALPHA):
2992 (ISCNTRL, ISLOWER, ISPUNCT, ISSPACE, ISUPPER, ISXDIGIT):
2993 (ISDIGIT_LOCALE, TOLOWER, TOUPPER): Remove. All uses changed
2994 to ctype.h equivalents.
2995 (isblank): Renamed from ISBLANK. Check for HAVE_DECL_ISBLANK too.
2998 2006-07-08 Jim Meyering <jim@meyering.net>
3000 * tests/mv/dir2dir: New file, test for 2006-07-05 fix in copy.c.
3002 * Makefile.maint (sc_the_the): New rule.
3004 * src/dd.c (skip): Remove one of two adjacent "the"s in a comment.
3005 * tests/Coreutils.pm (run_tests): Remove one of two adjacent "then"s
3008 2006-07-07 Jim Meyering <jim@meyering.net>
3010 * NEWS: Mention that mv can now remove an empty destination directory,
3011 and give an example. Prompted by a report from Florent Bayle.
3013 2006-07-05 Jim Meyering <jim@meyering.net>
3015 * src/ls.c (usage): Correct the description of -G: it is useful
3016 only in a long listing. Reported by Martin Pool in
3017 <https://launchpad.net/distros/ubuntu/+source/coreutils/+bug/51653>.
3019 * man/chmod.x: Correct the description of the sticky bit. Reported
3020 by Chris Moore via Ian Jackson in <http://bugs.debian.org/376745>.
3022 * src/copy.c (copy_internal): Don't work around old NFS clients like
3023 SunOS-4.1.4 and Irix 5.3 that set errno to values like EIO and
3024 ENOTEMPTY upon failed rename. Otherwise, we risk misinterpreting
3025 a banal failure as a recursive move-into-self failure.
3026 Reported by Florent Bayle in <http://bugs.debian.org/376749>.
3028 * src/c99-to-c89.diff: Regenerate, to remove fuzz.
3030 2006-07-03 Jim Meyering <jim@meyering.net>
3032 Plug another unusual leak.
3033 (AD_mark_helper): Free malloc'd filename if hash_insert says
3034 that string is already in the hash table.
3036 The dev/inode of the topmost directory in each hierarchy were not
3038 * src/remove.c (remove_cwd_entries): Don't call cycle_check here.
3039 (AD_push): Call it from here instead.
3041 Fix two small leaks.
3042 * src/remove.c (AD_stack_clear): New function.
3044 (AD_pop_and_chdir): Free *prev_dir just before longjmp.
3046 * tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT):
3047 Add $VG_PATH_PREFIX as a prefix to $PATH
3049 * tests/envvar-check (vars): Add CDPATH and POSIXLY_CORRECT.
3050 * tests/Makefile.am (evar-check): Remove rule.
3051 (EXTRA_DIST): Remove .env-warn.
3052 * tests/.env-warn: Remove file. No longer used.
3053 Suggestion from Eric Blake.
3055 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
3057 * src/system.h: Include <stdint.h> unconditionally, since we
3058 now assume the stdint module.
3060 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
3062 * NEWS: With no operand, 'tail -f' now silently ignores the '-f'
3063 only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
3064 * src/tail.c (main): Implement this.
3065 * tests/tail/Test.pm (f-pipe-1): Renamed from f-1.
3066 (test_vector): Set POSIXLY_CORRECT for the f-pipe-* tests.
3068 2006-07-01 Jim Meyering <jim@meyering.net>
3070 * src/ln.c (do_link): Use new, shorter URL, for ag-review link.
3072 * .x-sc_require_config_h: Add ^lib/xstrtold\.c$, so make distcheck
3075 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
3077 * NEWS: seq now uses long double internally rather than double.
3078 It now defaults to a minimal fixed point format if possible.
3079 It lets you use %a, %A, %E, %F, %G.
3080 * src/Makefile.am (seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB).
3081 * src/seq.c: Don't include <math.h> or <xstrtol.h>; no longer needed.
3082 (isfinite) [!defined isfinite]: New macro.
3083 (separator, terminator): Now points to const.
3084 (first, step, last): Remove.
3085 (usage): Update to match new behavior.
3086 (struct operand, operand): New type.
3087 (scan_arg): Renamed from scan_double_arg, since we no longer use double.
3089 Compute and return a value of type operand, not double.
3090 (long_double_format): Renamed from valid_format, and now returns a
3091 new format with an "L" added if needed, if the original format was
3092 valid. Allow %a, %A, %E, %F, and %G formats.
3093 (print_numbers): Take numeric values as args rather than from globals.
3094 Print long double, not double.
3095 (get_width_format): Remove.
3096 (get_default_format): New function.
3097 (main): Implement new way of calculating default format.
3098 Don't worry about locale's representation of the decimal point, since
3099 the arguments are always processed in the C locale.
3100 * tests/seq/basic (neg-2): Adjust to new default format.
3101 (eq-wid-1, eq-wid-2): Resurrect these tests, since the new
3102 implementation should do the right thing.
3104 2006-06-30 Jim Meyering <jim@meyering.net>
3106 * tests/stty/basic-1: Work around an intermittent test failure
3107 on HP-UX 11.11. Report and analysis from Bob Proulx.
3108 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7475
3110 2006-06-28 Paul Eggert <eggert@cs.ucla.edu>
3112 * NEWS: Support obsolete usages like "sort +1 -2" even when
3113 conforming to POSIX 1003.1-2001, since this is a pure extension to
3114 POSIX. Problem reported by Christian in:
3115 http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00220.html
3116 * src/sort.c (main): Implement this.
3118 * src/system.h (CLOSEDIR): Remove. All uses changed to closedir.
3119 Autoconf 2.60 says this stuff was obsolete.
3121 2006-06-28 Jim Meyering <jim@meyering.net>
3123 * src/c99-to-c89.diff: Regenerate, to remove fuzz.
3125 2006-06-28 Bob Proulx <bob@proulx.com> (tiny change)
3127 * tests/mv/i-link-no: Work around HP-UX /bin/sh tracing problem
3128 (set -x when VERBOSE=yes) when stderr is redirected before stdout
3129 causing shell tracing of the stdout redirection to be written to
3130 the stderr file. Avoid problem and test failure on HP-UX by
3131 redirecting stderr last.
3132 * tests/dd/unblock-sync: Order shell file redirections for
3133 stderr and stdout in the common style.
3134 tests/acl: Likewise.
3136 2006-06-27 Jim Meyering <jim@meyering.net>
3138 * tests/misc/cat-proc: Try to avoid any spurious numeric
3139 differences in frequently-changing /proc/cpuinfo.
3140 Reported by Nelson Beebe.
3142 2006-06-26 Jim Meyering <jim@meyering.net>
3144 Attempt rmdir (actually, unlinkat-with-AT_REMOVEDIR) upon any
3145 fd_to_subdirp failure, not just when errno == EACCES.
3146 * src/remove.c (remove_dir): Use unlinkat-with-AT_REMOVEDIR, not
3147 rmdir, here, even though rmdir may happen to be adequate.
3149 * NEWS: rm no longer fails to remove an empty, unreadable directory
3150 * src/remove.c (remove_cwd_entries): If we can't open a directory,
3151 and the failure is not being ignored, try to remove the directory
3152 with rmdir (aka unlinkat-with-AT_REMOVEDIR), in case it's empty.
3153 Problem report and test case from Paul Eggert in
3154 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7425>.
3156 * tests/rm/empty-inacc: New test, for the above.
3158 Avoid a segfault for wc --files0=- < /dev/null.
3159 * src/wc.c (compute_number_width): Return right away if nfiles == 0.
3161 2006-06-25 Jim Meyering <jim@meyering.net>
3163 * NEWS: wc accepts a new option --files0-from=FILE, where FILE
3164 contains a list of NUL-separated file names.
3166 * src/wc.c: Include "readtokens.h".
3167 (usage): Describe the new option, and adjust the `Usage':
3168 with this option, no FILE may be specified on the command line.
3169 (main): Handle the new option.
3170 * tests/misc/wc-files0: New tests, for the above.
3171 * tests/misc/wc-files0-from: Likewise.
3172 * tests/misc/Makefile.am (TESTS): Add wc-files0.
3174 2006-06-24 Jim Meyering <jim@meyering.net>
3176 * src/md5sum.c (DIGEST_BUFFER): Remove now-unused definitions.
3178 2006-06-22 Jim Meyering <jim@meyering.net>
3180 * src/tee.c (tee_files): Rename from tee, to avoid conflict with
3181 the function in glibc's <fcntl.h>. Reported by Andreas Schwab.
3183 2006-06-19 Jim Meyering <jim@meyering.net>
3185 * Makefile.cfg (local-checks-to-skip): Add changelog-check,
3186 so this check is not run as part of "make distcheck".
3188 2006-06-18 Bob Proulx <bob@proulx.com> (tiny change)
3190 * tests/misc/pwd-long: Fix typo (s/neq/ne/) in previous change.
3192 2006-06-18 Jim Meyering <jim@meyering.net>
3194 * tests/misc/pwd-long: Make error output a little clearer.
3196 2006-06-17 Jim Meyering <jim@meyering.net>
3198 * tests/rm/inaccessible: Skip this test on systems without openat
3199 support. Reported by Bob Proulx.
3201 2006-06-15 Bob Proulx <bob@proulx.com> (tiny change)
3203 * tests/misc/mknod: Improve permission checks to handle
3204 running mkdir test in set-gid directories.
3206 2006-06-14 Jim Meyering <jim@meyering.net>
3208 * tests/du/basic: Revamp not to hard-code file system block sizes.
3210 2006-06-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3212 * tests/du/Makefile.am (TESTS_ENVIRONMENT): Pass $(PERL), for
3215 2006-06-11 Jim Meyering <jim@meyering.net>
3217 * .gitignore: New file.
3218 * Makefile.am (EXTRA_DIST): Add .gitignore.
3220 Setting TIME_STYLE=long-iso in the environment would make the
3221 cp/same-file test fail.
3222 * tests/envvar-check (vars): Add TIME_STYLE to the list.
3223 * tests/cp/same-file: Revert last change.
3224 Source the envvar-check script, to ensure that TIME_STYLE
3225 settings don't affect these tests.
3227 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
3229 * tests/cp/same-file: Execute 'ls' in the C locale, so that it
3230 uses POSIX time stamp formats. Problem reported by John Nixon in
3231 <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00062.html>.
3233 2006-06-10 Jim Meyering <jim@meyering.net>
3235 * NEWS: Mention the AIX-strndup-bug vs. dircolors workaround.
3237 Require a "Version N.M" line at the top of the ChangeLog
3238 file only when making the actual release, not when running
3240 * Makefile.maint (maintainer-distcheck): Don't depend on
3242 (alpha beta major): Depend on it here, instead.
3244 2006-06-08 Jim Meyering <jim@meyering.net>
3246 Ensure that cat works with any of the options, -A -v -e -E -T,
3247 when applied to files in /proc and /sys, even when the FIONREAD
3248 ioctl produces nonsensical results. Before this change, cat would
3249 produce no output (or truncated output), for some linux kernels.
3251 * src/cat.c (write_pending): New function, factored out of cat.
3252 (cat): Also interpret a negative ioctl/FIONREAD count as indicating
3253 that there are bytes to read. Some versions of linux-2.6.16 do that.
3254 Write any pending output before returning.
3255 Reported by Dan Jacobson in <http://bugs.debian.org/370583>.
3256 * NEWS: Mention this bug fix.
3257 * tests/misc/cat-proc: New file. Test for the above.
3258 * tests/misc/Makefile.am (TESTS): Add cat-proc.
3260 2006-06-07 Paul Eggert <eggert@cs.ucla.edu>
3262 * src/expr.c (eval4): Detect overflow properly when multiplying
3265 2006-06-06 Paul Eggert <eggert@cs.ucla.edu>
3267 * NEWS: The 'expr' command now detects and reports integer overflow.
3268 (It would be better to use extended precision instead, but that
3269 would be more work.)
3270 * src/expr.c (integer_overflow): New function.
3271 (eval4, eval3): Check for integer overflow.
3273 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
3275 Fix problems when building with Solaris/SVR4/etc. make, which uses a
3276 different and somewhat bogus implementation of VPATH. In the
3277 directory tests/misc, rename tests whose names might appear in the
3278 Automake-generated rules. For example, we can't use a test named
3279 'test', since Automake generates a rule that contains the text
3280 "if test -f ./$$tst; ...", and this might expand to something like
3281 "if ../../../coreutils-6.0/tests/misc/test -f ./$$test; ...",
3282 which executes the 'test' script rather than the 'test' command.
3283 * tests/misc/false-status: Renamed from tests/misc/false.
3284 * tests/misc/pwd-long: Renamed from tests/misc/pwd.
3285 * tests/misc/sort-merge: Renamed from tests/misc/sort.
3286 ($prog): Set to 'sort' rather than to $PROG.
3287 * tests/misc/test-diag: Renamed from tests/misc/test.
3288 * tests/misc/Makefile.am (PROG): Take the basename of $$tst,
3289 in case Solaris make has prepended the directory.
3290 (TESTS): Adjust to above renamings.
3291 * tests/misc/expand: Don't assign to PROG; no longer needed
3292 now that Makefile.am sets PROG to the basename.
3293 * tests/misc/fold: Likewise.
3295 2006-06-03 Jim Meyering <jim@meyering.net>
3297 Make `cp --link --no-dereference' work also on systems where the
3298 link system call cannot create a hard link to a symbolic link.
3299 * src/copy.c (copy_internal) [LINK_FOLLOWS_SYMLINKS]: Don't use
3300 the link syscall on a symlink when it would do the wrong thing.
3301 Based on the patch by Aurelien Jarno: <http://bugs.debian.org/329451>
3302 * tests/cp/link-no-deref: New file/test for the above.
3303 * tests/cp/Makefile.am (TESTS): Add link-no-deref.
3304 * NEWS: Mention the change (doesn't affect Linux).
3306 2006-06-01 Paul Eggert <eggert@cs.ucla.edu>
3308 Fix some porting problems in the test cases reported by
3309 Ralf Wildenhues for HP-UX 11.23 in:
3310 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00238.html
3311 * tests/help-version: Don't assume that \< \> works in sed.
3312 * tests/misc/close-stdout: Don't assume that >&- works.
3313 Add a /dev/full test.
3314 * tests/touch/no-create-missing: Don't assume that >&- works.
3316 2006-05-30 Jim Meyering <jim@meyering.net>
3318 * src/ls.c (usage): Add `v' to the list of sorting-related options.
3321 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3323 * tests/cp/fail-perm: source lang-default.
3324 * tests/rm/inaccessible: Likewise.
3326 2006-05-28 Jim Meyering <jim@meyering.net>
3328 * tests/rm/inaccessible: AIX 4.3.3 gives a different diagnostic.
3329 Recognize it, too. Reported by Ralf Wildenhues, in
3330 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html
3332 2006-05-27 Jim Meyering <jim@meyering.net>
3334 * src/chgrp.c: Support new options: --preserve-root and
3335 --no-preserve-root. Somehow this program was skipped when those
3336 options were added to chown, chmod, and rm. Reported by
3337 vaqflabuopac@spammotel.com in <http://bugs.debian.org/365656>.
3338 * NEWS: Mention this.
3340 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
3342 * NEWS: Remove mention of --seed. We'll replace it with something
3343 better, and don't want to indicate that it is supported.
3344 * src/sort.c (usage): Likewise.
3346 2006-05-20 Jim Meyering <jim@meyering.net>
3348 * src/chmod.c (main): Use FTS_PHYSICAL here, too.
3350 * src/du.c (main): Rename local, s/symlink_deref_bit/symlink_deref_bits/
3351 and arrange for -D to set fts' FTS_PHYSICAL bit as well as
3352 FTS_COMFOLLOW. Spotted by Justin Pryzby.
3354 * gnupload: Merge changes from automake, retaining the ""--to...
3355 kludge to placate overzealous `make distcheck' check.
3357 2006-05-19 Jim Meyering <jim@meyering.net>
3359 * src/du.c (main): Don't let -D, -L, or -P turn off the internal
3360 FTS_TIGHT_CYCLE_CHECK directory traversal option.
3361 Reported by Justin Pryzby in http://bugs.debian.org/367691
3363 2006-05-15 Jim Meyering <jim@meyering.net>
3365 * src/cp.c (usage): Correct description of -a: s/-dpR/-dpPR/.
3366 From Tomas Pospisek.
3368 2006-05-13 Jim Meyering <jim@meyering.net>
3370 * tests/mv/no-target-dir: Test two more cases.
3372 2006-05-11 Jim Meyering <jim@meyering.net>
3374 mv -T DIR EMPTY_DIR no longer fails unconditionally
3375 * src/copy.c (copy_internal): Don't manually prohibit a move where
3376 the destination is an existing directory. Sometimes doing that is
3377 valid. Let the rename system call enforce the rules. That is
3378 allowed only when the source is a directory and the destination
3379 directory (to be replaced) is empty. Reported by Eric Blake.
3380 * tests/mv/no-target-dir: New file/test for this.
3381 * tests/mv/Makefile.am (TESTS): Add no-target-dir.
3382 * NEWS: Mention this.
3384 * tests/mv/atomic: New file/test for yesterday's fix.
3385 * tests/mv/Makefile.am (TESTS): Add atomic.
3387 * tests/du/long-sloop: Avoid harmless `ambiguous redirect' diagnostic.
3389 2006-05-10 Jim Meyering <jim@meyering.net>
3391 * src/copy.c (copy_internal): Don't explicitly unlink the destination
3392 when moving a symlink into the place of an existing non-directory.
3393 Reported by Joshua Hudson.
3394 * NEWS: mention this.
3396 2006-05-07 Jim Meyering <jim@meyering.net>
3398 * Makefile.maint (patch-check): Fail if patch generates any output,
3399 even merely for changed offsets.
3401 * src/c99-to-c89.diff: Adjust to reflect new offsets.
3403 * NEWS: Mention changes affecting df, pwd, shred.
3405 2006-05-06 Jim Meyering <jim@meyering.net>
3407 * tests/ls/stat-vs-dirent: New test, to detect the bogus file
3408 system condition where dirent.d_ino != stat.st_ino.
3409 * tests/ls/Makefile.am (TESTS): Add stat-vs-dirent.
3411 2006-05-06 Eric Blake <ebb9@byu.net>
3413 * tests/ls/inode: Expand to test inode from readdir case.
3414 * tests/ls/follow-slink: Expand to test broken links encountered
3415 implicitly, favoring Solaris 9 and OpenBSD 3.4 behavior.
3417 2006-05-06 Eric Blake <ebb9@byu.net>
3419 * tests/mv/leak-fd: Work even on case-insensitive file system.
3421 2006-05-04 Jim Meyering <jim@meyering.net>
3423 * NEWS: Mention the 2006-03-19 pwd-related change that makes
3424 lib/getcwd.c work around inconsistent file system dirent.d_ino data.
3426 2006-05-03 Jim Meyering <jim@meyering.net>
3428 * src/ls.c (DEFINE_SORT_FUNCTIONS, LIST_SORTFUNCTION_VARIANTS):
3429 Use better macro parameter names: s/basename/key_name/,
3430 s/basefunc/key_cmp_func. Fix typo in comment.
3432 2006-04-29 Eric Blake <ebb9@byu.net>
3434 * src/ls.c (main): On systems with d_type, directories_first only
3435 implies format_needs_type, not format_needs_stat.
3437 2006-05-03 Jim Meyering <jim@meyering.net>
3439 * src/ls.c (xstrcoll_df_version, rev_xstrcoll_df_version): Add space
3440 after comma in arg list, from Eric Blake.
3442 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
3444 * tests/misc/date (relative-3): New test, derived from a bug
3445 report by John Thomas McDole.
3447 2006-04-23 Francesco Montorsi <fr_m@hotmail.com>
3449 New option for ls: --group-directories-first.
3450 It makes ls list directories before files.
3451 * NEWS [New features]: Mention it.
3452 * src/ls.c (sort_type): Rearrange to use as an array index when
3453 choosing sort function; added new sort_numtypes member for
3455 (time_type): Add new time_numtypes member for compile-time check.
3456 (directories_first): New global variable.
3457 (GROUP_DIRECTORIES_FIRST_OPTION): New enum.
3458 (long_options): Add --directories-first.
3459 (main): Support new option.
3460 (is_directory): New function.
3461 (extract_dirs_from_files): Use it.
3462 (DIRFIRST_CHECK, DEFINE_SORT_FUNCTIONS)
3463 (LIST_SORTFUNCTION_VARIANTS): New macros.
3464 (sort_functions): New global variable.
3465 (sort_files): Use it.
3466 (usage): Document new option.
3468 2006-04-18 Paul Eggert <eggert@cs.ucla.edu>
3470 * src/shred.c (fillrand): The assertion was way too weak, due to
3471 what must be a typo. Strengthen it to its intended value.
3472 (dopass): Don't use alloca; it's not worth the aggravation here,
3473 since it's used only to get a page-aligned buffer, and page
3474 alignment doesn't buy us much here. I'm suspicious that alloca
3475 causes problems on some hosts, due to a recent bug report by Adam
3476 Waltman: http://bugs.gentoo.org/130246.
3478 2006-04-18 Jim Meyering <jim@meyering.net>
3480 * tests/misc/tty-eof: Add new programs, base64, sha224sum, sha256sum,
3481 sha384sum, sha512sum.
3483 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
3485 * src/chmod.c (describe_change): Adjust to filemode changes.
3486 * src/ls.c (HAVE_ST_DM_MODE): Remove; moved to ../lib/filemode.c.
3487 (print_long_format): Use (new) filemodestring rather than
3488 (old) mode_string, so that we get more file types right, at least
3489 in theory. Adjust to filemode changes.
3490 * src/stat.c (human_access): Likewise.
3492 2006-04-18 Jim Meyering <jim@meyering.net>
3494 * src/ptx.c (main) [DEFAULT_IGNORE_FILE]: Remove code to use a default
3495 ignore file. This has never been enabled. Reported by Eric Blake.
3497 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
3499 * src/ln.c (linkfunc): Remove. This method ran into a compiler/linker
3500 bug in Interix. Just call symlink or link directly. All uses changed.
3501 * src/setuidgid.c (main) [! HAVE_SETGROUPS]: Don't call setgroups.
3502 * src/stat.c (USE_STATVFS): New macro.
3503 Include <sys/statvfs.h> and use statvfs only if USE_STATVFS.
3504 (NAMEMAX_FORMAT): define a bit more clearly, now that the
3505 statvfs-using code is a bit more regular.
3506 * src/system.h (sync) [!HAVE_SYNC]: New macro.
3508 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
3510 * NEWS: csplit, nl, expr now conform to POSIX better, and are
3511 more-compatible with traditional Unix, with respect to regular
3513 * src/csplit.c (extract_regexp): Set re_syntax_options to a
3514 value that is compatible with what POSIX requires.
3515 * src/nl.c (build_type_arg): Likewise.
3516 * src/expr.c (docolon): Likewise. Also, don't let anchors match
3517 newline; this fixes an incompatibility with tradition and with POSIX.
3518 Don't warn about leading ^. POSIX says it is unspecified whether
3519 ^ is a special character, which means that implementations can
3520 either treat it as special or not, but either way a warning is not
3521 allowed (unless the regexp is otherwise invalid). Instead, anchor
3522 the expression but treat ^ as an anchor; this is the traditional
3523 behavior (e.g., Solaris 10).
3524 (eval4, eval3, eval2): Treat non-numeric args, division by zero,
3525 and the like as invalid expressions (exit status 2), not as
3526 failure of 'expr' (exit status 3). This is more consistent with
3527 how Solaris behaves.
3528 * tests/expr/basic (fail-a): Adjust exit status to match new expr
3529 behavior, for status 2 versus 3.
3531 (bre1, bre2, bre3, bre4, bre5, bre6, bre7, bre8, bre9, bre10):
3532 (bre11, bre12, bre13, bre14, bre15, bre16, bre17, bre18, bre19, bre20):
3533 (bre21, bre22, bre23, bre24, bre25, bre26, bre27, bre28, bre29, bre30):
3534 (bre31, bre32, bre33, bre34, bre35, bre36, bre37, bre38, bre39, bre40):
3535 (bre41, bre42, bre43, bre44, bre45, bre46, bre47, bre48, bre49, bre50):
3536 (bre51, bre52, bre53, bre54, bre55, bre56, bre57, bre58, bre59, bre60):
3537 (bre61, bre62): New tests.
3538 * tests/misc/csplit: Use \{...\} in test RE, to test that we're
3539 conforming to POSIX.
3542 * tests/du/long-from-unreachable: Solaris 8 sh doesn't understand
3543 "if !". Do not assume that 'sed' can handle long, newline-free input.
3544 * tests/du/long-sloop: Likewise. Evaluate expr once, not $n times.
3546 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
3548 Adjust to new regex.h API (with new fastmap type), and clean
3549 up the regex storage allocation a bit.
3551 * src/csplit.c (struct control): Put re_compiled member at the
3552 end, since it's large. Change regexpr member from char * to bool;
3553 all uses changed. Add new member fastmap.
3554 (extract_regexp): regexp arg is now char const *, not char *.
3555 Don't bother duplicating the regular expression; it's not needed.
3556 Set fastmap from new fastmap member. Don't bother allocating
3557 a buffer, as the regexp code does a better job than we do.
3558 * src/expr.c (docolon): Allocate and use a fastmap.
3559 Don't bother allocating a buffer.
3560 * src/nl.c (body_fastmap, header_fastmap, footer_fastmap):
3562 (build_type_arg): New fastmap arg. All uses changed.
3563 Don't bother allocating a buffer, but set a fastmap.
3564 * src/ptx.c (context_regex_string, word_regex_string): Remove.
3565 (context_regex, word_regex): New vars, replacing the above.
3567 (struct regex_data): New type.
3568 (compile_regex): Renamed from alloc_and_compile_regex, since
3569 we no longer allocate storage. Arg is now a struct regex_data *,
3570 not a const char *. All uses changed. Don't allocate the fastmap;
3571 instead, take it from the caller. Don't convert size_t to int,
3572 to avoid arithmetic overflow problems. Don't bother freeing
3573 storage afterwards; it's not worth the aggravation.
3574 * src/tac.c (compiled_separator_fastmap): New ver.
3575 (main): Use it. Don't bother allocating a buffer.
3577 2006-03-30 Jim Meyering <jim@meyering.net>
3579 * src/dd.c (iwrite): Remove assignment without effect.
3580 Reported by Felix Rauch Valenti.
3582 2006-03-22 Eric Blake <ebb9@byu.net>
3584 * src/ptx.c (usage): Remove mention of --copyright/-C.
3585 (main): Alias --copyright to --version plus a deprecation warning.
3586 * NEWS: Mention this.
3588 2006-03-27 Jim Meyering <jim@meyering.net>
3590 * src/Makefile.am (uptime_LDADD): Add $(POW_LIB), for uptime's
3591 use of strtod. Tiny patch from Nickolai Zeldovich.
3593 2006-03-11 Eric Blake <ebb9@byu.net>
3595 * tests/misc/dirname: New file.
3596 * tests/basename/Makefile.am: Delete.
3597 * tests/basename/basic: Move to...
3598 * tests/misc/basename: ... this new file. Add some tests,
3599 including fixed behavior for //.
3600 * tests/misc/Makefile.am (TESTS): Sort. Add basename, dirname.
3601 * tests/Makefile.am (SUBDIRS): Remove basename.
3602 * configure.ac (AC_CONFIG_FILES): Remove tests/basename.
3604 Improvements to dirname/basename handling on platforms like
3605 cygwin with distinct // and with drive letters.
3606 * NEWS: Document new behavior.
3607 * src/basename.c (main): Don't strip suffix from file system
3609 * src/cp.c (target_directory_operand): Use new last_component.
3610 (ASSIGN_BASENAME_STRDUPA): Likewise. Reduce time spent
3611 traversing the string.
3612 * src/dircolors.c (guess_shell_syntax): Use new last_component.
3613 * src/install.c (target_directory_operand, install_file_in_dir):
3615 * src/ln.c (target_directory_operand, main): Likewise.
3616 * src/ls.c (basename_is_dot_or_dotdot): Likewise.
3617 * src/mv.c (target_directory_operand, movefile): Likewise.
3618 * src/remove.c (rm_1): Likewise.
3619 * src/shred.c (wipename): Likewise.
3620 * src/split.c (next_file_name): Likewise.
3621 * src/su.c (log_su, run_shell): Likewise.
3623 2006-03-23 Paul Eggert <eggert@cs.ucla.edu>
3625 * NEWS: nohup diagnostics are now more precise, and nohup now
3626 redirects stderr to nohup.out if stdout is closed and stderr is a tty.
3627 * src/nohup.c (main): Implement this.
3628 * tests/misc/nohup: Test the new behavior.
3630 2006-03-12 Jim Meyering <jim@meyering.net>
3632 * src/copy.c (set_author): Rename function, from preserve_author.
3634 * src/remove.c (AD_pop_and_chdir): Use new macro,
3635 CYCLE_CHECK_REFLECT_CHDIR_UP, rather than open-coding it.
3637 * src/system.h (SAME_INODE): Remove definition.
3638 Include "same-inode.h", instead.
3640 2006-03-11 Eric Blake <ebb9@byu.net>
3642 * src/pwd.c (robust_getcwd): Prepend only one slash, not two.
3644 2006-03-10 Jim Meyering <jim@meyering.net>
3646 Fix a bug whereby a user with write access to a directory being removed
3647 could cause the removal of that directory to fail with an erroneous
3648 diagnostic about a directory cycle. Reported by Vineet Chadha.
3650 * NEWS: Mention this.
3651 * src/remove.c (AD_pop_and_chdir): If the directory we're about to
3652 leave (and try to rmdir) is the one whose dev_ino is being used to
3653 detect a cycle, reset cycle_check_state.dev_ino to that of the parent.
3655 2006-03-08 Paul Eggert <eggert@cs.ucla.edu>
3657 * NEWS: Document dd's new 'directory' and 'nolinks' flags.
3658 * src/dd.c (set_fd_flags): Handle file-creation flags on file
3659 descriptors, rather than ignoring them.
3660 * tests/dd/misc: Add test cases for append, nofollow, directory,
3661 and nolinks flags. Simplify redirection to /dev/null in some cases.
3663 * tests/dd/misc: iflags->iflag. This fixes a typo that meant the
3664 noatime test never tested anything.
3666 2006-03-05 Paul Eggert <eggert@cs.ucla.edu>
3668 * src/dd.c (flags, usage): New flags directory, nolinks.
3669 * src/system.h (O_NOLINKS): Define to 0 if not already defined.
3671 * src/ls.c (usage): Mention that -f disables --color.
3672 Problem reported by Niels Möller.
3674 2006-03-03 Justin Pryzby <pryzbyj@justinpryzby.com>
3676 * man/*.x: Add references to syscalls from utilities of the same name.
3678 2006-03-05 Jim Meyering <jim@meyering.net>
3680 * tests/help-version: Set SHELL, if not already set, in order to
3681 avoid failure when `make check' is run through debuild; dircolors
3682 would fail due to lack of $SHELL. Reported by Sven Joachim.
3684 Make `base64 --wrap=N' work for N=0, and for N larger than SIZE_MAX.
3685 * src/base64.c (wrap_write, do_encode, main): Change type of
3686 parameters and locals, wrap_column, form size_t to uintmax_t.
3687 (main): Adjust to use xstrtoumax, accordingly.
3689 2006-03-03 Jim Meyering <jim@meyering.net>
3691 Don't fail when run from an environment with SHELL not a Bourne
3692 shell, e.g. `env SHELL=/bin/csh make check' would fail this test.
3693 * tests/dircolors/simple: Invoke each non-failing test with -b.
3694 Reported by Michael Stone.
3696 2006-02-27 Jim Meyering <jim@meyering.net>
3698 * tests/misc/base64: Derive --decode-using tests from the
3701 * tests/misc/base64: Factor out a long constant string.
3702 Split lines to stay within 80 columns.
3704 * tests/misc/Makefile.am (TESTS): Add base64.
3705 * tests/misc/base64: Test base64. From Simon Josefsson.
3707 * src/base64.c (do_decode): Use correct type for parameter,
3708 ignore_garbage: s/size_t/bool/.
3710 * src/base64.c: Don't include .h files already included by system.h:
3711 <string.h>, <stdlib.h>, <stdbool.h>, <limits.h>, <errno.h>.
3712 Include "system.h" before the other lib/*.h header files.
3713 Include <sys/types.h> before "system.h".
3714 (wrap_write): Remove declaration of unused local, initial_column.
3715 (wrap_write): Correct declaration syntax: s/size_t * V/size_t *V/.
3717 * README: Add base64 to the list.
3719 2006-02-17 Simon Josefsson <jas@extundo.com>
3721 New program: base64.
3722 * AUTHORS: Mention base64.
3724 * man/Makefile.am: Build base64.1.
3725 * man/base64.x: New file.
3726 * src/Makefile.am (bin_PROGRAMS): Add base64.
3727 * src/base64.c: New file.
3729 2006-02-25 Eric Blake <ebb9@byu.net>
3731 In ls, avoid calling stat for --inode (-i), when possible.
3732 * src/pwd.c (NOT_AN_INODE_NUMBER, D_INO): Move to ...
3733 * src/system.h: ... here, for use in ...
3734 * src/ls.c (main): ... here. Prefer dirent.d_ino to stat when
3736 (gobble_file): Add inode argument.
3737 (print_dir): Pass inode if available.
3738 (usage): Remove inaccuracy.
3740 2006-02-23 Jim Meyering <jim@meyering.net>
3742 * TODO: Update/correct some obsolete entries.
3744 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
3746 * doc/coreutils.texi (join invocation): Mention `sort -k 1b,1'.
3747 * src/join.c (usage): Likewise.
3748 Documentation problem reported by Philip Kensche.
3750 2006-02-20 Eric Blake <ebb9@byu.net>
3752 * man/rm.x: Update documentation to match previous patch.
3754 2006-02-18 Eric Blake <ebb9@byu.net>
3756 New option for rm: --interactive=once (-I).
3757 * NEWS: Document it, along with change to rm --interactive.
3758 * TODO: Remove entry for implementing rm -I
3759 * src/rm.c (INTERACTIVE_OPTION): New enum value.
3760 (interactive_type): New enum.
3761 (long_opts): Let interactive take an optional argument.
3762 (interactive_args, interactive_types): New option arguments.
3763 (usage): Document -I, --interactive=WHEN. Use program_name
3764 instead of a basename.
3765 (main): New -I option, new behavior to --interactive.
3766 * tests/rm/interactive-once: New tests.
3767 * tests/rm/interactive-always: Ditto.
3768 * tests/rm/Makefile.am (TESTS): Run them.
3770 2006-02-18 Jim Meyering <jim@meyering.net>
3772 * Makefile.maint (sc_two_space_separator_in_usage): Make the regular
3773 expression match more of the target lines, e.g., those that start with
3774 `-S,' (short option followed by a comma) or that include `=[...]'.
3775 Patch by Nicolas François.
3776 Fix the four offenders thus exposed:
3777 * src/join.c (usage): Use two spaces (not one) to separate the
3778 --first-only option string from its description, so help2man formats
3779 the derived man page properly.
3780 * src/pr.c (usage): Likewise.
3781 * src/uniq.c (usage): Likewise.
3782 * src/install.c (usage): Likewise.
3784 2006-02-15 Jim Meyering <jim@meyering.net>
3786 * Makefile.maint (alpha beta major): For `make major', ensure that the
3787 version string is of the form N.N[.N]*, where N is one or more digits.
3789 2006-02-14 Jim Meyering <jim@meyering.net>
3791 * INSTALL: Update from gnulib.
3793 2006-02-13 Jim Meyering <jim@meyering.net>
3795 * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
3797 2006-02-12 Jim Meyering <jim@meyering.net>
3799 * Makefile.maint (patch-check): New target.
3800 (local-checks-available): Add to the list.
3802 2006-02-11 Jim Meyering <jim@meyering.net>
3804 * src/c99-to-c89.diff: New file.
3805 * src/Makefile.am (EXTRA_DIST): Add c99-to-c89.diff.
3807 * .x-po-check: New file, with exclusions so that `make distcheck'
3809 * Makefile.am (EXTRA_DIST): Add .x-po-check.
3811 rm -r must remove an empty directory, even if it is inaccessible.
3812 * src/remove.c (close_preserve_errno): New function.
3813 (fd_to_subdirp): Don't print a diagnostic in this function.
3814 Do it from the callers instead, unless rmdir succeeds.
3815 (remove_cwd_entries, remove_dir): Adjust callers.
3816 * tests/rm/empty-inacc: New test for the above.
3817 * tests/rm/Makefile.am (TESTS): Add empty-inacc.
3818 * NEWS: Mention this bug fix.
3819 * tests/rm/rm2: Adjust two expected diagnostics, now that they're
3820 a tiny bit less precise: cannot remove `a/1': ... instead of
3821 cannot open directory `a/1': ...
3823 * Makefile.maint (syntax-check-rules): Automatically derive this
3824 list of sc_-prefixed rule names.
3826 2006-02-10 Paul Eggert <eggert@cs.ucla.edu>
3828 * Makefile.maint (CVS_LIST): Don't assume cvsu is available.
3829 (CVS_LIST_EXCEPT): New macro, to simplify exception-processing.
3830 Most uses of CVS_LIST changed to use CVS_LIST_EXCEPT.
3831 (syntax-check-rules): Bring back sc_changelong. (Hmm, why did it
3832 go away? was that an accident?)
3833 (sc_cast_of_argument_to_free, sc_cast_of_x_alloc_return_value):
3834 (sc_cast_of_alloca_return_value, sc_space_tab, sc_prohibit_atoi_atof):
3835 (sc_error_exit_success, sc_file_system, sc_no_if_have_config_h):
3836 (sc_system_h_headers, sc_sun_os_names, sc_trailing_blank):
3837 (sc_two_space_separator_in_usage, sc_unmarked_diagnostics):
3838 (sc_obsolete_symbols, sc_changelog, sc_prohibit_jm_in_m4):
3839 (sc_useless_cpp_parens, makefile-check, m4-check, po-check):
3840 (author_mark_check, makefile_path_separator_check):
3841 Output line numbers, to simplify navigation of Emacs *compilation*
3843 (sc_prohibit_atoi_atof, sc_file_system):
3844 Rework slightly so that Makefile.maint doesn't get reported as a
3845 violation of its own syntax rules.
3846 (sc_dd_max_sym_length): Use ifneq to do nothing, instead of doing
3847 it at run-time (which didn't work with Bison). Fix a makefile typo,
3848 caught by Makefile.maint itself: spaces where a tab should be.
3849 (po-check): Check lib/*.[ch] even if not in CVS; used by Bison,
3850 which copies from ../gnulib/lib/*.[ch] to lib/*.[ch].
3851 Ignore djgpp and man subdirectories, to avoid false matches with
3852 Bison and coreutils, respectively. Use sort -u to remove the
3853 resulting duplicates.
3854 * gnupload: Rework slightly to avoid bogus warning from
3855 sc_two_space_separator_in_usage.
3857 2006-02-10 Jim Meyering <jim@meyering.net>
3859 Use gzip's --rsyncable option only if it's available.
3860 * Makefile.maint (gzip_rsyncable): New variable.
3863 2006-02-08 Jim Meyering <jim@meyering.net>
3865 * Makefile.maint (local-checks-available): Define in terms of
3866 the expansion, $(syntax-check-rules), rather than the single,
3867 top-level target `syntax-check', so that it's easier to exclude
3868 individual rules (via $(local-checks-to-skip)).
3869 (tgz-md5, tgz-sha1, ...): Remove now-unused definitions.
3871 2006-02-07 Jim Meyering <jim@meyering.net>
3873 * src/system.h (!defined O_DIRECT): If O_DIRECTIO is defined (as it
3874 is on Tru64), define O_DIRECT to that. Patch From James Lemley.
3876 * tests/help-version (expected_failure_status_vdir):
3877 Redirect an expected disk-full diagnostic to /dev/null.
3879 2006-02-06 Jim Meyering <jim@meyering.net>
3881 * src/unexpand.c (usage): Use two spaces (not one) to separate the
3882 --first-only option string from its description, so help2man formats
3883 the derived man page properly.
3884 * src/rm.c (usage): Likewise for --no-preserve-root.
3885 * src/chown.c (usage): Likewise.
3886 * src/chgrp.c (usage): Likewise.
3888 Add a rule to ensure that the above doesn't happen again.
3889 * Makefile.maint (sc_two_space_separator_in_usage): New rule.
3890 (syntax-check-rules): Add it.
3891 * .x-sc_two_space_separator_in_usage: New empty file.
3892 * Makefile.am (EXTRA_DIST): Add .x-sc_two_space_separator_in_usage.
3894 2006-02-06 Jim Meyering <jim@meyering.net>
3896 * src/cp.c (usage): Use two spaces (not one) to separate each
3897 option string from its description, so help2man formats the
3898 derived man page properly.
3899 * src/mv.c (usage): Likewise.
3900 Patch from Nicolas François in http://bugs.debian.org/351601.
3902 2006-02-04 Jim Meyering <jim@meyering.net>
3904 * src/copy.c (copy_internal): cp -RL would fail when encountering
3905 the same directory more than once in the hierarchy beneath a single
3906 command-line argument. That is legitimate, e.g. when there are
3907 two or more symbolic links, each pointing to some directory that
3908 would not otherwise be copied. Reported by Christophe LYON.
3909 * tests/cp/cp-deref: New file. Test for today's fix.
3910 * tests/cp/Makefile.am (TESTS): Add cp-deref.
3911 * NEWS: Document this.
3913 2006-02-03 Jim Meyering <jim@meyering.net>
3915 * configure.ac: Require automake-1.9.6, not 1.8.3.
3917 2006-02-01 Paul Eggert <eggert@cs.ucla.edu>
3919 * src/od.c (usage): Mention that -t a ignores high order bit.
3920 Documentation problem reported by Ed Avis.
3922 2006-02-01 Jim Meyering <jim@meyering.net>
3924 * src/pwd.c (find_dir_entry): Remove unused local, `ent_sb_valid'.
3926 2006-01-30 Paul Eggert <eggert@cs.ucla.edu>
3928 * src/head.c (main): Use a better diagnostic when someone uses a
3929 trailing numeric option in an invalid way. Problem reported by
3931 * src/tail.c (parse_options): Likewise.
3933 2006-01-30 Jim Meyering <jim@meyering.net>
3935 * man/wc.x: Include `count' keyword in man page synopsis,
3936 per suggestion from http://bugs.debian.org/181585.
3938 2006-01-24 Paul Eggert <eggert@cs.ucla.edu>
3940 * src/df.c (show_dev): If the file system claims to have
3941 more available than total blocks, report the number of used
3942 blocks as being total - available (a negative number) rather
3943 than as garbage. Problem reported by Toralf Foerster.
3945 2006-01-24 Jim Meyering <jim@meyering.net>
3947 * src/tail.c (tail_forever): Don't exit-nonzero when an attempt
3948 to put a regular file in O_NONBLOCK mode fails with EPERM.
3949 That happens on Linux (up to 2.6.15) when using tail -f on a file with
3950 the append-only attribute. Reported by Dean Gaudet. For details,
3951 see http://savannah.gnu.org/bugs/?func=detailitem&item_id=15473.
3952 * NEWS: Mention this fix.
3953 * tests/tail-2/append-only: New file. Test for the above.
3954 * tests/tail-2/Makefile.am (TESTS): Add append-only.
3955 * tests/Makefile.am (check-root): Add tail-2/append-only
3957 2006-01-21 Jim Meyering <jim@meyering.net>
3959 * NEWS: Mention fts-related improvements and bug fixes.
3961 2006-01-19 Jim Meyering <jim@meyering.net>
3963 * tests/fmt/basic (pfx-1, pfx-2): New tests, to demonstrate the bug
3964 reported as http://bugs.debian.org/147577. Forwarded by Thomas Hood.
3966 2006-01-18 Jim Meyering <jim@meyering.net>
3968 * tests/du/Makefile.am (TESTS): Add long-from-unreadable.
3970 2006-01-17 Jim Meyering <jim@meyering.net>
3972 Now that fts no longer changes the current working directory, adjust
3973 its clients accordingly -- note that du.c uses fts but doesn't need
3974 any adjustment, since it doesn't operate on the actual files,
3975 but rather just uses the stat buffers provided by fts.
3977 * src/chown-core.c: Include "openat.h".
3978 Don't include "lchown.h".
3979 (restricted_chown): Accept a new parameter, CWD_FD, and use it in
3980 calling openat, lchownat, chownat, rather than open, lchown, chown.
3982 * src/chmod.c: Include "openat.h".
3983 (process_file): Use chmodat (fts->fts_cwd_fd,... in place of chmod (...
3985 * tests/du/long-from-unreadable: New test, to exercise one small
3988 2006-01-13 Jim Meyering <jim@meyering.net>
3990 * tests/Makefile.am (SUBDIRS): Add comments discouraging the
3991 addition of new directories under tests/.
3993 * tests/acl: Redirect stdin to /dev/null. Otherwise, FreeBSD 5.0's
3996 2006-01-12 Jim Meyering <jim@meyering.net>
3998 * tests/du/long-sloop: Adjust not to hard-code the expected
3999 diagnostic corresponding to ELOOP. Solaris' diagnostic differs
4000 from that of GNU libc. Reported by Paul Eggert.
4002 * tests/du/long-sloop: Create file at end of symlink chain.
4004 * tests/misc/test: New file, with a test for one of the
4005 bugs fixed by yesterday's test.c changes.
4006 * tests/misc/Makefile.am (TESTS): Add test.
4008 2006-01-11 Jim Meyering <jim@meyering.net>
4010 * tests/du/long-sloop: New file. Test for today's fts.c bug fix.
4011 That bug could make du -L, chgrp -L, or chown -L fail to diagnose
4012 a very long sequence of symbolic links (not necessarily a loop).
4013 * tests/du/Makefile.am (TESTS): Add long-sloop.
4015 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
4017 * src/test.c (test_syntax_error): Append a newline. All callers
4018 changed, except for the ones that didn't already append a newline.
4019 Bug reported by Eric Blake.
4021 2006-01-11 Jim Meyering <jim@meyering.net>
4023 * src/system.h (X2NREALLOC): Now that verify_true is no longer
4024 void, cast its result to void, to avoid gcc's warning that
4025 ``left-hand operand of comma expression has no effect''.
4026 (DECIMAL_DIGIT_ACCUMULATE, X2REALLOC): Likewise.
4028 2006-01-10 Jim Meyering <jim@meyering.net>
4030 * tests/chmod/no-x: Add a test for today's fts.c fix.
4032 2006-01-10 Jim Meyering <jim@meyering.net> (tiny change)
4034 * src/ls.c (gobble_file): Use DTTOIF only if it's defined.
4035 This is necessary for Dragonfly. Patch by Joerg Sonnenberger.
4037 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
4039 * src/system.h (X2NREALLOC, X2REALLOC, DECIMAL_DIGIT_ACCUMULATE):
4040 Use verify_true instead of verify_expr, to sync with gnulib.
4042 2006-01-08 Jim Meyering <jim@meyering.net>
4044 * src/date.c (usage): Adjust the formatting of the entries for
4045 %::z and %:::z (separate with two spaces, not one) so that help2man
4046 formats them properly. Reported by Philip Rowlands.
4048 2006-01-06 Paul Eggert <eggert@cs.ucla.edu>
4050 * configure.ac (gl_IGNORE_UNUSED_LIBRARIES): Add.
4052 2006-01-06 Jim Meyering <jim@meyering.net>
4054 * Makefile.maint (copyright-check): Use date +%Y in place of
4057 * src/remove.c (rm_1): Remove `static' attribute on local `status'.
4058 First off, the attribute should have been `volatile' (not static)
4059 to avoid longjmp-related risk of clobber. Secondly, now there is
4060 no longer any risk of a local variable being clobbered, so there's
4061 no need for any attribute at all.
4063 2006-01-05 Jim Meyering <jim@meyering.net>
4065 * src/remove.c: Give a few functions the inline attribute.
4066 (AD_pop_and_chdir): Use gotos to avoid some duplication.
4067 (AD_push): Rewrite an assertion so that the entire computation
4068 goes away when assertions are turned off.
4070 * src/tail.c (ENOSYS) [!defined ENOSYS]: Don't define here.
4071 It's already defined in "system.h".
4072 * Makefile.maint: Add a FIXME comment.
4074 2006-01-04 Jim Meyering <jim@meyering.net>
4076 * ChangeLog: Remove entries from 2005-10-22 and earlier.
4077 * ChangeLog-2005: New file, for entries up to version 5.92.
4079 2006-01-03 Jim Meyering <jim@meyering.net>
4081 * tests/du/no-x: Also allow a slightly different diagnostic -- the
4082 one you get when using openat-enabled fts.c and du (coming soon).
4083 * tests/chmod/no-x: Likewise.
4084 * tests/chgrp/no-x: Likewise.
4086 * src/system.h (O_DIRECTORY) [!defined O_DIRECTORY]: Define.
4088 2006-01-02 Paul Eggert <eggert@cs.ucla.edu>
4090 * src/chown-core.c (RC_do_ordinary_chown): New enum value.
4091 (restricted_chown): Return it, if the file cannot be accessed due
4092 to EPERM, or if no uid or gid are required, or if the file is
4093 neither a directory nor a regular file. Rewrite to avoid gotos.
4094 (change_file_owner): Handle RC_do_ordinary_chown case.
4095 Rewrite to avoid gotos.
4096 * tests/chgrp/basic: Make sure we can change the group of
4099 * src/date.c (usage): Explain %g, %G, and %V a bit better.
4101 2006-01-02 Jim Meyering <jim@meyering.net>
4103 * src/copy.c (set_owner): Correct a comment.
4105 * src/tail.c (parse_options): Change warning to say that --retry
4106 is useful `mainly' (not `only') when following by name.
4107 Reported here: http://bugs.debian.org/273781
4109 2006-01-01 Paul Eggert <eggert@cs.ucla.edu>
4111 * NEWS: Document that mkfifo and mknod -m no longer set special bits.
4112 * src/copy.c: Include lchmod.h.
4113 (copy_internal): Use lchmod rather than chmod.
4114 * src/cp.c: Include lchmod.h.
4115 (re_protect, make_dir_parents_private): Use lchmod rather than chmod.
4116 * src/mkdir.c: Include lchmod.h.
4117 (usage): Clarify -m's operation.
4118 (main): Use lchmod rather than chmod. Don't use lchmod unless the
4119 new mode contains bits outside the 777 range.
4120 * src/mkfifo.c (usage): Clarify -m's operation.
4121 (main): If -m is given, don't invoke chmod; use umask 0 instead.
4122 Report an error if -m asks for bits outside the 777 range.
4123 * src/mknod.c (usage, main): Likewise.
4125 * src/mkdir.c, src/mkfifo.c, src/mknod.c: Undo 2005-12-19 changes.
4127 2005-12-27 Jim Meyering <jim@meyering.net>
4129 * Makefile.maint (sc_obsolete_symbols): Prohibit use of O_NDELAY.
4130 (sc_prohibit_assert_without_use): New rule.
4131 (syntax-check-rules): Add it to the list.
4132 * .x-sc_prohibit_assert_without_use: New empty file.
4133 * Makefile.am (EXTRA_DIST): Add it.
4135 * Makefile.maint (CVS_LIST): Define in terms of $(srcdir).
4137 * cp.c, df.c, link.c, mknod.c, nice.c, sleep.c, unlink.c:
4138 Don't include <assert.h>; it wasn't used.
4140 2005-12-26 Paul Eggert <eggert@cs.ucla.edu>
4142 * src/chown-core.c (restricted_chown):
4143 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
4144 * src/remove.c (fd_to_subdirp): Open with O_DIRECTORY | O_NOCTTY
4145 | O_NOFOLLOW too, for consistency with other dir-openers.
4146 Use POSIX-preferred O_NONBLOCK rather than O_NDELAY.
4147 (is_empty_dir): Likewise.
4148 * src/shred.c (wipename): Likewise. Don't bother trying to open
4149 dir for writing, since POSIX prohibits it.
4151 2005-12-22 Jim Meyering <jim@meyering.net>
4153 * tests/help-version: Redirect stderr to /dev/full, to suppress
4154 write error diagnostic.
4156 2005-12-19 Jim Meyering <jim@meyering.net>
4158 * src/mkdir.c, src/mknod.c, src/mkfifo.c (main)
4159 Avoid a minor race condition when `-m MODE' is specified, by using
4160 open, fchown, and close rather than just chown. To do that reliably --
4161 even with an overly restrictive umask -- ensure that each mkdir,
4162 mknod and mkfifo call uses a mode including at least owner-read access.
4163 * src/mknod.c (main): When `-m MODE' is specified, exit nonzero if
4164 the subsequent chown (or equivalent open,fchown,close) fails.
4165 * tests/misc/mknod: New tests.
4166 * tests/misc/Makefile.am (TESTS): Add mknod.
4168 2005-12-17 Jim Meyering <jim@meyering.net>
4170 * src/remove.c (is_empty_dir): Open with O_NDELAY, so we don't hang,
4171 e.g., on a named pipe.
4172 (OPEN_NO_FOLLOW_SYMLINK): Remove definition. Use O_NOFOLLOW in
4173 place of all uses, since it is guaranteed (system.h) to be defined.
4175 2005-12-05 Andreas Gruenbacher <agruen@suse.de>
4177 Add POSIX ACL support
4178 * src/ls.c: Switch back from HAVE_ACL to USE_ACL: The acl() syscall
4179 is no requirement for ACL support; particularly, it does not exist
4180 on systems that have POSIX ACLs.
4181 * src/copy.h (cp_option_init) [umask_kill]: Remove member.
4182 * src/cp.c (umask_kill): With default acls, the umask is not to be
4183 applied. Remove umask_kill, don't change the process umask, and let
4184 the kernel apply the umask where appropriate.
4185 * src/cp.c (make_dir_parents_private): Fix logic for POSIX ACLs.
4186 * src/copy.c (get_dest_mode): Remove; it is obsolete after removing
4188 (copy_reg, copy_internal): Use copy_acl and set_acl
4189 instead of fchown/chown. Fix the logic for POSIX ACLs.
4190 (chown_succeded): Remove; we now always copy acls and
4191 preserve S_ISUID, S_ISGID, and S_ISVTX when needed, no matter if we
4192 did a chown before or not.
4193 * src/mv.c, src/install.c (cp_option_init): Don't set umask_kill member.
4194 * src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD, cp_LDADD,
4195 mv_LDADD, ginstall_LDADD): On systems with an ACL library, arrange
4196 to link with it via $(LIB_ACL), for the utilities that need it.
4198 2005-12-16 Paul Eggert <eggert@cs.ucla.edu>
4200 * src/remove.c (OPENAT_CWD_RESTORE__REQUIRE): Remove.
4201 (OPENAT_CWD_RESTORE__ALLOW_FAILURE): Likewise.
4202 (fd_to_subdirp): Remove openat_cwd_restore_allow_failure arg; its
4203 value is now signified by whether cwd_errno is null.
4204 (fd_to_subdirp, remove_dir, rm_1); Change cwd failure indicator from
4205 pointer-to-bool to pointer-to-errno-value. All callers changed.
4206 (rm_1): Don't bother setting a local cwd failure flag and then
4207 ORing it into the caller's. Just set the caller's.
4208 (rm): Use cwd failure errno value to print a slightly-better
4211 2005-12-15 Jim Meyering <jim@meyering.net>
4213 * src/stat.c (print_it): Properly handle a backslash at the
4214 end of a --printf format string. Reported by Paul Eggert.
4215 * tests/misc/stat-printf (end-bs): Add a test for the above.
4217 2005-12-15 Paul Eggert <eggert@cs.ucla.edu>
4219 * tests/acl: Port to pre-POSIX shells like Solaris 8 /bin/sh.
4220 Don't assume /etc/passwd contains user names; use 'id' instead.
4222 2005-12-15 Jim Meyering <jim@meyering.net>
4224 stat: revert behavior of --format=FMT (-c)
4225 stat: add new option: --printf=FMT
4226 * NEWS: Mention this.
4227 * src/stat.c (isodigit, octtobin, hextobin): Define.
4228 (PRINTF_OPTION): Define.
4229 (interpret_backslash_escapes, trailing_delim): New globals.
4230 (usage): Document them. Alphabetize on long option names.
4231 (print_esc_char): New function.
4232 (print_it): Rewrite, in order to handle backslash escapes.
4233 (main): Handle new option. Set globals for --format, too.
4235 * tests/misc/stat-printf: Test --printf and --format.
4236 * tests/misc/Makefile.am (TESTS): Add stat-printf.
4238 2005-12-14 Paul Eggert <eggert@cs.ucla.edu>
4240 * NEWS: sort now reports incompatible options.
4241 * src/sort.c (incompatible_options, check_ordering_compatibility):
4243 (main): Use them. Don't bother with a usage message for
4244 "sort -c a b", for consistency with other error diagnostics.
4245 * tests/sort/Test.pm (incompat1, incompat2, incompat3, incompat4):
4248 * src/cat.c (main): Undo previous change. close_stdout already
4249 does the check, so the previous change wasn't necessary.
4251 2005-12-13 Paul Eggert <eggert@cs.ucla.edu>
4253 * src/cat.c (main): Check for close (STDOUT_FILENO) failure.
4255 2005-12-12 Paul Eggert <eggert@cs.ucla.edu>
4257 Install a more-conservative approach for sort -R. It's the
4258 same basic idea as the existing code, except it uses the full ISAAC
4259 approach (called the "more kosher" approach in the existing comments).
4260 This makes "sort -R" quite a bit slower (about a factor of 2 on my
4261 little tests involving 10000 lines on a 2.4 GHz P4), but I think it's
4262 better to be conservative here at first, and review any performance
4263 improvements carefully.
4264 * .x-sc_require_config_h: Add src/rand-isaac.c.
4265 * src/rand-isaac.h: Remove. All uses now simply include rand-isaac.c.
4266 * src/Makefile.am (noinst_HEADERS): Remove rand-isaac.h.
4267 (shred_SOURCES, sort_SOURCES): Remove.
4268 (EXTRA_DIST): Add rand-isaac.c.
4269 * src/rand-isaac.c: Revert to what used to be in shred.c, without
4270 changing it to allow for varying numbers of words in the state.
4271 Alter so that we include rand-isaac.c directly rather than
4272 compiling it and linking to it. Don't include config.h or
4273 system.h; that's the includer's responsibility.
4274 Omit functions that are specific to shred.
4275 (ISAAC_LOG, ISAAC_WORDS, ISAAC_BYTES, struct isaac_state, ind):
4276 (isaac_step, struct irand_state):
4277 Resurrect these, with the same defns that used to be in shred.c.
4278 (ISAAC_SIZE, isaac_new, isaac_copy): Remove.
4279 (isaac_refill, isaac_seed_start, isaac_seed_data, irand_init, irand32):
4281 (struct isaac_state, isaac_refill, isaac_mix, isaac_init):
4282 (isaac_seed_start, isaac_seed_data, isaac_seed_finish, isaac_seed):
4283 (irand_init, irand32, irand_mod):
4284 Number of words is constant again.
4285 (struct irand_state, irand_init, irand32, irand_mod): Move to shred.c.
4286 * src/shred.c: Include rand-isaac.c rather than rand-isaac.h.
4287 * src/sort.c: Likewise.
4288 * src/shred.c (fillrand, dopass, main): Undo previous change.
4289 (struct irand_state, irand_init, irand32, irand_mod): Moved back here,
4291 * src/sort.c: Don't include md5.h; it wasn't needed.
4292 (struct keyfield): Rename random_hash to random, for consistency
4293 with the other member names. All uses changed.
4294 (usage): Tweak wording to mention STRING for --seed option.
4295 (short_options): Rorder for consistency with other programs.
4296 (rand_state): Now a struct, not a pointer to one. All uses changed.
4297 (HASH_WORDS, HASH_SIZE): Remove.
4298 (get_hash): Remove comments around resbuf size, since we can assume C89.
4299 Use a "more-kosher" (but slower) approach of invoking isaac_refill.
4300 (keycompare): Adjust to the new get_hash.
4302 (badfieldspec): Omit recently-introduced comment; it isn't needed.
4303 (main): Don't set need_random simply because gkey has it set; that
4304 doesn't necessarily mean we'll need random numbers.
4305 Redo seeding to match new get_hash approach.
4307 2005-12-10 Jim Meyering <jim@meyering.net>
4309 * src/Makefile.am (noinst_HEADERS): Add rand-isaac.h.
4311 Avoid shred segfault on 64-bit systems.
4312 * src/rand-isaac.c (isaac_refill): Don't try to negate a
4313 local of type uint32_t. Make the local an `int' instead.
4315 * NEWS: Mention sort's new options.
4317 * src/rand-isaac.c (isaac_mix): Declare to be static.
4318 Mark all other functions as `extern' so the tight-scope
4319 part of `make distcheck' passes once again.
4320 * src/rand-isaac.h (isaac_mix): Remove declaration.
4322 * src/sort.c (get_hash): Change position of `*' in parameter
4323 type to conform with convention.
4324 (main): Split a long line so it fits in 80 columns.
4325 (keycompare): Remove stray SPACE before TAB that was
4326 causing `make distcheck' to fail.
4328 * src/shred.c: Don't include gethrxtime.h. No longer needed.
4330 * tests/misc/sort-rand: New file: basic tests for the new options.
4331 * tests/misc/Makefile.am (TESTS): Add sort-rand.
4333 2005-12-10 Frederik Eaton <frederik@ofb.net>
4335 * src/Makefile.am (sort_LDADD): Add $(LIB_GETHRXTIME).
4336 (shred_SOURCES, sort_SOURCES): New macros, so we compile rand-isaac.c.
4337 * src/rand-isaac.c: New file, containing ISAAC code that was in shred.c.
4338 Make state size runtime-configurable.
4339 (isaac_new, isaac_copy): New functions.
4340 * src/rand-isaac.h: New file.
4341 * src/shred.c: Include rand-isaac.h. Move ISAAC code to rand-isaac.c.
4342 (fillrand, main): Adjust to the fact that the state size is now
4343 runtime-configurable.
4344 * src/sort.c (short_options, long_options, WORDS, keycompare, main):
4345 (usage): Add options --random-sort and --seed to implement a random
4347 Include md5.h and rand-isaac.h.
4348 (get_hash): New function.
4349 (rand_state): New var.
4350 (HASH_WORDS, HASH_SIZE): New macros.
4352 2005-12-09 Paul Eggert <eggert@cs.ucla.edu>
4354 * tests/dd/misc: Add test for dd iflags=noatime.
4356 2005-12-09 Jim Meyering <jim@meyering.net>
4358 * src/sort.c (usage): Mention white space vs -b and -t options.
4361 2005-12-09 Eric Blake <ebb9@byu.net>
4363 * src/test.c (main): Fix misleading comment.
4365 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
4367 * NEWS: Mention dd's new noatime flag.
4368 * src/system.h (O_NOATIME): Define to 0 if not already defined.
4369 * src/dd.c (flags, usage): Add support for noatime flag.
4371 2005-12-07 Jim Meyering <jim@meyering.net>
4373 Distribute the cvsu script, used only by `make syntax-check'.
4374 * Makefile.am (EXTRA_DIST): Add build-aux/cvsu.
4375 * Makefile.maint (CVS_LIST): Use build-aux/cvsu, now that we
4376 distribute a copy of this script.
4377 * .x-sc_unmarked_diagnostics: Add build-aux/cvsu.
4379 * tests/mv/acl: exit-77 before the trap, not after, if we fail
4380 to create a temporary directory on another partition.
4381 From Andreas Gruenbacher.
4383 2005-12-06 Tomas Pospisek <tpo@sourcepole.ch> (tiny change)
4385 * man/basename.x: Cross-reference to dirname and readlink.
4386 * man/dirname.x: Cross-reference to basename and readlink.
4388 2005-12-05 Andreas Gruenbacher
4390 * src/copy.c [!HAVE_FCHOWN]: Define fchown(...) to -1.
4391 (set_owner, preserve_author): New functions, factored out of copy_reg.
4392 (copy_reg): Use them.
4393 (copy_internal): Use them here, too.
4395 2005-12-04 Jim Meyering <jim@meyering.net>
4397 * src/sleep.c (usage): Say what happens with two or more arguments.
4398 Suggested by Justin Pryzby.
4400 * src/uptime.c (print_uptime): Move decl of `upsecs' into scope
4403 2005-12-03 Jim Meyering <jim@meyering.net>
4405 * src/rm.c (long_opts): Change the name of each undocumented, for-
4406 testing-only option to start with `-', so that it cannot render
4407 ambiguous any prefix it happens to share with some other option name.
4408 Problem reported by Eric Blake.
4409 * src/head.c (long_options): Likewise.
4410 * src/tail.c (long_options): Likewise.
4412 * tests/misc/head-elide-tail: Update uses of undocumented, for-
4413 testing-only --presume* options to start with `---'.
4414 * tests/rm/dangling-symlink: Likewise.
4415 * tests/rm/dir-no-w: Likewise.
4416 * tests/rm/isatty: Likewise.
4418 2005-11-30 Jim Meyering <jim@meyering.net>
4420 * Makefile.maint: Add a comment about cvsu.
4422 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
4424 * NEWS: df updates for "none", "proc", inaccessible file systems.
4425 * src/df.c (show_point): Ignore inaccessible file systems.
4426 (usage): -a includes dummy file systems, not size-0 file systems.
4428 * src/od.c (unsigned_long_long_int): Renamed from ulonglong_t,
4429 to avoid collision with POSIX name space. All uses changed.
4431 2005-11-24 Jim Meyering <jim@meyering.net>
4433 * tests/Makefile.am (EXTRA_DIST): Add acl to the list.
4434 * tests/acl: Add `$0: ' prefix to diagnostics.
4436 * .x-sc_require_config_h: Add lib/buffer-lcm.c to the list.
4438 2005-11-23 Paul Eggert <eggert@cs.ucla.edu>
4440 * src/copy.c: Improve performance a bit by optimizing away
4441 unnecessary system calls and going to a block size of at least
4442 8192 (on normal hosts, anyway). This improved performance 5% on my
4443 Debian stable host (2.4.27 kernel, x86, copying from root
4444 ext3 file system to itself).
4445 Include "buffer-lcm.h".
4446 (copy_reg): Omit last argument. All callers changed.
4447 Use xmalloc to allocate rather than trusting alloca
4448 (which is unwise with large block sizes).
4449 Declare locals more locally, if possible.
4450 Use uintptr_t words instead of int words, for a bit more speed
4451 when looking for null blocks on 64-bit hosts.
4452 Optimize away reads of zero bytes on regular files.
4453 In the typical case, insist on 8 KiB buffers, at least.
4454 Avoid unnecessary extra call to fstat when checking for sparse files.
4455 Avoid now-unnecessary cast to off_t, and "0L".
4456 Avoid unnecessary test of *new_dst when checking for same owner
4459 2005-11-22 Paul Eggert <eggert@cs.ucla.edu>
4461 * src/remove.c (rm): Don't assume C99 for-loop syntax.
4463 2005-11-22 Jim Meyering <jim@meyering.net>
4465 * src/remove.c (AD_push): Remove debugging cruft.
4467 * tests/rm/unread2 (rm): Change expected diagnostic,
4468 `cannot open directory' to `cannot remove', to align with
4470 * tests/rm/rm2: Ensure that rm now continues removing entries
4471 even after certain types of failure.
4473 * src/remove.c: Rewrite. Now, this module is reentrant on systems
4474 that provide openat (Solaris), and on systems like Linux+procfs
4475 where our openat emulation code is reentrant. This also fixes a
4476 few low-probability leaks and eliminates some code that could,
4477 in very unusual circumstances, cause rm() (via a callee) to exit.
4478 * NEWS: Mention this.
4480 * configure.ac: Put copyright dates all on one line so the
4481 emacs function that updates them works properly.
4483 2005-11-18 Paul Eggert <eggert@cs.ucla.edu>
4485 * configure.ac (AM_PROG_CC_C_O): Add. Needed for CVS Automake.
4486 Problem reported by Eric Blake.
4487 (AC_PROG_CC_STDC): Use this instead of AC_PROG_CC, so that
4488 we get a standard-conforming compiler. This relies on the new
4489 m4/c.m4 file. Note that it's a bit tricky, since c.m4 doesn't
4490 define AC_PROG_CC_STDC; we are relying on Autoconf 2.59 internals.
4491 m4/c.m4 can go away with Autoconf 2.60 comes out.
4493 2005-11-17 Jim Meyering <jim@meyering.net>
4495 * src/remove.c (AD_mark_helper): Make a `char *' parameter `const'.
4496 (AD_mark_current_as_unremovable): Likewise, but for a local.
4499 * tests/mv/acl: Let traps handle removing temporary directories.
4501 Expect acl-related tests to fail, until the corresponding
4502 patches are committed.
4503 * tests/mv/Makefile.am (XFAIL_TESTS): Add acl.
4504 * tests/cp/Makefile.am (XFAIL_TESTS): Likewise.
4506 ACL tests, from Andreas Gruenbacher.
4507 * tests/acl, tests/mv/acl, tests/cp/acl: New files.
4508 * tests/mv/Makefile.am (TESTS): Add acl.
4509 * tests/cp/Makefile.am (TESTS): Add acl.
4511 * src/ls.c (basename_is_dot_or_dotdot): Correct wording in comment.
4513 2005-11-16 Paul Eggert <eggert@cs.ucla.edu>
4515 * NEWS: Improve quality of ln's diagnostics.
4516 * src/ln.c (do_link, usage): Likewise.
4517 (do_link): Don't use alloca on a buffer of unbounded size.
4519 2005-11-16 Jim Meyering <jim@meyering.net>
4521 * tests/cp/fail-perm: Accommodate HPUX. It appears to fail
4522 with EACCES rather than EPERM. Reported by Peter O'Gorman here:
4523 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/5766
4524 This also affects AIX 4.3.3, according to Ralf Wildenhues, in
4525 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html
4527 2005-11-14 Jim Meyering <jim@meyering.net>
4529 * NEWS (sort): Mention consequences of today's mkstemp-safer.c fix.
4531 2005-11-13 Jim Meyering <jim@meyering.net>
4533 * announce-gen: Accept new option, --gpg-key-id=ID and
4534 emit a blurb telling how to use the .sig files.
4535 * Makefile.cfg (gpg_key_ID): Define.
4536 * Makefile.maint (announcement): Use new option and key.
4538 Require that most .c files include <config.h>.
4539 * Makefile.maint (sc_require_config_h): New rule.
4540 (syntax-check-rules): Add it.
4541 * .x-sc_require_config_h: New file listing exceptions to the
4542 above rule. Some are legit, others are simply grandfathered in.
4543 * Makefile.am (EXTRA_DIST): Add .x-sc_require_config_h here, too.
4545 2005-11-12 Jim Meyering <jim@meyering.net>
4547 * src/checksum.h, src/md5.c, src/sha1sum.c: Remove now-unused files.
4549 2005-11-11 Jim Meyering <jim@meyering.net>
4551 * NEWS: Mention `readlink -f' bug fix in 5.3.0 news.
4552 Mention new readlink options in 5.3.0's `New features' section.
4553 Spotted by Thomas Hood.
4555 2005-11-08 Jim Meyering <jim@meyering.net>
4557 * NEWS: Merge in changes from b5_9x branch.
4559 2005-11-08 Paul Eggert <eggert@cs.ucla.edu>
4561 * NEWS: ls now defaults to --time-style='locale', which in turn acts
4562 like --time-style='posix-long-iso' if the locale settings are messed up.
4563 * src/ls.c (decode_switches): Implement this.
4565 2005-11-08 Jim Meyering <jim@meyering.net>
4567 * tests/du/2g: s/expensive/very expensive/ in a comment.
4570 2005-10-17 Eric Blake <ebb9@byu.net>
4572 * src/ls.c (usage): Fix descriptions of --sort, --time.
4573 Reported by Vitaly A. Ostanin.
4575 2005-11-04 Paul Eggert <eggert@cs.ucla.edu>
4577 * src/ln.c: Include filenamecat.c.
4578 (FILE_BASENAME_CONCAT): Remove.
4579 (do_link): Remove last arg DEST_IS_DIR. All callers changed.
4580 (main): Use file_name_concat, base_name, and strip_trailing_slashes
4581 instead of FILE_BASENAME_CONCAT. This simplifies the code, and avoids
4584 2005-11-04 Jim Meyering <jim@meyering.net>
4586 * src/du.c (process_file): Don't overflow for files of size >= 2^31
4587 on systems with stat.st_blocks of a signed 32-bit type.
4588 This bug causes trouble on some AIX 5.1 systems.
4589 Report and trivial patch from Paul Townsend:
4590 <http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00033.html>
4591 * NEWS: Mention this.
4593 * tests/du/2g: New (very-expensive) test for the above-fixed bug.
4594 * tests/du/Makefile.am (TESTS): Add it here.
4595 * tests/very-expensive: New file.
4596 * tests/Makefile.am (EXTRA_DIST): Add it here.
4597 * tests/cp/perm: Mark this test as `very-expensive', too.
4599 2005-11-02 Paul Eggert <eggert@cs.ucla.edu>
4601 * NEWS: Mention that rm -d and maybe ln -d are scheduled for
4603 * src/remove.h (struct rm_options): Remove unlink_dirs. All uses
4605 * src/rm.c (usage): Don't mention rm -d.
4607 2005-11-02 Jim Meyering <jim@meyering.net>
4609 * tests/dd/skip-seek: Fix typo in comment: s/fileutils/coreutils.
4610 From Andreas Schwab.
4612 * tests/dd/unblock-sync: Redirect stderr to /dev/null so the
4613 `M+N records in/out' lines don't pollute `make check' output.
4615 * tests/dd/skip-seek (sk-seek4): New test, to exercise the bug
4616 fixed on 2005-10-31. This test uses the new, IN_PIPE specifier.
4617 * tests/Coreutils.pm: Accept a new type of input specifier: IN_PIPE,
4618 to indicate that the input file should be piped into the command
4619 under test (via `cat FILE | $prog ...').
4621 * src/remove.c (remove_entry): Emit a better diagnostic when rm
4622 (without -r) fails to remove a directory on a non-Linux system.
4623 This change affects only newer Solaris systems (with priv_*
4624 functions like priv_allocset). Reported by Keith Thompson.
4626 * tests/rm/dir-nonrecur: New file/test for the above fix.
4627 * tests/rm/Makefile.am (TESTS): Add dir-nonrecur.
4629 2005-11-01 Paul Eggert <eggert@cs.ucla.edu>
4631 * NEWS: "tail -c 2 FILE" and "touch 0101000000" now operate as
4632 POSIX 1002.1-2001 requires.
4633 * src/tail.c (parse_obsolete_option): Implement this.
4634 Problem reported by Vincent Lefevre.
4635 * src/touch.c (main): Pass PDS_PRE_2000 to posixtime.
4636 * tests/tail/Test.pm (c-2, c-2-minus, c2, c2-minus): New tests.
4637 (test_vector): Add special cases for _POSIX2_VERSION, and
4638 regularize the old ones a bit.
4639 * tests/touch/obsolescent: Add y2000 test.
4641 2005-10-31 Paul Eggert <eggert@cs.ucla.edu>
4643 * src/dd.c (skip): Fix off-by-one error reported by
4644 Theodoros V. Kalamatianos.
4646 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
4648 * tests/mkdir/p-3: Require that the test be run as non-root.
4649 Problem and trivial fix reported by Theodoros V. Kalamatianos.
4651 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
4653 * src/ln.c (FILE_BASENAME_CONCAT): Omit unnecessary slashes in the
4654 boundary between DEST and SOURCE in the result.
4656 2005-10-26 Dmitry V. Levin <ldv@altlinux.org>
4658 * src/md5sum.c (main) [!O_BINARY]: Changed default read mode
4659 back to text, to sync with documentation and for backwards
4662 2005-10-25 Jim Meyering <jim@meyering.net>
4664 * tests/dircolors/simple (other-wr): Add an explicit test for
4665 the dircolors bug (NULL-dereference) fixed yesterday.
4667 2005-10-24 Jim Meyering <jim@meyering.net>
4669 * src/tac.c (tac_file): When determining whether a file is seekable,
4670 also test whether it is a tty. Using only the lseek-based test would
4671 give a false positive on Solaris. Reported by Peter Fales.
4673 2005-10-24 Dmitry V. Levin <ldv@altlinux.org>
4675 * tests/install/d-slashdot: New test, for "install -d" failure.
4676 * tests/install/Makefile.am (TESTS): Add d-slashdot.
4677 * tests/mkdir/p-slashdot: New test, for "mkdir -p" failure.
4678 * tests/mkdir/Makefile.am (TESTS): Add p-slashdot.
4680 2005-10-24 Jim Meyering <jim@meyering.net>
4682 * src/dircolors.c (ls_codes): Add missing comma.
4683 Anonymous report and patch from
4684 http://savannah.gnu.org/bugs/?func=detailitem&item_id=14849
4686 * src/dircolors.c: Add compile-time assertion that the slack_codes
4687 and ls_codes arrays have the same number of elements. This would
4688 have prevented the above-fixed bug.
4690 * src/expand.c (parse_tab_stops): Add a comment to make this function
4691 identical to the one in unexpand.c.
4692 * src/unexpand.c (parse_tab_stops): Adjust syntax to make this function
4693 identical to the one in expand.c.
4695 * src/expand.c (next_file): Don't assume fopen cannot return stdin.
4697 2005-10-23 Jim Meyering <jim@meyering.net>
4699 * src/md5sum.c (digest_check, main): Use ptr_align rather than
4700 a dangerous pointer-value-to-`unsigned' cast.
4701 * NEWS: mention the new sha* programs.
4702 * AUTHORS: Add new sha* programs.
4704 2005-08-28 David Madore <david.madore@ens.fr>
4706 Add new programs: sha224sum, sha256sum, sha384sum, sha512sum.
4707 * README: Add their names to the list.
4708 * src/md5sum.c: Provide framework for computing sha-2 hashes.
4709 * src/Makefile.am (sha224sum, sha256sum, sha384sum, sha512sum):
4710 Rules for compiling sha-2 utilities
4711 (noinst_HEADERS): Remove checksum.h.
4712 * man/sha512sum.x, man/sha384sum.x, man/sha256sum.x, man/sha224sum.x:
4714 * man/Makefile.am (dist_man_MANS): Add the corresponding .1 names.
4715 (sha224sum.1, sha256sum.1, sha384sum.1, sha512sum.1): New dependencies.
4716 * tests/misc/sha224sum, tests/misc/sha256sum: New files.
4717 * tests/misc/sha384sum, tests/misc/sha512sum: New files.
4718 * tests/misc/Makefile.am (TESTS): Add new sha224sum, sha256sum,
4719 sha384sum, sha512sum test scripts here rather that each in its
4722 2005-08-28 David Madore <david.madore@ens.fr>
4724 * tests/sha1sum/basic-1 (million-a): Add the "million a's" test (one
4725 of the FIPS test vectors).
4727 2005-10-23 Jim Meyering <jim@meyering.net>
4729 * configure.ac: Use 6.0-cvs as the version string.
4730 * NEWS: Adjust accordingly.
4735 Copyright (C) 2005, 2006 Free Software Foundation, Inc.
4737 Copying and distribution of this file, with or without
4738 modification, are permitted provided the copyright notice
4739 and this notice are preserved.