platform/upstream/coreutils.git
24 years agoDon't copy `out' into /tmp.
Jim Meyering [Wed, 28 Jun 2000 14:06:30 +0000 (14:06 +0000)]
Don't copy `out' into /tmp.

24 years ago.
Jim Meyering [Tue, 27 Jun 2000 13:23:13 +0000 (13:23 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 13:13:13 +0000 (13:13 +0000)]
*** empty log message ***

24 years ago(count_entry): Don't set errno before
Jim Meyering [Tue, 27 Jun 2000 13:12:12 +0000 (13:12 +0000)]
(count_entry): Don't set errno before
invoking savedir, and assume that errno is nonzero if savedir fails.

24 years ago(copy_dir): Don't set errno before
Jim Meyering [Tue, 27 Jun 2000 13:11:36 +0000 (13:11 +0000)]
(copy_dir): Don't set errno before
invoking savedir, and assume that errno is nonzero if savedir fails.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 13:11:00 +0000 (13:11 +0000)]
*** empty log message ***

24 years ago(change_dir_mode): Don't set errno before
Jim Meyering [Tue, 27 Jun 2000 13:10:50 +0000 (13:10 +0000)]
(change_dir_mode): Don't set errno before
invoking savedir, and assume that errno is nonzero if savedir fails.

24 years ago(change_dir_owner): Don't set errno before
Jim Meyering [Tue, 27 Jun 2000 13:10:24 +0000 (13:10 +0000)]
(change_dir_owner): Don't set errno before
invoking savedir, and assume that errno is nonzero if savedir fails.

24 years ago(change_dir_group): Don't set errno before
Jim Meyering [Tue, 27 Jun 2000 13:09:57 +0000 (13:09 +0000)]
(change_dir_group): Don't set errno before
invoking savedir, and assume that errno is nonzero if savedir fails.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 11:21:03 +0000 (11:21 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Tue, 27 Jun 2000 10:10:13 +0000 (10:10 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 10:09:54 +0000 (10:09 +0000)]
*** empty log message ***

24 years ago(libfetish_a_SOURCES): Remove readutmp.c.
Jim Meyering [Tue, 27 Jun 2000 10:09:49 +0000 (10:09 +0000)]
(libfetish_a_SOURCES): Remove readutmp.c.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 10:08:15 +0000 (10:08 +0000)]
*** empty log message ***

24 years ago(jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
Jim Meyering [Tue, 27 Jun 2000 10:08:09 +0000 (10:08 +0000)]
(jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
<utmpx.h> exists, put readutmp.o into LIBOBJS.

24 years ago(_jm_DECL_HEADERS): Check for utmp.h as well.
Jim Meyering [Tue, 27 Jun 2000 10:01:30 +0000 (10:01 +0000)]
(_jm_DECL_HEADERS): Check for utmp.h as well.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 07:08:52 +0000 (07:08 +0000)]
*** empty log message ***

24 years agosavedir now sets errno on failure and invokes xmalloc to get memory.
Jim Meyering [Tue, 27 Jun 2000 07:08:48 +0000 (07:08 +0000)]
savedir now sets errno on failure and invokes xmalloc to get memory.
Fix a couple of other minor bugs while we're at it.

(<unistd.h>): Do not include; there's no need.
(NAMLEN): Remove macro.
(malloc, realloc): Remove decls.
(stpcpy): Likewise.
("xalloc.h"): Include.
(NAME_SIZE_DEFAULT): New macro.
(savedir): Use xmalloc / xrealloc to allocate memory.
Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
Skip "" directory entries.
Use strlen to calculate directory entry length, since the old method
is rarely used these days and isn't worth supporting.
Don't use a pointer after freeing it.
Check for integer overflow when calculating allocation size.
Use memcpy to copy entries, instead of stpcpy.
Set errno properly when returning NULL.
Check for readdir error.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 06:33:35 +0000 (06:33 +0000)]
*** empty log message ***

24 years ago(show_dev): Round disk usage percentage up, not to nearest value.
Jim Meyering [Tue, 27 Jun 2000 06:33:31 +0000 (06:33 +0000)]
(show_dev): Round disk usage percentage up, not to nearest value.
Use integer arithmetic if it's easy.
Fix bug when converting twos-complement negative values to floating point.

