platform/upstream/coreutils.git
18 years ago*** empty log message ***
Jim Meyering [Tue, 24 Jan 2006 10:36:18 +0000 (10:36 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Tue, 24 Jan 2006 10:32:40 +0000 (10:32 +0000)]
*** empty log message ***

18 years ago(tail_forever): Don't exit-nonzero when an attempt
Jim Meyering [Tue, 24 Jan 2006 10:32:32 +0000 (10:32 +0000)]
(tail_forever): Don't exit-nonzero when an attempt
to put a regular file in O_NONBLOCK mode fails with EPERM.
That happens on Linux when using tail -f on a file with the
append-only attribute.  Reported by Dean Gaudet.  For details,
see http://savannah.gnu.org/bugs/?func=detailitem&item_id=15473.

18 years agoImport from gnulib.
Paul Eggert [Tue, 24 Jan 2006 07:52:03 +0000 (07:52 +0000)]
Import from gnulib.

18 years ago*** empty log message ***
Jim Meyering [Mon, 23 Jan 2006 20:13:44 +0000 (20:13 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Mon, 23 Jan 2006 15:06:42 +0000 (15:06 +0000)]
*** empty log message ***

18 years agoRemove unused definition of N_.
Jim Meyering [Mon, 23 Jan 2006 15:06:37 +0000 (15:06 +0000)]
Remove unused definition of N_.

18 years ago.
Jim Meyering [Sun, 22 Jan 2006 08:53:59 +0000 (08:53 +0000)]
.

18 years ago(quotearg_buffer_restyled): Add "default: break;"
Paul Eggert [Sun, 22 Jan 2006 08:46:54 +0000 (08:46 +0000)]
(quotearg_buffer_restyled): Add "default: break;"
to pacify gcc -Wswitch-default.

18 years ago.
Jim Meyering [Sat, 21 Jan 2006 11:17:19 +0000 (11:17 +0000)]
.

18 years ago*** empty log message ***
Jim Meyering [Sat, 21 Jan 2006 11:16:46 +0000 (11:16 +0000)]
*** empty log message ***

18 years agoMention fts-related improvements and bug fixes.
Jim Meyering [Sat, 21 Jan 2006 11:16:43 +0000 (11:16 +0000)]
Mention fts-related improvements and bug fixes.

18 years ago* lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
Paul Eggert [Sat, 21 Jan 2006 07:59:38 +0000 (07:59 +0000)]
* lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
rather than -Xlinker -z -Xlinker ignore, as it's more portable.

18 years ago(gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
Paul Eggert [Sat, 21 Jan 2006 07:59:22 +0000 (07:59 +0000)]
(gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
rather than -Xlinker -z -Xlinker ignore, as it's more portable.

18 years ago*** empty log message ***
Jim Meyering [Thu, 19 Jan 2006 20:58:26 +0000 (20:58 +0000)]
*** empty log message ***

18 years ago(pfx-1, pfx-2): New tests, to demonstrate the bug
Jim Meyering [Thu, 19 Jan 2006 20:58:22 +0000 (20:58 +0000)]
(pfx-1, pfx-2): New tests, to demonstrate the bug
reported as http://bugs.debian.org/147577.  Forwarded by Thomas Hood.

18 years ago*** empty log message ***
Jim Meyering [Wed, 18 Jan 2006 06:29:21 +0000 (06:29 +0000)]
*** empty log message ***

18 years ago(TESTS): Add long-from-unreadable.
Jim Meyering [Wed, 18 Jan 2006 06:29:14 +0000 (06:29 +0000)]
(TESTS): Add long-from-unreadable.

18 years ago.
Jim Meyering [Tue, 17 Jan 2006 19:57:26 +0000 (19:57 +0000)]
.

18 years ago(openat_needs_fchdir): New function.
Jim Meyering [Tue, 17 Jan 2006 17:43:10 +0000 (17:43 +0000)]
(openat_needs_fchdir): New function.

18 years ago*** empty log message ***
Jim Meyering [Tue, 17 Jan 2006 17:42:57 +0000 (17:42 +0000)]
*** empty log message ***

18 years ago(openat_needs_fchdir): Declare it.
Jim Meyering [Tue, 17 Jan 2006 17:42:53 +0000 (17:42 +0000)]
(openat_needs_fchdir): Declare it.

18 years ago*** empty log message ***
Jim Meyering [Tue, 17 Jan 2006 17:27:32 +0000 (17:27 +0000)]
*** empty log message ***

18 years ago(gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
Jim Meyering [Tue, 17 Jan 2006 17:27:27 +0000 (17:27 +0000)]
(gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.

18 years ago*** empty log message ***
Jim Meyering [Tue, 17 Jan 2006 17:26:39 +0000 (17:26 +0000)]
*** empty log message ***

18 years agoNew test, to exercise one small corner of fts.c.
Jim Meyering [Tue, 17 Jan 2006 17:26:32 +0000 (17:26 +0000)]
New test, to exercise one small corner of fts.c.

18 years agoInclude "openat.h".
Jim Meyering [Tue, 17 Jan 2006 17:26:15 +0000 (17:26 +0000)]
Include "openat.h".
Don't include "lchown.h".
(restricted_chown): Accept a new parameter, CWD_FD, and use it in
calling openat, lchownat, chownat, rather than open, lchown, chown.
Update caller.

18 years agoNow that fts no longer changes the current working directory, adjust
Jim Meyering [Tue, 17 Jan 2006 17:25:42 +0000 (17:25 +0000)]
Now that fts no longer changes the current working directory, adjust
its clients accordingly -- note that du.c uses fts but doesn't need
any adjustment, since it doesn't operate on the actual files,
but rather just uses the stat buffers provided by fts.

Include "openat.h".
(process_file): Use chmodat (fts->fts_cwd_fd,... in place of chmod (...

18 years ago*** empty log message ***
Jim Meyering [Tue, 17 Jan 2006 17:24:38 +0000 (17:24 +0000)]
*** empty log message ***

18 years ago[struct FTS] (fts_cwd_fd): New member.
Jim Meyering [Tue, 17 Jan 2006 17:24:29 +0000 (17:24 +0000)]
[struct FTS] (fts_cwd_fd): New member.
[struct FTS] (fts_rft): Remove now-unused member.
[struct FTS] (fts_cycle.state): Improve comment.

18 years agoRewrite fts.c not to change the current working directory,
Jim Meyering [Tue, 17 Jan 2006 17:24:14 +0000 (17:24 +0000)]
Rewrite fts.c not to change the current working directory,
by using openat, fstatat, fdopendir, etc..

[! _LIBC]: Include "openat.h" and "unistd--.h".
(HAVE_OPENAT_SUPPORT): Define.
[_LIBC] (fchdir): Don't undef or define; no longer used.
(FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
Now, this `function' always succeeds, and consumes its file descriptor
parameter -- so callers must not close such FDs.  Update callers.
(diropen_fd, opendirat, cwd_advance_fd): New functions.
(diropen): Add parameter, SP.  Adjust all callers.
Implement using diropen_fd, rather than open.
(fts_open): Initialize new member, fts_cwd_fd.
Remove fts_rft-setting code.
(fts_close): Close fts_cwd_fd, if necessary.
(__opendir2): Define in terms of opendir or opendirat,
depending on whether the FST_NOCHDIR flag is set.
(fts_build): Since fts_safe_changedir consumes its FD, and since
this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
and close the dup'd file descriptor upon failure.
(fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
(fts_safe_changedir): Tweak semantics to reflect that this function
now calls cwd_advance_fd and hence consumes its FD argument.

18 years ago(gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as it's not portable
Paul Eggert [Tue, 17 Jan 2006 07:21:48 +0000 (07:21 +0000)]
(gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as it's not portable
and it doesn't work with cross-compiles.  Fix missing-$ typo in 'test
"gl_cv_ignore_unused_libraries" ...' that prevented -zignore from being
used with Sun's C compiler.

18 years ago*** empty log message ***
Jim Meyering [Fri, 13 Jan 2006 13:55:53 +0000 (13:55 +0000)]
*** empty log message ***

18 years ago(SUBDIRS): Add comments discouraging the
Jim Meyering [Fri, 13 Jan 2006 13:55:49 +0000 (13:55 +0000)]
(SUBDIRS): Add comments discouraging the
addition of new directories under tests/.

18 years ago*** empty log message ***
Jim Meyering [Fri, 13 Jan 2006 13:38:45 +0000 (13:38 +0000)]
*** empty log message ***

18 years agoRedirect stdin to /dev/null. Otherwise, FreeBSD 5.0's getfacl would hang.
Jim Meyering [Fri, 13 Jan 2006 13:38:39 +0000 (13:38 +0000)]
Redirect stdin to /dev/null.  Otherwise, FreeBSD 5.0's getfacl would hang.

18 years ago*** empty log message ***
Jim Meyering [Fri, 13 Jan 2006 13:35:31 +0000 (13:35 +0000)]
*** empty log message ***

18 years ago(AC_FUNC_GETMNTENT): Invoke AC_CHECK_FUNCS(getmntent)
Jim Meyering [Fri, 13 Jan 2006 13:35:26 +0000 (13:35 +0000)]
(AC_FUNC_GETMNTENT): Invoke AC_CHECK_FUNCS(getmntent)
unconditionally so that tests of $ac_cv_func_getmntent (e.g., in
gl_LIST_MOUNTED_FILE_SYSTEMS) need not double-quote uses that variable,
to accommodate the rare case in which getmntent is available in none
of the libraries checked.  This happens at least on FreeBSD 5.0.

18 years ago*** empty log message ***
Jim Meyering [Thu, 12 Jan 2006 18:08:42 +0000 (18:08 +0000)]
*** empty log message ***

18 years agoAdjust not to hard-code the expected
Jim Meyering [Thu, 12 Jan 2006 18:08:18 +0000 (18:08 +0000)]
Adjust not to hard-code the expected
diagnostic corresponding to ELOOP.  Solaris' diagnostic differs
from that of Linux/libc.  Reported by Paul Eggert.

18 years agoCreate final file *after* the loop.
Jim Meyering [Thu, 12 Jan 2006 14:45:15 +0000 (14:45 +0000)]
Create final file *after* the loop.

18 years agoCreate file at end of symlink chain.
Jim Meyering [Thu, 12 Jan 2006 14:31:02 +0000 (14:31 +0000)]
Create file at end of symlink chain.

18 years agoskip the test on a system that can handle this many symlinks in a file name,
Jim Meyering [Thu, 12 Jan 2006 09:25:33 +0000 (09:25 +0000)]
skip the test on a system that can handle this many symlinks in a file name,

18 years ago.
Jim Meyering [Thu, 12 Jan 2006 08:40:34 +0000 (08:40 +0000)]
.

18 years agowhoops. traps were commented out.
Jim Meyering [Thu, 12 Jan 2006 08:00:17 +0000 (08:00 +0000)]
whoops.  traps were commented out.

18 years ago*** empty log message ***
Jim Meyering [Thu, 12 Jan 2006 07:55:40 +0000 (07:55 +0000)]
*** empty log message ***

18 years agoRemove useless parentheses in cpp directives, so that
Jim Meyering [Thu, 12 Jan 2006 07:55:36 +0000 (07:55 +0000)]
Remove useless parentheses in cpp directives, so that
this file passes coreutils' `make syntax-check' tests.

18 years agofix typo: s/stdint.h.m4/stdint.m4/
Jim Meyering [Thu, 12 Jan 2006 07:48:36 +0000 (07:48 +0000)]
fix typo: s/stdint.h.m4/stdint.m4/

18 years agofrom gnulib
Jim Meyering [Thu, 12 Jan 2006 07:45:26 +0000 (07:45 +0000)]
from gnulib

18 years ago*** empty log message ***
Jim Meyering [Thu, 12 Jan 2006 07:22:36 +0000 (07:22 +0000)]
*** empty log message ***

18 years ago(TESTS): Add test.
Jim Meyering [Thu, 12 Jan 2006 07:22:18 +0000 (07:22 +0000)]
(TESTS): Add test.

18 years agoNew file, with a test for one of the
Jim Meyering [Thu, 12 Jan 2006 07:22:00 +0000 (07:22 +0000)]
New file, with a test for one of the
bugs fixed by yesterday's test.c changes.

18 years agoImport from gnulib.
Paul Eggert [Thu, 12 Jan 2006 07:21:34 +0000 (07:21 +0000)]
Import from gnulib.

18 years agoAdd stdint_.h.
Paul Eggert [Thu, 12 Jan 2006 07:21:19 +0000 (07:21 +0000)]
Add stdint_.h.

18 years agoAdjust to md5 changes in gnulib, and make sha1 etc. more consistent
Paul Eggert [Thu, 12 Jan 2006 07:19:50 +0000 (07:19 +0000)]
Adjust to md5 changes in gnulib, and make sha1 etc. more consistent
with md5.

18 years ago(gl_PREREQ): Require gl_STDINT_H.
Paul Eggert [Thu, 12 Jan 2006 07:19:00 +0000 (07:19 +0000)]
(gl_PREREQ): Require gl_STDINT_H.

18 years ago(struct sha512_ctx): Use a word buffer, not a byte buffer, so that we
Paul Eggert [Thu, 12 Jan 2006 07:18:39 +0000 (07:18 +0000)]
(struct sha512_ctx): Use a word buffer, not a byte buffer, so that we
don't need to worry about alignment.

18 years ago(struct sha256_ctx): Use a word buffer, not a byte buffer, so that we
Paul Eggert [Thu, 12 Jan 2006 07:18:13 +0000 (07:18 +0000)]
(struct sha256_ctx): Use a word buffer, not a byte buffer, so that we
 don't need to worry about alignment.  All uses changed.

18 years ago(struct sha1_ctx): Use a word buffer, not a byte buffer,
Paul Eggert [Thu, 12 Jan 2006 07:17:51 +0000 (07:17 +0000)]
(struct sha1_ctx): Use a word buffer, not a byte buffer,
so that we don't need to worry about alignment.  All uses changed.
This merges the 2005-10-28 md5 change into sha1.

18 years agoFix commentary to match md5 better. Adjust to .h file changes.
Paul Eggert [Thu, 12 Jan 2006 07:17:25 +0000 (07:17 +0000)]
Fix commentary to match md5 better.  Adjust to .h file changes.

18 years ago(__attribute__): Remove; unused.
Paul Eggert [Thu, 12 Jan 2006 07:16:33 +0000 (07:16 +0000)]
(__attribute__): Remove; unused.

18 years agoFix commentary typos.
Paul Eggert [Thu, 12 Jan 2006 07:16:21 +0000 (07:16 +0000)]
Fix commentary typos.
(alignof, UNALIGNED_P): No need for a GCC-specific version.

18 years ago(BUILT_SOURCES, EXTRA_DIST, stdint.h, MOSTLYCLEANFILES):
Paul Eggert [Thu, 12 Jan 2006 07:16:07 +0000 (07:16 +0000)]
(BUILT_SOURCES, EXTRA_DIST, stdint.h, MOSTLYCLEANFILES):
Add gnulib snippet.

18 years agoAdd stdint.h.
Paul Eggert [Thu, 12 Jan 2006 07:15:48 +0000 (07:15 +0000)]
Add stdint.h.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 22:11:49 +0000 (22:11 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 21:32:56 +0000 (21:32 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 21:31:41 +0000 (21:31 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 21:29:20 +0000 (21:29 +0000)]
*** empty log message ***

18 years agoTest for today's fts.c bug fix.
Jim Meyering [Wed, 11 Jan 2006 21:29:06 +0000 (21:29 +0000)]
Test for today's fts.c bug fix.

18 years ago(TESTS): Add long-sloop.
Jim Meyering [Wed, 11 Jan 2006 21:21:52 +0000 (21:21 +0000)]
(TESTS): Add long-sloop.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 21:00:42 +0000 (21:00 +0000)]
*** empty log message ***

18 years ago(fts_stat): When following a symlink-to-directory,
Jim Meyering [Wed, 11 Jan 2006 21:00:36 +0000 (21:00 +0000)]
(fts_stat): When following a symlink-to-directory,
don't interpret all stat-fails+lstat-succeeds as indicating a
dangling symlink.  That can also happen at least for ELOOP.
The fix: return FTS_SLNONE only when the stat errno is ENOENT.

18 years agoMark Joerg Sonnenberger's change as tiny.
Jim Meyering [Wed, 11 Jan 2006 20:32:42 +0000 (20:32 +0000)]
Mark Joerg Sonnenberger's change as tiny.

18 years ago* src/test.c (test_syntax_error): Append a newline.
Paul Eggert [Wed, 11 Jan 2006 19:30:58 +0000 (19:30 +0000)]
* src/test.c (test_syntax_error): Append a newline.

18 years ago(test_syntax_error): Append a newline. All callers
Paul Eggert [Wed, 11 Jan 2006 19:29:47 +0000 (19:29 +0000)]
(test_syntax_error): Append a newline.  All callers
changed, except for the ones that didn't already append a newline.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 16:30:08 +0000 (16:30 +0000)]
*** empty log message ***

18 years ago(fts_open): Put new (2006-01-04) maxarglen declaration and uses in their
Jim Meyering [Wed, 11 Jan 2006 16:29:35 +0000 (16:29 +0000)]
(fts_open): Put new (2006-01-04) maxarglen declaration and uses in their
own block, so pre-c99 compilers don't object.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 16:19:06 +0000 (16:19 +0000)]
*** empty log message ***

18 years ago[!_LIBC]: Include "fcntl--.h", to map open to open_safer.
Jim Meyering [Wed, 11 Jan 2006 16:18:39 +0000 (16:18 +0000)]
[!_LIBC]: Include "fcntl--.h", to map open to open_safer.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 15:25:36 +0000 (15:25 +0000)]
*** empty log message ***

18 years ago(gl_FUNC_OPENAT): Require and compile fchmodat.c.
Jim Meyering [Wed, 11 Jan 2006 15:25:30 +0000 (15:25 +0000)]
(gl_FUNC_OPENAT): Require and compile fchmodat.c.
Check for the lchmod function.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 13:33:03 +0000 (13:33 +0000)]
*** empty log message ***

18 years ago(fchmodat, fchownat): Declare.
Jim Meyering [Wed, 11 Jan 2006 13:32:47 +0000 (13:32 +0000)]
(fchmodat, fchownat): Declare.
(chmodat, lchmodat): Define convenience functions.
(chownat, lchownat): Likewise.

18 years ago(fchownat): New function.
Jim Meyering [Wed, 11 Jan 2006 13:32:03 +0000 (13:32 +0000)]
(fchownat): New function.

18 years ago(fchmodat): New file and function.
Jim Meyering [Wed, 11 Jan 2006 13:30:31 +0000 (13:30 +0000)]
(fchmodat): New file and function.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 10:07:22 +0000 (10:07 +0000)]
*** empty log message ***

18 years ago(OP): Remove useless space-before-TAB.
Jim Meyering [Wed, 11 Jan 2006 10:07:13 +0000 (10:07 +0000)]
(OP): Remove useless space-before-TAB.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 08:22:43 +0000 (08:22 +0000)]
*** empty log message ***

18 years ago(X2NREALLOC): Now that verify_true is no longer void,
Jim Meyering [Wed, 11 Jan 2006 08:22:34 +0000 (08:22 +0000)]
(X2NREALLOC): Now that verify_true is no longer void,
cast its result to void, to avoid gcc's warning that
``left-hand operand of comma expression has no effect''.
(DECIMAL_DIGIT_ACCUMULATE, X2REALLOC): Likewise.

18 years agoSync from gnulib.
Paul Eggert [Wed, 11 Jan 2006 07:39:40 +0000 (07:39 +0000)]
Sync from gnulib.

18 years ago*** empty log message ***
Jim Meyering [Tue, 10 Jan 2006 21:48:19 +0000 (21:48 +0000)]
*** empty log message ***

18 years agoSync from gnulib.
Paul Eggert [Tue, 10 Jan 2006 20:13:35 +0000 (20:13 +0000)]
Sync from gnulib.

18 years agoUpdate copyright year.
Paul Eggert [Tue, 10 Jan 2006 20:05:53 +0000 (20:05 +0000)]
Update copyright year.

18 years agoRemove stray "lib/"s in previous change.
Paul Eggert [Tue, 10 Jan 2006 20:01:34 +0000 (20:01 +0000)]
Remove stray "lib/"s in previous change.

18 years agoSync from gnulib.
Paul Eggert [Tue, 10 Jan 2006 17:47:56 +0000 (17:47 +0000)]
Sync from gnulib.

18 years ago*** empty log message ***
Jim Meyering [Tue, 10 Jan 2006 11:55:20 +0000 (11:55 +0000)]
*** empty log message ***

18 years agoAvoid the double-free (first in fts_read, second in fts_close) that
Jim Meyering [Tue, 10 Jan 2006 11:55:13 +0000 (11:55 +0000)]
Avoid the double-free (first in fts_read, second in fts_close) that
would occur when an `active' directory is made inaccessible (e.g.,
via chmod a-x) during a traversal.

(fts_read): After a failed fchdir, update sp->fts_cur
before returning.  Reproduce this failure by
mkdir -p a/b; cd a; chmod a-x . b
Reported by Stavros Passas.

18 years agoAdd a test for today's fts.c fix.
Jim Meyering [Tue, 10 Jan 2006 11:52:52 +0000 (11:52 +0000)]
Add a test for today's fts.c fix.

18 years ago*** empty log message ***
Jim Meyering [Tue, 10 Jan 2006 10:23:27 +0000 (10:23 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Tue, 10 Jan 2006 09:16:10 +0000 (09:16 +0000)]
*** empty log message ***