1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 18:19:00 +02:00
Commit Graph

23177 Commits

Author SHA1 Message Date
Jim Meyering c58e7ee1cc (main): Rename local, s/symlink_deref_bit/symlink_deref_bits/
and arrange for -D to set fts' FTS_PHYSICAL bit as well as
FTS_COMFOLLOW.  Spotted by Justin Pryzby.
2006-05-20 07:19:53 +00:00
Jim Meyering c11a92383d *** empty log message *** 2006-05-19 22:30:55 +00:00
Jim Meyering ccea9e8650 Merge changes from automake, retaining the ""--to...
kludge to placate overzealous `make distcheck' check.
2006-05-19 22:30:27 +00:00
Paul Eggert 86873e5082 Sync nanosleep from gnulib. 2006-05-19 18:03:25 +00:00
Jim Meyering 7e9a2a1429 *** empty log message *** 2006-05-19 12:36:36 +00:00
Jim Meyering 4e5f6a5b5e (main): Don't let -D, -L, or -P turn off the internal
FTS_TIGHT_CYCLE_CHECK directory traversal option.
Reported by Justin Pryzby in http://bugs.debian.org/367691
2006-05-19 12:36:18 +00:00
Jim Meyering 197f7d766e mention cp -p vs. no-/proc fix 2006-05-16 17:27:04 +00:00
Jim Meyering e06a5a5cc7 (usage): Correct description of -a: s/-dpR/-dpPR/. From Tomas Pospisek. 2006-05-15 20:19:02 +00:00
Jim Meyering 58f42eb607 *** empty log message *** 2006-05-15 20:18:49 +00:00
Jim Meyering db19f3df8b *** empty log message *** 2006-05-15 13:28:28 +00:00
Jim Meyering 212ffe61af (xfts_open): Always use FTS_CWDFD. 2006-05-15 13:28:24 +00:00
Jim Meyering 06918c9589 *** empty log message *** 2006-05-15 10:59:15 +00:00
Jim Meyering 63deb75831 Avoid the expense of an fstat, when possible.
(O_NOFOLLOW, STREQ): Define.
(diropen_fd): Remove function.  Merge it into sole caller...
(diropen): ...here.  Use O_NOFOLLOW when appropriate.
(fts_safe_changedir): Call fstat for dev/inode check, only if the
previous open/openat call may have opened the wrong directory.
2006-05-15 10:59:10 +00:00
Jim Meyering ad17714291 *** empty log message *** 2006-05-15 10:00:30 +00:00
Jim Meyering 7729ee5e68 Restore the parts of fts that were removed on 2006-01-17, so that
it's easier for legacy applications designed for the version
of fts in glibc or BSD to convert to this more robust version.
Add a new mode, FTS_CWDFD, by which to enable the improved
(openat- based -- aka no-chdir) semantics.

* fts_.h (FTS_CWDFD): Define.  Callers must use this fts_open
option to enable the more robust behavior.
(FTS_OPTIONMASK): Widen accordingly.
* fts.c: Restore removed code, reverting the default behavior.
2006-05-15 10:00:16 +00:00
Paul Eggert 48138763f0 (AC_HEADER_STDBOOL): Fix overly-picky
test for C99 conformance; (bool) 0.5 is an integer constant
expression, but (bool) -0.5 is not.  Problem reported by Fedor
Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
2006-05-15 03:17:08 +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 9f1c534949 Test two more cases. 2006-05-13 08:41:02 +00:00
Jim Meyering b54dfec827 update from gnulib 2006-05-12 07:18:08 +00:00
Jim Meyering 0e3dfb2439 *** empty log message *** 2006-05-11 19:44:47 +00:00
Jim Meyering 3b136eec7b (sha1_buffer): Correct comment: s/MD5/SHA1/. From James Lemley. 2006-05-11 19:44:42 +00:00
Jim Meyering 03b02874a7 . 2006-05-11 08:58:23 +00:00
Jim Meyering ccafe4292f Mention that:
mv -T DIR EMPTY_DIR no longer fails unconditionally
2006-05-11 08:57:45 +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 156459c2f5 mv -T DIR EMPTY_DIR no longer fails
(copy_internal): Don't manually prohibit a move where
the destination is an existing directory.  Sometimes doing that is
valid.  Let the rename system call enforce the rules.  That is
allowed only when the source is a directory and the destination
directory (to be replaced) is empty.  Reported by Eric Blake.
2006-05-11 08:55:04 +00:00
Jim Meyering 8ebce3d9a5 *** empty log message *** 2006-05-11 08:54:30 +00:00
Jim Meyering 54d36f3dc2 (TESTS): Add no-target-dir. 2006-05-11 08:54:23 +00:00
Jim Meyering b7c2ae47f0 ensure that mv did what it's supposed to 2006-05-11 08:18:34 +00:00
Jim Meyering 96a2e1be04 . 2006-05-11 07:53:25 +00:00
Jim Meyering c70ad7aa27 *** empty log message *** 2006-05-11 07:51:17 +00:00
Jim Meyering 6ccf57e3b9 (TESTS): Add atomic. 2006-05-11 07:51:05 +00:00
Jim Meyering 40b5d67c1f New file/test for yesterday's fix. 2006-05-11 07:50:55 +00:00
Jim Meyering f79fbe2212 *** empty log message *** 2006-05-11 07:33:10 +00:00
Jim Meyering f1d1ee9121 (copy_internal): Don't explicitly unlink the destination
when moving a symlink into the place of an existing non-directory.
Reported by Joshua Hudson.
2006-05-11 07:33:00 +00:00
Jim Meyering 029057a361 Avoid harmless `ambiguous redirect' diagnostic. 2006-05-11 07:29:53 +00:00
Jim Meyering 6dd69d3281 *** empty log message *** 2006-05-10 13:39:30 +00:00
Jim Meyering b8b7669b3e update from gnulib 2006-05-08 07:22:19 +00:00
Jim Meyering d4d3446bab (patch-check): Correct reversed sense of `test -s' test.
Work around the fact that patch always outputs `patching file ...'.
2006-05-07 17:46:57 +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 c8a85eda8c Adjust to reflect new offsets. 2006-05-07 17:20:49 +00:00
Jim Meyering f7e3e90916 mention the df fix of 2006-01-24 2006-05-07 15:53:25 +00:00
Jim Meyering 89745f895e mention the df improvement from 2006-01-24 2006-05-07 15:37:38 +00:00
Jim Meyering afbf453a82 *** empty log message *** 2006-05-06 21:09:35 +00:00
Jim Meyering a44d1cdd38 *** empty log message *** 2006-05-06 18:56:46 +00:00
Jim Meyering e0beb8aab5 mention the shred-segfault fix 2006-05-06 16:03:20 +00:00
Jim Meyering 23e6a454b4 remove stray stat-related line 2006-05-06 16:01:39 +00:00
Jim Meyering 9980147451 . 2006-05-06 15:52:56 +00:00