platform/upstream/coreutils.git
18 years agoThe dev/inode of the topmost directory in each hierarchy were not
Jim Meyering [Mon, 3 Jul 2006 15:10:35 +0000 (15:10 +0000)]
The dev/inode of the topmost directory in each hierarchy were not
being recorded.
* src/remove.c (remove_cwd_entries): Don't call cycle_check here.
(AD_push): Call it from here instead.

18 years agoFix two small leaks.
Jim Meyering [Mon, 3 Jul 2006 13:14:01 +0000 (13:14 +0000)]
Fix two small leaks.
* src/remove.c (AD_stack_clear): New function.
(rm_1): Use it.
(AD_pop_and_chdir): Free *prev_dir just before longjmp.

18 years ago* tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT):
Jim Meyering [Mon, 3 Jul 2006 12:55:25 +0000 (12:55 +0000)]
* tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT):
Add $VG_PATH_PREFIX as a prefix to $PATH

18 years ago.
Jim Meyering [Mon, 3 Jul 2006 09:10:36 +0000 (09:10 +0000)]
.

18 years ago* tests/envvar-check (vars): Add CDPATH and POSIXLY_CORRECT.
Jim Meyering [Mon, 3 Jul 2006 08:37:50 +0000 (08:37 +0000)]
* tests/envvar-check (vars): Add CDPATH and POSIXLY_CORRECT.
* tests/Makefile.am (evar-check): Remove rule.
(EXTRA_DIST): Remove .env-warn.
* tests/.env-warn: Remove file.  No longer used.
Suggestion from Eric Blake.

18 years ago*** empty log message ***
Jim Meyering [Mon, 3 Jul 2006 07:42:30 +0000 (07:42 +0000)]
*** empty log message ***

18 years ago(gl_FUNC_FTRUNCATE): Adjust diagnostic to recommend
Jim Meyering [Mon, 3 Jul 2006 07:42:27 +0000 (07:42 +0000)]
(gl_FUNC_FTRUNCATE): Adjust diagnostic to recommend
./configure SKIP_FTRUNCATE_CHECK=yes, rather than env ... ./configure.
Suggestion from Ralf Wildenhues.

18 years ago(intmax_t, uintmax_t): Prefer long to long long if
Paul Eggert [Sun, 2 Jul 2006 09:15:08 +0000 (09:15 +0000)]
(intmax_t, uintmax_t): Prefer long to long long if
both are 64 bits.

18 years ago(gl_STDINT_H): Use more-mnemonic identifiers for
Paul Eggert [Sun, 2 Jul 2006 09:14:28 +0000 (09:14 +0000)]
(gl_STDINT_H): Use more-mnemonic identifiers for
test cases, so that config.log is a bit easier to follow.

18 years ago*** empty log message ***
Jim Meyering [Sun, 2 Jul 2006 08:29:30 +0000 (08:29 +0000)]
*** empty log message ***

18 years agoNew file, from gnulib. Required by stdint.m4.
Jim Meyering [Sun, 2 Jul 2006 08:29:26 +0000 (08:29 +0000)]
New file, from gnulib.  Required by stdint.m4.

18 years agoInclude <stdint.h> unconditionally, since we
Paul Eggert [Sun, 2 Jul 2006 07:09:25 +0000 (07:09 +0000)]
Include <stdint.h> unconditionally, since we
now assume the stdint module.

18 years agoSync stdint module from gnulib.
Paul Eggert [Sun, 2 Jul 2006 07:08:50 +0000 (07:08 +0000)]
Sync stdint module from gnulib.

18 years agoWith no operand, 'tail -f' now silently ignores the '-f'
Paul Eggert [Sat, 1 Jul 2006 23:53:05 +0000 (23:53 +0000)]
With no operand, 'tail -f' now silently ignores the '-f'
only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.

