Paul Eggert
3869e29196
Support obsolete usages like "sort +1 -2" even when conforming to
...
POSIX 1003.1-2001.
2006-06-28 23:49:58 +00:00
Paul Eggert
0b24b84044
* src/system.h (CLOSEDIR): Remove. All uses changed to closedir.
2006-06-28 22:21:48 +00:00
Jim Meyering
78e532a9e4
* src/c99-to-c89.diff: Regenerate, to remove fuzz.
2006-06-28 07:01:42 +00:00
Jim Meyering
df96ded8ae
* tests/misc/cat-proc: Try to avoid any spurious numeric
...
differences in frequently-changing /proc/cpuinfo.
Reported by Nelson Beebe.
2006-06-27 18:43:58 +00:00
Jim Meyering
7590adf9b9
Attempt rmdir (actually, unlinkat-with-AT_REMOVEDIR) upon any
...
fd_to_subdirp failure, not just when errno == EACCES.
* src/remove.c (remove_dir): Use unlinkat-with-AT_REMOVEDIR, not
rmdir, here, even though rmdir may happen to be adequate.
2006-06-26 13:29:48 +00:00
Jim Meyering
78b166d1b1
* NEWS: rm no longer fails to remove an empty, unreadable directory
...
* src/remove.c (remove_cwd_entries): If we can't open a directory,
and the failure is not being ignored, try to remove the directory
with rmdir (aka unlinkat-with-AT_REMOVEDIR), in case it's empty.
Problem report and test case from Paul Eggert in
<http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7425 >.
* tests/rm/empty-inacc: New test, for the above.
2006-06-26 13:02:01 +00:00
Jim Meyering
6def7f6227
Avoid a segfault for wc --files0=- < /dev/null.
...
* src/wc.c (compute_number_width): Return right away if nfiles == 0.
2006-06-26 08:39:59 +00:00
Jim Meyering
cc70571401
* NEWS: wc accepts a new option --files0-from=FILE, where FILE
...
contains a list of NUL-separated file names.
* src/wc.c: Include "readtokens.h".
(usage): Describe the new option, and adjust the `Usage':
with this option, no FILE may be specified on the command line.
(main): Handle the new option.
* tests/misc/wc-files0: New tests, for the above.
* tests/misc/wc-files0-from: Likewise.
* tests/misc/Makefile.am (TESTS): Add wc-files0.
2006-06-25 18:26:09 +00:00
Jim Meyering
99fb2bfe1f
* src/md5sum.c (DIGEST_BUFFER): Remove now-unused definitions.
2006-06-24 05:31:41 +00:00
Jim Meyering
b505087420
* src/tee.c (tee_files): Rename from tee, to avoid conflict with
...
the function in glibc's <fcntl.h>. Reported by Andreas Schwab.
2006-06-22 12:50:32 +00:00
Jim Meyering
ed91e298a4
* Makefile.cfg (local-checks-to-skip): Add changelog-check,
...
so this check is not run as part of "make distcheck".
2006-06-18 22:06:42 +00:00
Jim Meyering
a40e199756
*** empty log message ***
2006-06-18 17:08:52 +00:00
Jim Meyering
ef8e124bb2
* tests/rm/inaccessible: Skip this test on systems without openat support.
...
Reported by Bob Proulx.
2006-06-17 17:46:33 +00:00
Paul Eggert
585d681783
Improve permission checks to handle
...
running mkdir test in set-gid directories.
2006-06-15 17:35:00 +00:00
Jim Meyering
e48234f842
tests/du/basic: Revamp not to hard-code file system block sizes.
2006-06-14 08:45:33 +00:00
Jim Meyering
61691e8f40
tests/du/Makefile.am (TESTS_ENVIRONMENT): Pass $(PERL), for the files0-from test.
2006-06-12 20:35:55 +00:00
Jim Meyering
b50d64f0ad
Makefile.am (EXTRA_DIST): Add .gitignore.
2006-06-11 10:03:09 +00:00
Jim Meyering
966a2f95a3
*** empty log message ***
2006-06-11 08:43:28 +00:00
Jim Meyering
ba2948b764
Setting TIME_STYLE=long-iso in the environment would make the
...
cp/same-file test fail.
* tests/envvar-check (vars): Add TIME_STYLE to the list.
* tests/cp/same-file: Revert last change.
Source the envvar-check script, to ensure that TIME_STYLE
settings don't affect these tests.
2006-06-11 08:12:37 +00:00
Paul Eggert
13d0cd669e
* tests/cp/same-file: Execute 'ls' in the C locale, so that it
...
uses POSIX time stamp formats. Problem reported by John Nixon in
<http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00062.html >.
2006-06-11 07:59:16 +00:00
Jim Meyering
d9f0cce0f4
Mention the AIX-strndup-bug vs. dircolors workaround.
2006-06-10 09:41:39 +00:00
Jim Meyering
82f9a230aa
*** empty log message ***
2006-06-10 07:58:09 +00:00
Jim Meyering
790892db65
Ensure that cat works with any of the options, -A -v -e -E -T,
...
when applied to files in /proc and /sys, even when the FIONREAD
ioctl produces nonsensical results. Before this change, cat would
produce no output (or truncated output), for some linux kernels.
* src/cat.c (write_pending): New function, factored out of cat.
(cat): Also interpret a negative ioctl/FIONREAD count as indicating
that there are bytes to read. Some versions of linux-2.6.16 do that.
Write any pending output before returning.
Reported by Dan Jacobson in <http://bugs.debian.org/370583 >.
* NEWS: Mention this bug fix.
* tests/misc/cat-proc: New file. Test for the above.
* tests/misc/Makefile.am (TESTS): Add cat-proc.
2006-06-08 20:13:37 +00:00
Paul Eggert
cad27cdc2e
(eval4): Detect overflow properly when multiplying INTMAX_MIN * -1.
2006-06-08 02:53:25 +00:00
Paul Eggert
8863262663
The 'expr' command now detects and reports integer overflow.
2006-06-07 05:52:41 +00:00
Paul Eggert
8ef928100b
Fix problems when building with Solaris/SVR4/etc. make, which uses a
...
different and somewhat bogus implementation of VPATH.
2006-06-05 20:05:26 +00:00
Jim Meyering
53ca379fa3
*** empty log message ***
2006-06-03 09:04:26 +00:00
Paul Eggert
cfa91bfde8
Fix some HP-UX 11.23 porting bugs.
2006-06-01 07:10:48 +00:00
Jim Meyering
558b3aacbe
*** empty log message ***
2006-05-30 06:22:20 +00:00
Jim Meyering
a143307078
*** empty log message ***
2006-05-28 12:12:47 +00:00
Jim Meyering
9af6ea12a1
*** empty log message ***
2006-05-28 09:33:00 +00:00
Jim Meyering
9602351980
*** empty log message ***
2006-05-28 09:03:12 +00:00
Jim Meyering
3dc0c35710
*** empty log message ***
2006-05-27 15:12:05 +00:00
Jim Meyering
6f12bb8b21
*** empty log message ***
2006-05-27 15:00:22 +00:00
Jim Meyering
d3ff52d9e2
*** empty log message ***
2006-05-27 14:44:44 +00:00
Paul Eggert
32cea0d8ae
Remove mention of --seed.
2006-05-25 16:48:05 +00:00
Jim Meyering
6776bb7d30
*** empty log message ***
2006-05-20 19:00:46 +00:00
Jim Meyering
20c78772b3
*** empty log message ***
2006-05-20 07:20:03 +00:00
Jim Meyering
c11a92383d
*** empty log message ***
2006-05-19 22:30:55 +00:00
Jim Meyering
7e9a2a1429
*** empty log message ***
2006-05-19 12:36:36 +00:00
Jim Meyering
58f42eb607
*** empty log message ***
2006-05-15 20:18:49 +00:00
Jim Meyering
3c51d8f36f
*** empty log message ***
2006-05-13 08:41:37 +00:00
Jim Meyering
4e4cb620fb
*** empty log message ***
2006-05-13 08:41:06 +00:00
Jim Meyering
5a55ecfac3
*** empty log message ***
2006-05-11 08:57:32 +00:00
Jim Meyering
af5ca358b9
*** empty log message ***
2006-05-11 08:55:08 +00:00
Jim Meyering
c70ad7aa27
*** empty log message ***
2006-05-11 07:51:17 +00:00
Jim Meyering
f79fbe2212
*** empty log message ***
2006-05-11 07:33:10 +00:00
Jim Meyering
6af864de67
*** empty log message ***
2006-05-07 17:25:25 +00:00
Jim Meyering
194a26ac5c
*** empty log message ***
2006-05-07 17:21:01 +00:00
Jim Meyering
89745f895e
mention the df improvement from 2006-01-24
2006-05-07 15:37:38 +00:00