Jim Meyering [Fri, 7 May 1999 19:15:37 +0000 (19:15 +0000)]
(handle_line_error): Use %s, not %d, now that human_readable
converts it to a string.
Jim Meyering [Fri, 7 May 1999 19:00:44 +0000 (19:00 +0000)]
*** empty log message ***
Jim Meyering [Fri, 7 May 1999 18:54:34 +0000 (18:54 +0000)]
import latest
Jim Meyering [Fri, 7 May 1999 18:53:01 +0000 (18:53 +0000)]
*** empty log message ***
Jim Meyering [Fri, 7 May 1999 18:52:35 +0000 (18:52 +0000)]
.
Jim Meyering [Fri, 7 May 1999 18:49:09 +0000 (18:49 +0000)]
*** empty log message ***
Jim Meyering [Fri, 7 May 1999 18:48:45 +0000 (18:48 +0000)]
clean up
Jim Meyering [Fri, 7 May 1999 18:47:50 +0000 (18:47 +0000)]
(TESTS_ENVIRONMENT): Remove individual
upper-case program names. Add a definition of PATH.
(TESTS): Add dir-1.
Jim Meyering [Fri, 7 May 1999 18:44:20 +0000 (18:44 +0000)]
(touch): Only do the fstat if we need to.
Resort to calling stat for directories, but only when necessary.
(usage): Mention --no-create.
Jim Meyering [Fri, 7 May 1999 18:40:11 +0000 (18:40 +0000)]
(main): Use better wording in diagnostic: `cannot
create directory' rather than `cannot make directory'. The former
also matches the one in makepath.c.
Jim Meyering [Fri, 7 May 1999 18:36:54 +0000 (18:36 +0000)]
(apply_translations): Use TOUPPER, not toupper.
Jim Meyering [Thu, 6 May 1999 21:51:06 +0000 (21:51 +0000)]
(numcompare): Handle comparison of two negative
numbers correctly in the ENABLE_NLS case.
Jim Meyering [Thu, 6 May 1999 02:10:34 +0000 (02:10 +0000)]
(make_dir): When reporting a mkdir failure and the
target cannot be `stat'ed, use the errno from the failed mkdir call,
not the one from the stat call. Before this change, running
`mkdir -p /no-dir/no-dir' as an unprivileged user would wrongly
elicit `No such file or directory' instead of `Permission denied'.
Jim Meyering [Wed, 5 May 1999 13:34:29 +0000 (13:34 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 May 1999 13:34:18 +0000 (13:34 +0000)]
(read_utmp): Use the new definitions.
Jim Meyering [Wed, 5 May 1999 13:34:02 +0000 (13:34 +0000)]
Add definitions to help read utmpx on systems with utmpname.
(UTMP_NAME_FUNCTION): Define.
(SET_UTMP_ENT): Likewise.
(GET_UTMP_ENT): Likewise.
(END_UTMP_ENT): Likewise.
Jim Meyering [Wed, 5 May 1999 13:26:22 +0000 (13:26 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 May 1999 13:26:06 +0000 (13:26 +0000)]
(show_date): Change an automatic aggregate initializer
to be a static one. For SunOS4's cc.
Jim Meyering [Wed, 5 May 1999 13:21:55 +0000 (13:21 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 May 1999 13:21:29 +0000 (13:21 +0000)]
(TYPE_SIGNED, TYPE_MAXIMUM, TYPE_MINIMUM): Define.
(ULONG_LONG_MAX, LONG_LONG_MAX, LONG_LONG_MIN): Define if not defined.
Based on a patch from Kaveh Ghazi.
Jim Meyering [Wed, 5 May 1999 13:16:42 +0000 (13:16 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 May 1999 13:12:28 +0000 (13:12 +0000)]
(USE_ACL): Define this only #if
(HAVE_SYS_ACL_H && HAVE_ACL && defined GETACLCNT).
Use `USE_ACL' in place of `HAVE_ACL' everywhere else. From Kaveh Ghazi.
Jim Meyering [Wed, 5 May 1999 03:05:11 +0000 (03:05 +0000)]
Include makepath.h libintl.h, not after it.
Otherwise, we'd get the wrong definition of PARAMS from libintl.h.
(The method of defining PARAMS in libintl.h doesn't check PROTOTYPES,
which is necessary on Irix4 since cc doesn't define __STDC__.)
From Kaveh Ghazi.
Jim Meyering [Wed, 5 May 1999 01:56:45 +0000 (01:56 +0000)]
add missing backslash-before-newline in usage message
Jim Meyering [Wed, 5 May 1999 01:55:39 +0000 (01:55 +0000)]
add missing backslash-before-newline in usage message
Jim Meyering [Tue, 4 May 1999 21:13:54 +0000 (21:13 +0000)]
*** empty log message ***
Jim Meyering [Tue, 4 May 1999 21:13:47 +0000 (21:13 +0000)]
(AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
not CPPFLAGS, so that linking works correctly in IRIX.
Jim Meyering [Tue, 4 May 1999 18:46:06 +0000 (18:46 +0000)]
(usage): Break the usage message into 3 pieces instead of
only 2. The strings had grown to be longer than 2048, which evokes
errors when compiling with Irix4's cc.
Jim Meyering [Tue, 4 May 1999 14:31:27 +0000 (14:31 +0000)]
(search_item): Use `1' instead of `+1'. The latter
elicits a syntax error from SunOS4's cc. From Kaveh Ghazi.
Jim Meyering [Mon, 3 May 1999 18:01:49 +0000 (18:01 +0000)]
<ctype.h>: Don't include.
[!STDC_HEADERS]: Remove definitions of ctype macros.
Convert e.g., isspace to ISSPACE to use definitions from sys2.h.
Reported by Kaveh Ghazi.
Jim Meyering [Mon, 3 May 1999 17:59:43 +0000 (17:59 +0000)]
(TOLOWER): Define.
(TOUPPER): Define.
Jim Meyering [Mon, 3 May 1999 17:55:53 +0000 (17:55 +0000)]
(TOLOWER): Remove definition.
Jim Meyering [Mon, 3 May 1999 03:58:40 +0000 (03:58 +0000)]
*** empty log message ***
Jim Meyering [Mon, 3 May 1999 03:56:46 +0000 (03:56 +0000)]
*** empty log message ***
Jim Meyering [Mon, 3 May 1999 02:46:54 +0000 (02:46 +0000)]
.
Jim Meyering [Mon, 3 May 1999 02:45:51 +0000 (02:45 +0000)]
.
Jim Meyering [Mon, 3 May 1999 02:45:37 +0000 (02:45 +0000)]
(main): Give a better diagnostic when we fail to set the hostname.
Jim Meyering [Mon, 3 May 1999 02:42:49 +0000 (02:42 +0000)]
(main): Manually handle `--', since we no longer call getopt.
Jim Meyering [Mon, 3 May 1999 02:38:50 +0000 (02:38 +0000)]
(read_utmp): Ignore the return value from utmpname.
Jim Meyering [Sat, 1 May 1999 04:33:45 +0000 (04:33 +0000)]
Define several tag-related make variables.
(cvs-dist): Use the make variables instead of shell ones.
(announcement): Automatically generate diffs for all ChangeLog files,
not just the top level one.
Jim Meyering [Sat, 1 May 1999 04:15:43 +0000 (04:15 +0000)]
*** empty log message ***
Jim Meyering [Sat, 1 May 1999 04:15:09 +0000 (04:15 +0000)]
*** empty log message ***
Jim Meyering [Sat, 1 May 1999 04:13:56 +0000 (04:13 +0000)]
*** empty log message ***
Jim Meyering [Sat, 1 May 1999 04:13:45 +0000 (04:13 +0000)]
(AC_REPLACE_FUNCS): Add dup2.
Jim Meyering [Sat, 1 May 1999 02:29:17 +0000 (02:29 +0000)]
(main): Manually handle `--', since we no longer
call getopt. Reported by Joseph S. Myers.
Jim Meyering [Sat, 1 May 1999 02:28:54 +0000 (02:28 +0000)]
(main): Manually handle `--', since we no longer
call getopt. Reported by Joseph S. Myers.
Jim Meyering [Sat, 1 May 1999 02:08:30 +0000 (02:08 +0000)]
(decode_switches): Use STDIN_FILENO, STDOUT_FILENO instead of 0, 1.
Jim Meyering [Sat, 1 May 1999 02:05:56 +0000 (02:05 +0000)]
Always use STDIN_FILENO for input and STDOUT_FILENO
for output, to avoid confusion with closed input and output fds.
(input_fd, output_fd): Remove; all uses changed to STDIN_FILENO
and STDOUT_FILENO.
(open_fd): New function.
(main): Use it, instead of open, to ensure that file descriptors
don't get confused.
(skip): Don't fstat the input file; the result is no longer used.
Jim Meyering [Sat, 1 May 1999 00:13:13 +0000 (00:13 +0000)]
*** empty log message ***
Jim Meyering [Sat, 1 May 1999 00:12:26 +0000 (00:12 +0000)]
(usage): Document the differences between the
obsolescent, +POS1[-POS2] form, and the POSIX -k option.
Jim Meyering [Fri, 30 Apr 1999 22:35:54 +0000 (22:35 +0000)]
add emphasis that sort's -k M,N is inclusive
Jim Meyering [Fri, 30 Apr 1999 20:59:49 +0000 (20:59 +0000)]
*** empty log message ***
Jim Meyering [Fri, 30 Apr 1999 16:48:09 +0000 (16:48 +0000)]
*** empty log message ***
Jim Meyering [Fri, 30 Apr 1999 16:03:53 +0000 (16:03 +0000)]
*** empty log message ***
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)]
.