platform/upstream/coreutils.git
24 years ago`mkdir -p' would create parent directories with permissions
Jim Meyering [Tue, 31 Oct 2000 19:25:50 +0000 (19:25 +0000)]
`mkdir -p' would create parent directories with permissions
that did not account for the umask. [introduced with the
2000-09-30 change that became part of fileutils-4.0.28]

Include dirname.h.
Compute the parent directory `mode' unconditionally, effectively
as `$(umask -S),u+wx'.
Use make_path to create only the parent directories, thus using
the same code, both with and without -p, to create the final
component in each file name.  Reported by Bob Proulx.

24 years ago*** empty log message ***
Jim Meyering [Tue, 31 Oct 2000 10:46:30 +0000 (10:46 +0000)]
*** empty log message ***

24 years agoMuch improved.
Jim Meyering [Tue, 31 Oct 2000 10:46:24 +0000 (10:46 +0000)]
Much improved.
Run each test also with mkdir's `-p' option and check permissions
on the parent directories.

24 years agouse backticks and sed instead of set and shift
Jim Meyering [Tue, 31 Oct 2000 08:31:30 +0000 (08:31 +0000)]
use backticks and sed instead of set and shift

24 years ago*** empty log message ***
Jim Meyering [Tue, 31 Oct 2000 08:12:38 +0000 (08:12 +0000)]
*** empty log message ***

24 years agoAdd some permission tests.
Jim Meyering [Tue, 31 Oct 2000 08:12:28 +0000 (08:12 +0000)]
Add some permission tests.

24 years agoFix the test so it actually does something.
Jim Meyering [Tue, 31 Oct 2000 07:57:29 +0000 (07:57 +0000)]
Fix the test so it actually does something.
Run each test also with mkdir's `-p' option.

24 years ago*** empty log message ***
Jim Meyering [Tue, 31 Oct 2000 07:15:54 +0000 (07:15 +0000)]
*** empty log message ***

24 years agoUse @sc where appropriate. Document the
Jim Meyering [Tue, 31 Oct 2000 07:15:42 +0000 (07:15 +0000)]
Use @sc where appropriate.  Document the
ranges of supported times more precisely.  Correct menu
spacing.  Document old Latin 12m/12pm tradition.  Remove list
of alphabetic time zone names, as it wasn't correct and people
shouldn't be relying on it anyway.  Relative items also
account for non-DST adjustments.  Fix some misspellings.

24 years ago*** empty log message ***
Jim Meyering [Tue, 31 Oct 2000 07:10:03 +0000 (07:10 +0000)]
*** empty log message ***

24 years agoAdd "2000" to Copyright line, as this file was changed this year.
Jim Meyering [Tue, 31 Oct 2000 07:09:56 +0000 (07:09 +0000)]
Add "2000" to Copyright line, as this file was changed this year.

24 years agoRemove "2000" from Copyright line, as the file hasn't been
Jim Meyering [Tue, 31 Oct 2000 07:09:40 +0000 (07:09 +0000)]
Remove "2000" from Copyright line, as the file hasn't been
changed this year other than in the copyright notice.

24 years agoRemove "2000" from Copyright line, as the file hasn't been
Jim Meyering [Tue, 31 Oct 2000 07:09:02 +0000 (07:09 +0000)]
Remove "2000" from Copyright line, as the file hasn't been
changed this year other than in the copyright notice.

24 years ago*** empty log message ***
Jim Meyering [Tue, 31 Oct 2000 07:07:26 +0000 (07:07 +0000)]
*** empty log message ***

