platform/upstream/coreutils.git
22 years ago(do_move): Correct a comment.
Jim Meyering [Sat, 30 Mar 2002 07:12:23 +0000 (07:12 +0000)]
(do_move): Correct a comment.

22 years ago*** empty log message ***
Jim Meyering [Sat, 30 Mar 2002 07:11:34 +0000 (07:11 +0000)]
*** empty log message ***

22 years ago(forget_created): Prototype.
Jim Meyering [Sat, 30 Mar 2002 07:11:24 +0000 (07:11 +0000)]
(forget_created): Prototype.

22 years ago(forget_created): New function.
Jim Meyering [Sat, 30 Mar 2002 07:11:13 +0000 (07:11 +0000)]
(forget_created): New function.

22 years ago(copy_internal): Move the block that sets `earlier_file'
Jim Meyering [Sat, 30 Mar 2002 07:10:57 +0000 (07:10 +0000)]
(copy_internal): Move the block that sets `earlier_file'
down to just before the first use of that variable.  Otherwise, it was
possible to make mv (and probably cp, too) malfunction when copying
hard-linked files into a directory containing at least one of the
source file names.  Call forget_created everywhere thereafter where
this function returns without creating a destination file that might
subsequently be linked.  Reported by Iida Yosiaki.

22 years agoNew test for the above.
Jim Meyering [Fri, 29 Mar 2002 23:11:41 +0000 (23:11 +0000)]
New test for the above.
Based on an example from Iida Yosiaki.

22 years ago(TESTS): Add i-link-no.
Jim Meyering [Fri, 29 Mar 2002 23:11:28 +0000 (23:11 +0000)]
(TESTS): Add i-link-no.