24 years ago*** empty log message ***
Jim Meyering [Mon, 26 Jun 2000 13:48:40 +0000 (13:48 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 26 Jun 2000 13:30:59 +0000 (13:30 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 26 Jun 2000 10:55:57 +0000 (10:55 +0000)]
*** empty log message ***

24 years ago[HAVE_STDLIB_H]: Include stdlib.h.
Jim Meyering [Mon, 26 Jun 2000 10:55:18 +0000 (10:55 +0000)]
[HAVE_STDLIB_H]: Include stdlib.h.

24 years ago*** empty log message ***
Jim Meyering [Mon, 26 Jun 2000 06:33:22 +0000 (06:33 +0000)]
*** empty log message ***

24 years ago`id -Gn' (invoked by groups) would fail without giving a diagnostic
Jim Meyering [Mon, 26 Jun 2000 06:32:58 +0000 (06:32 +0000)]
`id -Gn' (invoked by groups) would fail without giving a diagnostic
on malconfigured systems.
(print_user): Give a diagnostic if number->name lookup fails.
(print_group): Likewise.

24 years ago*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 21:19:41 +0000 (21:19 +0000)]
*** empty log message ***

24 years ago(xmalloc, xrealloc): Remove functions.
Jim Meyering [Sun, 25 Jun 2000 21:17:32 +0000 (21:17 +0000)]
(xmalloc, xrealloc): Remove functions.
Include xalloc.h.
Don't include <stdlib.h>.  Don't declare malloc, realloc.

24 years ago*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 21:03:05 +0000 (21:03 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 20:20:28 +0000 (20:20 +0000)]
*** empty log message ***

24 years ago(TESTS): Add fail-perm.
Jim Meyering [Sun, 25 Jun 2000 20:20:23 +0000 (20:20 +0000)]
(TESTS): Add fail-perm.

24 years ago*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 20:19:52 +0000 (20:19 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 20:15:22 +0000 (20:15 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 15:58:47 +0000 (15:58 +0000)]
*** empty log message ***

24 years ago(copy_internal): Don't return return immediately after a
Jim Meyering [Sun, 25 Jun 2000 15:50:51 +0000 (15:50 +0000)]
(copy_internal): Don't return return immediately after a
failed copy_dir call -- otherwise, the failure to read a single file
in a source directory would cause the containing destination directory
not to have owner/perms set properly.  Reported by Piotr Kwapulinski.

24 years ago*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 15:50:38 +0000 (15:50 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 15:50:29 +0000 (15:50 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 15:49:21 +0000 (15:49 +0000)]
*** empty log message ***

24 years ago*** empty log message *** FILEUTILS-4_0v
Jim Meyering [Sun, 25 Jun 2000 14:15:22 +0000 (14:15 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 08:49:02 +0000 (08:49 +0000)]
*** empty log message ***

24 years agoInclude stdio.h before wchar.h to work around
Jim Meyering [Sun, 25 Jun 2000 08:48:58 +0000 (08:48 +0000)]
Include stdio.h before wchar.h to work around
Linux header bug when _XOPEN_SOURCE is defined to 500.

24 years ago*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 06:54:36 +0000 (06:54 +0000)]
*** empty log message ***

24 years ago(print_unicode_char): Work around ansi2knr deficiency.
Jim Meyering [Sun, 25 Jun 2000 06:54:32 +0000 (06:54 +0000)]
(print_unicode_char): Work around ansi2knr deficiency.

24 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jun 2000 21:05:11 +0000 (21:05 +0000)]
*** empty log message ***

24 years agoIf the compile-test says
Jim Meyering [Sat, 24 Jun 2000 21:04:44 +0000 (21:04 +0000)]
If the compile-test says
strerror_r doesn't work, then resort to a `run'-test that works on
BeOS and segfaults on DEC Unix.

24 years agocheck for decl unconditionally
Jim Meyering [Sat, 24 Jun 2000 14:03:10 +0000 (14:03 +0000)]
check for decl unconditionally

24 years ago.
Jim Meyering [Sat, 24 Jun 2000 12:25:39 +0000 (12:25 +0000)]
.

24 years ago.
Jim Meyering [Sat, 24 Jun 2000 12:21:52 +0000 (12:21 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jun 2000 12:05:18 +0000 (12:05 +0000)]
*** empty log message ***

24 years agoRevive this file -- to try out an experimental
Jim Meyering [Sat, 24 Jun 2000 12:05:08 +0000 (12:05 +0000)]
Revive this file -- to try out an experimental
version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
for which strerror does return char*, but which lacks a conveniently
accessible declaration of the function.

24 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jun 2000 12:01:29 +0000 (12:01 +0000)]
*** empty log message ***

24 years ago[!HAVE_DECL_STRERROR_R]: Declare strerror_r.
Jim Meyering [Sat, 24 Jun 2000 12:01:03 +0000 (12:01 +0000)]
[!HAVE_DECL_STRERROR_R]: Declare strerror_r.

24 years agoLots of minor rewording and grammar correction.
Jim Meyering [Sat, 24 Jun 2000 11:53:51 +0000 (11:53 +0000)]
Lots of minor rewording and grammar correction.
From Brian Youmans.

24 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jun 2000 11:52:38 +0000 (11:52 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jun 2000 07:38:05 +0000 (07:38 +0000)]
*** empty log message ***

24 years agotweak copyright
Jim Meyering [Sat, 24 Jun 2000 07:37:55 +0000 (07:37 +0000)]
tweak copyright

24 years ago(sysv_sum_file): Avoid overflowing 32-bit accumulator
Jim Meyering [Sat, 24 Jun 2000 07:37:44 +0000 (07:37 +0000)]
(sysv_sum_file): Avoid overflowing 32-bit accumulator
on files larger than 256 MB.

24 years ago.
Jim Meyering [Sat, 24 Jun 2000 07:36:54 +0000 (07:36 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jun 2000 07:36:14 +0000 (07:36 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jun 2000 07:18:29 +0000 (07:18 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jun 2000 07:13:07 +0000 (07:13 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jun 2000 07:12:56 +0000 (07:12 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Fri, 23 Jun 2000 21:09:12 +0000 (21:09 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Fri, 23 Jun 2000 21:06:45 +0000 (21:06 +0000)]
*** empty log message ***

24 years agoInclude <wctype.h> after <wchar.h>,
Jim Meyering [Fri, 23 Jun 2000 21:05:50 +0000 (21:05 +0000)]
Include <wctype.h> after <wchar.h>,
for Solaris 2.5.
(mbrtowc, mbstate_t): Define substitutes if
HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
(iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).

24 years ago*** empty log message ***
Jim Meyering [Fri, 23 Jun 2000 21:03:06 +0000 (21:03 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Fri, 23 Jun 2000 21:02:23 +0000 (21:02 +0000)]
*** empty log message ***

24 years ago(jm_PREREQ_QUOTEARG): Use AC_MBSTATE_T_OBJECT. Add check for iswprint.
Jim Meyering [Fri, 23 Jun 2000 21:02:15 +0000 (21:02 +0000)]
(jm_PREREQ_QUOTEARG): Use AC_MBSTATE_T_OBJECT.  Add check for iswprint.

24 years agoNew file, defining AC_MBSTATE_T_OBJECT.
Jim Meyering [Fri, 23 Jun 2000 21:00:53 +0000 (21:00 +0000)]
New file, defining AC_MBSTATE_T_OBJECT.

24 years ago*** empty log message ***
Jim Meyering [Fri, 23 Jun 2000 14:03:02 +0000 (14:03 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Fri, 23 Jun 2000 13:50:42 +0000 (13:50 +0000)]
*** empty log message ***

24 years agoAdd missing AC_MSG_RESULT.
Jim Meyering [Fri, 23 Jun 2000 13:49:17 +0000 (13:49 +0000)]
Add missing AC_MSG_RESULT.
Reported by Bruno Haible.

24 years agos/AC_MSG_CHECKING/AC_CHECKING/.
Jim Meyering [Fri, 23 Jun 2000 13:43:41 +0000 (13:43 +0000)]
s/AC_MSG_CHECKING/AC_CHECKING/.
Suggestion from Bruno Haible.

24 years ago*** empty log message ***
Jim Meyering [Thu, 22 Jun 2000 17:10:56 +0000 (17:10 +0000)]
*** empty log message ***

24 years ago(main): Correct a comment.
Jim Meyering [Thu, 22 Jun 2000 17:10:51 +0000 (17:10 +0000)]
(main): Correct a comment.

24 years ago*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 20:23:21 +0000 (20:23 +0000)]
*** empty log message ***

24 years ago(AC_REPLACE_FUNCS): Add getpass.
Jim Meyering [Wed, 21 Jun 2000 20:23:14 +0000 (20:23 +0000)]
(AC_REPLACE_FUNCS): Add getpass.

24 years agoansideclify
Jim Meyering [Wed, 21 Jun 2000 20:21:03 +0000 (20:21 +0000)]
ansideclify

24 years agoNew file, from Bruno Haible. Required for BeOS.
Jim Meyering [Wed, 21 Jun 2000 20:20:27 +0000 (20:20 +0000)]
New file, from Bruno Haible.  Required for BeOS.

24 years ago*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 20:16:10 +0000 (20:16 +0000)]
*** empty log message ***

24 years ago(xgetcwd): If the required pathname length is smaller
Jim Meyering [Wed, 21 Jun 2000 20:16:03 +0000 (20:16 +0000)]
(xgetcwd): If the required pathname length is smaller
than 1024, return a memory chunk of least possible size, instead
of size PATH_MAX + 2. In the loop, increment the size proportionally.
Use free/xmalloc instead of xrealloc to avoid copying for very long paths.

24 years ago*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 14:47:04 +0000 (14:47 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 13:00:54 +0000 (13:00 +0000)]
*** empty log message ***

24 years ago(canon_host): Use malloc and memcpy to copy an
Jim Meyering [Wed, 21 Jun 2000 13:00:49 +0000 (13:00 +0000)]
(canon_host): Use malloc and memcpy to copy an
address, not strdup.  Include <stdlib.h> and don't declare free().

24 years ago*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 12:56:40 +0000 (12:56 +0000)]
*** empty log message ***

24 years ago(path_concat): Don't access dir[-1] if dir is the empty string.
Jim Meyering [Wed, 21 Jun 2000 12:56:33 +0000 (12:56 +0000)]
(path_concat): Don't access dir[-1] if dir is the empty string.

24 years agoinclude getstr.h
Jim Meyering [Wed, 21 Jun 2000 09:56:42 +0000 (09:56 +0000)]
include getstr.h

24 years ago*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 09:21:52 +0000 (09:21 +0000)]
*** empty log message ***

24 years ago(libfetish_a_SOURCES): Add getstr.c.
Jim Meyering [Wed, 21 Jun 2000 09:21:22 +0000 (09:21 +0000)]
(libfetish_a_SOURCES): Add getstr.c.
(noinst_HEADERS): Add getstr.h.

24 years ago(getstr): Remove private (and out of date) version of this function.
Jim Meyering [Wed, 21 Jun 2000 09:20:40 +0000 (09:20 +0000)]
(getstr): Remove private (and out of date) version of this function.
(cut_fields): Adjust caller to use the just-extended one in ../lib.

24 years ago*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 09:20:23 +0000 (09:20 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 09:16:21 +0000 (09:16 +0000)]
*** empty log message ***

24 years ago(getstr): Move into a separate file.
Jim Meyering [Wed, 21 Jun 2000 09:12:30 +0000 (09:12 +0000)]
(getstr): Move into a separate file.

24 years agocopyright date
Jim Meyering [Wed, 21 Jun 2000 09:10:32 +0000 (09:10 +0000)]
copyright date

24 years ago*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 09:09:57 +0000 (09:09 +0000)]
*** empty log message ***

24 years agoNew file, extracted from getline.c, with the following
Jim Meyering [Wed, 21 Jun 2000 09:09:22 +0000 (09:09 +0000)]
New file, extracted from getline.c, with the following
changes: new parameter, delim2; both delim[12] parameters have type
`int', not `char'.  The latter would lose with 8-bit delimiters.

24 years ago*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 09:02:48 +0000 (09:02 +0000)]
*** empty log message ***

24 years agoNew test for that.
Jim Meyering [Wed, 21 Jun 2000 09:02:42 +0000 (09:02 +0000)]
New test for that.

24 years ago(valid_options): Don't segfault on `stty erase -'.
Jim Meyering [Wed, 21 Jun 2000 07:29:03 +0000 (07:29 +0000)]
(valid_options): Don't segfault on `stty erase -'.

24 years ago*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 07:28:13 +0000 (07:28 +0000)]
*** empty log message ***