platform/upstream/coreutils.git
23 years ago(main): Fail when --rfc-822 (-R) is specified along
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.

23 years ago.
Jim Meyering [Thu, 4 Jan 2001 14:00:07 +0000 (14:00 +0000)]
.

23 years ago.
Jim Meyering [Thu, 4 Jan 2001 10:19:49 +0000 (10:19 +0000)]
.

23 years agoSync with glibc time/strftime.c 1.81.
Jim Meyering [Thu, 4 Jan 2001 10:19:43 +0000 (10:19 +0000)]
Sync with glibc time/strftime.c 1.81.

23 years ago.
Jim Meyering [Wed, 3 Jan 2001 21:04:52 +0000 (21:04 +0000)]
.

23 years agoUse the more precise algorithm of GNU "make" to decide whether
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.

23 years agocheck for existing behavior
Jim Meyering [Wed, 3 Jan 2001 16:16:56 +0000 (16:16 +0000)]
check for existing behavior

23 years ago*** empty log message ***
Jim Meyering [Wed, 3 Jan 2001 11:37:46 +0000 (11:37 +0000)]
*** empty log message ***

23 years ago(main): Remove embedded \n from diagnostic.
Jim Meyering [Wed, 3 Jan 2001 11:36:10 +0000 (11:36 +0000)]
(main): Remove embedded \n from diagnostic.

23 years ago*** empty log message ***
Jim Meyering [Wed, 3 Jan 2001 10:16:14 +0000 (10:16 +0000)]
*** empty log message ***

23 years ago(AM_GNU_GETTEXT): Define MKINSTALLDIRS by
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.

23 years ago*** empty log message ***
Jim Meyering [Wed, 3 Jan 2001 10:09:08 +0000 (10:09 +0000)]
*** empty log message ***

