platform/upstream/coreutils.git
23 years agoadd comment
Jim Meyering [Tue, 9 Jan 2001 16:12:59 +0000 (16:12 +0000)]
add comment

23 years ago(top_level_src_path, top_level_dst_path): New globals.
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.

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

23 years agowhoops. move printf args, too
Jim Meyering [Mon, 8 Jan 2001 08:34:52 +0000 (08:34 +0000)]
whoops.  move printf args, too

23 years ago(usage): Split long message string.
Jim Meyering [Sun, 7 Jan 2001 16:15:37 +0000 (16:15 +0000)]
(usage): Split long message string.

23 years ago*** empty log message ***
Jim Meyering [Sun, 7 Jan 2001 16:13:34 +0000 (16:13 +0000)]
*** empty log message ***

23 years agoSplit a string that was longer than 2048 bytes.
Jim Meyering [Sun, 7 Jan 2001 16:13:27 +0000 (16:13 +0000)]
Split a string that was longer than 2048 bytes.

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

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

23 years agoback out last, prematurely-committed, change
Jim Meyering [Sun, 7 Jan 2001 16:07:33 +0000 (16:07 +0000)]
back out last, prematurely-committed, change

23 years agoCorrect the indentation of an `#endif'.
Jim Meyering [Sun, 7 Jan 2001 16:06:27 +0000 (16:06 +0000)]
Correct the indentation of an `#endif'.

23 years agoclean up after commit hook testing
Jim Meyering [Sun, 7 Jan 2001 10:57:29 +0000 (10:57 +0000)]
clean up after commit hook testing

23 years agotesting -- commit should fail
Jim Meyering [Sun, 7 Jan 2001 10:54:06 +0000 (10:54 +0000)]
testing -- commit should fail

23 years agotesting -- commit should fail
Jim Meyering [Sun, 7 Jan 2001 10:52:43 +0000 (10:52 +0000)]
testing -- commit should fail

23 years agotesting -- commit should fail
Jim Meyering [Sun, 7 Jan 2001 10:51:00 +0000 (10:51 +0000)]
testing -- commit should fail

23 years ago(usage): Untabify.
Jim Meyering [Sun, 7 Jan 2001 10:12:25 +0000 (10:12 +0000)]
(usage): Untabify.

23 years ago*** empty log message ***
Jim Meyering [Sun, 7 Jan 2001 10:12:16 +0000 (10:12 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 7 Jan 2001 09:23:28 +0000 (09:23 +0000)]
*** empty log message ***

23 years agos/can not/cannot/
Jim Meyering [Sun, 7 Jan 2001 09:23:18 +0000 (09:23 +0000)]
s/can not/cannot/

23 years ago*** empty log message ***
Jim Meyering [Sun, 7 Jan 2001 09:21:41 +0000 (09:21 +0000)]
*** empty log message ***

23 years ago(parse_group): Normalize spelling.
Jim Meyering [Sun, 7 Jan 2001 09:21:34 +0000 (09:21 +0000)]
(parse_group): Normalize spelling.

23 years agonormalize spelling in comment
Jim Meyering [Sun, 7 Jan 2001 09:20:47 +0000 (09:20 +0000)]
normalize spelling in comment

23 years ago*** empty log message ***
Jim Meyering [Thu, 4 Jan 2001 17:59:32 +0000 (17:59 +0000)]
*** empty log message ***

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.

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

24 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.

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

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

24 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.

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

24 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.

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

24 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.

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

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

24 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.

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

24 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.

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

24 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.

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

24 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.

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

24 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.

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

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

24 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.

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

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

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

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

24 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.

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

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

24 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.

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

24 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.

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

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

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

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

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

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

24 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.

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

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

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

24 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".

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

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

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

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

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

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

24 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.

24 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.

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

24 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.

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

24 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.

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

24 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.

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

24 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.

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

24 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.

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

24 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.

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

24 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.

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

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

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

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

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

24 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/.

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