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