23 years ago(print_unicode_char): Remove `const' from declaration of
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.

23 years ago*** empty log message ***
Jim Meyering [Wed, 3 Jan 2001 10:06:53 +0000 (10:06 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Wed, 3 Jan 2001 09:47:20 +0000 (09:47 +0000)]
.

23 years ago(long_time_expected_width, print_long_format): Fix
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.

23 years ago*** empty log message ***
Jim Meyering [Wed, 3 Jan 2001 09:45:43 +0000 (09:45 +0000)]
*** empty log message ***

23 years ago(install-data-yes): If the package is
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.

23 years ago(dcgettext): New macro.
Jim Meyering [Wed, 3 Jan 2001 09:44:56 +0000 (09:44 +0000)]
(dcgettext): New macro.

23 years ago(decode_switches): Use dcgettext with LC_TIME,
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.

23 years ago.
Jim Meyering [Wed, 3 Jan 2001 09:38:55 +0000 (09:38 +0000)]
.

23 years ago(long_time_expected_width): New function.
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.

23 years ago*** empty log message ***
Jim Meyering [Tue, 2 Jan 2001 15:50:18 +0000 (15:50 +0000)]
*** empty log message ***

23 years ago(ulonglong_t): Define place-holder type to avoid some #if directives.
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.

23 years ago.
Jim Meyering [Tue, 2 Jan 2001 15:31:41 +0000 (15:31 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Tue, 2 Jan 2001 10:55:34 +0000 (10:55 +0000)]
*** empty log message ***

23 years ago(decode_one_format): Guard use of print_long_long with
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.

23 years ago*** empty log message ***
Jim Meyering [Tue, 2 Jan 2001 10:44:38 +0000 (10:44 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Tue, 2 Jan 2001 07:21:36 +0000 (07:21 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Tue, 2 Jan 2001 07:20:13 +0000 (07:20 +0000)]
*** empty log message ***

23 years agocopyright
Jim Meyering [Tue, 2 Jan 2001 07:19:59 +0000 (07:19 +0000)]
copyright

23 years ago(print_long_format):
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.

23 years ago*** empty log message ***
Jim Meyering [Tue, 2 Jan 2001 07:14:47 +0000 (07:14 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Mon, 1 Jan 2001 18:17:10 +0000 (18:17 +0000)]
.

23 years ago(jm_PREREQ_READUTMP): Include utmp.h (if available), even
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.

23 years ago.
Jim Meyering [Mon, 1 Jan 2001 18:09:31 +0000 (18:09 +0000)]
.

23 years ago(jm_CHECK_DECLS): Include grp.h and pwd.h if available.
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.

23 years ago.
Jim Meyering [Mon, 1 Jan 2001 10:59:50 +0000 (10:59 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Mon, 1 Jan 2001 10:52:32 +0000 (10:52 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Mon, 1 Jan 2001 10:51:32 +0000 (10:51 +0000)]
*** empty log message ***

23 years ago(TESTS): Add setgid.
Jim Meyering [Mon, 1 Jan 2001 10:51:22 +0000 (10:51 +0000)]
(TESTS): Add setgid.

23 years ago*** empty log message ***
Jim Meyering [Mon, 1 Jan 2001 10:49:52 +0000 (10:49 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 31 Dec 2000 13:24:28 +0000 (13:24 +0000)]
*** empty log message ***

23 years ago(AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
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.

23 years ago*** empty log message ***
Jim Meyering [Sun, 31 Dec 2000 12:12:41 +0000 (12:12 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Sun, 31 Dec 2000 09:51:50 +0000 (09:51 +0000)]
.

23 years ago.
Jim Meyering [Sun, 31 Dec 2000 09:49:33 +0000 (09:49 +0000)]
.

23 years agoFile renamed from tests/sticky-check.
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".

23 years agosticky-check -> setgid-check
Jim Meyering [Sun, 31 Dec 2000 09:48:35 +0000 (09:48 +0000)]
sticky-check -> setgid-check

23 years agosticky-check -> setgid-check
Jim Meyering [Sun, 31 Dec 2000 09:48:10 +0000 (09:48 +0000)]
sticky-check -> setgid-check

23 years agosticky-check -> setgid-check
Jim Meyering [Sun, 31 Dec 2000 09:46:15 +0000 (09:46 +0000)]
sticky-check -> setgid-check

23 years ago*** empty log message ***
Jim Meyering [Sun, 31 Dec 2000 09:21:28 +0000 (09:21 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Sun, 31 Dec 2000 09:19:25 +0000 (09:19 +0000)]
.

23 years ago(TESTS): Add deref-slink.
Jim Meyering [Sun, 31 Dec 2000 09:17:00 +0000 (09:17 +0000)]
(TESTS): Add deref-slink.

23 years agoNew file. Test for the bug fixed by my 2000-12-28 change to copy.c.
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.

23 years agoImprove performance by invoking gettext twice at the start,
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.

23 years ago*** empty log message ***
Jim Meyering [Sun, 31 Dec 2000 08:55:58 +0000 (08:55 +0000)]
*** empty log message ***

23 years ago(print_long_format): Don't dump core if strftime returns the empty string.
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.

23 years ago*** empty log message ***
Jim Meyering [Sun, 31 Dec 2000 08:33:59 +0000 (08:33 +0000)]
*** empty log message ***

23 years ago(gobble_file): If not using long format, don't invoke acl; it's not needed.
Jim Meyering [Sun, 31 Dec 2000 08:33:49 +0000 (08:33 +0000)]
(gobble_file): If not using long format, don't invoke acl; it's not needed.

23 years ago*** empty log message ***
Jim Meyering [Sun, 31 Dec 2000 08:30:28 +0000 (08:30 +0000)]
*** empty log message ***

23 years agoAvoid an unnecessary `stat' when using --dereference.
Jim Meyering [Sun, 31 Dec 2000 08:29:17 +0000 (08:29 +0000)]
Avoid an unnecessary `stat' when using --dereference.

(same_file_ok): Use stat only if lstat reported that
the file was a symbolic link.

23 years ago*** empty log message ***
Jim Meyering [Sat, 30 Dec 2000 16:51:42 +0000 (16:51 +0000)]
*** empty log message ***

23 years agoappend-only directories -> restricted deletion flag,
Jim Meyering [Sat, 30 Dec 2000 16:51:24 +0000 (16:51 +0000)]
append-only directories -> restricted deletion flag,
which is the term that POSIX d5 uses for this notion.

23 years ago*** empty log message ***
Jim Meyering [Fri, 29 Dec 2000 10:32:33 +0000 (10:32 +0000)]
*** empty log message ***

23 years agoDo not assume that mode_t uses the
Jim Meyering [Fri, 29 Dec 2000 10:32:09 +0000 (10:32 +0000)]
Do not assume that mode_t uses the
traditional octal encoding.  E.g. "chmod 1 FOO" should set
the other-execute bit of FOO even if S_IXOTH != 1.

(SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
WOTH, XOTH, ALLM): New macros.
(S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
Use them.
(S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
(S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
(mode_compile):
No need to use uintmax_t; unsigned long is long enough.
Don't bother to get suffix since we don't use it.

23 years ago*** empty log message ***
Jim Meyering [Fri, 29 Dec 2000 08:58:38 +0000 (08:58 +0000)]
*** empty log message ***

23 years agoTry /usr/xpg4/bin/id (Solaris 7) if plain 'id' doesn't work.
Jim Meyering [Fri, 29 Dec 2000 08:58:25 +0000 (08:58 +0000)]
Try /usr/xpg4/bin/id (Solaris 7) if plain 'id' doesn't work.

23 years ago.
Jim Meyering [Thu, 28 Dec 2000 14:43:13 +0000 (14:43 +0000)]
.

23 years agoRun sticky-check from just-created directory.
Jim Meyering [Thu, 28 Dec 2000 14:40:15 +0000 (14:40 +0000)]
Run sticky-check from just-created directory.

23 years ago*** empty log message ***
Jim Meyering [Thu, 28 Dec 2000 13:35:28 +0000 (13:35 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Thu, 28 Dec 2000 13:17:02 +0000 (13:17 +0000)]
.

23 years agotweak comment
Jim Meyering [Thu, 28 Dec 2000 11:52:28 +0000 (11:52 +0000)]
tweak comment

23 years agotweak comment
Jim Meyering [Thu, 28 Dec 2000 11:31:44 +0000 (11:31 +0000)]
tweak comment

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

23 years ago(same_file_ok): Fix *another* typo from my 2000-09-03 change: s/tmp_dst_sb/tmp_src_sb/.
Jim Meyering [Thu, 28 Dec 2000 11:22:59 +0000 (11:22 +0000)]
(same_file_ok): Fix *another* typo from my 2000-09-03 change: s/tmp_dst_sb/tmp_src_sb/.

23 years ago*** empty log message ***
Jim Meyering [Thu, 28 Dec 2000 09:53:58 +0000 (09:53 +0000)]
*** empty log message ***

23 years ago(same_file_ok): Fix typo from my 2000-09-03 change: s/tmp_dst_sb/tmp_src_sb/.
Jim Meyering [Thu, 28 Dec 2000 09:53:34 +0000 (09:53 +0000)]
(same_file_ok): Fix typo from my 2000-09-03 change: s/tmp_dst_sb/tmp_src_sb/.

23 years ago(same_file_ok): Use a single auto var for
Jim Meyering [Thu, 28 Dec 2000 09:42:06 +0000 (09:42 +0000)]
(same_file_ok): Use a single auto var for
tmp_dst_sb, instead of two static vars.
Likewise for tmp_src_sb.

23 years ago*** empty log message ***
Jim Meyering [Thu, 28 Dec 2000 09:41:39 +0000 (09:41 +0000)]
*** empty log message ***

23 years ago. FILEUTILS-4_0_35
Jim Meyering [Wed, 27 Dec 2000 10:05:05 +0000 (10:05 +0000)]
.

23 years ago.
Jim Meyering [Wed, 27 Dec 2000 07:47:08 +0000 (07:47 +0000)]
.

23 years ago.
Jim Meyering [Wed, 27 Dec 2000 07:46:47 +0000 (07:46 +0000)]
.

23 years agouse AC_DEFINE_UNQUOTED
Jim Meyering [Wed, 27 Dec 2000 07:46:35 +0000 (07:46 +0000)]
use AC_DEFINE_UNQUOTED

23 years ago(jm_AC_DOS): Rewrite (though it's still a stub) to work better with autoheader.
Jim Meyering [Tue, 26 Dec 2000 18:57:53 +0000 (18:57 +0000)]
(jm_AC_DOS): Rewrite (though it's still a stub) to work better with autoheader.

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

23 years ago*** empty log message ***
Jim Meyering [Tue, 26 Dec 2000 09:39:17 +0000 (09:39 +0000)]
*** empty log message ***

23 years agotweak comment, white space
Jim Meyering [Tue, 26 Dec 2000 09:36:36 +0000 (09:36 +0000)]
tweak comment, white space

23 years ago*** empty log message ***
Jim Meyering [Tue, 26 Dec 2000 08:51:59 +0000 (08:51 +0000)]
*** empty log message ***

23 years agoDisable the test if the working directory has the sticky bit set.
Jim Meyering [Tue, 26 Dec 2000 08:51:51 +0000 (08:51 +0000)]
Disable the test if the working directory has the sticky bit set.

23 years ago*** empty log message ***
Jim Meyering [Tue, 26 Dec 2000 08:43:15 +0000 (08:43 +0000)]
*** empty log message ***

23 years agoDisable the test if the working directory has the sticky bit set.
Jim Meyering [Tue, 26 Dec 2000 08:43:03 +0000 (08:43 +0000)]
Disable the test if the working directory has the sticky bit set.

23 years agoadd omitted semicolon
Jim Meyering [Mon, 25 Dec 2000 18:51:58 +0000 (18:51 +0000)]
add omitted semicolon

23 years ago*** empty log message ***
Jim Meyering [Mon, 25 Dec 2000 18:38:19 +0000 (18:38 +0000)]
*** empty log message ***

23 years ago(same_file_ok): Remove declaration and set of unused
Jim Meyering [Mon, 25 Dec 2000 18:35:16 +0000 (18:35 +0000)]
(same_file_ok): Remove declaration and set of unused
variables: src_sb_no_link, dst_sb_no_link.

23 years ago*** empty log message ***
Jim Meyering [Mon, 25 Dec 2000 18:31:25 +0000 (18:31 +0000)]
*** empty log message ***

23 years agoAdd a test for this (for all of cp, mv, ln, install).
Jim Meyering [Mon, 25 Dec 2000 18:31:18 +0000 (18:31 +0000)]
Add a test for this (for all of cp, mv, ln, install).

23 years agoFor both ln and install, when using `--backup=simple --suffix=S',
Jim Meyering [Mon, 25 Dec 2000 11:07:20 +0000 (11:07 +0000)]
For both ln and install, when using `--backup=simple --suffix=S',
the suffix `S' wasn't used.

(main): Actually use the local variable, `backup_suffix_string'.

23 years ago*** empty log message ***
Jim Meyering [Mon, 25 Dec 2000 10:45:20 +0000 (10:45 +0000)]
*** empty log message ***

23 years ago(hash_compare_active_dir_ents): Return explicit `true'
Jim Meyering [Mon, 25 Dec 2000 10:45:10 +0000 (10:45 +0000)]
(hash_compare_active_dir_ents): Return explicit `true'
or `false', rather than relying on implicit int-to-enum cast.