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.
Jim Meyering [Tue, 31 Oct 2000 10:46:30 +0000 (10:46 +0000)]
*** empty log message ***
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.
Jim Meyering [Tue, 31 Oct 2000 08:31:30 +0000 (08:31 +0000)]
use backticks and sed instead of set and shift
Jim Meyering [Tue, 31 Oct 2000 08:12:38 +0000 (08:12 +0000)]
*** empty log message ***
Jim Meyering [Tue, 31 Oct 2000 08:12:28 +0000 (08:12 +0000)]
Add some permission tests.
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.
Jim Meyering [Tue, 31 Oct 2000 07:15:54 +0000 (07:15 +0000)]
*** empty log message ***
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.
Jim Meyering [Tue, 31 Oct 2000 07:10:03 +0000 (07:10 +0000)]
*** empty log message ***
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.
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.
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.
Jim Meyering [Tue, 31 Oct 2000 07:07:26 +0000 (07:07 +0000)]
*** empty log message ***
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.
Jim Meyering [Mon, 30 Oct 2000 17:52:42 +0000 (17:52 +0000)]
.
Jim Meyering [Mon, 30 Oct 2000 17:51:06 +0000 (17:51 +0000)]
.
Jim Meyering [Mon, 30 Oct 2000 17:50:29 +0000 (17:50 +0000)]
*** empty log message ***
Jim Meyering [Mon, 30 Oct 2000 17:50:03 +0000 (17:50 +0000)]
*** empty log message ***
Jim Meyering [Mon, 30 Oct 2000 15:59:20 +0000 (15:59 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 29 Oct 2000 22:43:51 +0000 (22:43 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 22:43:08 +0000 (22:43 +0000)]
s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf renaming.
Jim Meyering [Sun, 29 Oct 2000 17:19:51 +0000 (17:19 +0000)]
fix typo: s/fseek0/fseeko/
Jim Meyering [Sun, 29 Oct 2000 15:37:00 +0000 (15:37 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 13:50:25 +0000 (13:50 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 29 Oct 2000 12:36:19 +0000 (12:36 +0000)]
.
Jim Meyering [Sun, 29 Oct 2000 12:34:43 +0000 (12:34 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 12:34:19 +0000 (12:34 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 12:33:53 +0000 (12:33 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 12:25:21 +0000 (12:25 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 12:25:07 +0000 (12:25 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 29 Oct 2000 11:03:18 +0000 (11:03 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 11:03:01 +0000 (11:03 +0000)]
Fix grammar in comment.
Jim Meyering [Sun, 29 Oct 2000 08:05:00 +0000 (08:05 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 08:04:22 +0000 (08:04 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 08:04:17 +0000 (08:04 +0000)]
Add a test.
Jim Meyering [Sun, 29 Oct 2000 07:55:27 +0000 (07:55 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 07:50:07 +0000 (07:50 +0000)]
*** empty log message ***
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.
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.
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.
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.
Jim Meyering [Sat, 28 Oct 2000 13:50:23 +0000 (13:50 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 28 Oct 2000 13:49:43 +0000 (13:49 +0000)]
*this* is not an expensive test
Jim Meyering [Sat, 28 Oct 2000 13:39:20 +0000 (13:39 +0000)]
*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 13:38:52 +0000 (13:38 +0000)]
*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 13:12:02 +0000 (13:12 +0000)]
*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 13:11:43 +0000 (13:11 +0000)]
*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 12:53:50 +0000 (12:53 +0000)]
*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 12:53:27 +0000 (12:53 +0000)]
Factor out the expensive-test-checking code, ...
Jim Meyering [Sat, 28 Oct 2000 12:51:40 +0000 (12:51 +0000)]
Mark this as an expensive test.
Jim Meyering [Sat, 28 Oct 2000 12:50:13 +0000 (12:50 +0000)]
*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 12:46:59 +0000 (12:46 +0000)]
source 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'
Jim Meyering [Sat, 28 Oct 2000 12:36:17 +0000 (12:36 +0000)]
source lang-default before the first `cd'
Jim Meyering [Sat, 28 Oct 2000 12:33:26 +0000 (12:33 +0000)]
source lang-default before changing directory
Jim Meyering [Sat, 28 Oct 2000 12:29:54 +0000 (12:29 +0000)]
*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 12:29:45 +0000 (12:29 +0000)]
(jm_PREREQ): Add jm_PREREQ_MEMCHR.
(jm_PREREQ_MEMCHR): New function.
Jim Meyering [Sat, 28 Oct 2000 12:19:05 +0000 (12:19 +0000)]
*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 12:18:31 +0000 (12:18 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 28 Oct 2000 12:00:14 +0000 (12:00 +0000)]
*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 11:59:34 +0000 (11:59 +0000)]
*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 11:50:00 +0000 (11:50 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 28 Oct 2000 08:25:21 +0000 (08:25 +0000)]
.
Jim Meyering [Sat, 28 Oct 2000 08:24:44 +0000 (08:24 +0000)]
Update from libc.
Jim Meyering [Sat, 28 Oct 2000 08:22:17 +0000 (08:22 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 28 Oct 2000 07:56:40 +0000 (07:56 +0000)]
*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 07:56:12 +0000 (07:56 +0000)]
Update from libc.
Jim Meyering [Sat, 28 Oct 2000 07:47:07 +0000 (07:47 +0000)]
*** empty log message ***
Jim Meyering [Sat, 28 Oct 2000 07:47:04 +0000 (07:47 +0000)]
(setusershell) [HAVE_FSEEKO]: Use fseek0.
Patch by Ulrich Drepper.
Jim Meyering [Sat, 28 Oct 2000 07:15:32 +0000 (07:15 +0000)]
Update from libc.
Jim Meyering [Thu, 26 Oct 2000 22:36:58 +0000 (22:36 +0000)]
*** empty log message ***
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.
Jim Meyering [Thu, 26 Oct 2000 14:18:24 +0000 (14:18 +0000)]
(Authors of getdate): Add Paul Eggert.
Jim Meyering [Thu, 26 Oct 2000 14:18:06 +0000 (14:18 +0000)]
*** empty log message ***
Jim Meyering [Thu, 26 Oct 2000 14:16:24 +0000 (14:16 +0000)]
typo
Jim Meyering [Thu, 26 Oct 2000 09:39:08 +0000 (09:39 +0000)]
.
Jim Meyering [Thu, 26 Oct 2000 08:08:06 +0000 (08:08 +0000)]
Update from libc.
Jim Meyering [Wed, 25 Oct 2000 08:39:48 +0000 (08:39 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 25 Oct 2000 08:36:13 +0000 (08:36 +0000)]
*** empty log message ***
Jim Meyering [Wed, 25 Oct 2000 08:36:08 +0000 (08:36 +0000)]
(dir_name_r): Declare it.
Jim Meyering [Wed, 25 Oct 2000 08:34:36 +0000 (08:34 +0000)]
*** empty log message ***
Jim Meyering [Wed, 25 Oct 2000 06:01:31 +0000 (06:01 +0000)]
*** empty log message ***
Jim Meyering [Wed, 25 Oct 2000 06:01:24 +0000 (06:01 +0000)]
cppi, on one line
Jim Meyering [Wed, 25 Oct 2000 06:00:26 +0000 (06:00 +0000)]
Update from libc.
Jim Meyering [Tue, 24 Oct 2000 08:20:17 +0000 (08:20 +0000)]
*** empty log message ***
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.
Jim Meyering [Mon, 23 Oct 2000 06:38:10 +0000 (06:38 +0000)]
*** empty log message ***
Jim Meyering [Mon, 23 Oct 2000 06:31:28 +0000 (06:31 +0000)]
*** empty log message ***
Jim Meyering [Mon, 23 Oct 2000 06:29:30 +0000 (06:29 +0000)]
*** empty log message ***
Jim Meyering [Mon, 23 Oct 2000 06:28:01 +0000 (06:28 +0000)]
*** empty log message ***
Jim Meyering [Mon, 23 Oct 2000 06:27:50 +0000 (06:27 +0000)]
Clean up version-related variables.