24 years ago(FOLD): Do not assume that characters are unsigned.
Jim Meyering [Tue, 31 Oct 2000 07:07:05 +0000 (07:07 +0000)]
(FOLD): Do not assume that characters are unsigned.
(fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.

24 years ago.
Jim Meyering [Mon, 30 Oct 2000 17:52:42 +0000 (17:52 +0000)]
.

24 years ago.
Jim Meyering [Mon, 30 Oct 2000 17:51:06 +0000 (17:51 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Mon, 30 Oct 2000 17:50:29 +0000 (17:50 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 30 Oct 2000 17:50:03 +0000 (17:50 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 30 Oct 2000 15:59:20 +0000 (15:59 +0000)]
*** empty log message ***

24 years agoInclude "system.h" after wctype.h (not before) to avoid
Jim Meyering [Mon, 30 Oct 2000 15:58:59 +0000 (15:58 +0000)]
Include "system.h" after wctype.h (not before) to avoid
a compilation error on Solaris 5.5.1 systems.

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 22:43:51 +0000 (22:43 +0000)]
*** empty log message ***

24 years agos/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf renaming.
Jim Meyering [Sun, 29 Oct 2000 22:43:08 +0000 (22:43 +0000)]
s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf renaming.

24 years agofix typo: s/fseek0/fseeko/
Jim Meyering [Sun, 29 Oct 2000 17:19:51 +0000 (17:19 +0000)]
fix typo: s/fseek0/fseeko/

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 15:37:00 +0000 (15:37 +0000)]
*** empty log message ***

24 years ago*** empty log message *** FILEUTILS-4_0_29
Jim Meyering [Sun, 29 Oct 2000 13:50:25 +0000 (13:50 +0000)]
*** empty log message ***

24 years ago(__restrict_arr): Move definition out of #ifndef block.
Jim Meyering [Sun, 29 Oct 2000 13:49:56 +0000 (13:49 +0000)]
(__restrict_arr): Move definition out of #ifndef block.
Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
doesn't define __restrict_arr.

24 years ago. SH-UTILS-2_0_11
Jim Meyering [Sun, 29 Oct 2000 12:36:19 +0000 (12:36 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 12:34:43 +0000 (12:34 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 12:34:19 +0000 (12:34 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 12:33:53 +0000 (12:33 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 12:25:21 +0000 (12:25 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 12:25:07 +0000 (12:25 +0000)]
*** empty log message ***

24 years ago(do_copy): When constructing dst_path for use with the
Jim Meyering [Sun, 29 Oct 2000 12:25:03 +0000 (12:25 +0000)]
(do_copy): When constructing dst_path for use with the
--parents option, first remove any trailing slashes from the command
line argument.  Otherwise, tests/cp/cp-parent would fail on NetBSD.

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 11:03:18 +0000 (11:03 +0000)]
*** empty log message ***

24 years agoFix grammar in comment.
Jim Meyering [Sun, 29 Oct 2000 11:03:01 +0000 (11:03 +0000)]
Fix grammar in comment.

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 08:05:00 +0000 (08:05 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 08:04:22 +0000 (08:04 +0000)]
*** empty log message ***

24 years agoAdd a test.
Jim Meyering [Sun, 29 Oct 2000 08:04:17 +0000 (08:04 +0000)]
Add a test.

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 07:55:27 +0000 (07:55 +0000)]
*** empty log message ***

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

24 years ago(DT_INIT): Define.
Jim Meyering [Sun, 29 Oct 2000 07:49:35 +0000 (07:49 +0000)]
(DT_INIT): Define.
[enum filetype]: Remove the #ifdef, and use DT_INIT on the
initializers instead.

24 years ago(LC_COLLATE): Set it to the empty string and
Jim Meyering [Sun, 29 Oct 2000 07:38:13 +0000 (07:38 +0000)]
(LC_COLLATE): Set it to the empty string and
export it.  Otherwise, tests/cp/cp-mv-backup would fail e.g., when
LC_COLLATE was set to en.  Reported by Vin Shelton.

24 years ago[enum filetype] (arg_directory): Rather than `100', use
Jim Meyering [Sat, 28 Oct 2000 18:00:57 +0000 (18:00 +0000)]
[enum filetype] (arg_directory): Rather than `100', use
a number that should never conflict with another DT_* value.
From Ulrich Drepper.

24 years ago(main): In call to gobble_file with `"."', use `directory'
Jim Meyering [Sat, 28 Oct 2000 17:58:25 +0000 (17:58 +0000)]
(main): In call to gobble_file with `"."', use `directory'
as the type, not `unknown'.  From Ulrich Drepper.

24 years ago*** empty log message *** FILEUTILS-4_0_28
Jim Meyering [Sat, 28 Oct 2000 13:50:23 +0000 (13:50 +0000)]
*** empty log message ***

24 years agoDisable this test by default; it's expensive.
Jim Meyering [Sat, 28 Oct 2000 13:50:14 +0000 (13:50 +0000)]
Disable this test by default; it's expensive.
Mark this as an expensive test.

24 years ago*this* is not an expensive test
Jim Meyering [Sat, 28 Oct 2000 13:49:43 +0000 (13:49 +0000)]
*this* is not an expensive test

24 years ago*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 13:39:20 +0000 (13:39 +0000)]
*** empty log message ***

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

24 years ago*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 13:12:02 +0000 (13:12 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 13:11:43 +0000 (13:11 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 12:53:50 +0000 (12:53 +0000)]
*** empty log message ***

24 years agoFactor out the expensive-test-checking code, ...
Jim Meyering [Sat, 28 Oct 2000 12:53:27 +0000 (12:53 +0000)]
Factor out the expensive-test-checking code, ...

24 years agoMark this as an expensive test.
Jim Meyering [Sat, 28 Oct 2000 12:51:40 +0000 (12:51 +0000)]
Mark this as an expensive test.

24 years ago*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 12:50:13 +0000 (12:50 +0000)]
*** empty log message ***

24 years agosource lang-default before the first `cd'
Jim Meyering [Sat, 28 Oct 2000 12:46:59 +0000 (12:46 +0000)]
source lang-default before the first `cd'

24 years agosource lang-default before the first `cd'
Jim Meyering [Sat, 28 Oct 2000 12:36:37 +0000 (12:36 +0000)]
source lang-default before the first `cd'

24 years agosource lang-default before the first `cd'
Jim Meyering [Sat, 28 Oct 2000 12:36:17 +0000 (12:36 +0000)]
source lang-default before the first `cd'

24 years agosource lang-default before changing directory
Jim Meyering [Sat, 28 Oct 2000 12:33:26 +0000 (12:33 +0000)]
source lang-default before changing directory

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

24 years ago(jm_PREREQ): Add jm_PREREQ_MEMCHR.
Jim Meyering [Sat, 28 Oct 2000 12:29:45 +0000 (12:29 +0000)]
(jm_PREREQ): Add jm_PREREQ_MEMCHR.
(jm_PREREQ_MEMCHR): New function.

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

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

24 years agoMake `ls' a lot more efficient on systems (e.g., linux-2.4.*)
Jim Meyering [Sat, 28 Oct 2000 12:18:21 +0000 (12:18 +0000)]
Make `ls' a lot more efficient on systems (e.g., linux-2.4.*)
that save file type information in directory entries.

[enum filetype] (unknown):
Add members (as yet unused):
(HAVE_STRUCT_DIRENT_D_TYPE): Define.
(format_needs_type): New global.
(main): Set it.
(print_dir): Set `type' from directory entry, if possible.
(gobble_file): Add a parameter, TYPE.
Stat the file only if its type is unknown and we need the type.
Patch from Ulrich Drepper.

24 years ago*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 12:00:14 +0000 (12:00 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 11:59:34 +0000 (11:59 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 11:50:00 +0000 (11:50 +0000)]
*** empty log message ***

24 years agoInclude assert.h.
Jim Meyering [Sat, 28 Oct 2000 11:49:52 +0000 (11:49 +0000)]
Include assert.h.
(fillrand): Add a parameter, size_max.
Add an assertion.
Adjust caller.
(dopass): Break out of the `for (;;)' loop if size < offset.
That can happen now that dopass is called with SIZE == -1.
(do_wipefd): Accept a length of zero only for a regular file.
If lseek fails or returns 0 for a non-regular file, let dopass
determine the length.
Inspired by a patch from Alan Iwi.

24 years ago.
Jim Meyering [Sat, 28 Oct 2000 08:25:21 +0000 (08:25 +0000)]
.

24 years agoUpdate from libc.
Jim Meyering [Sat, 28 Oct 2000 08:24:44 +0000 (08:24 +0000)]
Update from libc.

24 years ago*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 08:22:17 +0000 (08:22 +0000)]
*** empty log message ***

24 years agoUpdate from libc.
Jim Meyering [Sat, 28 Oct 2000 08:22:11 +0000 (08:22 +0000)]
Update from libc.
Adjust for portability:
[HAVE_STDLIB_H]: Include stdlib.h.
[HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
Undef __memchr, too.
[!weak_alias]: Define __memchr to memchr.

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

24 years agoUpdate from libc.
Jim Meyering [Sat, 28 Oct 2000 07:56:12 +0000 (07:56 +0000)]
Update from libc.

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

24 years ago(setusershell) [HAVE_FSEEKO]: Use fseek0.
Jim Meyering [Sat, 28 Oct 2000 07:47:04 +0000 (07:47 +0000)]
(setusershell) [HAVE_FSEEKO]: Use fseek0.
Patch by Ulrich Drepper.

24 years agoUpdate from libc.
Jim Meyering [Sat, 28 Oct 2000 07:15:32 +0000 (07:15 +0000)]
Update from libc.

24 years ago*** empty log message ***
Jim Meyering [Thu, 26 Oct 2000 22:36:58 +0000 (22:36 +0000)]
*** empty log message ***

24 years ago(usage): Mention the time zone, UTC, and write the date
Jim Meyering [Thu, 26 Oct 2000 22:36:39 +0000 (22:36 +0000)]
(usage): Mention the time zone, UTC, and write the date
in ISO format in the description of %s.  Suggestion from Karl Berry.

24 years ago(Authors of getdate): Add Paul Eggert.
Jim Meyering [Thu, 26 Oct 2000 14:18:24 +0000 (14:18 +0000)]
(Authors of getdate): Add Paul Eggert.

24 years ago*** empty log message ***
Jim Meyering [Thu, 26 Oct 2000 14:18:06 +0000 (14:18 +0000)]
*** empty log message ***

24 years agotypo
Jim Meyering [Thu, 26 Oct 2000 14:16:24 +0000 (14:16 +0000)]
typo

24 years ago.
Jim Meyering [Thu, 26 Oct 2000 09:39:08 +0000 (09:39 +0000)]
.

24 years agoUpdate from libc.
Jim Meyering [Thu, 26 Oct 2000 08:08:06 +0000 (08:08 +0000)]
Update from libc.

24 years ago*** empty log message ***
Jim Meyering [Wed, 25 Oct 2000 08:39:48 +0000 (08:39 +0000)]
*** empty log message ***

24 years agoInclude dirname.h.
Jim Meyering [Wed, 25 Oct 2000 08:39:29 +0000 (08:39 +0000)]
Include dirname.h.
(main): Use dir_name_r rather than open-coding it.

24 years ago*** empty log message ***
Jim Meyering [Wed, 25 Oct 2000 08:36:13 +0000 (08:36 +0000)]
*** empty log message ***

24 years ago(dir_name_r): Declare it.
Jim Meyering [Wed, 25 Oct 2000 08:36:08 +0000 (08:36 +0000)]
(dir_name_r): Declare it.

24 years ago*** empty log message ***
Jim Meyering [Wed, 25 Oct 2000 08:34:36 +0000 (08:34 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Wed, 25 Oct 2000 06:01:31 +0000 (06:01 +0000)]
*** empty log message ***

24 years agocppi, on one line
Jim Meyering [Wed, 25 Oct 2000 06:01:24 +0000 (06:01 +0000)]
cppi, on one line

24 years agoUpdate from libc.
Jim Meyering [Wed, 25 Oct 2000 06:00:26 +0000 (06:00 +0000)]
Update from libc.

24 years ago*** empty log message ***
Jim Meyering [Tue, 24 Oct 2000 08:20:17 +0000 (08:20 +0000)]
*** empty log message ***

24 years ago(hard_locale): Revert last change -- it was simply
Jim Meyering [Tue, 24 Oct 2000 08:20:13 +0000 (08:20 +0000)]
(hard_locale): Revert last change -- it was simply
wrong.  That set_locale call must not have any side effects.
From Paul Eggert.

24 years ago*** empty log message ***
Jim Meyering [Mon, 23 Oct 2000 06:38:10 +0000 (06:38 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 23 Oct 2000 06:31:28 +0000 (06:31 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 23 Oct 2000 06:29:30 +0000 (06:29 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 23 Oct 2000 06:28:01 +0000 (06:28 +0000)]
*** empty log message ***

24 years agoClean up version-related variables.
Jim Meyering [Mon, 23 Oct 2000 06:27:50 +0000 (06:27 +0000)]
Clean up version-related variables.