18 years ago(f-pipe-1): Renamed from f-1.
Paul Eggert [Sat, 1 Jul 2006 23:50:46 +0000 (23:50 +0000)]
(f-pipe-1): Renamed from f-1.
(test_vector): Set POSIXLY_CORRECT for the f-pipe-* tests.

18 years ago(main): With no operand, 'tail -f' now silently ignores the '-f'
Paul Eggert [Sat, 1 Jul 2006 23:50:15 +0000 (23:50 +0000)]
(main): With no operand, 'tail -f' now silently ignores the '-f'
only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.

18 years ago(tail invocation): With no operand, 'tail -f' now
Paul Eggert [Sat, 1 Jul 2006 23:49:46 +0000 (23:49 +0000)]
(tail invocation): With no operand, 'tail -f' now
silently ignores the '-f' only if standard input is a FIFO or pipe
and POSIXLY_CORRECT is set.

18 years ago* src/ln.c (do_link): Use new, shorter URL, for ag-review link.
Jim Meyering [Sat, 1 Jul 2006 07:04:52 +0000 (07:04 +0000)]
* src/ln.c (do_link): Use new, shorter URL, for ag-review link.

18 years agoAdd ^lib/xstrtold\.c$, so make distcheck passes once again.
Jim Meyering [Sat, 1 Jul 2006 06:50:30 +0000 (06:50 +0000)]
Add ^lib/xstrtold\.c$, so make distcheck passes once again.

18 years ago*** empty log message ***
Jim Meyering [Sat, 1 Jul 2006 06:44:22 +0000 (06:44 +0000)]
*** empty log message ***

18 years agoseq defaults to a minimal fixed point format that does not lose
Paul Eggert [Sat, 1 Jul 2006 00:11:23 +0000 (00:11 +0000)]
seq defaults to a minimal fixed point format that does not lose
information if seq's operands are all fixed point decimal numbers.
You no longer need the `-f%.f' in `seq -f%.f 1048575 1024 1050623',
for example, since the default format now has the same effect.

seq now lets you use %a, %A, %E, %F, and %G formats.

seq now uses long double internally rather than double.

18 years ago(seq invocation): seq now uses long double
Paul Eggert [Sat, 1 Jul 2006 00:10:21 +0000 (00:10 +0000)]
(seq invocation): seq now uses long double
internally rather than double.  It now defaults to a minimal fixed
point format if possible.  It lets you use %a, %A, %E, %F, %G.
Don't assume printf doesn't work for numbers that fit in 64 but
not 32 bits; typically they work these days.  Improve discussion
of large integers and update the rounding-error numbers.

