platform/upstream/coreutils.git
23 years ago*** empty log message ***
Jim Meyering [Thu, 7 Sep 2000 13:23:52 +0000 (13:23 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Thu, 7 Sep 2000 13:22:26 +0000 (13:22 +0000)]
.

23 years agoUpdate from master repository.
Jim Meyering [Thu, 7 Sep 2000 13:22:14 +0000 (13:22 +0000)]
Update from master repository.

23 years ago*** empty log message ***
Jim Meyering [Thu, 7 Sep 2000 07:08:50 +0000 (07:08 +0000)]
*** empty log message ***

23 years ago(cut invocation): Note that when using -f, lines with no delimiters are
Jim Meyering [Thu, 7 Sep 2000 07:08:39 +0000 (07:08 +0000)]
(cut invocation): Note that when using -f, lines with no delimiters are
also printed.

23 years ago(usage): Note that when using -f, lines with no delimiters are also printed.
Jim Meyering [Thu, 7 Sep 2000 07:08:17 +0000 (07:08 +0000)]
(usage): Note that when using -f, lines with no delimiters are also printed.

23 years agoRemove obsolete comment block.
Jim Meyering [Thu, 7 Sep 2000 07:01:11 +0000 (07:01 +0000)]
Remove obsolete comment block.

23 years ago*** empty log message ***
Jim Meyering [Wed, 6 Sep 2000 20:04:17 +0000 (20:04 +0000)]
*** empty log message ***

23 years ago(_getopt_internal): Update from glibc.
Jim Meyering [Wed, 6 Sep 2000 20:04:06 +0000 (20:04 +0000)]
(_getopt_internal): Update from glibc.

23 years ago*** empty log message ***
Jim Meyering [Tue, 5 Sep 2000 12:15:38 +0000 (12:15 +0000)]
*** empty log message ***

23 years agoRedirect stdout to stderr before trying to
Jim Meyering [Tue, 5 Sep 2000 12:15:30 +0000 (12:15 +0000)]
Redirect stdout to stderr before trying to
remove the temp directory.  Otherwise, the `rm -rf' would get an
error because the output file wouldn't be closed and the directory
wouldn't be `empty'.

23 years ago.
Jim Meyering [Tue, 5 Sep 2000 12:04:29 +0000 (12:04 +0000)]
.

23 years agoRemove the `cp -bdl symlink foo' case.
Jim Meyering [Tue, 5 Sep 2000 12:02:40 +0000 (12:02 +0000)]
Remove the `cp -bdl symlink foo' case.
since it's no longer portable (hard link to a symlink).

23 years agoRemove the `cp -dl sl1 sl2' case,
Jim Meyering [Tue, 5 Sep 2000 11:53:03 +0000 (11:53 +0000)]
Remove the `cp -dl sl1 sl2' case,
since it's no longer portable (hard link to a symlink).

23 years ago*** empty log message ***
Jim Meyering [Tue, 5 Sep 2000 10:41:18 +0000 (10:41 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Tue, 5 Sep 2000 10:22:35 +0000 (10:22 +0000)]
.

23 years ago.
Jim Meyering [Mon, 4 Sep 2000 20:51:43 +0000 (20:51 +0000)]
.

23 years agoRemove declaration of lstat, now that it's in copy.h.
Jim Meyering [Mon, 4 Sep 2000 20:51:29 +0000 (20:51 +0000)]
Remove declaration of lstat, now that it's in copy.h.

23 years agoMove declaractions of lstat, stat, and rpl_lstat
Jim Meyering [Mon, 4 Sep 2000 20:51:12 +0000 (20:51 +0000)]
Move declaractions of lstat, stat, and rpl_lstat
as well as the definition of lstat from cp.c to this file.

23 years agoMove declaractions of lstat, stat, and rpl_lstat
Jim Meyering [Mon, 4 Sep 2000 20:50:45 +0000 (20:50 +0000)]
Move declaractions of lstat, stat, and rpl_lstat
as well as the definition of lstat from here to copy.h.

23 years ago*** empty log message ***
Jim Meyering [Mon, 4 Sep 2000 17:01:23 +0000 (17:01 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Mon, 4 Sep 2000 16:58:38 +0000 (16:58 +0000)]
.

23 years agomv's --force (-f) option is no longer needed for
Jim Meyering [Mon, 4 Sep 2000 16:58:25 +0000 (16:58 +0000)]
mv's --force (-f) option is no longer needed for
this test, now that all it does is cancel --interactive (-i).

23 years ago*** empty log message ***
Jim Meyering [Mon, 4 Sep 2000 16:56:17 +0000 (16:56 +0000)]
*** empty log message ***

23 years agoAdd new tests using cp's --rem option.
Jim Meyering [Mon, 4 Sep 2000 16:56:09 +0000 (16:56 +0000)]
Add new tests using cp's --rem option.
Reflect the fact that cp's -f option no longer causes cp to remove the
destination file before trying to open it.
Reflect the fact that `cp -bdl' now makes a backup when copying a
symlink onto the file it points to (FIXME: look into this, and why
cp -bl does *not* do so).

23 years ago*** empty log message ***
Jim Meyering [Mon, 4 Sep 2000 15:22:08 +0000 (15:22 +0000)]
*** empty log message ***

23 years ago(do_link): Tweak diagnostics.
Jim Meyering [Mon, 4 Sep 2000 15:22:00 +0000 (15:22 +0000)]
(do_link): Tweak diagnostics.

23 years ago(same_file_ok): Hoist a test.
Jim Meyering [Mon, 4 Sep 2000 14:49:30 +0000 (14:49 +0000)]
(same_file_ok): Hoist a test.

23 years ago*** empty log message ***
Jim Meyering [Mon, 4 Sep 2000 14:46:18 +0000 (14:46 +0000)]
*** empty log message ***

23 years agofactor out backup/same test, put it after if-else.
Jim Meyering [Mon, 4 Sep 2000 14:45:42 +0000 (14:45 +0000)]
factor out backup/same test, put it after if-else.

23 years ago(same_file_ok): factor some more. improve -- now passes all tests.
Jim Meyering [Mon, 4 Sep 2000 14:42:32 +0000 (14:42 +0000)]
(same_file_ok): factor some more.  improve -- now passes all tests.
checkpoint

23 years ago*** empty log message ***
Jim Meyering [Mon, 4 Sep 2000 08:16:16 +0000 (08:16 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Mon, 4 Sep 2000 08:03:56 +0000 (08:03 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Mon, 4 Sep 2000 07:27:49 +0000 (07:27 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Mon, 4 Sep 2000 07:25:10 +0000 (07:25 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Mon, 4 Sep 2000 07:09:08 +0000 (07:09 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 3 Sep 2000 18:50:55 +0000 (18:50 +0000)]
*** empty log message ***

23 years ago(cp_option_init): Initialize new members.
Jim Meyering [Sun, 3 Sep 2000 18:50:49 +0000 (18:50 +0000)]
(cp_option_init): Initialize new members.

23 years ago.
Jim Meyering [Sun, 3 Sep 2000 18:50:14 +0000 (18:50 +0000)]
.

23 years ago.
Jim Meyering [Sun, 3 Sep 2000 18:49:37 +0000 (18:49 +0000)]
.

23 years agotweak comment
Jim Meyering [Sun, 3 Sep 2000 15:25:11 +0000 (15:25 +0000)]
tweak comment

23 years agoRemove obsolete comment block.
Jim Meyering [Sun, 3 Sep 2000 14:36:50 +0000 (14:36 +0000)]
Remove obsolete comment block.
(cp_option_init): Initialize new members.
(usage): Reflect the fact that --force (-f) relates only to whether
mv prompts.
(main): Remove uses of old `force' option member.

23 years ago(enum): Add UNLINK_DEST_BEFORE_OPENING.
Jim Meyering [Sun, 3 Sep 2000 14:09:23 +0000 (14:09 +0000)]
(enum): Add UNLINK_DEST_BEFORE_OPENING.
[long_options]: Add an entry for --remove-destination.
(usage): Describe --remove-destination.
(do_copy): Use unlink_dest_after_failed_open member, not `force.'
(cp_option_init): Initialize new members.
(main): Handle UNLINK_DEST_BEFORE_OPENING (aka --remove-destination).

23 years agocorrect description of unlink_dest_after_failed_open
Jim Meyering [Sun, 3 Sep 2000 13:56:15 +0000 (13:56 +0000)]
correct description of unlink_dest_after_failed_open

23 years agocomment
Jim Meyering [Sun, 3 Sep 2000 13:18:22 +0000 (13:18 +0000)]
comment

23 years agoUse strcoll (not strcmp) when comparing file names.
Jim Meyering [Sun, 3 Sep 2000 13:06:41 +0000 (13:06 +0000)]
Use strcoll (not strcmp) when comparing file names.

23 years ago(struct cp_options) [force]: Remove member.
Jim Meyering [Sun, 3 Sep 2000 13:04:44 +0000 (13:04 +0000)]
(struct cp_options) [force]: Remove member.
[unlink_dest_before_opening]: Add member.
[unlink_dest_after_failed_open]: Add member.

23 years ago(same_file_ok): New function, extracted from copy_internal,
Jim Meyering [Sun, 3 Sep 2000 13:01:49 +0000 (13:01 +0000)]
(same_file_ok): New function, extracted from copy_internal,
and partially rewritten.
(copy_internal): Unlink destination file when unlink_dest_before_opening
option is set, and when the source is neither a regular file nor a directory.

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Sep 2000 09:44:47 +0000 (09:44 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Sep 2000 09:32:01 +0000 (09:32 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Sep 2000 09:30:03 +0000 (09:30 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Sep 2000 09:28:31 +0000 (09:28 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Sep 2000 09:08:31 +0000 (09:08 +0000)]
*** empty log message ***

23 years agoadd basic test
Jim Meyering [Sat, 2 Sep 2000 07:55:32 +0000 (07:55 +0000)]
add basic test

23 years ago*** empty log message ***
Jim Meyering [Wed, 30 Aug 2000 07:58:05 +0000 (07:58 +0000)]
*** empty log message ***

23 years agoMerge in changes from GNU libc.
Jim Meyering [Wed, 30 Aug 2000 07:58:01 +0000 (07:58 +0000)]
Merge in changes from GNU libc.

23 years agodeclare __fpending only if necessary
Jim Meyering [Mon, 28 Aug 2000 14:55:18 +0000 (14:55 +0000)]
declare __fpending only if necessary

23 years agocheck for __fpending declaration
Jim Meyering [Mon, 28 Aug 2000 14:53:10 +0000 (14:53 +0000)]
check for __fpending declaration

23 years agoinclude stdio_ext.h
Jim Meyering [Mon, 28 Aug 2000 14:50:37 +0000 (14:50 +0000)]
include stdio_ext.h

23 years ago*** empty log message ***
Jim Meyering [Sun, 27 Aug 2000 09:50:08 +0000 (09:50 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Sun, 27 Aug 2000 09:30:11 +0000 (09:30 +0000)]
.

23 years ago(copy_reg): New parameters: X and NEW_DST.
Jim Meyering [Sun, 27 Aug 2000 09:30:00 +0000 (09:30 +0000)]
(copy_reg): New parameters: X and NEW_DST.
Remove the SPARSE_MODE parameter.  Update caller.
Perform POSIX-mandated (for cp) open-with-O_WRONLY|O_TRUNC when
the regular destination file exists;  upon failure, unlink
that existing file, then open again, but with O_WRONLY|O_CREAT.
(copy_internal): `force' in not related to interactive; remove
the conjunct.
Remove the entire `else if (x->force)' block;  justifying
removal of the non-directory part is easy:  POSIX requires we try
to open an existing regular file, so we can't unlink it beforehand.
The part that changes the mode on a directory to allow overwriting
isn't necessary.

23 years ago(copy_internal): Set `new_dst' when the move_mode rename fails,
Jim Meyering [Sun, 27 Aug 2000 08:46:21 +0000 (08:46 +0000)]
(copy_internal): Set `new_dst' when the move_mode rename fails,
since we then unlink the destination file.

23 years ago(copy_reg): Rename two goto labels.
Jim Meyering [Sun, 27 Aug 2000 08:33:35 +0000 (08:33 +0000)]
(copy_reg): Rename two goto labels.

23 years ago.
Jim Meyering [Sat, 26 Aug 2000 22:24:50 +0000 (22:24 +0000)]
.

23 years ago(usage): --force is independent of --interactive.
Jim Meyering [Sat, 26 Aug 2000 22:24:31 +0000 (22:24 +0000)]
(usage): --force is independent of --interactive.

23 years ago.
Jim Meyering [Sat, 26 Aug 2000 15:40:01 +0000 (15:40 +0000)]
.

23 years ago.
Jim Meyering [Sat, 26 Aug 2000 15:39:39 +0000 (15:39 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Sat, 26 Aug 2000 12:05:55 +0000 (12:05 +0000)]
*** empty log message ***

23 years agoInclude "__fpending.h".
Jim Meyering [Sat, 26 Aug 2000 12:05:50 +0000 (12:05 +0000)]
Include "__fpending.h".
(close_stdout_status): Return right away if there's nothing to flush.

23 years ago*** empty log message ***
Jim Meyering [Sat, 26 Aug 2000 12:04:46 +0000 (12:04 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 26 Aug 2000 12:04:13 +0000 (12:04 +0000)]
*** empty log message ***

23 years ago(noinst_HEADERS): Add __fpending.h.
Jim Meyering [Sat, 26 Aug 2000 12:04:01 +0000 (12:04 +0000)]
(noinst_HEADERS): Add __fpending.h.

23 years ago*** empty log message ***
Jim Meyering [Sat, 26 Aug 2000 11:59:55 +0000 (11:59 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 26 Aug 2000 11:58:08 +0000 (11:58 +0000)]
*** empty log message ***

23 years agoUse jm_FUNC_FPENDING.
Jim Meyering [Sat, 26 Aug 2000 11:56:54 +0000 (11:56 +0000)]
Use jm_FUNC_FPENDING.

23 years ago*** empty log message ***
Jim Meyering [Sat, 26 Aug 2000 11:56:20 +0000 (11:56 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 26 Aug 2000 11:55:12 +0000 (11:55 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 26 Aug 2000 11:46:21 +0000 (11:46 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 26 Aug 2000 11:44:00 +0000 (11:44 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 26 Aug 2000 11:26:11 +0000 (11:26 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 26 Aug 2000 11:25:48 +0000 (11:25 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Fri, 25 Aug 2000 07:43:45 +0000 (07:43 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Fri, 25 Aug 2000 07:39:22 +0000 (07:39 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Thu, 24 Aug 2000 11:39:14 +0000 (11:39 +0000)]
*** empty log message ***

23 years agoPut back the kluge. It's necessary after all.
Jim Meyering [Thu, 24 Aug 2000 11:39:08 +0000 (11:39 +0000)]
Put back the kluge.  It's necessary after all.
(buggy_lseek_support): New function.
(skip): Use it.
Frank Adler reported that although _llseek returns 0, lseek
erroneously returns an offset suggesting the operation succeeded
even though it fails.

23 years ago*** empty log message ***
Jim Meyering [Thu, 24 Aug 2000 11:36:28 +0000 (11:36 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Thu, 24 Aug 2000 08:40:47 +0000 (08:40 +0000)]
.

23 years ago.
Jim Meyering [Thu, 24 Aug 2000 08:40:08 +0000 (08:40 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Thu, 24 Aug 2000 08:37:06 +0000 (08:37 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Thu, 24 Aug 2000 08:36:47 +0000 (08:36 +0000)]
*** empty log message ***

23 years ago(skip): Assume lseek failed if it returned zero, since a zero return is
Jim Meyering [Thu, 24 Aug 2000 08:34:33 +0000 (08:34 +0000)]
(skip): Assume lseek failed if it returned zero, since a zero return is
impossible and some buggy drivers return zero.

Use SEEK_CUR rather than SEEK_SET; this fixes a bug when the
file descriptor is not currently rewound.

23 years ago*** empty log message ***
Jim Meyering [Wed, 23 Aug 2000 16:26:55 +0000 (16:26 +0000)]
*** empty log message ***

23 years agoInclude <config.h> unconditionally, to be consistent
Jim Meyering [Wed, 23 Aug 2000 16:26:39 +0000 (16:26 +0000)]
Include <config.h> unconditionally, to be consistent
with all the other programs in this directory.

23 years ago*** empty log message ***
Jim Meyering [Wed, 23 Aug 2000 07:54:41 +0000 (07:54 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Wed, 23 Aug 2000 07:54:23 +0000 (07:54 +0000)]
*** empty log message ***

23 years agolonger input
Jim Meyering [Wed, 23 Aug 2000 07:54:06 +0000 (07:54 +0000)]
longer input

23 years agoredir dd's stderr
Jim Meyering [Wed, 23 Aug 2000 07:49:05 +0000 (07:49 +0000)]
redir dd's stderr

23 years agochange PROG from ls to dd
Jim Meyering [Wed, 23 Aug 2000 07:48:11 +0000 (07:48 +0000)]
change PROG from ls to dd

23 years ago(TESTS): Add not-rewound.
Jim Meyering [Wed, 23 Aug 2000 07:47:52 +0000 (07:47 +0000)]
(TESTS): Add not-rewound.