*** empty log message ***
[platform/upstream/coreutils.git] / ChangeLog
1 2006-03-11  Eric Blake  <ebb9@byu.net>
2
3         * Version 6.0-cvs.
4
5         * tests/misc/dirname: New file.
6         * tests/basename/Makefile.am: Delete.
7         * tests/basename/basic: Move to...
8         * tests/misc/basename: ... this new file.  Add some tests,
9         including fixed behavior for //.
10         * tests/misc/Makefile.am (TESTS): Sort.  Add basename, dirname.
11         * tests/Makefile.am (SUBDIRS): Remove basename.
12         * configure.ac (AC_CONFIG_FILES): Remove tests/basename.
13
14         Improvements to dirname/basename handling on platforms like
15         cygwin with distinct // and with drive letters.
16         * NEWS: Document new behavior.
17         * src/basename.c (main): Don't strip suffix from file system
18         roots.
19         * src/cp.c (target_directory_operand): Use new last_component.
20         (ASSIGN_BASENAME_STRDUPA): Likewise.  Reduce time spent
21         traversing the string.
22         * src/dircolors.c (guess_shell_syntax): Use new last_component.
23         * src/install.c (target_directory_operand, install_file_in_dir):
24         Likewise.
25         * src/ln.c (target_directory_operand, main): Likewise.
26         * src/ls.c (basename_is_dot_or_dotdot): Likewise.
27         * src/mv.c (target_directory_operand, movefile): Likewise.
28         * src/remove.c (rm_1): Likewise.
29         * src/shred.c (wipename): Likewise.
30         * src/split.c (next_file_name): Likewise.
31         * src/su.c (log_su, run_shell): Likewise.
32
33 2006-03-23  Paul Eggert  <eggert@cs.ucla.edu>
34
35         * NEWS: nohup diagnostics are now more precise, and nohup now
36         redirects stderr to nohup.out if stdout is closed and stderr is a tty.
37         * src/nohup.c (main): Implement this.
38         * tests/misc/nohup: Test the new behavior.
39
40 2006-03-12  Jim Meyering  <jim@meyering.net>
41
42         * src/copy.c (set_author): Rename function, from preserve_author.
43
44         * src/remove.c (AD_pop_and_chdir): Use new macro,
45         CYCLE_CHECK_REFLECT_CHDIR_UP, rather than open-coding it.
46
47         * src/system.h (SAME_INODE): Remove definition.
48         Include "same-inode.h", instead.
49
50 2006-03-11  Eric Blake  <ebb9@byu.net>
51
52         * src/pwd.c (robust_getcwd): Prepend only one slash, not two.
53
54 2006-03-10  Jim Meyering  <jim@meyering.net>
55
56         Fix a bug whereby a user with write access to a directory being removed
57         could cause the removal of that directory to fail with an erroneous
58         diagnostic about a directory cycle.  Reported by Vineet Chadha.
59
60         * NEWS: Mention this.
61         * src/remove.c (AD_pop_and_chdir): If the directory we're about to
62         leave (and try to rmdir) is the one whose dev_ino is being used to
63         detect a cycle, reset cycle_check_state.dev_ino to that of the parent.
64
65 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
66
67         * NEWS: Document dd's new 'directory' and 'nolinks' flags.
68         * src/dd.c (set_fd_flags): Handle file-creation flags on file
69         descriptors, rather than ignoring them.
70         * tests/dd/misc: Add test cases for append, nofollow, directory,
71         and nolinks flags.  Simplify redirection to /dev/null in some cases.
72
73         * tests/dd/misc: iflags->iflag.  This fixes a typo that meant the
74         noatime test never tested anything.
75
76 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
77
78         * src/dd.c (flags, usage): New flags directory, nolinks.
79         * src/system.h (O_NOLINKS): Define to 0 if not already defined.
80
81         * src/ls.c (usage): Mention that -f disables --color.
82         Problem reported by Niels Möller.
83
84 2006-03-03  Justin Pryzby  <pryzbyj@justinpryzby.com>
85
86         * man/*.x: Add references to syscalls from utilities of the same name.
87
88 2006-03-05  Jim Meyering  <jim@meyering.net>
89
90         * tests/help-version: Set SHELL, if not already set, in order to
91         avoid failure when `make check' is run through debuild;  dircolors
92         would fail due to lack of $SHELL.  Reported by Sven Joachim.
93
94         Make `base64 --wrap=N' work for N=0, and for N larger than SIZE_MAX.
95         * src/base64.c (wrap_write, do_encode, main): Change type of
96         parameters and locals, wrap_column, form size_t to uintmax_t.
97         (main): Adjust to use xstrtoumax, accordingly.
98
99 2006-03-03  Jim Meyering  <jim@meyering.net>
100
101         Don't fail when run from an environment with SHELL not a Bourne
102         shell, e.g. `env SHELL=/bin/csh make check' would fail this test.
103         * tests/dircolors/simple: Invoke each non-failing test with -b.
104         Reported by Michael Stone.
105
106 2006-02-27  Jim Meyering  <jim@meyering.net>
107
108         * tests/misc/base64: Derive --decode-using tests from the
109         encode-based ones.
110
111         * tests/misc/base64: Factor out a long constant string.
112         Split lines to stay within 80 columns.
113
114         * tests/misc/Makefile.am (TESTS): Add base64.
115         * tests/misc/base64: Test base64.  From Simon Josefsson.
116
117         * src/base64.c (do_decode): Use correct type for parameter,
118         ignore_garbage: s/size_t/bool/.
119
120         * src/base64.c: Don't include .h files already included by system.h:
121         <string.h>, <stdlib.h>, <stdbool.h>, <limits.h>, <errno.h>.
122         Include "system.h" before the other lib/*.h header files.
123         Include <sys/types.h> before "system.h".
124         (wrap_write): Remove declaration of unused local, initial_column.
125         (wrap_write): Correct declaration syntax: s/size_t * V/size_t *V/.
126
127         * README: Add base64 to the list.
128
129 2006-02-17  Simon Josefsson  <jas@extundo.com>
130
131         New program: base64.
132         * AUTHORS: Mention base64.
133         * NEWS: Likewise.
134         * man/Makefile.am: Build base64.1.
135         * man/base64.x: New file.
136         * src/Makefile.am (bin_PROGRAMS): Add base64.
137         * src/base64.c: New file.
138
139 2006-02-25  Eric Blake  <ebb9@byu.net>
140
141         In ls, avoid calling stat for --inode (-i), when possible.
142         * src/pwd.c (NOT_AN_INODE_NUMBER, D_INO): Move to ...
143         * src/system.h: ... here, for use in ...
144         * src/ls.c (main): ... here.  Prefer dirent.d_ino to stat when
145         possible.
146         (gobble_file): Add inode argument.
147         (print_dir): Pass inode if available.
148         (usage): Remove inaccuracy.
149
150 2006-02-23  Jim Meyering  <jim@meyering.net>
151
152         * TODO: Update/correct some obsolete entries.
153
154 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
155
156         * doc/coreutils.texi (join invocation): Mention `sort -k 1b,1'.
157         * src/join.c (usage): Likewise.
158         Documentation problem reported by Philip Kensche.
159
160 2006-02-20  Eric Blake  <ebb9@byu.net>
161
162         * man/rm.x: Update documentation to match previous patch.
163
164 2006-02-18  Eric Blake  <ebb9@byu.net>
165
166         New option for rm: --interactive=once (-I).
167         * NEWS: Document it, along with change to rm --interactive.
168         * TODO: Remove entry for implementing rm -I
169         * src/rm.c (INTERACTIVE_OPTION): New enum value.
170         (interactive_type): New enum.
171         (long_opts): Let interactive take an optional argument.
172         (interactive_args, interactive_types): New option arguments.
173         (usage): Document -I, --interactive=WHEN.  Use program_name
174         instead of a basename.
175         (main): New -I option, new behavior to --interactive.
176         * tests/rm/interactive-once: New tests.
177         * tests/rm/interactive-always: Ditto.
178         * tests/rm/Makefile.am (TESTS): Run them.
179
180 2006-02-18  Jim Meyering  <jim@meyering.net>
181
182         * Makefile.maint (sc_two_space_separator_in_usage): Make the regular
183         expression match more of the target lines, e.g., those that start with
184         `-S,' (short option followed by a comma) or that include `=[...]'.
185         Patch by Nicolas François.
186         Fix the four offenders thus exposed:
187         * src/join.c (usage): Use two spaces (not one) to separate the
188         --first-only option string from its description, so help2man formats
189         the derived man page properly.
190         * src/pr.c (usage): Likewise.
191         * src/uniq.c (usage): Likewise.
192         * src/install.c (usage): Likewise.
193
194 2006-02-15  Jim Meyering  <jim@meyering.net>
195
196         * Makefile.maint (alpha beta major): For `make major', ensure that the
197         version string is of the form N.N[.N]*, where N is one or more digits.
198
199 2006-02-14  Jim Meyering  <jim@meyering.net>
200
201         * INSTALL: Update from gnulib.
202
203 2006-02-13  Jim Meyering  <jim@meyering.net>
204
205         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
206
207 2006-02-12  Jim Meyering  <jim@meyering.net>
208
209         * Makefile.maint (patch-check): New target.
210         (local-checks-available): Add to the list.
211
212 2006-02-11  Jim Meyering  <jim@meyering.net>
213
214         * src/c99-to-c89.diff: New file.
215         * src/Makefile.am (EXTRA_DIST): Add c99-to-c89.diff.
216
217         * .x-po-check: New file, with exclusions so that `make distcheck'
218         passes once again.
219         * Makefile.am (EXTRA_DIST): Add .x-po-check.
220
221         rm -r must remove an empty directory, even if it is inaccessible.
222         * src/remove.c (close_preserve_errno): New function.
223         (fd_to_subdirp): Don't print a diagnostic in this function.
224         Do it from the callers instead, unless rmdir succeeds.
225         (remove_cwd_entries, remove_dir): Adjust callers.
226         * tests/rm/empty-inacc: New test for the above.
227         * tests/rm/Makefile.am (TESTS): Add empty-inacc.
228         * NEWS: Mention this bug fix.
229         * tests/rm/rm2: Adjust two expected diagnostics, now that they're
230         a tiny bit less precise: cannot remove `a/1': ... instead of
231         cannot open directory `a/1': ...
232
233         * Makefile.maint (syntax-check-rules): Automatically derive this
234         list of sc_-prefixed rule names.
235
236 2006-02-10  Paul Eggert  <eggert@cs.ucla.edu>
237
238         * Makefile.maint (CVS_LIST): Don't assume cvsu is available.
239         (CVS_LIST_EXCEPT): New macro, to simplify exception-processing.
240         Most uses of CVS_LIST changed to use CVS_LIST_EXCEPT.
241         (syntax-check-rules): Bring back sc_changelong.  (Hmm, why did it
242         go away? was that an accident?)
243         (sc_cast_of_argument_to_free, sc_cast_of_x_alloc_return_value):
244         (sc_cast_of_alloca_return_value, sc_space_tab, sc_prohibit_atoi_atof):
245         (sc_error_exit_success, sc_file_system, sc_no_if_have_config_h):
246         (sc_system_h_headers, sc_sun_os_names, sc_trailing_blank):
247         (sc_two_space_separator_in_usage, sc_unmarked_diagnostics):
248         (sc_obsolete_symbols, sc_changelog, sc_prohibit_jm_in_m4):
249         (sc_useless_cpp_parens, makefile-check, m4-check, po-check):
250         (author_mark_check, makefile_path_separator_check):
251         Output line numbers, to simplify navigation of Emacs *compilation*
252         buffers.
253         (sc_prohibit_atoi_atof, sc_file_system):
254         Rework slightly so that Makefile.maint doesn't get reported as a
255         violation of its own syntax rules.
256         (sc_dd_max_sym_length): Use ifneq to do nothing, instead of doing
257         it at run-time (which didn't work with Bison).  Fix a makefile typo,
258         caught by Makefile.maint itself: spaces where a tab should be.
259         (po-check): Check lib/*.[ch] even if not in CVS; used by Bison,
260         which copies from ../gnulib/lib/*.[ch] to lib/*.[ch].
261         Ignore djgpp and man subdirectories, to avoid false matches with
262         Bison and coreutils, respectively.  Use sort -u to remove the
263         resulting duplicates.
264         * gnupload: Rework slightly to avoid bogus warning from
265         sc_two_space_separator_in_usage.
266
267 2006-02-10  Jim Meyering  <jim@meyering.net>
268
269         Use gzip's --rsyncable option only if it's available.
270         * Makefile.maint (gzip_rsyncable): New variable.
271         (GZIP_ENV): Use it.
272
273 2006-02-08  Jim Meyering  <jim@meyering.net>
274
275         * Makefile.maint (local-checks-available): Define in terms of
276         the expansion, $(syntax-check-rules), rather than the single,
277         top-level target `syntax-check', so that it's easier to exclude
278         individual rules (via $(local-checks-to-skip)).
279         (tgz-md5, tgz-sha1, ...): Remove now-unused definitions.
280
281 2006-02-07  Jim Meyering  <jim@meyering.net>
282
283         * src/system.h (!defined O_DIRECT): If O_DIRECTIO is defined (as it
284         is on Tru64), define O_DIRECT to that.  Patch From James Lemley.
285
286         * tests/help-version (expected_failure_status_vdir):
287         Redirect an expected disk-full diagnostic to /dev/null.
288
289 2006-02-06  Jim Meyering  <jim@meyering.net>
290
291         * src/unexpand.c (usage): Use two spaces (not one) to separate the
292         --first-only option string from its description, so help2man formats
293         the derived man page properly.
294         * src/rm.c (usage): Likewise for --no-preserve-root.
295         * src/chown.c (usage): Likewise.
296         * src/chgrp.c (usage): Likewise.
297
298         Add a rule to ensure that the above doesn't happen again.
299         * Makefile.maint (sc_two_space_separator_in_usage): New rule.
300         (syntax-check-rules): Add it.
301         * .x-sc_two_space_separator_in_usage: New empty file.
302         * Makefile.am (EXTRA_DIST): Add .x-sc_two_space_separator_in_usage.
303
304 2006-02-06  Jim Meyering  <jim@meyering.net>
305
306         * src/cp.c (usage): Use two spaces (not one) to separate each
307         option string from its description, so help2man formats the
308         derived man page properly.
309         * src/mv.c (usage): Likewise.
310         Patch from Nicolas François in http://bugs.debian.org/351601.
311
312 2006-02-04  Jim Meyering  <jim@meyering.net>
313
314         * src/copy.c (copy_internal): cp -RL would fail when encountering
315         the same directory more than once in the hierarchy beneath a single
316         command-line argument.  That is legitimate, e.g. when there are
317         two or more symbolic links, each pointing to some directory that
318         would not otherwise be copied.  Reported by Christophe LYON.
319         * tests/cp/cp-deref: New file.  Test for today's fix.
320         * tests/cp/Makefile.am (TESTS): Add cp-deref.
321         * NEWS: Document this.
322
323 2006-02-03  Jim Meyering  <jim@meyering.net>
324
325         * configure.ac: Require automake-1.9.6, not 1.8.3.
326
327 2006-02-01  Paul Eggert  <eggert@cs.ucla.edu>
328
329         * src/od.c (usage): Mention that -t a ignores high order bit.
330         Documentation problem reported by Ed Avis.
331
332 2006-02-01  Jim Meyering  <jim@meyering.net>
333
334         * src/pwd.c (find_dir_entry): Remove unused local, `ent_sb_valid'.
335
336 2006-01-30  Paul Eggert  <eggert@cs.ucla.edu>
337
338         * src/head.c (main): Use a better diagnostic when someone uses a
339         trailing numeric option in an invalid way.  Problem reported by
340         Karl Berry.
341         * src/tail.c (parse_options): Likewise.
342
343 2006-01-30  Jim Meyering  <jim@meyering.net>
344
345         * man/wc.x: Include `count' keyword in man page synopsis,
346         per suggestion from http://bugs.debian.org/181585.
347
348 2006-01-24  Paul Eggert  <eggert@cs.ucla.edu>
349
350         * src/df.c (show_dev): If the file system claims to have
351         more available than total blocks, report the number of used
352         blocks as being total - available (a negative number) rather
353         than as garbage.  Problem reported by Toralf Foerster.
354
355 2006-01-24  Jim Meyering  <jim@meyering.net>
356
357         * src/tail.c (tail_forever): Don't exit-nonzero when an attempt
358         to put a regular file in O_NONBLOCK mode fails with EPERM.
359         That happens on Linux (up to 2.6.15) when using tail -f on a file with
360         the append-only attribute.  Reported by Dean Gaudet.  For details,
361         see http://savannah.gnu.org/bugs/?func=detailitem&item_id=15473.
362         * NEWS: Mention this fix.
363         * tests/tail-2/append-only: New file.  Test for the above.
364         * tests/tail-2/Makefile.am (TESTS): Add append-only.
365         * tests/Makefile.am (check-root): Add tail-2/append-only
366
367 2006-01-21  Jim Meyering  <jim@meyering.net>
368
369         * NEWS: Mention fts-related improvements and bug fixes.
370
371 2006-01-19  Jim Meyering  <jim@meyering.net>
372
373         * tests/fmt/basic (pfx-1, pfx-2): New tests, to demonstrate the bug
374         reported as http://bugs.debian.org/147577.  Forwarded by Thomas Hood.
375
376 2006-01-18  Jim Meyering  <jim@meyering.net>
377
378         * tests/du/Makefile.am (TESTS): Add long-from-unreadable.
379
380 2006-01-17  Jim Meyering  <jim@meyering.net>
381
382         Now that fts no longer changes the current working directory, adjust
383         its clients accordingly -- note that du.c uses fts but doesn't need
384         any adjustment, since it doesn't operate on the actual files,
385         but rather just uses the stat buffers provided by fts.
386
387         * src/chown-core.c: Include "openat.h".
388         Don't include "lchown.h".
389         (restricted_chown): Accept a new parameter, CWD_FD, and use it in
390         calling openat, lchownat, chownat, rather than open, lchown, chown.
391         Update caller.
392         * src/chmod.c: Include "openat.h".
393         (process_file): Use chmodat (fts->fts_cwd_fd,... in place of chmod (...
394
395         * tests/du/long-from-unreadable: New test, to exercise one small
396         corner of fts.c.
397
398 2006-01-13  Jim Meyering  <jim@meyering.net>
399
400         * tests/Makefile.am (SUBDIRS): Add comments discouraging the
401         addition of new directories under tests/.
402
403         * tests/acl: Redirect stdin to /dev/null.  Otherwise, FreeBSD 5.0's
404         getfacl would hang.
405
406 2006-01-12  Jim Meyering  <jim@meyering.net>
407
408         * tests/du/long-sloop: Adjust not to hard-code the expected
409         diagnostic corresponding to ELOOP.  Solaris' diagnostic differs
410         from that of GNU libc.  Reported by Paul Eggert.
411
412         * tests/du/long-sloop: Create file at end of symlink chain.
413
414         * tests/misc/test: New file, with a test for one of the
415         bugs fixed by yesterday's test.c changes.
416         * tests/misc/Makefile.am (TESTS): Add test.
417
418 2006-01-11  Jim Meyering  <jim@meyering.net>
419
420         * tests/du/long-sloop: New file.  Test for today's fts.c bug fix.
421         That bug could make du -L, chgrp -L, or chown -L fail to diagnose
422         a very long sequence of symbolic links (not necessarily a loop).
423         * tests/du/Makefile.am (TESTS): Add long-sloop.
424
425 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
426
427         * src/test.c (test_syntax_error): Append a newline.  All callers
428         changed, except for the ones that didn't already append a newline.
429         Bug reported by Eric Blake.
430
431 2006-01-11  Jim Meyering  <jim@meyering.net>
432
433         * src/system.h (X2NREALLOC): Now that verify_true is no longer
434         void, cast its result to void, to avoid gcc's warning that
435         ``left-hand operand of comma expression has no effect''.
436         (DECIMAL_DIGIT_ACCUMULATE, X2REALLOC): Likewise.
437
438 2006-01-10  Jim Meyering  <jim@meyering.net>
439
440         * tests/chmod/no-x: Add a test for today's fts.c fix.
441
442 2006-01-10  Jim Meyering  <jim@meyering.net>  (tiny change)
443
444         * src/ls.c (gobble_file): Use DTTOIF only if it's defined.
445         This is necessary for Dragonfly.  Patch by Joerg Sonnenberger.
446
447 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
448
449         * src/system.h (X2NREALLOC, X2REALLOC, DECIMAL_DIGIT_ACCUMULATE):
450         Use verify_true instead of verify_expr, to sync with gnulib.
451
452 2006-01-08  Jim Meyering  <jim@meyering.net>
453
454         * src/date.c (usage): Adjust the formatting of the entries for
455         %::z and %:::z (separate with two spaces, not one) so that help2man
456         formats them properly.  Reported by Philip Rowlands.
457
458 2006-01-06  Paul Eggert  <eggert@cs.ucla.edu>
459
460         * configure.ac (gl_IGNORE_UNUSED_LIBRARIES): Add.
461
462 2006-01-06  Jim Meyering  <jim@meyering.net>
463
464         * Makefile.maint (copyright-check): Use date +%Y in place of
465         hard-coded 2005.
466
467         * src/remove.c (rm_1): Remove `static' attribute on local `status'.
468         First off, the attribute should have been `volatile' (not static)
469         to avoid longjmp-related risk of clobber.  Secondly, now there is
470         no longer any risk of a local variable being clobbered, so there's
471         no need for any attribute at all.
472
473 2006-01-05  Jim Meyering  <jim@meyering.net>
474
475         * src/remove.c: Give a few functions the inline attribute.
476         (AD_pop_and_chdir): Use gotos to avoid some duplication.
477         (AD_push): Rewrite an assertion so that the entire computation
478         goes away when assertions are turned off.
479
480         * src/tail.c (ENOSYS) [!defined ENOSYS]: Don't define here.
481         It's already defined in "system.h".
482         * Makefile.maint: Add a FIXME comment.
483
484 2006-01-04  Jim Meyering  <jim@meyering.net>
485
486         * ChangeLog: Remove entries from 2005-10-22 and earlier.
487         * ChangeLog-2005: New file, for entries up to version 5.92.
488
489 2006-01-03  Jim Meyering  <jim@meyering.net>
490
491         * tests/du/no-x: Also allow a slightly different diagnostic -- the
492         one you get when using openat-enabled fts.c and du (coming soon).
493         * tests/chmod/no-x: Likewise.
494         * tests/chgrp/no-x: Likewise.
495
496         * src/system.h (O_DIRECTORY) [!defined O_DIRECTORY]: Define.
497
498 2006-01-02  Paul Eggert  <eggert@cs.ucla.edu>
499
500         * src/chown-core.c (RC_do_ordinary_chown): New enum value.
501         (restricted_chown): Return it, if the file cannot be accessed due
502         to EPERM, or if no uid or gid are required, or if the file is
503         neither a directory nor a regular file.  Rewrite to avoid gotos.
504         (change_file_owner): Handle RC_do_ordinary_chown case.
505         Rewrite to avoid gotos.
506         * tests/chgrp/basic: Make sure we can change the group of
507         inaccessible files.
508
509         * src/date.c (usage): Explain %g, %G, and %V a bit better.
510
511 2006-01-02  Jim Meyering  <jim@meyering.net>
512
513         * src/copy.c (set_owner): Correct a comment.
514
515         * src/tail.c (parse_options): Change warning to say that --retry
516         is useful `mainly' (not `only') when following by name.
517         Reported here: http://bugs.debian.org/273781
518
519 2006-01-01  Paul Eggert  <eggert@cs.ucla.edu>
520
521         * NEWS: Document that mkfifo and mknod -m no longer set special bits.
522         * src/copy.c: Include lchmod.h.
523         (copy_internal): Use lchmod rather than chmod.
524         * src/cp.c: Include lchmod.h.
525         (re_protect, make_dir_parents_private): Use lchmod rather than chmod.
526         * src/mkdir.c: Include lchmod.h.
527         (usage): Clarify -m's operation.
528         (main): Use lchmod rather than chmod.  Don't use lchmod unless the
529         new mode contains bits outside the 777 range.
530         * src/mkfifo.c (usage): Clarify -m's operation.
531         (main): If -m is given, don't invoke chmod; use umask 0 instead.
532         Report an error if -m asks for bits outside the 777 range.
533         * src/mknod.c (usage, main): Likewise.
534
535         * src/mkdir.c, src/mkfifo.c, src/mknod.c: Undo 2005-12-19 changes.
536
537 2005-12-27  Jim Meyering  <jim@meyering.net>
538
539         * Makefile.maint (sc_obsolete_symbols): Prohibit use of O_NDELAY.
540         (sc_prohibit_assert_without_use): New rule.
541         (syntax-check-rules): Add it to the list.
542         * .x-sc_prohibit_assert_without_use: New empty file.
543         * Makefile.am (EXTRA_DIST): Add it.
544
545         * Makefile.maint (CVS_LIST): Define in terms of $(srcdir).
546
547         * cp.c, df.c, link.c, mknod.c, nice.c, sleep.c, unlink.c:
548         Don't include <assert.h>; it wasn't used.
549
550 2005-12-26  Paul Eggert  <eggert@cs.ucla.edu>
551
552         * src/chown-core.c (restricted_chown):
553         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
554         * src/remove.c (fd_to_subdirp): Open with O_DIRECTORY | O_NOCTTY
555         | O_NOFOLLOW too, for consistency with other dir-openers.
556         Use POSIX-preferred O_NONBLOCK rather than O_NDELAY.
557         (is_empty_dir): Likewise.
558         * src/shred.c (wipename): Likewise.  Don't bother trying to open
559         dir for writing, since POSIX prohibits it.
560
561 2005-12-22  Jim Meyering  <jim@meyering.net>
562
563         * tests/help-version: Redirect stderr to /dev/full, to suppress
564         write error diagnostic.
565
566 2005-12-19  Jim Meyering  <jim@meyering.net>
567
568         * src/mkdir.c, src/mknod.c, src/mkfifo.c (main)
569         Avoid a minor race condition when `-m MODE' is specified, by using
570         open, fchown, and close rather than just chown.  To do that reliably --
571         even with an overly restrictive umask -- ensure that each mkdir,
572         mknod and mkfifo call uses a mode including at least owner-read access.
573         * src/mknod.c (main): When `-m MODE' is specified, exit nonzero if
574         the subsequent chown (or equivalent open,fchown,close) fails.
575         * tests/misc/mknod: New tests.
576         * tests/misc/Makefile.am (TESTS): Add mknod.
577
578 2005-12-17  Jim Meyering  <jim@meyering.net>
579
580         * src/remove.c (is_empty_dir): Open with O_NDELAY, so we don't hang,
581         e.g., on a named pipe.
582         (OPEN_NO_FOLLOW_SYMLINK): Remove definition.  Use O_NOFOLLOW in
583         place of all uses, since it is guaranteed (system.h) to be defined.
584
585 2005-12-05  Andreas Gruenbacher  <agruen@suse.de>
586
587         Add POSIX ACL support
588         * src/ls.c: Switch back from HAVE_ACL to USE_ACL: The acl() syscall
589         is no requirement for ACL support; particularly, it does not exist
590         on systems that have POSIX ACLs.
591         * src/copy.h (cp_option_init) [umask_kill]: Remove member.
592         * src/cp.c (umask_kill): With default acls, the umask is not to be
593         applied.  Remove umask_kill, don't change the process umask, and let
594         the kernel apply the umask where appropriate.
595         * src/cp.c (make_dir_parents_private): Fix logic for POSIX ACLs.
596         * src/copy.c (get_dest_mode): Remove; it is obsolete after removing
597         umask_kill.
598         (copy_reg, copy_internal): Use copy_acl and set_acl
599         instead of fchown/chown. Fix the logic for POSIX ACLs.
600         (chown_succeded): Remove; we now always copy acls and
601         preserve S_ISUID, S_ISGID, and S_ISVTX when needed, no matter if we
602         did a chown before or not.
603         * src/mv.c, src/install.c (cp_option_init): Don't set umask_kill member.
604         * src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD, cp_LDADD,
605         mv_LDADD, ginstall_LDADD): On systems with an ACL library, arrange
606         to link with it via $(LIB_ACL), for the utilities that need it.
607
608 2005-12-16  Paul Eggert  <eggert@cs.ucla.edu>
609
610         * src/remove.c (OPENAT_CWD_RESTORE__REQUIRE): Remove.
611         (OPENAT_CWD_RESTORE__ALLOW_FAILURE): Likewise.
612         (fd_to_subdirp): Remove openat_cwd_restore_allow_failure arg; its
613         value is now signified by whether cwd_errno is null.
614         (fd_to_subdirp, remove_dir, rm_1); Change cwd failure indicator from
615         pointer-to-bool to pointer-to-errno-value.  All callers changed.
616         (rm_1): Don't bother setting a local cwd failure flag and then
617         ORing it into the caller's.  Just set the caller's.
618         (rm): Use cwd failure errno value to print a slightly-better
619         diagnostic.
620
621 2005-12-15  Jim Meyering  <jim@meyering.net>
622
623         * src/stat.c (print_it): Properly handle a backslash at the
624         end of a --printf format string.  Reported by Paul Eggert.
625         * tests/misc/stat-printf (end-bs): Add a test for the above.
626
627 2005-12-15  Paul Eggert  <eggert@cs.ucla.edu>
628
629         * tests/acl: Port to pre-POSIX shells like Solaris 8 /bin/sh.
630         Don't assume /etc/passwd contains user names; use 'id' instead.
631
632 2005-12-15  Jim Meyering  <jim@meyering.net>
633
634         stat: revert behavior of --format=FMT (-c)
635         stat: add new option: --printf=FMT
636         * NEWS: Mention this.
637         * src/stat.c (isodigit, octtobin, hextobin): Define.
638         (PRINTF_OPTION): Define.
639         (interpret_backslash_escapes, trailing_delim): New globals.
640         (usage): Document them.  Alphabetize on long option names.
641         (print_esc_char): New function.
642         (print_it): Rewrite, in order to handle backslash escapes.
643         (main): Handle new option.  Set globals for --format, too.
644
645         * tests/misc/stat-printf: Test --printf and --format.
646         * tests/misc/Makefile.am (TESTS): Add stat-printf.
647
648 2005-12-14  Paul Eggert  <eggert@cs.ucla.edu>
649
650         * NEWS: sort now reports incompatible options.
651         * src/sort.c (incompatible_options, check_ordering_compatibility):
652         New functions.
653         (main): Use them.  Don't bother with a usage message for
654         "sort -c a b", for consistency with other error diagnostics.
655         * tests/sort/Test.pm (incompat1, incompat2, incompat3, incompat4):
656         New tests.
657
658         * src/cat.c (main): Undo previous change.  close_stdout already
659         does the check, so the previous change wasn't necessary.
660
661 2005-12-13  Paul Eggert  <eggert@cs.ucla.edu>
662
663         * src/cat.c (main): Check for close (STDOUT_FILENO) failure.
664
665 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
666
667         Install a more-conservative approach for sort -R.  It's the
668         same basic idea as the existing code, except it uses the full ISAAC
669         approach (called the "more kosher" approach in the existing comments).
670         This makes "sort -R" quite a bit slower (about a factor of 2 on my
671         little tests involving 10000 lines on a 2.4 GHz P4), but I think it's
672         better to be conservative here at first, and review any performance
673         improvements carefully.
674         * .x-sc_require_config_h: Add src/rand-isaac.c.
675         * src/rand-isaac.h: Remove.  All uses now simply include rand-isaac.c.
676         * src/Makefile.am (noinst_HEADERS): Remove rand-isaac.h.
677         (shred_SOURCES, sort_SOURCES): Remove.
678         (EXTRA_DIST): Add rand-isaac.c.
679         * src/rand-isaac.c: Revert to what used to be in shred.c, without
680         changing it to allow for varying numbers of words in the state.
681         Alter so that we include rand-isaac.c directly rather than
682         compiling it and linking to it.  Don't include config.h or
683         system.h; that's the includer's responsibility.
684         Omit functions that are specific to shred.
685         (ISAAC_LOG, ISAAC_WORDS, ISAAC_BYTES, struct isaac_state, ind):
686         (isaac_step, struct irand_state):
687         Resurrect these, with the same defns that used to be in shred.c.
688         (ISAAC_SIZE, isaac_new, isaac_copy): Remove.
689         (isaac_refill, isaac_seed_start, isaac_seed_data, irand_init, irand32):
690         static again.
691         (struct isaac_state, isaac_refill, isaac_mix, isaac_init):
692         (isaac_seed_start, isaac_seed_data, isaac_seed_finish, isaac_seed):
693         (irand_init, irand32, irand_mod):
694         Number of words is constant again.
695         (struct irand_state, irand_init, irand32, irand_mod): Move to shred.c.
696         * src/shred.c: Include rand-isaac.c rather than rand-isaac.h.
697         * src/sort.c: Likewise.
698         * src/shred.c (fillrand, dopass, main): Undo previous change.
699         (struct irand_state, irand_init, irand32, irand_mod): Moved back here,
700         from rand-isaac.c.
701         * src/sort.c: Don't include md5.h; it wasn't needed.
702         (struct keyfield): Rename random_hash to random, for consistency
703         with the other member names.  All uses changed.
704         (usage): Tweak wording to mention STRING for --seed option.
705         (short_options): Rorder for consistency with other programs.
706         (rand_state): Now a struct, not a pointer to one.  All uses changed.
707         (HASH_WORDS, HASH_SIZE): Remove.
708         (get_hash): Remove comments around resbuf size, since we can assume C89.
709         Use a "more-kosher" (but slower) approach of invoking isaac_refill.
710         (keycompare): Adjust to the new get_hash.
711         Add a FIXME.
712         (badfieldspec): Omit recently-introduced comment; it isn't needed.
713         (main): Don't set need_random simply because gkey has it set; that
714         doesn't necessarily mean we'll need random numbers.
715         Redo seeding to match new get_hash approach.
716
717 2005-12-10  Jim Meyering  <jim@meyering.net>
718
719         * src/Makefile.am (noinst_HEADERS): Add rand-isaac.h.
720
721         Avoid shred segfault on 64-bit systems.
722         * src/rand-isaac.c (isaac_refill): Don't try to negate a
723         local of type uint32_t.  Make the local an `int' instead.
724
725         * NEWS: Mention sort's new options.
726
727         * src/rand-isaac.c (isaac_mix): Declare to be static.
728         Mark all other functions as `extern' so the tight-scope
729         part of `make distcheck' passes once again.
730         * src/rand-isaac.h (isaac_mix): Remove declaration.
731
732         * src/sort.c (get_hash): Change position of `*' in parameter
733         type to conform with convention.
734         (main): Split a long line so it fits in 80 columns.
735         (keycompare): Remove stray SPACE before TAB that was
736         causing `make distcheck' to fail.
737
738         * src/shred.c: Don't include gethrxtime.h.  No longer needed.
739
740         * tests/misc/sort-rand: New file: basic tests for the new options.
741         * tests/misc/Makefile.am (TESTS): Add sort-rand.
742
743 2005-12-10  Frederik Eaton  <frederik@ofb.net>
744
745         * src/Makefile.am (sort_LDADD): Add $(LIB_GETHRXTIME).
746         (shred_SOURCES, sort_SOURCES): New macros, so we compile rand-isaac.c.
747         * src/rand-isaac.c: New file, containing ISAAC code that was in shred.c.
748         Make state size runtime-configurable.
749         (isaac_new, isaac_copy): New functions.
750         * src/rand-isaac.h: New file.
751         * src/shred.c: Include rand-isaac.h.  Move ISAAC code to rand-isaac.c.
752         (fillrand, main): Adjust to the fact that the state size is now
753         runtime-configurable.
754         * src/sort.c (short_options, long_options, WORDS, keycompare, main):
755         (usage): Add options --random-sort and --seed to implement a random
756         shuffle.
757         Include md5.h and rand-isaac.h.
758         (get_hash): New function.
759         (rand_state): New var.
760         (HASH_WORDS, HASH_SIZE): New macros.
761
762 2005-12-09  Paul Eggert  <eggert@cs.ucla.edu>
763
764         * tests/dd/misc: Add test for dd iflags=noatime.
765
766 2005-12-09  Jim Meyering  <jim@meyering.net>
767
768         * src/sort.c (usage): Mention white space vs -b and -t options.
769         From The Wanderer.
770
771 2005-12-09  Eric Blake  <ebb9@byu.net>
772
773         * src/test.c (main): Fix misleading comment.
774
775 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
776
777         * NEWS: Mention dd's new noatime flag.
778         * src/system.h (O_NOATIME): Define to 0 if not already defined.
779         * src/dd.c (flags, usage): Add support for noatime flag.
780
781 2005-12-07  Jim Meyering  <jim@meyering.net>
782
783         Distribute the cvsu script, used only by `make syntax-check'.
784         * Makefile.am (EXTRA_DIST): Add build-aux/cvsu.
785         * Makefile.maint (CVS_LIST): Use build-aux/cvsu, now that we
786         distribute a copy of this script.
787         * .x-sc_unmarked_diagnostics: Add build-aux/cvsu.
788
789         * tests/mv/acl: exit-77 before the trap, not after, if we fail
790         to create a temporary directory on another partition.
791         From Andreas Gruenbacher.
792
793 2005-12-06  Tomas Pospisek  <tpo@sourcepole.ch>  (tiny change)
794
795         * man/basename.x: Cross-reference to dirname and readlink.
796         * man/dirname.x: Cross-reference to basename and readlink.
797
798 2005-12-05  Andreas Gruenbacher
799
800         * src/copy.c [!HAVE_FCHOWN]: Define fchown(...) to -1.
801         (set_owner, preserve_author): New functions, factored out of copy_reg.
802         (copy_reg): Use them.
803         (copy_internal): Use them here, too.
804
805 2005-12-04  Jim Meyering  <jim@meyering.net>
806
807         * src/sleep.c (usage): Say what happens with two or more arguments.
808         Suggested by Justin Pryzby.
809
810         * src/uptime.c (print_uptime): Move decl of `upsecs' into scope
811         where it's used.
812
813 2005-12-03  Jim Meyering  <jim@meyering.net>
814
815         * src/rm.c (long_opts): Change the name of each undocumented, for-
816         testing-only option to start with `-', so that it cannot render
817         ambiguous any prefix it happens to share with some other option name.
818         Problem reported by Eric Blake.
819         * src/head.c (long_options): Likewise.
820         * src/tail.c (long_options): Likewise.
821
822         * tests/misc/head-elide-tail: Update uses of undocumented, for-
823         testing-only --presume* options to start with `---'.
824         * tests/rm/dangling-symlink: Likewise.
825         * tests/rm/dir-no-w: Likewise.
826         * tests/rm/isatty: Likewise.
827
828 2005-11-30  Jim Meyering  <jim@meyering.net>
829
830         * Makefile.maint: Add a comment about cvsu.
831
832 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
833
834         * NEWS: df updates for "none", "proc", inaccessible file systems.
835         * src/df.c (show_point): Ignore inaccessible file systems.
836         (usage): -a includes dummy file systems, not size-0 file systems.
837
838         * src/od.c (unsigned_long_long_int): Renamed from ulonglong_t,
839         to avoid collision with POSIX name space.  All uses changed.
840
841 2005-11-24  Jim Meyering  <jim@meyering.net>
842
843         * tests/Makefile.am (EXTRA_DIST): Add acl to the list.
844         * tests/acl: Add `$0: ' prefix to diagnostics.
845
846         * .x-sc_require_config_h: Add lib/buffer-lcm.c to the list.
847
848 2005-11-23  Paul Eggert  <eggert@cs.ucla.edu>
849
850         * src/copy.c: Improve performance a bit by optimizing away
851         unnecessary system calls and going to a block size of at least
852         8192 (on normal hosts, anyway).  This improved performance 5% on my
853         Debian stable host (2.4.27 kernel, x86, copying from root
854         ext3 file system to itself).
855         Include "buffer-lcm.h".
856         (copy_reg): Omit last argument.  All callers changed.
857         Use xmalloc to allocate rather than trusting alloca
858         (which is unwise with large block sizes).
859         Declare locals more locally, if possible.
860         Use uintptr_t words instead of int words, for a bit more speed
861         when looking for null blocks on 64-bit hosts.
862         Optimize away reads of zero bytes on regular files.
863         In the typical case, insist on 8 KiB buffers, at least.
864         Avoid unnecessary extra call to fstat when checking for sparse files.
865         Avoid now-unnecessary cast to off_t, and "0L".
866         Avoid unnecessary test of *new_dst when checking for same owner
867         and group.
868
869 2005-11-22  Paul Eggert  <eggert@cs.ucla.edu>
870
871         * src/remove.c (rm): Don't assume C99 for-loop syntax.
872
873 2005-11-22  Jim Meyering  <jim@meyering.net>
874
875         * src/remove.c (AD_push): Remove debugging cruft.
876
877         * tests/rm/unread2 (rm): Change expected diagnostic,
878         `cannot open directory' to `cannot remove', to align with
879         new version of rm.
880         * tests/rm/rm2: Ensure that rm now continues removing entries
881         even after certain types of failure.
882
883         * src/remove.c: Rewrite.  Now, this module is reentrant on systems
884         that provide openat (Solaris), and on systems like Linux+procfs
885         where our openat emulation code is reentrant.  This also fixes a
886         few low-probability leaks and eliminates some code that could,
887         in very unusual circumstances, cause rm() (via a callee) to exit.
888         * NEWS: Mention this.
889
890         * configure.ac: Put copyright dates all on one line so the
891         emacs function that updates them works properly.
892
893 2005-11-18  Paul Eggert  <eggert@cs.ucla.edu>
894
895         * configure.ac (AM_PROG_CC_C_O): Add.  Needed for CVS Automake.
896         Problem reported by Eric Blake.
897         (AC_PROG_CC_STDC): Use this instead of AC_PROG_CC, so that
898         we get a standard-conforming compiler.  This relies on the new
899         m4/c.m4 file.  Note that it's a bit tricky, since c.m4 doesn't
900         define AC_PROG_CC_STDC; we are relying on Autoconf 2.59 internals.
901         m4/c.m4 can go away with Autoconf 2.60 comes out.
902
903 2005-11-17  Jim Meyering  <jim@meyering.net>
904
905         * src/remove.c (AD_mark_helper): Make a `char *' parameter `const'.
906         (AD_mark_current_as_unremovable): Likewise, but for a local.
907         (rm_1): Likewise.
908
909         * tests/mv/acl: Let traps handle removing temporary directories.
910
911         Expect acl-related tests to fail, until the corresponding
912         patches are committed.
913         * tests/mv/Makefile.am (XFAIL_TESTS): Add acl.
914         * tests/cp/Makefile.am (XFAIL_TESTS): Likewise.
915
916         ACL tests, from Andreas Gruenbacher.
917         * tests/acl, tests/mv/acl, tests/cp/acl: New files.
918         * tests/mv/Makefile.am (TESTS): Add acl.
919         * tests/cp/Makefile.am (TESTS): Add acl.
920
921         * src/ls.c (basename_is_dot_or_dotdot): Correct wording in comment.
922
923 2005-11-16  Paul Eggert  <eggert@cs.ucla.edu>
924
925         * NEWS: Improve quality of ln's diagnostics.
926         * src/ln.c (do_link, usage): Likewise.
927         (do_link): Don't use alloca on a buffer of unbounded size.
928
929 2005-11-16  Jim Meyering  <jim@meyering.net>
930
931         * tests/cp/fail-perm: Accommodate HPUX.  It appears to fail
932         with EACCES rather than EPERM.  Reported by Peter O'Gorman here:
933         http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/5766
934
935 2005-11-14  Jim Meyering  <jim@meyering.net>
936
937         * NEWS (sort): Mention consequences of today's mkstemp-safer.c fix.
938
939 2005-11-13  Jim Meyering  <jim@meyering.net>
940
941         * announce-gen: Accept new option, --gpg-key-id=ID and
942         emit a blurb telling how to use the .sig files.
943         * Makefile.cfg (gpg_key_ID): Define.
944         * Makefile.maint (announcement): Use new option and key.
945
946         Require that most .c files include <config.h>.
947         * Makefile.maint (sc_require_config_h): New rule.
948         (syntax-check-rules): Add it.
949         * .x-sc_require_config_h: New file listing exceptions to the
950         above rule.  Some are legit, others are simply grandfathered in.
951         * Makefile.am (EXTRA_DIST): Add .x-sc_require_config_h here, too.
952
953 2005-11-12  Jim Meyering  <jim@meyering.net>
954
955         * src/checksum.h, src/md5.c, src/sha1sum.c: Remove now-unused files.
956
957 2005-11-11  Jim Meyering  <jim@meyering.net>
958
959         * NEWS: Mention `readlink -f' bug fix in 5.3.0 news.
960         Mention new readlink options in 5.3.0's `New features' section.
961         Spotted by Thomas Hood.
962
963 2005-11-08  Jim Meyering  <jim@meyering.net>
964
965         * NEWS: Merge in changes from b5_9x branch.
966
967 2005-11-08  Paul Eggert  <eggert@cs.ucla.edu>
968
969         * NEWS: ls now defaults to --time-style='locale', which in turn acts
970         like --time-style='posix-long-iso' if the locale settings are messed up.
971         * src/ls.c (decode_switches): Implement this.
972
973 2005-11-08  Jim Meyering  <jim@meyering.net>
974
975         * tests/du/2g: s/expensive/very expensive/ in a comment.
976         From Paul Townsend.
977
978 2005-10-17  Eric Blake  <ebb9@byu.net>
979
980         * src/ls.c (usage): Fix descriptions of --sort, --time.
981         Reported by Vitaly A. Ostanin.
982
983 2005-11-04  Paul Eggert  <eggert@cs.ucla.edu>
984
985         * src/ln.c: Include filenamecat.c.
986         (FILE_BASENAME_CONCAT): Remove.
987         (do_link): Remove last arg DEST_IS_DIR.  All callers changed.
988         (main): Use file_name_concat, base_name, and strip_trailing_slashes
989         instead of FILE_BASENAME_CONCAT.  This simplifies the code, and avoids
990         the use of alloca.
991
992 2005-11-04  Jim Meyering  <jim@meyering.net>
993
994         * src/du.c (process_file): Don't overflow for files of size >= 2^31
995         on systems with stat.st_blocks of a signed 32-bit type.
996         This bug causes trouble on some AIX 5.1 systems.
997         Report and trivial patch from Paul Townsend:
998         <http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00033.html>
999         * NEWS: Mention this.
1000
1001         * tests/du/2g: New (very-expensive) test for the above-fixed bug.
1002         * tests/du/Makefile.am (TESTS): Add it here.
1003         * tests/very-expensive: New file.
1004         * tests/Makefile.am (EXTRA_DIST): Add it here.
1005         * tests/cp/perm: Mark this test as `very-expensive', too.
1006
1007 2005-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1008
1009         * NEWS: Mention that rm -d and maybe ln -d are scheduled for
1010         removal in 2006.
1011         * src/remove.h (struct rm_options): Remove unlink_dirs.  All uses
1012         removed.
1013         * src/rm.c (usage): Don't mention rm -d.
1014
1015 2005-11-02  Jim Meyering  <jim@meyering.net>
1016
1017         * tests/dd/skip-seek: Fix typo in comment: s/fileutils/coreutils.
1018         From Andreas Schwab.
1019
1020         * tests/dd/unblock-sync: Redirect stderr to /dev/null so the
1021         `M+N records in/out' lines don't pollute `make check' output.
1022
1023         * tests/dd/skip-seek (sk-seek4): New test, to exercise the bug
1024         fixed on 2005-10-31.  This test uses the new, IN_PIPE specifier.
1025         * tests/Coreutils.pm: Accept a new type of input specifier: IN_PIPE,
1026         to indicate that the input file should be piped into the command
1027         under test (via `cat FILE | $prog ...').
1028
1029         * src/remove.c (remove_entry): Emit a better diagnostic when rm
1030         (without -r) fails to remove a directory on a non-Linux system.
1031         This change affects only newer Solaris systems (with priv_*
1032         functions like priv_allocset).  Reported by Keith Thompson.
1033
1034         * tests/rm/dir-nonrecur: New file/test for the above fix.
1035         * tests/rm/Makefile.am (TESTS): Add dir-nonrecur.
1036
1037 2005-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1038
1039         * NEWS: "tail -c 2 FILE" and "touch 0101000000" now operate as
1040         POSIX 1002.1-2001 requires.
1041         * src/tail.c (parse_obsolete_option): Implement this.
1042         Problem reported by Vincent Lefevre.
1043         * src/touch.c (main): Pass PDS_PRE_2000 to posixtime.
1044         * tests/tail/Test.pm (c-2, c-2-minus, c2, c2-minus): New tests.
1045         (test_vector): Add special cases for _POSIX2_VERSION, and
1046         regularize the old ones a bit.
1047         * tests/touch/obsolescent: Add y2000 test.
1048
1049 2005-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1050
1051         * src/dd.c (skip): Fix off-by-one error reported by
1052         Theodoros V. Kalamatianos.
1053
1054 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1055
1056         * tests/mkdir/p-3: Require that the test be run as non-root.
1057         Problem and trivial fix reported by Theodoros V. Kalamatianos.
1058
1059 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
1060
1061         * src/ln.c (FILE_BASENAME_CONCAT): Omit unnecessary slashes in the
1062         boundary between DEST and SOURCE in the result.
1063
1064 2005-10-26  Dmitry V. Levin  <ldv@altlinux.org>
1065
1066         * src/md5sum.c (main) [!O_BINARY]: Changed default read mode
1067         back to text, to sync with documentation and for backwards
1068         compatibility.
1069
1070 2005-10-25  Jim Meyering  <jim@meyering.net>
1071
1072         * tests/dircolors/simple (other-wr): Add an explicit test for
1073         the dircolors bug (NULL-dereference) fixed yesterday.
1074
1075 2005-10-24  Jim Meyering  <jim@meyering.net>
1076
1077         * src/tac.c (tac_file): When determining whether a file is seekable,
1078         also test whether it is a tty.  Using only the lseek-based test would
1079         give a false positive on Solaris.  Reported by Peter Fales.
1080
1081 2005-10-24  Dmitry V. Levin  <ldv@altlinux.org>
1082
1083         * tests/install/d-slashdot: New test, for "install -d" failure.
1084         * tests/install/Makefile.am (TESTS): Add d-slashdot.
1085         * tests/mkdir/p-slashdot: New test, for "mkdir -p" failure.
1086         * tests/mkdir/Makefile.am (TESTS): Add p-slashdot.
1087
1088 2005-10-24  Jim Meyering  <jim@meyering.net>
1089
1090         * src/dircolors.c (ls_codes): Add missing comma.
1091         Anonymous report and patch from
1092         http://savannah.gnu.org/bugs/?func=detailitem&item_id=14849
1093
1094         * src/dircolors.c: Add compile-time assertion that the slack_codes
1095         and ls_codes arrays have the same number of elements.  This would
1096         have prevented the above-fixed bug.
1097
1098         * src/expand.c (parse_tab_stops): Add a comment to make this function
1099         identical to the one in unexpand.c.
1100         * src/unexpand.c (parse_tab_stops): Adjust syntax to make this function
1101         identical to the one in expand.c.
1102
1103         * src/expand.c (next_file): Don't assume fopen cannot return stdin.
1104
1105 2005-10-23  Jim Meyering  <jim@meyering.net>
1106
1107         * src/md5sum.c (digest_check, main): Use ptr_align rather than
1108         a dangerous pointer-value-to-`unsigned' cast.
1109         * NEWS: mention the new sha* programs.
1110         * AUTHORS: Add new sha* programs.
1111
1112 2005-08-28  David Madore  <david.madore@ens.fr>
1113
1114         Add new programs: sha224sum, sha256sum, sha384sum, sha512sum.
1115         * README: Add their names to the list.
1116         * src/md5sum.c: Provide framework for computing sha-2 hashes.
1117         * src/Makefile.am (sha224sum, sha256sum, sha384sum, sha512sum):
1118         Rules for compiling sha-2 utilities
1119         (noinst_HEADERS): Remove checksum.h.
1120         * man/sha512sum.x, man/sha384sum.x, man/sha256sum.x, man/sha224sum.x:
1121         New files.
1122         * man/Makefile.am (dist_man_MANS): Add the corresponding .1 names.
1123         (sha224sum.1, sha256sum.1, sha384sum.1, sha512sum.1): New dependencies.
1124         * tests/misc/sha224sum, tests/misc/sha256sum: New files.
1125         * tests/misc/sha384sum, tests/misc/sha512sum: New files.
1126         * tests/misc/Makefile.am (TESTS): Add new sha224sum, sha256sum,
1127         sha384sum, sha512sum test scripts here rather that each in its
1128         own directory.
1129
1130 2005-08-28  David Madore  <david.madore@ens.fr>
1131
1132         * tests/sha1sum/basic-1 (million-a): Add the "million a's" test (one
1133         of the FIPS test vectors).
1134
1135 2005-10-23  Jim Meyering  <jim@meyering.net>
1136
1137         * configure.ac: Use 6.0-cvs as the version string.
1138         * NEWS: Adjust accordingly.