18 years ago(XSTRTOD, DOUBLE): New macros, so that we can support
Paul Eggert [Sat, 1 Jul 2006 00:09:56 +0000 (00:09 +0000)]
(XSTRTOD, DOUBLE): New macros, so that we can support
both double and long double versions.
(XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.

18 years ago(xstrtold): New decl.
Paul Eggert [Sat, 1 Jul 2006 00:09:22 +0000 (00:09 +0000)]
(xstrtold): New decl.

18 years ago(gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
Paul Eggert [Sat, 1 Jul 2006 00:08:56 +0000 (00:08 +0000)]
(gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
want to require the building of c-strtod.o.

18 years ago(cu_LIB_CHECK): Remuve SEQ_LIBM, since seq no longer
Paul Eggert [Sat, 1 Jul 2006 00:08:31 +0000 (00:08 +0000)]
(cu_LIB_CHECK): Remuve SEQ_LIBM, since seq no longer
needs -lm directly.

18 years ago(gl_PREREQ): Require gl_C_STRTOD and gl_XSTRTOLD.
Paul Eggert [Sat, 1 Jul 2006 00:08:05 +0000 (00:08 +0000)]
(gl_PREREQ): Require gl_C_STRTOD and gl_XSTRTOLD.

18 years ago(gl_XSTRTOLD): New macro.
Paul Eggert [Sat, 1 Jul 2006 00:07:48 +0000 (00:07 +0000)]
(gl_XSTRTOLD): New macro.

18 years ago(seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB).
Paul Eggert [Sat, 1 Jul 2006 00:07:26 +0000 (00:07 +0000)]
(seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB).

18 years agoDon't include <math.h> or <xstrtol.h>; no longer needed.
Paul Eggert [Sat, 1 Jul 2006 00:07:06 +0000 (00:07 +0000)]
Don't include <math.h> or <xstrtol.h>; no longer needed.
(isfinite) [!defined isfinite]: New macro.
(separator, terminator): Now points to const.
(first, step, last): Remove.
(usage): Update to match new behavior.
(struct operand, operand): New type.
(scan_arg): Renamed from scan_double_arg, since we no longer use double.
All uses changed.
Compute and return a value of type operand, not double.
(long_double_format): Renamed from valid_format, and now returns a
new format with an "L" added if needed, if the original format was
valid.  Allow %a, %A, %E, %F, and %G formats.
(print_numbers): Take numeric values as args rather than from globals.
Print long double, not double.
(get_width_format): Remove.
(get_default_format): New function.
(main): Implement new way of calculating default format.
Don't worry about locale's representation of the decimal point, since
the arguments are always processed in the C locale.

18 years ago(neg-2): Adjust to new default format.
Paul Eggert [Sat, 1 Jul 2006 00:06:35 +0000 (00:06 +0000)]
(neg-2): Adjust to new default format.
(eq-wid-1, eq-wid-2): Resurrect these tests, since the new
implementation should do the right thing.

18 years agoInitial revision.
Paul Eggert [Sat, 1 Jul 2006 00:06:11 +0000 (00:06 +0000)]
Initial revision.

18 years ago* tests/stty/basic-1: Work around an intermittent test failure
Jim Meyering [Fri, 30 Jun 2006 10:31:42 +0000 (10:31 +0000)]
* tests/stty/basic-1: Work around an intermittent test failure
on HP-UX 11.11.  Report and analysis from Bob Proulx.
http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7475

18 years agoFrom Derek R. Price:
Jim Meyering [Thu, 29 Jun 2006 21:45:51 +0000 (21:45 +0000)]
From Derek R. Price:
* lib/strftime.c: Assume strftime exists.
* m4/strftime.m4: Don't call AC_FUNC_STRFTIME.

18 years ago* src/sort.c (main): Support obsolete usages like "sort +1 -2" even when
Paul Eggert [Wed, 28 Jun 2006 23:51:13 +0000 (23:51 +0000)]
* src/sort.c (main): Support obsolete usages like "sort +1 -2" even when
conforming to POSIX 1003.1-2001, since this is a pure extension to
POSIX.

18 years ago* coreutils.texi (sort invocation): 'sort +1 -2' is now supported
Paul Eggert [Wed, 28 Jun 2006 23:50:40 +0000 (23:50 +0000)]
* coreutils.texi (sort invocation): 'sort +1 -2' is now supported
even when conforming to POSIX 1003.1-2001.

18 years ago(sort invocation): 'sort +1 -2' is now supported
Paul Eggert [Wed, 28 Jun 2006 23:50:21 +0000 (23:50 +0000)]
(sort invocation): 'sort +1 -2' is now supported
even when conforming to POSIX 1003.1-2001, since this is a pure
extension to POSIX.

18 years agoSupport obsolete usages like "sort +1 -2" even when conforming to
Paul Eggert [Wed, 28 Jun 2006 23:49:58 +0000 (23:49 +0000)]
Support obsolete usages like "sort +1 -2" even when conforming to
POSIX 1003.1-2001.

18 years ago(CLOSEDIR): Remove. All uses changed to closedir.
Paul Eggert [Wed, 28 Jun 2006 22:24:54 +0000 (22:24 +0000)]
(CLOSEDIR): Remove.  All uses changed to closedir.

18 years ago* savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
Paul Eggert [Wed, 28 Jun 2006 22:24:14 +0000 (22:24 +0000)]
* savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.

18 years ago* src/system.h (CLOSEDIR): Remove. All uses changed to closedir.
Paul Eggert [Wed, 28 Jun 2006 22:21:48 +0000 (22:21 +0000)]
* src/system.h (CLOSEDIR): Remove.  All uses changed to closedir.

18 years agoFix attribution again.
Paul Eggert [Wed, 28 Jun 2006 22:04:56 +0000 (22:04 +0000)]
Fix attribution again.

18 years agoFix attribution for last patch.
Paul Eggert [Wed, 28 Jun 2006 22:04:12 +0000 (22:04 +0000)]
Fix attribution for last patch.

18 years agoDon't require AC_C_CONST, since it's obsolete.
Paul Eggert [Wed, 28 Jun 2006 22:00:33 +0000 (22:00 +0000)]
Don't require AC_C_CONST, since it's obsolete.
Require Autoconf 2.60.

18 years ago(gl_FUNC_GNU_STRFTIME): Don't require AC_C_CONST, since it's obsolete.
Paul Eggert [Wed, 28 Jun 2006 22:00:13 +0000 (22:00 +0000)]
(gl_FUNC_GNU_STRFTIME): Don't require AC_C_CONST, since it's obsolete.

18 years ago(_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since it's obsolete.
Paul Eggert [Wed, 28 Jun 2006 21:59:41 +0000 (21:59 +0000)]
(_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since it's obsolete.

18 years ago(gl_CHECK_ALL_TYPES): Don't require AC_C_CONST, since it's obsolete.
Paul Eggert [Wed, 28 Jun 2006 21:59:07 +0000 (21:59 +0000)]
(gl_CHECK_ALL_TYPES): Don't require AC_C_CONST, since it's obsolete.

18 years ago* src/c99-to-c89.diff: Regenerate, to remove fuzz.
Jim Meyering [Wed, 28 Jun 2006 07:01:42 +0000 (07:01 +0000)]
* src/c99-to-c89.diff: Regenerate, to remove fuzz.

18 years ago* tests/mv/i-link-no: Work around HP-UX /bin/sh tracing problem
Jim Meyering [Wed, 28 Jun 2006 06:51:06 +0000 (06:51 +0000)]
* tests/mv/i-link-no: Work around HP-UX /bin/sh tracing problem
(set -x when VERBOSE=yes) when stderr is redirected before stdout
causing shell tracing of the stdout redirection to be written to
the stderr file.  Avoid problem and test failure on HP-UX by
redirecting stderr last.
* tests/dd/unblock-sync: Order shell file redirections for
stderr and stdout in the common style.
tests/acl: Likewise.

18 years ago.PHONY: sc_tight_scope
Jim Meyering [Tue, 27 Jun 2006 21:22:15 +0000 (21:22 +0000)]
.PHONY: sc_tight_scope

18 years ago* coreutils.texi (wc invocation): Remove ./ prefix from example.
Jim Meyering [Tue, 27 Jun 2006 20:26:12 +0000 (20:26 +0000)]
* coreutils.texi (wc invocation): Remove ./ prefix from example.
From Padraig Brady.

18 years ago* tests/misc/cat-proc: Try to avoid any spurious numeric
Jim Meyering [Tue, 27 Jun 2006 18:43:58 +0000 (18:43 +0000)]
* tests/misc/cat-proc: Try to avoid any spurious numeric
differences in frequently-changing /proc/cpuinfo.
Reported by Nelson Beebe.

18 years ago* coreutils.texi (wc invocation): Spell out `--files0-from' in
Jim Meyering [Mon, 26 Jun 2006 15:34:19 +0000 (15:34 +0000)]
* coreutils.texi (wc invocation): Spell out `--files0-from' in
the example. Suggestion from Bob Proulx.

18 years agoAttempt rmdir (actually, unlinkat-with-AT_REMOVEDIR) upon any
Jim Meyering [Mon, 26 Jun 2006 13:29:48 +0000 (13:29 +0000)]
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.

18 years ago* NEWS: rm no longer fails to remove an empty, unreadable directory
Jim Meyering [Mon, 26 Jun 2006 13:02:01 +0000 (13:02 +0000)]
* 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.

18 years ago* coreutils.texi (wc invocation): Document new --files0-from option.
Jim Meyering [Mon, 26 Jun 2006 10:33:09 +0000 (10:33 +0000)]
* coreutils.texi (wc invocation): Document new --files0-from option.

18 years agonow, trunk passes tests on openbsd
Jim Meyering [Mon, 26 Jun 2006 09:12:35 +0000 (09:12 +0000)]
now, trunk passes tests on openbsd

18 years agoAvoid a segfault for wc --files0=- < /dev/null.
Jim Meyering [Mon, 26 Jun 2006 08:39:59 +0000 (08:39 +0000)]
Avoid a segfault for wc --files0=- < /dev/null.
* src/wc.c (compute_number_width): Return right away if nfiles == 0.

18 years agoremove wc --files0-from item
Jim Meyering [Sun, 25 Jun 2006 20:45:32 +0000 (20:45 +0000)]
remove wc --files0-from item

18 years agotweak grammar in comment
Jim Meyering [Sun, 25 Jun 2006 19:27:19 +0000 (19:27 +0000)]
tweak grammar in comment

18 years ago* NEWS: wc accepts a new option --files0-from=FILE, where FILE
Jim Meyering [Sun, 25 Jun 2006 18:26:09 +0000 (18:26 +0000)]
* 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.

18 years ago(sleep invocation): Document that accepting
Jim Meyering [Sun, 25 Jun 2006 06:55:07 +0000 (06:55 +0000)]
(sleep invocation): Document that accepting
multiple arguments and suffixes are extensions.
Reported by Dan Jacobson.

18 years ago* src/md5sum.c (DIGEST_BUFFER): Remove now-unused definitions.
Jim Meyering [Sat, 24 Jun 2006 05:31:41 +0000 (05:31 +0000)]
* src/md5sum.c (DIGEST_BUFFER): Remove now-unused definitions.

18 years ago* src/tee.c (tee_files): Rename from tee, to avoid conflict with
Jim Meyering [Thu, 22 Jun 2006 12:50:32 +0000 (12:50 +0000)]
* src/tee.c (tee_files): Rename from tee, to avoid conflict with
the function in glibc's <fcntl.h>.  Reported by Andreas Schwab.

18 years ago(openat): Use ?:, not if, to work around GCC bug 4210.
Paul Eggert [Tue, 20 Jun 2006 19:20:25 +0000 (19:20 +0000)]
(openat): Use ?:, not if, to work around GCC bug 4210.

18 years agofix typo in comment: s/nerrower/narrower/
Jim Meyering [Tue, 20 Jun 2006 10:19:40 +0000 (10:19 +0000)]
fix typo in comment: s/nerrower/narrower/

18 years ago(gl_IGNORE_UNUSED_LIBRARIES):
Paul Eggert [Tue, 20 Jun 2006 05:59:16 +0000 (05:59 +0000)]
(gl_IGNORE_UNUSED_LIBRARIES):
Use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
cc merely issues a bunch of annoying warnings for --as-needed
(this problem was reported by Bob Proulx).  Also, try linking with
-lm to detect a bug in binutils 2.16 (this problem was reported
by Ralf Wildenhues).

18 years ago*** empty log message ***
Jim Meyering [Mon, 19 Jun 2006 19:13:04 +0000 (19:13 +0000)]
*** empty log message ***

18 years agoApply this change from gnulib:
Jim Meyering [Mon, 19 Jun 2006 19:13:00 +0000 (19:13 +0000)]
Apply this change from gnulib:
2006-06-16  Eric Blake  <ebb9@byu.net>
* unsetenv.c [!defined errno]: Assume errno.h declares errno.

18 years ago(gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
Paul Eggert [Mon, 19 Jun 2006 07:19:00 +0000 (07:19 +0000)]
(gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
--as-needed option if available.

18 years ago* Makefile.cfg (local-checks-to-skip): Add changelog-check,
Jim Meyering [Sun, 18 Jun 2006 22:06:42 +0000 (22:06 +0000)]
* Makefile.cfg (local-checks-to-skip): Add changelog-check,
so this check is not run as part of "make distcheck".

18 years agoTest for a bug that causes glibc's getcwd to suffer a failed assertion.
Jim Meyering [Sun, 18 Jun 2006 21:52:03 +0000 (21:52 +0000)]
Test for a bug that causes glibc's getcwd to suffer a failed assertion.
* getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and macro.
* getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
also check for glibc-2.4's abort-inducing bug.

18 years ago*** empty log message ***
Jim Meyering [Sun, 18 Jun 2006 17:08:52 +0000 (17:08 +0000)]
*** empty log message ***

18 years agoFix typo (s/neq/ne/) in previous change.
Jim Meyering [Sun, 18 Jun 2006 17:08:50 +0000 (17:08 +0000)]
Fix typo (s/neq/ne/) in previous change.

18 years ago* getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
Jim Meyering [Sun, 18 Jun 2006 14:29:29 +0000 (14:29 +0000)]
* getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
Low-probability clean-up should be to use rmdir to get rid of
the just-created directory, not unlink.

18 years ago* ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
Jim Meyering [Sun, 18 Jun 2006 14:00:34 +0000 (14:00 +0000)]
* ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
configure fail, and request a bug report to inform us about it.
Add a comment that, barring reports to the contrary, in 2007 we'll
assume ftruncate is universally available.

18 years agomake error output a little clearer
Jim Meyering [Sun, 18 Jun 2006 06:31:25 +0000 (06:31 +0000)]
make error output a little clearer

18 years ago* tests/rm/inaccessible: Skip this test on systems without openat support.
Jim Meyering [Sat, 17 Jun 2006 17:46:33 +0000 (17:46 +0000)]
* tests/rm/inaccessible: Skip this test on systems without openat support.
Reported by Bob Proulx.

18 years ago.
Jim Meyering [Fri, 16 Jun 2006 09:57:36 +0000 (09:57 +0000)]
.

18 years agoadd these two files (a and b) so that I can remove them -- in the eyes of cvsps
Jim Meyering [Fri, 16 Jun 2006 09:57:11 +0000 (09:57 +0000)]
add these two files (a and b) so that I can remove them -- in the eyes of cvsps

18 years agoremove the files once and for all, so that tools like cvsps (and even 'cvs update...
Jim Meyering [Fri, 16 Jun 2006 09:54:29 +0000 (09:54 +0000)]
remove the files once and for all, so that tools like cvsps (and even 'cvs update') don't think they're still around

18 years agoImprove permission checks to handle
Paul Eggert [Thu, 15 Jun 2006 17:35:00 +0000 (17:35 +0000)]
Improve permission checks to handle
running mkdir test in set-gid directories.

18 years agotests/du/basic: Revamp not to hard-code file system block sizes.
Jim Meyering [Wed, 14 Jun 2006 08:45:33 +0000 (08:45 +0000)]
tests/du/basic: Revamp not to hard-code file system block sizes.

18 years agotests/du/Makefile.am (TESTS_ENVIRONMENT): Pass $(PERL), for the files0-from test.
Jim Meyering [Mon, 12 Jun 2006 20:35:55 +0000 (20:35 +0000)]
tests/du/Makefile.am (TESTS_ENVIRONMENT): Pass $(PERL), for the files0-from test.

18 years ago(check-texinfo): Use $(_W) and $(W_) instead of
Paul Eggert [Mon, 12 Jun 2006 20:10:25 +0000 (20:10 +0000)]
(check-texinfo): Use $(_W) and $(W_) instead of
assuming grep -w (which is not portable).

18 years agoMakefile.am (EXTRA_DIST): Add .gitignore.
Jim Meyering [Sun, 11 Jun 2006 10:03:09 +0000 (10:03 +0000)]
Makefile.am (EXTRA_DIST): Add .gitignore.

18 years ago*** empty log message ***
Jim Meyering [Sun, 11 Jun 2006 08:43:28 +0000 (08:43 +0000)]
*** empty log message ***

18 years agoSetting TIME_STYLE=long-iso in the environment would make the
Jim Meyering [Sun, 11 Jun 2006 08:12:37 +0000 (08:12 +0000)]
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.

18 years ago* tests/cp/same-file: Execute 'ls' in the C locale, so that it
Paul Eggert [Sun, 11 Jun 2006 07:59:16 +0000 (07:59 +0000)]
* 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>.

18 years ago(__attribute__): Don't define if already defined.
Paul Eggert [Sun, 11 Jun 2006 07:11:31 +0000 (07:11 +0000)]
(__attribute__): Don't define if already defined.

18 years agoMention the AIX-strndup-bug vs. dircolors workaround.
Jim Meyering [Sat, 10 Jun 2006 09:41:39 +0000 (09:41 +0000)]
Mention the AIX-strndup-bug vs. dircolors workaround.

18 years agoApply this change from gnulib:
Jim Meyering [Sat, 10 Jun 2006 09:10:12 +0000 (09:10 +0000)]
Apply this change from gnulib:

2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
    Bruno Haible  <bruno@clisp.org>

* strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.

18 years agoApply this change from gnulib:
Jim Meyering [Sat, 10 Jun 2006 09:01:41 +0000 (09:01 +0000)]
Apply this change from gnulib:

2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
    Bruno Haible  <bruno@clisp.org>

* strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
check for the declaration of strnlen and a run test that exposes the
AIX 5.1 strnlen bug.  In the failure case, #define strndup to
rpl_strndup.

18 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jun 2006 07:58:09 +0000 (07:58 +0000)]
*** empty log message ***

18 years agoRequire a "Version N.M" line at the top of the ChangeLog
Jim Meyering [Sat, 10 Jun 2006 07:58:05 +0000 (07:58 +0000)]
Require a "Version N.M" line at the top of the ChangeLog
file only when making the actual release, not when running
"make distcheck".

(maintainer-distcheck): Don't depend on
changelog-check.
(alpha beta major): Depend on it here, instead.

18 years agoEnsure that cat works with any of the options, -A -v -e -E -T,
Jim Meyering [Thu, 8 Jun 2006 20:13:37 +0000 (20:13 +0000)]
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.

18 years ago(eval4): Detect overflow properly when multiplying INTMAX_MIN * -1.
Paul Eggert [Thu, 8 Jun 2006 02:53:25 +0000 (02:53 +0000)]
(eval4): Detect overflow properly when multiplying INTMAX_MIN * -1.

18 years agoDon't claim x86 behavior is erroneous in a comment.
Paul Eggert [Wed, 7 Jun 2006 05:58:57 +0000 (05:58 +0000)]
Don't claim x86 behavior is erroneous in a comment.

18 years agoThe 'expr' command now detects and reports integer overflow.
Paul Eggert [Wed, 7 Jun 2006 05:52:41 +0000 (05:52 +0000)]
The 'expr' command now detects and reports integer overflow.

18 years ago(integer_overflow): New function.
Paul Eggert [Wed, 7 Jun 2006 05:52:27 +0000 (05:52 +0000)]
(integer_overflow): New function.
(eval4, eval3): Check for integer overflow.