1 2006-11-22 Jim Meyering <jim@meyering.net>
3 * announce-gen: Remove unused --release-archive-directory option.
4 (print_news_deltas): Accept new adjective, "Noteworthy", in addition
6 Match version numbers in NEWS using tighter regular expressions.
7 (main): Require the --gpg-key-id=ID option.
9 * NEWS: Mention the three noteworthy changes, all fixed via gnulib.
11 2006-11-21 Jim Meyering <jim@meyering.net>
13 * tests/rm/one-file-system: Upon setup failure (e.g., mount failure),
14 skip the test rather than failing. Reported by Michael Deutschmann.
16 * tests/rm/fail-eperm: Use the "(exit N); exit N" idiom,
17 rather than just "exit N".
19 Arrange for "make check-root" to run the new root-only test.
20 * tests/Makefile.am (t7): New target, to run tests/ls/nameless-uid.
23 2006-11-20 Jim Meyering <jim@meyering.net>
25 Add a root-only test for today's lib/idcache.c fix.
26 * tests/ls/nameless-uid: New file.
27 * tests/ls/Makefile.am (TESTS): Add nameless-uid.
28 (TESTS_ENVIRONMENT): Add PERL to the list.
30 2006-11-19 Jim Meyering <jim@meyering.net>
32 * tests/tail-2/assert-2: Mark as a very-expensive test, because I
33 find the 7-second sleep annoyingly long. Besides, this test is
34 probably far too specific and timing sensitive ever to trigger again.
35 * tests/tail-2/assert: Likewise.
37 Post-release version change.
38 * NEWS: Add a line for 6.6-pre.
39 * configure.ac (AC_INIT): Bump to 6.6 and add "-pre" suffix.
42 * NEWS: Record release date. Remove "-cvs" suffix.
43 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
45 2006-11-18 Jim Meyering <jim@meyering.net>
47 "ln --backup f f" produces a misleading diagnostic:
48 ln: creating hard link `f' => `f': No such file or directory
49 * src/ln.c (do_link): Give a better diagnostic in this unusual case.
50 (do_link): Rename local: s/lstat_ok/dest_lstat_ok/.
51 * tests/ln/Makefile.am (TESTS): Add hard-backup.
52 * tests/ln/hard-backup: New test for the above.
53 * NEWS: Mention this fix.
55 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
57 * bootstrap.conf (gnulib_modules): Add sys_stat, since we use it
59 * lib/.cvsignore, lib/.gitignore: Add root-dev-ino.c, root-dev-ino.h.
60 * m4/.cvsignore, m4/.gitignore: Add root-dev-ino.m4.
61 * src/ls.c (DIRED_FPUTS_LITERAL, PUSH_CURRENT_DIRED_POS):
62 Omit unnecessary parenthesization of args.
63 * src/od.c (EQUAL_BLOCKS): Likewise.
64 * src/system.h (STREQ, ASSIGN_STRDUPA): Likewise.
66 2006-11-16 Jim Meyering <jim@meyering.net>
68 * tests/tail-2/append-only: If chattr +a fails, exit 77 (to tell
69 automake we're skipping this test), and give a diagnostic to tell
70 the user the same thing. Reported by Mike Grayson.
72 2006-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74 * man/Makefile.am (dist_man_MANS): Replace all optional manpages
75 with `$(MAN)', computed at configure time; also, list them ...
76 (optional_mans): ... in this new variable.
77 (max_aux, EXTRA_DIST): Ensure that we distribute all manpages.
79 2006-11-16 Jim Meyering <jim@meyering.net>
81 Help valgrind see that there is no leak in dd.c.
82 * src/dd.c (dd_copy): Declare real_buf and real_obuf to be static,
83 so we need not free them at all. This is easier than freeing
84 both buffers at each of the early "return"s.
86 * src/csplit.c (load_buffer): Plug an inconsequential leak.
88 2006-11-15 Jim Meyering <jim@meyering.net>
90 * .x-po-check: Exclude gl/ files. Otherwise, po-check would
91 complain that some of gl/lib/*.[ch] are not listed in POTFILES.in.
93 2006-11-14 Jim Meyering <jim@meyering.net>
95 * gl/m4/root-dev-ino.m4: Now that this is part of a real "module",
96 remove the now-unnecessary use of AC_LIBSOURCES.
98 Adapt to new version of gnulib-tool.
99 * gl/modules/root-dev-ino: New file.
100 * lib/root-dev-ino.c, lib/root-dev-ino.h: Move these files ...
101 * gl/lib/root-dev-ino.c, gl/lib/root-dev-ino.h: ... to here.
102 * m4/root-dev-ino.m4: Move this file ...
103 * gl/m4/root-dev-ino.m4: ... to here.
105 * bootstrap.conf (gnulib_modules): Add root-dev-ino.
107 2006-11-13 Jim Meyering <jim@meyering.net>
109 * src/sort.c (insertkey): Use xmemdup, rather than xmalloc+assignment.
112 Plug another technically-unimportant leak in sort.
113 * src/sort.c (main): Don't allocate memory for each new key here.
114 (insertkey): Allocate memory for each key here, instead.
115 (key_init): Rename from new_key. Don't allocate.
117 * src/sort.c (main): Plug a tiny memory leak.
118 Move declaration of local "minus" down to be nearer point of use.
120 2006-11-12 Jim Meyering <jim@meyering.net>
122 du would exit early, when encountering an inaccessible directory
123 Reported by Mike Frysinger, in
124 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8831
125 * tests/du/inacc-dest: New test, based on an example from Mike Frysinger.
126 * tests/chgrp/no-x: Remove the "fts_read failed: ..."
127 diagnostic from the expected output when using native fdopendir.
128 * tests/chmod/no-x: Likewise.
129 * tests/du/no-x: Likewise.
130 * NEWS: Mention this bug fix.
131 * tests/du/Makefile.am (TESTS): Add inacc-dest.
133 * Makefile.maint (sc_cast_of_x_alloc_return_value): Add an exclusion
136 Avoid false-positive when testing via valgrind.
137 * tests/mv/atomic: Grep strace output for a more specific pattern
138 than just "unlink", since that got a false positive when testing
139 under valgrind: unlink("/tmp/valgrind_proc_9657_cmdline_A51E9991") = 0
140 * tests/mv/Makefile.am (TESTS_ENVIRONMENT): Define EGREP.
142 2006-10-28 Jim Meyering <jim@meyering.net>
144 * Makefile.maint (patch-check): Make it easier to regenerate
145 the src/c99-to-c89.diff file. E.g., I do this:
146 make patch-check REGEN_PATCH=1; ediff src/c99-to-c89.diff new-diff
148 * src/c99-to-c89.diff: Update to reflect new offsets in rm.c.
150 2006-10-26 Jim Meyering <jim@meyering.net>
152 * src/system.h (ftello): Add a compile-time check for the highly
153 unlikely condition of off_t narrower than long int, rather than
154 handling it at run time. Based on a patch from Paul Eggert.
156 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
158 * tests/chmod/c-option: When double-quoting part of a word, prefer
159 to double-quote the whole word. This is a bit easier to read (at
160 least for me), and in some cases it avoids a shell bug with Tru64
161 4.0 sh reported by Nelson H. F. Beebe. For example, instead of
162 "$abs_srcdir"/../setgid-check we now write
163 "$abs_srcdir/../setgid-check".
164 * tests/cp/cp-parents: Likewise.
165 * tests/du/inaccessible-cwd: Likewise.
166 * tests/du/long-from-unreadable: Likewise.
167 * tests/install/basic-1: Likewise.
168 * tests/install/trap: Likewise.
169 * tests/misc/close-stdout: Likewise.
170 * tests/mkdir/concurrent-1: Likewise.
171 * tests/mkdir/p-1: Likewise.
172 * tests/mkdir/p-3: Likewise.
173 * tests/mkdir/parents: Likewise.
174 * tests/mkdir/perm: Likewise.
175 * tests/readlink/can-e: Likewise.
176 * tests/readlink/can-f: Likewise.
177 * tests/readlink/can-m: Likewise.
178 * tests/rm/inaccessible: Likewise.
179 * tests/rm/unread3: Likewise.
180 * tests/touch/no-create-missing: Likewise.
182 * lib/.cvsignore: Add uinttostr.c.
184 2006-10-25 Jim Meyering <jim@meyering.net>
186 Portability to Tru64 V4.0.
187 * src/system.h (ftello) [!HAVE_FSEEKO && !defined ftello]:
188 Define inline replacement function.
189 This (along with a yesterday's fix for autoconf's
190 _AC_SYS_LARGEFILE_MACRO_VALUE macro) makes it so coreutils
191 now builds once more on Tru64 V4.0. Reported by Nelson Beebe.
193 2006-10-25 Bruno Haible <bruno@clisp.org>
195 * src/cat.c (infile): Add "const" to declaration.
196 * src/csplit.c (prefix): Likewise.
197 * src/printf.c (cfcc_msg): Likewise.
198 * src/tail.c (valid_file_spec): Likewise.
199 * src/cut.c (cut_file): Likewise, for a parameter.
200 * src/expr.c (str_value): Likewise.
201 * src/fold.c (fold_file): Likewise.
202 * src/pr.c (init_header): Likewise.
203 * src/dircolors.c (dc_parse_stream): Likewise, for a local.
204 * src/tr.c (make_printable_str): Likewise.
205 * src/nl.c (body_type, header_type, footer_type, current_type):
206 (separator_str, build_type_arg, nl_file): Likewise, for many.
207 * src/paste.c (main): Don't assign a read-only string to 'optarg'.
208 * src/tac.c (separator, tac_seekable, copy_to_temp): Likewise.
210 2006-10-25 Jim Meyering <jim@meyering.net>
212 * tests/sample-test: Update copyright year list to include only
213 the current year, since this is what I'll want in any new test.
215 2006-10-24 Jim Meyering <jim@meyering.net>
217 * src/c99-to-c89.diff: Update to reflect new offsets.
219 * NEWS: new feature: rm accepts new option: --one-file-system
220 Suggested by Steve McIntyre in <http://bugs.debian.org/392925>.
221 * src/remove.h (struct rm_options) [one_file_system]: New member.
222 * src/rm.c (rm_option_init): Initialize it.
223 (usage): Document the option.
224 * src/mv.c (rm_option_init): Likewise.
225 * src/remove.c (remove_dir): With --one-file-system and --recursive,
226 for each directory command line argument, do not affect a file system
227 different from that of the starting directory. And give a diagnostic.
228 * src/rm.c (ONE_FILE_SYSTEM): New enum.
229 (main): Handle new option.
230 * tests/rm/one-file-system: Test the above.
231 * tests/rm/Makefile.am (TESTS): Add one-file-system.
232 * tests/Makefile.am (check-root): Add the rm/one-file-system
234 (EXTRA_DIST): Add other-fs-tmpdir.
236 * tests/mv/setup: Removed. Renamed to...
237 * tests/other-fs-tmpdir: ...this new file.
238 * tests/mv/Makefile.am (EXTRA_DIST): Remove setup.
239 * tests/mv/acl: Reflect renaming: use ../other-fs-tmpdir.
240 * tests/mv/backup-is-src: Likewise.
241 * tests/mv/hard-link-1: Likewise.
242 * tests/mv/leak-fd: Likewise.
243 * tests/mv/mv-special-1: Likewise.
244 * tests/mv/part-fail: Likewise.
245 * tests/mv/part-hardlink: Likewise.
246 * tests/mv/part-rename: Likewise.
247 * tests/mv/part-symlink: Likewise.
248 * tests/mv/partition-perm: Likewise.
249 * tests/mv/to-symlink: Likewise.
250 * tests/mv/into-self-2: Likewise.
252 Don't let a failure in one test stop "make -k" from running the others.
253 * tests/Makefile.am (t1 t2 t3 t4 t5): New targets.
254 (check-root): Depend on them, rather than executing the five
255 commands in a single rule. Reported by Greg Schafer.
257 2006-10-23 Bob Proulx <bob@proulx.com> (tiny change)
259 * Makefile.maint (alpha beta major): Use a better log message for
260 the automatic commit of .prev-version.
262 2006-10-23 Jim Meyering <jim@meyering.net>
264 * tests/misc/pwd-long: Undo last change, since it made Perl invoke
265 pwd via a shell. Instead, ensure that the absolute name of the
266 pwd binary consists solely of reasonable characters.
267 Whoops. Don't exec the perl script. Otherwise, the sh-trap-based
268 clean-up code isn't run.
270 * NEWS: Add a line for 6.5-cvs.
271 * configure.ac (AC_INIT): Bump to 6.5 and add "-cvs" suffix.
273 2006-10-22 Jim Meyering <jim@meyering.net>
277 * NEWS: Record the 6.4 release date.
278 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
280 * Makefile.maint: Complete the adaptation to function with a working
281 directory that is using git (rather than cvs) for version control.
283 2006-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
285 * tests/chmod/c-option: Double-quote instances of `$abs_srcdir'.
286 * tests/cp/cp-parents: Likewise.
287 * tests/mkdir/parents: Likewise.
288 * tests/mkdir/perm: Likewise.
290 * tests/sample-test: Quote variables containing absolute build
291 tree paths. In the cleanup trap, make sure `cd' succeeds before
292 `chmod'ing and `rm'ing the temporary files.
293 * tests/chgrp/basic: Likewise.
294 * tests/chgrp/deref: Likewise.
295 * tests/chgrp/no-x: Likewise.
296 * tests/chgrp/posix-H: Likewise.
297 * tests/chgrp/recurse: Likewise.
298 * tests/chmod/c-option: Likewise.
299 * tests/chmod/equal-x: Likewise.
300 * tests/chmod/equals: Likewise.
301 * tests/chmod/inaccessible: Likewise.
302 * tests/chmod/no-x: Likewise.
303 * tests/chmod/octal: Likewise.
304 * tests/chmod/setgid: Likewise.
305 * tests/chmod/umask-x: Likewise.
306 * tests/chmod/usage: Likewise.
307 * tests/chown/basic: Likewise.
308 * tests/chown/deref: Likewise.
309 * tests/chown/separator: Likewise.
310 * tests/cp/acl: Likewise.
311 * tests/cp/backup-1: Likewise.
312 * tests/cp/backup-dir: Likewise.
313 * tests/cp/backup-is-src: Likewise.
314 * tests/cp/cp-HL: Likewise.
315 * tests/cp/cp-deref: Likewise.
316 * tests/cp/cp-i: Likewise.
317 * tests/cp/cp-mv-backup: Likewise.
318 * tests/cp/cp-parents: Likewise.
319 * tests/cp/deref-slink: Likewise.
320 * tests/cp/dir-rm-dest: Likewise.
321 * tests/cp/dir-slash: Likewise.
322 * tests/cp/dir-vs-file: Likewise.
323 * tests/cp/fail-perm: Likewise.
324 * tests/cp/into-self: Likewise.
325 * tests/cp/link: Likewise.
326 * tests/cp/link-no-deref: Likewise.
327 * tests/cp/link-preserve: Likewise.
328 * tests/cp/no-deref-link1: Likewise.
329 * tests/cp/no-deref-link2: Likewise.
330 * tests/cp/no-deref-link3: Likewise.
331 * tests/cp/perm: Likewise.
332 * tests/cp/preserve-2: Likewise.
333 * tests/cp/r-vs-symlink: Likewise.
334 * tests/cp/same-file: Likewise.
335 * tests/cp/slink-2-slink: Likewise.
336 * tests/cp/sparse: Likewise.
337 * tests/cp/special-bits: Likewise.
338 * tests/cp/src-base-dot: Likewise.
339 * tests/cp/symlink-slash: Likewise.
340 * tests/dd/not-rewound: Likewise.
341 * tests/dd/skip-seek2: Likewise.
342 * tests/dd/unblock-sync: Likewise.
343 * tests/du/2g: Likewise.
344 * tests/du/8gb: Likewise.
345 * tests/du/basic: Likewise.
346 * tests/du/deref: Likewise.
347 * tests/du/deref-args: Likewise.
348 * tests/du/exclude: Likewise.
349 * tests/du/fd-leak: Likewise.
350 * tests/du/hard-link: Likewise.
351 * tests/du/inaccessible-cwd: Likewise.
352 * tests/du/long-from-unreadable: Likewise.
353 * tests/du/long-sloop: Likewise.
354 * tests/du/no-deref: Likewise.
355 * tests/du/no-x: Likewise.
356 * tests/du/restore-wd: Likewise.
357 * tests/du/slash: Likewise.
358 * tests/du/slink: Likewise.
359 * tests/du/trailing-slash: Likewise.
360 * tests/du/two-args: Likewise.
361 * tests/fmt/long-line: Likewise.
362 * tests/install/basic-1: Likewise.
363 * tests/install/create-leading: Likewise.
364 * tests/install/d-slashdot: Likewise.
365 * tests/install/trap: Likewise.
366 * tests/ln/misc: Likewise.
367 * tests/ln/target-1: Likewise.
368 * tests/ls/color-dtype-dir: Likewise.
369 * tests/ls/dangle: Likewise.
370 * tests/ls/dired: Likewise.
371 * tests/ls/file-type: Likewise.
372 * tests/ls/follow-slink: Likewise.
373 * tests/ls/infloop: Likewise.
374 * tests/ls/inode: Likewise.
375 * tests/ls/m-option: Likewise.
376 * tests/ls/no-arg: Likewise.
377 * tests/ls/recursive: Likewise.
378 * tests/ls/rt-1: Likewise.
379 * tests/ls/stat-dtype: Likewise.
380 * tests/ls/stat-failed: Likewise.
381 * tests/ls/stat-vs-dirent: Likewise.
382 * tests/misc/cat-proc: Likewise.
383 * tests/misc/close-stdout: Likewise.
384 * tests/misc/csplit: Likewise.
385 * tests/misc/date-sec: Likewise.
386 * tests/misc/false-status: Likewise.
387 * tests/misc/head-c: Likewise.
388 * tests/misc/head-pos: Likewise.
389 * tests/misc/mknod: Likewise.
390 * tests/misc/nl: Likewise.
391 * tests/misc/nohup: Likewise.
392 * tests/misc/pathchk1: Likewise.
393 * tests/misc/printf: Likewise.
394 * tests/misc/printf-hex: Likewise.
395 * tests/misc/pwd-long: Likewise.
396 * tests/misc/shuf: Likewise.
397 * tests/misc/sort-rand: Likewise.
398 * tests/misc/split-a: Likewise.
399 * tests/misc/split-fail: Likewise.
400 * tests/misc/split-l: Likewise.
401 * tests/misc/stat-fmt: Likewise.
402 * tests/misc/tac-continue: Likewise.
403 * tests/misc/wc-files0: Likewise.
404 * tests/mkdir/concurrent-1: Likewise.
405 * tests/mkdir/p-1: Likewise.
406 * tests/mkdir/p-2: Likewise.
407 * tests/mkdir/p-3: Likewise.
408 * tests/mkdir/p-slashdot: Likewise.
409 * tests/mkdir/p-thru-slink: Likewise.
410 * tests/mkdir/p-v: Likewise.
411 * tests/mkdir/parents: Likewise.
412 * tests/mkdir/perm: Likewise.
413 * tests/mkdir/t-slash: Likewise.
414 * tests/mv/acl: Likewise.
415 * tests/mv/atomic: Likewise.
416 * tests/mv/backup-dir: Likewise.
417 * tests/mv/childproof: Likewise.
418 * tests/mv/diag: Likewise.
419 * tests/mv/dir-file: Likewise.
420 * tests/mv/dir2dir: Likewise.
421 * tests/mv/dup-source: Likewise.
422 * tests/mv/hard-2: Likewise.
423 * tests/mv/hard-3: Likewise.
424 * tests/mv/hard-4: Likewise.
425 * tests/mv/hard-link-1: Likewise.
426 * tests/mv/hard-verbose: Likewise.
427 * tests/mv/i-2: Likewise.
428 * tests/mv/i-3: Likewise.
429 * tests/mv/i-4: Likewise.
430 * tests/mv/i-5: Likewise.
431 * tests/mv/i-link-no: Likewise.
432 * tests/mv/into-self-4: Likewise.
433 * tests/mv/leak-fd: Likewise.
434 * tests/mv/mv-special-1: Likewise.
435 * tests/mv/no-target-dir: Likewise.
436 * tests/mv/part-fail: Likewise.
437 * tests/mv/part-hardlink: Likewise.
438 * tests/mv/part-rename: Likewise.
439 * tests/mv/part-symlink: Likewise.
440 * tests/mv/partition-perm: Likewise.
441 * tests/mv/perm-1: Likewise.
442 * tests/mv/reply-no: Likewise.
443 * tests/mv/trailing-slash: Likewise.
444 * tests/mv/update: Likewise.
445 * tests/od/od-N: Likewise.
446 * tests/od/x8: Likewise.
447 * tests/readlink/can-e: Likewise.
448 * tests/readlink/can-f: Likewise.
449 * tests/readlink/can-m: Likewise.
450 * tests/readlink/rl-1: Likewise.
451 * tests/rm/cycle: Likewise.
452 * tests/rm/dangling-symlink: Likewise.
453 * tests/rm/deep-1: Likewise.
454 * tests/rm/dir-no-w: Likewise.
455 * tests/rm/dir-nonrecur: Likewise.
456 * tests/rm/dot-rel: Likewise.
457 * tests/rm/empty-inacc: Likewise.
458 * tests/rm/f-1: Likewise.
459 * tests/rm/fail-2eperm: Likewise.
460 * tests/rm/hash: Likewise.
461 * tests/rm/i-1: Likewise.
462 * tests/rm/i-no-r: Likewise.
463 * tests/rm/ignorable: Likewise.
464 * tests/rm/inaccessible: Likewise.
465 * tests/rm/interactive-always: Likewise.
466 * tests/rm/interactive-once: Likewise.
467 * tests/rm/ir-1: Likewise.
468 * tests/rm/isatty: Likewise.
469 * tests/rm/no-give-up: Likewise.
470 * tests/rm/r-1: Likewise.
471 * tests/rm/r-2: Likewise.
472 * tests/rm/r-3: Likewise.
473 * tests/rm/r-4: Likewise.
474 * tests/rm/readdir-bug: Likewise.
475 * tests/rm/rm1: Likewise.
476 * tests/rm/rm2: Likewise.
477 * tests/rm/rm3: Likewise.
478 * tests/rm/rm4: Likewise.
479 * tests/rm/rm5: Likewise.
480 * tests/rm/sunos-1: Likewise.
481 * tests/rm/unread2: Likewise.
482 * tests/rm/unread3: Likewise.
483 * tests/rmdir/fail-perm: Likewise.
484 * tests/rmdir/t-slash: Likewise.
485 * tests/shred/exact: Likewise.
486 * tests/shred/remove: Likewise.
487 * tests/sum/sysv: Likewise.
488 * tests/tail-2/append-only: Likewise.
489 * tests/tail-2/assert: Likewise.
490 * tests/tail-2/assert-2: Likewise.
491 * tests/tail-2/big-4gb: Likewise.
492 * tests/tail-2/fflush: Likewise.
493 * tests/tail-2/infloop-1: Likewise.
494 * tests/tail-2/proc-ksyms: Likewise.
495 * tests/tail-2/start-middle: Likewise.
496 * tests/tail-2/tail-n0f: Likewise.
497 * tests/tee/basic: Likewise.
498 * tests/tee/dash: Likewise.
499 * tests/touch/fail-diag: Likewise.
500 * tests/touch/no-create-missing: Likewise.
501 * tests/touch/not-owner: Likewise.
502 * tests/touch/obsolescent: Likewise.
503 * tests/touch/read-only: Likewise.
504 * tests/touch/relative: Likewise.
506 2006-10-21 Jim Meyering <jim@meyering.net>
508 * NEWS: (cp --backup fix): Fix a typo.
510 * .gitignore: Remove some references to files in subdirectories.
511 * build-aux/.gitignore, doc/.gitignore, lib/.gitignore: New files.
512 * m4/.gitignore, po/.gitignore, src/.gitignore: Likewise.
514 * src/copy.c (copy_internal): Add a comment saying why we prefer
517 Enable an fts optimization (call lstat only for directories,
518 on some file system types) also with the --preserve-root option
520 * src/chown-core.c (change_file_owner): Compare fts_statp-based
521 dev/ino against root dev/ino only for directories.
522 (chown_files): Don't let the root_dev_ino setting influence whether
523 we use FTS_NOSTAT: fts always sets *fts_statp for a directory.
525 2006-10-20 Jim Meyering <jim@meyering.net>
527 * src/od.c (usage): Change description of default to use "-w16",
528 not the now-invalid "-w 16" syntax. From Dan Jacobson.
530 2006-10-19 Jim Meyering <jim@meyering.net>
532 * bootstrap: Add names to each .gitignore file (if it exists)
533 as well as to .cvsignore.
535 * Makefile.maint (po-check): This rule didn't detect the new use
536 of "gettext" (as opposed to the use of "_" everywhere else) in
537 lib/xstrtol.h. Adjust the grep regexp so that now it does.
539 2006-10-18 Paul Eggert <eggert@cs.ucla.edu>
541 * src/copy.c (copy_reg): Rewrite slightly to avoid duplicate code
542 when opening dst_name.
543 (copy_reg, copy_internal): Use (SYSCALL != 0) rather than plain
544 (SYSCALL) to test for failure in a system call.
546 * src/copy.c (copy_internal): Use mknod rather than mkfifo to copy
547 a fifo. This preserves the special mode bits on Solaris 10, which
548 is compatible with what Solaris 10 cp -R does.
550 * src/copy.c (copy_internal): Remove redundant and confusing local
553 * src/copy.c (copy_internal): Don't pass mkdir a mode greater than
554 7777. This matches historical 'cp' behavior and avoids some
555 (though not all) implementation-defined behavior of mkdir.
556 * src/cp.c (make_dir_parents_private): Likewise.
557 * src/copy.c (copy_internal): Don't pass 'open' a mode greater
558 than 777. This is required by POSIX. It doesn't make any difference
559 in actual behavior on any host that I know of.
561 2006-10-17 Jim Meyering <jim@meyering.net>
563 * src/dd.c (usage): Use two spaces (not one) to separate the
564 "fdatasync" option string from its description, so help2man formats
565 the derived man page properly. Reported by Samuel Thibault
566 in <http://bugs.debian.org/393649>.
568 2006-10-16 Jim Meyering <jim@meyering.net>
570 * .x-sc_trailing_blank: Remove names of files that are no longer
573 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
575 * src/groups.sh (version): Reword message to match the other programs.
576 Problem reported by Eric Blake.
578 2006-10-14 Jim Meyering <jim@meyering.net>
580 * Makefile.maint (headers_with_interesting_macro_defs): Define.
581 (.re-defmac, sc_always_defined_macros): New rules.
583 * src/system.h (EXIT_FAILURE, EXIT_SUCCESS): Remove definitions.
584 Instead, include "exit.h". This hereby retires the work-around for
585 "Sony NEWS-OS Release 4.0C"'s bug due to "#define EXIT_FAILURE 0".
587 * src/cksum.c (uint_fast32_t): Don't define.
588 Instead, include <stdint.h>.
590 * src/pinky.c (S_IWGRP): Don't define.
591 It's already defined by "stat-macros.h" (included via system.h).
593 * Makefile.cfg: Remove cruft that's now handled via bootstrap.
594 * Makefile.maint: Likewise, remove these targets/rules/variables:
595 (local_updates, update, cvs-update, wget_files, get-targets): Remove.
596 (cvs_files, wget-update, automake_repo): Likewise.
597 Move the comment about cvsu to build-aux/vc-list-files,
598 where cvsu is actually used.
600 * Makefile.maint (cvs-update): Use $(CVS), not "cvs".
602 Work also when the working directory (with e.g. coreutils sources)
603 is version controlled with git, rather than CVS.
604 * bootstrap (CVS_only_file): Test for the existence of README-cvs,
606 In messages and comments, say e.g., "checked-out sources",
607 rather than "CVS sources".
608 (version_controlled_file): New function. Work for git as well as
609 for CVS. Don't use grep's -q option.
610 (slurp): Call it here, in place of CVS-specific code.
612 * NEWS: cp -r --backup dir1 dir2, would rename an existing dir1/dir2
614 * src/copy.c (copy_internal): Although we do create a backup of each
615 destination directory when in move mode, don't do that when copying.
616 Reported by Peter Breitenlohner, in
617 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8616>.
618 * tests/cp/backup-dir: New file. Test for the above.
619 * tests/cp/Makefile.am (TESTS): Add backup-dir.
621 2006-10-13 Jim Meyering <jim@meyering.net>
623 More chown/chgrp dereferencing-related fixes.
624 * src/chown-core.c (change_file_owner): Don't use fts_statp if
625 we're dereferencing symlinks.
626 Reverse conjuncts, so that we use dereference file_stats
627 (aka ent->fts_statp) only *after* we've confirmed that
628 chopt->affect_symlink_referent is true. Otherwise, we might
629 use ent->fts_statp uninitialized.
630 Don't turn on FTS_NOSTAT when dereferencing symlinks.
631 * tests/chown/deref: Update the expected diagnostic, now that
632 this test case (trying to use "chown --dereference ..." on a
633 dangling symlink) takes a different code path.
635 2006-10-13 Paul Eggert <eggert@cs.ucla.edu>
637 Sync from Bison, as follows:
639 2006-10-01 Paul Eggert <eggert@cs.ucla.edu>
641 Fix problems with translating English-language diagnostics.
642 * bootstrap: Fix bug introduced in recent bootstrap changes, with
643 respect to bison-runtime pot generation. The YY_ stuff
644 wasn't being captured.
646 2006-10-13 Jim Meyering <jim@meyering.net>
648 * src/chown-core.c (change_file_owner): Use fstatat, not stat,
649 now that we're using fts_open with FTS_CWDFD.
650 * tests/chgrp/posix-H: Add --preserve-root to an invocation of
651 chgrp, to exercise the above fix.
652 * NEWS: Mention the above.
654 * src/du-tests: Clean up a little, though it's still not portable.
656 * .vg-suppressions: Add 3 more for debian unstable.
658 * tests/ls/Test.pm: Remove long-unused file.
659 * Makefile.am (EXTRA_DIST): Add bootstrap.conf.
660 Suggestions from Bruno Haible.
662 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
664 * Makefile.am (THANKS-to-translators): Add missing $(srcdir).
665 (MAINTAINERCLEANFILES): Add .kludge-stamp.
666 * man/Makefile.am (MAINTAINERCLEANFILES): Typo $(dist_man_MANS)
667 instead of $(man_MANS).
669 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
671 * configure.ac: Avoid compiler warnings about default return
672 type in function definitions and unused variables in tests.
673 * src/who.c (print_user) [HAVE_UT_HOST]: hostlen is only needed
676 2006-10-12 Jim Meyering <jim@meyering.net>
678 * configure.ac: Reflect s/gl_MACROS/coreutils_MACROS/ renaming.
679 Call gl_INIT directly, rather than through the above.
681 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
683 * bootstrap (symlink_to_gnulib): Fix bug: the dot_dots shell
684 variable was sometimes used without being initialized. This
685 messed up the installation of the INSTALL file in some cases.
687 2006-10-11 Jim Meyering <jim@meyering.net>
689 * src/ls.c (usage): Correct description of -s, --size.
690 It works even without -l. Suggestion from Karl Berry.
692 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
694 * src/ls.c (quote_name): Use initializer rather than memset to
695 initialize an object to zero. This is easier to read and is less
696 likely to introduce a runtime error due to a mixup. It causes
697 gcc -W to issue a warning, but you can work around this by
698 appending -Wno-missing-field-initializers.
699 * src/pathchk.c (portable_chars_only): Likewise.
700 * src/shred.c (main): Likewise.
701 * src/stty.c (main): Likewise.
702 * src/tr.c (card_of_complement): Likewise.
703 * src/wc.c (wc): Likewise.
705 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
707 * src/sort.c (usage): Mention again that sort fields are origin 1.
709 * NEWS: Fix typo: iso-8602 -> iso-8601. Problem reported by
712 * bootstrap (usage, main program, symlink_to_gnulib): Add option
713 --copy. Inspired by a suggestion from Bruno Haible.
715 2006-10-09 Jim Meyering <jim@meyering.net>
717 Avoid a compiler warning.
718 * src/pathchk.c (portable_chars_only): Initialize variable of type
719 mbstate_t via memset, rather than via '{0}'. Patch from Bruno Haible.
721 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
723 Fix bug reported today by Mike Frysinger: mkdir -pv is logging the
724 wrong file name in some cases. Lars Wendler reported a bug in
726 * src/install.c (make_ancestor): New arg COMPONENT.
727 * src/mkdir.c (make_ancestor): Likewise.
728 * tests/install/basic-1: Check for install -Dv bug.
729 * tests/mkdir/Makefile.am (TESTS): Add p-v.
730 * tests/mkdir/p-v: New file, to test this bug.
732 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
734 * src/chgrp.c: Don't include lchown.h; no longer needed.
735 * src/chown.c: Likewise.
737 * tests/ls/stat-dtype: Use a dynamic test to decide whether the
738 current file system has useful d_type info.
740 * src/dd.c (flags): noatime and nofollow now depend on
741 HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW, too.
742 (usage): Output info about noatime and nofollow only if
743 they are known to work.
744 * src/remove.c (AD_push): Inspect HAVE_WORKING_O_NOFOLLOW rather
745 than O_NOFOLLOW, when testing whether it's possible to avoid a
746 race condition reliably.
748 2006-10-05 Jim Meyering <jim@meyering.net>
750 * src/c99-to-c89.diff: Update to reflect new offsets.
752 * tests/install/basic-1: Skip the latter part of this test if the
753 just-built dd binary is not readable. Otherwise, this test would fail
754 when binaries were created as root. Reported by Bauke Jan Douma in
755 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8433>.
757 2006-10-03 Paul Eggert <eggert@cs.ucla.edu>
759 * src/system.h (ST_BLKSIZE): Ceiling at SIZE_MAX / 8 + 1, not at 4
760 MiB, since XFS hosts can legitimately have large values of
761 st_blksize. Problem reported by Tony Ernst in
762 <http://savannah.gnu.org/bugs/?17903>.
764 2006-10-04 Jim Meyering <jim@meyering.net>
766 * src/remove.c (nonexistent_file_errno): Remove ENAMETOOLONG.
767 Paul Eggert pointed out that the specified file may exist,
768 in spite of such an errno value.
769 * tests/rm/Makefile.am (TESTS): Remove ignore-name-too-long.
770 * tests/rm/ignore-name-too-long: Remove file.
771 * NEWS: Update here, too.
773 2006-10-03 Jim Meyering <jim@meyering.net>
775 * tests/rm/fail-eperm: Report failure also if rm is terminated by
778 * src/c99-to-c89.diff: Convert two c99'isms -- one in remove.c
779 and one in shred.c -- that were added before coreutils-6.3.
780 Reported by Michael Deutschmann.
782 * src/c99-to-c89.diff: Update to reflect new offsets.
784 * src/remove.c (remove_entry): With -f, exit successfully in spite
785 of a missing file under some very unusual conditions (with errno
786 being any of ENOENT, ENOTDIR, ENAMETOOLONG).
788 With --force (-f), rm no longer fails for ENOTDIR.
789 * src/remove.c (ignorable_missing): New function.
790 Use it everywhere, rather than open-coding the test.
791 Andreas Schwab reported the ENOTDIR problem.
792 (ignorable_missing): Similarly, don't fail for ENAMETOOLONG.
794 * NEWS: Mention the bug fix.
795 * tests/rm/ignorable: New file. Test for the ENOTDIR case.
796 * tests/rm/ignore-name-too-long: New file. Test for ENAMETOOLONG.
797 * tests/rm/Makefile.am (TESTS): Add the new file names.
799 * bootstrap: Undo last change to this file, since now gnulib-tool
800 sticks with the automake default in generating dependencies.
802 * NEWS: Add a line for 6.4-cvs.
803 * configure.ac (AC_INIT): Bump to 6.4 and add "-cvs" suffix.
805 2006-09-30 Jim Meyering <jim@meyering.net>
808 * NEWS: Record the 6.3 release date.
809 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
811 * NEWS: Mention Paul's Solaris 8 vs. 10 work-around.
813 * src/c99-to-c89.diff: Update offsets.
815 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
817 * tests/rm/readdir-bug: Don't use $(...) in a shell script,
818 as it doesn't work with Solaris /bin/sh.
820 2006-09-29 Jim Meyering <jim@meyering.net>
822 * NEWS: Mention Paul's fix (to gnulib's canon-host.c) for
825 * tests/seq/basic [neg-2, eq-wid-2]: Comment out tests that
826 use .1 as the increment. Actual output varies too much.
827 [eq-wid-3]: New, commented out test.
829 * src/shuf.c (read_input): Fix an off-by-one error that
830 would cause an infloop for piped input of 8KB or more.
831 * NEWS: Mention the fix.
832 * tests/misc/shuf: Test for the above fix.
834 Since any system may be affected by the Darwin readdir bug,
835 perform the extra rewinddir unconditionally. The performance
836 impact of rewinding a directory is negligible.
837 * src/remove.c (NEED_REWIND): Define to use
838 CONSECUTIVE_READDIR_UNLINK_THRESHOLD unconditionally.
840 * tests/seq/basic: Use .11 as the upper bound, in case the ".1"
841 increment translates to a slightly larger value.
842 This corrects a test failure on FreeBSD 6.1 reported by Nelson Beebe.
843 The final expected value wasn't being printed.
845 Work around a readdir bug in Darwin 7.9.0 (MacOS X 10.3.9) on HFS+
846 and NFS, whereby rm would not remove all files in a directory.
847 * src/remove.c (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Reduce to 10.
848 (NEED_REWIND): New macro, so that we incur the cost of the work-around
849 rewinddir only on afflicted systems.
850 * NEWS: Clarify and correct.
851 * tests/rm/readdir-bug: New file. Test for the above fix.
852 * tests/rm/Makefile.am (TESTS): Add it.
853 Prompted by testing and analysis from Bruno Haible:
854 http://lists.gnu.org/archive/html/bug-coreutils/2006-09/msg00326.html
856 2006-09-28 Paul Eggert <eggert@cs.ucla.edu>
858 * tests/rm/fail-eperm: Unset BASH_ENV, CDPATH, and ENV, too;
859 suggested for Debian stable, which uses Perl 5.8.4.
861 2006-09-28 Jim Meyering <jim@meyering.net>
863 Automatically generated dependencies are important even
864 when all of the sources in a directory come from gnulib.
865 * bootstrap (gnulib_tool): Remove the "no-dependencies" automake
866 option that gnulib-tool adds to what becomes our lib/gnulib.mk.
868 * tests/rm/fail-eperm: Enable Perl's (-T) taint checking.
869 Ensure that IFS is set properly and unset PATH.
871 Work properly even when the name of the selected file starts with "-".
872 Invoke rm via "../../src/rm", and adjust expected output.
873 Prompted by a patch from Tim Waugh.
875 * README-cvs: Add Bison to the list of required packages.
877 2006-09-26 Jim Meyering <jim@meyering.net>
879 * src/c99-to-c89.diff: Update offsets.
881 * NEWS: rm works around a bug in Darwin 8.6.1 w/NFS that kept
882 it from removing a directory containing 188 or more entries.
883 * src/remove.c (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Decrease by
884 20, go work around the buggy readdir on Darwin 8.6.1 with NFS.
885 Reported by Matthew Woehlke.
887 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
889 * NEWS: "groups user" no longer outputs "user :"; you need at least
890 two users. "groups" now processes options like --help more compatibly.
891 * src/groups.sh: Implement the option-processing change.
892 Handle user and group names with special characters more robustly.
893 Report write errors instead of exiting silently with status 1.
895 2006-09-26 Jim Meyering <jim@meyering.net>
897 * README: Warn not to run autoreconf manually. Use bootstrap instead.
899 * src/groups.sh: When invoked with 0 or 1 argument, just exec "id".
900 Rewrite to avoid using temporary, $status.
902 * NEWS: Mention the bug fix.
903 * src/groups.sh: Don't hide a write failure.
904 Reported by Iain Calder <ic56@rogers.com>.
906 2006-09-25 Jim Meyering <jim@meyering.net>
908 * src/chown.c (usage): Clarify --dereference description.
909 * src/chgrp.c (usage): Likewise. Suggestion from Jamie McClelland.
911 2006-09-24 Jim Meyering <jim@meyering.net>
913 * NEWS: Mention these fixes.
914 * src/copy.c (copy_reg): With --verbose (-v), print
915 "removed `file_name'" just after unlinking a file.
916 (copy_internal): Likewise, in three more places.
917 Marc Lehman reported that "touch x; ln x y; mv -v x y" was silent.
918 * tests/mv/hard-verbose: New file. Test for the above fix.
919 * tests/mv/Makefile.am (TESTS): Add hard-verbose.
921 * tests/help-version (sync_args): Don't call sync, since it spins up
922 disks that I've deliberately caused to spin down (but not unmounted).
924 * NEWS: Mention the improvement to sort.
926 * tests/tail-2/proc-ksyms: Require that /proc/ksyms be readable
929 * tests/ls/stat-dtype: Don't use tmpfs on linux-2.4 or older,
930 since that predated addition of d_type support.
932 2006-09-23 Jim Meyering <jim@meyering.net>
934 * gl/modules/getloadavg.diff: New file. Work around the way the latest
935 version of the getloadavg module interacts with our bootstrap script.
936 * bootstrap (gnulib_tool_options): Add "--local-dir gl".
937 * Makefile.am (EXTRA_DIST): Sort file names.
938 Add bootstrap and gl/modules/getloadavg.diff
940 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
942 * bootstrap: Add support for --force.
943 (usage): New function. Describe usage less tersely.
944 (CVS_only_file): New var.
946 * NEWS: Document fix for cp -i and mv -i.
947 * src/copy.c (copy_internal): With -i, prompt even if the source
948 is a directory and the destination is not. This is required by
949 POSIX and gives the user a chance to bail out before failing.
950 * tests/cp/Makefile.am (TESTS): Add cp-i.
951 * tests/cp/cp-i: New file.
952 * tests/mv/Makefile.am (TESTS): Add i-5.
953 * tests/mv/i-5: New file.
955 2006-09-20 Jim Meyering <jim@meyering.net>
957 * NEWS: Mention the chmod bug fix.
959 * tests/chmod/inaccessible: New test, specifically for this bug.
960 Based on a test case from Paul Eggert.
961 * tests/chmod/Makefile.am (TESTS): Add inaccessible.
963 Fix the 2006-09-18 bug differently.
964 * src/chmod.c: (process_file): Upon FTS_NS for a top-level file,
965 tell fts_read to stat the file again, in case it has become
966 accessible since the initial fts_open call.
967 * src/chown-core.c (change_file_owner): Likewise.
969 * src/chmod.c: Revert last change. There is a better way.
970 * src/chown-core.c: Likewise.
972 2006-09-19 Paul Eggert <eggert@cs.ucla.edu>
974 * src/ln.c (target_directory_operand): Rewrite to avoid porting
975 problem on Tandem reported by Matthew Woehlke in
976 <https://savannah.gnu.org/bugs/?17172>.
978 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
980 Fix bug where chmod, chown, and chgrp did not process operands
981 left-to-right in some cases.
982 * src/chmod.c (wd_errno): New var.
983 (chmod_file): New function, with most of the contents of the
984 old prcess_file function.
985 (process_files): Use it. This gives file names to fts one
986 at a time, so that they are processed left-to-right as POSIX
988 * src/chown-core.c (wd_errno, chown_files): Likewise.
989 (chown_file): New function.
990 * tests/install/basic-1: Redo test so as to not workaround
991 the chmod bug, thereby testing for it.
993 * src/shuf.c (main): Quote the entire range when reporting an
994 invalid one, rather than just the part that contained the error.
996 * tests/stty/row-col-1: Rewrite to avoid temporary file that is
997 sometimes left behind if the test is skipped or interrupted.
999 * bootstrap (symlink_to_gnulib): New function.
1000 (cp_mark_as_generated): Use it, to prefer symlinks-to-gnulib
1001 to copies-of-gnulib.
1002 (cp_mark_as_generated, slurp, gnulib_files):
1003 Avoid making a copy if it's the same as the old version.
1004 (gnulib_files): Add support for this variable (used by Bison).
1006 * tests/ls/stat-vs-dirent: Fix quoting problem in diagnostic
1007 indicating flaw in kernel. Reword to say that the flaw isn't
1008 serious for coreutils, since the flaw does affect ls -i.
1010 * tests/chgrp/basic: Fix bug in test case exposed by building on
1011 Solaris 8 in a setgid directory. The test case incorrectly
1012 assumed that 'symlink' would be in group $g1.
1014 2006-09-18 Jim Meyering <jim@meyering.net>
1016 * NEWS: Add a line for 6.3-cvs.
1017 * configure.ac (AC_INIT): Bump to 6.3 and add "-cvs" suffix.
1020 * NEWS: Record the 6.2 release date.
1021 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
1023 2006-09-17 Jim Meyering <jim@meyering.net>
1025 * tests/chgrp/basic: On an OpenBSD system, rather than failing
1026 due to a known problem, merely warn about it.
1027 Rewrite to avoid testing output of chgrp --verbose and chgrp -c.
1028 Instead, use stat to test file system for desired results, directly.
1029 * tests/chgrp/Makefile.am (TESTS_ENVIRONMENT): Set host_triplet.
1031 * tests/envvar-check: Add more variable names to the list of those
1032 that can affect these programs and tests: _POSIX2_VERSION, COLUMNS,
1033 QUOTING_STYLE, TABSIZE, TERM, TMPDIR.
1035 2006-09-16 Paul Eggert <eggert@cs.ucla.edu>
1037 * NEWS: Document that mkdir -p and install -d now fork on occasion.
1038 * bootstrap.conf (gnulib_modules): Add savewd.
1039 * src/install.c: Include savewd.h.
1040 (process_dir): New function.
1041 (main, install_file_in_file_parents): Use it, along with the new
1042 savewd module, to avoid some race conditions.
1043 * src/mkdir.c: Include savewd.h.
1044 (struct mkdir_options): New members make_ancestor_function, mode,
1046 (make_ancestor): Return 1 if the resulting directory is not readable.
1047 (process_dir): New function.
1048 (main): Use it, along with new savewd module, to avoid some
1049 race conditions. Fill in new slots of struct mkdir_options, so
1050 that callees get the values.
1051 * tests/install/basic-1: Test for coreutils 5.97 bug that was
1052 fixed in coreutils 6.0, and which should still be fixed with
1054 * tests/mkdir/p-3: Likewise.
1056 2006-09-15 Jim Meyering <jim@meyering.net>
1058 * bootstrap.conf (gnulib_modules): Add rename-dest-slash.
1059 The 2006-09-08 changes made it so "mv dir new-name/" would
1060 fail on NetBSD 1.6. This makes it work once again.
1062 2006-09-14 Jim Meyering <jim@meyering.net>
1064 * src/mv.c (main): Remove unnecessary (always-true) test for 2 <= n.
1065 Instead, since it's a little fragile, assert the condition.
1066 (target_directory_operand): Update comment to reflect latest change.
1068 2006-09-12 Paul Eggert <eggert@cs.ucla.edu>
1070 * src/who.c (print_user): Rewrite to avoid warning from
1071 GCC 4.1.1 with -Wall.
1073 2006-09-12 Jim Meyering <jim@meyering.net>
1075 * tests/mv/atomic: Check for specific strace output, rather than
1076 simply nonempty. RHEL AS 4 would fail this test due to strace
1077 generating "[ Process PID=14434 runs in 32 bit mode. ]".
1078 Reported by Nelson Beebe.
1080 2006-09-11 Jim Meyering <jim@meyering.net>
1082 * src/remove.c (remove_dir): Move new cache_stat_init call onto
1084 (rm_1): Move declaration of "st" and new cache_stat_init call
1085 "down" to nearer where they're used.
1086 * src/c99-to-c89.diff: Add another set of curly braces.
1088 2006-09-10 Paul Eggert <eggert@cs.ucla.edu>
1090 * src/expr.c (eval6): Fix buffer overrun, or bad performance, if
1091 substr's last operand is very large. Performance problem reported
1094 2006-09-09 Jim Meyering <jim@meyering.net>
1096 * Makefile.maint (sc_prohibit_jm_in_m4): Don't hang when there
1098 (sc_require_config_h): Skip this test if there are no version-
1099 controlled .c files.
1100 (sc_prohibit_assert_without_use): Likewise.
1102 2006-09-08 Jim Meyering <jim@meyering.net>
1104 * bootstrap: Export CVS_RSH separate from its assignment, to work
1105 even with Solaris 10's /bin/sh. Suggestion from Mark D. Baushke.
1107 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1109 * NEWS: tail now ignores the -f option if POSIXLY_CORRECT is set,
1110 no file operand is given, and standard input is any FIFO.
1111 This is in response to Open Group XCU ERN 114.
1112 * src/tail.c (main): Likewise.
1114 2006-09-08 Jim Meyering <jim@meyering.net>
1116 mv and "cp -r" no longer fail when invoked with two arguments
1117 where the first one names a directory and the second name ends in
1118 a slash and doesn't exist. E.g., "mv dir B/", for nonexistent B,
1119 now succeeds, once more. This reverts part of the 2004-06-27
1121 * NEWS: Say the above.
1122 * src/mv.c (target_directory_operand): Don't require (here)
1123 that the target operand "look like" a directory. This change
1124 pushes the test down to the rename syscall level, where a
1125 "mv dir existing-non-dir/" will mistakenly succeed on older systems
1126 that ignore trailing slashes in the rename destination argument.
1127 * src/cp.c (target_directory_operand): Likewise, but for cp.
1128 * tests/mv/trailing-slash: Exercise the above fixes.
1129 * tests/cp/trailing-slash: New file.
1130 * tests/cp/Makefile.am (EXTRA_DIST): Add trailing-slash.
1132 * bootstrap: Use the previously unused variable, $src,
1133 to avoid repeating "$GNULIB_SRCDIR/$file".
1135 * bootstrap (cp_mark_as_generated): Don't use "local", to
1136 accommodate ancient "/bin/sh". Suggested by Ralf Wildenhues.
1137 Rename now-global "$src" and "$dst" to have cp_ prefix.
1138 Safer, and avoids confusion.
1140 * bootstrap (cp_mark_as_generated): New function.
1141 (slurp): Use it to prepend editor hints and a warning that
1142 the file we're copying is generated.
1143 Suggestion from Bruce Korb.
1144 (cp_mark_as_generated): Don't add C-style comments for .l or .y files.
1145 Fix last-minute typo.
1147 2006-09-07 Jim Meyering <jim@meyering.net>
1149 * bootstrap: Revert last change. There are less disruptive ways
1150 to mark these generated files as read-only.
1152 * src/c99-to-c89.diff: Update to have proper offsets.
1154 2006-09-06 Jim Meyering <jim@meyering.net>
1156 Ensure that some gnulib-tool-generated files are read-only.
1157 * bootstrap (slurp): Put the body of this function in a sub-shell,
1158 with "umask a-w" so that all new files are read-only. Remove each
1159 file before we write to it, in case it's read-only.
1160 Make po/Makevars and runtime-po/Makevars read-only, too.
1162 2006-09-05 Jim Meyering <jim@meyering.net>
1164 * tests/cp/acl: Skip this test when cp lacks ACL support.
1165 * tests/cp/Makefile.am (TESTS_ENVIRONMENT): Set $(CONFIG_HEADER).
1167 * src/c99-to-c89.diff (remove.c): Adapt one hunk to match the new
1168 context from change of 2006-09-02.
1170 2006-09-04 Jim Meyering <jim@meyering.net>
1172 * README-cvs: Fix typo in update command.
1174 2006-09-03 Jim Meyering <jim@meyering.net>
1176 * NEWS: Tweak the wording in the new change description so that
1177 no one can think this change causes e.g., `rm -fr foo../' to fail.
1179 * tests/rm/inaccessible: Adjust for movement of config.h to lib/.
1180 Use $CONFIG_HEADER, rather than hard-coding it.
1181 * tests/rm/Makefile.am (TESTS_ENVIRONMENT): Set $CONFIG_HEADER.
1183 2006-09-02 Paul Eggert <eggert@cs.ucla.edu>
1185 * NEWS: rm now rejects attempts to remove /, ./, and ../.
1186 * src/basename.c: Don't include dirname.h, since system.h does it now.
1187 * src/chmod.c: Likewise.
1188 * src/copy.c: Likewise.
1189 * src/cp.c: Likewise.
1190 * src/df.c: Likewise.
1191 * src/dircolors.c: Likewise.
1192 * src/dirname.c: Likewise.
1193 * src/du.c: Likewise.
1194 * src/install.c: Likewise.
1195 * src/ln.c: Likewise.
1196 * src/ls.c: Likewise.
1197 * src/mkdir.c: Likewise.
1198 * src/mv.c: Likewise.
1199 * src/remove.c: Likewise.
1200 * src/rm.c: Likewise.
1201 * src/rmdir.c: Likewise.
1202 * src/shred.c: Likewise.
1203 * src/split.c: Likewise.
1204 * src/su.c: Likewise.
1205 * src/system.h: Include "dirname.h", since dot_or_dotdot needs it
1207 (dot_or_dotdot): Succeed even if "." or ".." is followed by a
1209 * src/rm.c (usage, main): --preserve-root is now the default.
1210 * src/remove.h: Fix comment.
1211 * src/remove.c (cache_fstatat, cache_stat_init): New functions.
1212 (cache_statted, cache_stat_ok): New functions.
1213 (write_protected_non_symlink): Remove struct stat ** buf_p arg,
1214 which is no longer needed with the new functions. All callers
1216 (prompt, is_dir_lstat, remove_entry, remove_dir):
1217 New struct stat * arg. All callers changed.
1218 (write_protected_non_symlink, prompt, is_dir_lstat, remove_entry):
1219 (remove_cwd_entries, remove_dir, rm_1):
1220 Use and maintain the file status cache.
1221 (prompt, remove_entry): Omit the first "directory" in the diagnostic
1222 "Cannot remove directory `foo': is a directory". This causes "rm"
1223 to pass a test case that it would otherwise fail now that it
1224 "knows" more about its argument. I think the diagnostic is better
1225 without the first "directory" anyway.
1226 (prompt): Remove the no-longer-needed IS_DIR arg; all callers changed.
1227 (rm_1): Reject attempts to remove /, ./, or ../.
1228 * tests/rm/Makefile.am (TESTS): Add r-4.
1229 * tests/rm/r-4: New file.
1231 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1233 * src/stat.c: Include <stddef.h>
1234 (alignof): New macro.
1235 (HAVE_STRUCT_STATXFS_F_FSID___VAL, HAVE_STRUCT_STATXFS_F_FSID_VAL):
1237 (STRUCT_STATXFS_F_FSID_IS_INTEGER): New macro.
1239 (print_statfs): If f_fsid isn't an integer, grab its words one
1240 at a time in little-endian order. This is a bit easier to configure
1241 and should avoid a compilation failure on MacOS reported by Bruno
1244 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1246 * src/stat.c (HAVE_STRUCT_STATXFS_F_FSID_VAL, FSID_VAL): New macros, to
1247 work around a Mac OS X porting problem reported by Bruno Haible in
1248 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00308.html>.
1249 (print_statfs): Use them.
1251 * bootstrap.conf (gnulib_modules): Add isapipe.
1252 * src/tail.c: Include isapipe.h.
1253 (IS_PIPE_LIKE_FILE_TYPE): Remove.
1254 (IS_TAILABLE_FILE_TYPE): Just list both FIFOs and sockets as
1255 tailable, since this seems to be portable.
1256 (main): Use isapipe, to fix a bug on MacOS X reported by Bruno Haible in
1257 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00304.html>.
1259 * src/system.h (LOCALEDIR): Remove, since configmake.h now defines
1262 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1264 * src/copy.c (copy_internal): Don't test whether macros like
1265 S_ISLNK are defined, since they're always defined now.
1266 * src/cp.c (main): Likewise.
1267 * src/ln.c (main): Likewise.
1268 * src/ls.c (get_link_name, make_link_name): Likewise.
1269 * src/mknod.c (main): Likewise.
1270 * src/mkfifo.c (usage): Likewise.
1271 * src/who.c (S_IWGRP): Likewise.
1273 Adjust to recent gnulib changes for the gnulib module.
1274 * bootstrap.conf (gnulib_modules): Add fcntl.
1275 * src/system.h (SEEK_SET, SEEK_CUR, SEEK_END): Remove. Other code
1276 is already assuming these macros are defined.
1277 (O_DIRECT, O_DIRECTORY, O_DSYNC, O_NDELAY, O_NOATIME, O_NONBLOCK):
1278 (O_NOCTTY, O_NOFOLLOW, O_NOLINKS, O_RSYNC, O_SYNC, O_BINARY, O_TEXT):
1279 Remove; the fcntl module now handles these.
1281 Adjust to recent gnulib changes for the inttypes module.
1282 * bootstrap.conf (gnulib_modules): Remove stdint; add inttypes.
1283 (excluded_files): Don't exclude m4/inttypes-h.m4 or m4/inttypes-pri.m4.
1285 * src/system.h: Don't bother to include <stdint.h>, since we can
1286 now assume inttypes.h does the equivalent of including stdint.h.
1288 2006-08-27 Jim Meyering <jim@meyering.net>
1290 * src/copy.c (copy_internal): Don't make a backup if the last
1291 component of the source name is "." or "..".
1292 Reported by Andreas Schwab in http://savannah.gnu.org/bugs/?17540.
1293 * NEWS: Mention this.
1294 * tests/cp/src-base-dot: New file. Test for the above fix.
1295 * tests/cp/Makefile.am (TESTS): Add src-base-dot.
1297 * src/system.h (DOT_OR_DOTDOT): Remove macro. Rewrite as a...
1298 (dot_or_dotdot): ...new static inline function.
1299 * src/remove.c (rm_1): Reflect this renaming.
1300 * src/ls.c (basename_is_dot_or_dotdot): Likewise.
1302 * src/copy.c (copy_internal): Add comments.
1304 2006-08-26 Paul Eggert <eggert@cs.ucla.edu>
1306 * src/Makefile.am (AM_CPPFLAGS): Remove -I$(srcdir) and -I../lib,
1307 since Automake supplies them for us. It always did -I$(srcdir),
1308 and with the recent change to AC_CONFIG_HEADERS in configure.ac it
1309 is now also doing -I../lib.
1311 * bootstrap (get_translations): Skip this if WGET_COMMAND is empty.
1312 Fail if the first "echo" fails. Suppress diagnostics from "ls po/*.po"
1313 since there might not be any .po files.
1314 (WGET_COMMAND): Set to empty if wget doesn't
1315 seem to be available.
1317 2006-08-26 Jim Meyering <jim@meyering.net>
1319 This test was failing in some environments.
1320 * tests/ls/color-dtype-dir: Don't rely on eval "`dircolors -b`"
1321 to set LS_COLORS in the environment.
1322 * tests/envvar-check: Instead, ensure that LS_COLORS is not set.
1323 Reported by Bob Proulx.
1325 * src/c99-to-c89.diff: Remove hunk for copy.c; no longer needed.
1327 * Makefile.am (EXTRA_DIST): Remove these files here, too:
1328 .x-sc_no_if_have_config_h, .x-sc_prohibit_assert_without_use,
1329 .x-sc_two_space_separator_in_usage.
1331 Fix "mv --verbose --backup" so its output includes the
1332 " (backup: foo.~1~)" suffix also when backing up a directory.
1333 * NEWS: Report this bug fix.
1334 * src/copy.c (emit_verbose): New function, factored out of...
1335 (copy_internal): ...here. Use the new function.
1336 * tests/mv/backup-dir: Test for the above fix.
1337 * tests/mv/Makefile.am (TESTS): Add backup-dir.
1339 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
1341 * .x-sc_no_if_have_config_h: Remove; no longer needed.
1342 * .x-sc_prohibit_assert_without_use: Remove; it was empty.
1343 * .x-sc_two_space_separator_in_usage: Likewise.
1344 * Makefile.maint (sc_no_have_config_h): Renamed from
1345 sc_no_if_have_config_h, since it now checks that HAVE_CONFIG_H
1346 is absent everywhere.
1347 * bootstrap.conf (gnulib_modules): Add config-h.
1348 * src/shred.c: Include <config.h> unconditionally, since
1349 we now assume config.h exists.
1350 * src/dircolors.c: Likewise.
1352 2006-08-26 Jim Meyering <jim@meyering.net>
1354 "ls --color" would highlight other-writable and sticky directories
1355 no differently than regular directories on a file system with
1356 dirent.d_type support.
1357 * NEWS: Say the above.
1358 * src/ls.c (gobble_file): With --color, also stat the file when
1359 we know it is a directory.
1360 Derived from an anonymous one-line fix and bug report:
1361 <http://savannah.gnu.org/bugs/?15043>.
1362 * tests/ls/color-dtype-dir: New file. Test for the above fix.
1363 * tests/ls/Makefile.am (TESTS): Add color-dtype-dir.
1365 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
1367 * .cvsignore: Remove stamp-h1. Add coreutils-*, to ignore
1369 * bootstrap.conf: Add configmake, verify.
1370 * src/.cvsignore: Remove localedir.h.
1371 * src/Makefile.am (localedir, DISTCLEANFILES, localedir.h): Remove;
1372 subsumed by configmake.
1373 * src/system.h: Include configmake.h rather than localedir.h
1374 (LOCALEDIR): New macro.
1376 Rewrite to avoid some unnecessary casts, macros, literals.
1377 * src/shred.c (DEFAULT_PASSES, VERBOSE_UPDATE): Now constants,
1379 (SECTOR_SIZE, SECTOR_MASK): New constants.
1380 (fillpattern, dopass, do_wipefd, main): Remove unnecessary casts,
1381 and use the SECTOR_* constants when applicable. Check for size <
1382 0 rather than size == -1, since negative-size files are a sign of
1385 2006-08-25 Bruno Haible <bruno@clisp.org>
1387 * src/shred.c (dopass): Assume a continuable error if EIO even
1388 if the current position is not a multiple of 512.
1390 2006-08-24 Jim Meyering <jim@meyering.net>
1392 * src/stat.c (print_statfs): Fix typo: remove extra "sizeof".
1394 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
1396 * src/stat.c (HAVE_STRUCT_STATXFS_F_FSID___VAL): Define. This
1397 macro was being used without being defined.
1398 (SB_F_NAMEMAX): Remove cast.
1399 (f_fsid) [BeOS]: Likewise.
1400 (OUT_NAMEMAX): Renamed from NAMEMAX_FORMAT, with a new meaning.
1402 (out_string, out_int, out_uint, out_uint_o, out_uint_x): New
1404 (xstrcat): Remove. All uses changed to use the above functions.
1405 (print_statfs, print_stat): 2nd arg is now the prefix len, not the
1406 buffer len. All uses changed. Output '?', not '*', for unknown
1407 data or errors. Do not assume signed values can be interchanged
1408 with unsigned when printing.
1409 (print_statfs): For %i, print the fsid as a single int, not as a
1411 (print_it): Quote invalid format better.
1413 * NEWS: printf supports the I flag.
1414 * src/printf.c (print_formatted) [glibc 2.2 or later]: Likewise.
1416 2006-08-23 Bruno Haible <bruno@clisp.org>
1418 * src/stat.c (STRUCT_STATVFS, statfs, f_fsid, f_blocks, f_bfree) [BeOS]:
1419 (f_bavail, f_bsize, STATFS_FRSIZE, f_files, f_ffree) [BeOS]:
1420 (STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME) [BeOS]: Define.
1422 * src/ls.c (SA_RESTART): Fallback define.
1424 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
1426 * src/system.h (EDQUOT): Define if not already defined.
1427 Problem reported by Bruno Haible for BeOS.
1429 * .cvsignore: Remove config.h, config.hin, as they are now
1431 * configure.ac (AC_CONFIG_HEADERS): Move config.h and config.hin
1433 * src/Makefile.am (AM_CPPFLAGS): Remove '-I..'; no longer needed.
1435 * bootstrap (slurp): Define gl_LOCK_EARLY instead of gl_LOCK,
1436 to accommodate today's gnulib change.
1438 2006-08-23 Jim Meyering <jim@meyering.net>
1440 * NEWS: Mention the sweeping infrastructure changes.
1442 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
1444 * bootstrap.conf (gnulib_modules): Add gnupload.
1445 * Makefile.maint (emit_upload_commands): gnupload is now
1447 * gnupload: Remove from CVS, since it's now a gnulib module.
1449 * bootstrap (bootstrap_conf_cleanup): Remove.
1450 (excluded_files): New var.
1451 * bootstrap.conf: Likewise.
1452 * bootstrap (slurp): Exclude files early if they're in the
1453 excluded_files list. That way, their names don't get put into
1456 * aclocal.m4, config.hin, configure:
1457 Remove from CVS, since ./bootstrap generates them automatically.
1458 * .cvsignore: Add INSTALL, Makefile.in, aclocal.m4, config.hin,
1459 configure, *.cache, *.lineno, *.log.
1460 Remove more-specific entries. This catches files like configure.lineno.
1461 * man/.cvsignore: Add Makefile.in.
1462 * src/.cvsignore: Add Makefile.in.
1463 Remove .version, dir.c, install, mvdir, stamp-v, vdir.c, version.c.
1466 * tests/chgrp/.cvsignore:
1467 * tests/chmod/.cvsignore:
1468 * tests/chown/.cvsignore:
1469 * tests/cp/.cvsignore:
1470 * tests/cut/.cvsignore:
1471 * tests/dd/.cvsignore:
1472 * tests/dircolors/.cvsignore:
1473 * tests/du/.cvsignore:
1474 * tests/expr/.cvsignore:
1475 * tests/factor/.cvsignore:
1476 * tests/fmt/.cvsignore:
1477 * tests/head/.cvsignore:
1478 * tests/install/.cvsignore:
1479 * tests/join/.cvsignore:
1480 * tests/ln/.cvsignore:
1481 * tests/ls/.cvsignore:
1482 * tests/ls-2/.cvsignore:
1483 * tests/md5sum/.cvsignore:
1484 * tests/misc/.cvsignore:
1485 * tests/mkdir/.cvsignore:
1486 * tests/mv/.cvsignore:
1487 * tests/od/.cvsignore:
1488 * tests/pr/.cvsignore:
1489 * tests/readlink/.cvsignore:
1490 * tests/rm/.cvsignore:
1491 * tests/rmdir/.cvsignore:
1492 * tests/seq/.cvsignore:
1493 * tests/sha1sum/.cvsignore:
1494 * tests/shred/.cvsignore:
1495 * tests/sort/.cvsignore:
1496 * tests/stty/.cvsignore:
1497 * tests/sum/.cvsignore:
1498 * tests/tac/.cvsignore:
1499 * tests/tail/.cvsignore:
1500 * tests/tail-2/.cvsignore:
1501 * tests/tee/.cvsignore:
1502 * tests/test/.cvsignore:
1503 * tests/touch/.cvsignore:
1504 * tests/tr/.cvsignore:
1505 * tests/tsort/.cvsignore:
1506 * tests/unexpand/.cvsignore:
1507 * tests/uniq/.cvsignore:
1508 * tests/wc/.cvsignore:
1509 Add Makefile.in. Sort entries if necessary. Remove *.I, *.E,
1510 *.X, *.O, *-tests, build-script, mk-script if they're never
1511 created in this directory.
1513 2006-08-22 Bruno Haible <bruno@clisp.org>
1516 * src/uptime.c: Include OS.h if it exists.
1517 (print_uptime): On BeOS, use the get_system_info function (actually a
1518 macro). Loop through utmp entries only if utmp.h or utmpx.h exists.
1519 (uptime): Call read_utmp only if utmp.h or utmpx.h exists.
1521 2006-08-22 Jim Meyering <jim@meyering.net>
1523 * .cvsignore: Add ABOUT-NLS.
1525 Move the check-AUTHORS rule to be run as part of "make distcheck",
1526 rather than "make check".
1527 * src/Makefile.am (check): Don't depend on check-AUTHORS; it would
1528 cause "make check" to fail on systems unable to build all binaries.
1529 * Makefile.maint (check-AUTHORS): New rule.
1530 (local-checks-available): Add it here.
1531 Reported by Bruno Haible. Needed for BeOS.
1533 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
1535 * src/df.c (print_header, show_dev): Use a column width that
1536 depends on the block size of -P is specified and not autoscaling.
1537 Problem reported by Gustavo G. Rondina in:
1538 http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00164.html
1540 2006-08-21 Jim Meyering <jim@meyering.net>
1542 * tests/dircolors/simple (a): Don't fail with an unexpected diagnostic
1543 when the shell variable, SHELL, is not set.
1544 Trigger the failure with "(unset SHELL; make check TESTS=simple)".
1545 Reported by Sven Joachim in <http://bugs.debian.org/355368>.
1547 * src/od.c: Now that HAVE_UNSIGNED_LONG_LONG is no longer defined
1548 in config.h, change the uses to HAVE_UNSIGNED_LONG_LONG_INT.
1549 Otherwise, on a system with 4-byte longs, "od -t u8" fails with this:
1550 od: invalid type string `u8';
1551 this system doesn't provide a 8-byte integral type
1552 FIXME: add a test for this, but skip it when sizeof uintmax < 8.
1554 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
1556 Add a bootstrap procedure, so that the CVS version contains fewer
1557 files and we bootstrap the rest from gnulib, gettext, etc.
1558 * README-cvs: New file.
1559 * bootstrap: New file.
1560 * bootstrap.conf: New file.
1561 * .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
1562 * configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
1564 (gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
1565 (gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
1567 (gl_MACROS): Call just after gl_EARLY, just for clarity.
1568 * src/c99-to-c89.diff: Remove patch to ls.c; no longer needed.
1569 * src/kill.c (strtoimax): Remove decl.
1570 * src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
1571 * src/wc.c: Likewise.
1572 * src/ls.c (sort_files): Rewrite to avoid need for C99-style
1573 declaration, so that we don't need to patch this file.
1574 * src/printf.c (strtoimax, strtoumax): Remove decls.
1575 * src/su.c: Include getpass.h.
1577 * src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
1578 Include inttypes.h unconditionally.
1579 (LONGEST_MODIFIER, PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX): Remove.
1580 (stpcpy, strndup, strstr, strtoul, mempcpy, CHAR_MIN, CHAR_MAX):
1581 (SCHAR_MIN, SCHAR_MAX, UCHAR_MAX, SHRT_MIN, SHRT_MAX, INT_MAX):
1582 (INT_MIN, INTMAX_MAX, INTMAX_MIN, UINT_MAX, LONG_MAX, ULONG_MAX):
1583 (SIZE_MAX, SSIZE_MAX, UINTMAX_MAX): Remove.
1585 * ABOUT-NLS, INSTALL, Makefile.in, man/Makefile.in:
1586 * src/Makefile.in, tests/Makefile.in, tests/chgrp/Makefile.in:
1587 * tests/chmod/Makefile.in, tests/chown/Makefile.in:
1588 * tests/cp/Makefile.in, tests/cut/Makefile.in:
1589 * tests/dd/Makefile.in, tests/dircolors/Makefile.in:
1590 * tests/du/Makefile.in, tests/expr/Makefile.in:
1591 * tests/factor/Makefile.in, tests/fmt/Makefile.in:
1592 * tests/general/Makefile.in, tests/head/Makefile.in:
1593 * tests/install/Makefile.in, tests/join/Makefile.in:
1594 * tests/ln/Makefile.in, tests/ls/Makefile.in:
1595 * tests/ls-2/Makefile.in, tests/md5sum/Makefile.in:
1596 * tests/misc/Makefile.in, tests/mkdir/Makefile.in:
1597 * tests/mv/Makefile.in, tests/od/Makefile.in:
1598 * tests/pr/Makefile.in, tests/readlink/Makefile.in:
1599 * tests/rm/Makefile.in, tests/rmdir/Makefile.in:
1600 * tests/seq/Makefile.in, tests/sha1sum/Makefile.in:
1601 * tests/shred/Makefile.in, tests/sort/Makefile.in:
1602 * tests/stty/Makefile.in, tests/sum/Makefile.in:
1603 * tests/tac/Makefile.in, tests/tail/Makefile.in:
1604 * tests/tail-2/Makefile.in, tests/tee/Makefile.in:
1605 * tests/test/Makefile.in, tests/touch/Makefile.in:
1606 * tests/tr/Makefile.in, tests/tsort/Makefile.in:
1607 * tests/unexpand/Makefile.in, tests/uniq/Makefile.in:
1608 * tests/wc/Makefile.in:
1609 Remove from CVS, since ./bootstrap generates them automatically.
1611 2006-08-20 Eric Blake <ebb9@byu.net>
1613 * src/stat.c (USE_STATVFS): Reinstate the patch from 2006-08-15;
1614 the patch from 2006-08-18 broke on cygwin.
1616 2006-08-20 Jim Meyering <jim@meyering.net>
1618 * NEWS: Add a line for 6.2-cvs.
1619 * configure.ac (AC_INIT): Bump to 6.2 and add "-cvs" suffix.
1621 2006-08-19 Jim Meyering <jim@meyering.net>
1624 * NEWS: Record the 6.1 release date.
1625 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
1627 * tests/Makefile.am (EXTRA_DIST): Add sparse-file.
1629 Avoid test failure when `make check' is run through debuild.
1630 * tests/help-version: Ensure that $SHELL is set to some value
1631 and exported. Patch from Sven Joachim. For details, see
1632 <http://bugs.debian.org/355368>.
1634 * tests/ls/stat-dtype: Test for the 2006-08-17 `ls -CF' fix.
1636 * README: Describe potential "pre-C99 build failure", and work-around.
1638 Some of my 2006-07-03 changes to tests/*/Makefile.am were being
1639 backed out due to updates provoked by the copyright changes.
1640 * tests/Makefile.am.in (PATH): Prepend $(VG_PATH_PREFIX), so that
1641 it propagates to the derived Makefile.am files.
1642 ($(srcdir)/Makefile.am): Mark generated .am files as read-only,
1643 so we don't mistakenly edit them again.
1644 * tests/cut/Makefile.am: Regenerate.
1645 * tests/head/Makefile.am: Likewise.
1646 * tests/join/Makefile.am: Likewise.
1647 * tests/pr/Makefile.am: Likewise.
1648 * tests/sort/Makefile.am: Likewise.
1649 * tests/tac/Makefile.am: Likewise.
1650 * tests/tail/Makefile.am: Likewise.
1651 * tests/test/Makefile.am: Likewise.
1652 * tests/tr/Makefile.am: Likewise.
1653 * tests/uniq/Makefile.am: Likewise.
1654 * tests/wc/Makefile.am: Likewise.
1656 * NEWS: Fix cp --sparse so that it preserves tail-end sparseness, even
1657 when the file's apparent size is not a multiple of its block size.
1658 * src/copy.c (copy_reg): Don't write a NUL before calling ftruncate.
1659 For some file sizes, writing that single byte would unnecessarily
1660 waste a few file blocks. That write may have been necessary in the
1661 early days of Linux, but now, removing it should be safe.
1662 Based on a patch by Alan Curry: <http://bugs.debian.org/370792>
1663 * tests/cp/sparse: New test for the above.
1664 * tests/cp/Makefile.am (TESTS): Add sparse.
1666 * tests/sparse-file: New file, essence factored out of...
1667 * tests/du/8gb: ... here. Use the new script.
1669 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
1671 * src/system.h (select_plural): Reduce by 1000000, not 1000, since
1672 the CVS gettext manual now suggests 1000000.
1674 2006-08-18 Bruno Haible <bruno@clisp.org>
1676 Add support for NetBSD 3.0.
1677 * src/stat.c (USE_STATVFS): Set to 1 if 'struct statvfs' has a field
1679 (STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME): Define also if 'struct statvfs'
1680 has a field f_fstypename.
1681 This undoes the 2006-08-15 to src/stat.c.
1683 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
1685 Copyright notice fixes.
1687 * COPYING: Upgrade to latest version from FSF.
1689 * src/uname.c: Use (C) in copyright notice.
1691 * .vg-suppressions: Add copyright notice.
1692 * ChangeLog: Likewise.
1693 * ChangeLog-2005: Likewise.
1694 * Makefile.am: Likewise.
1697 * README-valgrind: Likewise.
1699 * announce-gen: Likewise.
1700 * man/Makefile.am: Likewise.
1701 * man/chmod.x: Likewise.
1702 * man/chown.x: Likewise.
1703 * man/df.x: Likewise.
1704 * man/du.x: Likewise.
1705 * man/rm.x: Likewise.
1706 * src/dircolors.hin: Likewise.
1707 * src/du-tests: Likewise.
1708 * src/extract-magic: Likewise.
1709 * src/tac-pipe.c: Likewise.
1710 * src/wheel-gen.pl: Likewise.
1711 * tests/Coreutils.pm: Likewise.
1712 * tests/Makefile.am.in: Likewise.
1713 * tests/acl: Likewise.
1714 * tests/envvar-check: Likewise.
1715 * tests/expensive: Likewise.
1716 * tests/group-names: Likewise.
1717 * tests/help-version: Likewise.
1718 * tests/mk-script: Likewise.
1719 * tests/priv-check: Likewise.
1720 * tests/rwx-to-mode: Likewise.
1721 * tests/sample-test: Likewise.
1722 * tests/setgid-check: Likewise.
1723 * tests/chgrp/basic: Likewise.
1724 * tests/chgrp/deref: Likewise.
1725 * tests/chgrp/no-x: Likewise.
1726 * tests/chgrp/posix-H: Likewise.
1727 * tests/chgrp/recurse: Likewise.
1728 * tests/chmod/c-option: Likewise.
1729 * tests/chmod/equal-x: Likewise.
1730 * tests/chmod/equals: Likewise.
1731 * tests/chmod/no-x: Likewise.
1732 * tests/chmod/octal: Likewise.
1733 * tests/chmod/setgid: Likewise.
1734 * tests/chmod/umask-x: Likewise.
1735 * tests/chmod/usage: Likewise.
1736 * tests/chown/basic: Likewise.
1737 * tests/chown/deref: Likewise.
1738 * tests/chown/separator: Likewise.
1739 * tests/cp/Makefile.am: Likewise.
1740 * tests/cp/acl: Likewise.
1741 * tests/cp/backup-1: Likewise.
1742 * tests/cp/backup-is-src: Likewise.
1743 * tests/cp/cp-HL: Likewise.
1744 * tests/cp/cp-deref: Likewise.
1745 * tests/cp/cp-mv-backup: Likewise.
1746 * tests/cp/cp-parents: Likewise.
1747 * tests/cp/deref-slink: Likewise.
1748 * tests/cp/dir-rm-dest: Likewise.
1749 * tests/cp/dir-slash: Likewise.
1750 * tests/cp/dir-vs-file: Likewise.
1751 * tests/cp/fail-perm: Likewise.
1752 * tests/cp/into-self: Likewise.
1753 * tests/cp/link: Likewise.
1754 * tests/cp/link-no-deref: Likewise.
1755 * tests/cp/link-preserve: Likewise.
1756 * tests/cp/no-deref-link1: Likewise.
1757 * tests/cp/no-deref-link2: Likewise.
1758 * tests/cp/no-deref-link3: Likewise.
1759 * tests/cp/perm: Likewise.
1760 * tests/cp/preserve-2: Likewise.
1761 * tests/cp/r-vs-symlink: Likewise.
1762 * tests/cp/same-file: Likewise.
1763 * tests/cp/slink-2-slink: Likewise.
1764 * tests/cp/special-bits: Likewise.
1765 * tests/cp/symlink-slash: Likewise.
1766 * tests/cut/Makefile.am: Likewise.
1767 * tests/cut/Test.pm: Likewise.
1768 * tests/dd/misc: Likewise.
1769 * tests/dd/not-rewound: Likewise.
1770 * tests/dd/skip-seek: Likewise.
1771 * tests/dd/skip-seek2: Likewise.
1772 * tests/dd/unblock-sync: Likewise.
1773 * tests/dircolors/simple: Likewise.
1774 * tests/du/2g: Likewise.
1775 * tests/du/8gb: Likewise.
1776 * tests/du/Makefile.am: Likewise.
1777 * tests/du/basic: Likewise.
1778 * tests/du/deref: Likewise.
1779 * tests/du/deref-args: Likewise.
1780 * tests/du/exclude: Likewise.
1781 * tests/du/fd-leak: Likewise.
1782 * tests/du/files0-from: Likewise.
1783 * tests/du/hard-link: Likewise.
1784 * tests/du/inaccessible-cwd: Likewise.
1785 * tests/du/long-from-unreadable: Likewise.
1786 * tests/du/long-sloop: Likewise.
1787 * tests/du/no-deref: Likewise.
1788 * tests/du/no-x: Likewise.
1789 * tests/du/restore-wd: Likewise.
1790 * tests/du/slash: Likewise.
1791 * tests/du/slink: Likewise.
1792 * tests/du/trailing-slash: Likewise.
1793 * tests/du/two-args: Likewise.
1794 * tests/expr/basic: Likewise.
1795 * tests/factor/basic: Likewise.
1796 * tests/fmt/basic: Likewise.
1797 * tests/fmt/long-line: Likewise.
1798 * tests/general/Makefile.am: Likewise.
1799 * tests/general/atgeneral.m4: Likewise.
1800 * tests/general/dd.at: Likewise.
1801 * tests/head/Makefile.am: Likewise.
1802 * tests/head/Test.pm: Likewise.
1803 * tests/install/basic-1: Likewise.
1804 * tests/install/create-leading: Likewise.
1805 * tests/install/d-slashdot: Likewise.
1806 * tests/install/trap: Likewise.
1807 * tests/join/Makefile.am: Likewise.
1808 * tests/join/Test.pm: Likewise.
1809 * tests/ln/backup-1: Likewise.
1810 * tests/ln/misc: Likewise.
1811 * tests/ln/sf-1: Likewise.
1812 * tests/ln/target-1: Likewise.
1813 * tests/ls/Makefile.am: Likewise.
1814 * tests/ls/Test.pm: Likewise.
1815 * tests/ls/dangle: Likewise.
1816 * tests/ls/dired: Likewise.
1817 * tests/ls/file-type: Likewise.
1818 * tests/ls/follow-slink: Likewise.
1819 * tests/ls/infloop: Likewise.
1820 * tests/ls/inode: Likewise.
1821 * tests/ls/m-option: Likewise.
1822 * tests/ls/no-arg: Likewise.
1823 * tests/ls/recursive: Likewise.
1824 * tests/ls/rt-1: Likewise.
1825 * tests/ls/stat-dtype: Likewise.
1826 * tests/ls/stat-failed: Likewise.
1827 * tests/ls/stat-vs-dirent: Likewise.
1828 * tests/ls/symlink-slash: Likewise.
1829 * tests/ls/time-1: Likewise.
1830 * tests/ls-2/tests: Likewise.
1831 * tests/md5sum/basic-1: Likewise.
1832 * tests/md5sum/newline-1: Likewise.
1833 * tests/misc/Makefile.am: Likewise.
1834 * tests/misc/base64: Likewise.
1835 * tests/misc/basename: Likewise.
1836 * tests/misc/cat-proc: Likewise.
1837 * tests/misc/close-stdout: Likewise.
1838 * tests/misc/csplit: Likewise.
1839 * tests/misc/date: Likewise.
1840 * tests/misc/date-sec: Likewise.
1841 * tests/misc/df: Likewise.
1842 * tests/misc/dirname: Likewise.
1843 * tests/misc/expand: Likewise.
1844 * tests/misc/false-status: Likewise.
1845 * tests/misc/fold: Likewise.
1846 * tests/misc/head-c: Likewise.
1847 * tests/misc/head-elide-tail: Likewise.
1848 * tests/misc/head-pos: Likewise.
1849 * tests/misc/mknod: Likewise.
1850 * tests/misc/nice: Likewise.
1851 * tests/misc/nl: Likewise.
1852 * tests/misc/nohup: Likewise.
1853 * tests/misc/paste-no-nl: Likewise.
1854 * tests/misc/pathchk1: Likewise.
1855 * tests/misc/printf: Likewise.
1856 * tests/misc/printf-hex: Likewise.
1857 * tests/misc/pwd-long: Likewise.
1858 * tests/misc/sha224sum: Likewise.
1859 * tests/misc/sha256sum: Likewise.
1860 * tests/misc/sha384sum: Likewise.
1861 * tests/misc/sha512sum: Likewise.
1862 * tests/misc/shuf: Likewise.
1863 * tests/misc/sort-merge: Likewise.
1864 * tests/misc/sort-rand: Likewise.
1865 * tests/misc/split-a: Likewise.
1866 * tests/misc/split-fail: Likewise.
1867 * tests/misc/split-l: Likewise.
1868 * tests/misc/stat-fmt: Likewise.
1869 * tests/misc/stat-printf: Likewise.
1870 * tests/misc/tac-continue: Likewise.
1871 * tests/misc/test-diag: Likewise.
1872 * tests/misc/tty-eof: Likewise.
1873 * tests/misc/wc-files0: Likewise.
1874 * tests/misc/wc-files0-from: Likewise.
1875 * tests/mkdir/concurrent-1: Likewise.
1876 * tests/mkdir/p-1: Likewise.
1877 * tests/mkdir/p-2: Likewise.
1878 * tests/mkdir/p-3: Likewise.
1879 * tests/mkdir/p-slashdot: Likewise.
1880 * tests/mkdir/p-thru-slink: Likewise.
1881 * tests/mkdir/parents: Likewise.
1882 * tests/mkdir/perm: Likewise.
1883 * tests/mkdir/special-1: Likewise.
1884 * tests/mkdir/t-slash: Likewise.
1885 * tests/mkdir/writable-under-readonly: Likewise.
1886 * tests/mv/Makefile.am: Likewise.
1887 * tests/mv/acl: Likewise.
1888 * tests/mv/atomic: Likewise.
1889 * tests/mv/backup-is-src: Likewise.
1890 * tests/mv/childproof: Likewise.
1891 * tests/mv/diag: Likewise.
1892 * tests/mv/dir-file: Likewise.
1893 * tests/mv/dir2dir: Likewise.
1894 * tests/mv/dup-source: Likewise.
1895 * tests/mv/force: Likewise.
1896 * tests/mv/hard-2: Likewise.
1897 * tests/mv/hard-3: Likewise.
1898 * tests/mv/hard-4: Likewise.
1899 * tests/mv/hard-link-1: Likewise.
1900 * tests/mv/i-1: Likewise.
1901 * tests/mv/i-2: Likewise.
1902 * tests/mv/i-3: Likewise.
1903 * tests/mv/i-4: Likewise.
1904 * tests/mv/i-link-no: Likewise.
1905 * tests/mv/into-self: Likewise.
1906 * tests/mv/into-self-2: Likewise.
1907 * tests/mv/into-self-3: Likewise.
1908 * tests/mv/into-self-4: Likewise.
1909 * tests/mv/leak-fd: Likewise.
1910 * tests/mv/mv-special-1: Likewise.
1911 * tests/mv/no-target-dir: Likewise.
1912 * tests/mv/part-fail: Likewise.
1913 * tests/mv/part-hardlink: Likewise.
1914 * tests/mv/part-rename: Likewise.
1915 * tests/mv/part-symlink: Likewise.
1916 * tests/mv/partition-perm: Likewise.
1917 * tests/mv/perm-1: Likewise.
1918 * tests/mv/reply-no: Likewise.
1919 * tests/mv/setup: Likewise.
1920 * tests/mv/to-symlink: Likewise.
1921 * tests/mv/trailing-slash: Likewise.
1922 * tests/mv/update: Likewise.
1923 * tests/mv/vfat: Likewise.
1924 * tests/od/od-N: Likewise.
1925 * tests/od/x8: Likewise.
1926 * tests/pr/Makefile.am: Likewise.
1927 * tests/pr/Test.pm: Likewise.
1928 * tests/readlink/can-e: Likewise.
1929 * tests/readlink/can-f: Likewise.
1930 * tests/readlink/can-m: Likewise.
1931 * tests/readlink/rl-1: Likewise.
1932 * tests/rm/Makefile.am: Likewise.
1933 * tests/rm/cycle: Likewise.
1934 * tests/rm/dangling-symlink: Likewise.
1935 * tests/rm/deep-1: Likewise.
1936 * tests/rm/dir-no-w: Likewise.
1937 * tests/rm/dir-nonrecur: Likewise.
1938 * tests/rm/dot-rel: Likewise.
1939 * tests/rm/empty-inacc: Likewise.
1940 * tests/rm/empty-name: Likewise.
1941 * tests/rm/f-1: Likewise.
1942 * tests/rm/fail-2eperm: Likewise.
1943 * tests/rm/fail-eperm: Likewise.
1944 * tests/rm/hash: Likewise.
1945 * tests/rm/i-1: Likewise.
1946 * tests/rm/i-no-r: Likewise.
1947 * tests/rm/inaccessible: Likewise.
1948 * tests/rm/interactive-always: Likewise.
1949 * tests/rm/interactive-once: Likewise.
1950 * tests/rm/ir-1: Likewise.
1951 * tests/rm/isatty: Likewise.
1952 * tests/rm/no-give-up: Likewise.
1953 * tests/rm/r-1: Likewise.
1954 * tests/rm/r-2: Likewise.
1955 * tests/rm/r-3: Likewise.
1956 * tests/rm/rm1: Likewise.
1957 * tests/rm/rm2: Likewise.
1958 * tests/rm/rm3: Likewise.
1959 * tests/rm/rm4: Likewise.
1960 * tests/rm/rm5: Likewise.
1961 * tests/rm/sunos-1: Likewise.
1962 * tests/rm/unread2: Likewise.
1963 * tests/rm/unread3: Likewise.
1964 * tests/rm/unreadable: Likewise.
1965 * tests/rmdir/fail-perm: Likewise.
1966 * tests/rmdir/ignore: Likewise.
1967 * tests/rmdir/t-slash: Likewise.
1968 * tests/seq/basic: Likewise.
1969 * tests/sha1sum/basic-1: Likewise.
1970 * tests/sha1sum/sample-vec: Likewise.
1971 * tests/shred/exact: Likewise.
1972 * tests/shred/remove: Likewise.
1973 * tests/sort/Makefile.am: Likewise.
1974 * tests/sort/Test.pm: Likewise.
1975 * tests/sort-time/Makefile: Likewise.
1976 * tests/sort-time/README: Likewise.
1977 * tests/sort-time/rand-gen: Likewise.
1978 * tests/stty/basic-1: Likewise.
1979 * tests/stty/row-col-1: Likewise.
1980 * tests/sum/basic-1: Likewise.
1981 * tests/sum/sysv: Likewise.
1982 * tests/tac/Makefile.am: Likewise.
1983 * tests/tac/Test.pm: Likewise.
1984 * tests/tail/Makefile.am: Likewise.
1985 * tests/tail/Test.pm: Likewise.
1986 * tests/tail-2/Makefile.am: Likewise.
1987 * tests/tail-2/append-only: Likewise.
1988 * tests/tail-2/assert: Likewise.
1989 * tests/tail-2/assert-2: Likewise.
1990 * tests/tail-2/big-4gb: Likewise.
1991 * tests/tail-2/fflush: Likewise.
1992 * tests/tail-2/infloop-1: Likewise.
1993 * tests/tail-2/proc-ksyms: Likewise.
1994 * tests/tail-2/start-middle: Likewise.
1995 * tests/tail-2/tail-n0f: Likewise.
1996 * tests/tee/basic: Likewise.
1997 * tests/tee/dash: Likewise.
1998 * tests/test/Makefile.am: Likewise.
1999 * tests/test/Test.pm: Likewise.
2000 * tests/touch/Makefile.am: Likewise.
2001 * tests/touch/dangling-symlink: Likewise.
2002 * tests/touch/empty-file: Likewise.
2003 * tests/touch/fail-diag: Likewise.
2004 * tests/touch/fifo: Likewise.
2005 * tests/touch/no-create-missing: Likewise.
2006 * tests/touch/no-rights: Likewise.
2007 * tests/touch/not-owner: Likewise.
2008 * tests/touch/obsolescent: Likewise.
2009 * tests/touch/read-only: Likewise.
2010 * tests/touch/relative: Likewise.
2011 * tests/tr/Makefile.am: Likewise.
2012 * tests/tr/Test.pm: Likewise.
2013 * tests/tr/failures: Likewise.
2014 * tests/tsort/basic-1: Likewise.
2015 * tests/unexpand/basic-1: Likewise.
2016 * tests/uniq/Makefile.am: Likewise.
2017 * tests/uniq/Test.pm: Likewise.
2018 * tests/wc/Makefile.am: Likewise.
2019 * tests/wc/Test.pm: Likewise.
2021 2006-08-17 Jim Meyering <jim@meyering.net>
2023 ls -CF would misalign columns in some cases.
2024 * src/ls.c (get_type_indicator): New function. extracted from...
2025 (print_type_indicator): ...here. Use it.
2026 (length_of_file_name_and_frills): Use it here, too, rather than
2027 assuming stat.st_mode is valid.
2028 Reported by Andreas Schwab, here:
2029 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7774>
2030 See the test for this above. FYI, I did ls -CF /proc and visually
2031 inspected the result.
2033 * src/copy.c (copy_internal, same_file_ok): Adjust comments not
2034 to mention the now-removed cp_options.xstat member.
2036 * Makefile.maint (patch-check): Adapt to work now that the patch
2037 modifies more than one file in src/.
2039 With this patch, permit building with Solaris cc on Solaris 7.
2040 * src/c99-to-c89.diff: Add diffs to convert more c99-isms.
2041 This integrates patches from Bruno Haible.
2043 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
2045 Fix some problems reported by Bruno Haible.
2046 * tests/chmod/setgid (abs_srcdir): Remove; not used or needed.
2047 Skip this test if "chmod g+s d" silently does nothing.
2048 * tests/ls-2/tests: Skip this test suite if we can't set up files
2049 properly for the setuid-etc test. This simplifies some of the
2050 hacks we were using to work around porting problems.
2052 2006-08-16 Jim Meyering <jim@meyering.net>
2054 * tests/cp/Makefile.am: Don't mark "acl" as XFAIL.
2055 * tests/cp/acl: Instead, skip the test if either setfacl
2057 Reported by Michael Stone.
2059 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
2061 * tests/lang-default (LC_ALL): Set to "C", so we get
2062 English-language diagnostics. Unset the other variables; it
2063 should be portable to use 'unset' for this stuff nowadays.
2064 Problem reported by Bruno Haible. Using "C" reverses the
2065 2000-10-22 change to fileutils in this area.
2067 Fix bugs when printing plurals of numbers that are not
2068 unsigned long int values.
2069 * src/system.h (select_plural): New function.
2070 * src/md5sum.c (digest_check): Use select_plural to avoid bug.
2071 * src/uptime.c (print_uptime): Likewise.
2072 * src/dd.c (print_stats): Likewise. Also, don't use ngettext to
2073 print a floating point number, as reducing to 0 or 1 doesn't work
2074 for some languages. Instead, just use "s" for seconds since it
2075 doesn't need a plural form.
2077 2006-08-16 Bruno Haible <bruno@clisp.org>
2079 Old versions of gzip would write --help output to stderr, and it
2080 would be annoying to see that in the output of every "make" command.
2081 * Makefile.maint (gzip_rsyncable): Throw away stderr output of
2084 2006-08-16 Andreas Schwab <schwab@suse.de>
2086 * tests/cp/acl: Don't use non-portable == operator for test.
2088 2006-08-16 Jim Meyering <jim@meyering.net>
2090 * tests/ls/stat-dtype: Use stat to test file system type, rather
2091 than df -T, in case /etc/mtab lies. Reported by Michael Stone.
2093 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2095 * NEWS: Mention that df exits with nonzero status if it generates
2096 no output. This change was in 6.0 but inadvertently unmentioned.
2097 * src/df.c (file_systems_processed): Renamed from n_valid_args, and now
2099 (show_dev): Don't set it until we actually output something.
2100 Print the header if this is the first output.
2101 (main): Don't print a header, as that is now show_dev's job.
2102 * tests/misc/Makefile.am (TESTS): Add df.
2103 * tests/misc/df: New file.
2105 2006-08-15 Eric Blake <ebb9@byu.net>
2107 * src/stat.c (USE_STATVFS): Define to 0 if f_type is needed, but
2108 statvfs.f_type not present. See
2109 <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16325>.
2111 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2113 * src/dd.c (print_stats): Don't substitute "1" for number, as this
2114 causes confusion for the Hungarian translators. Problem reported
2115 by Egmont Koblinger here:
2116 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7726
2118 2006-08-15 Jim Meyering <jim@meyering.net>
2120 * .x-sc_require_config_h: Add lib/at-func.c.
2122 * NEWS: Add a line for 6.1-cvs.
2123 * configure.ac (AC_INIT): Bump to 6.1 and add "-cvs" suffix.
2125 2006-08-15 Jim Meyering <jim@meyering.net>
2128 * NEWS: Record the 6.0 release date.
2129 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2131 * TODO: Add an item (convert to use gnulib-tool), add to the plan
2132 for id-vs-getgrouplist, and remove a few completed items.
2134 * Makefile.maint (alpha beta major): Fix syntax error.
2136 2006-08-13 Jim Meyering <jim@meyering.net>
2138 * src/shred.c (usage): Don't indent the second line of an item.
2139 Otherwise, help2man would misformat the output.
2140 Reported by Adam Buchbinder in <https://launchpad.net/bugs/48917>.
2142 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
2144 * configure.ac (AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.
2145 Suggested by Eric Blake to avoid problems like
2146 <http://lists.gnu.org/archive/html/bug-coreutils/2006-07/msg00087.html>.
2148 2006-08-11 Jim Meyering <jim@meyering.net>
2150 * tests/ls/stat-vs-dirent: Too many (losing) systems trigger the
2151 failure that this test checks for (stat/dirent inode mismatch at
2152 a mount point), so continue to give a diagnostic about the failure,
2153 but don't actually count it as a failure.
2155 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
2157 * ABOUT-NLS: Update from gettext 0.15.
2158 * configure.ac (AM_GNU_GETTEXT_VERSION): Update from 0.13.1 to 0.15.
2160 * src/csplit.c (struct control): Remove fastmap member.
2161 (extract_regexp): Allocate fastmap separately, since otherwise
2162 it might move due to a realloc. This fixes a bug that led
2163 to a core dump on 64-bit sparc Solaris 10 (Sun Studio 10).
2165 2006-08-10 Jim Meyering <jim@meyering.net>
2167 * tests/ls/stat-dtype: If "." is tmpfs, skip this test unless uname -s
2168 reports "Linux". This avoids a failure on Solaris 10's tmpfs.
2169 Redirect both stdout and stderr of df invocations.
2171 * src/dircolors.hin: Add a TERM directive for each of the following:
2172 ansi, color-xterm, gnome, konsole, kterm, rxvt-cygwin,
2173 rxvt-cygwin-native, screen.linux, xterm-256color.
2174 Sort the TERM directives.
2175 From Mike Frysinger.
2177 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
2179 * src/dd.c (usage): Warn about oflag=append without conv=notrunc.
2180 See Debian bug 373736.
2182 * src/dircolors.hin: Add mlterm, rxvt-unicode; this fixes Debian
2185 * src/.cvsignore: Add shuf.
2187 * Makefile.maint: Remove the po-update procedure; it doesn't
2188 work with the new repository on http://www.iro.umontreal.ca/.
2189 For now I guess we'll have to fix things by hand.
2190 (do-po-update, po-update): Remove. All references removed.
2192 * src/shuf.c (next_line): New function.
2193 (read_input): Use it, to avoid relying on GCC-specific behavior
2194 with void * arithmetic. Problem reported by Bob Proulx.
2195 * Makefile.maint (my-distcheck): Compile with -Wpointer-arith
2196 to detect this sort of problem automatically in the future.
2198 2006-08-09 Jim Meyering <jim@meyering.net>
2200 * src/ls.c: Add a compile-time check to ensure that filetype
2201 and filetype_letter have the same number of elements.
2203 * tests/misc/sort-rand: Remove use of --seed=S.
2205 2006-08-08 Paul Eggert <eggert@cs.ucla.edu>
2207 Add a command 'shuf', and modify shred and sort to use the new
2208 random number generator library of 'shuf'.
2210 * AUTHORS: Add shuf.
2212 * NEWS: Likewise. Mention new --random-source option for shred
2213 and sort. Move "sort +1 -2" notice to the appropriate section,
2214 and clarify its role with respect to POSIXLY_CORRECT.
2215 * man/.cvsignore: Add shuf.1.
2216 * man/Makefile.am (dist_man_MANS): Add shuf.1.
2217 (shuf.1): New dependency.
2218 * man/shuf.x: New file.
2219 * src/Makefile.am (bin_PROGRAMS): Add shuf.
2220 (EXTRA_DIST): Remove rand-isaac.c.
2221 (shuf_LDADD): New macro.
2222 * src/rand-isaac.c: Remove, moving most of its contents to
2224 * src/shuf.c: New file.
2225 * src/shred.c: Use new random-number interface rather than rand-isaac.c.
2226 Don't include rand-isaac.c; include randint.h and randread.h instead.
2227 (RANDOM_SOURCE_OPTION): New enum.
2228 (long_opts, usage, main): New option --random-source.
2229 * src/sort.c: Likewise.
2230 * src/shred.c (struct irand_state, irand_init, irand32, irand_mod): Remove.
2231 All callers changed to use randint interface.
2232 (fillrand): Remove. All callers changed to use randread interface.
2233 (dopass): Remove dependency on ISAAC buffer size.
2234 (genpattern): Don't wipe the random state here.
2235 (randint_source): New static var.
2236 (clear_random_data): New function.
2237 (main): Allocate random source, and arrange to wipe it on exit.
2238 * src/sort.c: Include md5.h, randread.h, xmemxfrm.h.
2239 (longopts, usage, main): Remove undocumented --seed option;
2240 it's now replaced by --random-source.
2241 (rand_state, get_hash): Remove.
2242 (randread_source): New static var.
2243 (random_state, cmp_hashes, compare_random): New functions; they guarantee
2244 no collisions in the random hash function.
2245 (keycompare): Use compare_random for -R; don't fall back on comparing
2246 via memcoll, since compare_random does the right thing.
2247 * tests/misc/Makefile.am (TESTS): Add shuf.
2248 * tests/misc/shuf: New file.
2250 2006-07-29 Paul Eggert <eggert@cs.ucla.edu>
2252 * src/copy.c (set_author): Preserve the st_author field via the
2253 file descriptor dest_desc.
2255 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
2257 * NEWS: chmod now preserves setuid and setgid bits on directories
2258 if you use a numeric mode with them clear, e.g., "chmod 755 DIR".
2260 Fix test case problems if working directory is setgid,
2261 reported by Bob Proulx.
2262 * tests/cp/fail-perm: Use symbolic mode so that we clear
2263 setgid bit more reliably on directories.
2264 * tests/mkdir/special-1 (set_mode_string): Likewise.
2266 2006-07-27 Jim Meyering <jim@meyering.net>
2268 * src/chgrp.c (usage): Use correct grammar in description of the
2270 * src/chown.c (usage): Likewise.
2272 2006-07-26 Thomas Schwinge <tschwinge@gnu.org> (tiny change)
2274 * src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:
2275 Correctly access SRC_SB's element ST_AUTHOR.
2277 2006-07-26 Jim Meyering <jim@meyering.net>
2279 * tests/ls/stat-failed: Adapt to match new expected output.
2282 * src/ls.c (print_color_indicator): Test for S_IFREG first, rather
2283 than having the code test for all of the other types first.
2284 Hoist the set-uid/gid-testing code "up" into this new block.
2285 Classify any other type of file (e.g., S_TYPEISSHM, etc.) as
2286 C_ORPHAN, not as C_FILE.
2288 2006-07-26 Jim Meyering <jim@meyering.net>
2290 Checking in a change from Paul.
2292 2006-07-25 Paul Eggert <eggert@cs.ucla.edu>
2294 * src/ls.c (DT_INIT): Remove. All uses removed.
2295 (enum filetype): Use an ordinary enum rather than trying to keep
2296 the values in sync with DT_FIFO etc. That way, we don't have
2297 to make special assumptions about them. All uses changed.
2298 (whiteout): New constant member of enum filetype.
2299 (filetype_letter): New constant, for use with enum filetype.
2300 (FILETYPE_INDICATORS): New initializer list.
2301 (print_dir): Add case for DT_WHT.
2302 (gobble_file): If stat fails, don't discard information from
2303 readdir; instead, preserve it so it can be printed.
2304 (print_long_format): Fall back on readdir result if stat info
2305 is not available. Use "?" to denote each unknown mode char,
2306 instead of an overall "?", since we now know some of the mode
2308 (print_type_indicator): Now that MODE isn't necessarily
2309 useful, guard all uses.
2310 Now that two blocks in the type-checking tree can set "type = C_FILE",
2311 move the suffix-handling code out and down.
2313 2006-07-26 Jim Meyering <jim@meyering.net>
2315 Prepare for the above change.
2316 * src/ls.c [struct fileinfo] (stat_ok): Rename from stat_failed,
2317 and adjust uses. From a patch by Paul Eggert.
2319 2006-07-26 Jim Meyering <jim@meyering.net>
2321 * src/ls.c: Correct indentation/formatting in a few places.
2323 2006-07-25 Paul Eggert <eggert@cs.ucla.edu>
2325 * tests/cp/fail-perm: Use "chmod 0500" rather than "chmod 500".
2326 Problem report and fix from Bob Proulx.
2327 * NEWS: Clarify the "chmod 0500" news, and correct the vague
2328 statements about compatibility with BSD.
2330 2006-07-25 Jim Meyering <jim@meyering.net>
2332 * src/ls.c (gobble_file): When handling a stat-failed entry,
2333 print the entry name not the absolute_name -- to be consistent
2334 with the usual case.
2335 * tests/ls/stat-failed: Update accordingly.
2337 * src/ls.c: Add parens around the new uses of ?: ternary operator.
2339 * src/dircolors.hin: Mention that ORPHAN refers not just to dangling
2342 Get --dired offsets right when handling stat-failed entries.
2343 * src/ls.c (print_long_format): Be careful to increment P by the
2344 appropriate amount, even when inode_number_width and nlink_width
2346 * tests/ls/stat-failed: Test for the above.
2348 * src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the
2349 have_acl member. That would happen for a directory with both a
2350 non-stat'able entry and one with an ACL.
2352 * src/ls.c (gobble_file): Make it so failure to stat a
2353 non-command-line file provokes an exit status of 1, not 0.
2354 Say "cannot access" rather than "cannot stat".
2355 * tests/ls/stat-failed: New file/test, for the above.
2356 * tests/ls/Makefile.am (TESTS): Add stat-failed.
2357 * tests/ls-2/tests (no-a-isdir-b): Update to reflect addition
2358 of "cannot access " to diagnostic.
2360 * src/ls.c: Declare stat_failed to be "bool", not "int" everywhere.
2362 * src/ls.c [enum filetype] (command_line): Remove member. Not needed.
2363 Replace all occurrences of "type == command_line" with the
2364 equivalent, "command_line_arg".
2366 * src/ls.c: Apply the stat-failed parts of Red Hat's
2367 coreutils-selinux.patch. From Ulrich Drepper.
2368 This makes it so files not mentioned on the command line (e.g.,
2369 names read from a directory that *is* mentioned on the command
2370 line) for which stat fails are still listed. With --color,
2371 such files are colored just like ORPHANs (aka dangling symlinks).
2373 * src/df.c (n_valid_args): Declare global to be static.
2375 2006-07-24 Jim Meyering <jim@meyering.net>
2377 * tests/ls/stat-dtype: Skip this test on reiserfs, since that file
2378 system lacks d_type support.
2380 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
2382 * man/chmod.x: Update to reflect recent changes to coreutils.texi.
2384 2006-07-21 Jim Meyering <jim@meyering.net>
2386 * src/su.c (usage): Correct typo in --help output: s/commmand/command/
2387 Reported by Tim Waugh.
2388 Also remove the comment duplicating much of --help output.
2390 * src/ls.c (FILE_TYPE_INDICATOR_OPTION): Reposition this new
2391 name so the list remains alphabetized.
2393 Fix another bug: ls --indicator-style=file-type would call
2394 stat for a symlink, even though it wasn't always needed.
2395 In some cases, that unnecessary stat would cause ls to fail.
2396 * src/ls.c (gobble_file): Don't treat symlinks specially (in
2397 requiring a stat syscall). Remove the offending exclusion.
2399 * NEWS: Mention the fix.
2401 * tests/ls/stat-dtype: New file/test, for the above fix.
2402 Also exercises the new df feature, below.
2404 * src/df.c (main): Fail and don't print the headers if no
2405 file system is processed. This makes it easy to test whether
2406 a specified directory is on a file system of a given type or types.
2407 Otherwise, applications would have had to parse df's output.
2408 E.g., is "." either ext3 or reiserfs: df -t ext3 -t reiserfs .
2410 Fix a bug: ls --file-type worked like --indicator-style=slash,
2411 rather than like --indicator-style=file-type.
2412 * src/ls.c (FILE_TYPE_INDICATOR_OPTION): New enum member.
2413 (long_options): Map "file-type" to FILE_TYPE_INDICATOR_OPTION,
2415 (decode_switches): Handle new case: FILE_TYPE_INDICATOR_OPTION.
2416 * NEWS: Mention the fix.
2417 * tests/ls-2/tests (file-type): New test, for the above fix.
2419 2006-07-19 Jim Meyering <jim@meyering.net>
2421 * src/ls.c (print_dir): Give a better diagnostic for failed opendir.
2423 * Makefile.am (EXTRA_DIST): Add build-aux/vc-list-files.
2425 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
2427 * NEWS: chmod, install, and mkdir now leave setgid and setuid bits
2428 of directories alone unless you specify them explicitly.
2429 install and mkdir now implement X correctly.
2430 install now creates parent directories with mode 755, without
2431 changing their owner or group.
2432 * src/chmod.c (process_file): Adjust to mode_adjust API change.
2433 * src/install.c: Include mkancesdirs.h.
2434 (announce_mkdir, make_ancestor): New functions.
2435 (DEFAULT_MODE): New macro, specifying initial value of 'mode'.
2437 (dir_mode, dir_mode_bits): New vars.
2438 (main): Set dir modes separately from nondir, so that the X
2439 op of -m works correctly.
2440 (main): Remove cwd_errno cruft, since make_dir_parents no longer
2441 affects cwd. Adjust to new make_dir_parents API.
2442 (install_file_in_file_parents): 2nd arg is now char *, not char
2443 const *. Use mkancesdirs instead of rolling our own code.
2444 (change_attributes): Don't worry about AFS, since that kludge
2445 should not be needed any more.
2446 * src/mkdir.c (struct mkdir_options): New struct.
2447 (announce_mkdir, make_ancestor): New functions.
2448 (main): Use them. Adjust to mode_adjust API change. Stick with
2449 umask 0. Use make_dir_parents for all the work.
2450 * src/mkfifo.c (main): Adjust to new mode_adjust API.
2451 * src/mknod.c (main): Likewise.
2452 * tests/chmod/setgid: Do the setgid test instead of bailing.
2453 * tests/mkdir/p-3: Remove re_protect case that no longer applies.
2454 GNU chmod now behaves like other versions of chmod.
2455 * tests/mkdir/perm: Add a test for the X bug.
2457 2006-07-14 Paul Eggert <eggert@cs.ucla.edu>
2459 * src/base64.c (do_decode): Output to parameter OUT, not to stdout.
2460 This doesn't fix any bugs, since OUT always equals stdout, but it
2461 makes the code easier to understand.
2463 2006-07-14 Jim Meyering <jim@meyering.net>
2465 * Makefile.maint (CVS_LIST): Use new file, build-aux/vc-list-files,
2466 rather than open-coding it. Now supports mercurial, too.
2467 * .hgignore: New file.
2468 * Makefile.am (EXTRA_DIST): Add .hgignore, which ignores nearly
2469 all generated files, including ones like configure and po/*.po
2470 that are currently version-controlled in cvs.
2472 * Makefile.am (EXTRA_DIST): Add a few more .??* files.
2473 They've been in CVS, just haven't been distributed before this.
2474 Distribute ChangeLog-2005, too.
2475 (MAINTAINERCLEANFILES): Add THANKS-to-translators.
2477 2006-07-11 Paul Eggert <eggert@cs.ucla.edu>
2479 * src/system.h: Assume <dirent.h> exists, since gnulib assumes
2482 2006-07-09 Jim Meyering <jim@meyering.net>
2484 * tests/mv/dir2dir: Adjust so failing with ENOTEMPTY is ok, too.
2485 That happens with Linux/tmpfs.
2486 * tests/mv/Makefile.am (TESTS): Add dir2dir.
2488 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
2490 Adjust to recent updates from gnulib.
2491 * src/dd.c (apply_translations): Use toupper rather than
2492 islower followed by toupper; it's simpler and typically
2493 faster now that we assume at least C89 semantics. Similarly
2495 * src/sort.c (inittables): Likewise.
2496 * src/expand.c (expand): Don't assume that isprint etc. return
2497 booleans (needed for pre-C99 hosts).
2498 * src/fmt.c (check_punctuation): Likewise.
2499 * src/ptx.c (initialize_regex, fix_output_parameters): Likewise.
2500 * src/tr.c (is_char_class_member): Likewise.
2501 * src/unexpand.c (unexpand): Likewise.
2502 * src/join.c (is_blank): Remove; no longer needed. All uses
2503 replaced by isblank (to_uchar (...)).
2504 * src/pinky.c (create_fullname): Don't assume char is unsigned.
2505 * src/printf.c (print_esc): Likewise.
2506 * src/ptx.c (SKIP_NON_WHITE, SKIP_WHITE, SKIP_WHITE_BACKWARDS):
2507 (copy_unescaped_string): Likewise.
2508 * src/stat.c (print_it): Likewise.
2509 * src/system.h (_D_EXACT_NAMELEN): Renamed from NLENGTH, for
2510 convenience on GNU systems. All uses changed. Don't bother
2511 looking for any dirent.h substitute other than ndir.h.
2512 (D_INO): Remove unnecessary parentheses.
2513 (IN_CTYPE_DOMAIN, ISGRAPH, ISPRINT, ISALNUM, ISALPHA):
2514 (ISCNTRL, ISLOWER, ISPUNCT, ISSPACE, ISUPPER, ISXDIGIT):
2515 (ISDIGIT_LOCALE, TOLOWER, TOUPPER): Remove. All uses changed
2516 to ctype.h equivalents.
2517 (isblank): Renamed from ISBLANK. Check for HAVE_DECL_ISBLANK too.
2520 2006-07-08 Jim Meyering <jim@meyering.net>
2522 * tests/mv/dir2dir: New file, test for 2006-07-05 fix in copy.c.
2524 * Makefile.maint (sc_the_the): New rule.
2526 * src/dd.c (skip): Remove one of two adjacent "the"s in a comment.
2527 * tests/Coreutils.pm (run_tests): Remove one of two adjacent "then"s
2530 2006-07-07 Jim Meyering <jim@meyering.net>
2532 * NEWS: Mention that mv can now remove an empty destination directory,
2533 and give an example. Prompted by a report from Florent Bayle.
2535 2006-07-05 Jim Meyering <jim@meyering.net>
2537 * src/ls.c (usage): Correct the description of -G: it is useful
2538 only in a long listing. Reported by Martin Pool in
2539 <https://launchpad.net/distros/ubuntu/+source/coreutils/+bug/51653>.
2541 * man/chmod.x: Correct the description of the sticky bit. Reported
2542 by Chris Moore via Ian Jackson in <http://bugs.debian.org/376745>.
2544 * src/copy.c (copy_internal): Don't work around old NFS clients like
2545 SunOS-4.1.4 and Irix 5.3 that set errno to values like EIO and
2546 ENOTEMPTY upon failed rename. Otherwise, we risk misinterpreting
2547 a banal failure as a recursive move-into-self failure.
2548 Reported by Florent Bayle in <http://bugs.debian.org/376749>.
2550 * src/c99-to-c89.diff: Regenerate, to remove fuzz.
2552 2006-07-03 Jim Meyering <jim@meyering.net>
2554 Plug another unusual leak.
2555 (AD_mark_helper): Free malloc'd filename if hash_insert says
2556 that string is already in the hash table.
2558 The dev/inode of the topmost directory in each hierarchy were not
2560 * src/remove.c (remove_cwd_entries): Don't call cycle_check here.
2561 (AD_push): Call it from here instead.
2563 Fix two small leaks.
2564 * src/remove.c (AD_stack_clear): New function.
2566 (AD_pop_and_chdir): Free *prev_dir just before longjmp.
2568 * tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT):
2569 Add $VG_PATH_PREFIX as a prefix to $PATH
2571 * tests/envvar-check (vars): Add CDPATH and POSIXLY_CORRECT.
2572 * tests/Makefile.am (evar-check): Remove rule.
2573 (EXTRA_DIST): Remove .env-warn.
2574 * tests/.env-warn: Remove file. No longer used.
2575 Suggestion from Eric Blake.
2577 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
2579 * src/system.h: Include <stdint.h> unconditionally, since we
2580 now assume the stdint module.
2582 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
2584 * NEWS: With no operand, 'tail -f' now silently ignores the '-f'
2585 only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
2586 * src/tail.c (main): Implement this.
2587 * tests/tail/Test.pm (f-pipe-1): Renamed from f-1.
2588 (test_vector): Set POSIXLY_CORRECT for the f-pipe-* tests.
2590 2006-07-01 Jim Meyering <jim@meyering.net>
2592 * src/ln.c (do_link): Use new, shorter URL, for ag-review link.
2594 * .x-sc_require_config_h: Add ^lib/xstrtold\.c$, so make distcheck
2597 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
2599 * NEWS: seq now uses long double internally rather than double.
2600 It now defaults to a minimal fixed point format if possible.
2601 It lets you use %a, %A, %E, %F, %G.
2602 * src/Makefile.am (seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB).
2603 * src/seq.c: Don't include <math.h> or <xstrtol.h>; no longer needed.
2604 (isfinite) [!defined isfinite]: New macro.
2605 (separator, terminator): Now points to const.
2606 (first, step, last): Remove.
2607 (usage): Update to match new behavior.
2608 (struct operand, operand): New type.
2609 (scan_arg): Renamed from scan_double_arg, since we no longer use double.
2611 Compute and return a value of type operand, not double.
2612 (long_double_format): Renamed from valid_format, and now returns a
2613 new format with an "L" added if needed, if the original format was
2614 valid. Allow %a, %A, %E, %F, and %G formats.
2615 (print_numbers): Take numeric values as args rather than from globals.
2616 Print long double, not double.
2617 (get_width_format): Remove.
2618 (get_default_format): New function.
2619 (main): Implement new way of calculating default format.
2620 Don't worry about locale's representation of the decimal point, since
2621 the arguments are always processed in the C locale.
2622 * tests/seq/basic (neg-2): Adjust to new default format.
2623 (eq-wid-1, eq-wid-2): Resurrect these tests, since the new
2624 implementation should do the right thing.
2626 2006-06-30 Jim Meyering <jim@meyering.net>
2628 * tests/stty/basic-1: Work around an intermittent test failure
2629 on HP-UX 11.11. Report and analysis from Bob Proulx.
2630 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7475
2632 2006-06-28 Paul Eggert <eggert@cs.ucla.edu>
2634 * NEWS: Support obsolete usages like "sort +1 -2" even when
2635 conforming to POSIX 1003.1-2001, since this is a pure extension to
2636 POSIX. Problem reported by Christian in:
2637 http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00220.html
2638 * src/sort.c (main): Implement this.
2640 * src/system.h (CLOSEDIR): Remove. All uses changed to closedir.
2641 Autoconf 2.60 says this stuff was obsolete.
2643 2006-06-28 Jim Meyering <jim@meyering.net>
2645 * src/c99-to-c89.diff: Regenerate, to remove fuzz.
2647 2006-06-28 Bob Proulx <bob@proulx.com> (tiny change)
2649 * tests/mv/i-link-no: Work around HP-UX /bin/sh tracing problem
2650 (set -x when VERBOSE=yes) when stderr is redirected before stdout
2651 causing shell tracing of the stdout redirection to be written to
2652 the stderr file. Avoid problem and test failure on HP-UX by
2653 redirecting stderr last.
2654 * tests/dd/unblock-sync: Order shell file redirections for
2655 stderr and stdout in the common style.
2656 tests/acl: Likewise.
2658 2006-06-27 Jim Meyering <jim@meyering.net>
2660 * tests/misc/cat-proc: Try to avoid any spurious numeric
2661 differences in frequently-changing /proc/cpuinfo.
2662 Reported by Nelson Beebe.
2664 2006-06-26 Jim Meyering <jim@meyering.net>
2666 Attempt rmdir (actually, unlinkat-with-AT_REMOVEDIR) upon any
2667 fd_to_subdirp failure, not just when errno == EACCES.
2668 * src/remove.c (remove_dir): Use unlinkat-with-AT_REMOVEDIR, not
2669 rmdir, here, even though rmdir may happen to be adequate.
2671 * NEWS: rm no longer fails to remove an empty, unreadable directory
2672 * src/remove.c (remove_cwd_entries): If we can't open a directory,
2673 and the failure is not being ignored, try to remove the directory
2674 with rmdir (aka unlinkat-with-AT_REMOVEDIR), in case it's empty.
2675 Problem report and test case from Paul Eggert in
2676 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7425>.
2678 * tests/rm/empty-inacc: New test, for the above.
2680 Avoid a segfault for wc --files0=- < /dev/null.
2681 * src/wc.c (compute_number_width): Return right away if nfiles == 0.
2683 2006-06-25 Jim Meyering <jim@meyering.net>
2685 * NEWS: wc accepts a new option --files0-from=FILE, where FILE
2686 contains a list of NUL-separated file names.
2688 * src/wc.c: Include "readtokens.h".
2689 (usage): Describe the new option, and adjust the `Usage':
2690 with this option, no FILE may be specified on the command line.
2691 (main): Handle the new option.
2692 * tests/misc/wc-files0: New tests, for the above.
2693 * tests/misc/wc-files0-from: Likewise.
2694 * tests/misc/Makefile.am (TESTS): Add wc-files0.
2696 2006-06-24 Jim Meyering <jim@meyering.net>
2698 * src/md5sum.c (DIGEST_BUFFER): Remove now-unused definitions.
2700 2006-06-22 Jim Meyering <jim@meyering.net>
2702 * src/tee.c (tee_files): Rename from tee, to avoid conflict with
2703 the function in glibc's <fcntl.h>. Reported by Andreas Schwab.
2705 2006-06-19 Jim Meyering <jim@meyering.net>
2707 * Makefile.cfg (local-checks-to-skip): Add changelog-check,
2708 so this check is not run as part of "make distcheck".
2710 2006-06-18 Bob Proulx <bob@proulx.com> (tiny change)
2712 * tests/misc/pwd-long: Fix typo (s/neq/ne/) in previous change.
2714 2006-06-18 Jim Meyering <jim@meyering.net>
2716 * tests/misc/pwd-long: Make error output a little clearer.
2718 2006-06-17 Jim Meyering <jim@meyering.net>
2720 * tests/rm/inaccessible: Skip this test on systems without openat
2721 support. Reported by Bob Proulx.
2723 2006-06-15 Bob Proulx <bob@proulx.com> (tiny change)
2725 * tests/misc/mknod: Improve permission checks to handle
2726 running mkdir test in set-gid directories.
2728 2006-06-14 Jim Meyering <jim@meyering.net>
2730 * tests/du/basic: Revamp not to hard-code file system block sizes.
2732 2006-06-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2734 * tests/du/Makefile.am (TESTS_ENVIRONMENT): Pass $(PERL), for
2737 2006-06-11 Jim Meyering <jim@meyering.net>
2739 * .gitignore: New file.
2740 * Makefile.am (EXTRA_DIST): Add .gitignore.
2742 Setting TIME_STYLE=long-iso in the environment would make the
2743 cp/same-file test fail.
2744 * tests/envvar-check (vars): Add TIME_STYLE to the list.
2745 * tests/cp/same-file: Revert last change.
2746 Source the envvar-check script, to ensure that TIME_STYLE
2747 settings don't affect these tests.
2749 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
2751 * tests/cp/same-file: Execute 'ls' in the C locale, so that it
2752 uses POSIX time stamp formats. Problem reported by John Nixon in
2753 <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00062.html>.
2755 2006-06-10 Jim Meyering <jim@meyering.net>
2757 * NEWS: Mention the AIX-strndup-bug vs. dircolors workaround.
2759 Require a "Version N.M" line at the top of the ChangeLog
2760 file only when making the actual release, not when running
2762 * Makefile.maint (maintainer-distcheck): Don't depend on
2764 (alpha beta major): Depend on it here, instead.
2766 2006-06-08 Jim Meyering <jim@meyering.net>
2768 Ensure that cat works with any of the options, -A -v -e -E -T,
2769 when applied to files in /proc and /sys, even when the FIONREAD
2770 ioctl produces nonsensical results. Before this change, cat would
2771 produce no output (or truncated output), for some linux kernels.
2773 * src/cat.c (write_pending): New function, factored out of cat.
2774 (cat): Also interpret a negative ioctl/FIONREAD count as indicating
2775 that there are bytes to read. Some versions of linux-2.6.16 do that.
2776 Write any pending output before returning.
2777 Reported by Dan Jacobson in <http://bugs.debian.org/370583>.
2778 * NEWS: Mention this bug fix.
2779 * tests/misc/cat-proc: New file. Test for the above.
2780 * tests/misc/Makefile.am (TESTS): Add cat-proc.
2782 2006-06-07 Paul Eggert <eggert@cs.ucla.edu>
2784 * src/expr.c (eval4): Detect overflow properly when multiplying
2787 2006-06-06 Paul Eggert <eggert@cs.ucla.edu>
2789 * NEWS: The 'expr' command now detects and reports integer overflow.
2790 (It would be better to use extended precision instead, but that
2791 would be more work.)
2792 * src/expr.c (integer_overflow): New function.
2793 (eval4, eval3): Check for integer overflow.
2795 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
2797 Fix problems when building with Solaris/SVR4/etc. make, which uses a
2798 different and somewhat bogus implementation of VPATH. In the
2799 directory tests/misc, rename tests whose names might appear in the
2800 Automake-generated rules. For example, we can't use a test named
2801 'test', since Automake generates a rule that contains the text
2802 "if test -f ./$$tst; ...", and this might expand to something like
2803 "if ../../../coreutils-6.0/tests/misc/test -f ./$$test; ...",
2804 which executes the 'test' script rather than the 'test' command.
2805 * tests/misc/false-status: Renamed from tests/misc/false.
2806 * tests/misc/pwd-long: Renamed from tests/misc/pwd.
2807 * tests/misc/sort-merge: Renamed from tests/misc/sort.
2808 ($prog): Set to 'sort' rather than to $PROG.
2809 * tests/misc/test-diag: Renamed from tests/misc/test.
2810 * tests/misc/Makefile.am (PROG): Take the basename of $$tst,
2811 in case Solaris make has prepended the directory.
2812 (TESTS): Adjust to above renamings.
2813 * tests/misc/expand: Don't assign to PROG; no longer needed
2814 now that Makefile.am sets PROG to the basename.
2815 * tests/misc/fold: Likewise.
2817 2006-06-03 Jim Meyering <jim@meyering.net>
2819 Make `cp --link --no-dereference' work also on systems where the
2820 link system call cannot create a hard link to a symbolic link.
2821 * src/copy.c (copy_internal) [LINK_FOLLOWS_SYMLINKS]: Don't use
2822 the link syscall on a symlink when it would do the wrong thing.
2823 Based on the patch by Aurelien Jarno: <http://bugs.debian.org/329451>
2824 * tests/cp/link-no-deref: New file/test for the above.
2825 * tests/cp/Makefile.am (TESTS): Add link-no-deref.
2826 * NEWS: Mention the change (doesn't affect Linux).
2828 2006-06-01 Paul Eggert <eggert@cs.ucla.edu>
2830 Fix some porting problems in the test cases reported by
2831 Ralf Wildenhues for HP-UX 11.23 in:
2832 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00238.html
2833 * tests/help-version: Don't assume that \< \> works in sed.
2834 * tests/misc/close-stdout: Don't assume that >&- works.
2835 Add a /dev/full test.
2836 * tests/touch/no-create-missing: Don't assume that >&- works.
2838 2006-05-30 Jim Meyering <jim@meyering.net>
2840 * src/ls.c (usage): Add `v' to the list of sorting-related options.
2843 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2845 * tests/cp/fail-perm: source lang-default.
2846 * tests/rm/inaccessible: Likewise.
2848 2006-05-28 Jim Meyering <jim@meyering.net>
2850 * tests/rm/inaccessible: AIX 4.3.3 gives a different diagnostic.
2851 Recognize it, too. Reported by Ralf Wildenhues, in
2852 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html
2854 2006-05-27 Jim Meyering <jim@meyering.net>
2856 * src/chgrp.c: Support new options: --preserve-root and
2857 --no-preserve-root. Somehow this program was skipped when those
2858 options were added to chown, chmod, and rm. Reported by
2859 vaqflabuopac@spammotel.com in <http://bugs.debian.org/365656>.
2860 * NEWS: Mention this.
2862 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
2864 * NEWS: Remove mention of --seed. We'll replace it with something
2865 better, and don't want to indicate that it is supported.
2866 * src/sort.c (usage): Likewise.
2868 2006-05-20 Jim Meyering <jim@meyering.net>
2870 * src/chmod.c (main): Use FTS_PHYSICAL here, too.
2872 * src/du.c (main): Rename local, s/symlink_deref_bit/symlink_deref_bits/
2873 and arrange for -D to set fts' FTS_PHYSICAL bit as well as
2874 FTS_COMFOLLOW. Spotted by Justin Pryzby.
2876 * gnupload: Merge changes from automake, retaining the ""--to...
2877 kludge to placate overzealous `make distcheck' check.
2879 2006-05-19 Jim Meyering <jim@meyering.net>
2881 * src/du.c (main): Don't let -D, -L, or -P turn off the internal
2882 FTS_TIGHT_CYCLE_CHECK directory traversal option.
2883 Reported by Justin Pryzby in http://bugs.debian.org/367691
2885 2006-05-15 Jim Meyering <jim@meyering.net>
2887 * src/cp.c (usage): Correct description of -a: s/-dpR/-dpPR/.
2888 From Tomas Pospisek.
2890 2006-05-13 Jim Meyering <jim@meyering.net>
2892 * tests/mv/no-target-dir: Test two more cases.
2894 2006-05-11 Jim Meyering <jim@meyering.net>
2896 mv -T DIR EMPTY_DIR no longer fails unconditionally
2897 * src/copy.c (copy_internal): Don't manually prohibit a move where
2898 the destination is an existing directory. Sometimes doing that is
2899 valid. Let the rename system call enforce the rules. That is
2900 allowed only when the source is a directory and the destination
2901 directory (to be replaced) is empty. Reported by Eric Blake.
2902 * tests/mv/no-target-dir: New file/test for this.
2903 * tests/mv/Makefile.am (TESTS): Add no-target-dir.
2904 * NEWS: Mention this.
2906 * tests/mv/atomic: New file/test for yesterday's fix.
2907 * tests/mv/Makefile.am (TESTS): Add atomic.
2909 * tests/du/long-sloop: Avoid harmless `ambiguous redirect' diagnostic.
2911 2006-05-10 Jim Meyering <jim@meyering.net>
2913 * src/copy.c (copy_internal): Don't explicitly unlink the destination
2914 when moving a symlink into the place of an existing non-directory.
2915 Reported by Joshua Hudson.
2916 * NEWS: mention this.
2918 2006-05-07 Jim Meyering <jim@meyering.net>
2920 * Makefile.maint (patch-check): Fail if patch generates any output,
2921 even merely for changed offsets.
2923 * src/c99-to-c89.diff: Adjust to reflect new offsets.
2925 * NEWS: Mention changes affecting df, pwd, shred.
2927 2006-05-06 Jim Meyering <jim@meyering.net>
2929 * tests/ls/stat-vs-dirent: New test, to detect the bogus file
2930 system condition where dirent.d_ino != stat.st_ino.
2931 * tests/ls/Makefile.am (TESTS): Add stat-vs-dirent.
2933 2006-05-06 Eric Blake <ebb9@byu.net>
2935 * tests/ls/inode: Expand to test inode from readdir case.
2936 * tests/ls/follow-slink: Expand to test broken links encountered
2937 implicitly, favoring Solaris 9 and OpenBSD 3.4 behavior.
2939 2006-05-06 Eric Blake <ebb9@byu.net>
2941 * tests/mv/leak-fd: Work even on case-insensitive file system.
2943 2006-05-04 Jim Meyering <jim@meyering.net>
2945 * NEWS: Mention the 2006-03-19 pwd-related change that makes
2946 lib/getcwd.c work around inconsistent file system dirent.d_ino data.
2948 2006-05-03 Jim Meyering <jim@meyering.net>
2950 * src/ls.c (DEFINE_SORT_FUNCTIONS, LIST_SORTFUNCTION_VARIANTS):
2951 Use better macro parameter names: s/basename/key_name/,
2952 s/basefunc/key_cmp_func. Fix typo in comment.
2954 2006-04-29 Eric Blake <ebb9@byu.net>
2956 * src/ls.c (main): On systems with d_type, directories_first only
2957 implies format_needs_type, not format_needs_stat.
2959 2006-05-03 Jim Meyering <jim@meyering.net>
2961 * src/ls.c (xstrcoll_df_version, rev_xstrcoll_df_version): Add space
2962 after comma in arg list, from Eric Blake.
2964 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
2966 * tests/misc/date (relative-3): New test, derived from a bug
2967 report by John Thomas McDole.
2969 2006-04-23 Francesco Montorsi <fr_m@hotmail.com>
2971 New option for ls: --group-directories-first.
2972 It makes ls list directories before files.
2973 * NEWS [New features]: Mention it.
2974 * src/ls.c (sort_type): Rearrange to use as an array index when
2975 choosing sort function; added new sort_numtypes member for
2977 (time_type): Add new time_numtypes member for compile-time check.
2978 (directories_first): New global variable.
2979 (GROUP_DIRECTORIES_FIRST_OPTION): New enum.
2980 (long_options): Add --directories-first.
2981 (main): Support new option.
2982 (is_directory): New function.
2983 (extract_dirs_from_files): Use it.
2984 (DIRFIRST_CHECK, DEFINE_SORT_FUNCTIONS)
2985 (LIST_SORTFUNCTION_VARIANTS): New macros.
2986 (sort_functions): New global variable.
2987 (sort_files): Use it.
2988 (usage): Document new option.
2990 2006-04-18 Paul Eggert <eggert@cs.ucla.edu>
2992 * src/shred.c (fillrand): The assertion was way too weak, due to
2993 what must be a typo. Strengthen it to its intended value.
2994 (dopass): Don't use alloca; it's not worth the aggravation here,
2995 since it's used only to get a page-aligned buffer, and page
2996 alignment doesn't buy us much here. I'm suspicious that alloca
2997 causes problems on some hosts, due to a recent bug report by Adam
2998 Waltman: http://bugs.gentoo.org/130246.
3000 2006-04-18 Jim Meyering <jim@meyering.net>
3002 * tests/misc/tty-eof: Add new programs, base64, sha224sum, sha256sum,
3003 sha384sum, sha512sum.
3005 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
3007 * src/chmod.c (describe_change): Adjust to filemode changes.
3008 * src/ls.c (HAVE_ST_DM_MODE): Remove; moved to ../lib/filemode.c.
3009 (print_long_format): Use (new) filemodestring rather than
3010 (old) mode_string, so that we get more file types right, at least
3011 in theory. Adjust to filemode changes.
3012 * src/stat.c (human_access): Likewise.
3014 2006-04-18 Jim Meyering <jim@meyering.net>
3016 * src/ptx.c (main) [DEFAULT_IGNORE_FILE]: Remove code to use a default
3017 ignore file. This has never been enabled. Reported by Eric Blake.
3019 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
3021 * src/ln.c (linkfunc): Remove. This method ran into a compiler/linker
3022 bug in Interix. Just call symlink or link directly. All uses changed.
3023 * src/setuidgid.c (main) [! HAVE_SETGROUPS]: Don't call setgroups.
3024 * src/stat.c (USE_STATVFS): New macro.
3025 Include <sys/statvfs.h> and use statvfs only if USE_STATVFS.
3026 (NAMEMAX_FORMAT): define a bit more clearly, now that the
3027 statvfs-using code is a bit more regular.
3028 * src/system.h (sync) [!HAVE_SYNC]: New macro.
3030 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
3032 * NEWS: csplit, nl, expr now conform to POSIX better, and are
3033 more-compatible with traditional Unix, with respect to regular
3035 * src/csplit.c (extract_regexp): Set re_syntax_options to a
3036 value that is compatible with what POSIX requires.
3037 * src/nl.c (build_type_arg): Likewise.
3038 * src/expr.c (docolon): Likewise. Also, don't let anchors match
3039 newline; this fixes an incompatibility with tradition and with POSIX.
3040 Don't warn about leading ^. POSIX says it is unspecified whether
3041 ^ is a special character, which means that implementations can
3042 either treat it as special or not, but either way a warning is not
3043 allowed (unless the regexp is otherwise invalid). Instead, anchor
3044 the expression but treat ^ as an anchor; this is the traditional
3045 behavior (e.g., Solaris 10).
3046 (eval4, eval3, eval2): Treat non-numeric args, division by zero,
3047 and the like as invalid expressions (exit status 2), not as
3048 failure of 'expr' (exit status 3). This is more consistent with
3049 how Solaris behaves.
3050 * tests/expr/basic (fail-a): Adjust exit status to match new expr
3051 behavior, for status 2 versus 3.
3053 (bre1, bre2, bre3, bre4, bre5, bre6, bre7, bre8, bre9, bre10):
3054 (bre11, bre12, bre13, bre14, bre15, bre16, bre17, bre18, bre19, bre20):
3055 (bre21, bre22, bre23, bre24, bre25, bre26, bre27, bre28, bre29, bre30):
3056 (bre31, bre32, bre33, bre34, bre35, bre36, bre37, bre38, bre39, bre40):
3057 (bre41, bre42, bre43, bre44, bre45, bre46, bre47, bre48, bre49, bre50):
3058 (bre51, bre52, bre53, bre54, bre55, bre56, bre57, bre58, bre59, bre60):
3059 (bre61, bre62): New tests.
3060 * tests/misc/csplit: Use \{...\} in test RE, to test that we're
3061 conforming to POSIX.
3064 * tests/du/long-from-unreachable: Solaris 8 sh doesn't understand
3065 "if !". Do not assume that 'sed' can handle long, newline-free input.
3066 * tests/du/long-sloop: Likewise. Evaluate expr once, not $n times.
3068 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
3070 Adjust to new regex.h API (with new fastmap type), and clean
3071 up the regex storage allocation a bit.
3073 * src/csplit.c (struct control): Put re_compiled member at the
3074 end, since it's large. Change regexpr member from char * to bool;
3075 all uses changed. Add new member fastmap.
3076 (extract_regexp): regexp arg is now char const *, not char *.
3077 Don't bother duplicating the regular expression; it's not needed.
3078 Set fastmap from new fastmap member. Don't bother allocating
3079 a buffer, as the regexp code does a better job than we do.
3080 * src/expr.c (docolon): Allocate and use a fastmap.
3081 Don't bother allocating a buffer.
3082 * src/nl.c (body_fastmap, header_fastmap, footer_fastmap):
3084 (build_type_arg): New fastmap arg. All uses changed.
3085 Don't bother allocating a buffer, but set a fastmap.
3086 * src/ptx.c (context_regex_string, word_regex_string): Remove.
3087 (context_regex, word_regex): New vars, replacing the above.
3089 (struct regex_data): New type.
3090 (compile_regex): Renamed from alloc_and_compile_regex, since
3091 we no longer allocate storage. Arg is now a struct regex_data *,
3092 not a const char *. All uses changed. Don't allocate the fastmap;
3093 instead, take it from the caller. Don't convert size_t to int,
3094 to avoid arithmetic overflow problems. Don't bother freeing
3095 storage afterwards; it's not worth the aggravation.
3096 * src/tac.c (compiled_separator_fastmap): New ver.
3097 (main): Use it. Don't bother allocating a buffer.
3099 2006-03-30 Jim Meyering <jim@meyering.net>
3101 * src/dd.c (iwrite): Remove assignment without effect.
3102 Reported by Felix Rauch Valenti.
3104 2006-03-22 Eric Blake <ebb9@byu.net>
3106 * src/ptx.c (usage): Remove mention of --copyright/-C.
3107 (main): Alias --copyright to --version plus a deprecation warning.
3108 * NEWS: Mention this.
3110 2006-03-27 Jim Meyering <jim@meyering.net>
3112 * src/Makefile.am (uptime_LDADD): Add $(POW_LIB), for uptime's
3113 use of strtod. Tiny patch from Nickolai Zeldovich.
3115 2006-03-11 Eric Blake <ebb9@byu.net>
3117 * tests/misc/dirname: New file.
3118 * tests/basename/Makefile.am: Delete.
3119 * tests/basename/basic: Move to...
3120 * tests/misc/basename: ... this new file. Add some tests,
3121 including fixed behavior for //.
3122 * tests/misc/Makefile.am (TESTS): Sort. Add basename, dirname.
3123 * tests/Makefile.am (SUBDIRS): Remove basename.
3124 * configure.ac (AC_CONFIG_FILES): Remove tests/basename.
3126 Improvements to dirname/basename handling on platforms like
3127 cygwin with distinct // and with drive letters.
3128 * NEWS: Document new behavior.
3129 * src/basename.c (main): Don't strip suffix from file system
3131 * src/cp.c (target_directory_operand): Use new last_component.
3132 (ASSIGN_BASENAME_STRDUPA): Likewise. Reduce time spent
3133 traversing the string.
3134 * src/dircolors.c (guess_shell_syntax): Use new last_component.
3135 * src/install.c (target_directory_operand, install_file_in_dir):
3137 * src/ln.c (target_directory_operand, main): Likewise.
3138 * src/ls.c (basename_is_dot_or_dotdot): Likewise.
3139 * src/mv.c (target_directory_operand, movefile): Likewise.
3140 * src/remove.c (rm_1): Likewise.
3141 * src/shred.c (wipename): Likewise.
3142 * src/split.c (next_file_name): Likewise.
3143 * src/su.c (log_su, run_shell): Likewise.
3145 2006-03-23 Paul Eggert <eggert@cs.ucla.edu>
3147 * NEWS: nohup diagnostics are now more precise, and nohup now
3148 redirects stderr to nohup.out if stdout is closed and stderr is a tty.
3149 * src/nohup.c (main): Implement this.
3150 * tests/misc/nohup: Test the new behavior.
3152 2006-03-12 Jim Meyering <jim@meyering.net>
3154 * src/copy.c (set_author): Rename function, from preserve_author.
3156 * src/remove.c (AD_pop_and_chdir): Use new macro,
3157 CYCLE_CHECK_REFLECT_CHDIR_UP, rather than open-coding it.
3159 * src/system.h (SAME_INODE): Remove definition.
3160 Include "same-inode.h", instead.
3162 2006-03-11 Eric Blake <ebb9@byu.net>
3164 * src/pwd.c (robust_getcwd): Prepend only one slash, not two.
3166 2006-03-10 Jim Meyering <jim@meyering.net>
3168 Fix a bug whereby a user with write access to a directory being removed
3169 could cause the removal of that directory to fail with an erroneous
3170 diagnostic about a directory cycle. Reported by Vineet Chadha.
3172 * NEWS: Mention this.
3173 * src/remove.c (AD_pop_and_chdir): If the directory we're about to
3174 leave (and try to rmdir) is the one whose dev_ino is being used to
3175 detect a cycle, reset cycle_check_state.dev_ino to that of the parent.
3177 2006-03-08 Paul Eggert <eggert@cs.ucla.edu>
3179 * NEWS: Document dd's new 'directory' and 'nolinks' flags.
3180 * src/dd.c (set_fd_flags): Handle file-creation flags on file
3181 descriptors, rather than ignoring them.
3182 * tests/dd/misc: Add test cases for append, nofollow, directory,
3183 and nolinks flags. Simplify redirection to /dev/null in some cases.
3185 * tests/dd/misc: iflags->iflag. This fixes a typo that meant the
3186 noatime test never tested anything.
3188 2006-03-05 Paul Eggert <eggert@cs.ucla.edu>
3190 * src/dd.c (flags, usage): New flags directory, nolinks.
3191 * src/system.h (O_NOLINKS): Define to 0 if not already defined.
3193 * src/ls.c (usage): Mention that -f disables --color.
3194 Problem reported by Niels Möller.
3196 2006-03-03 Justin Pryzby <pryzbyj@justinpryzby.com>
3198 * man/*.x: Add references to syscalls from utilities of the same name.
3200 2006-03-05 Jim Meyering <jim@meyering.net>
3202 * tests/help-version: Set SHELL, if not already set, in order to
3203 avoid failure when `make check' is run through debuild; dircolors
3204 would fail due to lack of $SHELL. Reported by Sven Joachim.
3206 Make `base64 --wrap=N' work for N=0, and for N larger than SIZE_MAX.
3207 * src/base64.c (wrap_write, do_encode, main): Change type of
3208 parameters and locals, wrap_column, form size_t to uintmax_t.
3209 (main): Adjust to use xstrtoumax, accordingly.
3211 2006-03-03 Jim Meyering <jim@meyering.net>
3213 Don't fail when run from an environment with SHELL not a Bourne
3214 shell, e.g. `env SHELL=/bin/csh make check' would fail this test.
3215 * tests/dircolors/simple: Invoke each non-failing test with -b.
3216 Reported by Michael Stone.
3218 2006-02-27 Jim Meyering <jim@meyering.net>
3220 * tests/misc/base64: Derive --decode-using tests from the
3223 * tests/misc/base64: Factor out a long constant string.
3224 Split lines to stay within 80 columns.
3226 * tests/misc/Makefile.am (TESTS): Add base64.
3227 * tests/misc/base64: Test base64. From Simon Josefsson.
3229 * src/base64.c (do_decode): Use correct type for parameter,
3230 ignore_garbage: s/size_t/bool/.
3232 * src/base64.c: Don't include .h files already included by system.h:
3233 <string.h>, <stdlib.h>, <stdbool.h>, <limits.h>, <errno.h>.
3234 Include "system.h" before the other lib/*.h header files.
3235 Include <sys/types.h> before "system.h".
3236 (wrap_write): Remove declaration of unused local, initial_column.
3237 (wrap_write): Correct declaration syntax: s/size_t * V/size_t *V/.
3239 * README: Add base64 to the list.
3241 2006-02-17 Simon Josefsson <jas@extundo.com>
3243 New program: base64.
3244 * AUTHORS: Mention base64.
3246 * man/Makefile.am: Build base64.1.
3247 * man/base64.x: New file.
3248 * src/Makefile.am (bin_PROGRAMS): Add base64.
3249 * src/base64.c: New file.
3251 2006-02-25 Eric Blake <ebb9@byu.net>
3253 In ls, avoid calling stat for --inode (-i), when possible.
3254 * src/pwd.c (NOT_AN_INODE_NUMBER, D_INO): Move to ...
3255 * src/system.h: ... here, for use in ...
3256 * src/ls.c (main): ... here. Prefer dirent.d_ino to stat when
3258 (gobble_file): Add inode argument.
3259 (print_dir): Pass inode if available.
3260 (usage): Remove inaccuracy.
3262 2006-02-23 Jim Meyering <jim@meyering.net>
3264 * TODO: Update/correct some obsolete entries.
3266 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
3268 * doc/coreutils.texi (join invocation): Mention `sort -k 1b,1'.
3269 * src/join.c (usage): Likewise.
3270 Documentation problem reported by Philip Kensche.
3272 2006-02-20 Eric Blake <ebb9@byu.net>
3274 * man/rm.x: Update documentation to match previous patch.
3276 2006-02-18 Eric Blake <ebb9@byu.net>
3278 New option for rm: --interactive=once (-I).
3279 * NEWS: Document it, along with change to rm --interactive.
3280 * TODO: Remove entry for implementing rm -I
3281 * src/rm.c (INTERACTIVE_OPTION): New enum value.
3282 (interactive_type): New enum.
3283 (long_opts): Let interactive take an optional argument.
3284 (interactive_args, interactive_types): New option arguments.
3285 (usage): Document -I, --interactive=WHEN. Use program_name
3286 instead of a basename.
3287 (main): New -I option, new behavior to --interactive.
3288 * tests/rm/interactive-once: New tests.
3289 * tests/rm/interactive-always: Ditto.
3290 * tests/rm/Makefile.am (TESTS): Run them.
3292 2006-02-18 Jim Meyering <jim@meyering.net>
3294 * Makefile.maint (sc_two_space_separator_in_usage): Make the regular
3295 expression match more of the target lines, e.g., those that start with
3296 `-S,' (short option followed by a comma) or that include `=[...]'.
3297 Patch by Nicolas François.
3298 Fix the four offenders thus exposed:
3299 * src/join.c (usage): Use two spaces (not one) to separate the
3300 --first-only option string from its description, so help2man formats
3301 the derived man page properly.
3302 * src/pr.c (usage): Likewise.
3303 * src/uniq.c (usage): Likewise.
3304 * src/install.c (usage): Likewise.
3306 2006-02-15 Jim Meyering <jim@meyering.net>
3308 * Makefile.maint (alpha beta major): For `make major', ensure that the
3309 version string is of the form N.N[.N]*, where N is one or more digits.
3311 2006-02-14 Jim Meyering <jim@meyering.net>
3313 * INSTALL: Update from gnulib.
3315 2006-02-13 Jim Meyering <jim@meyering.net>
3317 * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
3319 2006-02-12 Jim Meyering <jim@meyering.net>
3321 * Makefile.maint (patch-check): New target.
3322 (local-checks-available): Add to the list.
3324 2006-02-11 Jim Meyering <jim@meyering.net>
3326 * src/c99-to-c89.diff: New file.
3327 * src/Makefile.am (EXTRA_DIST): Add c99-to-c89.diff.
3329 * .x-po-check: New file, with exclusions so that `make distcheck'
3331 * Makefile.am (EXTRA_DIST): Add .x-po-check.
3333 rm -r must remove an empty directory, even if it is inaccessible.
3334 * src/remove.c (close_preserve_errno): New function.
3335 (fd_to_subdirp): Don't print a diagnostic in this function.
3336 Do it from the callers instead, unless rmdir succeeds.
3337 (remove_cwd_entries, remove_dir): Adjust callers.
3338 * tests/rm/empty-inacc: New test for the above.
3339 * tests/rm/Makefile.am (TESTS): Add empty-inacc.
3340 * NEWS: Mention this bug fix.
3341 * tests/rm/rm2: Adjust two expected diagnostics, now that they're
3342 a tiny bit less precise: cannot remove `a/1': ... instead of
3343 cannot open directory `a/1': ...
3345 * Makefile.maint (syntax-check-rules): Automatically derive this
3346 list of sc_-prefixed rule names.
3348 2006-02-10 Paul Eggert <eggert@cs.ucla.edu>
3350 * Makefile.maint (CVS_LIST): Don't assume cvsu is available.
3351 (CVS_LIST_EXCEPT): New macro, to simplify exception-processing.
3352 Most uses of CVS_LIST changed to use CVS_LIST_EXCEPT.
3353 (syntax-check-rules): Bring back sc_changelong. (Hmm, why did it
3354 go away? was that an accident?)
3355 (sc_cast_of_argument_to_free, sc_cast_of_x_alloc_return_value):
3356 (sc_cast_of_alloca_return_value, sc_space_tab, sc_prohibit_atoi_atof):
3357 (sc_error_exit_success, sc_file_system, sc_no_if_have_config_h):
3358 (sc_system_h_headers, sc_sun_os_names, sc_trailing_blank):
3359 (sc_two_space_separator_in_usage, sc_unmarked_diagnostics):
3360 (sc_obsolete_symbols, sc_changelog, sc_prohibit_jm_in_m4):
3361 (sc_useless_cpp_parens, makefile-check, m4-check, po-check):
3362 (author_mark_check, makefile_path_separator_check):
3363 Output line numbers, to simplify navigation of Emacs *compilation*
3365 (sc_prohibit_atoi_atof, sc_file_system):
3366 Rework slightly so that Makefile.maint doesn't get reported as a
3367 violation of its own syntax rules.
3368 (sc_dd_max_sym_length): Use ifneq to do nothing, instead of doing
3369 it at run-time (which didn't work with Bison). Fix a makefile typo,
3370 caught by Makefile.maint itself: spaces where a tab should be.
3371 (po-check): Check lib/*.[ch] even if not in CVS; used by Bison,
3372 which copies from ../gnulib/lib/*.[ch] to lib/*.[ch].
3373 Ignore djgpp and man subdirectories, to avoid false matches with
3374 Bison and coreutils, respectively. Use sort -u to remove the
3375 resulting duplicates.
3376 * gnupload: Rework slightly to avoid bogus warning from
3377 sc_two_space_separator_in_usage.
3379 2006-02-10 Jim Meyering <jim@meyering.net>
3381 Use gzip's --rsyncable option only if it's available.
3382 * Makefile.maint (gzip_rsyncable): New variable.
3385 2006-02-08 Jim Meyering <jim@meyering.net>
3387 * Makefile.maint (local-checks-available): Define in terms of
3388 the expansion, $(syntax-check-rules), rather than the single,
3389 top-level target `syntax-check', so that it's easier to exclude
3390 individual rules (via $(local-checks-to-skip)).
3391 (tgz-md5, tgz-sha1, ...): Remove now-unused definitions.
3393 2006-02-07 Jim Meyering <jim@meyering.net>
3395 * src/system.h (!defined O_DIRECT): If O_DIRECTIO is defined (as it
3396 is on Tru64), define O_DIRECT to that. Patch From James Lemley.
3398 * tests/help-version (expected_failure_status_vdir):
3399 Redirect an expected disk-full diagnostic to /dev/null.
3401 2006-02-06 Jim Meyering <jim@meyering.net>
3403 * src/unexpand.c (usage): Use two spaces (not one) to separate the
3404 --first-only option string from its description, so help2man formats
3405 the derived man page properly.
3406 * src/rm.c (usage): Likewise for --no-preserve-root.
3407 * src/chown.c (usage): Likewise.
3408 * src/chgrp.c (usage): Likewise.
3410 Add a rule to ensure that the above doesn't happen again.
3411 * Makefile.maint (sc_two_space_separator_in_usage): New rule.
3412 (syntax-check-rules): Add it.
3413 * .x-sc_two_space_separator_in_usage: New empty file.
3414 * Makefile.am (EXTRA_DIST): Add .x-sc_two_space_separator_in_usage.
3416 2006-02-06 Jim Meyering <jim@meyering.net>
3418 * src/cp.c (usage): Use two spaces (not one) to separate each
3419 option string from its description, so help2man formats the
3420 derived man page properly.
3421 * src/mv.c (usage): Likewise.
3422 Patch from Nicolas François in http://bugs.debian.org/351601.
3424 2006-02-04 Jim Meyering <jim@meyering.net>
3426 * src/copy.c (copy_internal): cp -RL would fail when encountering
3427 the same directory more than once in the hierarchy beneath a single
3428 command-line argument. That is legitimate, e.g. when there are
3429 two or more symbolic links, each pointing to some directory that
3430 would not otherwise be copied. Reported by Christophe LYON.
3431 * tests/cp/cp-deref: New file. Test for today's fix.
3432 * tests/cp/Makefile.am (TESTS): Add cp-deref.
3433 * NEWS: Document this.
3435 2006-02-03 Jim Meyering <jim@meyering.net>
3437 * configure.ac: Require automake-1.9.6, not 1.8.3.
3439 2006-02-01 Paul Eggert <eggert@cs.ucla.edu>
3441 * src/od.c (usage): Mention that -t a ignores high order bit.
3442 Documentation problem reported by Ed Avis.
3444 2006-02-01 Jim Meyering <jim@meyering.net>
3446 * src/pwd.c (find_dir_entry): Remove unused local, `ent_sb_valid'.
3448 2006-01-30 Paul Eggert <eggert@cs.ucla.edu>
3450 * src/head.c (main): Use a better diagnostic when someone uses a
3451 trailing numeric option in an invalid way. Problem reported by
3453 * src/tail.c (parse_options): Likewise.
3455 2006-01-30 Jim Meyering <jim@meyering.net>
3457 * man/wc.x: Include `count' keyword in man page synopsis,
3458 per suggestion from http://bugs.debian.org/181585.
3460 2006-01-24 Paul Eggert <eggert@cs.ucla.edu>
3462 * src/df.c (show_dev): If the file system claims to have
3463 more available than total blocks, report the number of used
3464 blocks as being total - available (a negative number) rather
3465 than as garbage. Problem reported by Toralf Foerster.
3467 2006-01-24 Jim Meyering <jim@meyering.net>
3469 * src/tail.c (tail_forever): Don't exit-nonzero when an attempt
3470 to put a regular file in O_NONBLOCK mode fails with EPERM.
3471 That happens on Linux (up to 2.6.15) when using tail -f on a file with
3472 the append-only attribute. Reported by Dean Gaudet. For details,
3473 see http://savannah.gnu.org/bugs/?func=detailitem&item_id=15473.
3474 * NEWS: Mention this fix.
3475 * tests/tail-2/append-only: New file. Test for the above.
3476 * tests/tail-2/Makefile.am (TESTS): Add append-only.
3477 * tests/Makefile.am (check-root): Add tail-2/append-only
3479 2006-01-21 Jim Meyering <jim@meyering.net>
3481 * NEWS: Mention fts-related improvements and bug fixes.
3483 2006-01-19 Jim Meyering <jim@meyering.net>
3485 * tests/fmt/basic (pfx-1, pfx-2): New tests, to demonstrate the bug
3486 reported as http://bugs.debian.org/147577. Forwarded by Thomas Hood.
3488 2006-01-18 Jim Meyering <jim@meyering.net>
3490 * tests/du/Makefile.am (TESTS): Add long-from-unreadable.
3492 2006-01-17 Jim Meyering <jim@meyering.net>
3494 Now that fts no longer changes the current working directory, adjust
3495 its clients accordingly -- note that du.c uses fts but doesn't need
3496 any adjustment, since it doesn't operate on the actual files,
3497 but rather just uses the stat buffers provided by fts.
3499 * src/chown-core.c: Include "openat.h".
3500 Don't include "lchown.h".
3501 (restricted_chown): Accept a new parameter, CWD_FD, and use it in
3502 calling openat, lchownat, chownat, rather than open, lchown, chown.
3504 * src/chmod.c: Include "openat.h".
3505 (process_file): Use chmodat (fts->fts_cwd_fd,... in place of chmod (...
3507 * tests/du/long-from-unreadable: New test, to exercise one small
3510 2006-01-13 Jim Meyering <jim@meyering.net>
3512 * tests/Makefile.am (SUBDIRS): Add comments discouraging the
3513 addition of new directories under tests/.
3515 * tests/acl: Redirect stdin to /dev/null. Otherwise, FreeBSD 5.0's
3518 2006-01-12 Jim Meyering <jim@meyering.net>
3520 * tests/du/long-sloop: Adjust not to hard-code the expected
3521 diagnostic corresponding to ELOOP. Solaris' diagnostic differs
3522 from that of GNU libc. Reported by Paul Eggert.
3524 * tests/du/long-sloop: Create file at end of symlink chain.
3526 * tests/misc/test: New file, with a test for one of the
3527 bugs fixed by yesterday's test.c changes.
3528 * tests/misc/Makefile.am (TESTS): Add test.
3530 2006-01-11 Jim Meyering <jim@meyering.net>
3532 * tests/du/long-sloop: New file. Test for today's fts.c bug fix.
3533 That bug could make du -L, chgrp -L, or chown -L fail to diagnose
3534 a very long sequence of symbolic links (not necessarily a loop).
3535 * tests/du/Makefile.am (TESTS): Add long-sloop.
3537 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
3539 * src/test.c (test_syntax_error): Append a newline. All callers
3540 changed, except for the ones that didn't already append a newline.
3541 Bug reported by Eric Blake.
3543 2006-01-11 Jim Meyering <jim@meyering.net>
3545 * src/system.h (X2NREALLOC): Now that verify_true is no longer
3546 void, cast its result to void, to avoid gcc's warning that
3547 ``left-hand operand of comma expression has no effect''.
3548 (DECIMAL_DIGIT_ACCUMULATE, X2REALLOC): Likewise.
3550 2006-01-10 Jim Meyering <jim@meyering.net>
3552 * tests/chmod/no-x: Add a test for today's fts.c fix.
3554 2006-01-10 Jim Meyering <jim@meyering.net> (tiny change)
3556 * src/ls.c (gobble_file): Use DTTOIF only if it's defined.
3557 This is necessary for Dragonfly. Patch by Joerg Sonnenberger.
3559 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
3561 * src/system.h (X2NREALLOC, X2REALLOC, DECIMAL_DIGIT_ACCUMULATE):
3562 Use verify_true instead of verify_expr, to sync with gnulib.
3564 2006-01-08 Jim Meyering <jim@meyering.net>
3566 * src/date.c (usage): Adjust the formatting of the entries for
3567 %::z and %:::z (separate with two spaces, not one) so that help2man
3568 formats them properly. Reported by Philip Rowlands.
3570 2006-01-06 Paul Eggert <eggert@cs.ucla.edu>
3572 * configure.ac (gl_IGNORE_UNUSED_LIBRARIES): Add.
3574 2006-01-06 Jim Meyering <jim@meyering.net>
3576 * Makefile.maint (copyright-check): Use date +%Y in place of
3579 * src/remove.c (rm_1): Remove `static' attribute on local `status'.
3580 First off, the attribute should have been `volatile' (not static)
3581 to avoid longjmp-related risk of clobber. Secondly, now there is
3582 no longer any risk of a local variable being clobbered, so there's
3583 no need for any attribute at all.
3585 2006-01-05 Jim Meyering <jim@meyering.net>
3587 * src/remove.c: Give a few functions the inline attribute.
3588 (AD_pop_and_chdir): Use gotos to avoid some duplication.
3589 (AD_push): Rewrite an assertion so that the entire computation
3590 goes away when assertions are turned off.
3592 * src/tail.c (ENOSYS) [!defined ENOSYS]: Don't define here.
3593 It's already defined in "system.h".
3594 * Makefile.maint: Add a FIXME comment.
3596 2006-01-04 Jim Meyering <jim@meyering.net>
3598 * ChangeLog: Remove entries from 2005-10-22 and earlier.
3599 * ChangeLog-2005: New file, for entries up to version 5.92.
3601 2006-01-03 Jim Meyering <jim@meyering.net>
3603 * tests/du/no-x: Also allow a slightly different diagnostic -- the
3604 one you get when using openat-enabled fts.c and du (coming soon).
3605 * tests/chmod/no-x: Likewise.
3606 * tests/chgrp/no-x: Likewise.
3608 * src/system.h (O_DIRECTORY) [!defined O_DIRECTORY]: Define.
3610 2006-01-02 Paul Eggert <eggert@cs.ucla.edu>
3612 * src/chown-core.c (RC_do_ordinary_chown): New enum value.
3613 (restricted_chown): Return it, if the file cannot be accessed due
3614 to EPERM, or if no uid or gid are required, or if the file is
3615 neither a directory nor a regular file. Rewrite to avoid gotos.
3616 (change_file_owner): Handle RC_do_ordinary_chown case.
3617 Rewrite to avoid gotos.
3618 * tests/chgrp/basic: Make sure we can change the group of
3621 * src/date.c (usage): Explain %g, %G, and %V a bit better.
3623 2006-01-02 Jim Meyering <jim@meyering.net>
3625 * src/copy.c (set_owner): Correct a comment.
3627 * src/tail.c (parse_options): Change warning to say that --retry
3628 is useful `mainly' (not `only') when following by name.
3629 Reported here: http://bugs.debian.org/273781
3631 2006-01-01 Paul Eggert <eggert@cs.ucla.edu>
3633 * NEWS: Document that mkfifo and mknod -m no longer set special bits.
3634 * src/copy.c: Include lchmod.h.
3635 (copy_internal): Use lchmod rather than chmod.
3636 * src/cp.c: Include lchmod.h.
3637 (re_protect, make_dir_parents_private): Use lchmod rather than chmod.
3638 * src/mkdir.c: Include lchmod.h.
3639 (usage): Clarify -m's operation.
3640 (main): Use lchmod rather than chmod. Don't use lchmod unless the
3641 new mode contains bits outside the 777 range.
3642 * src/mkfifo.c (usage): Clarify -m's operation.
3643 (main): If -m is given, don't invoke chmod; use umask 0 instead.
3644 Report an error if -m asks for bits outside the 777 range.
3645 * src/mknod.c (usage, main): Likewise.
3647 * src/mkdir.c, src/mkfifo.c, src/mknod.c: Undo 2005-12-19 changes.
3649 2005-12-27 Jim Meyering <jim@meyering.net>
3651 * Makefile.maint (sc_obsolete_symbols): Prohibit use of O_NDELAY.
3652 (sc_prohibit_assert_without_use): New rule.
3653 (syntax-check-rules): Add it to the list.
3654 * .x-sc_prohibit_assert_without_use: New empty file.
3655 * Makefile.am (EXTRA_DIST): Add it.
3657 * Makefile.maint (CVS_LIST): Define in terms of $(srcdir).
3659 * cp.c, df.c, link.c, mknod.c, nice.c, sleep.c, unlink.c:
3660 Don't include <assert.h>; it wasn't used.
3662 2005-12-26 Paul Eggert <eggert@cs.ucla.edu>
3664 * src/chown-core.c (restricted_chown):
3665 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
3666 * src/remove.c (fd_to_subdirp): Open with O_DIRECTORY | O_NOCTTY
3667 | O_NOFOLLOW too, for consistency with other dir-openers.
3668 Use POSIX-preferred O_NONBLOCK rather than O_NDELAY.
3669 (is_empty_dir): Likewise.
3670 * src/shred.c (wipename): Likewise. Don't bother trying to open
3671 dir for writing, since POSIX prohibits it.
3673 2005-12-22 Jim Meyering <jim@meyering.net>
3675 * tests/help-version: Redirect stderr to /dev/full, to suppress
3676 write error diagnostic.
3678 2005-12-19 Jim Meyering <jim@meyering.net>
3680 * src/mkdir.c, src/mknod.c, src/mkfifo.c (main)
3681 Avoid a minor race condition when `-m MODE' is specified, by using
3682 open, fchown, and close rather than just chown. To do that reliably --
3683 even with an overly restrictive umask -- ensure that each mkdir,
3684 mknod and mkfifo call uses a mode including at least owner-read access.
3685 * src/mknod.c (main): When `-m MODE' is specified, exit nonzero if
3686 the subsequent chown (or equivalent open,fchown,close) fails.
3687 * tests/misc/mknod: New tests.
3688 * tests/misc/Makefile.am (TESTS): Add mknod.
3690 2005-12-17 Jim Meyering <jim@meyering.net>
3692 * src/remove.c (is_empty_dir): Open with O_NDELAY, so we don't hang,
3693 e.g., on a named pipe.
3694 (OPEN_NO_FOLLOW_SYMLINK): Remove definition. Use O_NOFOLLOW in
3695 place of all uses, since it is guaranteed (system.h) to be defined.
3697 2005-12-05 Andreas Gruenbacher <agruen@suse.de>
3699 Add POSIX ACL support
3700 * src/ls.c: Switch back from HAVE_ACL to USE_ACL: The acl() syscall
3701 is no requirement for ACL support; particularly, it does not exist
3702 on systems that have POSIX ACLs.
3703 * src/copy.h (cp_option_init) [umask_kill]: Remove member.
3704 * src/cp.c (umask_kill): With default acls, the umask is not to be
3705 applied. Remove umask_kill, don't change the process umask, and let
3706 the kernel apply the umask where appropriate.
3707 * src/cp.c (make_dir_parents_private): Fix logic for POSIX ACLs.
3708 * src/copy.c (get_dest_mode): Remove; it is obsolete after removing
3710 (copy_reg, copy_internal): Use copy_acl and set_acl
3711 instead of fchown/chown. Fix the logic for POSIX ACLs.
3712 (chown_succeded): Remove; we now always copy acls and
3713 preserve S_ISUID, S_ISGID, and S_ISVTX when needed, no matter if we
3714 did a chown before or not.
3715 * src/mv.c, src/install.c (cp_option_init): Don't set umask_kill member.
3716 * src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD, cp_LDADD,
3717 mv_LDADD, ginstall_LDADD): On systems with an ACL library, arrange
3718 to link with it via $(LIB_ACL), for the utilities that need it.
3720 2005-12-16 Paul Eggert <eggert@cs.ucla.edu>
3722 * src/remove.c (OPENAT_CWD_RESTORE__REQUIRE): Remove.
3723 (OPENAT_CWD_RESTORE__ALLOW_FAILURE): Likewise.
3724 (fd_to_subdirp): Remove openat_cwd_restore_allow_failure arg; its
3725 value is now signified by whether cwd_errno is null.
3726 (fd_to_subdirp, remove_dir, rm_1); Change cwd failure indicator from
3727 pointer-to-bool to pointer-to-errno-value. All callers changed.
3728 (rm_1): Don't bother setting a local cwd failure flag and then
3729 ORing it into the caller's. Just set the caller's.
3730 (rm): Use cwd failure errno value to print a slightly-better
3733 2005-12-15 Jim Meyering <jim@meyering.net>
3735 * src/stat.c (print_it): Properly handle a backslash at the
3736 end of a --printf format string. Reported by Paul Eggert.
3737 * tests/misc/stat-printf (end-bs): Add a test for the above.
3739 2005-12-15 Paul Eggert <eggert@cs.ucla.edu>
3741 * tests/acl: Port to pre-POSIX shells like Solaris 8 /bin/sh.
3742 Don't assume /etc/passwd contains user names; use 'id' instead.
3744 2005-12-15 Jim Meyering <jim@meyering.net>
3746 stat: revert behavior of --format=FMT (-c)
3747 stat: add new option: --printf=FMT
3748 * NEWS: Mention this.
3749 * src/stat.c (isodigit, octtobin, hextobin): Define.
3750 (PRINTF_OPTION): Define.
3751 (interpret_backslash_escapes, trailing_delim): New globals.
3752 (usage): Document them. Alphabetize on long option names.
3753 (print_esc_char): New function.
3754 (print_it): Rewrite, in order to handle backslash escapes.
3755 (main): Handle new option. Set globals for --format, too.
3757 * tests/misc/stat-printf: Test --printf and --format.
3758 * tests/misc/Makefile.am (TESTS): Add stat-printf.
3760 2005-12-14 Paul Eggert <eggert@cs.ucla.edu>
3762 * NEWS: sort now reports incompatible options.
3763 * src/sort.c (incompatible_options, check_ordering_compatibility):
3765 (main): Use them. Don't bother with a usage message for
3766 "sort -c a b", for consistency with other error diagnostics.
3767 * tests/sort/Test.pm (incompat1, incompat2, incompat3, incompat4):
3770 * src/cat.c (main): Undo previous change. close_stdout already
3771 does the check, so the previous change wasn't necessary.
3773 2005-12-13 Paul Eggert <eggert@cs.ucla.edu>
3775 * src/cat.c (main): Check for close (STDOUT_FILENO) failure.
3777 2005-12-12 Paul Eggert <eggert@cs.ucla.edu>
3779 Install a more-conservative approach for sort -R. It's the
3780 same basic idea as the existing code, except it uses the full ISAAC
3781 approach (called the "more kosher" approach in the existing comments).
3782 This makes "sort -R" quite a bit slower (about a factor of 2 on my
3783 little tests involving 10000 lines on a 2.4 GHz P4), but I think it's
3784 better to be conservative here at first, and review any performance
3785 improvements carefully.
3786 * .x-sc_require_config_h: Add src/rand-isaac.c.
3787 * src/rand-isaac.h: Remove. All uses now simply include rand-isaac.c.
3788 * src/Makefile.am (noinst_HEADERS): Remove rand-isaac.h.
3789 (shred_SOURCES, sort_SOURCES): Remove.
3790 (EXTRA_DIST): Add rand-isaac.c.
3791 * src/rand-isaac.c: Revert to what used to be in shred.c, without
3792 changing it to allow for varying numbers of words in the state.
3793 Alter so that we include rand-isaac.c directly rather than
3794 compiling it and linking to it. Don't include config.h or
3795 system.h; that's the includer's responsibility.
3796 Omit functions that are specific to shred.
3797 (ISAAC_LOG, ISAAC_WORDS, ISAAC_BYTES, struct isaac_state, ind):
3798 (isaac_step, struct irand_state):
3799 Resurrect these, with the same defns that used to be in shred.c.
3800 (ISAAC_SIZE, isaac_new, isaac_copy): Remove.
3801 (isaac_refill, isaac_seed_start, isaac_seed_data, irand_init, irand32):
3803 (struct isaac_state, isaac_refill, isaac_mix, isaac_init):
3804 (isaac_seed_start, isaac_seed_data, isaac_seed_finish, isaac_seed):
3805 (irand_init, irand32, irand_mod):
3806 Number of words is constant again.
3807 (struct irand_state, irand_init, irand32, irand_mod): Move to shred.c.
3808 * src/shred.c: Include rand-isaac.c rather than rand-isaac.h.
3809 * src/sort.c: Likewise.
3810 * src/shred.c (fillrand, dopass, main): Undo previous change.
3811 (struct irand_state, irand_init, irand32, irand_mod): Moved back here,
3813 * src/sort.c: Don't include md5.h; it wasn't needed.
3814 (struct keyfield): Rename random_hash to random, for consistency
3815 with the other member names. All uses changed.
3816 (usage): Tweak wording to mention STRING for --seed option.
3817 (short_options): Rorder for consistency with other programs.
3818 (rand_state): Now a struct, not a pointer to one. All uses changed.
3819 (HASH_WORDS, HASH_SIZE): Remove.
3820 (get_hash): Remove comments around resbuf size, since we can assume C89.
3821 Use a "more-kosher" (but slower) approach of invoking isaac_refill.
3822 (keycompare): Adjust to the new get_hash.
3824 (badfieldspec): Omit recently-introduced comment; it isn't needed.
3825 (main): Don't set need_random simply because gkey has it set; that
3826 doesn't necessarily mean we'll need random numbers.
3827 Redo seeding to match new get_hash approach.
3829 2005-12-10 Jim Meyering <jim@meyering.net>
3831 * src/Makefile.am (noinst_HEADERS): Add rand-isaac.h.
3833 Avoid shred segfault on 64-bit systems.
3834 * src/rand-isaac.c (isaac_refill): Don't try to negate a
3835 local of type uint32_t. Make the local an `int' instead.
3837 * NEWS: Mention sort's new options.
3839 * src/rand-isaac.c (isaac_mix): Declare to be static.
3840 Mark all other functions as `extern' so the tight-scope
3841 part of `make distcheck' passes once again.
3842 * src/rand-isaac.h (isaac_mix): Remove declaration.
3844 * src/sort.c (get_hash): Change position of `*' in parameter
3845 type to conform with convention.
3846 (main): Split a long line so it fits in 80 columns.
3847 (keycompare): Remove stray SPACE before TAB that was
3848 causing `make distcheck' to fail.
3850 * src/shred.c: Don't include gethrxtime.h. No longer needed.
3852 * tests/misc/sort-rand: New file: basic tests for the new options.
3853 * tests/misc/Makefile.am (TESTS): Add sort-rand.
3855 2005-12-10 Frederik Eaton <frederik@ofb.net>
3857 * src/Makefile.am (sort_LDADD): Add $(LIB_GETHRXTIME).
3858 (shred_SOURCES, sort_SOURCES): New macros, so we compile rand-isaac.c.
3859 * src/rand-isaac.c: New file, containing ISAAC code that was in shred.c.
3860 Make state size runtime-configurable.
3861 (isaac_new, isaac_copy): New functions.
3862 * src/rand-isaac.h: New file.
3863 * src/shred.c: Include rand-isaac.h. Move ISAAC code to rand-isaac.c.
3864 (fillrand, main): Adjust to the fact that the state size is now
3865 runtime-configurable.
3866 * src/sort.c (short_options, long_options, WORDS, keycompare, main):
3867 (usage): Add options --random-sort and --seed to implement a random
3869 Include md5.h and rand-isaac.h.
3870 (get_hash): New function.
3871 (rand_state): New var.
3872 (HASH_WORDS, HASH_SIZE): New macros.
3874 2005-12-09 Paul Eggert <eggert@cs.ucla.edu>
3876 * tests/dd/misc: Add test for dd iflags=noatime.
3878 2005-12-09 Jim Meyering <jim@meyering.net>
3880 * src/sort.c (usage): Mention white space vs -b and -t options.
3883 2005-12-09 Eric Blake <ebb9@byu.net>
3885 * src/test.c (main): Fix misleading comment.
3887 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
3889 * NEWS: Mention dd's new noatime flag.
3890 * src/system.h (O_NOATIME): Define to 0 if not already defined.
3891 * src/dd.c (flags, usage): Add support for noatime flag.
3893 2005-12-07 Jim Meyering <jim@meyering.net>
3895 Distribute the cvsu script, used only by `make syntax-check'.
3896 * Makefile.am (EXTRA_DIST): Add build-aux/cvsu.
3897 * Makefile.maint (CVS_LIST): Use build-aux/cvsu, now that we
3898 distribute a copy of this script.
3899 * .x-sc_unmarked_diagnostics: Add build-aux/cvsu.
3901 * tests/mv/acl: exit-77 before the trap, not after, if we fail
3902 to create a temporary directory on another partition.
3903 From Andreas Gruenbacher.
3905 2005-12-06 Tomas Pospisek <tpo@sourcepole.ch> (tiny change)
3907 * man/basename.x: Cross-reference to dirname and readlink.
3908 * man/dirname.x: Cross-reference to basename and readlink.
3910 2005-12-05 Andreas Gruenbacher
3912 * src/copy.c [!HAVE_FCHOWN]: Define fchown(...) to -1.
3913 (set_owner, preserve_author): New functions, factored out of copy_reg.
3914 (copy_reg): Use them.
3915 (copy_internal): Use them here, too.
3917 2005-12-04 Jim Meyering <jim@meyering.net>
3919 * src/sleep.c (usage): Say what happens with two or more arguments.
3920 Suggested by Justin Pryzby.
3922 * src/uptime.c (print_uptime): Move decl of `upsecs' into scope
3925 2005-12-03 Jim Meyering <jim@meyering.net>
3927 * src/rm.c (long_opts): Change the name of each undocumented, for-
3928 testing-only option to start with `-', so that it cannot render
3929 ambiguous any prefix it happens to share with some other option name.
3930 Problem reported by Eric Blake.
3931 * src/head.c (long_options): Likewise.
3932 * src/tail.c (long_options): Likewise.
3934 * tests/misc/head-elide-tail: Update uses of undocumented, for-
3935 testing-only --presume* options to start with `---'.
3936 * tests/rm/dangling-symlink: Likewise.
3937 * tests/rm/dir-no-w: Likewise.
3938 * tests/rm/isatty: Likewise.
3940 2005-11-30 Jim Meyering <jim@meyering.net>
3942 * Makefile.maint: Add a comment about cvsu.
3944 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
3946 * NEWS: df updates for "none", "proc", inaccessible file systems.
3947 * src/df.c (show_point): Ignore inaccessible file systems.
3948 (usage): -a includes dummy file systems, not size-0 file systems.
3950 * src/od.c (unsigned_long_long_int): Renamed from ulonglong_t,
3951 to avoid collision with POSIX name space. All uses changed.
3953 2005-11-24 Jim Meyering <jim@meyering.net>
3955 * tests/Makefile.am (EXTRA_DIST): Add acl to the list.
3956 * tests/acl: Add `$0: ' prefix to diagnostics.
3958 * .x-sc_require_config_h: Add lib/buffer-lcm.c to the list.
3960 2005-11-23 Paul Eggert <eggert@cs.ucla.edu>
3962 * src/copy.c: Improve performance a bit by optimizing away
3963 unnecessary system calls and going to a block size of at least
3964 8192 (on normal hosts, anyway). This improved performance 5% on my
3965 Debian stable host (2.4.27 kernel, x86, copying from root
3966 ext3 file system to itself).
3967 Include "buffer-lcm.h".
3968 (copy_reg): Omit last argument. All callers changed.
3969 Use xmalloc to allocate rather than trusting alloca
3970 (which is unwise with large block sizes).
3971 Declare locals more locally, if possible.
3972 Use uintptr_t words instead of int words, for a bit more speed
3973 when looking for null blocks on 64-bit hosts.
3974 Optimize away reads of zero bytes on regular files.
3975 In the typical case, insist on 8 KiB buffers, at least.
3976 Avoid unnecessary extra call to fstat when checking for sparse files.
3977 Avoid now-unnecessary cast to off_t, and "0L".
3978 Avoid unnecessary test of *new_dst when checking for same owner
3981 2005-11-22 Paul Eggert <eggert@cs.ucla.edu>
3983 * src/remove.c (rm): Don't assume C99 for-loop syntax.
3985 2005-11-22 Jim Meyering <jim@meyering.net>
3987 * src/remove.c (AD_push): Remove debugging cruft.
3989 * tests/rm/unread2 (rm): Change expected diagnostic,
3990 `cannot open directory' to `cannot remove', to align with
3992 * tests/rm/rm2: Ensure that rm now continues removing entries
3993 even after certain types of failure.
3995 * src/remove.c: Rewrite. Now, this module is reentrant on systems
3996 that provide openat (Solaris), and on systems like Linux+procfs
3997 where our openat emulation code is reentrant. This also fixes a
3998 few low-probability leaks and eliminates some code that could,
3999 in very unusual circumstances, cause rm() (via a callee) to exit.
4000 * NEWS: Mention this.
4002 * configure.ac: Put copyright dates all on one line so the
4003 emacs function that updates them works properly.
4005 2005-11-18 Paul Eggert <eggert@cs.ucla.edu>
4007 * configure.ac (AM_PROG_CC_C_O): Add. Needed for CVS Automake.
4008 Problem reported by Eric Blake.
4009 (AC_PROG_CC_STDC): Use this instead of AC_PROG_CC, so that
4010 we get a standard-conforming compiler. This relies on the new
4011 m4/c.m4 file. Note that it's a bit tricky, since c.m4 doesn't
4012 define AC_PROG_CC_STDC; we are relying on Autoconf 2.59 internals.
4013 m4/c.m4 can go away with Autoconf 2.60 comes out.
4015 2005-11-17 Jim Meyering <jim@meyering.net>
4017 * src/remove.c (AD_mark_helper): Make a `char *' parameter `const'.
4018 (AD_mark_current_as_unremovable): Likewise, but for a local.
4021 * tests/mv/acl: Let traps handle removing temporary directories.
4023 Expect acl-related tests to fail, until the corresponding
4024 patches are committed.
4025 * tests/mv/Makefile.am (XFAIL_TESTS): Add acl.
4026 * tests/cp/Makefile.am (XFAIL_TESTS): Likewise.
4028 ACL tests, from Andreas Gruenbacher.
4029 * tests/acl, tests/mv/acl, tests/cp/acl: New files.
4030 * tests/mv/Makefile.am (TESTS): Add acl.
4031 * tests/cp/Makefile.am (TESTS): Add acl.
4033 * src/ls.c (basename_is_dot_or_dotdot): Correct wording in comment.
4035 2005-11-16 Paul Eggert <eggert@cs.ucla.edu>
4037 * NEWS: Improve quality of ln's diagnostics.
4038 * src/ln.c (do_link, usage): Likewise.
4039 (do_link): Don't use alloca on a buffer of unbounded size.
4041 2005-11-16 Jim Meyering <jim@meyering.net>
4043 * tests/cp/fail-perm: Accommodate HPUX. It appears to fail
4044 with EACCES rather than EPERM. Reported by Peter O'Gorman here:
4045 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/5766
4046 This also affects AIX 4.3.3, according to Ralf Wildenhues, in
4047 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html
4049 2005-11-14 Jim Meyering <jim@meyering.net>
4051 * NEWS (sort): Mention consequences of today's mkstemp-safer.c fix.
4053 2005-11-13 Jim Meyering <jim@meyering.net>
4055 * announce-gen: Accept new option, --gpg-key-id=ID and
4056 emit a blurb telling how to use the .sig files.
4057 * Makefile.cfg (gpg_key_ID): Define.
4058 * Makefile.maint (announcement): Use new option and key.
4060 Require that most .c files include <config.h>.
4061 * Makefile.maint (sc_require_config_h): New rule.
4062 (syntax-check-rules): Add it.
4063 * .x-sc_require_config_h: New file listing exceptions to the
4064 above rule. Some are legit, others are simply grandfathered in.
4065 * Makefile.am (EXTRA_DIST): Add .x-sc_require_config_h here, too.
4067 2005-11-12 Jim Meyering <jim@meyering.net>
4069 * src/checksum.h, src/md5.c, src/sha1sum.c: Remove now-unused files.
4071 2005-11-11 Jim Meyering <jim@meyering.net>
4073 * NEWS: Mention `readlink -f' bug fix in 5.3.0 news.
4074 Mention new readlink options in 5.3.0's `New features' section.
4075 Spotted by Thomas Hood.
4077 2005-11-08 Jim Meyering <jim@meyering.net>
4079 * NEWS: Merge in changes from b5_9x branch.
4081 2005-11-08 Paul Eggert <eggert@cs.ucla.edu>
4083 * NEWS: ls now defaults to --time-style='locale', which in turn acts
4084 like --time-style='posix-long-iso' if the locale settings are messed up.
4085 * src/ls.c (decode_switches): Implement this.
4087 2005-11-08 Jim Meyering <jim@meyering.net>
4089 * tests/du/2g: s/expensive/very expensive/ in a comment.
4092 2005-10-17 Eric Blake <ebb9@byu.net>
4094 * src/ls.c (usage): Fix descriptions of --sort, --time.
4095 Reported by Vitaly A. Ostanin.
4097 2005-11-04 Paul Eggert <eggert@cs.ucla.edu>
4099 * src/ln.c: Include filenamecat.c.
4100 (FILE_BASENAME_CONCAT): Remove.
4101 (do_link): Remove last arg DEST_IS_DIR. All callers changed.
4102 (main): Use file_name_concat, base_name, and strip_trailing_slashes
4103 instead of FILE_BASENAME_CONCAT. This simplifies the code, and avoids
4106 2005-11-04 Jim Meyering <jim@meyering.net>
4108 * src/du.c (process_file): Don't overflow for files of size >= 2^31
4109 on systems with stat.st_blocks of a signed 32-bit type.
4110 This bug causes trouble on some AIX 5.1 systems.
4111 Report and trivial patch from Paul Townsend:
4112 <http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00033.html>
4113 * NEWS: Mention this.
4115 * tests/du/2g: New (very-expensive) test for the above-fixed bug.
4116 * tests/du/Makefile.am (TESTS): Add it here.
4117 * tests/very-expensive: New file.
4118 * tests/Makefile.am (EXTRA_DIST): Add it here.
4119 * tests/cp/perm: Mark this test as `very-expensive', too.
4121 2005-11-02 Paul Eggert <eggert@cs.ucla.edu>
4123 * NEWS: Mention that rm -d and maybe ln -d are scheduled for
4125 * src/remove.h (struct rm_options): Remove unlink_dirs. All uses
4127 * src/rm.c (usage): Don't mention rm -d.
4129 2005-11-02 Jim Meyering <jim@meyering.net>
4131 * tests/dd/skip-seek: Fix typo in comment: s/fileutils/coreutils.
4132 From Andreas Schwab.
4134 * tests/dd/unblock-sync: Redirect stderr to /dev/null so the
4135 `M+N records in/out' lines don't pollute `make check' output.
4137 * tests/dd/skip-seek (sk-seek4): New test, to exercise the bug
4138 fixed on 2005-10-31. This test uses the new, IN_PIPE specifier.
4139 * tests/Coreutils.pm: Accept a new type of input specifier: IN_PIPE,
4140 to indicate that the input file should be piped into the command
4141 under test (via `cat FILE | $prog ...').
4143 * src/remove.c (remove_entry): Emit a better diagnostic when rm
4144 (without -r) fails to remove a directory on a non-Linux system.
4145 This change affects only newer Solaris systems (with priv_*
4146 functions like priv_allocset). Reported by Keith Thompson.
4148 * tests/rm/dir-nonrecur: New file/test for the above fix.
4149 * tests/rm/Makefile.am (TESTS): Add dir-nonrecur.
4151 2005-11-01 Paul Eggert <eggert@cs.ucla.edu>
4153 * NEWS: "tail -c 2 FILE" and "touch 0101000000" now operate as
4154 POSIX 1002.1-2001 requires.
4155 * src/tail.c (parse_obsolete_option): Implement this.
4156 Problem reported by Vincent Lefevre.
4157 * src/touch.c (main): Pass PDS_PRE_2000 to posixtime.
4158 * tests/tail/Test.pm (c-2, c-2-minus, c2, c2-minus): New tests.
4159 (test_vector): Add special cases for _POSIX2_VERSION, and
4160 regularize the old ones a bit.
4161 * tests/touch/obsolescent: Add y2000 test.
4163 2005-10-31 Paul Eggert <eggert@cs.ucla.edu>
4165 * src/dd.c (skip): Fix off-by-one error reported by
4166 Theodoros V. Kalamatianos.
4168 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
4170 * tests/mkdir/p-3: Require that the test be run as non-root.
4171 Problem and trivial fix reported by Theodoros V. Kalamatianos.
4173 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
4175 * src/ln.c (FILE_BASENAME_CONCAT): Omit unnecessary slashes in the
4176 boundary between DEST and SOURCE in the result.
4178 2005-10-26 Dmitry V. Levin <ldv@altlinux.org>
4180 * src/md5sum.c (main) [!O_BINARY]: Changed default read mode
4181 back to text, to sync with documentation and for backwards
4184 2005-10-25 Jim Meyering <jim@meyering.net>
4186 * tests/dircolors/simple (other-wr): Add an explicit test for
4187 the dircolors bug (NULL-dereference) fixed yesterday.
4189 2005-10-24 Jim Meyering <jim@meyering.net>
4191 * src/tac.c (tac_file): When determining whether a file is seekable,
4192 also test whether it is a tty. Using only the lseek-based test would
4193 give a false positive on Solaris. Reported by Peter Fales.
4195 2005-10-24 Dmitry V. Levin <ldv@altlinux.org>
4197 * tests/install/d-slashdot: New test, for "install -d" failure.
4198 * tests/install/Makefile.am (TESTS): Add d-slashdot.
4199 * tests/mkdir/p-slashdot: New test, for "mkdir -p" failure.
4200 * tests/mkdir/Makefile.am (TESTS): Add p-slashdot.
4202 2005-10-24 Jim Meyering <jim@meyering.net>
4204 * src/dircolors.c (ls_codes): Add missing comma.
4205 Anonymous report and patch from
4206 http://savannah.gnu.org/bugs/?func=detailitem&item_id=14849
4208 * src/dircolors.c: Add compile-time assertion that the slack_codes
4209 and ls_codes arrays have the same number of elements. This would
4210 have prevented the above-fixed bug.
4212 * src/expand.c (parse_tab_stops): Add a comment to make this function
4213 identical to the one in unexpand.c.
4214 * src/unexpand.c (parse_tab_stops): Adjust syntax to make this function
4215 identical to the one in expand.c.
4217 * src/expand.c (next_file): Don't assume fopen cannot return stdin.
4219 2005-10-23 Jim Meyering <jim@meyering.net>
4221 * src/md5sum.c (digest_check, main): Use ptr_align rather than
4222 a dangerous pointer-value-to-`unsigned' cast.
4223 * NEWS: mention the new sha* programs.
4224 * AUTHORS: Add new sha* programs.
4226 2005-08-28 David Madore <david.madore@ens.fr>
4228 Add new programs: sha224sum, sha256sum, sha384sum, sha512sum.
4229 * README: Add their names to the list.
4230 * src/md5sum.c: Provide framework for computing sha-2 hashes.
4231 * src/Makefile.am (sha224sum, sha256sum, sha384sum, sha512sum):
4232 Rules for compiling sha-2 utilities
4233 (noinst_HEADERS): Remove checksum.h.
4234 * man/sha512sum.x, man/sha384sum.x, man/sha256sum.x, man/sha224sum.x:
4236 * man/Makefile.am (dist_man_MANS): Add the corresponding .1 names.
4237 (sha224sum.1, sha256sum.1, sha384sum.1, sha512sum.1): New dependencies.
4238 * tests/misc/sha224sum, tests/misc/sha256sum: New files.
4239 * tests/misc/sha384sum, tests/misc/sha512sum: New files.
4240 * tests/misc/Makefile.am (TESTS): Add new sha224sum, sha256sum,
4241 sha384sum, sha512sum test scripts here rather that each in its
4244 2005-08-28 David Madore <david.madore@ens.fr>
4246 * tests/sha1sum/basic-1 (million-a): Add the "million a's" test (one
4247 of the FIPS test vectors).
4249 2005-10-23 Jim Meyering <jim@meyering.net>
4251 * configure.ac: Use 6.0-cvs as the version string.
4252 * NEWS: Adjust accordingly.
4257 Copyright (C) 2005, 2006 Free Software Foundation, Inc.
4259 Copying and distribution of this file, with or without
4260 modification, are permitted provided the copyright notice
4261 and this notice are preserved.