platform/upstream/coreutils.git
23 years ago*** empty log message ***
Jim Meyering [Sun, 10 Sep 2000 07:31:54 +0000 (07:31 +0000)]
*** empty log message ***

23 years ago(_getopt_internal): Update from glibc.
Jim Meyering [Sun, 10 Sep 2000 07:31:44 +0000 (07:31 +0000)]
(_getopt_internal): Update from glibc.

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 16:34:17 +0000 (16:34 +0000)]
*** empty log message ***

23 years ago(usage): Make second `Usage' line more precise
Jim Meyering [Sat, 9 Sep 2000 16:33:59 +0000 (16:33 +0000)]
(usage): Make second `Usage' line more precise
(also making it match the texinfo documentation).

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 16:02:37 +0000 (16:02 +0000)]
*** empty log message ***

23 years agoRename ISASCII to IN_CTYPE_DOMAIN.
Jim Meyering [Sat, 9 Sep 2000 15:58:57 +0000 (15:58 +0000)]
Rename ISASCII to IN_CTYPE_DOMAIN.

23 years agoRename ISASCII to IN_CTYPE_DOMAIN.
Jim Meyering [Sat, 9 Sep 2000 15:58:03 +0000 (15:58 +0000)]
Rename ISASCII to IN_CTYPE_DOMAIN.

23 years agoRename ISASCII to IN_CTYPE_DOMAIN.
Jim Meyering [Sat, 9 Sep 2000 15:56:26 +0000 (15:56 +0000)]
Rename ISASCII to IN_CTYPE_DOMAIN.

23 years ago(Setting the time): Correct the capitalization of
Jim Meyering [Sat, 9 Sep 2000 14:35:39 +0000 (14:35 +0000)]
(Setting the time): Correct the capitalization of
`HHMM' in the info-rendering of the texinfo documentation.

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 14:35:18 +0000 (14:35 +0000)]
*** empty log message ***

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

23 years ago(announcement): Use a stricter regexp for the previous version.
Jim Meyering [Sat, 9 Sep 2000 12:12:16 +0000 (12:12 +0000)]
(announcement): Use a stricter regexp for the previous version.

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 09:58:16 +0000 (09:58 +0000)]
*** empty log message ***

23 years ago. FILEUTILS-4_0z
Jim Meyering [Sat, 9 Sep 2000 08:58:58 +0000 (08:58 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 08:58:42 +0000 (08:58 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Sat, 9 Sep 2000 08:56:38 +0000 (08:56 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 08:55:48 +0000 (08:55 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 08:53:37 +0000 (08:53 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 08:42:34 +0000 (08:42 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 08:27:52 +0000 (08:27 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 08:25:33 +0000 (08:25 +0000)]
*** empty log message ***

23 years ago(TESTS_ENVIRONMENT): Propagate $MAKE into environment, for special-bits.
Jim Meyering [Sat, 9 Sep 2000 08:24:41 +0000 (08:24 +0000)]
(TESTS_ENVIRONMENT): Propagate $MAKE into environment, for special-bits.

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 08:22:54 +0000 (08:22 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 08:22:19 +0000 (08:22 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 08:18:10 +0000 (08:18 +0000)]
*** empty log message ***

23 years ago(TESTS): Add special-bits.
Jim Meyering [Sat, 9 Sep 2000 08:17:33 +0000 (08:17 +0000)]
(TESTS): Add special-bits.

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 07:32:43 +0000 (07:32 +0000)]
*** empty log message ***

23 years ago(copy_internal): Call chmod also if we've made the
Jim Meyering [Sat, 9 Sep 2000 07:32:36 +0000 (07:32 +0000)]
(copy_internal): Call chmod also if we've made the
preceding chown call and we're supposed to preserve some special
permission bit(s) that would have been reset by chown.
Reported by Greg Louis.

23 years ago(SAME_OWNER, SAME_GROUP, SAME_OWNER_AND_GROUP): Define.
Jim Meyering [Sat, 9 Sep 2000 07:29:38 +0000 (07:29 +0000)]
(SAME_OWNER, SAME_GROUP, SAME_OWNER_AND_GROUP): Define.
(copy_internal): Avoid calling chown if we know it's not necessary.

23 years ago*** empty log message ***
Jim Meyering [Sat, 9 Sep 2000 07:20:54 +0000 (07:20 +0000)]
*** empty log message ***

23 years agoDon't use atoi.
Jim Meyering [Sat, 9 Sep 2000 07:20:46 +0000 (07:20 +0000)]
Don't use atoi.
Include sys/param.h and limits.h.
Include xstrtol.h.
(CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
(UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
(parse_user_spec): Use xstrtoul, not atoi when converting numeric
UID, GID.  Check range.

23 years ago*** empty log message ***
Jim Meyering [Fri, 8 Sep 2000 09:03:05 +0000 (09:03 +0000)]
*** empty log message ***

23 years ago(S_IRWXUGO): Define here, instead.
Jim Meyering [Fri, 8 Sep 2000 09:01:32 +0000 (09:01 +0000)]
(S_IRWXUGO): Define here, instead.

23 years ago(S_IRWXUGO): Remove definition.
Jim Meyering [Fri, 8 Sep 2000 09:01:02 +0000 (09:01 +0000)]
(S_IRWXUGO): Remove definition.

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.