Jim Meyering [Wed, 10 Jan 2001 12:19:05 +0000 (12:19 +0000)]
(TESTS): Add into-self.
Jim Meyering [Wed, 10 Jan 2001 12:18:19 +0000 (12:18 +0000)]
(copy_internal): Add a comment.
Set *copy_into_self in the new code that detects that.
Make diagnostic more consistent: s/won't/will not/.
[move_mode, copy_into_self]: Give a diagnstic here, now that
we have the top_level_* globals. Remove the corresponding diagnostic
from mv.c.
Add a FIXME comment.
Jim Meyering [Wed, 10 Jan 2001 12:16:52 +0000 (12:16 +0000)]
(do_move): Remove diagnostic, now that copy.c issues it.
Set `fail' to nonzero in the primary `if (copy_into_self)' block
rather than in its own tiny one below.
Jim Meyering [Wed, 10 Jan 2001 11:56:59 +0000 (11:56 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Jan 2001 11:54:53 +0000 (11:54 +0000)]
[struct entry] (node): Describe how it's used,
now that we've overloaded it a little, in order to detect and diagnose
the copying-directory-into-self problem.
(new_file): Remove global.
(htab): Declare global to be static.
(remember_created): Insert file name instead of dummy pointer, so
that copy.c can use the just-created directory name to detect
the copying-directory-into-self problem.
Jim Meyering [Wed, 10 Jan 2001 10:29:57 +0000 (10:29 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Jan 2001 10:27:09 +0000 (10:27 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Jan 2001 09:58:43 +0000 (09:58 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Jan 2001 09:56:04 +0000 (09:56 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Jan 2001 09:43:36 +0000 (09:43 +0000)]
(copy_internal): Don't allow cp (or mv, when working
across a partition boundary) to overwrite a non-directory with a directory.
Jim Meyering [Wed, 10 Jan 2001 09:42:16 +0000 (09:42 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Jan 2001 09:41:46 +0000 (09:41 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Jan 2001 09:41:41 +0000 (09:41 +0000)]
(TESTS): Add dir-vs-file.
Jim Meyering [Wed, 10 Jan 2001 09:41:15 +0000 (09:41 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Jan 2001 09:40:47 +0000 (09:40 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Jan 2001 09:40:05 +0000 (09:40 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Jan 2001 09:39:57 +0000 (09:39 +0000)]
*** empty log message ***
Jim Meyering [Tue, 9 Jan 2001 23:13:08 +0000 (23:13 +0000)]
*** empty log message ***
Jim Meyering [Tue, 9 Jan 2001 16:13:29 +0000 (16:13 +0000)]
*** empty log message ***
Jim Meyering [Tue, 9 Jan 2001 16:12:59 +0000 (16:12 +0000)]
add comment
Jim Meyering [Tue, 9 Jan 2001 16:07:40 +0000 (16:07 +0000)]
(top_level_src_path, top_level_dst_path): New globals.
(copy_internal): Use them.
(copy): Set them.
Jim Meyering [Tue, 9 Jan 2001 15:50:13 +0000 (15:50 +0000)]
*** empty log message ***
Jim Meyering [Mon, 8 Jan 2001 08:34:52 +0000 (08:34 +0000)]
whoops. move printf args, too
Jim Meyering [Sun, 7 Jan 2001 16:15:37 +0000 (16:15 +0000)]
(usage): Split long message string.
Jim Meyering [Sun, 7 Jan 2001 16:13:34 +0000 (16:13 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Jan 2001 16:13:27 +0000 (16:13 +0000)]
Split a string that was longer than 2048 bytes.
Jim Meyering [Sun, 7 Jan 2001 16:11:14 +0000 (16:11 +0000)]
(usage): Split a string that was longer than 2048 bytes.
Jim Meyering [Sun, 7 Jan 2001 16:10:50 +0000 (16:10 +0000)]
(usage): Split a string that was longer than 2048 bytes.
Jim Meyering [Sun, 7 Jan 2001 16:07:33 +0000 (16:07 +0000)]
back out last, prematurely-committed, change
Jim Meyering [Sun, 7 Jan 2001 16:06:27 +0000 (16:06 +0000)]
Correct the indentation of an `#endif'.
Jim Meyering [Sun, 7 Jan 2001 10:57:29 +0000 (10:57 +0000)]
clean up after commit hook testing
Jim Meyering [Sun, 7 Jan 2001 10:54:06 +0000 (10:54 +0000)]
testing -- commit should fail
Jim Meyering [Sun, 7 Jan 2001 10:52:43 +0000 (10:52 +0000)]
testing -- commit should fail
Jim Meyering [Sun, 7 Jan 2001 10:51:00 +0000 (10:51 +0000)]
testing -- commit should fail
Jim Meyering [Sun, 7 Jan 2001 10:12:25 +0000 (10:12 +0000)]
(usage): Untabify.
Jim Meyering [Sun, 7 Jan 2001 10:12:16 +0000 (10:12 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Jan 2001 09:23:28 +0000 (09:23 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Jan 2001 09:23:18 +0000 (09:23 +0000)]
s/can not/cannot/
Jim Meyering [Sun, 7 Jan 2001 09:21:41 +0000 (09:21 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Jan 2001 09:21:34 +0000 (09:21 +0000)]
(parse_group): Normalize spelling.
Jim Meyering [Sun, 7 Jan 2001 09:20:47 +0000 (09:20 +0000)]
normalize spelling in comment
Jim Meyering [Thu, 4 Jan 2001 17:59:32 +0000 (17:59 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Jan 2001 17:59:22 +0000 (17:59 +0000)]
(main): Fail when --rfc-822 (-R) is specified along
with a format string. Reported by Jochen Hein.
Jim Meyering [Thu, 4 Jan 2001 14:00:07 +0000 (14:00 +0000)]
.
Jim Meyering [Thu, 4 Jan 2001 10:19:49 +0000 (10:19 +0000)]
.
Jim Meyering [Thu, 4 Jan 2001 10:19:43 +0000 (10:19 +0000)]
Sync with glibc time/strftime.c 1.81.
Jim Meyering [Wed, 3 Jan 2001 21:04:52 +0000 (21:04 +0000)]
.
Jim Meyering [Wed, 3 Jan 2001 21:02:08 +0000 (21:02 +0000)]
Use the more precise algorithm of GNU "make" to decide whether
a file is in the future, by looking at high-resolution time
stamps if available.
(TIMESPEC_NS): New macro.
(current_time): Initialize to the minimum value.
(current_time_ns): New var.
(main): Do not bother to initialize current_time;
it's no longer needed.
(get_current_time): New function.
(print_long_format): Use it when a file appears to be in the future.
Get the nanoseconds of the file's time stamp, if available,
and use that to decide whether the file appears to be in the future.
Jim Meyering [Wed, 3 Jan 2001 16:16:56 +0000 (16:16 +0000)]
check for existing behavior
Jim Meyering [Wed, 3 Jan 2001 11:37:46 +0000 (11:37 +0000)]
*** empty log message ***
Jim Meyering [Wed, 3 Jan 2001 11:36:10 +0000 (11:36 +0000)]
(main): Remove embedded \n from diagnostic.
Jim Meyering [Wed, 3 Jan 2001 10:16:14 +0000 (10:16 +0000)]
*** empty log message ***
Jim Meyering [Wed, 3 Jan 2001 10:16:02 +0000 (10:16 +0000)]
(AM_GNU_GETTEXT): Define MKINSTALLDIRS by
expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
so `make install' also works in VPATH builds.
Jim Meyering [Wed, 3 Jan 2001 10:09:08 +0000 (10:09 +0000)]
*** empty log message ***
Jim Meyering [Wed, 3 Jan 2001 10:08:43 +0000 (10:08 +0000)]
(print_unicode_char): Remove `const' from declaration of
local `inptr' to avoid warning with some system declarations of iconv.
Jim Meyering [Wed, 3 Jan 2001 10:06:53 +0000 (10:06 +0000)]
*** empty log message ***
Jim Meyering [Wed, 3 Jan 2001 09:47:20 +0000 (09:47 +0000)]
.
Jim Meyering [Wed, 3 Jan 2001 09:47:09 +0000 (09:47 +0000)]
(long_time_expected_width, print_long_format): Fix
bug: the initial byte passed to strftime wasn't initialized to
a nonzero value after the buffer was reallocated.
Jim Meyering [Wed, 3 Jan 2001 09:45:43 +0000 (09:45 +0000)]
*** empty log message ***
Jim Meyering [Wed, 3 Jan 2001 09:45:32 +0000 (09:45 +0000)]
(install-data-yes): If the package is
fileutils, install LC_TIME as an alias for LC_MESSAGES.
Jim Meyering [Wed, 3 Jan 2001 09:44:56 +0000 (09:44 +0000)]
(dcgettext): New macro.
Jim Meyering [Wed, 3 Jan 2001 09:44:15 +0000 (09:44 +0000)]
(decode_switches): Use dcgettext with LC_TIME,
not plain gettext, to get the translations of time formats.
Jim Meyering [Wed, 3 Jan 2001 09:38:55 +0000 (09:38 +0000)]
.
Jim Meyering [Wed, 3 Jan 2001 09:15:22 +0000 (09:15 +0000)]
(long_time_expected_width): New function.
(print_long_format): Use it, so that we don't assume a
particular width for time stamps in an internationalized
environment.
Jim Meyering [Tue, 2 Jan 2001 15:50:18 +0000 (15:50 +0000)]
*** empty log message ***
Jim Meyering [Tue, 2 Jan 2001 15:48:21 +0000 (15:48 +0000)]
(ulonglong_t): Define place-holder type to avoid some #if directives.
(LONGEST_INTEGRAL_TYPE): Remove definition.
(MAX_INTEGRAL_TYPE_SIZE): Use ulonglong_t instead of LONGEST_INTEGRAL_TYPE.
(print_long_long): Compile this function even on systems without
long long support.
(decode_one_format): Remove #if directive.
Jim Meyering [Tue, 2 Jan 2001 15:31:41 +0000 (15:31 +0000)]
.
Jim Meyering [Tue, 2 Jan 2001 10:55:34 +0000 (10:55 +0000)]
*** empty log message ***
Jim Meyering [Tue, 2 Jan 2001 10:54:55 +0000 (10:54 +0000)]
(decode_one_format): Guard use of print_long_long with
`#if HAVE_UNSIGNED_LONG_LONG'. From Darren Salt.
Change all `#ifdef HAVE_UNSIGNED_LONG_LONG' to use `#if' instead.
Jim Meyering [Tue, 2 Jan 2001 10:44:38 +0000 (10:44 +0000)]
*** empty log message ***
Jim Meyering [Tue, 2 Jan 2001 07:21:36 +0000 (07:21 +0000)]
*** empty log message ***
Jim Meyering [Tue, 2 Jan 2001 07:20:13 +0000 (07:20 +0000)]
*** empty log message ***
Jim Meyering [Tue, 2 Jan 2001 07:19:59 +0000 (07:19 +0000)]
copyright
Jim Meyering [Tue, 2 Jan 2001 07:18:56 +0000 (07:18 +0000)]
(print_long_format):
Report the year for files even slightly in the future.
Avoid overflow problems near Y2038 on 32-bit hosts.
To calculate "six months", take half the average Gregorian
year, not 180 days.
Jim Meyering [Tue, 2 Jan 2001 07:14:47 +0000 (07:14 +0000)]
*** empty log message ***
Jim Meyering [Mon, 1 Jan 2001 18:17:10 +0000 (18:17 +0000)]
.
Jim Meyering [Mon, 1 Jan 2001 18:16:52 +0000 (18:16 +0000)]
(jm_PREREQ_READUTMP): Include utmp.h (if available), even
on systems with utmpx.h. It's necessary for the declaration of utmp's
ut_user member. Reported by Andreas Jaeger.
Jim Meyering [Mon, 1 Jan 2001 18:09:31 +0000 (18:09 +0000)]
.
Jim Meyering [Mon, 1 Jan 2001 18:08:48 +0000 (18:08 +0000)]
(jm_CHECK_DECLS): Include grp.h and pwd.h if available.
They are required for the declarations of getgrgid and getpwuid resp.
(_jm_DECL_HEADERS): Check for grp.h and pwd.h.
Jim Meyering [Mon, 1 Jan 2001 10:59:50 +0000 (10:59 +0000)]
.
Jim Meyering [Mon, 1 Jan 2001 10:52:32 +0000 (10:52 +0000)]
*** empty log message ***
Jim Meyering [Mon, 1 Jan 2001 10:51:32 +0000 (10:51 +0000)]
*** empty log message ***
Jim Meyering [Mon, 1 Jan 2001 10:51:22 +0000 (10:51 +0000)]
(TESTS): Add setgid.
Jim Meyering [Mon, 1 Jan 2001 10:49:52 +0000 (10:49 +0000)]
*** empty log message ***
Jim Meyering [Sun, 31 Dec 2000 13:24:28 +0000 (13:24 +0000)]
*** empty log message ***
Jim Meyering [Sun, 31 Dec 2000 12:15:42 +0000 (12:15 +0000)]
(AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
can be used in subdirectories.
Jim Meyering [Sun, 31 Dec 2000 12:12:41 +0000 (12:12 +0000)]
*** empty log message ***
Jim Meyering [Sun, 31 Dec 2000 09:51:50 +0000 (09:51 +0000)]
.
Jim Meyering [Sun, 31 Dec 2000 09:49:33 +0000 (09:49 +0000)]
.
Jim Meyering [Sun, 31 Dec 2000 09:49:23 +0000 (09:49 +0000)]
File renamed from tests/sticky-check.
All uses of "sticky" changed to "setgid".
Jim Meyering [Sun, 31 Dec 2000 09:48:35 +0000 (09:48 +0000)]
sticky-check -> setgid-check
Jim Meyering [Sun, 31 Dec 2000 09:48:10 +0000 (09:48 +0000)]
sticky-check -> setgid-check
Jim Meyering [Sun, 31 Dec 2000 09:46:15 +0000 (09:46 +0000)]
sticky-check -> setgid-check
Jim Meyering [Sun, 31 Dec 2000 09:21:28 +0000 (09:21 +0000)]
*** empty log message ***
Jim Meyering [Sun, 31 Dec 2000 09:19:25 +0000 (09:19 +0000)]
.
Jim Meyering [Sun, 31 Dec 2000 09:17:00 +0000 (09:17 +0000)]
(TESTS): Add deref-slink.
Jim Meyering [Sun, 31 Dec 2000 09:15:44 +0000 (09:15 +0000)]
New file. Test for the bug fixed by my 2000-12-28 change to copy.c.
Jim Meyering [Sun, 31 Dec 2000 09:06:54 +0000 (09:06 +0000)]
Improve performance by invoking gettext twice at the start,
instead of once for each file.
(long_time_format): New var.
(decode_switches): Initialize it, if format == long_format.
(print_long_format): Use it.
Jim Meyering [Sun, 31 Dec 2000 08:55:58 +0000 (08:55 +0000)]
*** empty log message ***
Jim Meyering [Sun, 31 Dec 2000 08:55:41 +0000 (08:55 +0000)]
(print_long_format): Don't dump core if strftime returns the empty string.