22 years ago*** empty log message ***
Jim Meyering [Fri, 29 Mar 2002 23:09:52 +0000 (23:09 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Thu, 28 Mar 2002 08:07:41 +0000 (08:07 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Thu, 28 Mar 2002 07:59:24 +0000 (07:59 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Wed, 27 Mar 2002 08:05:14 +0000 (08:05 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Wed, 27 Mar 2002 07:57:00 +0000 (07:57 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Mon, 25 Mar 2002 09:53:28 +0000 (09:53 +0000)]
*** empty log message ***

22 years agoupdate copyright
Jim Meyering [Mon, 25 Mar 2002 09:53:18 +0000 (09:53 +0000)]
update copyright

22 years ago(age_of): Return -1 and 0 rather than 0 and 1.
Jim Meyering [Mon, 25 Mar 2002 09:53:07 +0000 (09:53 +0000)]
(age_of): Return -1 and 0 rather than 0 and 1.
Might as well keep it simple, and like bash.
(binary_operator): Fix bug with -nt and -ot, when one of the
files did not exist.  We want to be compatible with the ksh93
documentation, and with Bash.

22 years ago*** empty log message ***
Jim Meyering [Mon, 25 Mar 2002 09:52:46 +0000 (09:52 +0000)]
*** empty log message ***

22 years ago(File characteristic tests): Document the
Jim Meyering [Mon, 25 Mar 2002 09:52:25 +0000 (09:52 +0000)]
(File characteristic tests): Document the
behavior of test -nt and -ot when one of the files does not exist,
using the same behavior that is documented in ksh93.

22 years agoadjust spacing in expected diagnostic
Jim Meyering [Tue, 19 Mar 2002 09:55:21 +0000 (09:55 +0000)]
adjust spacing in expected diagnostic

22 years agouse only one space after semicolon
Jim Meyering [Tue, 19 Mar 2002 08:49:28 +0000 (08:49 +0000)]
use only one space after semicolon

22 years ago.
Jim Meyering [Mon, 18 Mar 2002 09:51:22 +0000 (09:51 +0000)]
.

22 years ago.
Jim Meyering [Mon, 18 Mar 2002 09:50:45 +0000 (09:50 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 19:28:04 +0000 (19:28 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 19:21:54 +0000 (19:21 +0000)]
*** empty log message ***

22 years ago(TESTS): Add part-fail.
Jim Meyering [Sun, 17 Mar 2002 19:21:49 +0000 (19:21 +0000)]
(TESTS): Add part-fail.

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 19:21:24 +0000 (19:21 +0000)]
*** empty log message ***

22 years ago(usage): Mention that --format=FORMAT must be
Jim Meyering [Sun, 17 Mar 2002 19:21:16 +0000 (19:21 +0000)]
(usage): Mention that --format=FORMAT must be
a *floating-point* format, also in description of that option.
(usage): Also add the `=' signs here: --format=FORMAT,
--separator=STRING.

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 16:18:35 +0000 (16:18 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 16:17:38 +0000 (16:17 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 16:17:29 +0000 (16:17 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 16:02:47 +0000 (16:02 +0000)]
*** empty log message ***

22 years ago(copy_internal) [move_mode]: Give a better diagnostic
Jim Meyering [Sun, 17 Mar 2002 16:00:54 +0000 (16:00 +0000)]
(copy_internal) [move_mode]: Give a better diagnostic
(using errno from the failed unlink) when a cross-device `mv'
fails, e.g., because the destination cannot be unlinked.
Prompted by a report from Karl Berry.

22 years ago*** empty log message ***
Jim Meyering [Sat, 16 Mar 2002 09:47:01 +0000 (09:47 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 16 Mar 2002 09:46:40 +0000 (09:46 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 16 Mar 2002 09:43:19 +0000 (09:43 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Thu, 14 Mar 2002 12:19:49 +0000 (12:19 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Tue, 12 Mar 2002 12:12:02 +0000 (12:12 +0000)]
*** empty log message ***

22 years ago. FILEUTILS-4_1_7
Jim Meyering [Sun, 10 Mar 2002 22:26:35 +0000 (22:26 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sun, 10 Mar 2002 22:25:01 +0000 (22:25 +0000)]
*** empty log message ***

22 years ago(strip): Change wording in diagnostic.
Jim Meyering [Sun, 10 Mar 2002 22:23:19 +0000 (22:23 +0000)]
(strip): Change wording in diagnostic.

22 years ago(do_copy): Change wording in diagnostic.
Jim Meyering [Sun, 10 Mar 2002 22:22:33 +0000 (22:22 +0000)]
(do_copy): Change wording in diagnostic.

22 years ago(main): Change wording in diagnostic.
Jim Meyering [Sun, 10 Mar 2002 22:21:44 +0000 (22:21 +0000)]
(main): Change wording in diagnostic.

22 years ago(make_path): Remove a comma from a diagnostic.
Jim Meyering [Sun, 10 Mar 2002 22:15:53 +0000 (22:15 +0000)]
(make_path): Remove a comma from a diagnostic.

22 years ago*** empty log message ***
Jim Meyering [Sun, 10 Mar 2002 20:25:56 +0000 (20:25 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 10 Mar 2002 20:20:08 +0000 (20:20 +0000)]
*** empty log message ***

22 years ago(GZIP, BZIP2): Remove definitions.
Jim Meyering [Sun, 10 Mar 2002 20:19:54 +0000 (20:19 +0000)]
(GZIP, BZIP2): Remove definitions.
($(my_distdir).tar.bz2): Remove rule.  Now, it's built by `make dist'.

22 years ago*** empty log message ***
Jim Meyering [Sun, 10 Mar 2002 18:43:12 +0000 (18:43 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 10 Mar 2002 18:42:44 +0000 (18:42 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 10 Mar 2002 18:41:47 +0000 (18:41 +0000)]
*** empty log message ***

22 years agoreformat continued line
Jim Meyering [Sun, 10 Mar 2002 10:22:47 +0000 (10:22 +0000)]
reformat continued line

22 years ago(gmsgfmt_cmd): New variable.
Jim Meyering [Sun, 10 Mar 2002 10:21:55 +0000 (10:21 +0000)]
(gmsgfmt_cmd): New variable.
(.po.gmo): Use it here.

(.po.mo): Don't create target directly --
otherwise a failed gmsgfmt command would leave a corrupt,
yet up-to-date, .gmo file.
(.po.gmo): Likewise.

22 years ago.
Jim Meyering [Sun, 10 Mar 2002 09:30:15 +0000 (09:30 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sun, 10 Mar 2002 08:28:43 +0000 (08:28 +0000)]
*** empty log message ***

22 years ago(copy_reg): Don't exit upon finding a replaced file.
Jim Meyering [Sun, 10 Mar 2002 08:28:30 +0000 (08:28 +0000)]
(copy_reg): Don't exit upon finding a replaced file.
Instead, just skip it like the diagnostic says.
Reported by Paul Eggert.

22 years ago(copy_reg): Use a more concise diagnostic for
Jim Meyering [Sun, 10 Mar 2002 08:26:48 +0000 (08:26 +0000)]
(copy_reg): Use a more concise diagnostic for
reporting replaced files.  This avoids a bug in the code,
which mishandled ino_t wider than long.

22 years ago* src/copy.c (copy_reg): Use a more concise diagnostic for
Jim Meyering [Sun, 10 Mar 2002 08:17:20 +0000 (08:17 +0000)]
* src/copy.c (copy_reg): Use a more concise diagnostic for
reporting replaced files.  This avoids a bug in the code,
which mishandled ino_t wider than long.
* src/remove.c (remove_dir): Likewise, twice.

22 years ago.
Jim Meyering [Sat, 9 Mar 2002 22:14:08 +0000 (22:14 +0000)]
.

22 years ago.
Jim Meyering [Sat, 9 Mar 2002 22:13:33 +0000 (22:13 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sat, 9 Mar 2002 22:13:12 +0000 (22:13 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 9 Mar 2002 22:10:47 +0000 (22:10 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Sat, 9 Mar 2002 21:05:49 +0000 (21:05 +0000)]
.

22 years ago(rm) Add comment on new parameter.
Jim Meyering [Sat, 9 Mar 2002 21:02:05 +0000 (21:02 +0000)]
(rm) Add comment on new parameter.

22 years ago*** empty log message ***
Jim Meyering [Sat, 9 Mar 2002 20:44:11 +0000 (20:44 +0000)]
*** empty log message ***

22 years ago(struct dev_ino): Declare new type.
Jim Meyering [Fri, 8 Mar 2002 16:46:26 +0000 (16:46 +0000)]
(struct dev_ino): Declare new type.
(rm): Add a parameter to the prototype.

22 years ago(main): Call lstat `.' to get the device/inode numbers
Jim Meyering [Fri, 8 Mar 2002 16:46:11 +0000 (16:46 +0000)]
(main): Call lstat `.' to get the device/inode numbers
now required for rm.

22 years ago(do_move): The first time we resort to copy/remove,
Jim Meyering [Fri, 8 Mar 2002 16:45:51 +0000 (16:45 +0000)]
(do_move): The first time we resort to copy/remove,
call lstat `.' to get the device/inode numbers now required for rm.

22 years agoDon't allow a malicious user to trick another user's rm process into
Jim Meyering [Fri, 8 Mar 2002 16:45:31 +0000 (16:45 +0000)]
Don't allow a malicious user to trick another user's rm process into
removing unintended files.  In one scenario, if root is removing a
hierarchy that is writable by the malicious user, that user may trick
root into removing all of `/'.  Reported by Wojciech Purczynski.

(remove_dir): After chdir `..', call lstat to get the
dev/inode of "." and fail if they aren't the same as the old numbers.
(remove_cwd_entries): New parameter, `cwd_dev_ino'.
(remove_dir): Likewise.
(rm): Likewise.
Adjust all callers.

22 years ago*** empty log message ***
Jim Meyering [Fri, 8 Mar 2002 15:41:30 +0000 (15:41 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 8 Mar 2002 08:23:53 +0000 (08:23 +0000)]
*** empty log message ***

22 years agoMention that this wrapper is needed also on mips-dec-ultrix4.4 systems.
Jim Meyering [Fri, 8 Mar 2002 08:23:47 +0000 (08:23 +0000)]
Mention that this wrapper is needed also on mips-dec-ultrix4.4 systems.

22 years ago.
Jim Meyering [Wed, 6 Mar 2002 09:15:00 +0000 (09:15 +0000)]
.

22 years agoupdate from masters
Jim Meyering [Wed, 6 Mar 2002 09:11:13 +0000 (09:11 +0000)]
update from masters

22 years ago.
Jim Meyering [Wed, 6 Mar 2002 09:06:01 +0000 (09:06 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Wed, 6 Mar 2002 08:56:50 +0000 (08:56 +0000)]
*** empty log message ***

22 years ago(cut invocation): Say that selected input is written in the same
Jim Meyering [Wed, 6 Mar 2002 08:56:16 +0000 (08:56 +0000)]
(cut invocation): Say that selected input is written in the same
order that it is read, and is written exactly once.

22 years ago*** empty log message ***
Jim Meyering [Tue, 5 Mar 2002 09:03:40 +0000 (09:03 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 3 Mar 2002 23:25:58 +0000 (23:25 +0000)]
*** empty log message ***

22 years ago(tgz-size): Also handle a suffix of `K', since
Jim Meyering [Sun, 3 Mar 2002 23:25:05 +0000 (23:25 +0000)]
(tgz-size): Also handle a suffix of `K', since
the sizes in the output of `du -h' now look like `29K'

22 years ago*** empty log message *** FILEUTILS-4_1_6
Jim Meyering [Sun, 3 Mar 2002 22:30:13 +0000 (22:30 +0000)]
*** empty log message ***

22 years agoMake cp -r equivalent to cp -R. Add a new cp option --copy-contents
Jim Meyering [Sun, 3 Mar 2002 22:30:06 +0000 (22:30 +0000)]
Make cp -r equivalent to cp -R.  Add a new cp option --copy-contents
for people who want to emulate the traditional (and rarely desirable)
cp -r behavior.

(cp invocation): Document this.
Fix some related minor bugs: --no-dereference is no longer
equivalent to -d, and --archive (-a) can override the other
symlink options.  Warn that cp -R is not portable on symbolic
links unless you also specify -P.

22 years ago*** empty log message ***
Jim Meyering [Sun, 3 Mar 2002 22:29:41 +0000 (22:29 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Sun, 3 Mar 2002 22:29:36 +0000 (22:29 +0000)]
.

22 years ago(copy_internal): Remove -r warning; no longer needed.
Jim Meyering [Sun, 3 Mar 2002 22:29:31 +0000 (22:29 +0000)]
(copy_internal): Remove -r warning; no longer needed.

22 years ago(COPY_CONTENTS_OPTION): New enum value.
Jim Meyering [Sun, 3 Mar 2002 22:28:48 +0000 (22:28 +0000)]
(COPY_CONTENTS_OPTION): New enum value.
(long_opts): Add --copy-contents.
(usage): Describe new behavior.  Sort options.
(main): Implement new behavior.  Remove diagnostics for -a and -r;
no longer needed.

22 years ago.
Jim Meyering [Sun, 3 Mar 2002 09:57:20 +0000 (09:57 +0000)]
.

22 years ago.
Jim Meyering [Sun, 3 Mar 2002 09:54:53 +0000 (09:54 +0000)]
.

22 years ago.
Jim Meyering [Sat, 2 Mar 2002 17:43:10 +0000 (17:43 +0000)]
.

22 years agoReflect changed semantics of cp's -r option.
Jim Meyering [Sat, 2 Mar 2002 17:42:45 +0000 (17:42 +0000)]
Reflect changed semantics of cp's -r option.

22 years ago.
Jim Meyering [Sat, 2 Mar 2002 17:39:58 +0000 (17:39 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sat, 2 Mar 2002 17:39:26 +0000 (17:39 +0000)]
*** empty log message ***

22 years ago(strnlen): Define-away/undef so that an inconsistent prototype in
Jim Meyering [Sat, 2 Mar 2002 17:39:17 +0000 (17:39 +0000)]
(strnlen): Define-away/undef so that an inconsistent prototype in
string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't cause trouble.

22 years ago.
Jim Meyering [Sat, 2 Mar 2002 17:37:50 +0000 (17:37 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sat, 2 Mar 2002 17:36:04 +0000 (17:36 +0000)]
*** empty log message ***

22 years ago(cp invocation): Document that cp -r
Jim Meyering [Sat, 2 Mar 2002 17:35:39 +0000 (17:35 +0000)]
(cp invocation): Document that cp -r
preserves symlinks.  Emphasize non-portability of cp -r.

22 years ago(main): Warn when -r is specified before --archive (-a).
Jim Meyering [Sat, 2 Mar 2002 17:23:34 +0000 (17:23 +0000)]
(main): Warn when -r is specified before --archive (-a).

22 years agoadd a comment
Jim Meyering [Sat, 2 Mar 2002 17:17:49 +0000 (17:17 +0000)]
add a comment

22 years ago(copy_internal): For each symlink copied by cp -r,
Jim Meyering [Sat, 2 Mar 2002 17:16:42 +0000 (17:16 +0000)]
(copy_internal): For each symlink copied by cp -r,
issue a warning that `cp -r' is not portable.

22 years ago(main): Revert change of 2001-12-29. With this change,
Jim Meyering [Sat, 2 Mar 2002 17:15:42 +0000 (17:15 +0000)]
(main): Revert change of 2001-12-29.  With this change,
cp -r once again preserves symlinks.
(usage): Document the original (now-restored) behavior.

22 years ago*** empty log message ***
Jim Meyering [Sat, 2 Mar 2002 16:44:07 +0000 (16:44 +0000)]
*** empty log message ***

22 years ago(main): Fail if -r is specified after --archive (-a) on the command line.
Jim Meyering [Sat, 2 Mar 2002 16:44:02 +0000 (16:44 +0000)]
(main): Fail if -r is specified after --archive (-a) on the command line.

22 years agobe careful about leading/trailing spaces
Jim Meyering [Sat, 2 Mar 2002 13:24:46 +0000 (13:24 +0000)]
be careful about leading/trailing spaces