Jim Meyering [Fri, 30 Apr 1999 16:03:46 +0000 (16:03 +0000)]
Update to reflect this change by reversing
the order of arguments so the symlink is the source, not the
destination (otherwise, the mv command would now succeed).
Jim Meyering [Fri, 30 Apr 1999 15:40:34 +0000 (15:40 +0000)]
(copy_internal): Move the one-file-system test so that
it follows the `if (new_dst || !S_ISDIR (dst_sb.st_mode))' block.
Prior to this change, `cp --one-file-system' would traverse a file-
system boundary if the destination directory existed.
From thospel@mail.dma.be.
Jim Meyering [Fri, 30 Apr 1999 15:24:47 +0000 (15:24 +0000)]
*** empty log message ***
Jim Meyering [Fri, 30 Apr 1999 15:15:02 +0000 (15:15 +0000)]
(copy_internal): Don't make `mv foo symlink-to-foo' fail.
That is, even though source and destination are `the same,' don't fail
if the destination is a symlink. From Peter Samuelson.
Jim Meyering [Mon, 26 Apr 1999 15:07:44 +0000 (15:07 +0000)]
*** empty log message ***
Jim Meyering [Mon, 26 Apr 1999 13:31:57 +0000 (13:31 +0000)]
*** empty log message ***
Jim Meyering [Mon, 26 Apr 1999 13:31:49 +0000 (13:31 +0000)]
(main): If you can't open an output file (with seek=...) read-write,
then open it for write and report an error if we can't seek.
Jim Meyering [Mon, 26 Apr 1999 13:25:28 +0000 (13:25 +0000)]
.
Jim Meyering [Mon, 26 Apr 1999 13:25:08 +0000 (13:25 +0000)]
(utime_null): Don't pass 0666 to open; it's not needed and isn't
guaranteed to be portable.
Jim Meyering [Mon, 26 Apr 1999 13:22:23 +0000 (13:22 +0000)]
(S_IRWXU, S_IRWXG, S_IRWXO): Define if not defined.
Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
Jim Meyering [Mon, 26 Apr 1999 13:19:37 +0000 (13:19 +0000)]
(make_node_op_equals, mode_compile, mode_create_from_ref, mode_adjust):
Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
modechange.h now includes sys/types.h.
Include xstrtol.h.
(isodigit, oatoi): Remove.
(S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP,
S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRWXU, S_IRWXG,
S_IRWXO): Define if not defined.
(CHMOD_MODE_BITS): New macro.
(mode_compile): Convert from octal with xstrtoul, not our own routine.
Jim Meyering [Mon, 26 Apr 1999 13:14:36 +0000 (13:14 +0000)]
Don't assume traditional Unix mode numbering.
Jim Meyering [Mon, 26 Apr 1999 13:13:59 +0000 (13:13 +0000)]
Include <config.h>, <sys/types.h> for mode_t.
(struct mode_change): Members affected and value are now mode_t instead
of unsigned short.
Jim Meyering [Mon, 26 Apr 1999 13:13:36 +0000 (13:13 +0000)]
<config.h>, <sys/types.h>: Include for mode_t.
(mode_string): Now takes mode_t.
Jim Meyering [Mon, 26 Apr 1999 13:13:00 +0000 (13:13 +0000)]
(make_path): Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
(S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRWXU): Define if not defined.
Jim Meyering [Mon, 26 Apr 1999 13:10:11 +0000 (13:10 +0000)]
(setst, ftypelet, mode_string): Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
(S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH): Define if not defined.
<config.h>, <sys/types.h>: Include for mode_t.
(mode_string): Now takes mode_t.
Jim Meyering [Mon, 26 Apr 1999 13:03:49 +0000 (13:03 +0000)]
(main): Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
Jim Meyering [Mon, 26 Apr 1999 13:03:11 +0000 (13:03 +0000)]
(do_copy, cp_option_init, main): Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
Jim Meyering [Mon, 26 Apr 1999 12:55:36 +0000 (12:55 +0000)]
(struct cp_options.umask_kill): Use mode_t, not unsigned int.
Jim Meyering [Mon, 26 Apr 1999 12:54:51 +0000 (12:54 +0000)]
(copy_reg, copy_internal): Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
Jim Meyering [Mon, 26 Apr 1999 12:51:43 +0000 (12:51 +0000)]
(describe_change, change_file_mode): Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
Jim Meyering [Mon, 26 Apr 1999 12:49:59 +0000 (12:49 +0000)]
(main): Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
Jim Meyering [Mon, 26 Apr 1999 12:49:16 +0000 (12:49 +0000)]
(isodigit): Remove unused macro.
(mode, cp_option_init, DIR_MODE): Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
Jim Meyering [Mon, 26 Apr 1999 12:48:12 +0000 (12:48 +0000)]
(S_ISUID, S_ISGID, S_ISVTX, S_IRWXU, S_IRWXG, S_IRWXO):
Define if not defined.
(CHMOD_MODE_BITS): New macro.
Jim Meyering [Mon, 26 Apr 1999 12:47:33 +0000 (12:47 +0000)]
(open_maybe_create): Don't pass 0666 to open; it's not needed and isn't
guaranteed to be portable.
Jim Meyering [Mon, 26 Apr 1999 12:20:54 +0000 (12:20 +0000)]
Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
Jim Meyering [Mon, 26 Apr 1999 12:20:26 +0000 (12:20 +0000)]
Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
Jim Meyering [Mon, 26 Apr 1999 12:19:37 +0000 (12:19 +0000)]
Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
Jim Meyering [Mon, 26 Apr 1999 02:19:51 +0000 (02:19 +0000)]
(main): Revert last change.
Instead, loop on `optind < argc' to protect use of argv[optind].
Jim Meyering [Mon, 26 Apr 1999 02:18:09 +0000 (02:18 +0000)]
revert last change
Jim Meyering [Mon, 26 Apr 1999 00:40:42 +0000 (00:40 +0000)]
.
Jim Meyering [Mon, 26 Apr 1999 00:39:47 +0000 (00:39 +0000)]
(main): Handle the case in which seq is given no args.
Jim Meyering [Sun, 25 Apr 1999 19:20:40 +0000 (19:20 +0000)]
*** empty log message ***
Jim Meyering [Sun, 25 Apr 1999 19:20:18 +0000 (19:20 +0000)]
<inttypes.h>: Include it here instead.
<config.h>: Include it here too.
Jim Meyering [Sun, 25 Apr 1999 19:18:55 +0000 (19:18 +0000)]
Don't include inttypes.h here.
Jim Meyering [Sun, 25 Apr 1999 19:18:20 +0000 (19:18 +0000)]
[NDEBUG]: Remove definition.
Jim Meyering [Sun, 25 Apr 1999 12:11:52 +0000 (12:11 +0000)]
*** empty log message ***
Jim Meyering [Sun, 25 Apr 1999 04:38:15 +0000 (04:38 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Apr 1999 21:38:27 +0000 (21:38 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Apr 1999 21:29:22 +0000 (21:29 +0000)]
(print_entry): Use `#if', not `#ifdef HAVE_UT_HOST'.
Jim Meyering [Sat, 24 Apr 1999 13:14:25 +0000 (13:14 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Apr 1999 13:14:11 +0000 (13:14 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Apr 1999 13:00:16 +0000 (13:00 +0000)]
.
Jim Meyering [Sat, 24 Apr 1999 12:59:26 +0000 (12:59 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Apr 1999 12:58:07 +0000 (12:58 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Apr 1999 12:57:43 +0000 (12:57 +0000)]
.
Jim Meyering [Sat, 24 Apr 1999 12:53:50 +0000 (12:53 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Apr 1999 12:53:19 +0000 (12:53 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Apr 1999 12:43:39 +0000 (12:43 +0000)]
Include new "xstrtol.h", not "xstrtoul.h".
Jim Meyering [Sat, 24 Apr 1999 12:42:53 +0000 (12:42 +0000)]
Include new "xstrtol.h", not "xstrtoul.h".
(struct control) [repeat]: Declare as uintmax_t, not int.
(struct control) [lines_required]: Likewise.
(handle_line_error): Use human_readable to print lines_required.
(parse_repeat_count): Parse a uintmax_t.
(parse_patterns): Parse a uintmax_t.
Jim Meyering [Sat, 24 Apr 1999 12:33:56 +0000 (12:33 +0000)]
Include new "xstrtol.h", not "xstrtoul.h".
Jim Meyering [Sat, 24 Apr 1999 12:33:25 +0000 (12:33 +0000)]
Include new "xstrtol.h", not "xstrtoul.h".
Change all U_LONG_LONG to uintmax_t.
(head_lines): Move a couple dcls into an inner scope.
(string_to_integer): Rename from string_to_ull.
Jim Meyering [Fri, 23 Apr 1999 04:20:42 +0000 (04:20 +0000)]
import latest
Jim Meyering [Thu, 22 Apr 1999 15:19:11 +0000 (15:19 +0000)]
*** empty log message ***
Jim Meyering [Thu, 22 Apr 1999 14:38:50 +0000 (14:38 +0000)]
(word32): Don't use `#error'; it runs afoul of SunOS 4.1.4 cc.
Jim Meyering [Thu, 22 Apr 1999 14:37:17 +0000 (14:37 +0000)]
*** empty log message ***
Jim Meyering [Thu, 22 Apr 1999 14:35:59 +0000 (14:35 +0000)]
Guard strong_alias and weak_alias with #ifdef _LIBC.
Jim Meyering [Thu, 22 Apr 1999 01:24:34 +0000 (01:24 +0000)]
Don't bother with pot-mail anymore -- Francois needs merely the URL.
Jim Meyering [Wed, 21 Apr 1999 23:17:13 +0000 (23:17 +0000)]
.
Jim Meyering [Wed, 21 Apr 1999 23:16:48 +0000 (23:16 +0000)]
.
Jim Meyering [Wed, 21 Apr 1999 04:34:29 +0000 (04:34 +0000)]
.
Jim Meyering [Wed, 21 Apr 1999 04:30:22 +0000 (04:30 +0000)]
.
Jim Meyering [Wed, 21 Apr 1999 04:29:00 +0000 (04:29 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 04:28:36 +0000 (04:28 +0000)]
Remove the temporary strtoumax replacement;
we now have a true replacement in strtoumax.c.
(__strtol): Always define to strtoumax.
(<stdlib.h>): No need to include.
(PARAMS): Remove.
(my_strtoumax): Move this to strtoumax.c,
rename it to strtoumax, and simplify.
Jim Meyering [Wed, 21 Apr 1999 04:27:24 +0000 (04:27 +0000)]
Update to glibc 2.1.1 version.
Jim Meyering [Wed, 21 Apr 1999 04:24:39 +0000 (04:24 +0000)]
.
Jim Meyering [Wed, 21 Apr 1999 04:22:15 +0000 (04:22 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 04:21:50 +0000 (04:21 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 04:21:44 +0000 (04:21 +0000)]
(jm_CHECK_ALL_TYPES): Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
Jim Meyering [Wed, 21 Apr 1999 04:14:59 +0000 (04:14 +0000)]
(AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
Jim Meyering [Wed, 21 Apr 1999 04:04:20 +0000 (04:04 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 04:04:04 +0000 (04:04 +0000)]
(jm_AC_TYPE_UINTMAX_T): Move unsigned long
long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
Jim Meyering [Wed, 21 Apr 1999 04:00:48 +0000 (04:00 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 04:00:38 +0000 (04:00 +0000)]
Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
Replace xstroull if necessary.
Jim Meyering [Wed, 21 Apr 1999 03:58:57 +0000 (03:58 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 03:24:54 +0000 (03:24 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 03:19:26 +0000 (03:19 +0000)]
update comment
Jim Meyering [Wed, 21 Apr 1999 03:18:23 +0000 (03:18 +0000)]
<xstrtol.h>: Include this, not xstrtoul.h.
<human.h>: Include.
Use uintmax_t in place of unsigned long.
Use human_readable to convert to strings for printing.
Jim Meyering [Wed, 21 Apr 1999 02:30:43 +0000 (02:30 +0000)]
.
Jim Meyering [Wed, 21 Apr 1999 02:29:50 +0000 (02:29 +0000)]
.
Jim Meyering [Wed, 21 Apr 1999 02:28:20 +0000 (02:28 +0000)]
.
Jim Meyering [Wed, 21 Apr 1999 02:21:57 +0000 (02:21 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 02:21:47 +0000 (02:21 +0000)]
Port to AIX and HP-UX. Support cross-compilation.
Jim Meyering [Tue, 20 Apr 1999 13:26:06 +0000 (13:26 +0000)]
<config.h>: Include first, since it can do
things like #define const, and this must be done before
including any system headers.
Jim Meyering [Tue, 20 Apr 1999 13:24:14 +0000 (13:24 +0000)]
(my_strtoumax): Fix typo in computing
whether overflow occurred. Improve overflow-detection to use
only one conditional branch total, rather than 2N+1
conditional branches for an N-digit number.
Jim Meyering [Mon, 19 Apr 1999 14:09:07 +0000 (14:09 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Apr 1999 14:06:07 +0000 (14:06 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Apr 1999 14:05:34 +0000 (14:05 +0000)]
(main): Restore `+' in getopt_long string. Otherwise,
commands like `seq 10 -2 0' wouldn't work. From Andreas Schwab.
Jim Meyering [Mon, 19 Apr 1999 14:03:17 +0000 (14:03 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Apr 1999 05:25:52 +0000 (05:25 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Apr 1999 05:22:54 +0000 (05:22 +0000)]
(b_host): Remove /pub suffix.
Jim Meyering [Mon, 19 Apr 1999 04:50:25 +0000 (04:50 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Apr 1999 04:50:03 +0000 (04:50 +0000)]
(my-distcheck): Use AMTAR, not TAR.
Jim Meyering [Mon, 19 Apr 1999 04:45:09 +0000 (04:45 +0000)]
.
Jim Meyering [Mon, 19 Apr 1999 04:24:35 +0000 (04:24 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Apr 1999 04:20:57 +0000 (04:20 +0000)]
.
Jim Meyering [Mon, 19 Apr 1999 02:56:54 +0000 (02:56 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Apr 1999 02:54:53 +0000 (02:54 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Apr 1999 02:54:48 +0000 (02:54 +0000)]
Require jm_AC_PREREQ_XSTRTOUMAX.
Jim Meyering [Mon, 19 Apr 1999 02:53:36 +0000 (02:53 +0000)]
*** empty log message ***