1 2007-01-11 Jim Meyering <jim@meyering.net>
3 Avoid a leak in expr's implementation of the ":" (match) operator.
4 * src/expr.c (docolon): Free the regexp buffer using regfree, rather
5 than doing it manually, being careful to set fastmap to NULL first.
6 Free any re_regs.start and .end members, if necessary.
8 * tests/misc/test-diag: Work also when libc's error function
9 reports the entire program name ("../../src/test"), rather than
10 just the final component.
12 2007-01-10 Jim Meyering <jim@meyering.net>
14 Don't use fts_statp uninitialized for "chown -RLh --preserve-root ...".
15 * src/chown-core.c (FTSENT_IS_DIRECTORY): New macro.
16 (change_file_owner): Perform the ROOT_DEV_INO_CHECK only for a
17 directory. Non-directory entries lack fts_statp data when using
18 the FTS_NOSTAT option.
20 2007-01-07 Jim Meyering <jim@meyering.net>
22 * tests/sample-test: Update copyright date to 2007.
23 * Makefile.maint (copyright-check): Also check the copyright date
26 2007-01-06 Jim Meyering <jim@meyering.net>
28 * tests/fmt/basic (pfx-only, pfx-of-pfx): New tests,
29 based on examples from G.P. Halkes in
30 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9388>.
32 2007-01-06 G.P. Halkes <buscom@ghalkes.nl>
34 * src/fmt.c (copy_rest): Correct prefix handling.
35 Don't elide a line with the prefix followed by only white space.
36 (get_line): Move EOF-check to loop-termination condition.
37 * tests/fmt/basic (pfx-1): Adjust test to expect desired result.
38 (pfx-2): Remove test; its premise was contrary to the documentation.
40 2007-01-05 Jim Meyering <jim@meyering.net>
42 Avoid a used-uninitialized bug for invalid input, i.e., when the size
43 of the input, not counting newlines, is 1 % 4.
44 * gl/lib/base64.c (base64_decode): Don't hard-code inlen==4.
45 It may be smaller when flushing.
47 2007-01-05 Mike Frysinger <vapier@gentoo.org>
49 * src/dircolors.hin: Add a TERM directive for cons25.
51 2007-01-04 Jim Meyering <jim@meyering.net>
53 * Makefile.cfg (local-checks-to-skip): Skip strftime-check, in
54 case you don't have convenient access to glibc info documentation.
56 Use the release year, not the current year.
57 * src/groups.sh (version): Use a better name: @RELEASE_YEAR@.
58 * src/Makefile.am (RELEASE_YEAR): Define it.
60 Thanks to a prod from Eric Blake.
62 Ensure that "group --version" always prints the current year.
63 * src/groups.sh (version): Use @CURRENT_YEAR@, rather than 2006.
64 * src/Makefile.am (.sh): Also substitute for @CURRENT_YEAR@.
65 Suggestion from Eric Blake.
67 When decoding, always allow newlines in input, with almost no
69 * src/base64.c (do_decode): Initialize decode context.
70 Call base64_decode one more time, after all input is processed.
71 (usage): When decoding, newlines are always accepted.
73 * tests/misc/base64: Add a bunch of tests, for the above.
74 * gl/lib/base64.c: Include <string.h>.
75 (base64_decode_ctx_init, get_4, decode_4): New functions.
76 (base64_decode): Efficiently handle interspersed newlines.
77 (base64_decode_alloc): Update signature.
78 * gl/lib/base64.h (struct base64_decode_context): Define.
79 (base64_decode_ctx_init): Add prototype.
80 (base64_decode, base64_decode_alloc): Update prototypes.
82 * gl/lib/base64.c: Copied from gnulib.
83 * gl/lib/base64.h: Likewise.
85 2007-01-03 Jim Meyering <jim@meyering.net>
87 * THANKS: Add Evan Hunt.
89 2007-01-03 Bruno Haible <bruno@clisp.org>
91 Avoid spurious test failures on MacOS X 10.3.9, in a German locale.
92 * tests/chown/deref: Apply lang-default.
93 * tests/misc/split-a: Likewise.
94 * tests/mv/reply-no: Likewise.
96 * src/copy.c (copy_internal): Use mkfifo as a fallback if mknod fails.
99 2007-01-02 Paul Eggert <eggert@cs.ucla.edu>
101 Now, "ls -FRL" always follows symbolic links on Linux.
102 * NEWS: Mention this bug fix.
103 * src/ls.c (gobble_file): Fix bug reported by
104 Nobuyuki Tsuchimura in
105 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00152.html
106 where "ls -FRL" didn't follow a symbolic link in some cases on Linux.
107 * tests/ls/follow-slink: Add a test for this case.
109 2007-01-01 Jim Meyering <jim@meyering.net>
111 * tests/rm/fail-eperm: Revert last change. The PATH=... setting
112 is not honored at least on HP-UX 11.23 systems.
113 Instead, simply transform the actual output diagnostic.
114 Test failure reported by Bob Proulx.
116 2006-12-30 Jim Meyering <jim@meyering.net>
118 * bootstrap (gnulib_extra_files): Remove announce-gen.
119 * bootstrap.conf (gnulib_modules): Add it here instead, now that
122 * tests/misc/base64: Factor a long, repetitive string.
124 * src/c99-to-c89.diff: Adjust remove.c offsets.
126 Clean up after the change of 2006-12-28.
127 * src/remove.c (AD_pop_and_chdir): Change **DIRP parameter to *DIRP,
128 now that this function never modifies the pointer. Adjust comments
129 and code accordingly.
130 (remove_dir): Set "dirp" to NULL right after AD_pop_and_chdir call,
131 now that AD_pop_and_chdir no longer does that.
133 * tests/rm/fail-eperm: Avoid spurious differences (the error function
134 from latest glibc no longer prints the full program_name): so don't
135 invoke rm via ../../src/rm. Instead, invoke it via "PATH=../../src rm".
137 * tests/mv/acl (skip): Skip this test also if the destination
138 directory, which is on a different file system, lacks ACL support.
140 * src/copy.c (copy_reg): Rewrite a comment that was rendered
141 inaccurate by the 2006-10-18 change.
143 2006-12-28 Jim Meyering <jim@meyering.net>
145 When moving "up" the hierarchy, be careful to remove a just-emptied
146 directory before opening ".", to avoid trouble with file system
147 implementations that cache readdir results at opendir-time.
148 * src/remove.c (AD_pop_and_chdir): Add a file descriptor parameter.
149 Don't update **DIRP. Don't call fdopendir here.
150 (remove_dir): Call fdopendir here instead.
151 Report and patch from Mikulas Patocka:
152 <http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00170.html>
154 2006-12-27 Jim Meyering <jim@meyering.net>
156 * src/tail.c (usage): Mention +N for --bytes and --lines.
157 Suggestion from Evan Hunt.
159 2006-12-26 Jim Meyering <jim@meyering.net>
161 * configure.ac: Require autoconf-2.61 and automake-1.10.
162 Without the former (even with autoconf-2.60), "make distcheck"
163 would fail (without the 2006-09-26 autoconf AC_CHECK_DECL fix),
164 due to an inttypes.h generated with CFLAGS including -pedantic.
165 With the old decl check, @HAVE_DECL_STRTOUMAX@ would be 0.
167 * Makefile.maint (VC-tag): Define, so as to gpg-sign each release
168 tag, using the release version number as the message.
169 (vc-dist): Use $(VC-tag), rather than "$(VC) tag".
171 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
173 * NEWS: dd bs= operands now silently override later ibs= and obs=,
175 * src/dd.c (scanargs): Implement it.
176 * tests/dd/misc (outbytes): Test it.
177 * doc/coreutils.texi (dd invocation): Specify that bs=N
178 overrides later ibs and obs, undoing part of the
179 previous change. (The behavior was wrong.)
181 2006-12-20 Jim Meyering <jim@meyering.net>
183 "rm -rf /etc/motd" (run by non-root) now prints a diagnostic.
184 * src/remove.c (remove_entry): Handle EACCES for a non-directory, too.
185 Don't let a non-directory get by with errno == EPERM, either.
186 Check the file type directly (using cached stat value), rather
187 than trying to guess it from errno values.
188 Karl Berry reported that a cross-partition "mv /etc/issue ~"
189 failed with the um,... suboptimal diagnostic,
190 "mv: cannot remove `/etc/issue': Not a directory".
191 * tests/rm/Makefile.am (TESTS): Add fail-eacces.
192 * tests/rm/fail-eacces: New file.
193 * NEWS: Mention that both mv and rm are affected.
195 "cut -f 2- A B" no longer triggers a double-free bug
196 * src/cut.c (cut_fields): Set file-scoped global to NULL after
197 freeing it. This avoids a double-free (and core dump on some systems)
198 for this usage: "echo 1>a; echo 2>b; cut -f2- a b". Reported by
199 James Hunt in <http://bugzilla.redhat.com/220312>.
200 * NEWS: List this bug fix.
201 * THANKS: Mention him.
202 * tests/misc/cut: New file.
203 * tests/misc/Makefile.am (TESTS): Add cut.
205 2006-12-15 Jim Meyering <jim@meyering.net>
207 * tests/cp/open-perm-race: Correct the gdb-existence check.
208 Don't run either subsequent gdb command in a sub-shell.
209 Reported by Thomas Schwinge.
210 * THANKS: bring up to date.
212 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
214 Make sure cp -p isn't too generous with file permissions.
215 * tests/cp/Makefile.am (TESTS): Add file-perm-race.
216 * tests/cp/file-perm-race: New file.
218 Ensure cp -pR --parents isn't too generous with parent permissions.
219 * tests/cp/Makefile.am (TESTS): Add parent-perm-race.
220 * tests/cp/parent-perm-race: New file.
222 2006-12-14 Jim Meyering <jim@meyering.net>
224 * tests/chgrp/default-no-deref: Don't assume that files are created
225 with the primary group by default. That's not true in a directory
226 with the set-GID bit set.
228 Don't hang when there's no input tty.
229 * tests/cp/open-perm-race: Skip this test if there is no
230 controlling input `terminal'.
232 Test for a hard-to-detect race fix, using gdb.
233 * tests/cp/open-perm-race: New file, to test for the
234 cp --preserve=ownership fix of 2006-12-06.
236 * tests/cp/Makefile.am (TESTS_ENVIRONMENT): Define abs_top_builddir.
237 (TESTS): Add open-perm-race.
239 * src/chgrp.c (main): Don't prohibit -RLh, aka -RL with --no-dereference.
240 * src/chown.c (main): Likewise.
241 * src/chown-core.c (change_file_owner): Add to a comment.
242 * tests/chown/preserve-root: Add tests.
244 * NEWS: --preserve-root now works with chgrp, chmod, and chown.
245 * src/chmod.c (process_file): Do honor the --preserve-root option.
246 * src/chown-core.c (change_file_owner): Likewise, but here, also
247 handle the case in which a traversal would go "through" a symlink
248 to root. Reported by Matthew M. Boedicker
249 * tests/chown/preserve-root: Test for the above.
250 * tests/chown/Makefile.am (TESTS): Add preserve-root.
252 * NEWS: Mention the chmod fix induced by the 2006-12-11 change
253 to gnulib's m4/openat.m4.
255 2006-12-13 Andreas Schwab <schwab@suse.de>
257 Don't fail if mv/acl test succeeds.
258 * tests/mv/acl (skip): Check for acl support in the file system.
259 * tests/mv/Makefile.am (XFAIL_TESTS): Remove.
260 (TESTS_ENVIRONMENT): Pass CONFIG_HEADER.
262 2006-12-13 Paul Eggert <eggert@cs.ucla.edu>
264 Remove some arbitrary restrictions on size fields, so that
265 commands like "sort -k 18446744073709551616" no longer fail merely
266 because 18446744073709551616 doesn't fit in uintmax_t. The trick
267 is that these fields can all be treated as effectively infinity;
268 their exact values don't matter, since no internal buffer can be
270 * src/join.c (string_to_join_field): Verify that SIZE_MAX <=
271 ULONG_MAX if the code assumes this. Silently truncate too-large
272 values to SIZE_MAX, as the remaining code will do the right thing
274 * src/sort.c (parse_field_count): Likewise.
275 * src/uniq.c (size_opt, main): Likewise.
276 * tests/join/Test.pm (bigfield): New test.
277 * tests/sort/Test.pm (bigfield): New test.
278 * tests/uniq/Test.pm (121): New test.
280 2006-12-13 Jim Meyering <jim@meyering.net>
282 * tests/chgrp/default-no-deref: New test.
283 * tests/chgrp/Makefile.am (TESTS): Add default-no-deref.
285 2006-12-12 Jim Meyering <jim@meyering.net>
287 * src/system.h (SETVBUF): Remove definition, now that the
288 autoconf macro, AC_FUNC_SETVBUF_REVERSED, does nothing.
289 * src/tee.c (tee_files): s/SETVBUF/setvbuf/.
290 * src/od.c (open_next_file): Likewise.
292 2006-12-09 Jim Meyering <jim@meyering.net>
294 * man/Makefile.am (.x.1): Make help2man use $(PACKAGE_STRING) as the
295 "source". I.e. "GNU coreutils 6.7".
297 * NEWS: With the change from "-pre" to "-dirty" suffix, also change
298 from NEXT_VER-pre to CUR_VER-dirty. So, this is 6.7-dirty.
299 * configure.ac (AC_INIT): s/6.8-dirty/6.7-dirty/.
301 * tests/uniq/Test.pm (test_vector): Skip the pipe-reading test
302 whenever uniq is expected to fail. This should catch the other case
303 [test #112] in which uniq emits "cat: write error: Broken pipe" on
306 2006-12-08 Jim Meyering <jim@meyering.net>
308 Include bootstrap tool version info in the announcement form.
309 * Makefile.maint (gnulib_snapshot_date): Define.
310 (announcement): Use two new announce-gen options,
311 --bootstrap-tools and --gnulib-snapshot-date.
312 * Makefile.cfg (gnulib_dir): Set.
314 Post-release version change.
315 * NEWS: Add a line for 6.8-dirty.
316 * configure.ac (AC_INIT): Set new version string.
318 2006-12-07 Jim Meyering jim@meyering.net
321 * NEWS: Record release date. Remove '-pre' suffix.
322 * configure.ac (AC_INIT): Remove version string suffix.
324 2006-12-07 Jim Meyering <jim@meyering.net>
326 Make the output of "make check" more reproducible.
327 * tests/touch/empty-file: Use envvar-check, so "make check" doesn't
328 evoke diagnostics like this when COLUMNS=0 in the environment:
329 ls: ignoring invalid width in environment variable COLUMNS: 0
330 * tests/touch/no-rights: Likewise.
331 * tests/help-version: Likewise.
332 * tests/uniq/Test.pm: Don't perform the pipe-reading version of test
333 118, since it emits "cat: write error: Broken pipe" on some systems.
335 2006-12-06 Paul Eggert <eggert@cs.ucla.edu>
337 * NEWS: Document the cp -p fix for special bits.
338 * src/copy.c (set_owner): Now returns a three-way result, so
339 that the caller can clear the special bits. All callers changed.
340 (copy_reg): Don't set the special bits if chown failed.
341 (copy_internal): Likewise.
342 * tests/cp/special-bits: Test this fix.
344 2006-12-06 Paul Eggert <eggert@cs.ucla.edu>
346 * NEWS: Document the cp --preserve=ownership fix.
347 * m4/jm-macros.m4 (coreutils_MACROS): Check for fchmod.
348 * src/copy.c (fchmod_or_lchmod): New function.
349 (copy_reg): New arg OMITTED_PERMISSIONS. All uses changed.
350 Omit confusing and unused ", dst_mode" arg to 'open' without O_CREAT.
351 When creating a file, use O_EXCL, so we're more likely to detect
352 funny business by other processes. At the end, if permissions
353 were omitted, chmod them back in.
354 (copy_internal): If the ownership might change, omit some permissions
355 at first, then restore them after chowning the file.
356 * src/cp.c (make_dir_parents_private): Likewise.
357 * src/copy.c (cached_umask): New function.
358 * src/copy.h (cached_umask): New decl.
360 2006-12-06 Jim Meyering <jim@meyering.net>
362 Make the output of "make check" more reproducible.
363 * tests/misc/date-sec: Don't emit any diagnostic about sleeping.
365 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
367 * src/install.c (install_file_in_file): Preserve time stamps
368 before changing owner or file mode bits, for consistency with
369 other coreutils programs.
371 2006-12-03 Jim Meyering <jim@meyering.net>
373 * tests/misc/date-sec: Output a fixed string.
375 * NEWS: du --one-file-system (-x) would skip subdirectories of any
376 directory listed as second or subsequent command line argument.
377 * tests/du/one-file-system: New file. Test for today's fts.c fix.
378 * tests/du/Makefile.am (TESTS): Add one-file-system.
379 Reported by Mike Frysinger.
381 2006-12-02 Jim Meyering <jim@meyering.net>
383 * tests/du/basic: Generate 4KB file simply using printf, rather than
384 seq+head. This avoids a spurious "Broken pipe" diagnostic from seq.
386 2006-11-28 Jim Meyering <jim@meyering.net>
388 * tests/mv/no-target-dir: Detect a buggy rename syscall. If found,
389 skip this test. This happens at least on ia64 linux-2.4.19 w/ext3.
390 Reported by Matthew Woehlke.
392 * tests/mv/dir2dir: Also accept EBUSY.
393 Reported by Matthew Woehlke.
395 2006-11-27 Jim Meyering <jim@meyering.net>
397 * Makefile.maint (patch-check): Rewrite to diagnose failure.
398 * src/c99-to-c89.diff: Adjust shred.c offsets.
400 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
402 Improve the check for departures from C89, and fix the departures
404 * Makefile.maint (my-distcheck): Also check for C89 compatibility
405 as best we can with GCC.
406 * src/stat.c (PRINTF_OPTION): Omit comma before } in enum
407 declaration; C89 doesn't allow this.
408 * src/dcgen: Don't generate string literals longer than
409 what C89 requires support for.
410 * src/cut.c (usage): Don't use string literals longer than
411 what C89 requires support for.
412 * src/date.c (usage): Likewise.
413 * src/dd.c (usage): Likewise.
414 * src/du.c (usage): Likewise.
415 * src/ls.c (usage): Likewise.
416 * src/od.c (usage): Likewise.
417 * src/readlink.c (usage): Likewise.
418 * src/seq.c (usage): Likewise.
419 * src/shred.c (usage): Likewise.
421 2006-11-26 Mike Frysinger <vapier@gentoo.org>
423 Recognize new archive, audio and image formats.
424 Give audio files a separate color.
425 * src/dircolors.hin: Add comments for common .sh and .csh scripts.
426 Add .bz2, .tbz2, .tz, .rar, .ace, .zoo, .cpio, .7z, .rz as archive
427 suffixes. Add .mng, .pcx, .m2v, .mkv, .ogm, .mp4, .m4v, .mp4v, .vob,
428 .qt, .nuv, .wmv, .asf, .rm, .rmvb, .flc, .yuv as image formats.
429 Add .aac, .au, .mid, .midi, .mka, .ra as audio suffixes. Change
430 audio color to 00;36 to differentiate from image/video color.
432 2006-11-26 Jim Meyering <jim@meyering.net>
434 * Makefile.maint (patch-check): Compile patched sources with
435 CFLAGS='-Wdeclaration-after-statement -Werror', to ensure that
436 no violations remain.
438 * src/c99-to-c89.diff: Remove 3 bogus hunks.
440 * src/remove.c (fd_to_subdirp): Remove unused parameter, ds.
443 * src/c99-to-c89.diff: Adjust for changes in rm.c and in remove.c.
445 * src/rm.c (main): Remove unnecessary (assuming C99) braces.
447 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
449 Port parts of the code to C89 to minimize the need for c99-to-c89.diff,
450 while trying to retain the readability of C99 as much as possible.
451 * src/remove.c (rm_1): Remove decl of local, fd_cwd.
452 Replace each of two uses with literal AT_FDCWD.
453 (cache_stat_init): Return its argument, for convenience.
454 Update the caller in remove_dir.
455 (AD_pop_and_chdir): Return prev_dir rather than storing through
456 a pointer argument. All uses changed.
457 (AD_ensure_initialized): New function.
458 (AD_mark_helper): Use it, to avoid the need for declaration
460 (rm): Move cycle_check_init call into callee...
462 Use an else clause in place of a "continue" statement.
463 (close_preserve_errno): Remove.
464 (fd_to_subdirp): Rewrite to avoid the need for decl after statement.
466 2006-11-25 Jim Meyering <jim@meyering.net>
468 * Makefile.am (EXTRA_DIST): Remove announce-gen from here, too.
470 2006-11-24 Theodoros V. Kalamatianos <thkala@softlab.ece.ntua.gr> (tiny change)
472 * tests/du/inacc-dest: Skip this test when running as root.
474 2006-11-23 Jim Meyering <jim@meyering.net>
476 * announce-gen: Remove file. It's moving to gnulib.
477 * bootstrap: Pull it from gnulib/build-aux instead.
478 * Makefile.maint (announcement): Reflect move to ./build-aux.
480 * tests/du/deref-args: Use "printf %65536s x" to create a 64KB file,
481 rather than a pipeline that would sometimes evoke a diagnostic
482 like "seq: write error: Broken pipe".
484 * tests/help-version: Suppress dd transfer rate output.
486 * configure.ac (AC_INIT): Bump to 6.7-pre, not 6.6-pre.
488 2006-11-22 Jim Meyering <jim@meyering.net>
490 * announce-gen (print_news_deltas): Fix silly, but harmless typo:
491 change "(:?..." to "(?:..." in regexps.
493 Post-release version change.
494 * NEWS: Add a line for 6.7-pre.
495 * configure.ac (AC_INIT): Bump to 6.7 and add "-pre" suffix.
498 * NEWS: Record release date. Remove "-pre" suffix.
499 * configure.ac (AC_INIT): Remove "-pre" suffix from version string.
501 * announce-gen: Remove unused --release-archive-directory option.
502 (print_news_deltas): Accept new adjective, "Noteworthy", in addition
504 Match version numbers in NEWS using tighter regular expressions.
505 (main): Require the --gpg-key-id=ID option.
506 * Makefile.maint (announcement): Don't use now-removed
507 --release-archive-directory=... option.
509 * NEWS: Mention the three noteworthy changes, all fixed via gnulib.
511 2006-11-21 Jim Meyering <jim@meyering.net>
513 * tests/rm/one-file-system: Upon setup failure (e.g., mount failure),
514 skip the test rather than failing. Reported by Michael Deutschmann.
516 * tests/rm/fail-eperm: Use the "(exit N); exit N" idiom,
517 rather than just "exit N".
519 Arrange for "make check-root" to run the new root-only test.
520 * tests/Makefile.am (t7): New target, to run tests/ls/nameless-uid.
523 2006-11-20 Jim Meyering <jim@meyering.net>
525 Add a root-only test for today's lib/idcache.c fix.
526 * tests/ls/nameless-uid: New file.
527 * tests/ls/Makefile.am (TESTS): Add nameless-uid.
528 (TESTS_ENVIRONMENT): Add PERL to the list.
530 2006-11-19 Jim Meyering <jim@meyering.net>
532 * tests/tail-2/assert-2: Mark as a very-expensive test, because I
533 find the 7-second sleep annoyingly long. Besides, this test is
534 probably far too specific and timing sensitive ever to trigger again.
535 * tests/tail-2/assert: Likewise.
537 Post-release version change.
538 * NEWS: Add a line for 6.6-pre.
539 * configure.ac (AC_INIT): Bump to 6.6 and add "-pre" suffix.
542 * NEWS: Record release date. Remove "-cvs" suffix.
543 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
545 2006-11-18 Jim Meyering <jim@meyering.net>
547 "ln --backup f f" produces a misleading diagnostic:
548 ln: creating hard link `f' => `f': No such file or directory
549 * src/ln.c (do_link): Give a better diagnostic in this unusual case.
550 (do_link): Rename local: s/lstat_ok/dest_lstat_ok/.
551 * tests/ln/Makefile.am (TESTS): Add hard-backup.
552 * tests/ln/hard-backup: New test for the above.
553 * NEWS: Mention this fix.
555 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
557 * bootstrap.conf (gnulib_modules): Add sys_stat, since we use it
559 * lib/.cvsignore, lib/.gitignore: Add root-dev-ino.c, root-dev-ino.h.
560 * m4/.cvsignore, m4/.gitignore: Add root-dev-ino.m4.
561 * src/ls.c (DIRED_FPUTS_LITERAL, PUSH_CURRENT_DIRED_POS):
562 Omit unnecessary parenthesization of args.
563 * src/od.c (EQUAL_BLOCKS): Likewise.
564 * src/system.h (STREQ, ASSIGN_STRDUPA): Likewise.
566 2006-11-16 Jim Meyering <jim@meyering.net>
568 * tests/tail-2/append-only: If chattr +a fails, exit 77 (to tell
569 automake we're skipping this test), and give a diagnostic to tell
570 the user the same thing. Reported by Mike Grayson.
572 2006-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
574 * man/Makefile.am (dist_man_MANS): Replace all optional manpages
575 with `$(MAN)', computed at configure time; also, list them ...
576 (optional_mans): ... in this new variable.
577 (max_aux, EXTRA_DIST): Ensure that we distribute all manpages.
579 2006-11-16 Jim Meyering <jim@meyering.net>
581 Help valgrind see that there is no leak in dd.c.
582 * src/dd.c (dd_copy): Declare real_buf and real_obuf to be static,
583 so we need not free them at all. This is easier than freeing
584 both buffers at each of the early "return"s.
586 * src/csplit.c (load_buffer): Plug an inconsequential leak.
588 2006-11-15 Jim Meyering <jim@meyering.net>
590 * .x-po-check: Exclude gl/ files. Otherwise, po-check would
591 complain that some of gl/lib/*.[ch] are not listed in POTFILES.in.
593 2006-11-14 Jim Meyering <jim@meyering.net>
595 * gl/m4/root-dev-ino.m4: Now that this is part of a real "module",
596 remove the now-unnecessary use of AC_LIBSOURCES.
598 Adapt to new version of gnulib-tool.
599 * gl/modules/root-dev-ino: New file.
600 * lib/root-dev-ino.c, lib/root-dev-ino.h: Move these files ...
601 * gl/lib/root-dev-ino.c, gl/lib/root-dev-ino.h: ... to here.
602 * m4/root-dev-ino.m4: Move this file ...
603 * gl/m4/root-dev-ino.m4: ... to here.
605 * bootstrap.conf (gnulib_modules): Add root-dev-ino.
607 2006-11-13 Jim Meyering <jim@meyering.net>
609 * src/sort.c (insertkey): Use xmemdup, rather than xmalloc+assignment.
612 Plug another technically-unimportant leak in sort.
613 * src/sort.c (main): Don't allocate memory for each new key here.
614 (insertkey): Allocate memory for each key here, instead.
615 (key_init): Rename from new_key. Don't allocate.
617 * src/sort.c (main): Plug a tiny memory leak.
618 Move declaration of local "minus" down to be nearer point of use.
620 2006-11-12 Jim Meyering <jim@meyering.net>
622 du would exit early, when encountering an inaccessible directory
623 Reported by Mike Frysinger, in
624 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8831
625 * tests/du/inacc-dest: New test, based on an example from Mike Frysinger.
626 * tests/chgrp/no-x: Remove the "fts_read failed: ..."
627 diagnostic from the expected output when using native fdopendir.
628 * tests/chmod/no-x: Likewise.
629 * tests/du/no-x: Likewise.
630 * NEWS: Mention this bug fix.
631 * tests/du/Makefile.am (TESTS): Add inacc-dest.
633 * Makefile.maint (sc_cast_of_x_alloc_return_value): Add an exclusion
636 Avoid false-positive when testing via valgrind.
637 * tests/mv/atomic: Grep strace output for a more specific pattern
638 than just "unlink", since that got a false positive when testing
639 under valgrind: unlink("/tmp/valgrind_proc_9657_cmdline_A51E9991") = 0
640 * tests/mv/Makefile.am (TESTS_ENVIRONMENT): Define EGREP.
642 2006-10-28 Jim Meyering <jim@meyering.net>
644 * Makefile.maint (patch-check): Make it easier to regenerate
645 the src/c99-to-c89.diff file. E.g., I do this:
646 make patch-check REGEN_PATCH=1; ediff src/c99-to-c89.diff new-diff
648 * src/c99-to-c89.diff: Update to reflect new offsets in rm.c.
650 2006-10-26 Jim Meyering <jim@meyering.net>
652 * src/system.h (ftello): Add a compile-time check for the highly
653 unlikely condition of off_t narrower than long int, rather than
654 handling it at run time. Based on a patch from Paul Eggert.
656 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
658 * tests/chmod/c-option: When double-quoting part of a word, prefer
659 to double-quote the whole word. This is a bit easier to read (at
660 least for me), and in some cases it avoids a shell bug with Tru64
661 4.0 sh reported by Nelson H. F. Beebe. For example, instead of
662 "$abs_srcdir"/../setgid-check we now write
663 "$abs_srcdir/../setgid-check".
664 * tests/cp/cp-parents: Likewise.
665 * tests/du/inaccessible-cwd: Likewise.
666 * tests/du/long-from-unreadable: Likewise.
667 * tests/install/basic-1: Likewise.
668 * tests/install/trap: Likewise.
669 * tests/misc/close-stdout: Likewise.
670 * tests/mkdir/concurrent-1: Likewise.
671 * tests/mkdir/p-1: Likewise.
672 * tests/mkdir/p-3: Likewise.
673 * tests/mkdir/parents: Likewise.
674 * tests/mkdir/perm: Likewise.
675 * tests/readlink/can-e: Likewise.
676 * tests/readlink/can-f: Likewise.
677 * tests/readlink/can-m: Likewise.
678 * tests/rm/inaccessible: Likewise.
679 * tests/rm/unread3: Likewise.
680 * tests/touch/no-create-missing: Likewise.
682 * lib/.cvsignore: Add uinttostr.c.
684 2006-10-25 Jim Meyering <jim@meyering.net>
686 Portability to Tru64 V4.0.
687 * src/system.h (ftello) [!HAVE_FSEEKO && !defined ftello]:
688 Define inline replacement function.
689 This (along with a yesterday's fix for autoconf's
690 _AC_SYS_LARGEFILE_MACRO_VALUE macro) makes it so coreutils
691 now builds once more on Tru64 V4.0. Reported by Nelson Beebe.
693 2006-10-25 Bruno Haible <bruno@clisp.org>
695 * src/cat.c (infile): Add "const" to declaration.
696 * src/csplit.c (prefix): Likewise.
697 * src/printf.c (cfcc_msg): Likewise.
698 * src/tail.c (valid_file_spec): Likewise.
699 * src/cut.c (cut_file): Likewise, for a parameter.
700 * src/expr.c (str_value): Likewise.
701 * src/fold.c (fold_file): Likewise.
702 * src/pr.c (init_header): Likewise.
703 * src/dircolors.c (dc_parse_stream): Likewise, for a local.
704 * src/tr.c (make_printable_str): Likewise.
705 * src/nl.c (body_type, header_type, footer_type, current_type):
706 (separator_str, build_type_arg, nl_file): Likewise, for many.
707 * src/paste.c (main): Don't assign a read-only string to 'optarg'.
708 * src/tac.c (separator, tac_seekable, copy_to_temp): Likewise.
710 2006-10-25 Jim Meyering <jim@meyering.net>
712 * tests/sample-test: Update copyright year list to include only
713 the current year, since this is what I'll want in any new test.
715 2006-10-24 Jim Meyering <jim@meyering.net>
717 * src/c99-to-c89.diff: Update to reflect new offsets.
719 * NEWS: new feature: rm accepts new option: --one-file-system
720 Suggested by Steve McIntyre in <http://bugs.debian.org/392925>.
721 * src/remove.h (struct rm_options) [one_file_system]: New member.
722 * src/rm.c (rm_option_init): Initialize it.
723 (usage): Document the option.
724 * src/mv.c (rm_option_init): Likewise.
725 * src/remove.c (remove_dir): With --one-file-system and --recursive,
726 for each directory command line argument, do not affect a file system
727 different from that of the starting directory. And give a diagnostic.
728 * src/rm.c (ONE_FILE_SYSTEM): New enum.
729 (main): Handle new option.
730 * tests/rm/one-file-system: Test the above.
731 * tests/rm/Makefile.am (TESTS): Add one-file-system.
732 * tests/Makefile.am (check-root): Add the rm/one-file-system
734 (EXTRA_DIST): Add other-fs-tmpdir.
736 * tests/mv/setup: Removed. Renamed to...
737 * tests/other-fs-tmpdir: ...this new file.
738 * tests/mv/Makefile.am (EXTRA_DIST): Remove setup.
739 * tests/mv/acl: Reflect renaming: use ../other-fs-tmpdir.
740 * tests/mv/backup-is-src: Likewise.
741 * tests/mv/hard-link-1: Likewise.
742 * tests/mv/leak-fd: Likewise.
743 * tests/mv/mv-special-1: Likewise.
744 * tests/mv/part-fail: Likewise.
745 * tests/mv/part-hardlink: Likewise.
746 * tests/mv/part-rename: Likewise.
747 * tests/mv/part-symlink: Likewise.
748 * tests/mv/partition-perm: Likewise.
749 * tests/mv/to-symlink: Likewise.
750 * tests/mv/into-self-2: Likewise.
752 Don't let a failure in one test stop "make -k" from running the others.
753 * tests/Makefile.am (t1 t2 t3 t4 t5): New targets.
754 (check-root): Depend on them, rather than executing the five
755 commands in a single rule. Reported by Greg Schafer.
757 2006-10-23 Bob Proulx <bob@proulx.com> (tiny change)
759 * Makefile.maint (alpha beta major): Use a better log message for
760 the automatic commit of .prev-version.
762 2006-10-23 Jim Meyering <jim@meyering.net>
764 * tests/misc/pwd-long: Undo last change, since it made Perl invoke
765 pwd via a shell. Instead, ensure that the absolute name of the
766 pwd binary consists solely of reasonable characters.
767 Whoops. Don't exec the perl script. Otherwise, the sh-trap-based
768 clean-up code isn't run.
770 * NEWS: Add a line for 6.5-cvs.
771 * configure.ac (AC_INIT): Bump to 6.5 and add "-cvs" suffix.
773 2006-10-22 Jim Meyering <jim@meyering.net>
777 * NEWS: Record the 6.4 release date.
778 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
780 * Makefile.maint: Complete the adaptation to function with a working
781 directory that is using git (rather than cvs) for version control.
783 2006-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
785 * tests/chmod/c-option: Double-quote instances of `$abs_srcdir'.
786 * tests/cp/cp-parents: Likewise.
787 * tests/mkdir/parents: Likewise.
788 * tests/mkdir/perm: Likewise.
790 * tests/sample-test: Quote variables containing absolute build
791 tree paths. In the cleanup trap, make sure `cd' succeeds before
792 `chmod'ing and `rm'ing the temporary files.
793 * tests/chgrp/basic: Likewise.
794 * tests/chgrp/deref: Likewise.
795 * tests/chgrp/no-x: Likewise.
796 * tests/chgrp/posix-H: Likewise.
797 * tests/chgrp/recurse: Likewise.
798 * tests/chmod/c-option: Likewise.
799 * tests/chmod/equal-x: Likewise.
800 * tests/chmod/equals: Likewise.
801 * tests/chmod/inaccessible: Likewise.
802 * tests/chmod/no-x: Likewise.
803 * tests/chmod/octal: Likewise.
804 * tests/chmod/setgid: Likewise.
805 * tests/chmod/umask-x: Likewise.
806 * tests/chmod/usage: Likewise.
807 * tests/chown/basic: Likewise.
808 * tests/chown/deref: Likewise.
809 * tests/chown/separator: Likewise.
810 * tests/cp/acl: Likewise.
811 * tests/cp/backup-1: Likewise.
812 * tests/cp/backup-dir: Likewise.
813 * tests/cp/backup-is-src: Likewise.
814 * tests/cp/cp-HL: Likewise.
815 * tests/cp/cp-deref: Likewise.
816 * tests/cp/cp-i: Likewise.
817 * tests/cp/cp-mv-backup: Likewise.
818 * tests/cp/cp-parents: Likewise.
819 * tests/cp/deref-slink: Likewise.
820 * tests/cp/dir-rm-dest: Likewise.
821 * tests/cp/dir-slash: Likewise.
822 * tests/cp/dir-vs-file: Likewise.
823 * tests/cp/fail-perm: Likewise.
824 * tests/cp/into-self: Likewise.
825 * tests/cp/link: Likewise.
826 * tests/cp/link-no-deref: Likewise.
827 * tests/cp/link-preserve: Likewise.
828 * tests/cp/no-deref-link1: Likewise.
829 * tests/cp/no-deref-link2: Likewise.
830 * tests/cp/no-deref-link3: Likewise.
831 * tests/cp/perm: Likewise.
832 * tests/cp/preserve-2: Likewise.
833 * tests/cp/r-vs-symlink: Likewise.
834 * tests/cp/same-file: Likewise.
835 * tests/cp/slink-2-slink: Likewise.
836 * tests/cp/sparse: Likewise.
837 * tests/cp/special-bits: Likewise.
838 * tests/cp/src-base-dot: Likewise.
839 * tests/cp/symlink-slash: Likewise.
840 * tests/dd/not-rewound: Likewise.
841 * tests/dd/skip-seek2: Likewise.
842 * tests/dd/unblock-sync: Likewise.
843 * tests/du/2g: Likewise.
844 * tests/du/8gb: Likewise.
845 * tests/du/basic: Likewise.
846 * tests/du/deref: Likewise.
847 * tests/du/deref-args: Likewise.
848 * tests/du/exclude: Likewise.
849 * tests/du/fd-leak: Likewise.
850 * tests/du/hard-link: Likewise.
851 * tests/du/inaccessible-cwd: Likewise.
852 * tests/du/long-from-unreadable: Likewise.
853 * tests/du/long-sloop: Likewise.
854 * tests/du/no-deref: Likewise.
855 * tests/du/no-x: Likewise.
856 * tests/du/restore-wd: Likewise.
857 * tests/du/slash: Likewise.
858 * tests/du/slink: Likewise.
859 * tests/du/trailing-slash: Likewise.
860 * tests/du/two-args: Likewise.
861 * tests/fmt/long-line: Likewise.
862 * tests/install/basic-1: Likewise.
863 * tests/install/create-leading: Likewise.
864 * tests/install/d-slashdot: Likewise.
865 * tests/install/trap: Likewise.
866 * tests/ln/misc: Likewise.
867 * tests/ln/target-1: Likewise.
868 * tests/ls/color-dtype-dir: Likewise.
869 * tests/ls/dangle: Likewise.
870 * tests/ls/dired: Likewise.
871 * tests/ls/file-type: Likewise.
872 * tests/ls/follow-slink: Likewise.
873 * tests/ls/infloop: Likewise.
874 * tests/ls/inode: Likewise.
875 * tests/ls/m-option: Likewise.
876 * tests/ls/no-arg: Likewise.
877 * tests/ls/recursive: Likewise.
878 * tests/ls/rt-1: Likewise.
879 * tests/ls/stat-dtype: Likewise.
880 * tests/ls/stat-failed: Likewise.
881 * tests/ls/stat-vs-dirent: Likewise.
882 * tests/misc/cat-proc: Likewise.
883 * tests/misc/close-stdout: Likewise.
884 * tests/misc/csplit: Likewise.
885 * tests/misc/date-sec: Likewise.
886 * tests/misc/false-status: Likewise.
887 * tests/misc/head-c: Likewise.
888 * tests/misc/head-pos: Likewise.
889 * tests/misc/mknod: Likewise.
890 * tests/misc/nl: Likewise.
891 * tests/misc/nohup: Likewise.
892 * tests/misc/pathchk1: Likewise.
893 * tests/misc/printf: Likewise.
894 * tests/misc/printf-hex: Likewise.
895 * tests/misc/pwd-long: Likewise.
896 * tests/misc/shuf: Likewise.
897 * tests/misc/sort-rand: Likewise.
898 * tests/misc/split-a: Likewise.
899 * tests/misc/split-fail: Likewise.
900 * tests/misc/split-l: Likewise.
901 * tests/misc/stat-fmt: Likewise.
902 * tests/misc/tac-continue: Likewise.
903 * tests/misc/wc-files0: Likewise.
904 * tests/mkdir/concurrent-1: Likewise.
905 * tests/mkdir/p-1: Likewise.
906 * tests/mkdir/p-2: Likewise.
907 * tests/mkdir/p-3: Likewise.
908 * tests/mkdir/p-slashdot: Likewise.
909 * tests/mkdir/p-thru-slink: Likewise.
910 * tests/mkdir/p-v: Likewise.
911 * tests/mkdir/parents: Likewise.
912 * tests/mkdir/perm: Likewise.
913 * tests/mkdir/t-slash: Likewise.
914 * tests/mv/acl: Likewise.
915 * tests/mv/atomic: Likewise.
916 * tests/mv/backup-dir: Likewise.
917 * tests/mv/childproof: Likewise.
918 * tests/mv/diag: Likewise.
919 * tests/mv/dir-file: Likewise.
920 * tests/mv/dir2dir: Likewise.
921 * tests/mv/dup-source: Likewise.
922 * tests/mv/hard-2: Likewise.
923 * tests/mv/hard-3: Likewise.
924 * tests/mv/hard-4: Likewise.
925 * tests/mv/hard-link-1: Likewise.
926 * tests/mv/hard-verbose: Likewise.
927 * tests/mv/i-2: Likewise.
928 * tests/mv/i-3: Likewise.
929 * tests/mv/i-4: Likewise.
930 * tests/mv/i-5: Likewise.
931 * tests/mv/i-link-no: Likewise.
932 * tests/mv/into-self-4: Likewise.
933 * tests/mv/leak-fd: Likewise.
934 * tests/mv/mv-special-1: Likewise.
935 * tests/mv/no-target-dir: Likewise.
936 * tests/mv/part-fail: Likewise.
937 * tests/mv/part-hardlink: Likewise.
938 * tests/mv/part-rename: Likewise.
939 * tests/mv/part-symlink: Likewise.
940 * tests/mv/partition-perm: Likewise.
941 * tests/mv/perm-1: Likewise.
942 * tests/mv/reply-no: Likewise.
943 * tests/mv/trailing-slash: Likewise.
944 * tests/mv/update: Likewise.
945 * tests/od/od-N: Likewise.
946 * tests/od/x8: Likewise.
947 * tests/readlink/can-e: Likewise.
948 * tests/readlink/can-f: Likewise.
949 * tests/readlink/can-m: Likewise.
950 * tests/readlink/rl-1: Likewise.
951 * tests/rm/cycle: Likewise.
952 * tests/rm/dangling-symlink: Likewise.
953 * tests/rm/deep-1: Likewise.
954 * tests/rm/dir-no-w: Likewise.
955 * tests/rm/dir-nonrecur: Likewise.
956 * tests/rm/dot-rel: Likewise.
957 * tests/rm/empty-inacc: Likewise.
958 * tests/rm/f-1: Likewise.
959 * tests/rm/fail-2eperm: Likewise.
960 * tests/rm/hash: Likewise.
961 * tests/rm/i-1: Likewise.
962 * tests/rm/i-no-r: Likewise.
963 * tests/rm/ignorable: Likewise.
964 * tests/rm/inaccessible: Likewise.
965 * tests/rm/interactive-always: Likewise.
966 * tests/rm/interactive-once: Likewise.
967 * tests/rm/ir-1: Likewise.
968 * tests/rm/isatty: Likewise.
969 * tests/rm/no-give-up: Likewise.
970 * tests/rm/r-1: Likewise.
971 * tests/rm/r-2: Likewise.
972 * tests/rm/r-3: Likewise.
973 * tests/rm/r-4: Likewise.
974 * tests/rm/readdir-bug: Likewise.
975 * tests/rm/rm1: Likewise.
976 * tests/rm/rm2: Likewise.
977 * tests/rm/rm3: Likewise.
978 * tests/rm/rm4: Likewise.
979 * tests/rm/rm5: Likewise.
980 * tests/rm/sunos-1: Likewise.
981 * tests/rm/unread2: Likewise.
982 * tests/rm/unread3: Likewise.
983 * tests/rmdir/fail-perm: Likewise.
984 * tests/rmdir/t-slash: Likewise.
985 * tests/shred/exact: Likewise.
986 * tests/shred/remove: Likewise.
987 * tests/sum/sysv: Likewise.
988 * tests/tail-2/append-only: Likewise.
989 * tests/tail-2/assert: Likewise.
990 * tests/tail-2/assert-2: Likewise.
991 * tests/tail-2/big-4gb: Likewise.
992 * tests/tail-2/fflush: Likewise.
993 * tests/tail-2/infloop-1: Likewise.
994 * tests/tail-2/proc-ksyms: Likewise.
995 * tests/tail-2/start-middle: Likewise.
996 * tests/tail-2/tail-n0f: Likewise.
997 * tests/tee/basic: Likewise.
998 * tests/tee/dash: Likewise.
999 * tests/touch/fail-diag: Likewise.
1000 * tests/touch/no-create-missing: Likewise.
1001 * tests/touch/not-owner: Likewise.
1002 * tests/touch/obsolescent: Likewise.
1003 * tests/touch/read-only: Likewise.
1004 * tests/touch/relative: Likewise.
1006 2006-10-21 Jim Meyering <jim@meyering.net>
1008 * NEWS: (cp --backup fix): Fix a typo.
1010 * .gitignore: Remove some references to files in subdirectories.
1011 * build-aux/.gitignore, doc/.gitignore, lib/.gitignore: New files.
1012 * m4/.gitignore, po/.gitignore, src/.gitignore: Likewise.
1014 * src/copy.c (copy_internal): Add a comment saying why we prefer
1017 Enable an fts optimization (call lstat only for directories,
1018 on some file system types) also with the --preserve-root option
1020 * src/chown-core.c (change_file_owner): Compare fts_statp-based
1021 dev/ino against root dev/ino only for directories.
1022 (chown_files): Don't let the root_dev_ino setting influence whether
1023 we use FTS_NOSTAT: fts always sets *fts_statp for a directory.
1025 2006-10-20 Jim Meyering <jim@meyering.net>
1027 * src/od.c (usage): Change description of default to use "-w16",
1028 not the now-invalid "-w 16" syntax. From Dan Jacobson.
1030 2006-10-19 Jim Meyering <jim@meyering.net>
1032 * bootstrap: Add names to each .gitignore file (if it exists)
1033 as well as to .cvsignore.
1035 * Makefile.maint (po-check): This rule didn't detect the new use
1036 of "gettext" (as opposed to the use of "_" everywhere else) in
1037 lib/xstrtol.h. Adjust the grep regexp so that now it does.
1039 2006-10-18 Paul Eggert <eggert@cs.ucla.edu>
1041 * src/copy.c (copy_reg): Rewrite slightly to avoid duplicate code
1042 when opening dst_name.
1043 (copy_reg, copy_internal): Use (SYSCALL != 0) rather than plain
1044 (SYSCALL) to test for failure in a system call.
1046 * src/copy.c (copy_internal): Use mknod rather than mkfifo to copy
1047 a fifo. This preserves the special mode bits on Solaris 10, which
1048 is compatible with what Solaris 10 cp -R does.
1050 * src/copy.c (copy_internal): Remove redundant and confusing local
1053 * src/copy.c (copy_internal): Don't pass mkdir a mode greater than
1054 7777. This matches historical 'cp' behavior and avoids some
1055 (though not all) implementation-defined behavior of mkdir.
1056 * src/cp.c (make_dir_parents_private): Likewise.
1057 * src/copy.c (copy_internal): Don't pass 'open' a mode greater
1058 than 777. This is required by POSIX. It doesn't make any difference
1059 in actual behavior on any host that I know of.
1061 2006-10-17 Jim Meyering <jim@meyering.net>
1063 * src/dd.c (usage): Use two spaces (not one) to separate the
1064 "fdatasync" option string from its description, so help2man formats
1065 the derived man page properly. Reported by Samuel Thibault
1066 in <http://bugs.debian.org/393649>.
1068 2006-10-16 Jim Meyering <jim@meyering.net>
1070 * .x-sc_trailing_blank: Remove names of files that are no longer
1073 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
1075 * src/groups.sh (version): Reword message to match the other programs.
1076 Problem reported by Eric Blake.
1078 2006-10-14 Jim Meyering <jim@meyering.net>
1080 * Makefile.maint (headers_with_interesting_macro_defs): Define.
1081 (.re-defmac, sc_always_defined_macros): New rules.
1083 * src/system.h (EXIT_FAILURE, EXIT_SUCCESS): Remove definitions.
1084 Instead, include "exit.h". This hereby retires the work-around for
1085 "Sony NEWS-OS Release 4.0C"'s bug due to "#define EXIT_FAILURE 0".
1087 * src/cksum.c (uint_fast32_t): Don't define.
1088 Instead, include <stdint.h>.
1090 * src/pinky.c (S_IWGRP): Don't define.
1091 It's already defined by "stat-macros.h" (included via system.h).
1093 * Makefile.cfg: Remove cruft that's now handled via bootstrap.
1094 * Makefile.maint: Likewise, remove these targets/rules/variables:
1095 (local_updates, update, cvs-update, wget_files, get-targets): Remove.
1096 (cvs_files, wget-update, automake_repo): Likewise.
1097 Move the comment about cvsu to build-aux/vc-list-files,
1098 where cvsu is actually used.
1100 * Makefile.maint (cvs-update): Use $(CVS), not "cvs".
1102 Work also when the working directory (with e.g. coreutils sources)
1103 is version controlled with git, rather than CVS.
1104 * bootstrap (CVS_only_file): Test for the existence of README-cvs,
1106 In messages and comments, say e.g., "checked-out sources",
1107 rather than "CVS sources".
1108 (version_controlled_file): New function. Work for git as well as
1109 for CVS. Don't use grep's -q option.
1110 (slurp): Call it here, in place of CVS-specific code.
1112 * NEWS: cp -r --backup dir1 dir2, would rename an existing dir1/dir2
1114 * src/copy.c (copy_internal): Although we do create a backup of each
1115 destination directory when in move mode, don't do that when copying.
1116 Reported by Peter Breitenlohner, in
1117 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8616>.
1118 * tests/cp/backup-dir: New file. Test for the above.
1119 * tests/cp/Makefile.am (TESTS): Add backup-dir.
1121 2006-10-13 Jim Meyering <jim@meyering.net>
1123 More chown/chgrp dereferencing-related fixes.
1124 * src/chown-core.c (change_file_owner): Don't use fts_statp if
1125 we're dereferencing symlinks.
1126 Reverse conjuncts, so that we use dereference file_stats
1127 (aka ent->fts_statp) only *after* we've confirmed that
1128 chopt->affect_symlink_referent is true. Otherwise, we might
1129 use ent->fts_statp uninitialized.
1130 Don't turn on FTS_NOSTAT when dereferencing symlinks.
1131 * tests/chown/deref: Update the expected diagnostic, now that
1132 this test case (trying to use "chown --dereference ..." on a
1133 dangling symlink) takes a different code path.
1135 2006-10-13 Paul Eggert <eggert@cs.ucla.edu>
1137 Sync from Bison, as follows:
1139 2006-10-01 Paul Eggert <eggert@cs.ucla.edu>
1141 Fix problems with translating English-language diagnostics.
1142 * bootstrap: Fix bug introduced in recent bootstrap changes, with
1143 respect to bison-runtime pot generation. The YY_ stuff
1144 wasn't being captured.
1146 2006-10-13 Jim Meyering <jim@meyering.net>
1148 * src/chown-core.c (change_file_owner): Use fstatat, not stat,
1149 now that we're using fts_open with FTS_CWDFD.
1150 * tests/chgrp/posix-H: Add --preserve-root to an invocation of
1151 chgrp, to exercise the above fix.
1152 * NEWS: Mention the above.
1154 * src/du-tests: Clean up a little, though it's still not portable.
1156 * .vg-suppressions: Add 3 more for debian unstable.
1158 * tests/ls/Test.pm: Remove long-unused file.
1159 * Makefile.am (EXTRA_DIST): Add bootstrap.conf.
1160 Suggestions from Bruno Haible.
1162 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1164 * Makefile.am (THANKS-to-translators): Add missing $(srcdir).
1165 (MAINTAINERCLEANFILES): Add .kludge-stamp.
1166 * man/Makefile.am (MAINTAINERCLEANFILES): Typo $(dist_man_MANS)
1167 instead of $(man_MANS).
1169 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1171 * configure.ac: Avoid compiler warnings about default return
1172 type in function definitions and unused variables in tests.
1173 * src/who.c (print_user) [HAVE_UT_HOST]: hostlen is only needed
1174 if this is #defined.
1176 2006-10-12 Jim Meyering <jim@meyering.net>
1178 * configure.ac: Reflect s/gl_MACROS/coreutils_MACROS/ renaming.
1179 Call gl_INIT directly, rather than through the above.
1181 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
1183 * bootstrap (symlink_to_gnulib): Fix bug: the dot_dots shell
1184 variable was sometimes used without being initialized. This
1185 messed up the installation of the INSTALL file in some cases.
1187 2006-10-11 Jim Meyering <jim@meyering.net>
1189 * src/ls.c (usage): Correct description of -s, --size.
1190 It works even without -l. Suggestion from Karl Berry.
1192 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
1194 * src/ls.c (quote_name): Use initializer rather than memset to
1195 initialize an object to zero. This is easier to read and is less
1196 likely to introduce a runtime error due to a mixup. It causes
1197 gcc -W to issue a warning, but you can work around this by
1198 appending -Wno-missing-field-initializers.
1199 * src/pathchk.c (portable_chars_only): Likewise.
1200 * src/shred.c (main): Likewise.
1201 * src/stty.c (main): Likewise.
1202 * src/tr.c (card_of_complement): Likewise.
1203 * src/wc.c (wc): Likewise.
1205 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
1207 * src/sort.c (usage): Mention again that sort fields are origin 1.
1209 * NEWS: Fix typo: iso-8602 -> iso-8601. Problem reported by
1212 * bootstrap (usage, main program, symlink_to_gnulib): Add option
1213 --copy. Inspired by a suggestion from Bruno Haible.
1215 2006-10-09 Jim Meyering <jim@meyering.net>
1217 Avoid a compiler warning.
1218 * src/pathchk.c (portable_chars_only): Initialize variable of type
1219 mbstate_t via memset, rather than via '{0}'. Patch from Bruno Haible.
1221 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
1223 Fix bug reported today by Mike Frysinger: mkdir -pv is logging the
1224 wrong file name in some cases. Lars Wendler reported a bug in
1226 * src/install.c (make_ancestor): New arg COMPONENT.
1227 * src/mkdir.c (make_ancestor): Likewise.
1228 * tests/install/basic-1: Check for install -Dv bug.
1229 * tests/mkdir/Makefile.am (TESTS): Add p-v.
1230 * tests/mkdir/p-v: New file, to test this bug.
1232 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
1234 * src/chgrp.c: Don't include lchown.h; no longer needed.
1235 * src/chown.c: Likewise.
1237 * tests/ls/stat-dtype: Use a dynamic test to decide whether the
1238 current file system has useful d_type info.
1240 * src/dd.c (flags): noatime and nofollow now depend on
1241 HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW, too.
1242 (usage): Output info about noatime and nofollow only if
1243 they are known to work.
1244 * src/remove.c (AD_push): Inspect HAVE_WORKING_O_NOFOLLOW rather
1245 than O_NOFOLLOW, when testing whether it's possible to avoid a
1246 race condition reliably.
1248 2006-10-05 Jim Meyering <jim@meyering.net>
1250 * src/c99-to-c89.diff: Update to reflect new offsets.
1252 * tests/install/basic-1: Skip the latter part of this test if the
1253 just-built dd binary is not readable. Otherwise, this test would fail
1254 when binaries were created as root. Reported by Bauke Jan Douma in
1255 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8433>.
1257 2006-10-03 Paul Eggert <eggert@cs.ucla.edu>
1259 * src/system.h (ST_BLKSIZE): Ceiling at SIZE_MAX / 8 + 1, not at 4
1260 MiB, since XFS hosts can legitimately have large values of
1261 st_blksize. Problem reported by Tony Ernst in
1262 <http://savannah.gnu.org/bugs/?17903>.
1264 2006-10-04 Jim Meyering <jim@meyering.net>
1266 * src/remove.c (nonexistent_file_errno): Remove ENAMETOOLONG.
1267 Paul Eggert pointed out that the specified file may exist,
1268 in spite of such an errno value.
1269 * tests/rm/Makefile.am (TESTS): Remove ignore-name-too-long.
1270 * tests/rm/ignore-name-too-long: Remove file.
1271 * NEWS: Update here, too.
1273 2006-10-03 Jim Meyering <jim@meyering.net>
1275 * tests/rm/fail-eperm: Report failure also if rm is terminated by
1278 * src/c99-to-c89.diff: Convert two c99'isms -- one in remove.c
1279 and one in shred.c -- that were added before coreutils-6.3.
1280 Reported by Michael Deutschmann.
1282 * src/c99-to-c89.diff: Update to reflect new offsets.
1284 * src/remove.c (remove_entry): With -f, exit successfully in spite
1285 of a missing file under some very unusual conditions (with errno
1286 being any of ENOENT, ENOTDIR, ENAMETOOLONG).
1288 With --force (-f), rm no longer fails for ENOTDIR.
1289 * src/remove.c (ignorable_missing): New function.
1290 Use it everywhere, rather than open-coding the test.
1291 Andreas Schwab reported the ENOTDIR problem.
1292 (ignorable_missing): Similarly, don't fail for ENAMETOOLONG.
1294 * NEWS: Mention the bug fix.
1295 * tests/rm/ignorable: New file. Test for the ENOTDIR case.
1296 * tests/rm/ignore-name-too-long: New file. Test for ENAMETOOLONG.
1297 * tests/rm/Makefile.am (TESTS): Add the new file names.
1299 * bootstrap: Undo last change to this file, since now gnulib-tool
1300 sticks with the automake default in generating dependencies.
1302 * NEWS: Add a line for 6.4-cvs.
1303 * configure.ac (AC_INIT): Bump to 6.4 and add "-cvs" suffix.
1305 2006-09-30 Jim Meyering <jim@meyering.net>
1308 * NEWS: Record the 6.3 release date.
1309 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
1311 * NEWS: Mention Paul's Solaris 8 vs. 10 work-around.
1313 * src/c99-to-c89.diff: Update offsets.
1315 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
1317 * tests/rm/readdir-bug: Don't use $(...) in a shell script,
1318 as it doesn't work with Solaris /bin/sh.
1320 2006-09-29 Jim Meyering <jim@meyering.net>
1322 * NEWS: Mention Paul's fix (to gnulib's canon-host.c) for
1325 * tests/seq/basic [neg-2, eq-wid-2]: Comment out tests that
1326 use .1 as the increment. Actual output varies too much.
1327 [eq-wid-3]: New, commented out test.
1329 * src/shuf.c (read_input): Fix an off-by-one error that
1330 would cause an infloop for piped input of 8KB or more.
1331 * NEWS: Mention the fix.
1332 * tests/misc/shuf: Test for the above fix.
1334 Since any system may be affected by the Darwin readdir bug,
1335 perform the extra rewinddir unconditionally. The performance
1336 impact of rewinding a directory is negligible.
1337 * src/remove.c (NEED_REWIND): Define to use
1338 CONSECUTIVE_READDIR_UNLINK_THRESHOLD unconditionally.
1340 * tests/seq/basic: Use .11 as the upper bound, in case the ".1"
1341 increment translates to a slightly larger value.
1342 This corrects a test failure on FreeBSD 6.1 reported by Nelson Beebe.
1343 The final expected value wasn't being printed.
1345 Work around a readdir bug in Darwin 7.9.0 (MacOS X 10.3.9) on HFS+
1346 and NFS, whereby rm would not remove all files in a directory.
1347 * src/remove.c (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Reduce to 10.
1348 (NEED_REWIND): New macro, so that we incur the cost of the work-around
1349 rewinddir only on afflicted systems.
1350 * NEWS: Clarify and correct.
1351 * tests/rm/readdir-bug: New file. Test for the above fix.
1352 * tests/rm/Makefile.am (TESTS): Add it.
1353 Prompted by testing and analysis from Bruno Haible:
1354 http://lists.gnu.org/archive/html/bug-coreutils/2006-09/msg00326.html
1356 2006-09-28 Paul Eggert <eggert@cs.ucla.edu>
1358 * tests/rm/fail-eperm: Unset BASH_ENV, CDPATH, and ENV, too;
1359 suggested for Debian stable, which uses Perl 5.8.4.
1361 2006-09-28 Jim Meyering <jim@meyering.net>
1363 Automatically generated dependencies are important even
1364 when all of the sources in a directory come from gnulib.
1365 * bootstrap (gnulib_tool): Remove the "no-dependencies" automake
1366 option that gnulib-tool adds to what becomes our lib/gnulib.mk.
1368 * tests/rm/fail-eperm: Enable Perl's (-T) taint checking.
1369 Ensure that IFS is set properly and unset PATH.
1371 Work properly even when the name of the selected file starts with "-".
1372 Invoke rm via "../../src/rm", and adjust expected output.
1373 Prompted by a patch from Tim Waugh.
1375 * README-cvs: Add Bison to the list of required packages.
1377 2006-09-26 Jim Meyering <jim@meyering.net>
1379 * src/c99-to-c89.diff: Update offsets.
1381 * NEWS: rm works around a bug in Darwin 8.6.1 w/NFS that kept
1382 it from removing a directory containing 188 or more entries.
1383 * src/remove.c (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Decrease by
1384 20, go work around the buggy readdir on Darwin 8.6.1 with NFS.
1385 Reported by Matthew Woehlke.
1387 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
1389 * NEWS: "groups user" no longer outputs "user :"; you need at least
1390 two users. "groups" now processes options like --help more compatibly.
1391 * src/groups.sh: Implement the option-processing change.
1392 Handle user and group names with special characters more robustly.
1393 Report write errors instead of exiting silently with status 1.
1395 2006-09-26 Jim Meyering <jim@meyering.net>
1397 * README: Warn not to run autoreconf manually. Use bootstrap instead.
1399 * src/groups.sh: When invoked with 0 or 1 argument, just exec "id".
1400 Rewrite to avoid using temporary, $status.
1402 * NEWS: Mention the bug fix.
1403 * src/groups.sh: Don't hide a write failure.
1404 Reported by Iain Calder <ic56@rogers.com>.
1406 2006-09-25 Jim Meyering <jim@meyering.net>
1408 * src/chown.c (usage): Clarify --dereference description.
1409 * src/chgrp.c (usage): Likewise. Suggestion from Jamie McClelland.
1411 2006-09-24 Jim Meyering <jim@meyering.net>
1413 * NEWS: Mention these fixes.
1414 * src/copy.c (copy_reg): With --verbose (-v), print
1415 "removed `file_name'" just after unlinking a file.
1416 (copy_internal): Likewise, in three more places.
1417 Marc Lehman reported that "touch x; ln x y; mv -v x y" was silent.
1418 * tests/mv/hard-verbose: New file. Test for the above fix.
1419 * tests/mv/Makefile.am (TESTS): Add hard-verbose.
1421 * tests/help-version (sync_args): Don't call sync, since it spins up
1422 disks that I've deliberately caused to spin down (but not unmounted).
1424 * NEWS: Mention the improvement to sort.
1426 * tests/tail-2/proc-ksyms: Require that /proc/ksyms be readable
1427 as well as existing.
1429 * tests/ls/stat-dtype: Don't use tmpfs on linux-2.4 or older,
1430 since that predated addition of d_type support.
1432 2006-09-23 Jim Meyering <jim@meyering.net>
1434 * gl/modules/getloadavg.diff: New file. Work around the way the latest
1435 version of the getloadavg module interacts with our bootstrap script.
1436 * bootstrap (gnulib_tool_options): Add "--local-dir gl".
1437 * Makefile.am (EXTRA_DIST): Sort file names.
1438 Add bootstrap and gl/modules/getloadavg.diff
1440 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
1442 * bootstrap: Add support for --force.
1443 (usage): New function. Describe usage less tersely.
1444 (CVS_only_file): New var.
1446 * NEWS: Document fix for cp -i and mv -i.
1447 * src/copy.c (copy_internal): With -i, prompt even if the source
1448 is a directory and the destination is not. This is required by
1449 POSIX and gives the user a chance to bail out before failing.
1450 * tests/cp/Makefile.am (TESTS): Add cp-i.
1451 * tests/cp/cp-i: New file.
1452 * tests/mv/Makefile.am (TESTS): Add i-5.
1453 * tests/mv/i-5: New file.
1455 2006-09-20 Jim Meyering <jim@meyering.net>
1457 * NEWS: Mention the chmod bug fix.
1459 * tests/chmod/inaccessible: New test, specifically for this bug.
1460 Based on a test case from Paul Eggert.
1461 * tests/chmod/Makefile.am (TESTS): Add inaccessible.
1463 Fix the 2006-09-18 bug differently.
1464 * src/chmod.c: (process_file): Upon FTS_NS for a top-level file,
1465 tell fts_read to stat the file again, in case it has become
1466 accessible since the initial fts_open call.
1467 * src/chown-core.c (change_file_owner): Likewise.
1469 * src/chmod.c: Revert last change. There is a better way.
1470 * src/chown-core.c: Likewise.
1472 2006-09-19 Paul Eggert <eggert@cs.ucla.edu>
1474 * src/ln.c (target_directory_operand): Rewrite to avoid porting
1475 problem on Tandem reported by Matthew Woehlke in
1476 <https://savannah.gnu.org/bugs/?17172>.
1478 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
1480 Fix bug where chmod, chown, and chgrp did not process operands
1481 left-to-right in some cases.
1482 * src/chmod.c (wd_errno): New var.
1483 (chmod_file): New function, with most of the contents of the
1484 old prcess_file function.
1485 (process_files): Use it. This gives file names to fts one
1486 at a time, so that they are processed left-to-right as POSIX
1488 * src/chown-core.c (wd_errno, chown_files): Likewise.
1489 (chown_file): New function.
1490 * tests/install/basic-1: Redo test so as to not workaround
1491 the chmod bug, thereby testing for it.
1493 * src/shuf.c (main): Quote the entire range when reporting an
1494 invalid one, rather than just the part that contained the error.
1496 * tests/stty/row-col-1: Rewrite to avoid temporary file that is
1497 sometimes left behind if the test is skipped or interrupted.
1499 * bootstrap (symlink_to_gnulib): New function.
1500 (cp_mark_as_generated): Use it, to prefer symlinks-to-gnulib
1501 to copies-of-gnulib.
1502 (cp_mark_as_generated, slurp, gnulib_files):
1503 Avoid making a copy if it's the same as the old version.
1504 (gnulib_files): Add support for this variable (used by Bison).
1506 * tests/ls/stat-vs-dirent: Fix quoting problem in diagnostic
1507 indicating flaw in kernel. Reword to say that the flaw isn't
1508 serious for coreutils, since the flaw does affect ls -i.
1510 * tests/chgrp/basic: Fix bug in test case exposed by building on
1511 Solaris 8 in a setgid directory. The test case incorrectly
1512 assumed that 'symlink' would be in group $g1.
1514 2006-09-18 Jim Meyering <jim@meyering.net>
1516 * NEWS: Add a line for 6.3-cvs.
1517 * configure.ac (AC_INIT): Bump to 6.3 and add "-cvs" suffix.
1520 * NEWS: Record the 6.2 release date.
1521 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
1523 2006-09-17 Jim Meyering <jim@meyering.net>
1525 * tests/chgrp/basic: On an OpenBSD system, rather than failing
1526 due to a known problem, merely warn about it.
1527 Rewrite to avoid testing output of chgrp --verbose and chgrp -c.
1528 Instead, use stat to test file system for desired results, directly.
1529 * tests/chgrp/Makefile.am (TESTS_ENVIRONMENT): Set host_triplet.
1531 * tests/envvar-check: Add more variable names to the list of those
1532 that can affect these programs and tests: _POSIX2_VERSION, COLUMNS,
1533 QUOTING_STYLE, TABSIZE, TERM, TMPDIR.
1535 2006-09-16 Paul Eggert <eggert@cs.ucla.edu>
1537 * NEWS: Document that mkdir -p and install -d now fork on occasion.
1538 * bootstrap.conf (gnulib_modules): Add savewd.
1539 * src/install.c: Include savewd.h.
1540 (process_dir): New function.
1541 (main, install_file_in_file_parents): Use it, along with the new
1542 savewd module, to avoid some race conditions.
1543 * src/mkdir.c: Include savewd.h.
1544 (struct mkdir_options): New members make_ancestor_function, mode,
1546 (make_ancestor): Return 1 if the resulting directory is not readable.
1547 (process_dir): New function.
1548 (main): Use it, along with new savewd module, to avoid some
1549 race conditions. Fill in new slots of struct mkdir_options, so
1550 that callees get the values.
1551 * tests/install/basic-1: Test for coreutils 5.97 bug that was
1552 fixed in coreutils 6.0, and which should still be fixed with
1554 * tests/mkdir/p-3: Likewise.
1556 2006-09-15 Jim Meyering <jim@meyering.net>
1558 * bootstrap.conf (gnulib_modules): Add rename-dest-slash.
1559 The 2006-09-08 changes made it so "mv dir new-name/" would
1560 fail on NetBSD 1.6. This makes it work once again.
1562 2006-09-14 Jim Meyering <jim@meyering.net>
1564 * src/mv.c (main): Remove unnecessary (always-true) test for 2 <= n.
1565 Instead, since it's a little fragile, assert the condition.
1566 (target_directory_operand): Update comment to reflect latest change.
1568 2006-09-12 Paul Eggert <eggert@cs.ucla.edu>
1570 * src/who.c (print_user): Rewrite to avoid warning from
1571 GCC 4.1.1 with -Wall.
1573 2006-09-12 Jim Meyering <jim@meyering.net>
1575 * tests/mv/atomic: Check for specific strace output, rather than
1576 simply nonempty. RHEL AS 4 would fail this test due to strace
1577 generating "[ Process PID=14434 runs in 32 bit mode. ]".
1578 Reported by Nelson Beebe.
1580 2006-09-11 Jim Meyering <jim@meyering.net>
1582 * src/remove.c (remove_dir): Move new cache_stat_init call onto
1584 (rm_1): Move declaration of "st" and new cache_stat_init call
1585 "down" to nearer where they're used.
1586 * src/c99-to-c89.diff: Add another set of curly braces.
1588 2006-09-10 Paul Eggert <eggert@cs.ucla.edu>
1590 * src/expr.c (eval6): Fix buffer overrun, or bad performance, if
1591 substr's last operand is very large. Performance problem reported
1594 2006-09-09 Jim Meyering <jim@meyering.net>
1596 * Makefile.maint (sc_prohibit_jm_in_m4): Don't hang when there
1598 (sc_require_config_h): Skip this test if there are no version-
1599 controlled .c files.
1600 (sc_prohibit_assert_without_use): Likewise.
1602 2006-09-08 Jim Meyering <jim@meyering.net>
1604 * bootstrap: Export CVS_RSH separate from its assignment, to work
1605 even with Solaris 10's /bin/sh. Suggestion from Mark D. Baushke.
1607 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1609 * NEWS: tail now ignores the -f option if POSIXLY_CORRECT is set,
1610 no file operand is given, and standard input is any FIFO.
1611 This is in response to Open Group XCU ERN 114.
1612 * src/tail.c (main): Likewise.
1614 2006-09-08 Jim Meyering <jim@meyering.net>
1616 mv and "cp -r" no longer fail when invoked with two arguments
1617 where the first one names a directory and the second name ends in
1618 a slash and doesn't exist. E.g., "mv dir B/", for nonexistent B,
1619 now succeeds, once more. This reverts part of the 2004-06-27
1621 * NEWS: Say the above.
1622 * src/mv.c (target_directory_operand): Don't require (here)
1623 that the target operand "look like" a directory. This change
1624 pushes the test down to the rename syscall level, where a
1625 "mv dir existing-non-dir/" will mistakenly succeed on older systems
1626 that ignore trailing slashes in the rename destination argument.
1627 * src/cp.c (target_directory_operand): Likewise, but for cp.
1628 * tests/mv/trailing-slash: Exercise the above fixes.
1629 * tests/cp/trailing-slash: New file.
1630 * tests/cp/Makefile.am (EXTRA_DIST): Add trailing-slash.
1632 * bootstrap: Use the previously unused variable, $src,
1633 to avoid repeating "$GNULIB_SRCDIR/$file".
1635 * bootstrap (cp_mark_as_generated): Don't use "local", to
1636 accommodate ancient "/bin/sh". Suggested by Ralf Wildenhues.
1637 Rename now-global "$src" and "$dst" to have cp_ prefix.
1638 Safer, and avoids confusion.
1640 * bootstrap (cp_mark_as_generated): New function.
1641 (slurp): Use it to prepend editor hints and a warning that
1642 the file we're copying is generated.
1643 Suggestion from Bruce Korb.
1644 (cp_mark_as_generated): Don't add C-style comments for .l or .y files.
1645 Fix last-minute typo.
1647 2006-09-07 Jim Meyering <jim@meyering.net>
1649 * bootstrap: Revert last change. There are less disruptive ways
1650 to mark these generated files as read-only.
1652 * src/c99-to-c89.diff: Update to have proper offsets.
1654 2006-09-06 Jim Meyering <jim@meyering.net>
1656 Ensure that some gnulib-tool-generated files are read-only.
1657 * bootstrap (slurp): Put the body of this function in a sub-shell,
1658 with "umask a-w" so that all new files are read-only. Remove each
1659 file before we write to it, in case it's read-only.
1660 Make po/Makevars and runtime-po/Makevars read-only, too.
1662 2006-09-05 Jim Meyering <jim@meyering.net>
1664 * tests/cp/acl: Skip this test when cp lacks ACL support.
1665 * tests/cp/Makefile.am (TESTS_ENVIRONMENT): Set $(CONFIG_HEADER).
1667 * src/c99-to-c89.diff (remove.c): Adapt one hunk to match the new
1668 context from change of 2006-09-02.
1670 2006-09-04 Jim Meyering <jim@meyering.net>
1672 * README-cvs: Fix typo in update command.
1674 2006-09-03 Jim Meyering <jim@meyering.net>
1676 * NEWS: Tweak the wording in the new change description so that
1677 no one can think this change causes e.g., `rm -fr foo../' to fail.
1679 * tests/rm/inaccessible: Adjust for movement of config.h to lib/.
1680 Use $CONFIG_HEADER, rather than hard-coding it.
1681 * tests/rm/Makefile.am (TESTS_ENVIRONMENT): Set $CONFIG_HEADER.
1683 2006-09-02 Paul Eggert <eggert@cs.ucla.edu>
1685 * NEWS: rm now rejects attempts to remove /, ./, and ../.
1686 * src/basename.c: Don't include dirname.h, since system.h does it now.
1687 * src/chmod.c: Likewise.
1688 * src/copy.c: Likewise.
1689 * src/cp.c: Likewise.
1690 * src/df.c: Likewise.
1691 * src/dircolors.c: Likewise.
1692 * src/dirname.c: Likewise.
1693 * src/du.c: Likewise.
1694 * src/install.c: Likewise.
1695 * src/ln.c: Likewise.
1696 * src/ls.c: Likewise.
1697 * src/mkdir.c: Likewise.
1698 * src/mv.c: Likewise.
1699 * src/remove.c: Likewise.
1700 * src/rm.c: Likewise.
1701 * src/rmdir.c: Likewise.
1702 * src/shred.c: Likewise.
1703 * src/split.c: Likewise.
1704 * src/su.c: Likewise.
1705 * src/system.h: Include "dirname.h", since dot_or_dotdot needs it
1707 (dot_or_dotdot): Succeed even if "." or ".." is followed by a
1709 * src/rm.c (usage, main): --preserve-root is now the default.
1710 * src/remove.h: Fix comment.
1711 * src/remove.c (cache_fstatat, cache_stat_init): New functions.
1712 (cache_statted, cache_stat_ok): New functions.
1713 (write_protected_non_symlink): Remove struct stat ** buf_p arg,
1714 which is no longer needed with the new functions. All callers
1716 (prompt, is_dir_lstat, remove_entry, remove_dir):
1717 New struct stat * arg. All callers changed.
1718 (write_protected_non_symlink, prompt, is_dir_lstat, remove_entry):
1719 (remove_cwd_entries, remove_dir, rm_1):
1720 Use and maintain the file status cache.
1721 (prompt, remove_entry): Omit the first "directory" in the diagnostic
1722 "Cannot remove directory `foo': is a directory". This causes "rm"
1723 to pass a test case that it would otherwise fail now that it
1724 "knows" more about its argument. I think the diagnostic is better
1725 without the first "directory" anyway.
1726 (prompt): Remove the no-longer-needed IS_DIR arg; all callers changed.
1727 (rm_1): Reject attempts to remove /, ./, or ../.
1728 * tests/rm/Makefile.am (TESTS): Add r-4.
1729 * tests/rm/r-4: New file.
1731 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1733 * src/stat.c: Include <stddef.h>
1734 (alignof): New macro.
1735 (HAVE_STRUCT_STATXFS_F_FSID___VAL, HAVE_STRUCT_STATXFS_F_FSID_VAL):
1737 (STRUCT_STATXFS_F_FSID_IS_INTEGER): New macro.
1739 (print_statfs): If f_fsid isn't an integer, grab its words one
1740 at a time in little-endian order. This is a bit easier to configure
1741 and should avoid a compilation failure on MacOS reported by Bruno
1744 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1746 * src/stat.c (HAVE_STRUCT_STATXFS_F_FSID_VAL, FSID_VAL): New macros, to
1747 work around a Mac OS X porting problem reported by Bruno Haible in
1748 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00308.html>.
1749 (print_statfs): Use them.
1751 * bootstrap.conf (gnulib_modules): Add isapipe.
1752 * src/tail.c: Include isapipe.h.
1753 (IS_PIPE_LIKE_FILE_TYPE): Remove.
1754 (IS_TAILABLE_FILE_TYPE): Just list both FIFOs and sockets as
1755 tailable, since this seems to be portable.
1756 (main): Use isapipe, to fix a bug on MacOS X reported by Bruno Haible in
1757 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00304.html>.
1759 * src/system.h (LOCALEDIR): Remove, since configmake.h now defines
1762 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1764 * src/copy.c (copy_internal): Don't test whether macros like
1765 S_ISLNK are defined, since they're always defined now.
1766 * src/cp.c (main): Likewise.
1767 * src/ln.c (main): Likewise.
1768 * src/ls.c (get_link_name, make_link_name): Likewise.
1769 * src/mknod.c (main): Likewise.
1770 * src/mkfifo.c (usage): Likewise.
1771 * src/who.c (S_IWGRP): Likewise.
1773 Adjust to recent gnulib changes for the gnulib module.
1774 * bootstrap.conf (gnulib_modules): Add fcntl.
1775 * src/system.h (SEEK_SET, SEEK_CUR, SEEK_END): Remove. Other code
1776 is already assuming these macros are defined.
1777 (O_DIRECT, O_DIRECTORY, O_DSYNC, O_NDELAY, O_NOATIME, O_NONBLOCK):
1778 (O_NOCTTY, O_NOFOLLOW, O_NOLINKS, O_RSYNC, O_SYNC, O_BINARY, O_TEXT):
1779 Remove; the fcntl module now handles these.
1781 Adjust to recent gnulib changes for the inttypes module.
1782 * bootstrap.conf (gnulib_modules): Remove stdint; add inttypes.
1783 (excluded_files): Don't exclude m4/inttypes-h.m4 or m4/inttypes-pri.m4.
1785 * src/system.h: Don't bother to include <stdint.h>, since we can
1786 now assume inttypes.h does the equivalent of including stdint.h.
1788 2006-08-27 Jim Meyering <jim@meyering.net>
1790 * src/copy.c (copy_internal): Don't make a backup if the last
1791 component of the source name is "." or "..".
1792 Reported by Andreas Schwab in http://savannah.gnu.org/bugs/?17540.
1793 * NEWS: Mention this.
1794 * tests/cp/src-base-dot: New file. Test for the above fix.
1795 * tests/cp/Makefile.am (TESTS): Add src-base-dot.
1797 * src/system.h (DOT_OR_DOTDOT): Remove macro. Rewrite as a...
1798 (dot_or_dotdot): ...new static inline function.
1799 * src/remove.c (rm_1): Reflect this renaming.
1800 * src/ls.c (basename_is_dot_or_dotdot): Likewise.
1802 * src/copy.c (copy_internal): Add comments.
1804 2006-08-26 Paul Eggert <eggert@cs.ucla.edu>
1806 * src/Makefile.am (AM_CPPFLAGS): Remove -I$(srcdir) and -I../lib,
1807 since Automake supplies them for us. It always did -I$(srcdir),
1808 and with the recent change to AC_CONFIG_HEADERS in configure.ac it
1809 is now also doing -I../lib.
1811 * bootstrap (get_translations): Skip this if WGET_COMMAND is empty.
1812 Fail if the first "echo" fails. Suppress diagnostics from "ls po/*.po"
1813 since there might not be any .po files.
1814 (WGET_COMMAND): Set to empty if wget doesn't
1815 seem to be available.
1817 2006-08-26 Jim Meyering <jim@meyering.net>
1819 This test was failing in some environments.
1820 * tests/ls/color-dtype-dir: Don't rely on eval "`dircolors -b`"
1821 to set LS_COLORS in the environment.
1822 * tests/envvar-check: Instead, ensure that LS_COLORS is not set.
1823 Reported by Bob Proulx.
1825 * src/c99-to-c89.diff: Remove hunk for copy.c; no longer needed.
1827 * Makefile.am (EXTRA_DIST): Remove these files here, too:
1828 .x-sc_no_if_have_config_h, .x-sc_prohibit_assert_without_use,
1829 .x-sc_two_space_separator_in_usage.
1831 Fix "mv --verbose --backup" so its output includes the
1832 " (backup: foo.~1~)" suffix also when backing up a directory.
1833 * NEWS: Report this bug fix.
1834 * src/copy.c (emit_verbose): New function, factored out of...
1835 (copy_internal): ...here. Use the new function.
1836 * tests/mv/backup-dir: Test for the above fix.
1837 * tests/mv/Makefile.am (TESTS): Add backup-dir.
1839 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
1841 * .x-sc_no_if_have_config_h: Remove; no longer needed.
1842 * .x-sc_prohibit_assert_without_use: Remove; it was empty.
1843 * .x-sc_two_space_separator_in_usage: Likewise.
1844 * Makefile.maint (sc_no_have_config_h): Renamed from
1845 sc_no_if_have_config_h, since it now checks that HAVE_CONFIG_H
1846 is absent everywhere.
1847 * bootstrap.conf (gnulib_modules): Add config-h.
1848 * src/shred.c: Include <config.h> unconditionally, since
1849 we now assume config.h exists.
1850 * src/dircolors.c: Likewise.
1852 2006-08-26 Jim Meyering <jim@meyering.net>
1854 "ls --color" would highlight other-writable and sticky directories
1855 no differently than regular directories on a file system with
1856 dirent.d_type support.
1857 * NEWS: Say the above.
1858 * src/ls.c (gobble_file): With --color, also stat the file when
1859 we know it is a directory.
1860 Derived from an anonymous one-line fix and bug report:
1861 <http://savannah.gnu.org/bugs/?15043>.
1862 * tests/ls/color-dtype-dir: New file. Test for the above fix.
1863 * tests/ls/Makefile.am (TESTS): Add color-dtype-dir.
1865 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
1867 * .cvsignore: Remove stamp-h1. Add coreutils-*, to ignore
1869 * bootstrap.conf: Add configmake, verify.
1870 * src/.cvsignore: Remove localedir.h.
1871 * src/Makefile.am (localedir, DISTCLEANFILES, localedir.h): Remove;
1872 subsumed by configmake.
1873 * src/system.h: Include configmake.h rather than localedir.h
1874 (LOCALEDIR): New macro.
1876 Rewrite to avoid some unnecessary casts, macros, literals.
1877 * src/shred.c (DEFAULT_PASSES, VERBOSE_UPDATE): Now constants,
1879 (SECTOR_SIZE, SECTOR_MASK): New constants.
1880 (fillpattern, dopass, do_wipefd, main): Remove unnecessary casts,
1881 and use the SECTOR_* constants when applicable. Check for size <
1882 0 rather than size == -1, since negative-size files are a sign of
1885 2006-08-25 Bruno Haible <bruno@clisp.org>
1887 * src/shred.c (dopass): Assume a continuable error if EIO even
1888 if the current position is not a multiple of 512.
1890 2006-08-24 Jim Meyering <jim@meyering.net>
1892 * src/stat.c (print_statfs): Fix typo: remove extra "sizeof".
1894 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
1896 * src/stat.c (HAVE_STRUCT_STATXFS_F_FSID___VAL): Define. This
1897 macro was being used without being defined.
1898 (SB_F_NAMEMAX): Remove cast.
1899 (f_fsid) [BeOS]: Likewise.
1900 (OUT_NAMEMAX): Renamed from NAMEMAX_FORMAT, with a new meaning.
1902 (out_string, out_int, out_uint, out_uint_o, out_uint_x): New
1904 (xstrcat): Remove. All uses changed to use the above functions.
1905 (print_statfs, print_stat): 2nd arg is now the prefix len, not the
1906 buffer len. All uses changed. Output '?', not '*', for unknown
1907 data or errors. Do not assume signed values can be interchanged
1908 with unsigned when printing.
1909 (print_statfs): For %i, print the fsid as a single int, not as a
1911 (print_it): Quote invalid format better.
1913 * NEWS: printf supports the I flag.
1914 * src/printf.c (print_formatted) [glibc 2.2 or later]: Likewise.
1916 2006-08-23 Bruno Haible <bruno@clisp.org>
1918 * src/stat.c (STRUCT_STATVFS, statfs, f_fsid, f_blocks, f_bfree) [BeOS]:
1919 (f_bavail, f_bsize, STATFS_FRSIZE, f_files, f_ffree) [BeOS]:
1920 (STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME) [BeOS]: Define.
1922 * src/ls.c (SA_RESTART): Fallback define.
1924 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
1926 * src/system.h (EDQUOT): Define if not already defined.
1927 Problem reported by Bruno Haible for BeOS.
1929 * .cvsignore: Remove config.h, config.hin, as they are now
1931 * configure.ac (AC_CONFIG_HEADERS): Move config.h and config.hin
1933 * src/Makefile.am (AM_CPPFLAGS): Remove '-I..'; no longer needed.
1935 * bootstrap (slurp): Define gl_LOCK_EARLY instead of gl_LOCK,
1936 to accommodate today's gnulib change.
1938 2006-08-23 Jim Meyering <jim@meyering.net>
1940 * NEWS: Mention the sweeping infrastructure changes.
1942 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
1944 * bootstrap.conf (gnulib_modules): Add gnupload.
1945 * Makefile.maint (emit_upload_commands): gnupload is now
1947 * gnupload: Remove from CVS, since it's now a gnulib module.
1949 * bootstrap (bootstrap_conf_cleanup): Remove.
1950 (excluded_files): New var.
1951 * bootstrap.conf: Likewise.
1952 * bootstrap (slurp): Exclude files early if they're in the
1953 excluded_files list. That way, their names don't get put into
1956 * aclocal.m4, config.hin, configure:
1957 Remove from CVS, since ./bootstrap generates them automatically.
1958 * .cvsignore: Add INSTALL, Makefile.in, aclocal.m4, config.hin,
1959 configure, *.cache, *.lineno, *.log.
1960 Remove more-specific entries. This catches files like configure.lineno.
1961 * man/.cvsignore: Add Makefile.in.
1962 * src/.cvsignore: Add Makefile.in.
1963 Remove .version, dir.c, install, mvdir, stamp-v, vdir.c, version.c.
1966 * tests/chgrp/.cvsignore:
1967 * tests/chmod/.cvsignore:
1968 * tests/chown/.cvsignore:
1969 * tests/cp/.cvsignore:
1970 * tests/cut/.cvsignore:
1971 * tests/dd/.cvsignore:
1972 * tests/dircolors/.cvsignore:
1973 * tests/du/.cvsignore:
1974 * tests/expr/.cvsignore:
1975 * tests/factor/.cvsignore:
1976 * tests/fmt/.cvsignore:
1977 * tests/head/.cvsignore:
1978 * tests/install/.cvsignore:
1979 * tests/join/.cvsignore:
1980 * tests/ln/.cvsignore:
1981 * tests/ls/.cvsignore:
1982 * tests/ls-2/.cvsignore:
1983 * tests/md5sum/.cvsignore:
1984 * tests/misc/.cvsignore:
1985 * tests/mkdir/.cvsignore:
1986 * tests/mv/.cvsignore:
1987 * tests/od/.cvsignore:
1988 * tests/pr/.cvsignore:
1989 * tests/readlink/.cvsignore:
1990 * tests/rm/.cvsignore:
1991 * tests/rmdir/.cvsignore:
1992 * tests/seq/.cvsignore:
1993 * tests/sha1sum/.cvsignore:
1994 * tests/shred/.cvsignore:
1995 * tests/sort/.cvsignore:
1996 * tests/stty/.cvsignore:
1997 * tests/sum/.cvsignore:
1998 * tests/tac/.cvsignore:
1999 * tests/tail/.cvsignore:
2000 * tests/tail-2/.cvsignore:
2001 * tests/tee/.cvsignore:
2002 * tests/test/.cvsignore:
2003 * tests/touch/.cvsignore:
2004 * tests/tr/.cvsignore:
2005 * tests/tsort/.cvsignore:
2006 * tests/unexpand/.cvsignore:
2007 * tests/uniq/.cvsignore:
2008 * tests/wc/.cvsignore:
2009 Add Makefile.in. Sort entries if necessary. Remove *.I, *.E,
2010 *.X, *.O, *-tests, build-script, mk-script if they're never
2011 created in this directory.
2013 2006-08-22 Bruno Haible <bruno@clisp.org>
2016 * src/uptime.c: Include OS.h if it exists.
2017 (print_uptime): On BeOS, use the get_system_info function (actually a
2018 macro). Loop through utmp entries only if utmp.h or utmpx.h exists.
2019 (uptime): Call read_utmp only if utmp.h or utmpx.h exists.
2021 2006-08-22 Jim Meyering <jim@meyering.net>
2023 * .cvsignore: Add ABOUT-NLS.
2025 Move the check-AUTHORS rule to be run as part of "make distcheck",
2026 rather than "make check".
2027 * src/Makefile.am (check): Don't depend on check-AUTHORS; it would
2028 cause "make check" to fail on systems unable to build all binaries.
2029 * Makefile.maint (check-AUTHORS): New rule.
2030 (local-checks-available): Add it here.
2031 Reported by Bruno Haible. Needed for BeOS.
2033 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
2035 * src/df.c (print_header, show_dev): Use a column width that
2036 depends on the block size of -P is specified and not autoscaling.
2037 Problem reported by Gustavo G. Rondina in:
2038 http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00164.html
2040 2006-08-21 Jim Meyering <jim@meyering.net>
2042 * tests/dircolors/simple (a): Don't fail with an unexpected diagnostic
2043 when the shell variable, SHELL, is not set.
2044 Trigger the failure with "(unset SHELL; make check TESTS=simple)".
2045 Reported by Sven Joachim in <http://bugs.debian.org/355368>.
2047 * src/od.c: Now that HAVE_UNSIGNED_LONG_LONG is no longer defined
2048 in config.h, change the uses to HAVE_UNSIGNED_LONG_LONG_INT.
2049 Otherwise, on a system with 4-byte longs, "od -t u8" fails with this:
2050 od: invalid type string `u8';
2051 this system doesn't provide a 8-byte integral type
2052 FIXME: add a test for this, but skip it when sizeof uintmax < 8.
2054 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
2056 Add a bootstrap procedure, so that the CVS version contains fewer
2057 files and we bootstrap the rest from gnulib, gettext, etc.
2058 * README-cvs: New file.
2059 * bootstrap: New file.
2060 * bootstrap.conf: New file.
2061 * .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
2062 * configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
2064 (gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
2065 (gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
2067 (gl_MACROS): Call just after gl_EARLY, just for clarity.
2068 * src/c99-to-c89.diff: Remove patch to ls.c; no longer needed.
2069 * src/kill.c (strtoimax): Remove decl.
2070 * src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
2071 * src/wc.c: Likewise.
2072 * src/ls.c (sort_files): Rewrite to avoid need for C99-style
2073 declaration, so that we don't need to patch this file.
2074 * src/printf.c (strtoimax, strtoumax): Remove decls.
2075 * src/su.c: Include getpass.h.
2077 * src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
2078 Include inttypes.h unconditionally.
2079 (LONGEST_MODIFIER, PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX): Remove.
2080 (stpcpy, strndup, strstr, strtoul, mempcpy, CHAR_MIN, CHAR_MAX):
2081 (SCHAR_MIN, SCHAR_MAX, UCHAR_MAX, SHRT_MIN, SHRT_MAX, INT_MAX):
2082 (INT_MIN, INTMAX_MAX, INTMAX_MIN, UINT_MAX, LONG_MAX, ULONG_MAX):
2083 (SIZE_MAX, SSIZE_MAX, UINTMAX_MAX): Remove.
2085 * ABOUT-NLS, INSTALL, Makefile.in, man/Makefile.in:
2086 * src/Makefile.in, tests/Makefile.in, tests/chgrp/Makefile.in:
2087 * tests/chmod/Makefile.in, tests/chown/Makefile.in:
2088 * tests/cp/Makefile.in, tests/cut/Makefile.in:
2089 * tests/dd/Makefile.in, tests/dircolors/Makefile.in:
2090 * tests/du/Makefile.in, tests/expr/Makefile.in:
2091 * tests/factor/Makefile.in, tests/fmt/Makefile.in:
2092 * tests/general/Makefile.in, tests/head/Makefile.in:
2093 * tests/install/Makefile.in, tests/join/Makefile.in:
2094 * tests/ln/Makefile.in, tests/ls/Makefile.in:
2095 * tests/ls-2/Makefile.in, tests/md5sum/Makefile.in:
2096 * tests/misc/Makefile.in, tests/mkdir/Makefile.in:
2097 * tests/mv/Makefile.in, tests/od/Makefile.in:
2098 * tests/pr/Makefile.in, tests/readlink/Makefile.in:
2099 * tests/rm/Makefile.in, tests/rmdir/Makefile.in:
2100 * tests/seq/Makefile.in, tests/sha1sum/Makefile.in:
2101 * tests/shred/Makefile.in, tests/sort/Makefile.in:
2102 * tests/stty/Makefile.in, tests/sum/Makefile.in:
2103 * tests/tac/Makefile.in, tests/tail/Makefile.in:
2104 * tests/tail-2/Makefile.in, tests/tee/Makefile.in:
2105 * tests/test/Makefile.in, tests/touch/Makefile.in:
2106 * tests/tr/Makefile.in, tests/tsort/Makefile.in:
2107 * tests/unexpand/Makefile.in, tests/uniq/Makefile.in:
2108 * tests/wc/Makefile.in:
2109 Remove from CVS, since ./bootstrap generates them automatically.
2111 2006-08-20 Eric Blake <ebb9@byu.net>
2113 * src/stat.c (USE_STATVFS): Reinstate the patch from 2006-08-15;
2114 the patch from 2006-08-18 broke on cygwin.
2116 2006-08-20 Jim Meyering <jim@meyering.net>
2118 * NEWS: Add a line for 6.2-cvs.
2119 * configure.ac (AC_INIT): Bump to 6.2 and add "-cvs" suffix.
2121 2006-08-19 Jim Meyering <jim@meyering.net>
2124 * NEWS: Record the 6.1 release date.
2125 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2127 * tests/Makefile.am (EXTRA_DIST): Add sparse-file.
2129 Avoid test failure when `make check' is run through debuild.
2130 * tests/help-version: Ensure that $SHELL is set to some value
2131 and exported. Patch from Sven Joachim. For details, see
2132 <http://bugs.debian.org/355368>.
2134 * tests/ls/stat-dtype: Test for the 2006-08-17 `ls -CF' fix.
2136 * README: Describe potential "pre-C99 build failure", and work-around.
2138 Some of my 2006-07-03 changes to tests/*/Makefile.am were being
2139 backed out due to updates provoked by the copyright changes.
2140 * tests/Makefile.am.in (PATH): Prepend $(VG_PATH_PREFIX), so that
2141 it propagates to the derived Makefile.am files.
2142 ($(srcdir)/Makefile.am): Mark generated .am files as read-only,
2143 so we don't mistakenly edit them again.
2144 * tests/cut/Makefile.am: Regenerate.
2145 * tests/head/Makefile.am: Likewise.
2146 * tests/join/Makefile.am: Likewise.
2147 * tests/pr/Makefile.am: Likewise.
2148 * tests/sort/Makefile.am: Likewise.
2149 * tests/tac/Makefile.am: Likewise.
2150 * tests/tail/Makefile.am: Likewise.
2151 * tests/test/Makefile.am: Likewise.
2152 * tests/tr/Makefile.am: Likewise.
2153 * tests/uniq/Makefile.am: Likewise.
2154 * tests/wc/Makefile.am: Likewise.
2156 * NEWS: Fix cp --sparse so that it preserves tail-end sparseness, even
2157 when the file's apparent size is not a multiple of its block size.
2158 * src/copy.c (copy_reg): Don't write a NUL before calling ftruncate.
2159 For some file sizes, writing that single byte would unnecessarily
2160 waste a few file blocks. That write may have been necessary in the
2161 early days of Linux, but now, removing it should be safe.
2162 Based on a patch by Alan Curry: <http://bugs.debian.org/370792>
2163 * tests/cp/sparse: New test for the above.
2164 * tests/cp/Makefile.am (TESTS): Add sparse.
2166 * tests/sparse-file: New file, essence factored out of...
2167 * tests/du/8gb: ... here. Use the new script.
2169 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
2171 * src/system.h (select_plural): Reduce by 1000000, not 1000, since
2172 the CVS gettext manual now suggests 1000000.
2174 2006-08-18 Bruno Haible <bruno@clisp.org>
2176 Add support for NetBSD 3.0.
2177 * src/stat.c (USE_STATVFS): Set to 1 if 'struct statvfs' has a field
2179 (STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME): Define also if 'struct statvfs'
2180 has a field f_fstypename.
2181 This undoes the 2006-08-15 to src/stat.c.
2183 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
2185 Copyright notice fixes.
2187 * COPYING: Upgrade to latest version from FSF.
2189 * src/uname.c: Use (C) in copyright notice.
2191 * .vg-suppressions: Add copyright notice.
2192 * ChangeLog: Likewise.
2193 * ChangeLog-2005: Likewise.
2194 * Makefile.am: Likewise.
2197 * README-valgrind: Likewise.
2199 * announce-gen: Likewise.
2200 * man/Makefile.am: Likewise.
2201 * man/chmod.x: Likewise.
2202 * man/chown.x: Likewise.
2203 * man/df.x: Likewise.
2204 * man/du.x: Likewise.
2205 * man/rm.x: Likewise.
2206 * src/dircolors.hin: Likewise.
2207 * src/du-tests: Likewise.
2208 * src/extract-magic: Likewise.
2209 * src/tac-pipe.c: Likewise.
2210 * src/wheel-gen.pl: Likewise.
2211 * tests/Coreutils.pm: Likewise.
2212 * tests/Makefile.am.in: Likewise.
2213 * tests/acl: Likewise.
2214 * tests/envvar-check: Likewise.
2215 * tests/expensive: Likewise.
2216 * tests/group-names: Likewise.
2217 * tests/help-version: Likewise.
2218 * tests/mk-script: Likewise.
2219 * tests/priv-check: Likewise.
2220 * tests/rwx-to-mode: Likewise.
2221 * tests/sample-test: Likewise.
2222 * tests/setgid-check: Likewise.
2223 * tests/chgrp/basic: Likewise.
2224 * tests/chgrp/deref: Likewise.
2225 * tests/chgrp/no-x: Likewise.
2226 * tests/chgrp/posix-H: Likewise.
2227 * tests/chgrp/recurse: Likewise.
2228 * tests/chmod/c-option: Likewise.
2229 * tests/chmod/equal-x: Likewise.
2230 * tests/chmod/equals: Likewise.
2231 * tests/chmod/no-x: Likewise.
2232 * tests/chmod/octal: Likewise.
2233 * tests/chmod/setgid: Likewise.
2234 * tests/chmod/umask-x: Likewise.
2235 * tests/chmod/usage: Likewise.
2236 * tests/chown/basic: Likewise.
2237 * tests/chown/deref: Likewise.
2238 * tests/chown/separator: Likewise.
2239 * tests/cp/Makefile.am: Likewise.
2240 * tests/cp/acl: Likewise.
2241 * tests/cp/backup-1: Likewise.
2242 * tests/cp/backup-is-src: Likewise.
2243 * tests/cp/cp-HL: Likewise.
2244 * tests/cp/cp-deref: Likewise.
2245 * tests/cp/cp-mv-backup: Likewise.
2246 * tests/cp/cp-parents: Likewise.
2247 * tests/cp/deref-slink: Likewise.
2248 * tests/cp/dir-rm-dest: Likewise.
2249 * tests/cp/dir-slash: Likewise.
2250 * tests/cp/dir-vs-file: Likewise.
2251 * tests/cp/fail-perm: Likewise.
2252 * tests/cp/into-self: Likewise.
2253 * tests/cp/link: Likewise.
2254 * tests/cp/link-no-deref: Likewise.
2255 * tests/cp/link-preserve: Likewise.
2256 * tests/cp/no-deref-link1: Likewise.
2257 * tests/cp/no-deref-link2: Likewise.
2258 * tests/cp/no-deref-link3: Likewise.
2259 * tests/cp/perm: Likewise.
2260 * tests/cp/preserve-2: Likewise.
2261 * tests/cp/r-vs-symlink: Likewise.
2262 * tests/cp/same-file: Likewise.
2263 * tests/cp/slink-2-slink: Likewise.
2264 * tests/cp/special-bits: Likewise.
2265 * tests/cp/symlink-slash: Likewise.
2266 * tests/cut/Makefile.am: Likewise.
2267 * tests/cut/Test.pm: Likewise.
2268 * tests/dd/misc: Likewise.
2269 * tests/dd/not-rewound: Likewise.
2270 * tests/dd/skip-seek: Likewise.
2271 * tests/dd/skip-seek2: Likewise.
2272 * tests/dd/unblock-sync: Likewise.
2273 * tests/dircolors/simple: Likewise.
2274 * tests/du/2g: Likewise.
2275 * tests/du/8gb: Likewise.
2276 * tests/du/Makefile.am: Likewise.
2277 * tests/du/basic: Likewise.
2278 * tests/du/deref: Likewise.
2279 * tests/du/deref-args: Likewise.
2280 * tests/du/exclude: Likewise.
2281 * tests/du/fd-leak: Likewise.
2282 * tests/du/files0-from: Likewise.
2283 * tests/du/hard-link: Likewise.
2284 * tests/du/inaccessible-cwd: Likewise.
2285 * tests/du/long-from-unreadable: Likewise.
2286 * tests/du/long-sloop: Likewise.
2287 * tests/du/no-deref: Likewise.
2288 * tests/du/no-x: Likewise.
2289 * tests/du/restore-wd: Likewise.
2290 * tests/du/slash: Likewise.
2291 * tests/du/slink: Likewise.
2292 * tests/du/trailing-slash: Likewise.
2293 * tests/du/two-args: Likewise.
2294 * tests/expr/basic: Likewise.
2295 * tests/factor/basic: Likewise.
2296 * tests/fmt/basic: Likewise.
2297 * tests/fmt/long-line: Likewise.
2298 * tests/general/Makefile.am: Likewise.
2299 * tests/general/atgeneral.m4: Likewise.
2300 * tests/general/dd.at: Likewise.
2301 * tests/head/Makefile.am: Likewise.
2302 * tests/head/Test.pm: Likewise.
2303 * tests/install/basic-1: Likewise.
2304 * tests/install/create-leading: Likewise.
2305 * tests/install/d-slashdot: Likewise.
2306 * tests/install/trap: Likewise.
2307 * tests/join/Makefile.am: Likewise.
2308 * tests/join/Test.pm: Likewise.
2309 * tests/ln/backup-1: Likewise.
2310 * tests/ln/misc: Likewise.
2311 * tests/ln/sf-1: Likewise.
2312 * tests/ln/target-1: Likewise.
2313 * tests/ls/Makefile.am: Likewise.
2314 * tests/ls/Test.pm: Likewise.
2315 * tests/ls/dangle: Likewise.
2316 * tests/ls/dired: Likewise.
2317 * tests/ls/file-type: Likewise.
2318 * tests/ls/follow-slink: Likewise.
2319 * tests/ls/infloop: Likewise.
2320 * tests/ls/inode: Likewise.
2321 * tests/ls/m-option: Likewise.
2322 * tests/ls/no-arg: Likewise.
2323 * tests/ls/recursive: Likewise.
2324 * tests/ls/rt-1: Likewise.
2325 * tests/ls/stat-dtype: Likewise.
2326 * tests/ls/stat-failed: Likewise.
2327 * tests/ls/stat-vs-dirent: Likewise.
2328 * tests/ls/symlink-slash: Likewise.
2329 * tests/ls/time-1: Likewise.
2330 * tests/ls-2/tests: Likewise.
2331 * tests/md5sum/basic-1: Likewise.
2332 * tests/md5sum/newline-1: Likewise.
2333 * tests/misc/Makefile.am: Likewise.
2334 * tests/misc/base64: Likewise.
2335 * tests/misc/basename: Likewise.
2336 * tests/misc/cat-proc: Likewise.
2337 * tests/misc/close-stdout: Likewise.
2338 * tests/misc/csplit: Likewise.
2339 * tests/misc/date: Likewise.
2340 * tests/misc/date-sec: Likewise.
2341 * tests/misc/df: Likewise.
2342 * tests/misc/dirname: Likewise.
2343 * tests/misc/expand: Likewise.
2344 * tests/misc/false-status: Likewise.
2345 * tests/misc/fold: Likewise.
2346 * tests/misc/head-c: Likewise.
2347 * tests/misc/head-elide-tail: Likewise.
2348 * tests/misc/head-pos: Likewise.
2349 * tests/misc/mknod: Likewise.
2350 * tests/misc/nice: Likewise.
2351 * tests/misc/nl: Likewise.
2352 * tests/misc/nohup: Likewise.
2353 * tests/misc/paste-no-nl: Likewise.
2354 * tests/misc/pathchk1: Likewise.
2355 * tests/misc/printf: Likewise.
2356 * tests/misc/printf-hex: Likewise.
2357 * tests/misc/pwd-long: Likewise.
2358 * tests/misc/sha224sum: Likewise.
2359 * tests/misc/sha256sum: Likewise.
2360 * tests/misc/sha384sum: Likewise.
2361 * tests/misc/sha512sum: Likewise.
2362 * tests/misc/shuf: Likewise.
2363 * tests/misc/sort-merge: Likewise.
2364 * tests/misc/sort-rand: Likewise.
2365 * tests/misc/split-a: Likewise.
2366 * tests/misc/split-fail: Likewise.
2367 * tests/misc/split-l: Likewise.
2368 * tests/misc/stat-fmt: Likewise.
2369 * tests/misc/stat-printf: Likewise.
2370 * tests/misc/tac-continue: Likewise.
2371 * tests/misc/test-diag: Likewise.
2372 * tests/misc/tty-eof: Likewise.
2373 * tests/misc/wc-files0: Likewise.
2374 * tests/misc/wc-files0-from: Likewise.
2375 * tests/mkdir/concurrent-1: Likewise.
2376 * tests/mkdir/p-1: Likewise.
2377 * tests/mkdir/p-2: Likewise.
2378 * tests/mkdir/p-3: Likewise.
2379 * tests/mkdir/p-slashdot: Likewise.
2380 * tests/mkdir/p-thru-slink: Likewise.
2381 * tests/mkdir/parents: Likewise.
2382 * tests/mkdir/perm: Likewise.
2383 * tests/mkdir/special-1: Likewise.
2384 * tests/mkdir/t-slash: Likewise.
2385 * tests/mkdir/writable-under-readonly: Likewise.
2386 * tests/mv/Makefile.am: Likewise.
2387 * tests/mv/acl: Likewise.
2388 * tests/mv/atomic: Likewise.
2389 * tests/mv/backup-is-src: Likewise.
2390 * tests/mv/childproof: Likewise.
2391 * tests/mv/diag: Likewise.
2392 * tests/mv/dir-file: Likewise.
2393 * tests/mv/dir2dir: Likewise.
2394 * tests/mv/dup-source: Likewise.
2395 * tests/mv/force: Likewise.
2396 * tests/mv/hard-2: Likewise.
2397 * tests/mv/hard-3: Likewise.
2398 * tests/mv/hard-4: Likewise.
2399 * tests/mv/hard-link-1: Likewise.
2400 * tests/mv/i-1: Likewise.
2401 * tests/mv/i-2: Likewise.
2402 * tests/mv/i-3: Likewise.
2403 * tests/mv/i-4: Likewise.
2404 * tests/mv/i-link-no: Likewise.
2405 * tests/mv/into-self: Likewise.
2406 * tests/mv/into-self-2: Likewise.
2407 * tests/mv/into-self-3: Likewise.
2408 * tests/mv/into-self-4: Likewise.
2409 * tests/mv/leak-fd: Likewise.
2410 * tests/mv/mv-special-1: Likewise.
2411 * tests/mv/no-target-dir: Likewise.
2412 * tests/mv/part-fail: Likewise.
2413 * tests/mv/part-hardlink: Likewise.
2414 * tests/mv/part-rename: Likewise.
2415 * tests/mv/part-symlink: Likewise.
2416 * tests/mv/partition-perm: Likewise.
2417 * tests/mv/perm-1: Likewise.
2418 * tests/mv/reply-no: Likewise.
2419 * tests/mv/setup: Likewise.
2420 * tests/mv/to-symlink: Likewise.
2421 * tests/mv/trailing-slash: Likewise.
2422 * tests/mv/update: Likewise.
2423 * tests/mv/vfat: Likewise.
2424 * tests/od/od-N: Likewise.
2425 * tests/od/x8: Likewise.
2426 * tests/pr/Makefile.am: Likewise.
2427 * tests/pr/Test.pm: Likewise.
2428 * tests/readlink/can-e: Likewise.
2429 * tests/readlink/can-f: Likewise.
2430 * tests/readlink/can-m: Likewise.
2431 * tests/readlink/rl-1: Likewise.
2432 * tests/rm/Makefile.am: Likewise.
2433 * tests/rm/cycle: Likewise.
2434 * tests/rm/dangling-symlink: Likewise.
2435 * tests/rm/deep-1: Likewise.
2436 * tests/rm/dir-no-w: Likewise.
2437 * tests/rm/dir-nonrecur: Likewise.
2438 * tests/rm/dot-rel: Likewise.
2439 * tests/rm/empty-inacc: Likewise.
2440 * tests/rm/empty-name: Likewise.
2441 * tests/rm/f-1: Likewise.
2442 * tests/rm/fail-2eperm: Likewise.
2443 * tests/rm/fail-eperm: Likewise.
2444 * tests/rm/hash: Likewise.
2445 * tests/rm/i-1: Likewise.
2446 * tests/rm/i-no-r: Likewise.
2447 * tests/rm/inaccessible: Likewise.
2448 * tests/rm/interactive-always: Likewise.
2449 * tests/rm/interactive-once: Likewise.
2450 * tests/rm/ir-1: Likewise.
2451 * tests/rm/isatty: Likewise.
2452 * tests/rm/no-give-up: Likewise.
2453 * tests/rm/r-1: Likewise.
2454 * tests/rm/r-2: Likewise.
2455 * tests/rm/r-3: Likewise.
2456 * tests/rm/rm1: Likewise.
2457 * tests/rm/rm2: Likewise.
2458 * tests/rm/rm3: Likewise.
2459 * tests/rm/rm4: Likewise.
2460 * tests/rm/rm5: Likewise.
2461 * tests/rm/sunos-1: Likewise.
2462 * tests/rm/unread2: Likewise.
2463 * tests/rm/unread3: Likewise.
2464 * tests/rm/unreadable: Likewise.
2465 * tests/rmdir/fail-perm: Likewise.
2466 * tests/rmdir/ignore: Likewise.
2467 * tests/rmdir/t-slash: Likewise.
2468 * tests/seq/basic: Likewise.
2469 * tests/sha1sum/basic-1: Likewise.
2470 * tests/sha1sum/sample-vec: Likewise.
2471 * tests/shred/exact: Likewise.
2472 * tests/shred/remove: Likewise.
2473 * tests/sort/Makefile.am: Likewise.
2474 * tests/sort/Test.pm: Likewise.
2475 * tests/sort-time/Makefile: Likewise.
2476 * tests/sort-time/README: Likewise.
2477 * tests/sort-time/rand-gen: Likewise.
2478 * tests/stty/basic-1: Likewise.
2479 * tests/stty/row-col-1: Likewise.
2480 * tests/sum/basic-1: Likewise.
2481 * tests/sum/sysv: Likewise.
2482 * tests/tac/Makefile.am: Likewise.
2483 * tests/tac/Test.pm: Likewise.
2484 * tests/tail/Makefile.am: Likewise.
2485 * tests/tail/Test.pm: Likewise.
2486 * tests/tail-2/Makefile.am: Likewise.
2487 * tests/tail-2/append-only: Likewise.
2488 * tests/tail-2/assert: Likewise.
2489 * tests/tail-2/assert-2: Likewise.
2490 * tests/tail-2/big-4gb: Likewise.
2491 * tests/tail-2/fflush: Likewise.
2492 * tests/tail-2/infloop-1: Likewise.
2493 * tests/tail-2/proc-ksyms: Likewise.
2494 * tests/tail-2/start-middle: Likewise.
2495 * tests/tail-2/tail-n0f: Likewise.
2496 * tests/tee/basic: Likewise.
2497 * tests/tee/dash: Likewise.
2498 * tests/test/Makefile.am: Likewise.
2499 * tests/test/Test.pm: Likewise.
2500 * tests/touch/Makefile.am: Likewise.
2501 * tests/touch/dangling-symlink: Likewise.
2502 * tests/touch/empty-file: Likewise.
2503 * tests/touch/fail-diag: Likewise.
2504 * tests/touch/fifo: Likewise.
2505 * tests/touch/no-create-missing: Likewise.
2506 * tests/touch/no-rights: Likewise.
2507 * tests/touch/not-owner: Likewise.
2508 * tests/touch/obsolescent: Likewise.
2509 * tests/touch/read-only: Likewise.
2510 * tests/touch/relative: Likewise.
2511 * tests/tr/Makefile.am: Likewise.
2512 * tests/tr/Test.pm: Likewise.
2513 * tests/tr/failures: Likewise.
2514 * tests/tsort/basic-1: Likewise.
2515 * tests/unexpand/basic-1: Likewise.
2516 * tests/uniq/Makefile.am: Likewise.
2517 * tests/uniq/Test.pm: Likewise.
2518 * tests/wc/Makefile.am: Likewise.
2519 * tests/wc/Test.pm: Likewise.
2521 2006-08-17 Jim Meyering <jim@meyering.net>
2523 ls -CF would misalign columns in some cases.
2524 * src/ls.c (get_type_indicator): New function. extracted from...
2525 (print_type_indicator): ...here. Use it.
2526 (length_of_file_name_and_frills): Use it here, too, rather than
2527 assuming stat.st_mode is valid.
2528 Reported by Andreas Schwab, here:
2529 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7774>
2530 See the test for this above. FYI, I did ls -CF /proc and visually
2531 inspected the result.
2533 * src/copy.c (copy_internal, same_file_ok): Adjust comments not
2534 to mention the now-removed cp_options.xstat member.
2536 * Makefile.maint (patch-check): Adapt to work now that the patch
2537 modifies more than one file in src/.
2539 With this patch, permit building with Solaris cc on Solaris 7.
2540 * src/c99-to-c89.diff: Add diffs to convert more c99-isms.
2541 This integrates patches from Bruno Haible.
2543 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
2545 Fix some problems reported by Bruno Haible.
2546 * tests/chmod/setgid (abs_srcdir): Remove; not used or needed.
2547 Skip this test if "chmod g+s d" silently does nothing.
2548 * tests/ls-2/tests: Skip this test suite if we can't set up files
2549 properly for the setuid-etc test. This simplifies some of the
2550 hacks we were using to work around porting problems.
2552 2006-08-16 Jim Meyering <jim@meyering.net>
2554 * tests/cp/Makefile.am: Don't mark "acl" as XFAIL.
2555 * tests/cp/acl: Instead, skip the test if either setfacl
2557 Reported by Michael Stone.
2559 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
2561 * tests/lang-default (LC_ALL): Set to "C", so we get
2562 English-language diagnostics. Unset the other variables; it
2563 should be portable to use 'unset' for this stuff nowadays.
2564 Problem reported by Bruno Haible. Using "C" reverses the
2565 2000-10-22 change to fileutils in this area.
2567 Fix bugs when printing plurals of numbers that are not
2568 unsigned long int values.
2569 * src/system.h (select_plural): New function.
2570 * src/md5sum.c (digest_check): Use select_plural to avoid bug.
2571 * src/uptime.c (print_uptime): Likewise.
2572 * src/dd.c (print_stats): Likewise. Also, don't use ngettext to
2573 print a floating point number, as reducing to 0 or 1 doesn't work
2574 for some languages. Instead, just use "s" for seconds since it
2575 doesn't need a plural form.
2577 2006-08-16 Bruno Haible <bruno@clisp.org>
2579 Old versions of gzip would write --help output to stderr, and it
2580 would be annoying to see that in the output of every "make" command.
2581 * Makefile.maint (gzip_rsyncable): Throw away stderr output of
2584 2006-08-16 Andreas Schwab <schwab@suse.de>
2586 * tests/cp/acl: Don't use non-portable == operator for test.
2588 2006-08-16 Jim Meyering <jim@meyering.net>
2590 * tests/ls/stat-dtype: Use stat to test file system type, rather
2591 than df -T, in case /etc/mtab lies. Reported by Michael Stone.
2593 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2595 * NEWS: Mention that df exits with nonzero status if it generates
2596 no output. This change was in 6.0 but inadvertently unmentioned.
2597 * src/df.c (file_systems_processed): Renamed from n_valid_args, and now
2599 (show_dev): Don't set it until we actually output something.
2600 Print the header if this is the first output.
2601 (main): Don't print a header, as that is now show_dev's job.
2602 * tests/misc/Makefile.am (TESTS): Add df.
2603 * tests/misc/df: New file.
2605 2006-08-15 Eric Blake <ebb9@byu.net>
2607 * src/stat.c (USE_STATVFS): Define to 0 if f_type is needed, but
2608 statvfs.f_type not present. See
2609 <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16325>.
2611 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2613 * src/dd.c (print_stats): Don't substitute "1" for number, as this
2614 causes confusion for the Hungarian translators. Problem reported
2615 by Egmont Koblinger here:
2616 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7726
2618 2006-08-15 Jim Meyering <jim@meyering.net>
2620 * .x-sc_require_config_h: Add lib/at-func.c.
2622 * NEWS: Add a line for 6.1-cvs.
2623 * configure.ac (AC_INIT): Bump to 6.1 and add "-cvs" suffix.
2625 2006-08-15 Jim Meyering <jim@meyering.net>
2628 * NEWS: Record the 6.0 release date.
2629 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2631 * TODO: Add an item (convert to use gnulib-tool), add to the plan
2632 for id-vs-getgrouplist, and remove a few completed items.
2634 * Makefile.maint (alpha beta major): Fix syntax error.
2636 2006-08-13 Jim Meyering <jim@meyering.net>
2638 * src/shred.c (usage): Don't indent the second line of an item.
2639 Otherwise, help2man would misformat the output.
2640 Reported by Adam Buchbinder in <https://launchpad.net/bugs/48917>.
2642 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
2644 * configure.ac (AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.
2645 Suggested by Eric Blake to avoid problems like
2646 <http://lists.gnu.org/archive/html/bug-coreutils/2006-07/msg00087.html>.
2648 2006-08-11 Jim Meyering <jim@meyering.net>
2650 * tests/ls/stat-vs-dirent: Too many (losing) systems trigger the
2651 failure that this test checks for (stat/dirent inode mismatch at
2652 a mount point), so continue to give a diagnostic about the failure,
2653 but don't actually count it as a failure.
2655 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
2657 * ABOUT-NLS: Update from gettext 0.15.
2658 * configure.ac (AM_GNU_GETTEXT_VERSION): Update from 0.13.1 to 0.15.
2660 * src/csplit.c (struct control): Remove fastmap member.
2661 (extract_regexp): Allocate fastmap separately, since otherwise
2662 it might move due to a realloc. This fixes a bug that led
2663 to a core dump on 64-bit sparc Solaris 10 (Sun Studio 10).
2665 2006-08-10 Jim Meyering <jim@meyering.net>
2667 * tests/ls/stat-dtype: If "." is tmpfs, skip this test unless uname -s
2668 reports "Linux". This avoids a failure on Solaris 10's tmpfs.
2669 Redirect both stdout and stderr of df invocations.
2671 * src/dircolors.hin: Add a TERM directive for each of the following:
2672 ansi, color-xterm, gnome, konsole, kterm, rxvt-cygwin,
2673 rxvt-cygwin-native, screen.linux, xterm-256color.
2674 Sort the TERM directives.
2675 From Mike Frysinger.
2677 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
2679 * src/dd.c (usage): Warn about oflag=append without conv=notrunc.
2680 See Debian bug 373736.
2682 * src/dircolors.hin: Add mlterm, rxvt-unicode; this fixes Debian
2685 * src/.cvsignore: Add shuf.
2687 * Makefile.maint: Remove the po-update procedure; it doesn't
2688 work with the new repository on http://www.iro.umontreal.ca/.
2689 For now I guess we'll have to fix things by hand.
2690 (do-po-update, po-update): Remove. All references removed.
2692 * src/shuf.c (next_line): New function.
2693 (read_input): Use it, to avoid relying on GCC-specific behavior
2694 with void * arithmetic. Problem reported by Bob Proulx.
2695 * Makefile.maint (my-distcheck): Compile with -Wpointer-arith
2696 to detect this sort of problem automatically in the future.
2698 2006-08-09 Jim Meyering <jim@meyering.net>
2700 * src/ls.c: Add a compile-time check to ensure that filetype
2701 and filetype_letter have the same number of elements.
2703 * tests/misc/sort-rand: Remove use of --seed=S.
2705 2006-08-08 Paul Eggert <eggert@cs.ucla.edu>
2707 Add a command 'shuf', and modify shred and sort to use the new
2708 random number generator library of 'shuf'.
2710 * AUTHORS: Add shuf.
2712 * NEWS: Likewise. Mention new --random-source option for shred
2713 and sort. Move "sort +1 -2" notice to the appropriate section,
2714 and clarify its role with respect to POSIXLY_CORRECT.
2715 * man/.cvsignore: Add shuf.1.
2716 * man/Makefile.am (dist_man_MANS): Add shuf.1.
2717 (shuf.1): New dependency.
2718 * man/shuf.x: New file.
2719 * src/Makefile.am (bin_PROGRAMS): Add shuf.
2720 (EXTRA_DIST): Remove rand-isaac.c.
2721 (shuf_LDADD): New macro.
2722 * src/rand-isaac.c: Remove, moving most of its contents to
2724 * src/shuf.c: New file.
2725 * src/shred.c: Use new random-number interface rather than rand-isaac.c.
2726 Don't include rand-isaac.c; include randint.h and randread.h instead.
2727 (RANDOM_SOURCE_OPTION): New enum.
2728 (long_opts, usage, main): New option --random-source.
2729 * src/sort.c: Likewise.
2730 * src/shred.c (struct irand_state, irand_init, irand32, irand_mod): Remove.
2731 All callers changed to use randint interface.
2732 (fillrand): Remove. All callers changed to use randread interface.
2733 (dopass): Remove dependency on ISAAC buffer size.
2734 (genpattern): Don't wipe the random state here.
2735 (randint_source): New static var.
2736 (clear_random_data): New function.
2737 (main): Allocate random source, and arrange to wipe it on exit.
2738 * src/sort.c: Include md5.h, randread.h, xmemxfrm.h.
2739 (longopts, usage, main): Remove undocumented --seed option;
2740 it's now replaced by --random-source.
2741 (rand_state, get_hash): Remove.
2742 (randread_source): New static var.
2743 (random_state, cmp_hashes, compare_random): New functions; they guarantee
2744 no collisions in the random hash function.
2745 (keycompare): Use compare_random for -R; don't fall back on comparing
2746 via memcoll, since compare_random does the right thing.
2747 * tests/misc/Makefile.am (TESTS): Add shuf.
2748 * tests/misc/shuf: New file.
2750 2006-07-29 Paul Eggert <eggert@cs.ucla.edu>
2752 * src/copy.c (set_author): Preserve the st_author field via the
2753 file descriptor dest_desc.
2755 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
2757 * NEWS: chmod now preserves setuid and setgid bits on directories
2758 if you use a numeric mode with them clear, e.g., "chmod 755 DIR".
2760 Fix test case problems if working directory is setgid,
2761 reported by Bob Proulx.
2762 * tests/cp/fail-perm: Use symbolic mode so that we clear
2763 setgid bit more reliably on directories.
2764 * tests/mkdir/special-1 (set_mode_string): Likewise.
2766 2006-07-27 Jim Meyering <jim@meyering.net>
2768 * src/chgrp.c (usage): Use correct grammar in description of the
2770 * src/chown.c (usage): Likewise.
2772 2006-07-26 Thomas Schwinge <tschwinge@gnu.org> (tiny change)
2774 * src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:
2775 Correctly access SRC_SB's element ST_AUTHOR.
2777 2006-07-26 Jim Meyering <jim@meyering.net>
2779 * tests/ls/stat-failed: Adapt to match new expected output.
2782 * src/ls.c (print_color_indicator): Test for S_IFREG first, rather
2783 than having the code test for all of the other types first.
2784 Hoist the set-uid/gid-testing code "up" into this new block.
2785 Classify any other type of file (e.g., S_TYPEISSHM, etc.) as
2786 C_ORPHAN, not as C_FILE.
2788 2006-07-26 Jim Meyering <jim@meyering.net>
2790 Checking in a change from Paul.
2792 2006-07-25 Paul Eggert <eggert@cs.ucla.edu>
2794 * src/ls.c (DT_INIT): Remove. All uses removed.
2795 (enum filetype): Use an ordinary enum rather than trying to keep
2796 the values in sync with DT_FIFO etc. That way, we don't have
2797 to make special assumptions about them. All uses changed.
2798 (whiteout): New constant member of enum filetype.
2799 (filetype_letter): New constant, for use with enum filetype.
2800 (FILETYPE_INDICATORS): New initializer list.
2801 (print_dir): Add case for DT_WHT.
2802 (gobble_file): If stat fails, don't discard information from
2803 readdir; instead, preserve it so it can be printed.
2804 (print_long_format): Fall back on readdir result if stat info
2805 is not available. Use "?" to denote each unknown mode char,
2806 instead of an overall "?", since we now know some of the mode
2808 (print_type_indicator): Now that MODE isn't necessarily
2809 useful, guard all uses.
2810 Now that two blocks in the type-checking tree can set "type = C_FILE",
2811 move the suffix-handling code out and down.
2813 2006-07-26 Jim Meyering <jim@meyering.net>
2815 Prepare for the above change.
2816 * src/ls.c [struct fileinfo] (stat_ok): Rename from stat_failed,
2817 and adjust uses. From a patch by Paul Eggert.
2819 2006-07-26 Jim Meyering <jim@meyering.net>
2821 * src/ls.c: Correct indentation/formatting in a few places.
2823 2006-07-25 Paul Eggert <eggert@cs.ucla.edu>
2825 * tests/cp/fail-perm: Use "chmod 0500" rather than "chmod 500".
2826 Problem report and fix from Bob Proulx.
2827 * NEWS: Clarify the "chmod 0500" news, and correct the vague
2828 statements about compatibility with BSD.
2830 2006-07-25 Jim Meyering <jim@meyering.net>
2832 * src/ls.c (gobble_file): When handling a stat-failed entry,
2833 print the entry name not the absolute_name -- to be consistent
2834 with the usual case.
2835 * tests/ls/stat-failed: Update accordingly.
2837 * src/ls.c: Add parens around the new uses of ?: ternary operator.
2839 * src/dircolors.hin: Mention that ORPHAN refers not just to dangling
2842 Get --dired offsets right when handling stat-failed entries.
2843 * src/ls.c (print_long_format): Be careful to increment P by the
2844 appropriate amount, even when inode_number_width and nlink_width
2846 * tests/ls/stat-failed: Test for the above.
2848 * src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the
2849 have_acl member. That would happen for a directory with both a
2850 non-stat'able entry and one with an ACL.
2852 * src/ls.c (gobble_file): Make it so failure to stat a
2853 non-command-line file provokes an exit status of 1, not 0.
2854 Say "cannot access" rather than "cannot stat".
2855 * tests/ls/stat-failed: New file/test, for the above.
2856 * tests/ls/Makefile.am (TESTS): Add stat-failed.
2857 * tests/ls-2/tests (no-a-isdir-b): Update to reflect addition
2858 of "cannot access " to diagnostic.
2860 * src/ls.c: Declare stat_failed to be "bool", not "int" everywhere.
2862 * src/ls.c [enum filetype] (command_line): Remove member. Not needed.
2863 Replace all occurrences of "type == command_line" with the
2864 equivalent, "command_line_arg".
2866 * src/ls.c: Apply the stat-failed parts of Red Hat's
2867 coreutils-selinux.patch. From Ulrich Drepper.
2868 This makes it so files not mentioned on the command line (e.g.,
2869 names read from a directory that *is* mentioned on the command
2870 line) for which stat fails are still listed. With --color,
2871 such files are colored just like ORPHANs (aka dangling symlinks).
2873 * src/df.c (n_valid_args): Declare global to be static.
2875 2006-07-24 Jim Meyering <jim@meyering.net>
2877 * tests/ls/stat-dtype: Skip this test on reiserfs, since that file
2878 system lacks d_type support.
2880 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
2882 * man/chmod.x: Update to reflect recent changes to coreutils.texi.
2884 2006-07-21 Jim Meyering <jim@meyering.net>
2886 * src/su.c (usage): Correct typo in --help output: s/commmand/command/
2887 Reported by Tim Waugh.
2888 Also remove the comment duplicating much of --help output.
2890 * src/ls.c (FILE_TYPE_INDICATOR_OPTION): Reposition this new
2891 name so the list remains alphabetized.
2893 Fix another bug: ls --indicator-style=file-type would call
2894 stat for a symlink, even though it wasn't always needed.
2895 In some cases, that unnecessary stat would cause ls to fail.
2896 * src/ls.c (gobble_file): Don't treat symlinks specially (in
2897 requiring a stat syscall). Remove the offending exclusion.
2899 * NEWS: Mention the fix.
2901 * tests/ls/stat-dtype: New file/test, for the above fix.
2902 Also exercises the new df feature, below.
2904 * src/df.c (main): Fail and don't print the headers if no
2905 file system is processed. This makes it easy to test whether
2906 a specified directory is on a file system of a given type or types.
2907 Otherwise, applications would have had to parse df's output.
2908 E.g., is "." either ext3 or reiserfs: df -t ext3 -t reiserfs .
2910 Fix a bug: ls --file-type worked like --indicator-style=slash,
2911 rather than like --indicator-style=file-type.
2912 * src/ls.c (FILE_TYPE_INDICATOR_OPTION): New enum member.
2913 (long_options): Map "file-type" to FILE_TYPE_INDICATOR_OPTION,
2915 (decode_switches): Handle new case: FILE_TYPE_INDICATOR_OPTION.
2916 * NEWS: Mention the fix.
2917 * tests/ls-2/tests (file-type): New test, for the above fix.
2919 2006-07-19 Jim Meyering <jim@meyering.net>
2921 * src/ls.c (print_dir): Give a better diagnostic for failed opendir.
2923 * Makefile.am (EXTRA_DIST): Add build-aux/vc-list-files.
2925 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
2927 * NEWS: chmod, install, and mkdir now leave setgid and setuid bits
2928 of directories alone unless you specify them explicitly.
2929 install and mkdir now implement X correctly.
2930 install now creates parent directories with mode 755, without
2931 changing their owner or group.
2932 * src/chmod.c (process_file): Adjust to mode_adjust API change.
2933 * src/install.c: Include mkancesdirs.h.
2934 (announce_mkdir, make_ancestor): New functions.
2935 (DEFAULT_MODE): New macro, specifying initial value of 'mode'.
2937 (dir_mode, dir_mode_bits): New vars.
2938 (main): Set dir modes separately from nondir, so that the X
2939 op of -m works correctly.
2940 (main): Remove cwd_errno cruft, since make_dir_parents no longer
2941 affects cwd. Adjust to new make_dir_parents API.
2942 (install_file_in_file_parents): 2nd arg is now char *, not char
2943 const *. Use mkancesdirs instead of rolling our own code.
2944 (change_attributes): Don't worry about AFS, since that kludge
2945 should not be needed any more.
2946 * src/mkdir.c (struct mkdir_options): New struct.
2947 (announce_mkdir, make_ancestor): New functions.
2948 (main): Use them. Adjust to mode_adjust API change. Stick with
2949 umask 0. Use make_dir_parents for all the work.
2950 * src/mkfifo.c (main): Adjust to new mode_adjust API.
2951 * src/mknod.c (main): Likewise.
2952 * tests/chmod/setgid: Do the setgid test instead of bailing.
2953 * tests/mkdir/p-3: Remove re_protect case that no longer applies.
2954 GNU chmod now behaves like other versions of chmod.
2955 * tests/mkdir/perm: Add a test for the X bug.
2957 2006-07-14 Paul Eggert <eggert@cs.ucla.edu>
2959 * src/base64.c (do_decode): Output to parameter OUT, not to stdout.
2960 This doesn't fix any bugs, since OUT always equals stdout, but it
2961 makes the code easier to understand.
2963 2006-07-14 Jim Meyering <jim@meyering.net>
2965 * Makefile.maint (CVS_LIST): Use new file, build-aux/vc-list-files,
2966 rather than open-coding it. Now supports mercurial, too.
2967 * .hgignore: New file.
2968 * Makefile.am (EXTRA_DIST): Add .hgignore, which ignores nearly
2969 all generated files, including ones like configure and po/*.po
2970 that are currently version-controlled in cvs.
2972 * Makefile.am (EXTRA_DIST): Add a few more .??* files.
2973 They've been in CVS, just haven't been distributed before this.
2974 Distribute ChangeLog-2005, too.
2975 (MAINTAINERCLEANFILES): Add THANKS-to-translators.
2977 2006-07-11 Paul Eggert <eggert@cs.ucla.edu>
2979 * src/system.h: Assume <dirent.h> exists, since gnulib assumes
2982 2006-07-09 Jim Meyering <jim@meyering.net>
2984 * tests/mv/dir2dir: Adjust so failing with ENOTEMPTY is ok, too.
2985 That happens with Linux/tmpfs.
2986 * tests/mv/Makefile.am (TESTS): Add dir2dir.
2988 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
2990 Adjust to recent updates from gnulib.
2991 * src/dd.c (apply_translations): Use toupper rather than
2992 islower followed by toupper; it's simpler and typically
2993 faster now that we assume at least C89 semantics. Similarly
2995 * src/sort.c (inittables): Likewise.
2996 * src/expand.c (expand): Don't assume that isprint etc. return
2997 booleans (needed for pre-C99 hosts).
2998 * src/fmt.c (check_punctuation): Likewise.
2999 * src/ptx.c (initialize_regex, fix_output_parameters): Likewise.
3000 * src/tr.c (is_char_class_member): Likewise.
3001 * src/unexpand.c (unexpand): Likewise.
3002 * src/join.c (is_blank): Remove; no longer needed. All uses
3003 replaced by isblank (to_uchar (...)).
3004 * src/pinky.c (create_fullname): Don't assume char is unsigned.
3005 * src/printf.c (print_esc): Likewise.
3006 * src/ptx.c (SKIP_NON_WHITE, SKIP_WHITE, SKIP_WHITE_BACKWARDS):
3007 (copy_unescaped_string): Likewise.
3008 * src/stat.c (print_it): Likewise.
3009 * src/system.h (_D_EXACT_NAMELEN): Renamed from NLENGTH, for
3010 convenience on GNU systems. All uses changed. Don't bother
3011 looking for any dirent.h substitute other than ndir.h.
3012 (D_INO): Remove unnecessary parentheses.
3013 (IN_CTYPE_DOMAIN, ISGRAPH, ISPRINT, ISALNUM, ISALPHA):
3014 (ISCNTRL, ISLOWER, ISPUNCT, ISSPACE, ISUPPER, ISXDIGIT):
3015 (ISDIGIT_LOCALE, TOLOWER, TOUPPER): Remove. All uses changed
3016 to ctype.h equivalents.
3017 (isblank): Renamed from ISBLANK. Check for HAVE_DECL_ISBLANK too.
3020 2006-07-08 Jim Meyering <jim@meyering.net>
3022 * tests/mv/dir2dir: New file, test for 2006-07-05 fix in copy.c.
3024 * Makefile.maint (sc_the_the): New rule.
3026 * src/dd.c (skip): Remove one of two adjacent "the"s in a comment.
3027 * tests/Coreutils.pm (run_tests): Remove one of two adjacent "then"s
3030 2006-07-07 Jim Meyering <jim@meyering.net>
3032 * NEWS: Mention that mv can now remove an empty destination directory,
3033 and give an example. Prompted by a report from Florent Bayle.
3035 2006-07-05 Jim Meyering <jim@meyering.net>
3037 * src/ls.c (usage): Correct the description of -G: it is useful
3038 only in a long listing. Reported by Martin Pool in
3039 <https://launchpad.net/distros/ubuntu/+source/coreutils/+bug/51653>.
3041 * man/chmod.x: Correct the description of the sticky bit. Reported
3042 by Chris Moore via Ian Jackson in <http://bugs.debian.org/376745>.
3044 * src/copy.c (copy_internal): Don't work around old NFS clients like
3045 SunOS-4.1.4 and Irix 5.3 that set errno to values like EIO and
3046 ENOTEMPTY upon failed rename. Otherwise, we risk misinterpreting
3047 a banal failure as a recursive move-into-self failure.
3048 Reported by Florent Bayle in <http://bugs.debian.org/376749>.
3050 * src/c99-to-c89.diff: Regenerate, to remove fuzz.
3052 2006-07-03 Jim Meyering <jim@meyering.net>
3054 Plug another unusual leak.
3055 (AD_mark_helper): Free malloc'd filename if hash_insert says
3056 that string is already in the hash table.
3058 The dev/inode of the topmost directory in each hierarchy were not
3060 * src/remove.c (remove_cwd_entries): Don't call cycle_check here.
3061 (AD_push): Call it from here instead.
3063 Fix two small leaks.
3064 * src/remove.c (AD_stack_clear): New function.
3066 (AD_pop_and_chdir): Free *prev_dir just before longjmp.
3068 * tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT):
3069 Add $VG_PATH_PREFIX as a prefix to $PATH
3071 * tests/envvar-check (vars): Add CDPATH and POSIXLY_CORRECT.
3072 * tests/Makefile.am (evar-check): Remove rule.
3073 (EXTRA_DIST): Remove .env-warn.
3074 * tests/.env-warn: Remove file. No longer used.
3075 Suggestion from Eric Blake.
3077 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
3079 * src/system.h: Include <stdint.h> unconditionally, since we
3080 now assume the stdint module.
3082 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
3084 * NEWS: With no operand, 'tail -f' now silently ignores the '-f'
3085 only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
3086 * src/tail.c (main): Implement this.
3087 * tests/tail/Test.pm (f-pipe-1): Renamed from f-1.
3088 (test_vector): Set POSIXLY_CORRECT for the f-pipe-* tests.
3090 2006-07-01 Jim Meyering <jim@meyering.net>
3092 * src/ln.c (do_link): Use new, shorter URL, for ag-review link.
3094 * .x-sc_require_config_h: Add ^lib/xstrtold\.c$, so make distcheck
3097 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
3099 * NEWS: seq now uses long double internally rather than double.
3100 It now defaults to a minimal fixed point format if possible.
3101 It lets you use %a, %A, %E, %F, %G.
3102 * src/Makefile.am (seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB).
3103 * src/seq.c: Don't include <math.h> or <xstrtol.h>; no longer needed.
3104 (isfinite) [!defined isfinite]: New macro.
3105 (separator, terminator): Now points to const.
3106 (first, step, last): Remove.
3107 (usage): Update to match new behavior.
3108 (struct operand, operand): New type.
3109 (scan_arg): Renamed from scan_double_arg, since we no longer use double.
3111 Compute and return a value of type operand, not double.
3112 (long_double_format): Renamed from valid_format, and now returns a
3113 new format with an "L" added if needed, if the original format was
3114 valid. Allow %a, %A, %E, %F, and %G formats.
3115 (print_numbers): Take numeric values as args rather than from globals.
3116 Print long double, not double.
3117 (get_width_format): Remove.
3118 (get_default_format): New function.
3119 (main): Implement new way of calculating default format.
3120 Don't worry about locale's representation of the decimal point, since
3121 the arguments are always processed in the C locale.
3122 * tests/seq/basic (neg-2): Adjust to new default format.
3123 (eq-wid-1, eq-wid-2): Resurrect these tests, since the new
3124 implementation should do the right thing.
3126 2006-06-30 Jim Meyering <jim@meyering.net>
3128 * tests/stty/basic-1: Work around an intermittent test failure
3129 on HP-UX 11.11. Report and analysis from Bob Proulx.
3130 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7475
3132 2006-06-28 Paul Eggert <eggert@cs.ucla.edu>
3134 * NEWS: Support obsolete usages like "sort +1 -2" even when
3135 conforming to POSIX 1003.1-2001, since this is a pure extension to
3136 POSIX. Problem reported by Christian in:
3137 http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00220.html
3138 * src/sort.c (main): Implement this.
3140 * src/system.h (CLOSEDIR): Remove. All uses changed to closedir.
3141 Autoconf 2.60 says this stuff was obsolete.
3143 2006-06-28 Jim Meyering <jim@meyering.net>
3145 * src/c99-to-c89.diff: Regenerate, to remove fuzz.
3147 2006-06-28 Bob Proulx <bob@proulx.com> (tiny change)
3149 * tests/mv/i-link-no: Work around HP-UX /bin/sh tracing problem
3150 (set -x when VERBOSE=yes) when stderr is redirected before stdout
3151 causing shell tracing of the stdout redirection to be written to
3152 the stderr file. Avoid problem and test failure on HP-UX by
3153 redirecting stderr last.
3154 * tests/dd/unblock-sync: Order shell file redirections for
3155 stderr and stdout in the common style.
3156 tests/acl: Likewise.
3158 2006-06-27 Jim Meyering <jim@meyering.net>
3160 * tests/misc/cat-proc: Try to avoid any spurious numeric
3161 differences in frequently-changing /proc/cpuinfo.
3162 Reported by Nelson Beebe.
3164 2006-06-26 Jim Meyering <jim@meyering.net>
3166 Attempt rmdir (actually, unlinkat-with-AT_REMOVEDIR) upon any
3167 fd_to_subdirp failure, not just when errno == EACCES.
3168 * src/remove.c (remove_dir): Use unlinkat-with-AT_REMOVEDIR, not
3169 rmdir, here, even though rmdir may happen to be adequate.
3171 * NEWS: rm no longer fails to remove an empty, unreadable directory
3172 * src/remove.c (remove_cwd_entries): If we can't open a directory,
3173 and the failure is not being ignored, try to remove the directory
3174 with rmdir (aka unlinkat-with-AT_REMOVEDIR), in case it's empty.
3175 Problem report and test case from Paul Eggert in
3176 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7425>.
3178 * tests/rm/empty-inacc: New test, for the above.
3180 Avoid a segfault for wc --files0=- < /dev/null.
3181 * src/wc.c (compute_number_width): Return right away if nfiles == 0.
3183 2006-06-25 Jim Meyering <jim@meyering.net>
3185 * NEWS: wc accepts a new option --files0-from=FILE, where FILE
3186 contains a list of NUL-separated file names.
3188 * src/wc.c: Include "readtokens.h".
3189 (usage): Describe the new option, and adjust the `Usage':
3190 with this option, no FILE may be specified on the command line.
3191 (main): Handle the new option.
3192 * tests/misc/wc-files0: New tests, for the above.
3193 * tests/misc/wc-files0-from: Likewise.
3194 * tests/misc/Makefile.am (TESTS): Add wc-files0.
3196 2006-06-24 Jim Meyering <jim@meyering.net>
3198 * src/md5sum.c (DIGEST_BUFFER): Remove now-unused definitions.
3200 2006-06-22 Jim Meyering <jim@meyering.net>
3202 * src/tee.c (tee_files): Rename from tee, to avoid conflict with
3203 the function in glibc's <fcntl.h>. Reported by Andreas Schwab.
3205 2006-06-19 Jim Meyering <jim@meyering.net>
3207 * Makefile.cfg (local-checks-to-skip): Add changelog-check,
3208 so this check is not run as part of "make distcheck".
3210 2006-06-18 Bob Proulx <bob@proulx.com> (tiny change)
3212 * tests/misc/pwd-long: Fix typo (s/neq/ne/) in previous change.
3214 2006-06-18 Jim Meyering <jim@meyering.net>
3216 * tests/misc/pwd-long: Make error output a little clearer.
3218 2006-06-17 Jim Meyering <jim@meyering.net>
3220 * tests/rm/inaccessible: Skip this test on systems without openat
3221 support. Reported by Bob Proulx.
3223 2006-06-15 Bob Proulx <bob@proulx.com> (tiny change)
3225 * tests/misc/mknod: Improve permission checks to handle
3226 running mkdir test in set-gid directories.
3228 2006-06-14 Jim Meyering <jim@meyering.net>
3230 * tests/du/basic: Revamp not to hard-code file system block sizes.
3232 2006-06-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3234 * tests/du/Makefile.am (TESTS_ENVIRONMENT): Pass $(PERL), for
3237 2006-06-11 Jim Meyering <jim@meyering.net>
3239 * .gitignore: New file.
3240 * Makefile.am (EXTRA_DIST): Add .gitignore.
3242 Setting TIME_STYLE=long-iso in the environment would make the
3243 cp/same-file test fail.
3244 * tests/envvar-check (vars): Add TIME_STYLE to the list.
3245 * tests/cp/same-file: Revert last change.
3246 Source the envvar-check script, to ensure that TIME_STYLE
3247 settings don't affect these tests.
3249 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
3251 * tests/cp/same-file: Execute 'ls' in the C locale, so that it
3252 uses POSIX time stamp formats. Problem reported by John Nixon in
3253 <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00062.html>.
3255 2006-06-10 Jim Meyering <jim@meyering.net>
3257 * NEWS: Mention the AIX-strndup-bug vs. dircolors workaround.
3259 Require a "Version N.M" line at the top of the ChangeLog
3260 file only when making the actual release, not when running
3262 * Makefile.maint (maintainer-distcheck): Don't depend on
3264 (alpha beta major): Depend on it here, instead.
3266 2006-06-08 Jim Meyering <jim@meyering.net>
3268 Ensure that cat works with any of the options, -A -v -e -E -T,
3269 when applied to files in /proc and /sys, even when the FIONREAD
3270 ioctl produces nonsensical results. Before this change, cat would
3271 produce no output (or truncated output), for some linux kernels.
3273 * src/cat.c (write_pending): New function, factored out of cat.
3274 (cat): Also interpret a negative ioctl/FIONREAD count as indicating
3275 that there are bytes to read. Some versions of linux-2.6.16 do that.
3276 Write any pending output before returning.
3277 Reported by Dan Jacobson in <http://bugs.debian.org/370583>.
3278 * NEWS: Mention this bug fix.
3279 * tests/misc/cat-proc: New file. Test for the above.
3280 * tests/misc/Makefile.am (TESTS): Add cat-proc.
3282 2006-06-07 Paul Eggert <eggert@cs.ucla.edu>
3284 * src/expr.c (eval4): Detect overflow properly when multiplying
3287 2006-06-06 Paul Eggert <eggert@cs.ucla.edu>
3289 * NEWS: The 'expr' command now detects and reports integer overflow.
3290 (It would be better to use extended precision instead, but that
3291 would be more work.)
3292 * src/expr.c (integer_overflow): New function.
3293 (eval4, eval3): Check for integer overflow.
3295 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
3297 Fix problems when building with Solaris/SVR4/etc. make, which uses a
3298 different and somewhat bogus implementation of VPATH. In the
3299 directory tests/misc, rename tests whose names might appear in the
3300 Automake-generated rules. For example, we can't use a test named
3301 'test', since Automake generates a rule that contains the text
3302 "if test -f ./$$tst; ...", and this might expand to something like
3303 "if ../../../coreutils-6.0/tests/misc/test -f ./$$test; ...",
3304 which executes the 'test' script rather than the 'test' command.
3305 * tests/misc/false-status: Renamed from tests/misc/false.
3306 * tests/misc/pwd-long: Renamed from tests/misc/pwd.
3307 * tests/misc/sort-merge: Renamed from tests/misc/sort.
3308 ($prog): Set to 'sort' rather than to $PROG.
3309 * tests/misc/test-diag: Renamed from tests/misc/test.
3310 * tests/misc/Makefile.am (PROG): Take the basename of $$tst,
3311 in case Solaris make has prepended the directory.
3312 (TESTS): Adjust to above renamings.
3313 * tests/misc/expand: Don't assign to PROG; no longer needed
3314 now that Makefile.am sets PROG to the basename.
3315 * tests/misc/fold: Likewise.
3317 2006-06-03 Jim Meyering <jim@meyering.net>
3319 Make `cp --link --no-dereference' work also on systems where the
3320 link system call cannot create a hard link to a symbolic link.
3321 * src/copy.c (copy_internal) [LINK_FOLLOWS_SYMLINKS]: Don't use
3322 the link syscall on a symlink when it would do the wrong thing.
3323 Based on the patch by Aurelien Jarno: <http://bugs.debian.org/329451>
3324 * tests/cp/link-no-deref: New file/test for the above.
3325 * tests/cp/Makefile.am (TESTS): Add link-no-deref.
3326 * NEWS: Mention the change (doesn't affect Linux).
3328 2006-06-01 Paul Eggert <eggert@cs.ucla.edu>
3330 Fix some porting problems in the test cases reported by
3331 Ralf Wildenhues for HP-UX 11.23 in:
3332 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00238.html
3333 * tests/help-version: Don't assume that \< \> works in sed.
3334 * tests/misc/close-stdout: Don't assume that >&- works.
3335 Add a /dev/full test.
3336 * tests/touch/no-create-missing: Don't assume that >&- works.
3338 2006-05-30 Jim Meyering <jim@meyering.net>
3340 * src/ls.c (usage): Add `v' to the list of sorting-related options.
3343 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3345 * tests/cp/fail-perm: source lang-default.
3346 * tests/rm/inaccessible: Likewise.
3348 2006-05-28 Jim Meyering <jim@meyering.net>
3350 * tests/rm/inaccessible: AIX 4.3.3 gives a different diagnostic.
3351 Recognize it, too. Reported by Ralf Wildenhues, in
3352 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html
3354 2006-05-27 Jim Meyering <jim@meyering.net>
3356 * src/chgrp.c: Support new options: --preserve-root and
3357 --no-preserve-root. Somehow this program was skipped when those
3358 options were added to chown, chmod, and rm. Reported by
3359 vaqflabuopac@spammotel.com in <http://bugs.debian.org/365656>.
3360 * NEWS: Mention this.
3362 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
3364 * NEWS: Remove mention of --seed. We'll replace it with something
3365 better, and don't want to indicate that it is supported.
3366 * src/sort.c (usage): Likewise.
3368 2006-05-20 Jim Meyering <jim@meyering.net>
3370 * src/chmod.c (main): Use FTS_PHYSICAL here, too.
3372 * src/du.c (main): Rename local, s/symlink_deref_bit/symlink_deref_bits/
3373 and arrange for -D to set fts' FTS_PHYSICAL bit as well as
3374 FTS_COMFOLLOW. Spotted by Justin Pryzby.
3376 * gnupload: Merge changes from automake, retaining the ""--to...
3377 kludge to placate overzealous `make distcheck' check.
3379 2006-05-19 Jim Meyering <jim@meyering.net>
3381 * src/du.c (main): Don't let -D, -L, or -P turn off the internal
3382 FTS_TIGHT_CYCLE_CHECK directory traversal option.
3383 Reported by Justin Pryzby in http://bugs.debian.org/367691
3385 2006-05-15 Jim Meyering <jim@meyering.net>
3387 * src/cp.c (usage): Correct description of -a: s/-dpR/-dpPR/.
3388 From Tomas Pospisek.
3390 2006-05-13 Jim Meyering <jim@meyering.net>
3392 * tests/mv/no-target-dir: Test two more cases.
3394 2006-05-11 Jim Meyering <jim@meyering.net>
3396 mv -T DIR EMPTY_DIR no longer fails unconditionally
3397 * src/copy.c (copy_internal): Don't manually prohibit a move where
3398 the destination is an existing directory. Sometimes doing that is
3399 valid. Let the rename system call enforce the rules. That is
3400 allowed only when the source is a directory and the destination
3401 directory (to be replaced) is empty. Reported by Eric Blake.
3402 * tests/mv/no-target-dir: New file/test for this.
3403 * tests/mv/Makefile.am (TESTS): Add no-target-dir.
3404 * NEWS: Mention this.
3406 * tests/mv/atomic: New file/test for yesterday's fix.
3407 * tests/mv/Makefile.am (TESTS): Add atomic.
3409 * tests/du/long-sloop: Avoid harmless `ambiguous redirect' diagnostic.
3411 2006-05-10 Jim Meyering <jim@meyering.net>
3413 * src/copy.c (copy_internal): Don't explicitly unlink the destination
3414 when moving a symlink into the place of an existing non-directory.
3415 Reported by Joshua Hudson.
3416 * NEWS: mention this.
3418 2006-05-07 Jim Meyering <jim@meyering.net>
3420 * Makefile.maint (patch-check): Fail if patch generates any output,
3421 even merely for changed offsets.
3423 * src/c99-to-c89.diff: Adjust to reflect new offsets.
3425 * NEWS: Mention changes affecting df, pwd, shred.
3427 2006-05-06 Jim Meyering <jim@meyering.net>
3429 * tests/ls/stat-vs-dirent: New test, to detect the bogus file
3430 system condition where dirent.d_ino != stat.st_ino.
3431 * tests/ls/Makefile.am (TESTS): Add stat-vs-dirent.
3433 2006-05-06 Eric Blake <ebb9@byu.net>
3435 * tests/ls/inode: Expand to test inode from readdir case.
3436 * tests/ls/follow-slink: Expand to test broken links encountered
3437 implicitly, favoring Solaris 9 and OpenBSD 3.4 behavior.
3439 2006-05-06 Eric Blake <ebb9@byu.net>
3441 * tests/mv/leak-fd: Work even on case-insensitive file system.
3443 2006-05-04 Jim Meyering <jim@meyering.net>
3445 * NEWS: Mention the 2006-03-19 pwd-related change that makes
3446 lib/getcwd.c work around inconsistent file system dirent.d_ino data.
3448 2006-05-03 Jim Meyering <jim@meyering.net>
3450 * src/ls.c (DEFINE_SORT_FUNCTIONS, LIST_SORTFUNCTION_VARIANTS):
3451 Use better macro parameter names: s/basename/key_name/,
3452 s/basefunc/key_cmp_func. Fix typo in comment.
3454 2006-04-29 Eric Blake <ebb9@byu.net>
3456 * src/ls.c (main): On systems with d_type, directories_first only
3457 implies format_needs_type, not format_needs_stat.
3459 2006-05-03 Jim Meyering <jim@meyering.net>
3461 * src/ls.c (xstrcoll_df_version, rev_xstrcoll_df_version): Add space
3462 after comma in arg list, from Eric Blake.
3464 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
3466 * tests/misc/date (relative-3): New test, derived from a bug
3467 report by John Thomas McDole.
3469 2006-04-23 Francesco Montorsi <fr_m@hotmail.com>
3471 New option for ls: --group-directories-first.
3472 It makes ls list directories before files.
3473 * NEWS [New features]: Mention it.
3474 * src/ls.c (sort_type): Rearrange to use as an array index when
3475 choosing sort function; added new sort_numtypes member for
3477 (time_type): Add new time_numtypes member for compile-time check.
3478 (directories_first): New global variable.
3479 (GROUP_DIRECTORIES_FIRST_OPTION): New enum.
3480 (long_options): Add --directories-first.
3481 (main): Support new option.
3482 (is_directory): New function.
3483 (extract_dirs_from_files): Use it.
3484 (DIRFIRST_CHECK, DEFINE_SORT_FUNCTIONS)
3485 (LIST_SORTFUNCTION_VARIANTS): New macros.
3486 (sort_functions): New global variable.
3487 (sort_files): Use it.
3488 (usage): Document new option.
3490 2006-04-18 Paul Eggert <eggert@cs.ucla.edu>
3492 * src/shred.c (fillrand): The assertion was way too weak, due to
3493 what must be a typo. Strengthen it to its intended value.
3494 (dopass): Don't use alloca; it's not worth the aggravation here,
3495 since it's used only to get a page-aligned buffer, and page
3496 alignment doesn't buy us much here. I'm suspicious that alloca
3497 causes problems on some hosts, due to a recent bug report by Adam
3498 Waltman: http://bugs.gentoo.org/130246.
3500 2006-04-18 Jim Meyering <jim@meyering.net>
3502 * tests/misc/tty-eof: Add new programs, base64, sha224sum, sha256sum,
3503 sha384sum, sha512sum.
3505 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
3507 * src/chmod.c (describe_change): Adjust to filemode changes.
3508 * src/ls.c (HAVE_ST_DM_MODE): Remove; moved to ../lib/filemode.c.
3509 (print_long_format): Use (new) filemodestring rather than
3510 (old) mode_string, so that we get more file types right, at least
3511 in theory. Adjust to filemode changes.
3512 * src/stat.c (human_access): Likewise.
3514 2006-04-18 Jim Meyering <jim@meyering.net>
3516 * src/ptx.c (main) [DEFAULT_IGNORE_FILE]: Remove code to use a default
3517 ignore file. This has never been enabled. Reported by Eric Blake.
3519 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
3521 * src/ln.c (linkfunc): Remove. This method ran into a compiler/linker
3522 bug in Interix. Just call symlink or link directly. All uses changed.
3523 * src/setuidgid.c (main) [! HAVE_SETGROUPS]: Don't call setgroups.
3524 * src/stat.c (USE_STATVFS): New macro.
3525 Include <sys/statvfs.h> and use statvfs only if USE_STATVFS.
3526 (NAMEMAX_FORMAT): define a bit more clearly, now that the
3527 statvfs-using code is a bit more regular.
3528 * src/system.h (sync) [!HAVE_SYNC]: New macro.
3530 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
3532 * NEWS: csplit, nl, expr now conform to POSIX better, and are
3533 more-compatible with traditional Unix, with respect to regular
3535 * src/csplit.c (extract_regexp): Set re_syntax_options to a
3536 value that is compatible with what POSIX requires.
3537 * src/nl.c (build_type_arg): Likewise.
3538 * src/expr.c (docolon): Likewise. Also, don't let anchors match
3539 newline; this fixes an incompatibility with tradition and with POSIX.
3540 Don't warn about leading ^. POSIX says it is unspecified whether
3541 ^ is a special character, which means that implementations can
3542 either treat it as special or not, but either way a warning is not
3543 allowed (unless the regexp is otherwise invalid). Instead, anchor
3544 the expression but treat ^ as an anchor; this is the traditional
3545 behavior (e.g., Solaris 10).
3546 (eval4, eval3, eval2): Treat non-numeric args, division by zero,
3547 and the like as invalid expressions (exit status 2), not as
3548 failure of 'expr' (exit status 3). This is more consistent with
3549 how Solaris behaves.
3550 * tests/expr/basic (fail-a): Adjust exit status to match new expr
3551 behavior, for status 2 versus 3.
3553 (bre1, bre2, bre3, bre4, bre5, bre6, bre7, bre8, bre9, bre10):
3554 (bre11, bre12, bre13, bre14, bre15, bre16, bre17, bre18, bre19, bre20):
3555 (bre21, bre22, bre23, bre24, bre25, bre26, bre27, bre28, bre29, bre30):
3556 (bre31, bre32, bre33, bre34, bre35, bre36, bre37, bre38, bre39, bre40):
3557 (bre41, bre42, bre43, bre44, bre45, bre46, bre47, bre48, bre49, bre50):
3558 (bre51, bre52, bre53, bre54, bre55, bre56, bre57, bre58, bre59, bre60):
3559 (bre61, bre62): New tests.
3560 * tests/misc/csplit: Use \{...\} in test RE, to test that we're
3561 conforming to POSIX.
3564 * tests/du/long-from-unreachable: Solaris 8 sh doesn't understand
3565 "if !". Do not assume that 'sed' can handle long, newline-free input.
3566 * tests/du/long-sloop: Likewise. Evaluate expr once, not $n times.
3568 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
3570 Adjust to new regex.h API (with new fastmap type), and clean
3571 up the regex storage allocation a bit.
3573 * src/csplit.c (struct control): Put re_compiled member at the
3574 end, since it's large. Change regexpr member from char * to bool;
3575 all uses changed. Add new member fastmap.
3576 (extract_regexp): regexp arg is now char const *, not char *.
3577 Don't bother duplicating the regular expression; it's not needed.
3578 Set fastmap from new fastmap member. Don't bother allocating
3579 a buffer, as the regexp code does a better job than we do.
3580 * src/expr.c (docolon): Allocate and use a fastmap.
3581 Don't bother allocating a buffer.
3582 * src/nl.c (body_fastmap, header_fastmap, footer_fastmap):
3584 (build_type_arg): New fastmap arg. All uses changed.
3585 Don't bother allocating a buffer, but set a fastmap.
3586 * src/ptx.c (context_regex_string, word_regex_string): Remove.
3587 (context_regex, word_regex): New vars, replacing the above.
3589 (struct regex_data): New type.
3590 (compile_regex): Renamed from alloc_and_compile_regex, since
3591 we no longer allocate storage. Arg is now a struct regex_data *,
3592 not a const char *. All uses changed. Don't allocate the fastmap;
3593 instead, take it from the caller. Don't convert size_t to int,
3594 to avoid arithmetic overflow problems. Don't bother freeing
3595 storage afterwards; it's not worth the aggravation.
3596 * src/tac.c (compiled_separator_fastmap): New ver.
3597 (main): Use it. Don't bother allocating a buffer.
3599 2006-03-30 Jim Meyering <jim@meyering.net>
3601 * src/dd.c (iwrite): Remove assignment without effect.
3602 Reported by Felix Rauch Valenti.
3604 2006-03-22 Eric Blake <ebb9@byu.net>
3606 * src/ptx.c (usage): Remove mention of --copyright/-C.
3607 (main): Alias --copyright to --version plus a deprecation warning.
3608 * NEWS: Mention this.
3610 2006-03-27 Jim Meyering <jim@meyering.net>
3612 * src/Makefile.am (uptime_LDADD): Add $(POW_LIB), for uptime's
3613 use of strtod. Tiny patch from Nickolai Zeldovich.
3615 2006-03-11 Eric Blake <ebb9@byu.net>
3617 * tests/misc/dirname: New file.
3618 * tests/basename/Makefile.am: Delete.
3619 * tests/basename/basic: Move to...
3620 * tests/misc/basename: ... this new file. Add some tests,
3621 including fixed behavior for //.
3622 * tests/misc/Makefile.am (TESTS): Sort. Add basename, dirname.
3623 * tests/Makefile.am (SUBDIRS): Remove basename.
3624 * configure.ac (AC_CONFIG_FILES): Remove tests/basename.
3626 Improvements to dirname/basename handling on platforms like
3627 cygwin with distinct // and with drive letters.
3628 * NEWS: Document new behavior.
3629 * src/basename.c (main): Don't strip suffix from file system
3631 * src/cp.c (target_directory_operand): Use new last_component.
3632 (ASSIGN_BASENAME_STRDUPA): Likewise. Reduce time spent
3633 traversing the string.
3634 * src/dircolors.c (guess_shell_syntax): Use new last_component.
3635 * src/install.c (target_directory_operand, install_file_in_dir):
3637 * src/ln.c (target_directory_operand, main): Likewise.
3638 * src/ls.c (basename_is_dot_or_dotdot): Likewise.
3639 * src/mv.c (target_directory_operand, movefile): Likewise.
3640 * src/remove.c (rm_1): Likewise.
3641 * src/shred.c (wipename): Likewise.
3642 * src/split.c (next_file_name): Likewise.
3643 * src/su.c (log_su, run_shell): Likewise.
3645 2006-03-23 Paul Eggert <eggert@cs.ucla.edu>
3647 * NEWS: nohup diagnostics are now more precise, and nohup now
3648 redirects stderr to nohup.out if stdout is closed and stderr is a tty.
3649 * src/nohup.c (main): Implement this.
3650 * tests/misc/nohup: Test the new behavior.
3652 2006-03-12 Jim Meyering <jim@meyering.net>
3654 * src/copy.c (set_author): Rename function, from preserve_author.
3656 * src/remove.c (AD_pop_and_chdir): Use new macro,
3657 CYCLE_CHECK_REFLECT_CHDIR_UP, rather than open-coding it.
3659 * src/system.h (SAME_INODE): Remove definition.
3660 Include "same-inode.h", instead.
3662 2006-03-11 Eric Blake <ebb9@byu.net>
3664 * src/pwd.c (robust_getcwd): Prepend only one slash, not two.
3666 2006-03-10 Jim Meyering <jim@meyering.net>
3668 Fix a bug whereby a user with write access to a directory being removed
3669 could cause the removal of that directory to fail with an erroneous
3670 diagnostic about a directory cycle. Reported by Vineet Chadha.
3672 * NEWS: Mention this.
3673 * src/remove.c (AD_pop_and_chdir): If the directory we're about to
3674 leave (and try to rmdir) is the one whose dev_ino is being used to
3675 detect a cycle, reset cycle_check_state.dev_ino to that of the parent.
3677 2006-03-08 Paul Eggert <eggert@cs.ucla.edu>
3679 * NEWS: Document dd's new 'directory' and 'nolinks' flags.
3680 * src/dd.c (set_fd_flags): Handle file-creation flags on file
3681 descriptors, rather than ignoring them.
3682 * tests/dd/misc: Add test cases for append, nofollow, directory,
3683 and nolinks flags. Simplify redirection to /dev/null in some cases.
3685 * tests/dd/misc: iflags->iflag. This fixes a typo that meant the
3686 noatime test never tested anything.
3688 2006-03-05 Paul Eggert <eggert@cs.ucla.edu>
3690 * src/dd.c (flags, usage): New flags directory, nolinks.
3691 * src/system.h (O_NOLINKS): Define to 0 if not already defined.
3693 * src/ls.c (usage): Mention that -f disables --color.
3694 Problem reported by Niels Möller.
3696 2006-03-03 Justin Pryzby <pryzbyj@justinpryzby.com>
3698 * man/*.x: Add references to syscalls from utilities of the same name.
3700 2006-03-05 Jim Meyering <jim@meyering.net>
3702 * tests/help-version: Set SHELL, if not already set, in order to
3703 avoid failure when `make check' is run through debuild; dircolors
3704 would fail due to lack of $SHELL. Reported by Sven Joachim.
3706 Make `base64 --wrap=N' work for N=0, and for N larger than SIZE_MAX.
3707 * src/base64.c (wrap_write, do_encode, main): Change type of
3708 parameters and locals, wrap_column, form size_t to uintmax_t.
3709 (main): Adjust to use xstrtoumax, accordingly.
3711 2006-03-03 Jim Meyering <jim@meyering.net>
3713 Don't fail when run from an environment with SHELL not a Bourne
3714 shell, e.g. `env SHELL=/bin/csh make check' would fail this test.
3715 * tests/dircolors/simple: Invoke each non-failing test with -b.
3716 Reported by Michael Stone.
3718 2006-02-27 Jim Meyering <jim@meyering.net>
3720 * tests/misc/base64: Derive --decode-using tests from the
3723 * tests/misc/base64: Factor out a long constant string.
3724 Split lines to stay within 80 columns.
3726 * tests/misc/Makefile.am (TESTS): Add base64.
3727 * tests/misc/base64: Test base64. From Simon Josefsson.
3729 * src/base64.c (do_decode): Use correct type for parameter,
3730 ignore_garbage: s/size_t/bool/.
3732 * src/base64.c: Don't include .h files already included by system.h:
3733 <string.h>, <stdlib.h>, <stdbool.h>, <limits.h>, <errno.h>.
3734 Include "system.h" before the other lib/*.h header files.
3735 Include <sys/types.h> before "system.h".
3736 (wrap_write): Remove declaration of unused local, initial_column.
3737 (wrap_write): Correct declaration syntax: s/size_t * V/size_t *V/.
3739 * README: Add base64 to the list.
3741 2006-02-17 Simon Josefsson <jas@extundo.com>
3743 New program: base64.
3744 * AUTHORS: Mention base64.
3746 * man/Makefile.am: Build base64.1.
3747 * man/base64.x: New file.
3748 * src/Makefile.am (bin_PROGRAMS): Add base64.
3749 * src/base64.c: New file.
3751 2006-02-25 Eric Blake <ebb9@byu.net>
3753 In ls, avoid calling stat for --inode (-i), when possible.
3754 * src/pwd.c (NOT_AN_INODE_NUMBER, D_INO): Move to ...
3755 * src/system.h: ... here, for use in ...
3756 * src/ls.c (main): ... here. Prefer dirent.d_ino to stat when
3758 (gobble_file): Add inode argument.
3759 (print_dir): Pass inode if available.
3760 (usage): Remove inaccuracy.
3762 2006-02-23 Jim Meyering <jim@meyering.net>
3764 * TODO: Update/correct some obsolete entries.
3766 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
3768 * doc/coreutils.texi (join invocation): Mention `sort -k 1b,1'.
3769 * src/join.c (usage): Likewise.
3770 Documentation problem reported by Philip Kensche.
3772 2006-02-20 Eric Blake <ebb9@byu.net>
3774 * man/rm.x: Update documentation to match previous patch.
3776 2006-02-18 Eric Blake <ebb9@byu.net>
3778 New option for rm: --interactive=once (-I).
3779 * NEWS: Document it, along with change to rm --interactive.
3780 * TODO: Remove entry for implementing rm -I
3781 * src/rm.c (INTERACTIVE_OPTION): New enum value.
3782 (interactive_type): New enum.
3783 (long_opts): Let interactive take an optional argument.
3784 (interactive_args, interactive_types): New option arguments.
3785 (usage): Document -I, --interactive=WHEN. Use program_name
3786 instead of a basename.
3787 (main): New -I option, new behavior to --interactive.
3788 * tests/rm/interactive-once: New tests.
3789 * tests/rm/interactive-always: Ditto.
3790 * tests/rm/Makefile.am (TESTS): Run them.
3792 2006-02-18 Jim Meyering <jim@meyering.net>
3794 * Makefile.maint (sc_two_space_separator_in_usage): Make the regular
3795 expression match more of the target lines, e.g., those that start with
3796 `-S,' (short option followed by a comma) or that include `=[...]'.
3797 Patch by Nicolas François.
3798 Fix the four offenders thus exposed:
3799 * src/join.c (usage): Use two spaces (not one) to separate the
3800 --first-only option string from its description, so help2man formats
3801 the derived man page properly.
3802 * src/pr.c (usage): Likewise.
3803 * src/uniq.c (usage): Likewise.
3804 * src/install.c (usage): Likewise.
3806 2006-02-15 Jim Meyering <jim@meyering.net>
3808 * Makefile.maint (alpha beta major): For `make major', ensure that the
3809 version string is of the form N.N[.N]*, where N is one or more digits.
3811 2006-02-14 Jim Meyering <jim@meyering.net>
3813 * INSTALL: Update from gnulib.
3815 2006-02-13 Jim Meyering <jim@meyering.net>
3817 * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
3819 2006-02-12 Jim Meyering <jim@meyering.net>
3821 * Makefile.maint (patch-check): New target.
3822 (local-checks-available): Add to the list.
3824 2006-02-11 Jim Meyering <jim@meyering.net>
3826 * src/c99-to-c89.diff: New file.
3827 * src/Makefile.am (EXTRA_DIST): Add c99-to-c89.diff.
3829 * .x-po-check: New file, with exclusions so that `make distcheck'
3831 * Makefile.am (EXTRA_DIST): Add .x-po-check.
3833 rm -r must remove an empty directory, even if it is inaccessible.
3834 * src/remove.c (close_preserve_errno): New function.
3835 (fd_to_subdirp): Don't print a diagnostic in this function.
3836 Do it from the callers instead, unless rmdir succeeds.
3837 (remove_cwd_entries, remove_dir): Adjust callers.
3838 * tests/rm/empty-inacc: New test for the above.
3839 * tests/rm/Makefile.am (TESTS): Add empty-inacc.
3840 * NEWS: Mention this bug fix.
3841 * tests/rm/rm2: Adjust two expected diagnostics, now that they're
3842 a tiny bit less precise: cannot remove `a/1': ... instead of
3843 cannot open directory `a/1': ...
3845 * Makefile.maint (syntax-check-rules): Automatically derive this
3846 list of sc_-prefixed rule names.
3848 2006-02-10 Paul Eggert <eggert@cs.ucla.edu>
3850 * Makefile.maint (CVS_LIST): Don't assume cvsu is available.
3851 (CVS_LIST_EXCEPT): New macro, to simplify exception-processing.
3852 Most uses of CVS_LIST changed to use CVS_LIST_EXCEPT.
3853 (syntax-check-rules): Bring back sc_changelong. (Hmm, why did it
3854 go away? was that an accident?)
3855 (sc_cast_of_argument_to_free, sc_cast_of_x_alloc_return_value):
3856 (sc_cast_of_alloca_return_value, sc_space_tab, sc_prohibit_atoi_atof):
3857 (sc_error_exit_success, sc_file_system, sc_no_if_have_config_h):
3858 (sc_system_h_headers, sc_sun_os_names, sc_trailing_blank):
3859 (sc_two_space_separator_in_usage, sc_unmarked_diagnostics):
3860 (sc_obsolete_symbols, sc_changelog, sc_prohibit_jm_in_m4):
3861 (sc_useless_cpp_parens, makefile-check, m4-check, po-check):
3862 (author_mark_check, makefile_path_separator_check):
3863 Output line numbers, to simplify navigation of Emacs *compilation*
3865 (sc_prohibit_atoi_atof, sc_file_system):
3866 Rework slightly so that Makefile.maint doesn't get reported as a
3867 violation of its own syntax rules.
3868 (sc_dd_max_sym_length): Use ifneq to do nothing, instead of doing
3869 it at run-time (which didn't work with Bison). Fix a makefile typo,
3870 caught by Makefile.maint itself: spaces where a tab should be.
3871 (po-check): Check lib/*.[ch] even if not in CVS; used by Bison,
3872 which copies from ../gnulib/lib/*.[ch] to lib/*.[ch].
3873 Ignore djgpp and man subdirectories, to avoid false matches with
3874 Bison and coreutils, respectively. Use sort -u to remove the
3875 resulting duplicates.
3876 * gnupload: Rework slightly to avoid bogus warning from
3877 sc_two_space_separator_in_usage.
3879 2006-02-10 Jim Meyering <jim@meyering.net>
3881 Use gzip's --rsyncable option only if it's available.
3882 * Makefile.maint (gzip_rsyncable): New variable.
3885 2006-02-08 Jim Meyering <jim@meyering.net>
3887 * Makefile.maint (local-checks-available): Define in terms of
3888 the expansion, $(syntax-check-rules), rather than the single,
3889 top-level target `syntax-check', so that it's easier to exclude
3890 individual rules (via $(local-checks-to-skip)).
3891 (tgz-md5, tgz-sha1, ...): Remove now-unused definitions.
3893 2006-02-07 Jim Meyering <jim@meyering.net>
3895 * src/system.h (!defined O_DIRECT): If O_DIRECTIO is defined (as it
3896 is on Tru64), define O_DIRECT to that. Patch From James Lemley.
3898 * tests/help-version (expected_failure_status_vdir):
3899 Redirect an expected disk-full diagnostic to /dev/null.
3901 2006-02-06 Jim Meyering <jim@meyering.net>
3903 * src/unexpand.c (usage): Use two spaces (not one) to separate the
3904 --first-only option string from its description, so help2man formats
3905 the derived man page properly.
3906 * src/rm.c (usage): Likewise for --no-preserve-root.
3907 * src/chown.c (usage): Likewise.
3908 * src/chgrp.c (usage): Likewise.
3910 Add a rule to ensure that the above doesn't happen again.
3911 * Makefile.maint (sc_two_space_separator_in_usage): New rule.
3912 (syntax-check-rules): Add it.
3913 * .x-sc_two_space_separator_in_usage: New empty file.
3914 * Makefile.am (EXTRA_DIST): Add .x-sc_two_space_separator_in_usage.
3916 2006-02-06 Jim Meyering <jim@meyering.net>
3918 * src/cp.c (usage): Use two spaces (not one) to separate each
3919 option string from its description, so help2man formats the
3920 derived man page properly.
3921 * src/mv.c (usage): Likewise.
3922 Patch from Nicolas François in http://bugs.debian.org/351601.
3924 2006-02-04 Jim Meyering <jim@meyering.net>
3926 * src/copy.c (copy_internal): cp -RL would fail when encountering
3927 the same directory more than once in the hierarchy beneath a single
3928 command-line argument. That is legitimate, e.g. when there are
3929 two or more symbolic links, each pointing to some directory that
3930 would not otherwise be copied. Reported by Christophe LYON.
3931 * tests/cp/cp-deref: New file. Test for today's fix.
3932 * tests/cp/Makefile.am (TESTS): Add cp-deref.
3933 * NEWS: Document this.
3935 2006-02-03 Jim Meyering <jim@meyering.net>
3937 * configure.ac: Require automake-1.9.6, not 1.8.3.
3939 2006-02-01 Paul Eggert <eggert@cs.ucla.edu>
3941 * src/od.c (usage): Mention that -t a ignores high order bit.
3942 Documentation problem reported by Ed Avis.
3944 2006-02-01 Jim Meyering <jim@meyering.net>
3946 * src/pwd.c (find_dir_entry): Remove unused local, `ent_sb_valid'.
3948 2006-01-30 Paul Eggert <eggert@cs.ucla.edu>
3950 * src/head.c (main): Use a better diagnostic when someone uses a
3951 trailing numeric option in an invalid way. Problem reported by
3953 * src/tail.c (parse_options): Likewise.
3955 2006-01-30 Jim Meyering <jim@meyering.net>
3957 * man/wc.x: Include `count' keyword in man page synopsis,
3958 per suggestion from http://bugs.debian.org/181585.
3960 2006-01-24 Paul Eggert <eggert@cs.ucla.edu>
3962 * src/df.c (show_dev): If the file system claims to have
3963 more available than total blocks, report the number of used
3964 blocks as being total - available (a negative number) rather
3965 than as garbage. Problem reported by Toralf Foerster.
3967 2006-01-24 Jim Meyering <jim@meyering.net>
3969 * src/tail.c (tail_forever): Don't exit-nonzero when an attempt
3970 to put a regular file in O_NONBLOCK mode fails with EPERM.
3971 That happens on Linux (up to 2.6.15) when using tail -f on a file with
3972 the append-only attribute. Reported by Dean Gaudet. For details,
3973 see http://savannah.gnu.org/bugs/?func=detailitem&item_id=15473.
3974 * NEWS: Mention this fix.
3975 * tests/tail-2/append-only: New file. Test for the above.
3976 * tests/tail-2/Makefile.am (TESTS): Add append-only.
3977 * tests/Makefile.am (check-root): Add tail-2/append-only
3979 2006-01-21 Jim Meyering <jim@meyering.net>
3981 * NEWS: Mention fts-related improvements and bug fixes.
3983 2006-01-19 Jim Meyering <jim@meyering.net>
3985 * tests/fmt/basic (pfx-1, pfx-2): New tests, to demonstrate the bug
3986 reported as http://bugs.debian.org/147577. Forwarded by Thomas Hood.
3988 2006-01-18 Jim Meyering <jim@meyering.net>
3990 * tests/du/Makefile.am (TESTS): Add long-from-unreadable.
3992 2006-01-17 Jim Meyering <jim@meyering.net>
3994 Now that fts no longer changes the current working directory, adjust
3995 its clients accordingly -- note that du.c uses fts but doesn't need
3996 any adjustment, since it doesn't operate on the actual files,
3997 but rather just uses the stat buffers provided by fts.
3999 * src/chown-core.c: Include "openat.h".
4000 Don't include "lchown.h".
4001 (restricted_chown): Accept a new parameter, CWD_FD, and use it in
4002 calling openat, lchownat, chownat, rather than open, lchown, chown.
4004 * src/chmod.c: Include "openat.h".
4005 (process_file): Use chmodat (fts->fts_cwd_fd,... in place of chmod (...
4007 * tests/du/long-from-unreadable: New test, to exercise one small
4010 2006-01-13 Jim Meyering <jim@meyering.net>
4012 * tests/Makefile.am (SUBDIRS): Add comments discouraging the
4013 addition of new directories under tests/.
4015 * tests/acl: Redirect stdin to /dev/null. Otherwise, FreeBSD 5.0's
4018 2006-01-12 Jim Meyering <jim@meyering.net>
4020 * tests/du/long-sloop: Adjust not to hard-code the expected
4021 diagnostic corresponding to ELOOP. Solaris' diagnostic differs
4022 from that of GNU libc. Reported by Paul Eggert.
4024 * tests/du/long-sloop: Create file at end of symlink chain.
4026 * tests/misc/test: New file, with a test for one of the
4027 bugs fixed by yesterday's test.c changes.
4028 * tests/misc/Makefile.am (TESTS): Add test.
4030 2006-01-11 Jim Meyering <jim@meyering.net>
4032 * tests/du/long-sloop: New file. Test for today's fts.c bug fix.
4033 That bug could make du -L, chgrp -L, or chown -L fail to diagnose
4034 a very long sequence of symbolic links (not necessarily a loop).
4035 * tests/du/Makefile.am (TESTS): Add long-sloop.
4037 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
4039 * src/test.c (test_syntax_error): Append a newline. All callers
4040 changed, except for the ones that didn't already append a newline.
4041 Bug reported by Eric Blake.
4043 2006-01-11 Jim Meyering <jim@meyering.net>
4045 * src/system.h (X2NREALLOC): Now that verify_true is no longer
4046 void, cast its result to void, to avoid gcc's warning that
4047 ``left-hand operand of comma expression has no effect''.
4048 (DECIMAL_DIGIT_ACCUMULATE, X2REALLOC): Likewise.
4050 2006-01-10 Jim Meyering <jim@meyering.net>
4052 * tests/chmod/no-x: Add a test for today's fts.c fix.
4054 2006-01-10 Jim Meyering <jim@meyering.net> (tiny change)
4056 * src/ls.c (gobble_file): Use DTTOIF only if it's defined.
4057 This is necessary for Dragonfly. Patch by Joerg Sonnenberger.
4059 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
4061 * src/system.h (X2NREALLOC, X2REALLOC, DECIMAL_DIGIT_ACCUMULATE):
4062 Use verify_true instead of verify_expr, to sync with gnulib.
4064 2006-01-08 Jim Meyering <jim@meyering.net>
4066 * src/date.c (usage): Adjust the formatting of the entries for
4067 %::z and %:::z (separate with two spaces, not one) so that help2man
4068 formats them properly. Reported by Philip Rowlands.
4070 2006-01-06 Paul Eggert <eggert@cs.ucla.edu>
4072 * configure.ac (gl_IGNORE_UNUSED_LIBRARIES): Add.
4074 2006-01-06 Jim Meyering <jim@meyering.net>
4076 * Makefile.maint (copyright-check): Use date +%Y in place of
4079 * src/remove.c (rm_1): Remove `static' attribute on local `status'.
4080 First off, the attribute should have been `volatile' (not static)
4081 to avoid longjmp-related risk of clobber. Secondly, now there is
4082 no longer any risk of a local variable being clobbered, so there's
4083 no need for any attribute at all.
4085 2006-01-05 Jim Meyering <jim@meyering.net>
4087 * src/remove.c: Give a few functions the inline attribute.
4088 (AD_pop_and_chdir): Use gotos to avoid some duplication.
4089 (AD_push): Rewrite an assertion so that the entire computation
4090 goes away when assertions are turned off.
4092 * src/tail.c (ENOSYS) [!defined ENOSYS]: Don't define here.
4093 It's already defined in "system.h".
4094 * Makefile.maint: Add a FIXME comment.
4096 2006-01-04 Jim Meyering <jim@meyering.net>
4098 * ChangeLog: Remove entries from 2005-10-22 and earlier.
4099 * ChangeLog-2005: New file, for entries up to version 5.92.
4101 2006-01-03 Jim Meyering <jim@meyering.net>
4103 * tests/du/no-x: Also allow a slightly different diagnostic -- the
4104 one you get when using openat-enabled fts.c and du (coming soon).
4105 * tests/chmod/no-x: Likewise.
4106 * tests/chgrp/no-x: Likewise.
4108 * src/system.h (O_DIRECTORY) [!defined O_DIRECTORY]: Define.
4110 2006-01-02 Paul Eggert <eggert@cs.ucla.edu>
4112 * src/chown-core.c (RC_do_ordinary_chown): New enum value.
4113 (restricted_chown): Return it, if the file cannot be accessed due
4114 to EPERM, or if no uid or gid are required, or if the file is
4115 neither a directory nor a regular file. Rewrite to avoid gotos.
4116 (change_file_owner): Handle RC_do_ordinary_chown case.
4117 Rewrite to avoid gotos.
4118 * tests/chgrp/basic: Make sure we can change the group of
4121 * src/date.c (usage): Explain %g, %G, and %V a bit better.
4123 2006-01-02 Jim Meyering <jim@meyering.net>
4125 * src/copy.c (set_owner): Correct a comment.
4127 * src/tail.c (parse_options): Change warning to say that --retry
4128 is useful `mainly' (not `only') when following by name.
4129 Reported here: http://bugs.debian.org/273781
4131 2006-01-01 Paul Eggert <eggert@cs.ucla.edu>
4133 * NEWS: Document that mkfifo and mknod -m no longer set special bits.
4134 * src/copy.c: Include lchmod.h.
4135 (copy_internal): Use lchmod rather than chmod.
4136 * src/cp.c: Include lchmod.h.
4137 (re_protect, make_dir_parents_private): Use lchmod rather than chmod.
4138 * src/mkdir.c: Include lchmod.h.
4139 (usage): Clarify -m's operation.
4140 (main): Use lchmod rather than chmod. Don't use lchmod unless the
4141 new mode contains bits outside the 777 range.
4142 * src/mkfifo.c (usage): Clarify -m's operation.
4143 (main): If -m is given, don't invoke chmod; use umask 0 instead.
4144 Report an error if -m asks for bits outside the 777 range.
4145 * src/mknod.c (usage, main): Likewise.
4147 * src/mkdir.c, src/mkfifo.c, src/mknod.c: Undo 2005-12-19 changes.
4149 2005-12-27 Jim Meyering <jim@meyering.net>
4151 * Makefile.maint (sc_obsolete_symbols): Prohibit use of O_NDELAY.
4152 (sc_prohibit_assert_without_use): New rule.
4153 (syntax-check-rules): Add it to the list.
4154 * .x-sc_prohibit_assert_without_use: New empty file.
4155 * Makefile.am (EXTRA_DIST): Add it.
4157 * Makefile.maint (CVS_LIST): Define in terms of $(srcdir).
4159 * cp.c, df.c, link.c, mknod.c, nice.c, sleep.c, unlink.c:
4160 Don't include <assert.h>; it wasn't used.
4162 2005-12-26 Paul Eggert <eggert@cs.ucla.edu>
4164 * src/chown-core.c (restricted_chown):
4165 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
4166 * src/remove.c (fd_to_subdirp): Open with O_DIRECTORY | O_NOCTTY
4167 | O_NOFOLLOW too, for consistency with other dir-openers.
4168 Use POSIX-preferred O_NONBLOCK rather than O_NDELAY.
4169 (is_empty_dir): Likewise.
4170 * src/shred.c (wipename): Likewise. Don't bother trying to open
4171 dir for writing, since POSIX prohibits it.
4173 2005-12-22 Jim Meyering <jim@meyering.net>
4175 * tests/help-version: Redirect stderr to /dev/full, to suppress
4176 write error diagnostic.
4178 2005-12-19 Jim Meyering <jim@meyering.net>
4180 * src/mkdir.c, src/mknod.c, src/mkfifo.c (main)
4181 Avoid a minor race condition when `-m MODE' is specified, by using
4182 open, fchown, and close rather than just chown. To do that reliably --
4183 even with an overly restrictive umask -- ensure that each mkdir,
4184 mknod and mkfifo call uses a mode including at least owner-read access.
4185 * src/mknod.c (main): When `-m MODE' is specified, exit nonzero if
4186 the subsequent chown (or equivalent open,fchown,close) fails.
4187 * tests/misc/mknod: New tests.
4188 * tests/misc/Makefile.am (TESTS): Add mknod.
4190 2005-12-17 Jim Meyering <jim@meyering.net>
4192 * src/remove.c (is_empty_dir): Open with O_NDELAY, so we don't hang,
4193 e.g., on a named pipe.
4194 (OPEN_NO_FOLLOW_SYMLINK): Remove definition. Use O_NOFOLLOW in
4195 place of all uses, since it is guaranteed (system.h) to be defined.
4197 2005-12-05 Andreas Gruenbacher <agruen@suse.de>
4199 Add POSIX ACL support
4200 * src/ls.c: Switch back from HAVE_ACL to USE_ACL: The acl() syscall
4201 is no requirement for ACL support; particularly, it does not exist
4202 on systems that have POSIX ACLs.
4203 * src/copy.h (cp_option_init) [umask_kill]: Remove member.
4204 * src/cp.c (umask_kill): With default acls, the umask is not to be
4205 applied. Remove umask_kill, don't change the process umask, and let
4206 the kernel apply the umask where appropriate.
4207 * src/cp.c (make_dir_parents_private): Fix logic for POSIX ACLs.
4208 * src/copy.c (get_dest_mode): Remove; it is obsolete after removing
4210 (copy_reg, copy_internal): Use copy_acl and set_acl
4211 instead of fchown/chown. Fix the logic for POSIX ACLs.
4212 (chown_succeded): Remove; we now always copy acls and
4213 preserve S_ISUID, S_ISGID, and S_ISVTX when needed, no matter if we
4214 did a chown before or not.
4215 * src/mv.c, src/install.c (cp_option_init): Don't set umask_kill member.
4216 * src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD, cp_LDADD,
4217 mv_LDADD, ginstall_LDADD): On systems with an ACL library, arrange
4218 to link with it via $(LIB_ACL), for the utilities that need it.
4220 2005-12-16 Paul Eggert <eggert@cs.ucla.edu>
4222 * src/remove.c (OPENAT_CWD_RESTORE__REQUIRE): Remove.
4223 (OPENAT_CWD_RESTORE__ALLOW_FAILURE): Likewise.
4224 (fd_to_subdirp): Remove openat_cwd_restore_allow_failure arg; its
4225 value is now signified by whether cwd_errno is null.
4226 (fd_to_subdirp, remove_dir, rm_1); Change cwd failure indicator from
4227 pointer-to-bool to pointer-to-errno-value. All callers changed.
4228 (rm_1): Don't bother setting a local cwd failure flag and then
4229 ORing it into the caller's. Just set the caller's.
4230 (rm): Use cwd failure errno value to print a slightly-better
4233 2005-12-15 Jim Meyering <jim@meyering.net>
4235 * src/stat.c (print_it): Properly handle a backslash at the
4236 end of a --printf format string. Reported by Paul Eggert.
4237 * tests/misc/stat-printf (end-bs): Add a test for the above.
4239 2005-12-15 Paul Eggert <eggert@cs.ucla.edu>
4241 * tests/acl: Port to pre-POSIX shells like Solaris 8 /bin/sh.
4242 Don't assume /etc/passwd contains user names; use 'id' instead.
4244 2005-12-15 Jim Meyering <jim@meyering.net>
4246 stat: revert behavior of --format=FMT (-c)
4247 stat: add new option: --printf=FMT
4248 * NEWS: Mention this.
4249 * src/stat.c (isodigit, octtobin, hextobin): Define.
4250 (PRINTF_OPTION): Define.
4251 (interpret_backslash_escapes, trailing_delim): New globals.
4252 (usage): Document them. Alphabetize on long option names.
4253 (print_esc_char): New function.
4254 (print_it): Rewrite, in order to handle backslash escapes.
4255 (main): Handle new option. Set globals for --format, too.
4257 * tests/misc/stat-printf: Test --printf and --format.
4258 * tests/misc/Makefile.am (TESTS): Add stat-printf.
4260 2005-12-14 Paul Eggert <eggert@cs.ucla.edu>
4262 * NEWS: sort now reports incompatible options.
4263 * src/sort.c (incompatible_options, check_ordering_compatibility):
4265 (main): Use them. Don't bother with a usage message for
4266 "sort -c a b", for consistency with other error diagnostics.
4267 * tests/sort/Test.pm (incompat1, incompat2, incompat3, incompat4):
4270 * src/cat.c (main): Undo previous change. close_stdout already
4271 does the check, so the previous change wasn't necessary.
4273 2005-12-13 Paul Eggert <eggert@cs.ucla.edu>
4275 * src/cat.c (main): Check for close (STDOUT_FILENO) failure.
4277 2005-12-12 Paul Eggert <eggert@cs.ucla.edu>
4279 Install a more-conservative approach for sort -R. It's the
4280 same basic idea as the existing code, except it uses the full ISAAC
4281 approach (called the "more kosher" approach in the existing comments).
4282 This makes "sort -R" quite a bit slower (about a factor of 2 on my
4283 little tests involving 10000 lines on a 2.4 GHz P4), but I think it's
4284 better to be conservative here at first, and review any performance
4285 improvements carefully.
4286 * .x-sc_require_config_h: Add src/rand-isaac.c.
4287 * src/rand-isaac.h: Remove. All uses now simply include rand-isaac.c.
4288 * src/Makefile.am (noinst_HEADERS): Remove rand-isaac.h.
4289 (shred_SOURCES, sort_SOURCES): Remove.
4290 (EXTRA_DIST): Add rand-isaac.c.
4291 * src/rand-isaac.c: Revert to what used to be in shred.c, without
4292 changing it to allow for varying numbers of words in the state.
4293 Alter so that we include rand-isaac.c directly rather than
4294 compiling it and linking to it. Don't include config.h or
4295 system.h; that's the includer's responsibility.
4296 Omit functions that are specific to shred.
4297 (ISAAC_LOG, ISAAC_WORDS, ISAAC_BYTES, struct isaac_state, ind):
4298 (isaac_step, struct irand_state):
4299 Resurrect these, with the same defns that used to be in shred.c.
4300 (ISAAC_SIZE, isaac_new, isaac_copy): Remove.
4301 (isaac_refill, isaac_seed_start, isaac_seed_data, irand_init, irand32):
4303 (struct isaac_state, isaac_refill, isaac_mix, isaac_init):
4304 (isaac_seed_start, isaac_seed_data, isaac_seed_finish, isaac_seed):
4305 (irand_init, irand32, irand_mod):
4306 Number of words is constant again.
4307 (struct irand_state, irand_init, irand32, irand_mod): Move to shred.c.
4308 * src/shred.c: Include rand-isaac.c rather than rand-isaac.h.
4309 * src/sort.c: Likewise.
4310 * src/shred.c (fillrand, dopass, main): Undo previous change.
4311 (struct irand_state, irand_init, irand32, irand_mod): Moved back here,
4313 * src/sort.c: Don't include md5.h; it wasn't needed.
4314 (struct keyfield): Rename random_hash to random, for consistency
4315 with the other member names. All uses changed.
4316 (usage): Tweak wording to mention STRING for --seed option.
4317 (short_options): Rorder for consistency with other programs.
4318 (rand_state): Now a struct, not a pointer to one. All uses changed.
4319 (HASH_WORDS, HASH_SIZE): Remove.
4320 (get_hash): Remove comments around resbuf size, since we can assume C89.
4321 Use a "more-kosher" (but slower) approach of invoking isaac_refill.
4322 (keycompare): Adjust to the new get_hash.
4324 (badfieldspec): Omit recently-introduced comment; it isn't needed.
4325 (main): Don't set need_random simply because gkey has it set; that
4326 doesn't necessarily mean we'll need random numbers.
4327 Redo seeding to match new get_hash approach.
4329 2005-12-10 Jim Meyering <jim@meyering.net>
4331 * src/Makefile.am (noinst_HEADERS): Add rand-isaac.h.
4333 Avoid shred segfault on 64-bit systems.
4334 * src/rand-isaac.c (isaac_refill): Don't try to negate a
4335 local of type uint32_t. Make the local an `int' instead.
4337 * NEWS: Mention sort's new options.
4339 * src/rand-isaac.c (isaac_mix): Declare to be static.
4340 Mark all other functions as `extern' so the tight-scope
4341 part of `make distcheck' passes once again.
4342 * src/rand-isaac.h (isaac_mix): Remove declaration.
4344 * src/sort.c (get_hash): Change position of `*' in parameter
4345 type to conform with convention.
4346 (main): Split a long line so it fits in 80 columns.
4347 (keycompare): Remove stray SPACE before TAB that was
4348 causing `make distcheck' to fail.
4350 * src/shred.c: Don't include gethrxtime.h. No longer needed.
4352 * tests/misc/sort-rand: New file: basic tests for the new options.
4353 * tests/misc/Makefile.am (TESTS): Add sort-rand.
4355 2005-12-10 Frederik Eaton <frederik@ofb.net>
4357 * src/Makefile.am (sort_LDADD): Add $(LIB_GETHRXTIME).
4358 (shred_SOURCES, sort_SOURCES): New macros, so we compile rand-isaac.c.
4359 * src/rand-isaac.c: New file, containing ISAAC code that was in shred.c.
4360 Make state size runtime-configurable.
4361 (isaac_new, isaac_copy): New functions.
4362 * src/rand-isaac.h: New file.
4363 * src/shred.c: Include rand-isaac.h. Move ISAAC code to rand-isaac.c.
4364 (fillrand, main): Adjust to the fact that the state size is now
4365 runtime-configurable.
4366 * src/sort.c (short_options, long_options, WORDS, keycompare, main):
4367 (usage): Add options --random-sort and --seed to implement a random
4369 Include md5.h and rand-isaac.h.
4370 (get_hash): New function.
4371 (rand_state): New var.
4372 (HASH_WORDS, HASH_SIZE): New macros.
4374 2005-12-09 Paul Eggert <eggert@cs.ucla.edu>
4376 * tests/dd/misc: Add test for dd iflags=noatime.
4378 2005-12-09 Jim Meyering <jim@meyering.net>
4380 * src/sort.c (usage): Mention white space vs -b and -t options.
4383 2005-12-09 Eric Blake <ebb9@byu.net>
4385 * src/test.c (main): Fix misleading comment.
4387 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
4389 * NEWS: Mention dd's new noatime flag.
4390 * src/system.h (O_NOATIME): Define to 0 if not already defined.
4391 * src/dd.c (flags, usage): Add support for noatime flag.
4393 2005-12-07 Jim Meyering <jim@meyering.net>
4395 Distribute the cvsu script, used only by `make syntax-check'.
4396 * Makefile.am (EXTRA_DIST): Add build-aux/cvsu.
4397 * Makefile.maint (CVS_LIST): Use build-aux/cvsu, now that we
4398 distribute a copy of this script.
4399 * .x-sc_unmarked_diagnostics: Add build-aux/cvsu.
4401 * tests/mv/acl: exit-77 before the trap, not after, if we fail
4402 to create a temporary directory on another partition.
4403 From Andreas Gruenbacher.
4405 2005-12-06 Tomas Pospisek <tpo@sourcepole.ch> (tiny change)
4407 * man/basename.x: Cross-reference to dirname and readlink.
4408 * man/dirname.x: Cross-reference to basename and readlink.
4410 2005-12-05 Andreas Gruenbacher
4412 * src/copy.c [!HAVE_FCHOWN]: Define fchown(...) to -1.
4413 (set_owner, preserve_author): New functions, factored out of copy_reg.
4414 (copy_reg): Use them.
4415 (copy_internal): Use them here, too.
4417 2005-12-04 Jim Meyering <jim@meyering.net>
4419 * src/sleep.c (usage): Say what happens with two or more arguments.
4420 Suggested by Justin Pryzby.
4422 * src/uptime.c (print_uptime): Move decl of `upsecs' into scope
4425 2005-12-03 Jim Meyering <jim@meyering.net>
4427 * src/rm.c (long_opts): Change the name of each undocumented, for-
4428 testing-only option to start with `-', so that it cannot render
4429 ambiguous any prefix it happens to share with some other option name.
4430 Problem reported by Eric Blake.
4431 * src/head.c (long_options): Likewise.
4432 * src/tail.c (long_options): Likewise.
4434 * tests/misc/head-elide-tail: Update uses of undocumented, for-
4435 testing-only --presume* options to start with `---'.
4436 * tests/rm/dangling-symlink: Likewise.
4437 * tests/rm/dir-no-w: Likewise.
4438 * tests/rm/isatty: Likewise.
4440 2005-11-30 Jim Meyering <jim@meyering.net>
4442 * Makefile.maint: Add a comment about cvsu.
4444 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
4446 * NEWS: df updates for "none", "proc", inaccessible file systems.
4447 * src/df.c (show_point): Ignore inaccessible file systems.
4448 (usage): -a includes dummy file systems, not size-0 file systems.
4450 * src/od.c (unsigned_long_long_int): Renamed from ulonglong_t,
4451 to avoid collision with POSIX name space. All uses changed.
4453 2005-11-24 Jim Meyering <jim@meyering.net>
4455 * tests/Makefile.am (EXTRA_DIST): Add acl to the list.
4456 * tests/acl: Add `$0: ' prefix to diagnostics.
4458 * .x-sc_require_config_h: Add lib/buffer-lcm.c to the list.
4460 2005-11-23 Paul Eggert <eggert@cs.ucla.edu>
4462 * src/copy.c: Improve performance a bit by optimizing away
4463 unnecessary system calls and going to a block size of at least
4464 8192 (on normal hosts, anyway). This improved performance 5% on my
4465 Debian stable host (2.4.27 kernel, x86, copying from root
4466 ext3 file system to itself).
4467 Include "buffer-lcm.h".
4468 (copy_reg): Omit last argument. All callers changed.
4469 Use xmalloc to allocate rather than trusting alloca
4470 (which is unwise with large block sizes).
4471 Declare locals more locally, if possible.
4472 Use uintptr_t words instead of int words, for a bit more speed
4473 when looking for null blocks on 64-bit hosts.
4474 Optimize away reads of zero bytes on regular files.
4475 In the typical case, insist on 8 KiB buffers, at least.
4476 Avoid unnecessary extra call to fstat when checking for sparse files.
4477 Avoid now-unnecessary cast to off_t, and "0L".
4478 Avoid unnecessary test of *new_dst when checking for same owner
4481 2005-11-22 Paul Eggert <eggert@cs.ucla.edu>
4483 * src/remove.c (rm): Don't assume C99 for-loop syntax.
4485 2005-11-22 Jim Meyering <jim@meyering.net>
4487 * src/remove.c (AD_push): Remove debugging cruft.
4489 * tests/rm/unread2 (rm): Change expected diagnostic,
4490 `cannot open directory' to `cannot remove', to align with
4492 * tests/rm/rm2: Ensure that rm now continues removing entries
4493 even after certain types of failure.
4495 * src/remove.c: Rewrite. Now, this module is reentrant on systems
4496 that provide openat (Solaris), and on systems like Linux+procfs
4497 where our openat emulation code is reentrant. This also fixes a
4498 few low-probability leaks and eliminates some code that could,
4499 in very unusual circumstances, cause rm() (via a callee) to exit.
4500 * NEWS: Mention this.
4502 * configure.ac: Put copyright dates all on one line so the
4503 emacs function that updates them works properly.
4505 2005-11-18 Paul Eggert <eggert@cs.ucla.edu>
4507 * configure.ac (AM_PROG_CC_C_O): Add. Needed for CVS Automake.
4508 Problem reported by Eric Blake.
4509 (AC_PROG_CC_STDC): Use this instead of AC_PROG_CC, so that
4510 we get a standard-conforming compiler. This relies on the new
4511 m4/c.m4 file. Note that it's a bit tricky, since c.m4 doesn't
4512 define AC_PROG_CC_STDC; we are relying on Autoconf 2.59 internals.
4513 m4/c.m4 can go away with Autoconf 2.60 comes out.
4515 2005-11-17 Jim Meyering <jim@meyering.net>
4517 * src/remove.c (AD_mark_helper): Make a `char *' parameter `const'.
4518 (AD_mark_current_as_unremovable): Likewise, but for a local.
4521 * tests/mv/acl: Let traps handle removing temporary directories.
4523 Expect acl-related tests to fail, until the corresponding
4524 patches are committed.
4525 * tests/mv/Makefile.am (XFAIL_TESTS): Add acl.
4526 * tests/cp/Makefile.am (XFAIL_TESTS): Likewise.
4528 ACL tests, from Andreas Gruenbacher.
4529 * tests/acl, tests/mv/acl, tests/cp/acl: New files.
4530 * tests/mv/Makefile.am (TESTS): Add acl.
4531 * tests/cp/Makefile.am (TESTS): Add acl.
4533 * src/ls.c (basename_is_dot_or_dotdot): Correct wording in comment.
4535 2005-11-16 Paul Eggert <eggert@cs.ucla.edu>
4537 * NEWS: Improve quality of ln's diagnostics.
4538 * src/ln.c (do_link, usage): Likewise.
4539 (do_link): Don't use alloca on a buffer of unbounded size.
4541 2005-11-16 Jim Meyering <jim@meyering.net>
4543 * tests/cp/fail-perm: Accommodate HPUX. It appears to fail
4544 with EACCES rather than EPERM. Reported by Peter O'Gorman here:
4545 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/5766
4546 This also affects AIX 4.3.3, according to Ralf Wildenhues, in
4547 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html
4549 2005-11-14 Jim Meyering <jim@meyering.net>
4551 * NEWS (sort): Mention consequences of today's mkstemp-safer.c fix.
4553 2005-11-13 Jim Meyering <jim@meyering.net>
4555 * announce-gen: Accept new option, --gpg-key-id=ID and
4556 emit a blurb telling how to use the .sig files.
4557 * Makefile.cfg (gpg_key_ID): Define.
4558 * Makefile.maint (announcement): Use new option and key.
4560 Require that most .c files include <config.h>.
4561 * Makefile.maint (sc_require_config_h): New rule.
4562 (syntax-check-rules): Add it.
4563 * .x-sc_require_config_h: New file listing exceptions to the
4564 above rule. Some are legit, others are simply grandfathered in.
4565 * Makefile.am (EXTRA_DIST): Add .x-sc_require_config_h here, too.
4567 2005-11-12 Jim Meyering <jim@meyering.net>
4569 * src/checksum.h, src/md5.c, src/sha1sum.c: Remove now-unused files.
4571 2005-11-11 Jim Meyering <jim@meyering.net>
4573 * NEWS: Mention `readlink -f' bug fix in 5.3.0 news.
4574 Mention new readlink options in 5.3.0's `New features' section.
4575 Spotted by Thomas Hood.
4577 2005-11-08 Jim Meyering <jim@meyering.net>
4579 * NEWS: Merge in changes from b5_9x branch.
4581 2005-11-08 Paul Eggert <eggert@cs.ucla.edu>
4583 * NEWS: ls now defaults to --time-style='locale', which in turn acts
4584 like --time-style='posix-long-iso' if the locale settings are messed up.
4585 * src/ls.c (decode_switches): Implement this.
4587 2005-11-08 Jim Meyering <jim@meyering.net>
4589 * tests/du/2g: s/expensive/very expensive/ in a comment.
4592 2005-10-17 Eric Blake <ebb9@byu.net>
4594 * src/ls.c (usage): Fix descriptions of --sort, --time.
4595 Reported by Vitaly A. Ostanin.
4597 2005-11-04 Paul Eggert <eggert@cs.ucla.edu>
4599 * src/ln.c: Include filenamecat.c.
4600 (FILE_BASENAME_CONCAT): Remove.
4601 (do_link): Remove last arg DEST_IS_DIR. All callers changed.
4602 (main): Use file_name_concat, base_name, and strip_trailing_slashes
4603 instead of FILE_BASENAME_CONCAT. This simplifies the code, and avoids
4606 2005-11-04 Jim Meyering <jim@meyering.net>
4608 * src/du.c (process_file): Don't overflow for files of size >= 2^31
4609 on systems with stat.st_blocks of a signed 32-bit type.
4610 This bug causes trouble on some AIX 5.1 systems.
4611 Report and trivial patch from Paul Townsend:
4612 <http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00033.html>
4613 * NEWS: Mention this.
4615 * tests/du/2g: New (very-expensive) test for the above-fixed bug.
4616 * tests/du/Makefile.am (TESTS): Add it here.
4617 * tests/very-expensive: New file.
4618 * tests/Makefile.am (EXTRA_DIST): Add it here.
4619 * tests/cp/perm: Mark this test as `very-expensive', too.
4621 2005-11-02 Paul Eggert <eggert@cs.ucla.edu>
4623 * NEWS: Mention that rm -d and maybe ln -d are scheduled for
4625 * src/remove.h (struct rm_options): Remove unlink_dirs. All uses
4627 * src/rm.c (usage): Don't mention rm -d.
4629 2005-11-02 Jim Meyering <jim@meyering.net>
4631 * tests/dd/skip-seek: Fix typo in comment: s/fileutils/coreutils.
4632 From Andreas Schwab.
4634 * tests/dd/unblock-sync: Redirect stderr to /dev/null so the
4635 `M+N records in/out' lines don't pollute `make check' output.
4637 * tests/dd/skip-seek (sk-seek4): New test, to exercise the bug
4638 fixed on 2005-10-31. This test uses the new, IN_PIPE specifier.
4639 * tests/Coreutils.pm: Accept a new type of input specifier: IN_PIPE,
4640 to indicate that the input file should be piped into the command
4641 under test (via `cat FILE | $prog ...').
4643 * src/remove.c (remove_entry): Emit a better diagnostic when rm
4644 (without -r) fails to remove a directory on a non-Linux system.
4645 This change affects only newer Solaris systems (with priv_*
4646 functions like priv_allocset). Reported by Keith Thompson.
4648 * tests/rm/dir-nonrecur: New file/test for the above fix.
4649 * tests/rm/Makefile.am (TESTS): Add dir-nonrecur.
4651 2005-11-01 Paul Eggert <eggert@cs.ucla.edu>
4653 * NEWS: "tail -c 2 FILE" and "touch 0101000000" now operate as
4654 POSIX 1002.1-2001 requires.
4655 * src/tail.c (parse_obsolete_option): Implement this.
4656 Problem reported by Vincent Lefevre.
4657 * src/touch.c (main): Pass PDS_PRE_2000 to posixtime.
4658 * tests/tail/Test.pm (c-2, c-2-minus, c2, c2-minus): New tests.
4659 (test_vector): Add special cases for _POSIX2_VERSION, and
4660 regularize the old ones a bit.
4661 * tests/touch/obsolescent: Add y2000 test.
4663 2005-10-31 Paul Eggert <eggert@cs.ucla.edu>
4665 * src/dd.c (skip): Fix off-by-one error reported by
4666 Theodoros V. Kalamatianos.
4668 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
4670 * tests/mkdir/p-3: Require that the test be run as non-root.
4671 Problem and trivial fix reported by Theodoros V. Kalamatianos.
4673 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
4675 * src/ln.c (FILE_BASENAME_CONCAT): Omit unnecessary slashes in the
4676 boundary between DEST and SOURCE in the result.
4678 2005-10-26 Dmitry V. Levin <ldv@altlinux.org>
4680 * src/md5sum.c (main) [!O_BINARY]: Changed default read mode
4681 back to text, to sync with documentation and for backwards
4684 2005-10-25 Jim Meyering <jim@meyering.net>
4686 * tests/dircolors/simple (other-wr): Add an explicit test for
4687 the dircolors bug (NULL-dereference) fixed yesterday.
4689 2005-10-24 Jim Meyering <jim@meyering.net>
4691 * src/tac.c (tac_file): When determining whether a file is seekable,
4692 also test whether it is a tty. Using only the lseek-based test would
4693 give a false positive on Solaris. Reported by Peter Fales.
4695 2005-10-24 Dmitry V. Levin <ldv@altlinux.org>
4697 * tests/install/d-slashdot: New test, for "install -d" failure.
4698 * tests/install/Makefile.am (TESTS): Add d-slashdot.
4699 * tests/mkdir/p-slashdot: New test, for "mkdir -p" failure.
4700 * tests/mkdir/Makefile.am (TESTS): Add p-slashdot.
4702 2005-10-24 Jim Meyering <jim@meyering.net>
4704 * src/dircolors.c (ls_codes): Add missing comma.
4705 Anonymous report and patch from
4706 http://savannah.gnu.org/bugs/?func=detailitem&item_id=14849
4708 * src/dircolors.c: Add compile-time assertion that the slack_codes
4709 and ls_codes arrays have the same number of elements. This would
4710 have prevented the above-fixed bug.
4712 * src/expand.c (parse_tab_stops): Add a comment to make this function
4713 identical to the one in unexpand.c.
4714 * src/unexpand.c (parse_tab_stops): Adjust syntax to make this function
4715 identical to the one in expand.c.
4717 * src/expand.c (next_file): Don't assume fopen cannot return stdin.
4719 2005-10-23 Jim Meyering <jim@meyering.net>
4721 * src/md5sum.c (digest_check, main): Use ptr_align rather than
4722 a dangerous pointer-value-to-`unsigned' cast.
4723 * NEWS: mention the new sha* programs.
4724 * AUTHORS: Add new sha* programs.
4726 2005-08-28 David Madore <david.madore@ens.fr>
4728 Add new programs: sha224sum, sha256sum, sha384sum, sha512sum.
4729 * README: Add their names to the list.
4730 * src/md5sum.c: Provide framework for computing sha-2 hashes.
4731 * src/Makefile.am (sha224sum, sha256sum, sha384sum, sha512sum):
4732 Rules for compiling sha-2 utilities
4733 (noinst_HEADERS): Remove checksum.h.
4734 * man/sha512sum.x, man/sha384sum.x, man/sha256sum.x, man/sha224sum.x:
4736 * man/Makefile.am (dist_man_MANS): Add the corresponding .1 names.
4737 (sha224sum.1, sha256sum.1, sha384sum.1, sha512sum.1): New dependencies.
4738 * tests/misc/sha224sum, tests/misc/sha256sum: New files.
4739 * tests/misc/sha384sum, tests/misc/sha512sum: New files.
4740 * tests/misc/Makefile.am (TESTS): Add new sha224sum, sha256sum,
4741 sha384sum, sha512sum test scripts here rather that each in its
4744 2005-08-28 David Madore <david.madore@ens.fr>
4746 * tests/sha1sum/basic-1 (million-a): Add the "million a's" test (one
4747 of the FIPS test vectors).
4749 2005-10-23 Jim Meyering <jim@meyering.net>
4751 * configure.ac: Use 6.0-cvs as the version string.
4752 * NEWS: Adjust accordingly.
4757 Copyright (C) 2005, 2006 Free Software Foundation, Inc.
4759 Copying and distribution of this file, with or without
4760 modification, are permitted provided the copyright notice
4761 and this notice are preserved.