1 2006-09-24 Jim Meyering <jim@meyering.net>
3 * tests/help-version (sync_args): Don't call sync, since it spins up
4 disks that I've deliberately caused to spin down (but not unmounted).
6 * NEWS: Mention the improvement to sort.
8 * tests/tail-2/proc-ksyms: Require that /proc/ksyms be readable
11 * tests/ls/stat-dtype: Don't use tmpfs on linux-2.4 or older,
12 since that predated addition of d_type support.
14 2006-09-23 Jim Meyering <jim@meyering.net>
16 * gl/modules/getloadavg.diff: New file. Work around the way the latest
17 version of the getloadavg module interacts with our bootstrap script.
18 * bootstrap (gnulib_tool_options): Add "--local-dir gl".
19 * Makefile.am (EXTRA_DIST): Sort file names.
20 Add bootstrap and gl/modules/getloadavg.diff
22 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
24 * bootstrap: Add support for --force.
25 (usage): New function. Describe usage less tersely.
26 (CVS_only_file): New var.
28 * NEWS: Document fix for cp -i and mv -i.
29 * src/copy.c (copy_internal): With -i, prompt even if the source
30 is a directory and the destination is not. This is required by
31 POSIX and gives the user a chance to bail out before failing.
32 * tests/cp/Makefile.am (TESTS): Add cp-i.
33 * tests/cp/cp-i: New file.
34 * tests/mv/Makefile.am (TESTS): Add i-5.
35 * tests/mv/i-5: New file.
37 2006-09-20 Jim Meyering <jim@meyering.net>
39 * NEWS: Mention the chmod bug fix.
41 * tests/chmod/inaccessible: New test, specifically for this bug.
42 Based on a test case from Paul Eggert.
43 * tests/chmod/Makefile.am (TESTS): Add inaccessible.
45 Fix the 2006-09-18 bug differently.
46 * src/chmod.c: (process_file): Upon FTS_NS for a top-level file,
47 tell fts_read to stat the file again, in case it has become
48 accessible since the initial fts_open call.
49 * src/chown-core.c (change_file_owner): Likewise.
51 * src/chmod.c: Revert last change. There is a better way.
52 * src/chown-core.c: Likewise.
54 2006-09-19 Paul Eggert <eggert@cs.ucla.edu>
56 * src/ln.c (target_directory_operand): Rewrite to avoid porting
57 problem on Tandem reported by Matthew Woehlke in
58 <https://savannah.gnu.org/bugs/?17172>.
60 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
62 Fix bug where chmod, chown, and chgrp did not process operands
63 left-to-right in some cases.
64 * src/chmod.c (wd_errno): New var.
65 (chmod_file): New function, with most of the contents of the
66 old prcess_file function.
67 (process_files): Use it. This gives file names to fts one
68 at a time, so that they are processed left-to-right as POSIX
70 * src/chown-core.c (wd_errno, chown_files): Likewise.
71 (chown_file): New function.
72 * tests/install/basic-1: Redo test so as to not workaround
73 the chmod bug, thereby testing for it.
75 * src/shuf.c (main): Quote the entire range when reporting an
76 invalid one, rather than just the part that contained the error.
78 * tests/stty/row-col-1: Rewrite to avoid temporary file that is
79 sometimes left behind if the test is skipped or interrupted.
81 * bootstrap (symlink_to_gnulib): New function.
82 (cp_mark_as_generated): Use it, to prefer symlinks-to-gnulib
84 (cp_mark_as_generated, slurp, gnulib_files):
85 Avoid making a copy if it's the same as the old version.
86 (gnulib_files): Add support for this variable (used by Bison).
88 * tests/ls/stat-vs-dirent: Fix quoting problem in diagnostic
89 indicating flaw in kernel. Reword to say that the flaw isn't
90 serious for coreutils, since the flaw does affect ls -i.
92 * tests/chgrp/basic: Fix bug in test case exposed by building on
93 Solaris 8 in a setgid directory. The test case incorrectly
94 assumed that 'symlink' would be in group $g1.
96 2006-09-18 Jim Meyering <jim@meyering.net>
98 * NEWS: Add a line for 6.3-cvs.
99 * configure.ac (AC_INIT): Bump to 6.3 and add "-cvs" suffix.
102 * NEWS: Record the 6.2 release date.
103 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
105 2006-09-17 Jim Meyering <jim@meyering.net>
107 * tests/chgrp/basic: On an OpenBSD system, rather than failing
108 due to a known problem, merely warn about it.
109 Rewrite to avoid testing output of chgrp --verbose and chgrp -c.
110 Instead, use stat to test file system for desired results, directly.
111 * tests/chgrp/Makefile.am (TESTS_ENVIRONMENT): Set host_triplet.
113 * tests/envvar-check: Add more variable names to the list of those
114 that can affect these programs and tests: _POSIX2_VERSION, COLUMNS,
115 QUOTING_STYLE, TABSIZE, TERM, TMPDIR.
117 2006-09-16 Paul Eggert <eggert@cs.ucla.edu>
119 * NEWS: Document that mkdir -p and install -d now fork on occasion.
120 * bootstrap.conf (gnulib_modules): Add savewd.
121 * src/install.c: Include savewd.h.
122 (process_dir): New function.
123 (main, install_file_in_file_parents): Use it, along with the new
124 savewd module, to avoid some race conditions.
125 * src/mkdir.c: Include savewd.h.
126 (struct mkdir_options): New members make_ancestor_function, mode,
128 (make_ancestor): Return 1 if the resulting directory is not readable.
129 (process_dir): New function.
130 (main): Use it, along with new savewd module, to avoid some
131 race conditions. Fill in new slots of struct mkdir_options, so
132 that callees get the values.
133 * tests/install/basic-1: Test for coreutils 5.97 bug that was
134 fixed in coreutils 6.0, and which should still be fixed with
136 * tests/mkdir/p-3: Likewise.
138 2006-09-15 Jim Meyering <jim@meyering.net>
140 * bootstrap.conf (gnulib_modules): Add rename-dest-slash.
141 The 2006-09-08 changes made it so "mv dir new-name/" would
142 fail on NetBSD 1.6. This makes it work once again.
144 2006-09-14 Jim Meyering <jim@meyering.net>
146 * src/mv.c (main): Remove unnecessary (always-true) test for 2 <= n.
147 Instead, since it's a little fragile, assert the condition.
148 (target_directory_operand): Update comment to reflect latest change.
150 2006-09-12 Paul Eggert <eggert@cs.ucla.edu>
152 * src/who.c (print_user): Rewrite to avoid warning from
153 GCC 4.1.1 with -Wall.
155 2006-09-12 Jim Meyering <jim@meyering.net>
157 * tests/mv/atomic: Check for specific strace output, rather than
158 simply nonempty. RHEL AS 4 would fail this test due to strace
159 generating "[ Process PID=14434 runs in 32 bit mode. ]".
160 Reported by Nelson Beebe.
162 2006-09-11 Jim Meyering <jim@meyering.net>
164 * src/remove.c (remove_dir): Move new cache_stat_init call onto
166 (rm_1): Move declaration of "st" and new cache_stat_init call
167 "down" to nearer where they're used.
168 * src/c99-to-c89.diff: Add another set of curly braces.
170 2006-09-10 Paul Eggert <eggert@cs.ucla.edu>
172 * src/expr.c (eval6): Fix buffer overrun, or bad performance, if
173 substr's last operand is very large. Performance problem reported
176 2006-09-09 Jim Meyering <jim@meyering.net>
178 * Makefile.maint (sc_prohibit_jm_in_m4): Don't hang when there
180 (sc_require_config_h): Skip this test if there are no version-
182 (sc_prohibit_assert_without_use): Likewise.
184 2006-09-08 Jim Meyering <jim@meyering.net>
186 * bootstrap: Export CVS_RSH separate from its assignment, to work
187 even with Solaris 10's /bin/sh. Suggestion from Mark D. Baushke.
189 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
191 * NEWS: tail now ignores the -f option if POSIXLY_CORRECT is set,
192 no file operand is given, and standard input is any FIFO.
193 This is in response to Open Group XCU ERN 114.
194 * src/tail.c (main): Likewise.
196 2006-09-08 Jim Meyering <jim@meyering.net>
198 mv and "cp -r" no longer fail when invoked with two arguments
199 where the first one names a directory and the second name ends in
200 a slash and doesn't exist. E.g., "mv dir B/", for nonexistent B,
201 now succeeds, once more. This reverts part of the 2004-06-27
203 * NEWS: Say the above.
204 * src/mv.c (target_directory_operand): Don't require (here)
205 that the target operand "look like" a directory. This change
206 pushes the test down to the rename syscall level, where a
207 "mv dir existing-non-dir/" will mistakenly succeed on older systems
208 that ignore trailing slashes in the rename destination argument.
209 * src/cp.c (target_directory_operand): Likewise, but for cp.
210 * tests/mv/trailing-slash: Exercise the above fixes.
211 * tests/cp/trailing-slash: New file.
212 * tests/cp/Makefile.am (EXTRA_DIST): Add trailing-slash.
214 * bootstrap: Use the previously unused variable, $src,
215 to avoid repeating "$GNULIB_SRCDIR/$file".
217 * bootstrap (cp_mark_as_generated): Don't use "local", to
218 accommodate ancient "/bin/sh". Suggested by Ralf Wildenhues.
219 Rename now-global "$src" and "$dst" to have cp_ prefix.
220 Safer, and avoids confusion.
222 * bootstrap (cp_mark_as_generated): New function.
223 (slurp): Use it to prepend editor hints and a warning that
224 the file we're copying is generated.
225 Suggestion from Bruce Korb.
226 (cp_mark_as_generated): Don't add C-style comments for .l or .y files.
227 Fix last-minute typo.
229 2006-09-07 Jim Meyering <jim@meyering.net>
231 * bootstrap: Revert last change. There are less disruptive ways
232 to mark these generated files as read-only.
234 * src/c99-to-c89.diff: Update to have proper offsets.
236 2006-09-06 Jim Meyering <jim@meyering.net>
238 Ensure that some gnulib-tool-generated files are read-only.
239 * bootstrap (slurp): Put the body of this function in a sub-shell,
240 with "umask a-w" so that all new files are read-only. Remove each
241 file before we write to it, in case it's read-only.
242 Make po/Makevars and runtime-po/Makevars read-only, too.
244 2006-09-05 Jim Meyering <jim@meyering.net>
246 * tests/cp/acl: Skip this test when cp lacks ACL support.
247 * tests/cp/Makefile.am (TESTS_ENVIRONMENT): Set $(CONFIG_HEADER).
249 * src/c99-to-c89.diff (remove.c): Adapt one hunk to match the new
250 context from change of 2006-09-02.
252 2006-09-04 Jim Meyering <jim@meyering.net>
254 * README-cvs: Fix typo in update command.
256 2006-09-03 Jim Meyering <jim@meyering.net>
258 * NEWS: Tweak the wording in the new change description so that
259 no one can think this change causes e.g., `rm -fr foo../' to fail.
261 * tests/rm/inaccessible: Adjust for movement of config.h to lib/.
262 Use $CONFIG_HEADER, rather than hard-coding it.
263 * tests/rm/Makefile.am (TESTS_ENVIRONMENT): Set $CONFIG_HEADER.
265 2006-09-02 Paul Eggert <eggert@cs.ucla.edu>
267 * NEWS: rm now rejects attempts to remove /, ./, and ../.
268 * src/basename.c: Don't include dirname.h, since system.h does it now.
269 * src/chmod.c: Likewise.
270 * src/copy.c: Likewise.
271 * src/cp.c: Likewise.
272 * src/df.c: Likewise.
273 * src/dircolors.c: Likewise.
274 * src/dirname.c: Likewise.
275 * src/du.c: Likewise.
276 * src/install.c: Likewise.
277 * src/ln.c: Likewise.
278 * src/ls.c: Likewise.
279 * src/mkdir.c: Likewise.
280 * src/mv.c: Likewise.
281 * src/remove.c: Likewise.
282 * src/rm.c: Likewise.
283 * src/rmdir.c: Likewise.
284 * src/shred.c: Likewise.
285 * src/split.c: Likewise.
286 * src/su.c: Likewise.
287 * src/system.h: Include "dirname.h", since dot_or_dotdot needs it
289 (dot_or_dotdot): Succeed even if "." or ".." is followed by a
291 * src/rm.c (usage, main): --preserve-root is now the default.
292 * src/remove.h: Fix comment.
293 * src/remove.c (cache_fstatat, cache_stat_init): New functions.
294 (cache_statted, cache_stat_ok): New functions.
295 (write_protected_non_symlink): Remove struct stat ** buf_p arg,
296 which is no longer needed with the new functions. All callers
298 (prompt, is_dir_lstat, remove_entry, remove_dir):
299 New struct stat * arg. All callers changed.
300 (write_protected_non_symlink, prompt, is_dir_lstat, remove_entry):
301 (remove_cwd_entries, remove_dir, rm_1):
302 Use and maintain the file status cache.
303 (prompt, remove_entry): Omit the first "directory" in the diagnostic
304 "Cannot remove directory `foo': is a directory". This causes "rm"
305 to pass a test case that it would otherwise fail now that it
306 "knows" more about its argument. I think the diagnostic is better
307 without the first "directory" anyway.
308 (prompt): Remove the no-longer-needed IS_DIR arg; all callers changed.
309 (rm_1): Reject attempts to remove /, ./, or ../.
310 * tests/rm/Makefile.am (TESTS): Add r-4.
311 * tests/rm/r-4: New file.
313 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
315 * src/stat.c: Include <stddef.h>
316 (alignof): New macro.
317 (HAVE_STRUCT_STATXFS_F_FSID___VAL, HAVE_STRUCT_STATXFS_F_FSID_VAL):
319 (STRUCT_STATXFS_F_FSID_IS_INTEGER): New macro.
321 (print_statfs): If f_fsid isn't an integer, grab its words one
322 at a time in little-endian order. This is a bit easier to configure
323 and should avoid a compilation failure on MacOS reported by Bruno
326 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
328 * src/stat.c (HAVE_STRUCT_STATXFS_F_FSID_VAL, FSID_VAL): New macros, to
329 work around a Mac OS X porting problem reported by Bruno Haible in
330 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00308.html>.
331 (print_statfs): Use them.
333 * bootstrap.conf (gnulib_modules): Add isapipe.
334 * src/tail.c: Include isapipe.h.
335 (IS_PIPE_LIKE_FILE_TYPE): Remove.
336 (IS_TAILABLE_FILE_TYPE): Just list both FIFOs and sockets as
337 tailable, since this seems to be portable.
338 (main): Use isapipe, to fix a bug on MacOS X reported by Bruno Haible in
339 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00304.html>.
341 * src/system.h (LOCALEDIR): Remove, since configmake.h now defines
344 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
346 * src/copy.c (copy_internal): Don't test whether macros like
347 S_ISLNK are defined, since they're always defined now.
348 * src/cp.c (main): Likewise.
349 * src/ln.c (main): Likewise.
350 * src/ls.c (get_link_name, make_link_name): Likewise.
351 * src/mknod.c (main): Likewise.
352 * src/mkfifo.c (usage): Likewise.
353 * src/who.c (S_IWGRP): Likewise.
355 Adjust to recent gnulib changes for the gnulib module.
356 * bootstrap.conf (gnulib_modules): Add fcntl.
357 * src/system.h (SEEK_SET, SEEK_CUR, SEEK_END): Remove. Other code
358 is already assuming these macros are defined.
359 (O_DIRECT, O_DIRECTORY, O_DSYNC, O_NDELAY, O_NOATIME, O_NONBLOCK):
360 (O_NOCTTY, O_NOFOLLOW, O_NOLINKS, O_RSYNC, O_SYNC, O_BINARY, O_TEXT):
361 Remove; the fcntl module now handles these.
363 Adjust to recent gnulib changes for the inttypes module.
364 * bootstrap.conf (gnulib_modules): Remove stdint; add inttypes.
365 (excluded_files): Don't exclude m4/inttypes-h.m4 or m4/inttypes-pri.m4.
367 * src/system.h: Don't bother to include <stdint.h>, since we can
368 now assume inttypes.h does the equivalent of including stdint.h.
370 2006-08-27 Jim Meyering <jim@meyering.net>
372 * src/copy.c (copy_internal): Don't make a backup if the last
373 component of the source name is "." or "..".
374 Reported by Andreas Schwab in http://savannah.gnu.org/bugs/?17540.
375 * NEWS: Mention this.
376 * tests/cp/src-base-dot: New file. Test for the above fix.
377 * tests/cp/Makefile.am (TESTS): Add src-base-dot.
379 * src/system.h (DOT_OR_DOTDOT): Remove macro. Rewrite as a...
380 (dot_or_dotdot): ...new static inline function.
381 * src/remove.c (rm_1): Reflect this renaming.
382 * src/ls.c (basename_is_dot_or_dotdot): Likewise.
384 * src/copy.c (copy_internal): Add comments.
386 2006-08-26 Paul Eggert <eggert@cs.ucla.edu>
388 * src/Makefile.am (AM_CPPFLAGS): Remove -I$(srcdir) and -I../lib,
389 since Automake supplies them for us. It always did -I$(srcdir),
390 and with the recent change to AC_CONFIG_HEADERS in configure.ac it
391 is now also doing -I../lib.
393 * bootstrap (get_translations): Skip this if WGET_COMMAND is empty.
394 Fail if the first "echo" fails. Suppress diagnostics from "ls po/*.po"
395 since there might not be any .po files.
396 (WGET_COMMAND): Set to empty if wget doesn't
397 seem to be available.
399 2006-08-26 Jim Meyering <jim@meyering.net>
401 This test was failing in some environments.
402 * tests/ls/color-dtype-dir: Don't rely on eval "`dircolors -b`"
403 to set LS_COLORS in the environment.
404 * tests/envvar-check: Instead, ensure that LS_COLORS is not set.
405 Reported by Bob Proulx.
407 * src/c99-to-c89.diff: Remove hunk for copy.c; no longer needed.
409 * Makefile.am (EXTRA_DIST): Remove these files here, too:
410 .x-sc_no_if_have_config_h, .x-sc_prohibit_assert_without_use,
411 .x-sc_two_space_separator_in_usage.
413 Fix "mv --verbose --backup" so its output includes the
414 " (backup: foo.~1~)" suffix also when backing up a directory.
415 * NEWS: Report this bug fix.
416 * src/copy.c (emit_verbose): New function, factored out of...
417 (copy_internal): ...here. Use the new function.
418 * tests/mv/backup-dir: Test for the above fix.
419 * tests/mv/Makefile.am (TESTS): Add backup-dir.
421 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
423 * .x-sc_no_if_have_config_h: Remove; no longer needed.
424 * .x-sc_prohibit_assert_without_use: Remove; it was empty.
425 * .x-sc_two_space_separator_in_usage: Likewise.
426 * Makefile.maint (sc_no_have_config_h): Renamed from
427 sc_no_if_have_config_h, since it now checks that HAVE_CONFIG_H
428 is absent everywhere.
429 * bootstrap.conf (gnulib_modules): Add config-h.
430 * src/shred.c: Include <config.h> unconditionally, since
431 we now assume config.h exists.
432 * src/dircolors.c: Likewise.
434 2006-08-26 Jim Meyering <jim@meyering.net>
436 "ls --color" would highlight other-writable and sticky directories
437 no differently than regular directories on a file system with
438 dirent.d_type support.
439 * NEWS: Say the above.
440 * src/ls.c (gobble_file): With --color, also stat the file when
441 we know it is a directory.
442 Derived from an anonymous one-line fix and bug report:
443 <http://savannah.gnu.org/bugs/?15043>.
444 * tests/ls/color-dtype-dir: New file. Test for the above fix.
445 * tests/ls/Makefile.am (TESTS): Add color-dtype-dir.
447 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
449 * .cvsignore: Remove stamp-h1. Add coreutils-*, to ignore
451 * bootstrap.conf: Add configmake, verify.
452 * src/.cvsignore: Remove localedir.h.
453 * src/Makefile.am (localedir, DISTCLEANFILES, localedir.h): Remove;
454 subsumed by configmake.
455 * src/system.h: Include configmake.h rather than localedir.h
456 (LOCALEDIR): New macro.
458 Rewrite to avoid some unnecessary casts, macros, literals.
459 * src/shred.c (DEFAULT_PASSES, VERBOSE_UPDATE): Now constants,
461 (SECTOR_SIZE, SECTOR_MASK): New constants.
462 (fillpattern, dopass, do_wipefd, main): Remove unnecessary casts,
463 and use the SECTOR_* constants when applicable. Check for size <
464 0 rather than size == -1, since negative-size files are a sign of
467 2006-08-25 Bruno Haible <bruno@clisp.org>
469 * src/shred.c (dopass): Assume a continuable error if EIO even
470 if the current position is not a multiple of 512.
472 2006-08-24 Jim Meyering <jim@meyering.net>
474 * src/stat.c (print_statfs): Fix typo: remove extra "sizeof".
476 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
478 * src/stat.c (HAVE_STRUCT_STATXFS_F_FSID___VAL): Define. This
479 macro was being used without being defined.
480 (SB_F_NAMEMAX): Remove cast.
481 (f_fsid) [BeOS]: Likewise.
482 (OUT_NAMEMAX): Renamed from NAMEMAX_FORMAT, with a new meaning.
484 (out_string, out_int, out_uint, out_uint_o, out_uint_x): New
486 (xstrcat): Remove. All uses changed to use the above functions.
487 (print_statfs, print_stat): 2nd arg is now the prefix len, not the
488 buffer len. All uses changed. Output '?', not '*', for unknown
489 data or errors. Do not assume signed values can be interchanged
490 with unsigned when printing.
491 (print_statfs): For %i, print the fsid as a single int, not as a
493 (print_it): Quote invalid format better.
495 * NEWS: printf supports the I flag.
496 * src/printf.c (print_formatted) [glibc 2.2 or later]: Likewise.
498 2006-08-23 Bruno Haible <bruno@clisp.org>
500 * src/stat.c (STRUCT_STATVFS, statfs, f_fsid, f_blocks, f_bfree) [BeOS]:
501 (f_bavail, f_bsize, STATFS_FRSIZE, f_files, f_ffree) [BeOS]:
502 (STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME) [BeOS]: Define.
504 * src/ls.c (SA_RESTART): Fallback define.
506 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
508 * src/system.h (EDQUOT): Define if not already defined.
509 Problem reported by Bruno Haible for BeOS.
511 * .cvsignore: Remove config.h, config.hin, as they are now
513 * configure.ac (AC_CONFIG_HEADERS): Move config.h and config.hin
515 * src/Makefile.am (AM_CPPFLAGS): Remove '-I..'; no longer needed.
517 * bootstrap (slurp): Define gl_LOCK_EARLY instead of gl_LOCK,
518 to accommodate today's gnulib change.
520 2006-08-23 Jim Meyering <jim@meyering.net>
522 * NEWS: Mention the sweeping infrastructure changes.
524 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
526 * bootstrap.conf (gnulib_modules): Add gnupload.
527 * Makefile.maint (emit_upload_commands): gnupload is now
529 * gnupload: Remove from CVS, since it's now a gnulib module.
531 * bootstrap (bootstrap_conf_cleanup): Remove.
532 (excluded_files): New var.
533 * bootstrap.conf: Likewise.
534 * bootstrap (slurp): Exclude files early if they're in the
535 excluded_files list. That way, their names don't get put into
538 * aclocal.m4, config.hin, configure:
539 Remove from CVS, since ./bootstrap generates them automatically.
540 * .cvsignore: Add INSTALL, Makefile.in, aclocal.m4, config.hin,
541 configure, *.cache, *.lineno, *.log.
542 Remove more-specific entries. This catches files like configure.lineno.
543 * man/.cvsignore: Add Makefile.in.
544 * src/.cvsignore: Add Makefile.in.
545 Remove .version, dir.c, install, mvdir, stamp-v, vdir.c, version.c.
548 * tests/chgrp/.cvsignore:
549 * tests/chmod/.cvsignore:
550 * tests/chown/.cvsignore:
551 * tests/cp/.cvsignore:
552 * tests/cut/.cvsignore:
553 * tests/dd/.cvsignore:
554 * tests/dircolors/.cvsignore:
555 * tests/du/.cvsignore:
556 * tests/expr/.cvsignore:
557 * tests/factor/.cvsignore:
558 * tests/fmt/.cvsignore:
559 * tests/head/.cvsignore:
560 * tests/install/.cvsignore:
561 * tests/join/.cvsignore:
562 * tests/ln/.cvsignore:
563 * tests/ls/.cvsignore:
564 * tests/ls-2/.cvsignore:
565 * tests/md5sum/.cvsignore:
566 * tests/misc/.cvsignore:
567 * tests/mkdir/.cvsignore:
568 * tests/mv/.cvsignore:
569 * tests/od/.cvsignore:
570 * tests/pr/.cvsignore:
571 * tests/readlink/.cvsignore:
572 * tests/rm/.cvsignore:
573 * tests/rmdir/.cvsignore:
574 * tests/seq/.cvsignore:
575 * tests/sha1sum/.cvsignore:
576 * tests/shred/.cvsignore:
577 * tests/sort/.cvsignore:
578 * tests/stty/.cvsignore:
579 * tests/sum/.cvsignore:
580 * tests/tac/.cvsignore:
581 * tests/tail/.cvsignore:
582 * tests/tail-2/.cvsignore:
583 * tests/tee/.cvsignore:
584 * tests/test/.cvsignore:
585 * tests/touch/.cvsignore:
586 * tests/tr/.cvsignore:
587 * tests/tsort/.cvsignore:
588 * tests/unexpand/.cvsignore:
589 * tests/uniq/.cvsignore:
590 * tests/wc/.cvsignore:
591 Add Makefile.in. Sort entries if necessary. Remove *.I, *.E,
592 *.X, *.O, *-tests, build-script, mk-script if they're never
593 created in this directory.
595 2006-08-22 Bruno Haible <bruno@clisp.org>
598 * src/uptime.c: Include OS.h if it exists.
599 (print_uptime): On BeOS, use the get_system_info function (actually a
600 macro). Loop through utmp entries only if utmp.h or utmpx.h exists.
601 (uptime): Call read_utmp only if utmp.h or utmpx.h exists.
603 2006-08-22 Jim Meyering <jim@meyering.net>
605 * .cvsignore: Add ABOUT-NLS.
607 Move the check-AUTHORS rule to be run as part of "make distcheck",
608 rather than "make check".
609 * src/Makefile.am (check): Don't depend on check-AUTHORS; it would
610 cause "make check" to fail on systems unable to build all binaries.
611 * Makefile.maint (check-AUTHORS): New rule.
612 (local-checks-available): Add it here.
613 Reported by Bruno Haible. Needed for BeOS.
615 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
617 * src/df.c (print_header, show_dev): Use a column width that
618 depends on the block size of -P is specified and not autoscaling.
619 Problem reported by Gustavo G. Rondina in:
620 http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00164.html
622 2006-08-21 Jim Meyering <jim@meyering.net>
624 * tests/dircolors/simple (a): Don't fail with an unexpected diagnostic
625 when the shell variable, SHELL, is not set.
626 Trigger the failure with "(unset SHELL; make check TESTS=simple)".
627 Reported by Sven Joachim in <http://bugs.debian.org/355368>.
629 * src/od.c: Now that HAVE_UNSIGNED_LONG_LONG is no longer defined
630 in config.h, change the uses to HAVE_UNSIGNED_LONG_LONG_INT.
631 Otherwise, on a system with 4-byte longs, "od -t u8" fails with this:
632 od: invalid type string `u8';
633 this system doesn't provide a 8-byte integral type
634 FIXME: add a test for this, but skip it when sizeof uintmax < 8.
636 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
638 Add a bootstrap procedure, so that the CVS version contains fewer
639 files and we bootstrap the rest from gnulib, gettext, etc.
640 * README-cvs: New file.
641 * bootstrap: New file.
642 * bootstrap.conf: New file.
643 * .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
644 * configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
646 (gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
647 (gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
649 (gl_MACROS): Call just after gl_EARLY, just for clarity.
650 * src/c99-to-c89.diff: Remove patch to ls.c; no longer needed.
651 * src/kill.c (strtoimax): Remove decl.
652 * src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
653 * src/wc.c: Likewise.
654 * src/ls.c (sort_files): Rewrite to avoid need for C99-style
655 declaration, so that we don't need to patch this file.
656 * src/printf.c (strtoimax, strtoumax): Remove decls.
657 * src/su.c: Include getpass.h.
659 * src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
660 Include inttypes.h unconditionally.
661 (LONGEST_MODIFIER, PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX): Remove.
662 (stpcpy, strndup, strstr, strtoul, mempcpy, CHAR_MIN, CHAR_MAX):
663 (SCHAR_MIN, SCHAR_MAX, UCHAR_MAX, SHRT_MIN, SHRT_MAX, INT_MAX):
664 (INT_MIN, INTMAX_MAX, INTMAX_MIN, UINT_MAX, LONG_MAX, ULONG_MAX):
665 (SIZE_MAX, SSIZE_MAX, UINTMAX_MAX): Remove.
667 * ABOUT-NLS, INSTALL, Makefile.in, man/Makefile.in:
668 * src/Makefile.in, tests/Makefile.in, tests/chgrp/Makefile.in:
669 * tests/chmod/Makefile.in, tests/chown/Makefile.in:
670 * tests/cp/Makefile.in, tests/cut/Makefile.in:
671 * tests/dd/Makefile.in, tests/dircolors/Makefile.in:
672 * tests/du/Makefile.in, tests/expr/Makefile.in:
673 * tests/factor/Makefile.in, tests/fmt/Makefile.in:
674 * tests/general/Makefile.in, tests/head/Makefile.in:
675 * tests/install/Makefile.in, tests/join/Makefile.in:
676 * tests/ln/Makefile.in, tests/ls/Makefile.in:
677 * tests/ls-2/Makefile.in, tests/md5sum/Makefile.in:
678 * tests/misc/Makefile.in, tests/mkdir/Makefile.in:
679 * tests/mv/Makefile.in, tests/od/Makefile.in:
680 * tests/pr/Makefile.in, tests/readlink/Makefile.in:
681 * tests/rm/Makefile.in, tests/rmdir/Makefile.in:
682 * tests/seq/Makefile.in, tests/sha1sum/Makefile.in:
683 * tests/shred/Makefile.in, tests/sort/Makefile.in:
684 * tests/stty/Makefile.in, tests/sum/Makefile.in:
685 * tests/tac/Makefile.in, tests/tail/Makefile.in:
686 * tests/tail-2/Makefile.in, tests/tee/Makefile.in:
687 * tests/test/Makefile.in, tests/touch/Makefile.in:
688 * tests/tr/Makefile.in, tests/tsort/Makefile.in:
689 * tests/unexpand/Makefile.in, tests/uniq/Makefile.in:
690 * tests/wc/Makefile.in:
691 Remove from CVS, since ./bootstrap generates them automatically.
693 2006-08-20 Eric Blake <ebb9@byu.net>
695 * src/stat.c (USE_STATVFS): Reinstate the patch from 2006-08-15;
696 the patch from 2006-08-18 broke on cygwin.
698 2006-08-20 Jim Meyering <jim@meyering.net>
700 * NEWS: Add a line for 6.2-cvs.
701 * configure.ac (AC_INIT): Bump to 6.2 and add "-cvs" suffix.
703 2006-08-19 Jim Meyering <jim@meyering.net>
706 * NEWS: Record the 6.1 release date.
707 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
709 * tests/Makefile.am (EXTRA_DIST): Add sparse-file.
711 Avoid test failure when `make check' is run through debuild.
712 * tests/help-version: Ensure that $SHELL is set to some value
713 and exported. Patch from Sven Joachim. For details, see
714 <http://bugs.debian.org/355368>.
716 * tests/ls/stat-dtype: Test for the 2006-08-17 `ls -CF' fix.
718 * README: Describe potential "pre-C99 build failure", and work-around.
720 Some of my 2006-07-03 changes to tests/*/Makefile.am were being
721 backed out due to updates provoked by the copyright changes.
722 * tests/Makefile.am.in (PATH): Prepend $(VG_PATH_PREFIX), so that
723 it propagates to the derived Makefile.am files.
724 ($(srcdir)/Makefile.am): Mark generated .am files as read-only,
725 so we don't mistakenly edit them again.
726 * tests/cut/Makefile.am: Regenerate.
727 * tests/head/Makefile.am: Likewise.
728 * tests/join/Makefile.am: Likewise.
729 * tests/pr/Makefile.am: Likewise.
730 * tests/sort/Makefile.am: Likewise.
731 * tests/tac/Makefile.am: Likewise.
732 * tests/tail/Makefile.am: Likewise.
733 * tests/test/Makefile.am: Likewise.
734 * tests/tr/Makefile.am: Likewise.
735 * tests/uniq/Makefile.am: Likewise.
736 * tests/wc/Makefile.am: Likewise.
738 * NEWS: Fix cp --sparse so that it preserves tail-end sparseness, even
739 when the file's apparent size is not a multiple of its block size.
740 * src/copy.c (copy_reg): Don't write a NUL before calling ftruncate.
741 For some file sizes, writing that single byte would unnecessarily
742 waste a few file blocks. That write may have been necessary in the
743 early days of Linux, but now, removing it should be safe.
744 Based on a patch by Alan Curry: <http://bugs.debian.org/370792>
745 * tests/cp/sparse: New test for the above.
746 * tests/cp/Makefile.am (TESTS): Add sparse.
748 * tests/sparse-file: New file, essence factored out of...
749 * tests/du/8gb: ... here. Use the new script.
751 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
753 * src/system.h (select_plural): Reduce by 1000000, not 1000, since
754 the CVS gettext manual now suggests 1000000.
756 2006-08-18 Bruno Haible <bruno@clisp.org>
758 Add support for NetBSD 3.0.
759 * src/stat.c (USE_STATVFS): Set to 1 if 'struct statvfs' has a field
761 (STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME): Define also if 'struct statvfs'
762 has a field f_fstypename.
763 This undoes the 2006-08-15 to src/stat.c.
765 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
767 Copyright notice fixes.
769 * COPYING: Upgrade to latest version from FSF.
771 * src/uname.c: Use (C) in copyright notice.
773 * .vg-suppressions: Add copyright notice.
774 * ChangeLog: Likewise.
775 * ChangeLog-2005: Likewise.
776 * Makefile.am: Likewise.
779 * README-valgrind: Likewise.
781 * announce-gen: Likewise.
782 * man/Makefile.am: Likewise.
783 * man/chmod.x: Likewise.
784 * man/chown.x: Likewise.
785 * man/df.x: Likewise.
786 * man/du.x: Likewise.
787 * man/rm.x: Likewise.
788 * src/dircolors.hin: Likewise.
789 * src/du-tests: Likewise.
790 * src/extract-magic: Likewise.
791 * src/tac-pipe.c: Likewise.
792 * src/wheel-gen.pl: Likewise.
793 * tests/Coreutils.pm: Likewise.
794 * tests/Makefile.am.in: Likewise.
795 * tests/acl: Likewise.
796 * tests/envvar-check: Likewise.
797 * tests/expensive: Likewise.
798 * tests/group-names: Likewise.
799 * tests/help-version: Likewise.
800 * tests/mk-script: Likewise.
801 * tests/priv-check: Likewise.
802 * tests/rwx-to-mode: Likewise.
803 * tests/sample-test: Likewise.
804 * tests/setgid-check: Likewise.
805 * tests/chgrp/basic: Likewise.
806 * tests/chgrp/deref: Likewise.
807 * tests/chgrp/no-x: Likewise.
808 * tests/chgrp/posix-H: Likewise.
809 * tests/chgrp/recurse: Likewise.
810 * tests/chmod/c-option: Likewise.
811 * tests/chmod/equal-x: Likewise.
812 * tests/chmod/equals: Likewise.
813 * tests/chmod/no-x: Likewise.
814 * tests/chmod/octal: Likewise.
815 * tests/chmod/setgid: Likewise.
816 * tests/chmod/umask-x: Likewise.
817 * tests/chmod/usage: Likewise.
818 * tests/chown/basic: Likewise.
819 * tests/chown/deref: Likewise.
820 * tests/chown/separator: Likewise.
821 * tests/cp/Makefile.am: Likewise.
822 * tests/cp/acl: Likewise.
823 * tests/cp/backup-1: Likewise.
824 * tests/cp/backup-is-src: Likewise.
825 * tests/cp/cp-HL: Likewise.
826 * tests/cp/cp-deref: Likewise.
827 * tests/cp/cp-mv-backup: Likewise.
828 * tests/cp/cp-parents: Likewise.
829 * tests/cp/deref-slink: Likewise.
830 * tests/cp/dir-rm-dest: Likewise.
831 * tests/cp/dir-slash: Likewise.
832 * tests/cp/dir-vs-file: Likewise.
833 * tests/cp/fail-perm: Likewise.
834 * tests/cp/into-self: Likewise.
835 * tests/cp/link: Likewise.
836 * tests/cp/link-no-deref: Likewise.
837 * tests/cp/link-preserve: Likewise.
838 * tests/cp/no-deref-link1: Likewise.
839 * tests/cp/no-deref-link2: Likewise.
840 * tests/cp/no-deref-link3: Likewise.
841 * tests/cp/perm: Likewise.
842 * tests/cp/preserve-2: Likewise.
843 * tests/cp/r-vs-symlink: Likewise.
844 * tests/cp/same-file: Likewise.
845 * tests/cp/slink-2-slink: Likewise.
846 * tests/cp/special-bits: Likewise.
847 * tests/cp/symlink-slash: Likewise.
848 * tests/cut/Makefile.am: Likewise.
849 * tests/cut/Test.pm: Likewise.
850 * tests/dd/misc: Likewise.
851 * tests/dd/not-rewound: Likewise.
852 * tests/dd/skip-seek: Likewise.
853 * tests/dd/skip-seek2: Likewise.
854 * tests/dd/unblock-sync: Likewise.
855 * tests/dircolors/simple: Likewise.
856 * tests/du/2g: Likewise.
857 * tests/du/8gb: Likewise.
858 * tests/du/Makefile.am: Likewise.
859 * tests/du/basic: Likewise.
860 * tests/du/deref: Likewise.
861 * tests/du/deref-args: Likewise.
862 * tests/du/exclude: Likewise.
863 * tests/du/fd-leak: Likewise.
864 * tests/du/files0-from: Likewise.
865 * tests/du/hard-link: Likewise.
866 * tests/du/inaccessible-cwd: Likewise.
867 * tests/du/long-from-unreadable: Likewise.
868 * tests/du/long-sloop: Likewise.
869 * tests/du/no-deref: Likewise.
870 * tests/du/no-x: Likewise.
871 * tests/du/restore-wd: Likewise.
872 * tests/du/slash: Likewise.
873 * tests/du/slink: Likewise.
874 * tests/du/trailing-slash: Likewise.
875 * tests/du/two-args: Likewise.
876 * tests/expr/basic: Likewise.
877 * tests/factor/basic: Likewise.
878 * tests/fmt/basic: Likewise.
879 * tests/fmt/long-line: Likewise.
880 * tests/general/Makefile.am: Likewise.
881 * tests/general/atgeneral.m4: Likewise.
882 * tests/general/dd.at: Likewise.
883 * tests/head/Makefile.am: Likewise.
884 * tests/head/Test.pm: Likewise.
885 * tests/install/basic-1: Likewise.
886 * tests/install/create-leading: Likewise.
887 * tests/install/d-slashdot: Likewise.
888 * tests/install/trap: Likewise.
889 * tests/join/Makefile.am: Likewise.
890 * tests/join/Test.pm: Likewise.
891 * tests/ln/backup-1: Likewise.
892 * tests/ln/misc: Likewise.
893 * tests/ln/sf-1: Likewise.
894 * tests/ln/target-1: Likewise.
895 * tests/ls/Makefile.am: Likewise.
896 * tests/ls/Test.pm: Likewise.
897 * tests/ls/dangle: Likewise.
898 * tests/ls/dired: Likewise.
899 * tests/ls/file-type: Likewise.
900 * tests/ls/follow-slink: Likewise.
901 * tests/ls/infloop: Likewise.
902 * tests/ls/inode: Likewise.
903 * tests/ls/m-option: Likewise.
904 * tests/ls/no-arg: Likewise.
905 * tests/ls/recursive: Likewise.
906 * tests/ls/rt-1: Likewise.
907 * tests/ls/stat-dtype: Likewise.
908 * tests/ls/stat-failed: Likewise.
909 * tests/ls/stat-vs-dirent: Likewise.
910 * tests/ls/symlink-slash: Likewise.
911 * tests/ls/time-1: Likewise.
912 * tests/ls-2/tests: Likewise.
913 * tests/md5sum/basic-1: Likewise.
914 * tests/md5sum/newline-1: Likewise.
915 * tests/misc/Makefile.am: Likewise.
916 * tests/misc/base64: Likewise.
917 * tests/misc/basename: Likewise.
918 * tests/misc/cat-proc: Likewise.
919 * tests/misc/close-stdout: Likewise.
920 * tests/misc/csplit: Likewise.
921 * tests/misc/date: Likewise.
922 * tests/misc/date-sec: Likewise.
923 * tests/misc/df: Likewise.
924 * tests/misc/dirname: Likewise.
925 * tests/misc/expand: Likewise.
926 * tests/misc/false-status: Likewise.
927 * tests/misc/fold: Likewise.
928 * tests/misc/head-c: Likewise.
929 * tests/misc/head-elide-tail: Likewise.
930 * tests/misc/head-pos: Likewise.
931 * tests/misc/mknod: Likewise.
932 * tests/misc/nice: Likewise.
933 * tests/misc/nl: Likewise.
934 * tests/misc/nohup: Likewise.
935 * tests/misc/paste-no-nl: Likewise.
936 * tests/misc/pathchk1: Likewise.
937 * tests/misc/printf: Likewise.
938 * tests/misc/printf-hex: Likewise.
939 * tests/misc/pwd-long: Likewise.
940 * tests/misc/sha224sum: Likewise.
941 * tests/misc/sha256sum: Likewise.
942 * tests/misc/sha384sum: Likewise.
943 * tests/misc/sha512sum: Likewise.
944 * tests/misc/shuf: Likewise.
945 * tests/misc/sort-merge: Likewise.
946 * tests/misc/sort-rand: Likewise.
947 * tests/misc/split-a: Likewise.
948 * tests/misc/split-fail: Likewise.
949 * tests/misc/split-l: Likewise.
950 * tests/misc/stat-fmt: Likewise.
951 * tests/misc/stat-printf: Likewise.
952 * tests/misc/tac-continue: Likewise.
953 * tests/misc/test-diag: Likewise.
954 * tests/misc/tty-eof: Likewise.
955 * tests/misc/wc-files0: Likewise.
956 * tests/misc/wc-files0-from: Likewise.
957 * tests/mkdir/concurrent-1: Likewise.
958 * tests/mkdir/p-1: Likewise.
959 * tests/mkdir/p-2: Likewise.
960 * tests/mkdir/p-3: Likewise.
961 * tests/mkdir/p-slashdot: Likewise.
962 * tests/mkdir/p-thru-slink: Likewise.
963 * tests/mkdir/parents: Likewise.
964 * tests/mkdir/perm: Likewise.
965 * tests/mkdir/special-1: Likewise.
966 * tests/mkdir/t-slash: Likewise.
967 * tests/mkdir/writable-under-readonly: Likewise.
968 * tests/mv/Makefile.am: Likewise.
969 * tests/mv/acl: Likewise.
970 * tests/mv/atomic: Likewise.
971 * tests/mv/backup-is-src: Likewise.
972 * tests/mv/childproof: Likewise.
973 * tests/mv/diag: Likewise.
974 * tests/mv/dir-file: Likewise.
975 * tests/mv/dir2dir: Likewise.
976 * tests/mv/dup-source: Likewise.
977 * tests/mv/force: Likewise.
978 * tests/mv/hard-2: Likewise.
979 * tests/mv/hard-3: Likewise.
980 * tests/mv/hard-4: Likewise.
981 * tests/mv/hard-link-1: Likewise.
982 * tests/mv/i-1: Likewise.
983 * tests/mv/i-2: Likewise.
984 * tests/mv/i-3: Likewise.
985 * tests/mv/i-4: Likewise.
986 * tests/mv/i-link-no: Likewise.
987 * tests/mv/into-self: Likewise.
988 * tests/mv/into-self-2: Likewise.
989 * tests/mv/into-self-3: Likewise.
990 * tests/mv/into-self-4: Likewise.
991 * tests/mv/leak-fd: Likewise.
992 * tests/mv/mv-special-1: Likewise.
993 * tests/mv/no-target-dir: Likewise.
994 * tests/mv/part-fail: Likewise.
995 * tests/mv/part-hardlink: Likewise.
996 * tests/mv/part-rename: Likewise.
997 * tests/mv/part-symlink: Likewise.
998 * tests/mv/partition-perm: Likewise.
999 * tests/mv/perm-1: Likewise.
1000 * tests/mv/reply-no: Likewise.
1001 * tests/mv/setup: Likewise.
1002 * tests/mv/to-symlink: Likewise.
1003 * tests/mv/trailing-slash: Likewise.
1004 * tests/mv/update: Likewise.
1005 * tests/mv/vfat: Likewise.
1006 * tests/od/od-N: Likewise.
1007 * tests/od/x8: Likewise.
1008 * tests/pr/Makefile.am: Likewise.
1009 * tests/pr/Test.pm: Likewise.
1010 * tests/readlink/can-e: Likewise.
1011 * tests/readlink/can-f: Likewise.
1012 * tests/readlink/can-m: Likewise.
1013 * tests/readlink/rl-1: Likewise.
1014 * tests/rm/Makefile.am: Likewise.
1015 * tests/rm/cycle: Likewise.
1016 * tests/rm/dangling-symlink: Likewise.
1017 * tests/rm/deep-1: Likewise.
1018 * tests/rm/dir-no-w: Likewise.
1019 * tests/rm/dir-nonrecur: Likewise.
1020 * tests/rm/dot-rel: Likewise.
1021 * tests/rm/empty-inacc: Likewise.
1022 * tests/rm/empty-name: Likewise.
1023 * tests/rm/f-1: Likewise.
1024 * tests/rm/fail-2eperm: Likewise.
1025 * tests/rm/fail-eperm: Likewise.
1026 * tests/rm/hash: Likewise.
1027 * tests/rm/i-1: Likewise.
1028 * tests/rm/i-no-r: Likewise.
1029 * tests/rm/inaccessible: Likewise.
1030 * tests/rm/interactive-always: Likewise.
1031 * tests/rm/interactive-once: Likewise.
1032 * tests/rm/ir-1: Likewise.
1033 * tests/rm/isatty: Likewise.
1034 * tests/rm/no-give-up: Likewise.
1035 * tests/rm/r-1: Likewise.
1036 * tests/rm/r-2: Likewise.
1037 * tests/rm/r-3: Likewise.
1038 * tests/rm/rm1: Likewise.
1039 * tests/rm/rm2: Likewise.
1040 * tests/rm/rm3: Likewise.
1041 * tests/rm/rm4: Likewise.
1042 * tests/rm/rm5: Likewise.
1043 * tests/rm/sunos-1: Likewise.
1044 * tests/rm/unread2: Likewise.
1045 * tests/rm/unread3: Likewise.
1046 * tests/rm/unreadable: Likewise.
1047 * tests/rmdir/fail-perm: Likewise.
1048 * tests/rmdir/ignore: Likewise.
1049 * tests/rmdir/t-slash: Likewise.
1050 * tests/seq/basic: Likewise.
1051 * tests/sha1sum/basic-1: Likewise.
1052 * tests/sha1sum/sample-vec: Likewise.
1053 * tests/shred/exact: Likewise.
1054 * tests/shred/remove: Likewise.
1055 * tests/sort/Makefile.am: Likewise.
1056 * tests/sort/Test.pm: Likewise.
1057 * tests/sort-time/Makefile: Likewise.
1058 * tests/sort-time/README: Likewise.
1059 * tests/sort-time/rand-gen: Likewise.
1060 * tests/stty/basic-1: Likewise.
1061 * tests/stty/row-col-1: Likewise.
1062 * tests/sum/basic-1: Likewise.
1063 * tests/sum/sysv: Likewise.
1064 * tests/tac/Makefile.am: Likewise.
1065 * tests/tac/Test.pm: Likewise.
1066 * tests/tail/Makefile.am: Likewise.
1067 * tests/tail/Test.pm: Likewise.
1068 * tests/tail-2/Makefile.am: Likewise.
1069 * tests/tail-2/append-only: Likewise.
1070 * tests/tail-2/assert: Likewise.
1071 * tests/tail-2/assert-2: Likewise.
1072 * tests/tail-2/big-4gb: Likewise.
1073 * tests/tail-2/fflush: Likewise.
1074 * tests/tail-2/infloop-1: Likewise.
1075 * tests/tail-2/proc-ksyms: Likewise.
1076 * tests/tail-2/start-middle: Likewise.
1077 * tests/tail-2/tail-n0f: Likewise.
1078 * tests/tee/basic: Likewise.
1079 * tests/tee/dash: Likewise.
1080 * tests/test/Makefile.am: Likewise.
1081 * tests/test/Test.pm: Likewise.
1082 * tests/touch/Makefile.am: Likewise.
1083 * tests/touch/dangling-symlink: Likewise.
1084 * tests/touch/empty-file: Likewise.
1085 * tests/touch/fail-diag: Likewise.
1086 * tests/touch/fifo: Likewise.
1087 * tests/touch/no-create-missing: Likewise.
1088 * tests/touch/no-rights: Likewise.
1089 * tests/touch/not-owner: Likewise.
1090 * tests/touch/obsolescent: Likewise.
1091 * tests/touch/read-only: Likewise.
1092 * tests/touch/relative: Likewise.
1093 * tests/tr/Makefile.am: Likewise.
1094 * tests/tr/Test.pm: Likewise.
1095 * tests/tr/failures: Likewise.
1096 * tests/tsort/basic-1: Likewise.
1097 * tests/unexpand/basic-1: Likewise.
1098 * tests/uniq/Makefile.am: Likewise.
1099 * tests/uniq/Test.pm: Likewise.
1100 * tests/wc/Makefile.am: Likewise.
1101 * tests/wc/Test.pm: Likewise.
1103 2006-08-17 Jim Meyering <jim@meyering.net>
1105 ls -CF would misalign columns in some cases.
1106 * src/ls.c (get_type_indicator): New function. extracted from...
1107 (print_type_indicator): ...here. Use it.
1108 (length_of_file_name_and_frills): Use it here, too, rather than
1109 assuming stat.st_mode is valid.
1110 Reported by Andreas Schwab, here:
1111 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7774>
1112 See the test for this above. FYI, I did ls -CF /proc and visually
1113 inspected the result.
1115 * src/copy.c (copy_internal, same_file_ok): Adjust comments not
1116 to mention the now-removed cp_options.xstat member.
1118 * Makefile.maint (patch-check): Adapt to work now that the patch
1119 modifies more than one file in src/.
1121 With this patch, permit building with Solaris cc on Solaris 7.
1122 * src/c99-to-c89.diff: Add diffs to convert more c99-isms.
1123 This integrates patches from Bruno Haible.
1125 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
1127 Fix some problems reported by Bruno Haible.
1128 * tests/chmod/setgid (abs_srcdir): Remove; not used or needed.
1129 Skip this test if "chmod g+s d" silently does nothing.
1130 * tests/ls-2/tests: Skip this test suite if we can't set up files
1131 properly for the setuid-etc test. This simplifies some of the
1132 hacks we were using to work around porting problems.
1134 2006-08-16 Jim Meyering <jim@meyering.net>
1136 * tests/cp/Makefile.am: Don't mark "acl" as XFAIL.
1137 * tests/cp/acl: Instead, skip the test if either setfacl
1139 Reported by Michael Stone.
1141 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
1143 * tests/lang-default (LC_ALL): Set to "C", so we get
1144 English-language diagnostics. Unset the other variables; it
1145 should be portable to use 'unset' for this stuff nowadays.
1146 Problem reported by Bruno Haible. Using "C" reverses the
1147 2000-10-22 change to fileutils in this area.
1149 Fix bugs when printing plurals of numbers that are not
1150 unsigned long int values.
1151 * src/system.h (select_plural): New function.
1152 * src/md5sum.c (digest_check): Use select_plural to avoid bug.
1153 * src/uptime.c (print_uptime): Likewise.
1154 * src/dd.c (print_stats): Likewise. Also, don't use ngettext to
1155 print a floating point number, as reducing to 0 or 1 doesn't work
1156 for some languages. Instead, just use "s" for seconds since it
1157 doesn't need a plural form.
1159 2006-08-16 Bruno Haible <bruno@clisp.org>
1161 Old versions of gzip would write --help output to stderr, and it
1162 would be annoying to see that in the output of every "make" command.
1163 * Makefile.maint (gzip_rsyncable): Throw away stderr output of
1166 2006-08-16 Andreas Schwab <schwab@suse.de>
1168 * tests/cp/acl: Don't use non-portable == operator for test.
1170 2006-08-16 Jim Meyering <jim@meyering.net>
1172 * tests/ls/stat-dtype: Use stat to test file system type, rather
1173 than df -T, in case /etc/mtab lies. Reported by Michael Stone.
1175 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
1177 * NEWS: Mention that df exits with nonzero status if it generates
1178 no output. This change was in 6.0 but inadvertently unmentioned.
1179 * src/df.c (file_systems_processed): Renamed from n_valid_args, and now
1181 (show_dev): Don't set it until we actually output something.
1182 Print the header if this is the first output.
1183 (main): Don't print a header, as that is now show_dev's job.
1184 * tests/misc/Makefile.am (TESTS): Add df.
1185 * tests/misc/df: New file.
1187 2006-08-15 Eric Blake <ebb9@byu.net>
1189 * src/stat.c (USE_STATVFS): Define to 0 if f_type is needed, but
1190 statvfs.f_type not present. See
1191 <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16325>.
1193 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
1195 * src/dd.c (print_stats): Don't substitute "1" for number, as this
1196 causes confusion for the Hungarian translators. Problem reported
1197 by Egmont Koblinger here:
1198 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7726
1200 2006-08-15 Jim Meyering <jim@meyering.net>
1202 * .x-sc_require_config_h: Add lib/at-func.c.
1204 * NEWS: Add a line for 6.1-cvs.
1205 * configure.ac (AC_INIT): Bump to 6.1 and add "-cvs" suffix.
1207 2006-08-15 Jim Meyering <jim@meyering.net>
1210 * NEWS: Record the 6.0 release date.
1211 * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
1213 * TODO: Add an item (convert to use gnulib-tool), add to the plan
1214 for id-vs-getgrouplist, and remove a few completed items.
1216 * Makefile.maint (alpha beta major): Fix syntax error.
1218 2006-08-13 Jim Meyering <jim@meyering.net>
1220 * src/shred.c (usage): Don't indent the second line of an item.
1221 Otherwise, help2man would misformat the output.
1222 Reported by Adam Buchbinder in <https://launchpad.net/bugs/48917>.
1224 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
1226 * configure.ac (AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.
1227 Suggested by Eric Blake to avoid problems like
1228 <http://lists.gnu.org/archive/html/bug-coreutils/2006-07/msg00087.html>.
1230 2006-08-11 Jim Meyering <jim@meyering.net>
1232 * tests/ls/stat-vs-dirent: Too many (losing) systems trigger the
1233 failure that this test checks for (stat/dirent inode mismatch at
1234 a mount point), so continue to give a diagnostic about the failure,
1235 but don't actually count it as a failure.
1237 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
1239 * ABOUT-NLS: Update from gettext 0.15.
1240 * configure.ac (AM_GNU_GETTEXT_VERSION): Update from 0.13.1 to 0.15.
1242 * src/csplit.c (struct control): Remove fastmap member.
1243 (extract_regexp): Allocate fastmap separately, since otherwise
1244 it might move due to a realloc. This fixes a bug that led
1245 to a core dump on 64-bit sparc Solaris 10 (Sun Studio 10).
1247 2006-08-10 Jim Meyering <jim@meyering.net>
1249 * tests/ls/stat-dtype: If "." is tmpfs, skip this test unless uname -s
1250 reports "Linux". This avoids a failure on Solaris 10's tmpfs.
1251 Redirect both stdout and stderr of df invocations.
1253 * src/dircolors.hin: Add a TERM directive for each of the following:
1254 ansi, color-xterm, gnome, konsole, kterm, rxvt-cygwin,
1255 rxvt-cygwin-native, screen.linux, xterm-256color.
1256 Sort the TERM directives.
1257 From Mike Frysinger.
1259 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
1261 * src/dd.c (usage): Warn about oflag=append without conv=notrunc.
1262 See Debian bug 373736.
1264 * src/dircolors.hin: Add mlterm, rxvt-unicode; this fixes Debian
1267 * src/.cvsignore: Add shuf.
1269 * Makefile.maint: Remove the po-update procedure; it doesn't
1270 work with the new repository on http://www.iro.umontreal.ca/.
1271 For now I guess we'll have to fix things by hand.
1272 (do-po-update, po-update): Remove. All references removed.
1274 * src/shuf.c (next_line): New function.
1275 (read_input): Use it, to avoid relying on GCC-specific behavior
1276 with void * arithmetic. Problem reported by Bob Proulx.
1277 * Makefile.maint (my-distcheck): Compile with -Wpointer-arith
1278 to detect this sort of problem automatically in the future.
1280 2006-08-09 Jim Meyering <jim@meyering.net>
1282 * src/ls.c: Add a compile-time check to ensure that filetype
1283 and filetype_letter have the same number of elements.
1285 * tests/misc/sort-rand: Remove use of --seed=S.
1287 2006-08-08 Paul Eggert <eggert@cs.ucla.edu>
1289 Add a command 'shuf', and modify shred and sort to use the new
1290 random number generator library of 'shuf'.
1292 * AUTHORS: Add shuf.
1294 * NEWS: Likewise. Mention new --random-source option for shred
1295 and sort. Move "sort +1 -2" notice to the appropriate section,
1296 and clarify its role with respect to POSIXLY_CORRECT.
1297 * man/.cvsignore: Add shuf.1.
1298 * man/Makefile.am (dist_man_MANS): Add shuf.1.
1299 (shuf.1): New dependency.
1300 * man/shuf.x: New file.
1301 * src/Makefile.am (bin_PROGRAMS): Add shuf.
1302 (EXTRA_DIST): Remove rand-isaac.c.
1303 (shuf_LDADD): New macro.
1304 * src/rand-isaac.c: Remove, moving most of its contents to
1306 * src/shuf.c: New file.
1307 * src/shred.c: Use new random-number interface rather than rand-isaac.c.
1308 Don't include rand-isaac.c; include randint.h and randread.h instead.
1309 (RANDOM_SOURCE_OPTION): New enum.
1310 (long_opts, usage, main): New option --random-source.
1311 * src/sort.c: Likewise.
1312 * src/shred.c (struct irand_state, irand_init, irand32, irand_mod): Remove.
1313 All callers changed to use randint interface.
1314 (fillrand): Remove. All callers changed to use randread interface.
1315 (dopass): Remove dependency on ISAAC buffer size.
1316 (genpattern): Don't wipe the random state here.
1317 (randint_source): New static var.
1318 (clear_random_data): New function.
1319 (main): Allocate random source, and arrange to wipe it on exit.
1320 * src/sort.c: Include md5.h, randread.h, xmemxfrm.h.
1321 (longopts, usage, main): Remove undocumented --seed option;
1322 it's now replaced by --random-source.
1323 (rand_state, get_hash): Remove.
1324 (randread_source): New static var.
1325 (random_state, cmp_hashes, compare_random): New functions; they guarantee
1326 no collisions in the random hash function.
1327 (keycompare): Use compare_random for -R; don't fall back on comparing
1328 via memcoll, since compare_random does the right thing.
1329 * tests/misc/Makefile.am (TESTS): Add shuf.
1330 * tests/misc/shuf: New file.
1332 2006-07-29 Paul Eggert <eggert@cs.ucla.edu>
1334 * src/copy.c (set_author): Preserve the st_author field via the
1335 file descriptor dest_desc.
1337 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
1339 * NEWS: chmod now preserves setuid and setgid bits on directories
1340 if you use a numeric mode with them clear, e.g., "chmod 755 DIR".
1342 Fix test case problems if working directory is setgid,
1343 reported by Bob Proulx.
1344 * tests/cp/fail-perm: Use symbolic mode so that we clear
1345 setgid bit more reliably on directories.
1346 * tests/mkdir/special-1 (set_mode_string): Likewise.
1348 2006-07-27 Jim Meyering <jim@meyering.net>
1350 * src/chgrp.c (usage): Use correct grammar in description of the
1352 * src/chown.c (usage): Likewise.
1354 2006-07-26 Thomas Schwinge <tschwinge@gnu.org> (tiny change)
1356 * src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:
1357 Correctly access SRC_SB's element ST_AUTHOR.
1359 2006-07-26 Jim Meyering <jim@meyering.net>
1361 * tests/ls/stat-failed: Adapt to match new expected output.
1364 * src/ls.c (print_color_indicator): Test for S_IFREG first, rather
1365 than having the code test for all of the other types first.
1366 Hoist the set-uid/gid-testing code "up" into this new block.
1367 Classify any other type of file (e.g., S_TYPEISSHM, etc.) as
1368 C_ORPHAN, not as C_FILE.
1370 2006-07-26 Jim Meyering <jim@meyering.net>
1372 Checking in a change from Paul.
1374 2006-07-25 Paul Eggert <eggert@cs.ucla.edu>
1376 * src/ls.c (DT_INIT): Remove. All uses removed.
1377 (enum filetype): Use an ordinary enum rather than trying to keep
1378 the values in sync with DT_FIFO etc. That way, we don't have
1379 to make special assumptions about them. All uses changed.
1380 (whiteout): New constant member of enum filetype.
1381 (filetype_letter): New constant, for use with enum filetype.
1382 (FILETYPE_INDICATORS): New initializer list.
1383 (print_dir): Add case for DT_WHT.
1384 (gobble_file): If stat fails, don't discard information from
1385 readdir; instead, preserve it so it can be printed.
1386 (print_long_format): Fall back on readdir result if stat info
1387 is not available. Use "?" to denote each unknown mode char,
1388 instead of an overall "?", since we now know some of the mode
1390 (print_type_indicator): Now that MODE isn't necessarily
1391 useful, guard all uses.
1392 Now that two blocks in the type-checking tree can set "type = C_FILE",
1393 move the suffix-handling code out and down.
1395 2006-07-26 Jim Meyering <jim@meyering.net>
1397 Prepare for the above change.
1398 * src/ls.c [struct fileinfo] (stat_ok): Rename from stat_failed,
1399 and adjust uses. From a patch by Paul Eggert.
1401 2006-07-26 Jim Meyering <jim@meyering.net>
1403 * src/ls.c: Correct indentation/formatting in a few places.
1405 2006-07-25 Paul Eggert <eggert@cs.ucla.edu>
1407 * tests/cp/fail-perm: Use "chmod 0500" rather than "chmod 500".
1408 Problem report and fix from Bob Proulx.
1409 * NEWS: Clarify the "chmod 0500" news, and correct the vague
1410 statements about compatibility with BSD.
1412 2006-07-25 Jim Meyering <jim@meyering.net>
1414 * src/ls.c (gobble_file): When handling a stat-failed entry,
1415 print the entry name not the absolute_name -- to be consistent
1416 with the usual case.
1417 * tests/ls/stat-failed: Update accordingly.
1419 * src/ls.c: Add parens around the new uses of ?: ternary operator.
1421 * src/dircolors.hin: Mention that ORPHAN refers not just to dangling
1424 Get --dired offsets right when handling stat-failed entries.
1425 * src/ls.c (print_long_format): Be careful to increment P by the
1426 appropriate amount, even when inode_number_width and nlink_width
1428 * tests/ls/stat-failed: Test for the above.
1430 * src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the
1431 have_acl member. That would happen for a directory with both a
1432 non-stat'able entry and one with an ACL.
1434 * src/ls.c (gobble_file): Make it so failure to stat a
1435 non-command-line file provokes an exit status of 1, not 0.
1436 Say "cannot access" rather than "cannot stat".
1437 * tests/ls/stat-failed: New file/test, for the above.
1438 * tests/ls/Makefile.am (TESTS): Add stat-failed.
1439 * tests/ls-2/tests (no-a-isdir-b): Update to reflect addition
1440 of "cannot access " to diagnostic.
1442 * src/ls.c: Declare stat_failed to be "bool", not "int" everywhere.
1444 * src/ls.c [enum filetype] (command_line): Remove member. Not needed.
1445 Replace all occurrences of "type == command_line" with the
1446 equivalent, "command_line_arg".
1448 * src/ls.c: Apply the stat-failed parts of Red Hat's
1449 coreutils-selinux.patch. From Ulrich Drepper.
1450 This makes it so files not mentioned on the command line (e.g.,
1451 names read from a directory that *is* mentioned on the command
1452 line) for which stat fails are still listed. With --color,
1453 such files are colored just like ORPHANs (aka dangling symlinks).
1455 * src/df.c (n_valid_args): Declare global to be static.
1457 2006-07-24 Jim Meyering <jim@meyering.net>
1459 * tests/ls/stat-dtype: Skip this test on reiserfs, since that file
1460 system lacks d_type support.
1462 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
1464 * man/chmod.x: Update to reflect recent changes to coreutils.texi.
1466 2006-07-21 Jim Meyering <jim@meyering.net>
1468 * src/su.c (usage): Correct typo in --help output: s/commmand/command/
1469 Reported by Tim Waugh.
1470 Also remove the comment duplicating much of --help output.
1472 * src/ls.c (FILE_TYPE_INDICATOR_OPTION): Reposition this new
1473 name so the list remains alphabetized.
1475 Fix another bug: ls --indicator-style=file-type would call
1476 stat for a symlink, even though it wasn't always needed.
1477 In some cases, that unnecessary stat would cause ls to fail.
1478 * src/ls.c (gobble_file): Don't treat symlinks specially (in
1479 requiring a stat syscall). Remove the offending exclusion.
1481 * NEWS: Mention the fix.
1483 * tests/ls/stat-dtype: New file/test, for the above fix.
1484 Also exercises the new df feature, below.
1486 * src/df.c (main): Fail and don't print the headers if no
1487 file system is processed. This makes it easy to test whether
1488 a specified directory is on a file system of a given type or types.
1489 Otherwise, applications would have had to parse df's output.
1490 E.g., is "." either ext3 or reiserfs: df -t ext3 -t reiserfs .
1492 Fix a bug: ls --file-type worked like --indicator-style=slash,
1493 rather than like --indicator-style=file-type.
1494 * src/ls.c (FILE_TYPE_INDICATOR_OPTION): New enum member.
1495 (long_options): Map "file-type" to FILE_TYPE_INDICATOR_OPTION,
1497 (decode_switches): Handle new case: FILE_TYPE_INDICATOR_OPTION.
1498 * NEWS: Mention the fix.
1499 * tests/ls-2/tests (file-type): New test, for the above fix.
1501 2006-07-19 Jim Meyering <jim@meyering.net>
1503 * src/ls.c (print_dir): Give a better diagnostic for failed opendir.
1505 * Makefile.am (EXTRA_DIST): Add build-aux/vc-list-files.
1507 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
1509 * NEWS: chmod, install, and mkdir now leave setgid and setuid bits
1510 of directories alone unless you specify them explicitly.
1511 install and mkdir now implement X correctly.
1512 install now creates parent directories with mode 755, without
1513 changing their owner or group.
1514 * src/chmod.c (process_file): Adjust to mode_adjust API change.
1515 * src/install.c: Include mkancesdirs.h.
1516 (announce_mkdir, make_ancestor): New functions.
1517 (DEFAULT_MODE): New macro, specifying initial value of 'mode'.
1519 (dir_mode, dir_mode_bits): New vars.
1520 (main): Set dir modes separately from nondir, so that the X
1521 op of -m works correctly.
1522 (main): Remove cwd_errno cruft, since make_dir_parents no longer
1523 affects cwd. Adjust to new make_dir_parents API.
1524 (install_file_in_file_parents): 2nd arg is now char *, not char
1525 const *. Use mkancesdirs instead of rolling our own code.
1526 (change_attributes): Don't worry about AFS, since that kludge
1527 should not be needed any more.
1528 * src/mkdir.c (struct mkdir_options): New struct.
1529 (announce_mkdir, make_ancestor): New functions.
1530 (main): Use them. Adjust to mode_adjust API change. Stick with
1531 umask 0. Use make_dir_parents for all the work.
1532 * src/mkfifo.c (main): Adjust to new mode_adjust API.
1533 * src/mknod.c (main): Likewise.
1534 * tests/chmod/setgid: Do the setgid test instead of bailing.
1535 * tests/mkdir/p-3: Remove re_protect case that no longer applies.
1536 GNU chmod now behaves like other versions of chmod.
1537 * tests/mkdir/perm: Add a test for the X bug.
1539 2006-07-14 Paul Eggert <eggert@cs.ucla.edu>
1541 * src/base64.c (do_decode): Output to parameter OUT, not to stdout.
1542 This doesn't fix any bugs, since OUT always equals stdout, but it
1543 makes the code easier to understand.
1545 2006-07-14 Jim Meyering <jim@meyering.net>
1547 * Makefile.maint (CVS_LIST): Use new file, build-aux/vc-list-files,
1548 rather than open-coding it. Now supports mercurial, too.
1549 * .hgignore: New file.
1550 * Makefile.am (EXTRA_DIST): Add .hgignore, which ignores nearly
1551 all generated files, including ones like configure and po/*.po
1552 that are currently version-controlled in cvs.
1554 * Makefile.am (EXTRA_DIST): Add a few more .??* files.
1555 They've been in CVS, just haven't been distributed before this.
1556 Distribute ChangeLog-2005, too.
1557 (MAINTAINERCLEANFILES): Add THANKS-to-translators.
1559 2006-07-11 Paul Eggert <eggert@cs.ucla.edu>
1561 * src/system.h: Assume <dirent.h> exists, since gnulib assumes
1564 2006-07-09 Jim Meyering <jim@meyering.net>
1566 * tests/mv/dir2dir: Adjust so failing with ENOTEMPTY is ok, too.
1567 That happens with Linux/tmpfs.
1568 * tests/mv/Makefile.am (TESTS): Add dir2dir.
1570 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
1572 Adjust to recent updates from gnulib.
1573 * src/dd.c (apply_translations): Use toupper rather than
1574 islower followed by toupper; it's simpler and typically
1575 faster now that we assume at least C89 semantics. Similarly
1577 * src/sort.c (inittables): Likewise.
1578 * src/expand.c (expand): Don't assume that isprint etc. return
1579 booleans (needed for pre-C99 hosts).
1580 * src/fmt.c (check_punctuation): Likewise.
1581 * src/ptx.c (initialize_regex, fix_output_parameters): Likewise.
1582 * src/tr.c (is_char_class_member): Likewise.
1583 * src/unexpand.c (unexpand): Likewise.
1584 * src/join.c (is_blank): Remove; no longer needed. All uses
1585 replaced by isblank (to_uchar (...)).
1586 * src/pinky.c (create_fullname): Don't assume char is unsigned.
1587 * src/printf.c (print_esc): Likewise.
1588 * src/ptx.c (SKIP_NON_WHITE, SKIP_WHITE, SKIP_WHITE_BACKWARDS):
1589 (copy_unescaped_string): Likewise.
1590 * src/stat.c (print_it): Likewise.
1591 * src/system.h (_D_EXACT_NAMELEN): Renamed from NLENGTH, for
1592 convenience on GNU systems. All uses changed. Don't bother
1593 looking for any dirent.h substitute other than ndir.h.
1594 (D_INO): Remove unnecessary parentheses.
1595 (IN_CTYPE_DOMAIN, ISGRAPH, ISPRINT, ISALNUM, ISALPHA):
1596 (ISCNTRL, ISLOWER, ISPUNCT, ISSPACE, ISUPPER, ISXDIGIT):
1597 (ISDIGIT_LOCALE, TOLOWER, TOUPPER): Remove. All uses changed
1598 to ctype.h equivalents.
1599 (isblank): Renamed from ISBLANK. Check for HAVE_DECL_ISBLANK too.
1602 2006-07-08 Jim Meyering <jim@meyering.net>
1604 * tests/mv/dir2dir: New file, test for 2006-07-05 fix in copy.c.
1606 * Makefile.maint (sc_the_the): New rule.
1608 * src/dd.c (skip): Remove one of two adjacent "the"s in a comment.
1609 * tests/Coreutils.pm (run_tests): Remove one of two adjacent "then"s
1612 2006-07-07 Jim Meyering <jim@meyering.net>
1614 * NEWS: Mention that mv can now remove an empty destination directory,
1615 and give an example. Prompted by a report from Florent Bayle.
1617 2006-07-05 Jim Meyering <jim@meyering.net>
1619 * src/ls.c (usage): Correct the description of -G: it is useful
1620 only in a long listing. Reported by Martin Pool in
1621 <https://launchpad.net/distros/ubuntu/+source/coreutils/+bug/51653>.
1623 * man/chmod.x: Correct the description of the sticky bit. Reported
1624 by Chris Moore via Ian Jackson in <http://bugs.debian.org/376745>.
1626 * src/copy.c (copy_internal): Don't work around old NFS clients like
1627 SunOS-4.1.4 and Irix 5.3 that set errno to values like EIO and
1628 ENOTEMPTY upon failed rename. Otherwise, we risk misinterpreting
1629 a banal failure as a recursive move-into-self failure.
1630 Reported by Florent Bayle in <http://bugs.debian.org/376749>.
1632 * src/c99-to-c89.diff: Regenerate, to remove fuzz.
1634 2006-07-03 Jim Meyering <jim@meyering.net>
1636 Plug another unusual leak.
1637 (AD_mark_helper): Free malloc'd filename if hash_insert says
1638 that string is already in the hash table.
1640 The dev/inode of the topmost directory in each hierarchy were not
1642 * src/remove.c (remove_cwd_entries): Don't call cycle_check here.
1643 (AD_push): Call it from here instead.
1645 Fix two small leaks.
1646 * src/remove.c (AD_stack_clear): New function.
1648 (AD_pop_and_chdir): Free *prev_dir just before longjmp.
1650 * tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT):
1651 Add $VG_PATH_PREFIX as a prefix to $PATH
1653 * tests/envvar-check (vars): Add CDPATH and POSIXLY_CORRECT.
1654 * tests/Makefile.am (evar-check): Remove rule.
1655 (EXTRA_DIST): Remove .env-warn.
1656 * tests/.env-warn: Remove file. No longer used.
1657 Suggestion from Eric Blake.
1659 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
1661 * src/system.h: Include <stdint.h> unconditionally, since we
1662 now assume the stdint module.
1664 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
1666 * NEWS: With no operand, 'tail -f' now silently ignores the '-f'
1667 only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
1668 * src/tail.c (main): Implement this.
1669 * tests/tail/Test.pm (f-pipe-1): Renamed from f-1.
1670 (test_vector): Set POSIXLY_CORRECT for the f-pipe-* tests.
1672 2006-07-01 Jim Meyering <jim@meyering.net>
1674 * src/ln.c (do_link): Use new, shorter URL, for ag-review link.
1676 * .x-sc_require_config_h: Add ^lib/xstrtold\.c$, so make distcheck
1679 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
1681 * NEWS: seq now uses long double internally rather than double.
1682 It now defaults to a minimal fixed point format if possible.
1683 It lets you use %a, %A, %E, %F, %G.
1684 * src/Makefile.am (seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB).
1685 * src/seq.c: Don't include <math.h> or <xstrtol.h>; no longer needed.
1686 (isfinite) [!defined isfinite]: New macro.
1687 (separator, terminator): Now points to const.
1688 (first, step, last): Remove.
1689 (usage): Update to match new behavior.
1690 (struct operand, operand): New type.
1691 (scan_arg): Renamed from scan_double_arg, since we no longer use double.
1693 Compute and return a value of type operand, not double.
1694 (long_double_format): Renamed from valid_format, and now returns a
1695 new format with an "L" added if needed, if the original format was
1696 valid. Allow %a, %A, %E, %F, and %G formats.
1697 (print_numbers): Take numeric values as args rather than from globals.
1698 Print long double, not double.
1699 (get_width_format): Remove.
1700 (get_default_format): New function.
1701 (main): Implement new way of calculating default format.
1702 Don't worry about locale's representation of the decimal point, since
1703 the arguments are always processed in the C locale.
1704 * tests/seq/basic (neg-2): Adjust to new default format.
1705 (eq-wid-1, eq-wid-2): Resurrect these tests, since the new
1706 implementation should do the right thing.
1708 2006-06-30 Jim Meyering <jim@meyering.net>
1710 * tests/stty/basic-1: Work around an intermittent test failure
1711 on HP-UX 11.11. Report and analysis from Bob Proulx.
1712 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7475
1714 2006-06-28 Paul Eggert <eggert@cs.ucla.edu>
1716 * NEWS: Support obsolete usages like "sort +1 -2" even when
1717 conforming to POSIX 1003.1-2001, since this is a pure extension to
1718 POSIX. Problem reported by Christian in:
1719 http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00220.html
1720 * src/sort.c (main): Implement this.
1722 * src/system.h (CLOSEDIR): Remove. All uses changed to closedir.
1723 Autoconf 2.60 says this stuff was obsolete.
1725 2006-06-28 Jim Meyering <jim@meyering.net>
1727 * src/c99-to-c89.diff: Regenerate, to remove fuzz.
1729 2006-06-28 Bob Proulx <bob@proulx.com> (tiny change)
1731 * tests/mv/i-link-no: Work around HP-UX /bin/sh tracing problem
1732 (set -x when VERBOSE=yes) when stderr is redirected before stdout
1733 causing shell tracing of the stdout redirection to be written to
1734 the stderr file. Avoid problem and test failure on HP-UX by
1735 redirecting stderr last.
1736 * tests/dd/unblock-sync: Order shell file redirections for
1737 stderr and stdout in the common style.
1738 tests/acl: Likewise.
1740 2006-06-27 Jim Meyering <jim@meyering.net>
1742 * tests/misc/cat-proc: Try to avoid any spurious numeric
1743 differences in frequently-changing /proc/cpuinfo.
1744 Reported by Nelson Beebe.
1746 2006-06-26 Jim Meyering <jim@meyering.net>
1748 Attempt rmdir (actually, unlinkat-with-AT_REMOVEDIR) upon any
1749 fd_to_subdirp failure, not just when errno == EACCES.
1750 * src/remove.c (remove_dir): Use unlinkat-with-AT_REMOVEDIR, not
1751 rmdir, here, even though rmdir may happen to be adequate.
1753 * NEWS: rm no longer fails to remove an empty, unreadable directory
1754 * src/remove.c (remove_cwd_entries): If we can't open a directory,
1755 and the failure is not being ignored, try to remove the directory
1756 with rmdir (aka unlinkat-with-AT_REMOVEDIR), in case it's empty.
1757 Problem report and test case from Paul Eggert in
1758 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7425>.
1760 * tests/rm/empty-inacc: New test, for the above.
1762 Avoid a segfault for wc --files0=- < /dev/null.
1763 * src/wc.c (compute_number_width): Return right away if nfiles == 0.
1765 2006-06-25 Jim Meyering <jim@meyering.net>
1767 * NEWS: wc accepts a new option --files0-from=FILE, where FILE
1768 contains a list of NUL-separated file names.
1770 * src/wc.c: Include "readtokens.h".
1771 (usage): Describe the new option, and adjust the `Usage':
1772 with this option, no FILE may be specified on the command line.
1773 (main): Handle the new option.
1774 * tests/misc/wc-files0: New tests, for the above.
1775 * tests/misc/wc-files0-from: Likewise.
1776 * tests/misc/Makefile.am (TESTS): Add wc-files0.
1778 2006-06-24 Jim Meyering <jim@meyering.net>
1780 * src/md5sum.c (DIGEST_BUFFER): Remove now-unused definitions.
1782 2006-06-22 Jim Meyering <jim@meyering.net>
1784 * src/tee.c (tee_files): Rename from tee, to avoid conflict with
1785 the function in glibc's <fcntl.h>. Reported by Andreas Schwab.
1787 2006-06-19 Jim Meyering <jim@meyering.net>
1789 * Makefile.cfg (local-checks-to-skip): Add changelog-check,
1790 so this check is not run as part of "make distcheck".
1792 2006-06-18 Bob Proulx <bob@proulx.com> (tiny change)
1794 * tests/misc/pwd-long: Fix typo (s/neq/ne/) in previous change.
1796 2006-06-18 Jim Meyering <jim@meyering.net>
1798 * tests/misc/pwd-long: Make error output a little clearer.
1800 2006-06-17 Jim Meyering <jim@meyering.net>
1802 * tests/rm/inaccessible: Skip this test on systems without openat
1803 support. Reported by Bob Proulx.
1805 2006-06-15 Bob Proulx <bob@proulx.com> (tiny change)
1807 * tests/misc/mknod: Improve permission checks to handle
1808 running mkdir test in set-gid directories.
1810 2006-06-14 Jim Meyering <jim@meyering.net>
1812 * tests/du/basic: Revamp not to hard-code file system block sizes.
1814 2006-06-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1816 * tests/du/Makefile.am (TESTS_ENVIRONMENT): Pass $(PERL), for
1819 2006-06-11 Jim Meyering <jim@meyering.net>
1821 * .gitignore: New file.
1822 * Makefile.am (EXTRA_DIST): Add .gitignore.
1824 Setting TIME_STYLE=long-iso in the environment would make the
1825 cp/same-file test fail.
1826 * tests/envvar-check (vars): Add TIME_STYLE to the list.
1827 * tests/cp/same-file: Revert last change.
1828 Source the envvar-check script, to ensure that TIME_STYLE
1829 settings don't affect these tests.
1831 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
1833 * tests/cp/same-file: Execute 'ls' in the C locale, so that it
1834 uses POSIX time stamp formats. Problem reported by John Nixon in
1835 <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00062.html>.
1837 2006-06-10 Jim Meyering <jim@meyering.net>
1839 * NEWS: Mention the AIX-strndup-bug vs. dircolors workaround.
1841 Require a "Version N.M" line at the top of the ChangeLog
1842 file only when making the actual release, not when running
1844 * Makefile.maint (maintainer-distcheck): Don't depend on
1846 (alpha beta major): Depend on it here, instead.
1848 2006-06-08 Jim Meyering <jim@meyering.net>
1850 Ensure that cat works with any of the options, -A -v -e -E -T,
1851 when applied to files in /proc and /sys, even when the FIONREAD
1852 ioctl produces nonsensical results. Before this change, cat would
1853 produce no output (or truncated output), for some linux kernels.
1855 * src/cat.c (write_pending): New function, factored out of cat.
1856 (cat): Also interpret a negative ioctl/FIONREAD count as indicating
1857 that there are bytes to read. Some versions of linux-2.6.16 do that.
1858 Write any pending output before returning.
1859 Reported by Dan Jacobson in <http://bugs.debian.org/370583>.
1860 * NEWS: Mention this bug fix.
1861 * tests/misc/cat-proc: New file. Test for the above.
1862 * tests/misc/Makefile.am (TESTS): Add cat-proc.
1864 2006-06-07 Paul Eggert <eggert@cs.ucla.edu>
1866 * src/expr.c (eval4): Detect overflow properly when multiplying
1869 2006-06-06 Paul Eggert <eggert@cs.ucla.edu>
1871 * NEWS: The 'expr' command now detects and reports integer overflow.
1872 (It would be better to use extended precision instead, but that
1873 would be more work.)
1874 * src/expr.c (integer_overflow): New function.
1875 (eval4, eval3): Check for integer overflow.
1877 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
1879 Fix problems when building with Solaris/SVR4/etc. make, which uses a
1880 different and somewhat bogus implementation of VPATH. In the
1881 directory tests/misc, rename tests whose names might appear in the
1882 Automake-generated rules. For example, we can't use a test named
1883 'test', since Automake generates a rule that contains the text
1884 "if test -f ./$$tst; ...", and this might expand to something like
1885 "if ../../../coreutils-6.0/tests/misc/test -f ./$$test; ...",
1886 which executes the 'test' script rather than the 'test' command.
1887 * tests/misc/false-status: Renamed from tests/misc/false.
1888 * tests/misc/pwd-long: Renamed from tests/misc/pwd.
1889 * tests/misc/sort-merge: Renamed from tests/misc/sort.
1890 ($prog): Set to 'sort' rather than to $PROG.
1891 * tests/misc/test-diag: Renamed from tests/misc/test.
1892 * tests/misc/Makefile.am (PROG): Take the basename of $$tst,
1893 in case Solaris make has prepended the directory.
1894 (TESTS): Adjust to above renamings.
1895 * tests/misc/expand: Don't assign to PROG; no longer needed
1896 now that Makefile.am sets PROG to the basename.
1897 * tests/misc/fold: Likewise.
1899 2006-06-03 Jim Meyering <jim@meyering.net>
1901 Make `cp --link --no-dereference' work also on systems where the
1902 link system call cannot create a hard link to a symbolic link.
1903 * src/copy.c (copy_internal) [LINK_FOLLOWS_SYMLINKS]: Don't use
1904 the link syscall on a symlink when it would do the wrong thing.
1905 Based on the patch by Aurelien Jarno: <http://bugs.debian.org/329451>
1906 * tests/cp/link-no-deref: New file/test for the above.
1907 * tests/cp/Makefile.am (TESTS): Add link-no-deref.
1908 * NEWS: Mention the change (doesn't affect Linux).
1910 2006-06-01 Paul Eggert <eggert@cs.ucla.edu>
1912 Fix some porting problems in the test cases reported by
1913 Ralf Wildenhues for HP-UX 11.23 in:
1914 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00238.html
1915 * tests/help-version: Don't assume that \< \> works in sed.
1916 * tests/misc/close-stdout: Don't assume that >&- works.
1917 Add a /dev/full test.
1918 * tests/touch/no-create-missing: Don't assume that >&- works.
1920 2006-05-30 Jim Meyering <jim@meyering.net>
1922 * src/ls.c (usage): Add `v' to the list of sorting-related options.
1925 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1927 * tests/cp/fail-perm: source lang-default.
1928 * tests/rm/inaccessible: Likewise.
1930 2006-05-28 Jim Meyering <jim@meyering.net>
1932 * tests/rm/inaccessible: AIX 4.3.3 gives a different diagnostic.
1933 Recognize it, too. Reported by Ralf Wildenhues, in
1934 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html
1936 2006-05-27 Jim Meyering <jim@meyering.net>
1938 * src/chgrp.c: Support new options: --preserve-root and
1939 --no-preserve-root. Somehow this program was skipped when those
1940 options were added to chown, chmod, and rm. Reported by
1941 vaqflabuopac@spammotel.com in <http://bugs.debian.org/365656>.
1942 * NEWS: Mention this.
1944 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
1946 * NEWS: Remove mention of --seed. We'll replace it with something
1947 better, and don't want to indicate that it is supported.
1948 * src/sort.c (usage): Likewise.
1950 2006-05-20 Jim Meyering <jim@meyering.net>
1952 * src/chmod.c (main): Use FTS_PHYSICAL here, too.
1954 * src/du.c (main): Rename local, s/symlink_deref_bit/symlink_deref_bits/
1955 and arrange for -D to set fts' FTS_PHYSICAL bit as well as
1956 FTS_COMFOLLOW. Spotted by Justin Pryzby.
1958 * gnupload: Merge changes from automake, retaining the ""--to...
1959 kludge to placate overzealous `make distcheck' check.
1961 2006-05-19 Jim Meyering <jim@meyering.net>
1963 * src/du.c (main): Don't let -D, -L, or -P turn off the internal
1964 FTS_TIGHT_CYCLE_CHECK directory traversal option.
1965 Reported by Justin Pryzby in http://bugs.debian.org/367691
1967 2006-05-15 Jim Meyering <jim@meyering.net>
1969 * src/cp.c (usage): Correct description of -a: s/-dpR/-dpPR/.
1970 From Tomas Pospisek.
1972 2006-05-13 Jim Meyering <jim@meyering.net>
1974 * tests/mv/no-target-dir: Test two more cases.
1976 2006-05-11 Jim Meyering <jim@meyering.net>
1978 mv -T DIR EMPTY_DIR no longer fails unconditionally
1979 * src/copy.c (copy_internal): Don't manually prohibit a move where
1980 the destination is an existing directory. Sometimes doing that is
1981 valid. Let the rename system call enforce the rules. That is
1982 allowed only when the source is a directory and the destination
1983 directory (to be replaced) is empty. Reported by Eric Blake.
1984 * tests/mv/no-target-dir: New file/test for this.
1985 * tests/mv/Makefile.am (TESTS): Add no-target-dir.
1986 * NEWS: Mention this.
1988 * tests/mv/atomic: New file/test for yesterday's fix.
1989 * tests/mv/Makefile.am (TESTS): Add atomic.
1991 * tests/du/long-sloop: Avoid harmless `ambiguous redirect' diagnostic.
1993 2006-05-10 Jim Meyering <jim@meyering.net>
1995 * src/copy.c (copy_internal): Don't explicitly unlink the destination
1996 when moving a symlink into the place of an existing non-directory.
1997 Reported by Joshua Hudson.
1998 * NEWS: mention this.
2000 2006-05-07 Jim Meyering <jim@meyering.net>
2002 * Makefile.maint (patch-check): Fail if patch generates any output,
2003 even merely for changed offsets.
2005 * src/c99-to-c89.diff: Adjust to reflect new offsets.
2007 * NEWS: Mention changes affecting df, pwd, shred.
2009 2006-05-06 Jim Meyering <jim@meyering.net>
2011 * tests/ls/stat-vs-dirent: New test, to detect the bogus file
2012 system condition where dirent.d_ino != stat.st_ino.
2013 * tests/ls/Makefile.am (TESTS): Add stat-vs-dirent.
2015 2006-05-06 Eric Blake <ebb9@byu.net>
2017 * tests/ls/inode: Expand to test inode from readdir case.
2018 * tests/ls/follow-slink: Expand to test broken links encountered
2019 implicitly, favoring Solaris 9 and OpenBSD 3.4 behavior.
2021 2006-05-06 Eric Blake <ebb9@byu.net>
2023 * tests/mv/leak-fd: Work even on case-insensitive file system.
2025 2006-05-04 Jim Meyering <jim@meyering.net>
2027 * NEWS: Mention the 2006-03-19 pwd-related change that makes
2028 lib/getcwd.c work around inconsistent file system dirent.d_ino data.
2030 2006-05-03 Jim Meyering <jim@meyering.net>
2032 * src/ls.c (DEFINE_SORT_FUNCTIONS, LIST_SORTFUNCTION_VARIANTS):
2033 Use better macro parameter names: s/basename/key_name/,
2034 s/basefunc/key_cmp_func. Fix typo in comment.
2036 2006-04-29 Eric Blake <ebb9@byu.net>
2038 * src/ls.c (main): On systems with d_type, directories_first only
2039 implies format_needs_type, not format_needs_stat.
2041 2006-05-03 Jim Meyering <jim@meyering.net>
2043 * src/ls.c (xstrcoll_df_version, rev_xstrcoll_df_version): Add space
2044 after comma in arg list, from Eric Blake.
2046 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
2048 * tests/misc/date (relative-3): New test, derived from a bug
2049 report by John Thomas McDole.
2051 2006-04-23 Francesco Montorsi <fr_m@hotmail.com>
2053 New option for ls: --group-directories-first.
2054 It makes ls list directories before files.
2055 * NEWS [New features]: Mention it.
2056 * src/ls.c (sort_type): Rearrange to use as an array index when
2057 choosing sort function; added new sort_numtypes member for
2059 (time_type): Add new time_numtypes member for compile-time check.
2060 (directories_first): New global variable.
2061 (GROUP_DIRECTORIES_FIRST_OPTION): New enum.
2062 (long_options): Add --directories-first.
2063 (main): Support new option.
2064 (is_directory): New function.
2065 (extract_dirs_from_files): Use it.
2066 (DIRFIRST_CHECK, DEFINE_SORT_FUNCTIONS)
2067 (LIST_SORTFUNCTION_VARIANTS): New macros.
2068 (sort_functions): New global variable.
2069 (sort_files): Use it.
2070 (usage): Document new option.
2072 2006-04-18 Paul Eggert <eggert@cs.ucla.edu>
2074 * src/shred.c (fillrand): The assertion was way too weak, due to
2075 what must be a typo. Strengthen it to its intended value.
2076 (dopass): Don't use alloca; it's not worth the aggravation here,
2077 since it's used only to get a page-aligned buffer, and page
2078 alignment doesn't buy us much here. I'm suspicious that alloca
2079 causes problems on some hosts, due to a recent bug report by Adam
2080 Waltman: http://bugs.gentoo.org/130246.
2082 2006-04-18 Jim Meyering <jim@meyering.net>
2084 * tests/misc/tty-eof: Add new programs, base64, sha224sum, sha256sum,
2085 sha384sum, sha512sum.
2087 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
2089 * src/chmod.c (describe_change): Adjust to filemode changes.
2090 * src/ls.c (HAVE_ST_DM_MODE): Remove; moved to ../lib/filemode.c.
2091 (print_long_format): Use (new) filemodestring rather than
2092 (old) mode_string, so that we get more file types right, at least
2093 in theory. Adjust to filemode changes.
2094 * src/stat.c (human_access): Likewise.
2096 2006-04-18 Jim Meyering <jim@meyering.net>
2098 * src/ptx.c (main) [DEFAULT_IGNORE_FILE]: Remove code to use a default
2099 ignore file. This has never been enabled. Reported by Eric Blake.
2101 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
2103 * src/ln.c (linkfunc): Remove. This method ran into a compiler/linker
2104 bug in Interix. Just call symlink or link directly. All uses changed.
2105 * src/setuidgid.c (main) [! HAVE_SETGROUPS]: Don't call setgroups.
2106 * src/stat.c (USE_STATVFS): New macro.
2107 Include <sys/statvfs.h> and use statvfs only if USE_STATVFS.
2108 (NAMEMAX_FORMAT): define a bit more clearly, now that the
2109 statvfs-using code is a bit more regular.
2110 * src/system.h (sync) [!HAVE_SYNC]: New macro.
2112 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
2114 * NEWS: csplit, nl, expr now conform to POSIX better, and are
2115 more-compatible with traditional Unix, with respect to regular
2117 * src/csplit.c (extract_regexp): Set re_syntax_options to a
2118 value that is compatible with what POSIX requires.
2119 * src/nl.c (build_type_arg): Likewise.
2120 * src/expr.c (docolon): Likewise. Also, don't let anchors match
2121 newline; this fixes an incompatibility with tradition and with POSIX.
2122 Don't warn about leading ^. POSIX says it is unspecified whether
2123 ^ is a special character, which means that implementations can
2124 either treat it as special or not, but either way a warning is not
2125 allowed (unless the regexp is otherwise invalid). Instead, anchor
2126 the expression but treat ^ as an anchor; this is the traditional
2127 behavior (e.g., Solaris 10).
2128 (eval4, eval3, eval2): Treat non-numeric args, division by zero,
2129 and the like as invalid expressions (exit status 2), not as
2130 failure of 'expr' (exit status 3). This is more consistent with
2131 how Solaris behaves.
2132 * tests/expr/basic (fail-a): Adjust exit status to match new expr
2133 behavior, for status 2 versus 3.
2135 (bre1, bre2, bre3, bre4, bre5, bre6, bre7, bre8, bre9, bre10):
2136 (bre11, bre12, bre13, bre14, bre15, bre16, bre17, bre18, bre19, bre20):
2137 (bre21, bre22, bre23, bre24, bre25, bre26, bre27, bre28, bre29, bre30):
2138 (bre31, bre32, bre33, bre34, bre35, bre36, bre37, bre38, bre39, bre40):
2139 (bre41, bre42, bre43, bre44, bre45, bre46, bre47, bre48, bre49, bre50):
2140 (bre51, bre52, bre53, bre54, bre55, bre56, bre57, bre58, bre59, bre60):
2141 (bre61, bre62): New tests.
2142 * tests/misc/csplit: Use \{...\} in test RE, to test that we're
2143 conforming to POSIX.
2146 * tests/du/long-from-unreachable: Solaris 8 sh doesn't understand
2147 "if !". Do not assume that 'sed' can handle long, newline-free input.
2148 * tests/du/long-sloop: Likewise. Evaluate expr once, not $n times.
2150 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
2152 Adjust to new regex.h API (with new fastmap type), and clean
2153 up the regex storage allocation a bit.
2155 * src/csplit.c (struct control): Put re_compiled member at the
2156 end, since it's large. Change regexpr member from char * to bool;
2157 all uses changed. Add new member fastmap.
2158 (extract_regexp): regexp arg is now char const *, not char *.
2159 Don't bother duplicating the regular expression; it's not needed.
2160 Set fastmap from new fastmap member. Don't bother allocating
2161 a buffer, as the regexp code does a better job than we do.
2162 * src/expr.c (docolon): Allocate and use a fastmap.
2163 Don't bother allocating a buffer.
2164 * src/nl.c (body_fastmap, header_fastmap, footer_fastmap):
2166 (build_type_arg): New fastmap arg. All uses changed.
2167 Don't bother allocating a buffer, but set a fastmap.
2168 * src/ptx.c (context_regex_string, word_regex_string): Remove.
2169 (context_regex, word_regex): New vars, replacing the above.
2171 (struct regex_data): New type.
2172 (compile_regex): Renamed from alloc_and_compile_regex, since
2173 we no longer allocate storage. Arg is now a struct regex_data *,
2174 not a const char *. All uses changed. Don't allocate the fastmap;
2175 instead, take it from the caller. Don't convert size_t to int,
2176 to avoid arithmetic overflow problems. Don't bother freeing
2177 storage afterwards; it's not worth the aggravation.
2178 * src/tac.c (compiled_separator_fastmap): New ver.
2179 (main): Use it. Don't bother allocating a buffer.
2181 2006-03-30 Jim Meyering <jim@meyering.net>
2183 * src/dd.c (iwrite): Remove assignment without effect.
2184 Reported by Felix Rauch Valenti.
2186 2006-03-22 Eric Blake <ebb9@byu.net>
2188 * src/ptx.c (usage): Remove mention of --copyright/-C.
2189 (main): Alias --copyright to --version plus a deprecation warning.
2190 * NEWS: Mention this.
2192 2006-03-27 Jim Meyering <jim@meyering.net>
2194 * src/Makefile.am (uptime_LDADD): Add $(POW_LIB), for uptime's
2195 use of strtod. Tiny patch from Nickolai Zeldovich.
2197 2006-03-11 Eric Blake <ebb9@byu.net>
2199 * tests/misc/dirname: New file.
2200 * tests/basename/Makefile.am: Delete.
2201 * tests/basename/basic: Move to...
2202 * tests/misc/basename: ... this new file. Add some tests,
2203 including fixed behavior for //.
2204 * tests/misc/Makefile.am (TESTS): Sort. Add basename, dirname.
2205 * tests/Makefile.am (SUBDIRS): Remove basename.
2206 * configure.ac (AC_CONFIG_FILES): Remove tests/basename.
2208 Improvements to dirname/basename handling on platforms like
2209 cygwin with distinct // and with drive letters.
2210 * NEWS: Document new behavior.
2211 * src/basename.c (main): Don't strip suffix from file system
2213 * src/cp.c (target_directory_operand): Use new last_component.
2214 (ASSIGN_BASENAME_STRDUPA): Likewise. Reduce time spent
2215 traversing the string.
2216 * src/dircolors.c (guess_shell_syntax): Use new last_component.
2217 * src/install.c (target_directory_operand, install_file_in_dir):
2219 * src/ln.c (target_directory_operand, main): Likewise.
2220 * src/ls.c (basename_is_dot_or_dotdot): Likewise.
2221 * src/mv.c (target_directory_operand, movefile): Likewise.
2222 * src/remove.c (rm_1): Likewise.
2223 * src/shred.c (wipename): Likewise.
2224 * src/split.c (next_file_name): Likewise.
2225 * src/su.c (log_su, run_shell): Likewise.
2227 2006-03-23 Paul Eggert <eggert@cs.ucla.edu>
2229 * NEWS: nohup diagnostics are now more precise, and nohup now
2230 redirects stderr to nohup.out if stdout is closed and stderr is a tty.
2231 * src/nohup.c (main): Implement this.
2232 * tests/misc/nohup: Test the new behavior.
2234 2006-03-12 Jim Meyering <jim@meyering.net>
2236 * src/copy.c (set_author): Rename function, from preserve_author.
2238 * src/remove.c (AD_pop_and_chdir): Use new macro,
2239 CYCLE_CHECK_REFLECT_CHDIR_UP, rather than open-coding it.
2241 * src/system.h (SAME_INODE): Remove definition.
2242 Include "same-inode.h", instead.
2244 2006-03-11 Eric Blake <ebb9@byu.net>
2246 * src/pwd.c (robust_getcwd): Prepend only one slash, not two.
2248 2006-03-10 Jim Meyering <jim@meyering.net>
2250 Fix a bug whereby a user with write access to a directory being removed
2251 could cause the removal of that directory to fail with an erroneous
2252 diagnostic about a directory cycle. Reported by Vineet Chadha.
2254 * NEWS: Mention this.
2255 * src/remove.c (AD_pop_and_chdir): If the directory we're about to
2256 leave (and try to rmdir) is the one whose dev_ino is being used to
2257 detect a cycle, reset cycle_check_state.dev_ino to that of the parent.
2259 2006-03-08 Paul Eggert <eggert@cs.ucla.edu>
2261 * NEWS: Document dd's new 'directory' and 'nolinks' flags.
2262 * src/dd.c (set_fd_flags): Handle file-creation flags on file
2263 descriptors, rather than ignoring them.
2264 * tests/dd/misc: Add test cases for append, nofollow, directory,
2265 and nolinks flags. Simplify redirection to /dev/null in some cases.
2267 * tests/dd/misc: iflags->iflag. This fixes a typo that meant the
2268 noatime test never tested anything.
2270 2006-03-05 Paul Eggert <eggert@cs.ucla.edu>
2272 * src/dd.c (flags, usage): New flags directory, nolinks.
2273 * src/system.h (O_NOLINKS): Define to 0 if not already defined.
2275 * src/ls.c (usage): Mention that -f disables --color.
2276 Problem reported by Niels Möller.
2278 2006-03-03 Justin Pryzby <pryzbyj@justinpryzby.com>
2280 * man/*.x: Add references to syscalls from utilities of the same name.
2282 2006-03-05 Jim Meyering <jim@meyering.net>
2284 * tests/help-version: Set SHELL, if not already set, in order to
2285 avoid failure when `make check' is run through debuild; dircolors
2286 would fail due to lack of $SHELL. Reported by Sven Joachim.
2288 Make `base64 --wrap=N' work for N=0, and for N larger than SIZE_MAX.
2289 * src/base64.c (wrap_write, do_encode, main): Change type of
2290 parameters and locals, wrap_column, form size_t to uintmax_t.
2291 (main): Adjust to use xstrtoumax, accordingly.
2293 2006-03-03 Jim Meyering <jim@meyering.net>
2295 Don't fail when run from an environment with SHELL not a Bourne
2296 shell, e.g. `env SHELL=/bin/csh make check' would fail this test.
2297 * tests/dircolors/simple: Invoke each non-failing test with -b.
2298 Reported by Michael Stone.
2300 2006-02-27 Jim Meyering <jim@meyering.net>
2302 * tests/misc/base64: Derive --decode-using tests from the
2305 * tests/misc/base64: Factor out a long constant string.
2306 Split lines to stay within 80 columns.
2308 * tests/misc/Makefile.am (TESTS): Add base64.
2309 * tests/misc/base64: Test base64. From Simon Josefsson.
2311 * src/base64.c (do_decode): Use correct type for parameter,
2312 ignore_garbage: s/size_t/bool/.
2314 * src/base64.c: Don't include .h files already included by system.h:
2315 <string.h>, <stdlib.h>, <stdbool.h>, <limits.h>, <errno.h>.
2316 Include "system.h" before the other lib/*.h header files.
2317 Include <sys/types.h> before "system.h".
2318 (wrap_write): Remove declaration of unused local, initial_column.
2319 (wrap_write): Correct declaration syntax: s/size_t * V/size_t *V/.
2321 * README: Add base64 to the list.
2323 2006-02-17 Simon Josefsson <jas@extundo.com>
2325 New program: base64.
2326 * AUTHORS: Mention base64.
2328 * man/Makefile.am: Build base64.1.
2329 * man/base64.x: New file.
2330 * src/Makefile.am (bin_PROGRAMS): Add base64.
2331 * src/base64.c: New file.
2333 2006-02-25 Eric Blake <ebb9@byu.net>
2335 In ls, avoid calling stat for --inode (-i), when possible.
2336 * src/pwd.c (NOT_AN_INODE_NUMBER, D_INO): Move to ...
2337 * src/system.h: ... here, for use in ...
2338 * src/ls.c (main): ... here. Prefer dirent.d_ino to stat when
2340 (gobble_file): Add inode argument.
2341 (print_dir): Pass inode if available.
2342 (usage): Remove inaccuracy.
2344 2006-02-23 Jim Meyering <jim@meyering.net>
2346 * TODO: Update/correct some obsolete entries.
2348 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
2350 * doc/coreutils.texi (join invocation): Mention `sort -k 1b,1'.
2351 * src/join.c (usage): Likewise.
2352 Documentation problem reported by Philip Kensche.
2354 2006-02-20 Eric Blake <ebb9@byu.net>
2356 * man/rm.x: Update documentation to match previous patch.
2358 2006-02-18 Eric Blake <ebb9@byu.net>
2360 New option for rm: --interactive=once (-I).
2361 * NEWS: Document it, along with change to rm --interactive.
2362 * TODO: Remove entry for implementing rm -I
2363 * src/rm.c (INTERACTIVE_OPTION): New enum value.
2364 (interactive_type): New enum.
2365 (long_opts): Let interactive take an optional argument.
2366 (interactive_args, interactive_types): New option arguments.
2367 (usage): Document -I, --interactive=WHEN. Use program_name
2368 instead of a basename.
2369 (main): New -I option, new behavior to --interactive.
2370 * tests/rm/interactive-once: New tests.
2371 * tests/rm/interactive-always: Ditto.
2372 * tests/rm/Makefile.am (TESTS): Run them.
2374 2006-02-18 Jim Meyering <jim@meyering.net>
2376 * Makefile.maint (sc_two_space_separator_in_usage): Make the regular
2377 expression match more of the target lines, e.g., those that start with
2378 `-S,' (short option followed by a comma) or that include `=[...]'.
2379 Patch by Nicolas François.
2380 Fix the four offenders thus exposed:
2381 * src/join.c (usage): Use two spaces (not one) to separate the
2382 --first-only option string from its description, so help2man formats
2383 the derived man page properly.
2384 * src/pr.c (usage): Likewise.
2385 * src/uniq.c (usage): Likewise.
2386 * src/install.c (usage): Likewise.
2388 2006-02-15 Jim Meyering <jim@meyering.net>
2390 * Makefile.maint (alpha beta major): For `make major', ensure that the
2391 version string is of the form N.N[.N]*, where N is one or more digits.
2393 2006-02-14 Jim Meyering <jim@meyering.net>
2395 * INSTALL: Update from gnulib.
2397 2006-02-13 Jim Meyering <jim@meyering.net>
2399 * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
2401 2006-02-12 Jim Meyering <jim@meyering.net>
2403 * Makefile.maint (patch-check): New target.
2404 (local-checks-available): Add to the list.
2406 2006-02-11 Jim Meyering <jim@meyering.net>
2408 * src/c99-to-c89.diff: New file.
2409 * src/Makefile.am (EXTRA_DIST): Add c99-to-c89.diff.
2411 * .x-po-check: New file, with exclusions so that `make distcheck'
2413 * Makefile.am (EXTRA_DIST): Add .x-po-check.
2415 rm -r must remove an empty directory, even if it is inaccessible.
2416 * src/remove.c (close_preserve_errno): New function.
2417 (fd_to_subdirp): Don't print a diagnostic in this function.
2418 Do it from the callers instead, unless rmdir succeeds.
2419 (remove_cwd_entries, remove_dir): Adjust callers.
2420 * tests/rm/empty-inacc: New test for the above.
2421 * tests/rm/Makefile.am (TESTS): Add empty-inacc.
2422 * NEWS: Mention this bug fix.
2423 * tests/rm/rm2: Adjust two expected diagnostics, now that they're
2424 a tiny bit less precise: cannot remove `a/1': ... instead of
2425 cannot open directory `a/1': ...
2427 * Makefile.maint (syntax-check-rules): Automatically derive this
2428 list of sc_-prefixed rule names.
2430 2006-02-10 Paul Eggert <eggert@cs.ucla.edu>
2432 * Makefile.maint (CVS_LIST): Don't assume cvsu is available.
2433 (CVS_LIST_EXCEPT): New macro, to simplify exception-processing.
2434 Most uses of CVS_LIST changed to use CVS_LIST_EXCEPT.
2435 (syntax-check-rules): Bring back sc_changelong. (Hmm, why did it
2436 go away? was that an accident?)
2437 (sc_cast_of_argument_to_free, sc_cast_of_x_alloc_return_value):
2438 (sc_cast_of_alloca_return_value, sc_space_tab, sc_prohibit_atoi_atof):
2439 (sc_error_exit_success, sc_file_system, sc_no_if_have_config_h):
2440 (sc_system_h_headers, sc_sun_os_names, sc_trailing_blank):
2441 (sc_two_space_separator_in_usage, sc_unmarked_diagnostics):
2442 (sc_obsolete_symbols, sc_changelog, sc_prohibit_jm_in_m4):
2443 (sc_useless_cpp_parens, makefile-check, m4-check, po-check):
2444 (author_mark_check, makefile_path_separator_check):
2445 Output line numbers, to simplify navigation of Emacs *compilation*
2447 (sc_prohibit_atoi_atof, sc_file_system):
2448 Rework slightly so that Makefile.maint doesn't get reported as a
2449 violation of its own syntax rules.
2450 (sc_dd_max_sym_length): Use ifneq to do nothing, instead of doing
2451 it at run-time (which didn't work with Bison). Fix a makefile typo,
2452 caught by Makefile.maint itself: spaces where a tab should be.
2453 (po-check): Check lib/*.[ch] even if not in CVS; used by Bison,
2454 which copies from ../gnulib/lib/*.[ch] to lib/*.[ch].
2455 Ignore djgpp and man subdirectories, to avoid false matches with
2456 Bison and coreutils, respectively. Use sort -u to remove the
2457 resulting duplicates.
2458 * gnupload: Rework slightly to avoid bogus warning from
2459 sc_two_space_separator_in_usage.
2461 2006-02-10 Jim Meyering <jim@meyering.net>
2463 Use gzip's --rsyncable option only if it's available.
2464 * Makefile.maint (gzip_rsyncable): New variable.
2467 2006-02-08 Jim Meyering <jim@meyering.net>
2469 * Makefile.maint (local-checks-available): Define in terms of
2470 the expansion, $(syntax-check-rules), rather than the single,
2471 top-level target `syntax-check', so that it's easier to exclude
2472 individual rules (via $(local-checks-to-skip)).
2473 (tgz-md5, tgz-sha1, ...): Remove now-unused definitions.
2475 2006-02-07 Jim Meyering <jim@meyering.net>
2477 * src/system.h (!defined O_DIRECT): If O_DIRECTIO is defined (as it
2478 is on Tru64), define O_DIRECT to that. Patch From James Lemley.
2480 * tests/help-version (expected_failure_status_vdir):
2481 Redirect an expected disk-full diagnostic to /dev/null.
2483 2006-02-06 Jim Meyering <jim@meyering.net>
2485 * src/unexpand.c (usage): Use two spaces (not one) to separate the
2486 --first-only option string from its description, so help2man formats
2487 the derived man page properly.
2488 * src/rm.c (usage): Likewise for --no-preserve-root.
2489 * src/chown.c (usage): Likewise.
2490 * src/chgrp.c (usage): Likewise.
2492 Add a rule to ensure that the above doesn't happen again.
2493 * Makefile.maint (sc_two_space_separator_in_usage): New rule.
2494 (syntax-check-rules): Add it.
2495 * .x-sc_two_space_separator_in_usage: New empty file.
2496 * Makefile.am (EXTRA_DIST): Add .x-sc_two_space_separator_in_usage.
2498 2006-02-06 Jim Meyering <jim@meyering.net>
2500 * src/cp.c (usage): Use two spaces (not one) to separate each
2501 option string from its description, so help2man formats the
2502 derived man page properly.
2503 * src/mv.c (usage): Likewise.
2504 Patch from Nicolas François in http://bugs.debian.org/351601.
2506 2006-02-04 Jim Meyering <jim@meyering.net>
2508 * src/copy.c (copy_internal): cp -RL would fail when encountering
2509 the same directory more than once in the hierarchy beneath a single
2510 command-line argument. That is legitimate, e.g. when there are
2511 two or more symbolic links, each pointing to some directory that
2512 would not otherwise be copied. Reported by Christophe LYON.
2513 * tests/cp/cp-deref: New file. Test for today's fix.
2514 * tests/cp/Makefile.am (TESTS): Add cp-deref.
2515 * NEWS: Document this.
2517 2006-02-03 Jim Meyering <jim@meyering.net>
2519 * configure.ac: Require automake-1.9.6, not 1.8.3.
2521 2006-02-01 Paul Eggert <eggert@cs.ucla.edu>
2523 * src/od.c (usage): Mention that -t a ignores high order bit.
2524 Documentation problem reported by Ed Avis.
2526 2006-02-01 Jim Meyering <jim@meyering.net>
2528 * src/pwd.c (find_dir_entry): Remove unused local, `ent_sb_valid'.
2530 2006-01-30 Paul Eggert <eggert@cs.ucla.edu>
2532 * src/head.c (main): Use a better diagnostic when someone uses a
2533 trailing numeric option in an invalid way. Problem reported by
2535 * src/tail.c (parse_options): Likewise.
2537 2006-01-30 Jim Meyering <jim@meyering.net>
2539 * man/wc.x: Include `count' keyword in man page synopsis,
2540 per suggestion from http://bugs.debian.org/181585.
2542 2006-01-24 Paul Eggert <eggert@cs.ucla.edu>
2544 * src/df.c (show_dev): If the file system claims to have
2545 more available than total blocks, report the number of used
2546 blocks as being total - available (a negative number) rather
2547 than as garbage. Problem reported by Toralf Foerster.
2549 2006-01-24 Jim Meyering <jim@meyering.net>
2551 * src/tail.c (tail_forever): Don't exit-nonzero when an attempt
2552 to put a regular file in O_NONBLOCK mode fails with EPERM.
2553 That happens on Linux (up to 2.6.15) when using tail -f on a file with
2554 the append-only attribute. Reported by Dean Gaudet. For details,
2555 see http://savannah.gnu.org/bugs/?func=detailitem&item_id=15473.
2556 * NEWS: Mention this fix.
2557 * tests/tail-2/append-only: New file. Test for the above.
2558 * tests/tail-2/Makefile.am (TESTS): Add append-only.
2559 * tests/Makefile.am (check-root): Add tail-2/append-only
2561 2006-01-21 Jim Meyering <jim@meyering.net>
2563 * NEWS: Mention fts-related improvements and bug fixes.
2565 2006-01-19 Jim Meyering <jim@meyering.net>
2567 * tests/fmt/basic (pfx-1, pfx-2): New tests, to demonstrate the bug
2568 reported as http://bugs.debian.org/147577. Forwarded by Thomas Hood.
2570 2006-01-18 Jim Meyering <jim@meyering.net>
2572 * tests/du/Makefile.am (TESTS): Add long-from-unreadable.
2574 2006-01-17 Jim Meyering <jim@meyering.net>
2576 Now that fts no longer changes the current working directory, adjust
2577 its clients accordingly -- note that du.c uses fts but doesn't need
2578 any adjustment, since it doesn't operate on the actual files,
2579 but rather just uses the stat buffers provided by fts.
2581 * src/chown-core.c: Include "openat.h".
2582 Don't include "lchown.h".
2583 (restricted_chown): Accept a new parameter, CWD_FD, and use it in
2584 calling openat, lchownat, chownat, rather than open, lchown, chown.
2586 * src/chmod.c: Include "openat.h".
2587 (process_file): Use chmodat (fts->fts_cwd_fd,... in place of chmod (...
2589 * tests/du/long-from-unreadable: New test, to exercise one small
2592 2006-01-13 Jim Meyering <jim@meyering.net>
2594 * tests/Makefile.am (SUBDIRS): Add comments discouraging the
2595 addition of new directories under tests/.
2597 * tests/acl: Redirect stdin to /dev/null. Otherwise, FreeBSD 5.0's
2600 2006-01-12 Jim Meyering <jim@meyering.net>
2602 * tests/du/long-sloop: Adjust not to hard-code the expected
2603 diagnostic corresponding to ELOOP. Solaris' diagnostic differs
2604 from that of GNU libc. Reported by Paul Eggert.
2606 * tests/du/long-sloop: Create file at end of symlink chain.
2608 * tests/misc/test: New file, with a test for one of the
2609 bugs fixed by yesterday's test.c changes.
2610 * tests/misc/Makefile.am (TESTS): Add test.
2612 2006-01-11 Jim Meyering <jim@meyering.net>
2614 * tests/du/long-sloop: New file. Test for today's fts.c bug fix.
2615 That bug could make du -L, chgrp -L, or chown -L fail to diagnose
2616 a very long sequence of symbolic links (not necessarily a loop).
2617 * tests/du/Makefile.am (TESTS): Add long-sloop.
2619 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
2621 * src/test.c (test_syntax_error): Append a newline. All callers
2622 changed, except for the ones that didn't already append a newline.
2623 Bug reported by Eric Blake.
2625 2006-01-11 Jim Meyering <jim@meyering.net>
2627 * src/system.h (X2NREALLOC): Now that verify_true is no longer
2628 void, cast its result to void, to avoid gcc's warning that
2629 ``left-hand operand of comma expression has no effect''.
2630 (DECIMAL_DIGIT_ACCUMULATE, X2REALLOC): Likewise.
2632 2006-01-10 Jim Meyering <jim@meyering.net>
2634 * tests/chmod/no-x: Add a test for today's fts.c fix.
2636 2006-01-10 Jim Meyering <jim@meyering.net> (tiny change)
2638 * src/ls.c (gobble_file): Use DTTOIF only if it's defined.
2639 This is necessary for Dragonfly. Patch by Joerg Sonnenberger.
2641 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
2643 * src/system.h (X2NREALLOC, X2REALLOC, DECIMAL_DIGIT_ACCUMULATE):
2644 Use verify_true instead of verify_expr, to sync with gnulib.
2646 2006-01-08 Jim Meyering <jim@meyering.net>
2648 * src/date.c (usage): Adjust the formatting of the entries for
2649 %::z and %:::z (separate with two spaces, not one) so that help2man
2650 formats them properly. Reported by Philip Rowlands.
2652 2006-01-06 Paul Eggert <eggert@cs.ucla.edu>
2654 * configure.ac (gl_IGNORE_UNUSED_LIBRARIES): Add.
2656 2006-01-06 Jim Meyering <jim@meyering.net>
2658 * Makefile.maint (copyright-check): Use date +%Y in place of
2661 * src/remove.c (rm_1): Remove `static' attribute on local `status'.
2662 First off, the attribute should have been `volatile' (not static)
2663 to avoid longjmp-related risk of clobber. Secondly, now there is
2664 no longer any risk of a local variable being clobbered, so there's
2665 no need for any attribute at all.
2667 2006-01-05 Jim Meyering <jim@meyering.net>
2669 * src/remove.c: Give a few functions the inline attribute.
2670 (AD_pop_and_chdir): Use gotos to avoid some duplication.
2671 (AD_push): Rewrite an assertion so that the entire computation
2672 goes away when assertions are turned off.
2674 * src/tail.c (ENOSYS) [!defined ENOSYS]: Don't define here.
2675 It's already defined in "system.h".
2676 * Makefile.maint: Add a FIXME comment.
2678 2006-01-04 Jim Meyering <jim@meyering.net>
2680 * ChangeLog: Remove entries from 2005-10-22 and earlier.
2681 * ChangeLog-2005: New file, for entries up to version 5.92.
2683 2006-01-03 Jim Meyering <jim@meyering.net>
2685 * tests/du/no-x: Also allow a slightly different diagnostic -- the
2686 one you get when using openat-enabled fts.c and du (coming soon).
2687 * tests/chmod/no-x: Likewise.
2688 * tests/chgrp/no-x: Likewise.
2690 * src/system.h (O_DIRECTORY) [!defined O_DIRECTORY]: Define.
2692 2006-01-02 Paul Eggert <eggert@cs.ucla.edu>
2694 * src/chown-core.c (RC_do_ordinary_chown): New enum value.
2695 (restricted_chown): Return it, if the file cannot be accessed due
2696 to EPERM, or if no uid or gid are required, or if the file is
2697 neither a directory nor a regular file. Rewrite to avoid gotos.
2698 (change_file_owner): Handle RC_do_ordinary_chown case.
2699 Rewrite to avoid gotos.
2700 * tests/chgrp/basic: Make sure we can change the group of
2703 * src/date.c (usage): Explain %g, %G, and %V a bit better.
2705 2006-01-02 Jim Meyering <jim@meyering.net>
2707 * src/copy.c (set_owner): Correct a comment.
2709 * src/tail.c (parse_options): Change warning to say that --retry
2710 is useful `mainly' (not `only') when following by name.
2711 Reported here: http://bugs.debian.org/273781
2713 2006-01-01 Paul Eggert <eggert@cs.ucla.edu>
2715 * NEWS: Document that mkfifo and mknod -m no longer set special bits.
2716 * src/copy.c: Include lchmod.h.
2717 (copy_internal): Use lchmod rather than chmod.
2718 * src/cp.c: Include lchmod.h.
2719 (re_protect, make_dir_parents_private): Use lchmod rather than chmod.
2720 * src/mkdir.c: Include lchmod.h.
2721 (usage): Clarify -m's operation.
2722 (main): Use lchmod rather than chmod. Don't use lchmod unless the
2723 new mode contains bits outside the 777 range.
2724 * src/mkfifo.c (usage): Clarify -m's operation.
2725 (main): If -m is given, don't invoke chmod; use umask 0 instead.
2726 Report an error if -m asks for bits outside the 777 range.
2727 * src/mknod.c (usage, main): Likewise.
2729 * src/mkdir.c, src/mkfifo.c, src/mknod.c: Undo 2005-12-19 changes.
2731 2005-12-27 Jim Meyering <jim@meyering.net>
2733 * Makefile.maint (sc_obsolete_symbols): Prohibit use of O_NDELAY.
2734 (sc_prohibit_assert_without_use): New rule.
2735 (syntax-check-rules): Add it to the list.
2736 * .x-sc_prohibit_assert_without_use: New empty file.
2737 * Makefile.am (EXTRA_DIST): Add it.
2739 * Makefile.maint (CVS_LIST): Define in terms of $(srcdir).
2741 * cp.c, df.c, link.c, mknod.c, nice.c, sleep.c, unlink.c:
2742 Don't include <assert.h>; it wasn't used.
2744 2005-12-26 Paul Eggert <eggert@cs.ucla.edu>
2746 * src/chown-core.c (restricted_chown):
2747 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
2748 * src/remove.c (fd_to_subdirp): Open with O_DIRECTORY | O_NOCTTY
2749 | O_NOFOLLOW too, for consistency with other dir-openers.
2750 Use POSIX-preferred O_NONBLOCK rather than O_NDELAY.
2751 (is_empty_dir): Likewise.
2752 * src/shred.c (wipename): Likewise. Don't bother trying to open
2753 dir for writing, since POSIX prohibits it.
2755 2005-12-22 Jim Meyering <jim@meyering.net>
2757 * tests/help-version: Redirect stderr to /dev/full, to suppress
2758 write error diagnostic.
2760 2005-12-19 Jim Meyering <jim@meyering.net>
2762 * src/mkdir.c, src/mknod.c, src/mkfifo.c (main)
2763 Avoid a minor race condition when `-m MODE' is specified, by using
2764 open, fchown, and close rather than just chown. To do that reliably --
2765 even with an overly restrictive umask -- ensure that each mkdir,
2766 mknod and mkfifo call uses a mode including at least owner-read access.
2767 * src/mknod.c (main): When `-m MODE' is specified, exit nonzero if
2768 the subsequent chown (or equivalent open,fchown,close) fails.
2769 * tests/misc/mknod: New tests.
2770 * tests/misc/Makefile.am (TESTS): Add mknod.
2772 2005-12-17 Jim Meyering <jim@meyering.net>
2774 * src/remove.c (is_empty_dir): Open with O_NDELAY, so we don't hang,
2775 e.g., on a named pipe.
2776 (OPEN_NO_FOLLOW_SYMLINK): Remove definition. Use O_NOFOLLOW in
2777 place of all uses, since it is guaranteed (system.h) to be defined.
2779 2005-12-05 Andreas Gruenbacher <agruen@suse.de>
2781 Add POSIX ACL support
2782 * src/ls.c: Switch back from HAVE_ACL to USE_ACL: The acl() syscall
2783 is no requirement for ACL support; particularly, it does not exist
2784 on systems that have POSIX ACLs.
2785 * src/copy.h (cp_option_init) [umask_kill]: Remove member.
2786 * src/cp.c (umask_kill): With default acls, the umask is not to be
2787 applied. Remove umask_kill, don't change the process umask, and let
2788 the kernel apply the umask where appropriate.
2789 * src/cp.c (make_dir_parents_private): Fix logic for POSIX ACLs.
2790 * src/copy.c (get_dest_mode): Remove; it is obsolete after removing
2792 (copy_reg, copy_internal): Use copy_acl and set_acl
2793 instead of fchown/chown. Fix the logic for POSIX ACLs.
2794 (chown_succeded): Remove; we now always copy acls and
2795 preserve S_ISUID, S_ISGID, and S_ISVTX when needed, no matter if we
2796 did a chown before or not.
2797 * src/mv.c, src/install.c (cp_option_init): Don't set umask_kill member.
2798 * src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD, cp_LDADD,
2799 mv_LDADD, ginstall_LDADD): On systems with an ACL library, arrange
2800 to link with it via $(LIB_ACL), for the utilities that need it.
2802 2005-12-16 Paul Eggert <eggert@cs.ucla.edu>
2804 * src/remove.c (OPENAT_CWD_RESTORE__REQUIRE): Remove.
2805 (OPENAT_CWD_RESTORE__ALLOW_FAILURE): Likewise.
2806 (fd_to_subdirp): Remove openat_cwd_restore_allow_failure arg; its
2807 value is now signified by whether cwd_errno is null.
2808 (fd_to_subdirp, remove_dir, rm_1); Change cwd failure indicator from
2809 pointer-to-bool to pointer-to-errno-value. All callers changed.
2810 (rm_1): Don't bother setting a local cwd failure flag and then
2811 ORing it into the caller's. Just set the caller's.
2812 (rm): Use cwd failure errno value to print a slightly-better
2815 2005-12-15 Jim Meyering <jim@meyering.net>
2817 * src/stat.c (print_it): Properly handle a backslash at the
2818 end of a --printf format string. Reported by Paul Eggert.
2819 * tests/misc/stat-printf (end-bs): Add a test for the above.
2821 2005-12-15 Paul Eggert <eggert@cs.ucla.edu>
2823 * tests/acl: Port to pre-POSIX shells like Solaris 8 /bin/sh.
2824 Don't assume /etc/passwd contains user names; use 'id' instead.
2826 2005-12-15 Jim Meyering <jim@meyering.net>
2828 stat: revert behavior of --format=FMT (-c)
2829 stat: add new option: --printf=FMT
2830 * NEWS: Mention this.
2831 * src/stat.c (isodigit, octtobin, hextobin): Define.
2832 (PRINTF_OPTION): Define.
2833 (interpret_backslash_escapes, trailing_delim): New globals.
2834 (usage): Document them. Alphabetize on long option names.
2835 (print_esc_char): New function.
2836 (print_it): Rewrite, in order to handle backslash escapes.
2837 (main): Handle new option. Set globals for --format, too.
2839 * tests/misc/stat-printf: Test --printf and --format.
2840 * tests/misc/Makefile.am (TESTS): Add stat-printf.
2842 2005-12-14 Paul Eggert <eggert@cs.ucla.edu>
2844 * NEWS: sort now reports incompatible options.
2845 * src/sort.c (incompatible_options, check_ordering_compatibility):
2847 (main): Use them. Don't bother with a usage message for
2848 "sort -c a b", for consistency with other error diagnostics.
2849 * tests/sort/Test.pm (incompat1, incompat2, incompat3, incompat4):
2852 * src/cat.c (main): Undo previous change. close_stdout already
2853 does the check, so the previous change wasn't necessary.
2855 2005-12-13 Paul Eggert <eggert@cs.ucla.edu>
2857 * src/cat.c (main): Check for close (STDOUT_FILENO) failure.
2859 2005-12-12 Paul Eggert <eggert@cs.ucla.edu>
2861 Install a more-conservative approach for sort -R. It's the
2862 same basic idea as the existing code, except it uses the full ISAAC
2863 approach (called the "more kosher" approach in the existing comments).
2864 This makes "sort -R" quite a bit slower (about a factor of 2 on my
2865 little tests involving 10000 lines on a 2.4 GHz P4), but I think it's
2866 better to be conservative here at first, and review any performance
2867 improvements carefully.
2868 * .x-sc_require_config_h: Add src/rand-isaac.c.
2869 * src/rand-isaac.h: Remove. All uses now simply include rand-isaac.c.
2870 * src/Makefile.am (noinst_HEADERS): Remove rand-isaac.h.
2871 (shred_SOURCES, sort_SOURCES): Remove.
2872 (EXTRA_DIST): Add rand-isaac.c.
2873 * src/rand-isaac.c: Revert to what used to be in shred.c, without
2874 changing it to allow for varying numbers of words in the state.
2875 Alter so that we include rand-isaac.c directly rather than
2876 compiling it and linking to it. Don't include config.h or
2877 system.h; that's the includer's responsibility.
2878 Omit functions that are specific to shred.
2879 (ISAAC_LOG, ISAAC_WORDS, ISAAC_BYTES, struct isaac_state, ind):
2880 (isaac_step, struct irand_state):
2881 Resurrect these, with the same defns that used to be in shred.c.
2882 (ISAAC_SIZE, isaac_new, isaac_copy): Remove.
2883 (isaac_refill, isaac_seed_start, isaac_seed_data, irand_init, irand32):
2885 (struct isaac_state, isaac_refill, isaac_mix, isaac_init):
2886 (isaac_seed_start, isaac_seed_data, isaac_seed_finish, isaac_seed):
2887 (irand_init, irand32, irand_mod):
2888 Number of words is constant again.
2889 (struct irand_state, irand_init, irand32, irand_mod): Move to shred.c.
2890 * src/shred.c: Include rand-isaac.c rather than rand-isaac.h.
2891 * src/sort.c: Likewise.
2892 * src/shred.c (fillrand, dopass, main): Undo previous change.
2893 (struct irand_state, irand_init, irand32, irand_mod): Moved back here,
2895 * src/sort.c: Don't include md5.h; it wasn't needed.
2896 (struct keyfield): Rename random_hash to random, for consistency
2897 with the other member names. All uses changed.
2898 (usage): Tweak wording to mention STRING for --seed option.
2899 (short_options): Rorder for consistency with other programs.
2900 (rand_state): Now a struct, not a pointer to one. All uses changed.
2901 (HASH_WORDS, HASH_SIZE): Remove.
2902 (get_hash): Remove comments around resbuf size, since we can assume C89.
2903 Use a "more-kosher" (but slower) approach of invoking isaac_refill.
2904 (keycompare): Adjust to the new get_hash.
2906 (badfieldspec): Omit recently-introduced comment; it isn't needed.
2907 (main): Don't set need_random simply because gkey has it set; that
2908 doesn't necessarily mean we'll need random numbers.
2909 Redo seeding to match new get_hash approach.
2911 2005-12-10 Jim Meyering <jim@meyering.net>
2913 * src/Makefile.am (noinst_HEADERS): Add rand-isaac.h.
2915 Avoid shred segfault on 64-bit systems.
2916 * src/rand-isaac.c (isaac_refill): Don't try to negate a
2917 local of type uint32_t. Make the local an `int' instead.
2919 * NEWS: Mention sort's new options.
2921 * src/rand-isaac.c (isaac_mix): Declare to be static.
2922 Mark all other functions as `extern' so the tight-scope
2923 part of `make distcheck' passes once again.
2924 * src/rand-isaac.h (isaac_mix): Remove declaration.
2926 * src/sort.c (get_hash): Change position of `*' in parameter
2927 type to conform with convention.
2928 (main): Split a long line so it fits in 80 columns.
2929 (keycompare): Remove stray SPACE before TAB that was
2930 causing `make distcheck' to fail.
2932 * src/shred.c: Don't include gethrxtime.h. No longer needed.
2934 * tests/misc/sort-rand: New file: basic tests for the new options.
2935 * tests/misc/Makefile.am (TESTS): Add sort-rand.
2937 2005-12-10 Frederik Eaton <frederik@ofb.net>
2939 * src/Makefile.am (sort_LDADD): Add $(LIB_GETHRXTIME).
2940 (shred_SOURCES, sort_SOURCES): New macros, so we compile rand-isaac.c.
2941 * src/rand-isaac.c: New file, containing ISAAC code that was in shred.c.
2942 Make state size runtime-configurable.
2943 (isaac_new, isaac_copy): New functions.
2944 * src/rand-isaac.h: New file.
2945 * src/shred.c: Include rand-isaac.h. Move ISAAC code to rand-isaac.c.
2946 (fillrand, main): Adjust to the fact that the state size is now
2947 runtime-configurable.
2948 * src/sort.c (short_options, long_options, WORDS, keycompare, main):
2949 (usage): Add options --random-sort and --seed to implement a random
2951 Include md5.h and rand-isaac.h.
2952 (get_hash): New function.
2953 (rand_state): New var.
2954 (HASH_WORDS, HASH_SIZE): New macros.
2956 2005-12-09 Paul Eggert <eggert@cs.ucla.edu>
2958 * tests/dd/misc: Add test for dd iflags=noatime.
2960 2005-12-09 Jim Meyering <jim@meyering.net>
2962 * src/sort.c (usage): Mention white space vs -b and -t options.
2965 2005-12-09 Eric Blake <ebb9@byu.net>
2967 * src/test.c (main): Fix misleading comment.
2969 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
2971 * NEWS: Mention dd's new noatime flag.
2972 * src/system.h (O_NOATIME): Define to 0 if not already defined.
2973 * src/dd.c (flags, usage): Add support for noatime flag.
2975 2005-12-07 Jim Meyering <jim@meyering.net>
2977 Distribute the cvsu script, used only by `make syntax-check'.
2978 * Makefile.am (EXTRA_DIST): Add build-aux/cvsu.
2979 * Makefile.maint (CVS_LIST): Use build-aux/cvsu, now that we
2980 distribute a copy of this script.
2981 * .x-sc_unmarked_diagnostics: Add build-aux/cvsu.
2983 * tests/mv/acl: exit-77 before the trap, not after, if we fail
2984 to create a temporary directory on another partition.
2985 From Andreas Gruenbacher.
2987 2005-12-06 Tomas Pospisek <tpo@sourcepole.ch> (tiny change)
2989 * man/basename.x: Cross-reference to dirname and readlink.
2990 * man/dirname.x: Cross-reference to basename and readlink.
2992 2005-12-05 Andreas Gruenbacher
2994 * src/copy.c [!HAVE_FCHOWN]: Define fchown(...) to -1.
2995 (set_owner, preserve_author): New functions, factored out of copy_reg.
2996 (copy_reg): Use them.
2997 (copy_internal): Use them here, too.
2999 2005-12-04 Jim Meyering <jim@meyering.net>
3001 * src/sleep.c (usage): Say what happens with two or more arguments.
3002 Suggested by Justin Pryzby.
3004 * src/uptime.c (print_uptime): Move decl of `upsecs' into scope
3007 2005-12-03 Jim Meyering <jim@meyering.net>
3009 * src/rm.c (long_opts): Change the name of each undocumented, for-
3010 testing-only option to start with `-', so that it cannot render
3011 ambiguous any prefix it happens to share with some other option name.
3012 Problem reported by Eric Blake.
3013 * src/head.c (long_options): Likewise.
3014 * src/tail.c (long_options): Likewise.
3016 * tests/misc/head-elide-tail: Update uses of undocumented, for-
3017 testing-only --presume* options to start with `---'.
3018 * tests/rm/dangling-symlink: Likewise.
3019 * tests/rm/dir-no-w: Likewise.
3020 * tests/rm/isatty: Likewise.
3022 2005-11-30 Jim Meyering <jim@meyering.net>
3024 * Makefile.maint: Add a comment about cvsu.
3026 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
3028 * NEWS: df updates for "none", "proc", inaccessible file systems.
3029 * src/df.c (show_point): Ignore inaccessible file systems.
3030 (usage): -a includes dummy file systems, not size-0 file systems.
3032 * src/od.c (unsigned_long_long_int): Renamed from ulonglong_t,
3033 to avoid collision with POSIX name space. All uses changed.
3035 2005-11-24 Jim Meyering <jim@meyering.net>
3037 * tests/Makefile.am (EXTRA_DIST): Add acl to the list.
3038 * tests/acl: Add `$0: ' prefix to diagnostics.
3040 * .x-sc_require_config_h: Add lib/buffer-lcm.c to the list.
3042 2005-11-23 Paul Eggert <eggert@cs.ucla.edu>
3044 * src/copy.c: Improve performance a bit by optimizing away
3045 unnecessary system calls and going to a block size of at least
3046 8192 (on normal hosts, anyway). This improved performance 5% on my
3047 Debian stable host (2.4.27 kernel, x86, copying from root
3048 ext3 file system to itself).
3049 Include "buffer-lcm.h".
3050 (copy_reg): Omit last argument. All callers changed.
3051 Use xmalloc to allocate rather than trusting alloca
3052 (which is unwise with large block sizes).
3053 Declare locals more locally, if possible.
3054 Use uintptr_t words instead of int words, for a bit more speed
3055 when looking for null blocks on 64-bit hosts.
3056 Optimize away reads of zero bytes on regular files.
3057 In the typical case, insist on 8 KiB buffers, at least.
3058 Avoid unnecessary extra call to fstat when checking for sparse files.
3059 Avoid now-unnecessary cast to off_t, and "0L".
3060 Avoid unnecessary test of *new_dst when checking for same owner
3063 2005-11-22 Paul Eggert <eggert@cs.ucla.edu>
3065 * src/remove.c (rm): Don't assume C99 for-loop syntax.
3067 2005-11-22 Jim Meyering <jim@meyering.net>
3069 * src/remove.c (AD_push): Remove debugging cruft.
3071 * tests/rm/unread2 (rm): Change expected diagnostic,
3072 `cannot open directory' to `cannot remove', to align with
3074 * tests/rm/rm2: Ensure that rm now continues removing entries
3075 even after certain types of failure.
3077 * src/remove.c: Rewrite. Now, this module is reentrant on systems
3078 that provide openat (Solaris), and on systems like Linux+procfs
3079 where our openat emulation code is reentrant. This also fixes a
3080 few low-probability leaks and eliminates some code that could,
3081 in very unusual circumstances, cause rm() (via a callee) to exit.
3082 * NEWS: Mention this.
3084 * configure.ac: Put copyright dates all on one line so the
3085 emacs function that updates them works properly.
3087 2005-11-18 Paul Eggert <eggert@cs.ucla.edu>
3089 * configure.ac (AM_PROG_CC_C_O): Add. Needed for CVS Automake.
3090 Problem reported by Eric Blake.
3091 (AC_PROG_CC_STDC): Use this instead of AC_PROG_CC, so that
3092 we get a standard-conforming compiler. This relies on the new
3093 m4/c.m4 file. Note that it's a bit tricky, since c.m4 doesn't
3094 define AC_PROG_CC_STDC; we are relying on Autoconf 2.59 internals.
3095 m4/c.m4 can go away with Autoconf 2.60 comes out.
3097 2005-11-17 Jim Meyering <jim@meyering.net>
3099 * src/remove.c (AD_mark_helper): Make a `char *' parameter `const'.
3100 (AD_mark_current_as_unremovable): Likewise, but for a local.
3103 * tests/mv/acl: Let traps handle removing temporary directories.
3105 Expect acl-related tests to fail, until the corresponding
3106 patches are committed.
3107 * tests/mv/Makefile.am (XFAIL_TESTS): Add acl.
3108 * tests/cp/Makefile.am (XFAIL_TESTS): Likewise.
3110 ACL tests, from Andreas Gruenbacher.
3111 * tests/acl, tests/mv/acl, tests/cp/acl: New files.
3112 * tests/mv/Makefile.am (TESTS): Add acl.
3113 * tests/cp/Makefile.am (TESTS): Add acl.
3115 * src/ls.c (basename_is_dot_or_dotdot): Correct wording in comment.
3117 2005-11-16 Paul Eggert <eggert@cs.ucla.edu>
3119 * NEWS: Improve quality of ln's diagnostics.
3120 * src/ln.c (do_link, usage): Likewise.
3121 (do_link): Don't use alloca on a buffer of unbounded size.
3123 2005-11-16 Jim Meyering <jim@meyering.net>
3125 * tests/cp/fail-perm: Accommodate HPUX. It appears to fail
3126 with EACCES rather than EPERM. Reported by Peter O'Gorman here:
3127 http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/5766
3128 This also affects AIX 4.3.3, according to Ralf Wildenhues, in
3129 http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html
3131 2005-11-14 Jim Meyering <jim@meyering.net>
3133 * NEWS (sort): Mention consequences of today's mkstemp-safer.c fix.
3135 2005-11-13 Jim Meyering <jim@meyering.net>
3137 * announce-gen: Accept new option, --gpg-key-id=ID and
3138 emit a blurb telling how to use the .sig files.
3139 * Makefile.cfg (gpg_key_ID): Define.
3140 * Makefile.maint (announcement): Use new option and key.
3142 Require that most .c files include <config.h>.
3143 * Makefile.maint (sc_require_config_h): New rule.
3144 (syntax-check-rules): Add it.
3145 * .x-sc_require_config_h: New file listing exceptions to the
3146 above rule. Some are legit, others are simply grandfathered in.
3147 * Makefile.am (EXTRA_DIST): Add .x-sc_require_config_h here, too.
3149 2005-11-12 Jim Meyering <jim@meyering.net>
3151 * src/checksum.h, src/md5.c, src/sha1sum.c: Remove now-unused files.
3153 2005-11-11 Jim Meyering <jim@meyering.net>
3155 * NEWS: Mention `readlink -f' bug fix in 5.3.0 news.
3156 Mention new readlink options in 5.3.0's `New features' section.
3157 Spotted by Thomas Hood.
3159 2005-11-08 Jim Meyering <jim@meyering.net>
3161 * NEWS: Merge in changes from b5_9x branch.
3163 2005-11-08 Paul Eggert <eggert@cs.ucla.edu>
3165 * NEWS: ls now defaults to --time-style='locale', which in turn acts
3166 like --time-style='posix-long-iso' if the locale settings are messed up.
3167 * src/ls.c (decode_switches): Implement this.
3169 2005-11-08 Jim Meyering <jim@meyering.net>
3171 * tests/du/2g: s/expensive/very expensive/ in a comment.
3174 2005-10-17 Eric Blake <ebb9@byu.net>
3176 * src/ls.c (usage): Fix descriptions of --sort, --time.
3177 Reported by Vitaly A. Ostanin.
3179 2005-11-04 Paul Eggert <eggert@cs.ucla.edu>
3181 * src/ln.c: Include filenamecat.c.
3182 (FILE_BASENAME_CONCAT): Remove.
3183 (do_link): Remove last arg DEST_IS_DIR. All callers changed.
3184 (main): Use file_name_concat, base_name, and strip_trailing_slashes
3185 instead of FILE_BASENAME_CONCAT. This simplifies the code, and avoids
3188 2005-11-04 Jim Meyering <jim@meyering.net>
3190 * src/du.c (process_file): Don't overflow for files of size >= 2^31
3191 on systems with stat.st_blocks of a signed 32-bit type.
3192 This bug causes trouble on some AIX 5.1 systems.
3193 Report and trivial patch from Paul Townsend:
3194 <http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00033.html>
3195 * NEWS: Mention this.
3197 * tests/du/2g: New (very-expensive) test for the above-fixed bug.
3198 * tests/du/Makefile.am (TESTS): Add it here.
3199 * tests/very-expensive: New file.
3200 * tests/Makefile.am (EXTRA_DIST): Add it here.
3201 * tests/cp/perm: Mark this test as `very-expensive', too.
3203 2005-11-02 Paul Eggert <eggert@cs.ucla.edu>
3205 * NEWS: Mention that rm -d and maybe ln -d are scheduled for
3207 * src/remove.h (struct rm_options): Remove unlink_dirs. All uses
3209 * src/rm.c (usage): Don't mention rm -d.
3211 2005-11-02 Jim Meyering <jim@meyering.net>
3213 * tests/dd/skip-seek: Fix typo in comment: s/fileutils/coreutils.
3214 From Andreas Schwab.
3216 * tests/dd/unblock-sync: Redirect stderr to /dev/null so the
3217 `M+N records in/out' lines don't pollute `make check' output.
3219 * tests/dd/skip-seek (sk-seek4): New test, to exercise the bug
3220 fixed on 2005-10-31. This test uses the new, IN_PIPE specifier.
3221 * tests/Coreutils.pm: Accept a new type of input specifier: IN_PIPE,
3222 to indicate that the input file should be piped into the command
3223 under test (via `cat FILE | $prog ...').
3225 * src/remove.c (remove_entry): Emit a better diagnostic when rm
3226 (without -r) fails to remove a directory on a non-Linux system.
3227 This change affects only newer Solaris systems (with priv_*
3228 functions like priv_allocset). Reported by Keith Thompson.
3230 * tests/rm/dir-nonrecur: New file/test for the above fix.
3231 * tests/rm/Makefile.am (TESTS): Add dir-nonrecur.
3233 2005-11-01 Paul Eggert <eggert@cs.ucla.edu>
3235 * NEWS: "tail -c 2 FILE" and "touch 0101000000" now operate as
3236 POSIX 1002.1-2001 requires.
3237 * src/tail.c (parse_obsolete_option): Implement this.
3238 Problem reported by Vincent Lefevre.
3239 * src/touch.c (main): Pass PDS_PRE_2000 to posixtime.
3240 * tests/tail/Test.pm (c-2, c-2-minus, c2, c2-minus): New tests.
3241 (test_vector): Add special cases for _POSIX2_VERSION, and
3242 regularize the old ones a bit.
3243 * tests/touch/obsolescent: Add y2000 test.
3245 2005-10-31 Paul Eggert <eggert@cs.ucla.edu>
3247 * src/dd.c (skip): Fix off-by-one error reported by
3248 Theodoros V. Kalamatianos.
3250 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
3252 * tests/mkdir/p-3: Require that the test be run as non-root.
3253 Problem and trivial fix reported by Theodoros V. Kalamatianos.
3255 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
3257 * src/ln.c (FILE_BASENAME_CONCAT): Omit unnecessary slashes in the
3258 boundary between DEST and SOURCE in the result.
3260 2005-10-26 Dmitry V. Levin <ldv@altlinux.org>
3262 * src/md5sum.c (main) [!O_BINARY]: Changed default read mode
3263 back to text, to sync with documentation and for backwards
3266 2005-10-25 Jim Meyering <jim@meyering.net>
3268 * tests/dircolors/simple (other-wr): Add an explicit test for
3269 the dircolors bug (NULL-dereference) fixed yesterday.
3271 2005-10-24 Jim Meyering <jim@meyering.net>
3273 * src/tac.c (tac_file): When determining whether a file is seekable,
3274 also test whether it is a tty. Using only the lseek-based test would
3275 give a false positive on Solaris. Reported by Peter Fales.
3277 2005-10-24 Dmitry V. Levin <ldv@altlinux.org>
3279 * tests/install/d-slashdot: New test, for "install -d" failure.
3280 * tests/install/Makefile.am (TESTS): Add d-slashdot.
3281 * tests/mkdir/p-slashdot: New test, for "mkdir -p" failure.
3282 * tests/mkdir/Makefile.am (TESTS): Add p-slashdot.
3284 2005-10-24 Jim Meyering <jim@meyering.net>
3286 * src/dircolors.c (ls_codes): Add missing comma.
3287 Anonymous report and patch from
3288 http://savannah.gnu.org/bugs/?func=detailitem&item_id=14849
3290 * src/dircolors.c: Add compile-time assertion that the slack_codes
3291 and ls_codes arrays have the same number of elements. This would
3292 have prevented the above-fixed bug.
3294 * src/expand.c (parse_tab_stops): Add a comment to make this function
3295 identical to the one in unexpand.c.
3296 * src/unexpand.c (parse_tab_stops): Adjust syntax to make this function
3297 identical to the one in expand.c.
3299 * src/expand.c (next_file): Don't assume fopen cannot return stdin.
3301 2005-10-23 Jim Meyering <jim@meyering.net>
3303 * src/md5sum.c (digest_check, main): Use ptr_align rather than
3304 a dangerous pointer-value-to-`unsigned' cast.
3305 * NEWS: mention the new sha* programs.
3306 * AUTHORS: Add new sha* programs.
3308 2005-08-28 David Madore <david.madore@ens.fr>
3310 Add new programs: sha224sum, sha256sum, sha384sum, sha512sum.
3311 * README: Add their names to the list.
3312 * src/md5sum.c: Provide framework for computing sha-2 hashes.
3313 * src/Makefile.am (sha224sum, sha256sum, sha384sum, sha512sum):
3314 Rules for compiling sha-2 utilities
3315 (noinst_HEADERS): Remove checksum.h.
3316 * man/sha512sum.x, man/sha384sum.x, man/sha256sum.x, man/sha224sum.x:
3318 * man/Makefile.am (dist_man_MANS): Add the corresponding .1 names.
3319 (sha224sum.1, sha256sum.1, sha384sum.1, sha512sum.1): New dependencies.
3320 * tests/misc/sha224sum, tests/misc/sha256sum: New files.
3321 * tests/misc/sha384sum, tests/misc/sha512sum: New files.
3322 * tests/misc/Makefile.am (TESTS): Add new sha224sum, sha256sum,
3323 sha384sum, sha512sum test scripts here rather that each in its
3326 2005-08-28 David Madore <david.madore@ens.fr>
3328 * tests/sha1sum/basic-1 (million-a): Add the "million a's" test (one
3329 of the FIPS test vectors).
3331 2005-10-23 Jim Meyering <jim@meyering.net>
3333 * configure.ac: Use 6.0-cvs as the version string.
3334 * NEWS: Adjust accordingly.
3339 Copyright (C) 2005, 2006 Free Software Foundation, Inc.
3341 Copying and distribution of this file, with or without
3342 modification, are permitted provided the copyright notice
3343 and this notice are preserved.