Paul Eggert [Mon, 17 Jul 2006 03:52:18 +0000 (03:52 +0000)]
Regenerate.
Paul Eggert [Mon, 17 Jul 2006 03:51:25 +0000 (03:51 +0000)]
Regenerate.
Paul Eggert [Mon, 17 Jul 2006 03:35:18 +0000 (03:35 +0000)]
Fix typo in previous checkin; some file names were wrong.
Paul Eggert [Mon, 17 Jul 2006 03:13:14 +0000 (03:13 +0000)]
chmod, install, and mkdir now leave setgid and setuid bits
of directories alone unless you specify them explicitly.
install and mkdir now implement X correctly.
install now creates parent directories with mode 755, without
changing their owner or group.
Paul Eggert [Mon, 17 Jul 2006 03:12:44 +0000 (03:12 +0000)]
Add a test for the X bug.
Paul Eggert [Mon, 17 Jul 2006 03:12:22 +0000 (03:12 +0000)]
Remove re_protect case that no longer applies.
GNU chmod now behaves like other versions of chmod.
Paul Eggert [Mon, 17 Jul 2006 03:11:51 +0000 (03:11 +0000)]
Do the setgid test instead of bailing.
Paul Eggert [Mon, 17 Jul 2006 03:11:01 +0000 (03:11 +0000)]
(main): Adjust to new mode_adjust API.
Paul Eggert [Mon, 17 Jul 2006 03:10:29 +0000 (03:10 +0000)]
(main): Adjust to new mode_adjust API.
Paul Eggert [Mon, 17 Jul 2006 03:10:10 +0000 (03:10 +0000)]
(struct mkdir_options): New struct.
(announce_mkdir, make_ancestor): New functions.
(main): Use them. Adjust to mode_adjust API change. Stick with
umask 0. Use make_dir_parents for all the work.
Paul Eggert [Mon, 17 Jul 2006 03:09:49 +0000 (03:09 +0000)]
Include mkancesdirs.h.
(announce_mkdir, make_ancestor): New functions.
(DEFAULT_MODE): New macro, specifying initial value of 'mode'.
(mode): Use it.
(dir_mode, dir_mode_bits): New vars.
(main): Set dir modes separately from nondir, so that the X
op of -m works correctly.
(main): Remove cwd_errno cruft, since make_dir_parents no longer
affects cwd. Adjust to new make_dir_parents API.
(install_file_in_file_parents): 2nd arg is now char *, not char
const *. Use mkancesdirs instead of rolling our own code.
(change_attributes): Don't worry about AFS, since that kludge
should not be needed any more.
Paul Eggert [Mon, 17 Jul 2006 03:09:26 +0000 (03:09 +0000)]
(process_file): Adjust to mode_adjust API change.
Paul Eggert [Mon, 17 Jul 2006 03:09:09 +0000 (03:09 +0000)]
(gl_PREREQ): Require gl_MKANCESDIRS.
Paul Eggert [Mon, 17 Jul 2006 03:08:42 +0000 (03:08 +0000)]
(gl_MKDIR_PARENTS): Mention dirchownmod.c, dirchownmod.h.
Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER; no longer needed.
Require gl_FUNC_LCHOWN, since dirchownmod.c needs it.
Paul Eggert [Mon, 17 Jul 2006 03:08:18 +0000 (03:08 +0000)]
Remove; no longer needed.
Paul Eggert [Mon, 17 Jul 2006 03:08:04 +0000 (03:08 +0000)]
(gl_MACROS): Remove gl_AFS.
Paul Eggert [Mon, 17 Jul 2006 03:07:41 +0000 (03:07 +0000)]
(mode_adjust): New API.
Paul Eggert [Mon, 17 Jul 2006 03:07:23 +0000 (03:07 +0000)]
(octal_to_mode): New function.
(struct mode_change): New member mentioned.
(make_node_op_equals): New arg mentioned. All callers changed.
(mode_compile): Keep track of which mode bits the user has explicitly
mentioned.
(mode_adjust): New arg DIR, so that we implement the X op correctly.
New arg PMODE_BITS, to keep track of which mode bits the user
mentioned; it treats S_ISUID and S_ISGID speciall.
All callers changed.
Paul Eggert [Mon, 17 Jul 2006 03:07:04 +0000 (03:07 +0000)]
Adjust to new make_dir_parents API.
Paul Eggert [Mon, 17 Jul 2006 03:06:48 +0000 (03:06 +0000)]
Don't include alloca.h, stdio.h, sys/types.h,
unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
(make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
callers changed. Revamp internals significantly, by not
attempting to create directories that are temporarily more
permissive than the final results. Do not attempt to use
save_cwd/restore_cwd; it isn't worth it for mkdir and install.
This removes some race conditions, fixes some bugs, and simplifies
things. Use new dirchownmod function to do owner and mode changes.
Paul Eggert [Mon, 17 Jul 2006 03:06:25 +0000 (03:06 +0000)]
(Mode Structure): Modernize the explanation of the
setuid and setgid bits on directories.
(Changing Special Mode Bits): Mention that a implies both u and g
for s. Cross reference to new node.
(Numeric Modes): Don't claim that 0055 is the same as 55; this isn't
true any more. Mention new node.
4755 is now like u=rwxs,go=rx,g-s, not like u=rwxs,go=rx.
(Directory Setuid and Setgid): New node.
Paul Eggert [Mon, 17 Jul 2006 03:06:03 +0000 (03:06 +0000)]
Change GNU to @acronym{GNU} in a few places.
Use "set-user-ID" and "set-group-ID" a bit more consistently.
Use "appropriate privileges" rather than "super-user" a bit
more consistently.
(install invocation): Parent directories are now 755 without uid
or gid changing. The default mode is now 0755, not 755.
(mkdir invocation): Rewrite the top-level usage description, since
I couldn't easily follow the old one. It's now 3 lines not 8.
For -m, describe file permission bits versus other bits, and note
that mkdir is atomic if you don't mention special bits.
(chmod invocation): Mention what chmod does to setgid and setuid bits.
Paul Eggert [Mon, 17 Jul 2006 03:05:23 +0000 (03:05 +0000)]
Initial version.
Paul Eggert [Mon, 17 Jul 2006 03:02:45 +0000 (03:02 +0000)]
chmod, install, and mkdir now leave setgid and setuid bits
of directories alone unless you specify them explicitly.
install and mkdir now implement X correctly.
install now creates parent directories with mode 755, without
changing their owner or group.
Jim Meyering [Sun, 16 Jul 2006 07:13:07 +0000 (07:13 +0000)]
* userspec.c (parse_with_separator): Say "invalid spec" rather than
the sometimes erroneous "cannot get the login group of a numeric UID"
for a spec like "not-a-username:" or "1:". Reported by
suckfish@ihug.co.nz in https://bugzilla.redhat.com/bugzilla/199027.
Paul Eggert [Fri, 14 Jul 2006 17:54:54 +0000 (17:54 +0000)]
(do_decode): Output to parameter OUT, not to stdout.
Jim Meyering [Fri, 14 Jul 2006 14:42:27 +0000 (14:42 +0000)]
* Makefile.maint (CVS_LIST): Use new file, build-aux/vc-list-files,
rather than open-coding it. Now supports mercurial, too.
* .hgignore: New file.
* Makefile.am (EXTRA_DIST): Add .hgignore, which ignores nearly
all generated files, including ones like configure and po/*.po
that are currently version-controlled in cvs.
* build-aux/vc-list-files: New file.
Jim Meyering [Fri, 14 Jul 2006 14:27:38 +0000 (14:27 +0000)]
* Makefile.am (EXTRA_DIST): Add a few more .??* files.
They've been in CVS, just haven't been distributed before this.
Distribute ChangeLog-2005, too.
(MAINTAINERCLEANFILES): Add THANKS-to-translators.
Paul Eggert [Tue, 11 Jul 2006 17:22:15 +0000 (17:22 +0000)]
Assume <dirent.h> exists, since gnulib assumes this now as well.
Paul Eggert [Tue, 11 Jul 2006 17:19:48 +0000 (17:19 +0000)]
Sync from gnulib.
Paul Eggert [Tue, 11 Jul 2006 03:29:56 +0000 (03:29 +0000)]
(gl_STDINT_H): Like yesterday's change to
absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
"no/such/file/stdint.h" when there is no such file, so that
the resulting C code can be parsed by dodgy compilers.
Problems reported by Bob Proulx.
Paul Eggert [Mon, 10 Jul 2006 04:37:33 +0000 (04:37 +0000)]
(gl_ABSOLUTE_HEADER): Use "" rather than <>
around the absolute name, to work around a problem with the HP-UX
11.23 native C compiler, reported by Bob Proulx.
Jim Meyering [Sun, 9 Jul 2006 17:49:28 +0000 (17:49 +0000)]
*** empty log message ***
Jim Meyering [Sun, 9 Jul 2006 17:49:24 +0000 (17:49 +0000)]
(TESTS): Add dir2dir.
Jim Meyering [Sun, 9 Jul 2006 17:48:13 +0000 (17:48 +0000)]
*** empty log message ***
Jim Meyering [Sun, 9 Jul 2006 17:48:08 +0000 (17:48 +0000)]
Adjust so failing with ENOTEMPTY is ok, too.
That happens with Linux/tmpfs.
Paul Eggert [Sun, 9 Jul 2006 17:20:26 +0000 (17:20 +0000)]
Regenerate.
Paul Eggert [Sun, 9 Jul 2006 17:09:48 +0000 (17:09 +0000)]
Adjust to recent updates from gnulib.
Paul Eggert [Sun, 9 Jul 2006 17:08:55 +0000 (17:08 +0000)]
Adjust to today's renaming changes in system.h.
Paul Eggert [Sun, 9 Jul 2006 17:07:12 +0000 (17:07 +0000)]
(print_it): Don't assume char is unsigned.
Paul Eggert [Sun, 9 Jul 2006 17:06:35 +0000 (17:06 +0000)]
(print_esc): Don't assume char is unsigned.
Paul Eggert [Sun, 9 Jul 2006 17:06:06 +0000 (17:06 +0000)]
(create_fullname): Don't assume char is unsigned.
Paul Eggert [Sun, 9 Jul 2006 17:05:33 +0000 (17:05 +0000)]
(is_blank): Remove; no longer needed. All uses
replaced by isblank (to_uchar (...)).
Paul Eggert [Sun, 9 Jul 2006 17:05:13 +0000 (17:05 +0000)]
(unexpand): Don't assume that isprint etc. return
booleans (needed for pre-C99 hosts).
Paul Eggert [Sun, 9 Jul 2006 17:04:48 +0000 (17:04 +0000)]
(is_char_class_member): Don't assume that isprint etc. return
booleans (needed for pre-C99 hosts).
Paul Eggert [Sun, 9 Jul 2006 17:04:06 +0000 (17:04 +0000)]
(initialize_regex, fix_output_parameters): Don't assume that isprint
etc. return booleans (needed for pre-C99 hosts).
(SKIP_NON_WHITE, SKIP_WHITE, SKIP_WHITE_BACKWARDS):
(copy_unescaped_string): Don't assume char is unsigned.
Paul Eggert [Sun, 9 Jul 2006 17:03:20 +0000 (17:03 +0000)]
(check_punctuation): Don't assume that isprint etc. return
booleans (needed for pre-C99 hosts).
Paul Eggert [Sun, 9 Jul 2006 17:02:53 +0000 (17:02 +0000)]
(expand): Don't assume that isprint etc. return
booleans (needed for pre-C99 hosts).
Paul Eggert [Sun, 9 Jul 2006 17:02:17 +0000 (17:02 +0000)]
(inittables): Use toupper rather than
islower followed by toupper; it's simpler and typically
faster now that we assume at least C89 semantics. Similarly
for tolower.
Paul Eggert [Sun, 9 Jul 2006 17:01:38 +0000 (17:01 +0000)]
(apply_translations): Use toupper rather than
islower followed by toupper; it's simpler and typically
faster now that we assume at least C89 semantics. Similarly
for tolower.
Paul Eggert [Sun, 9 Jul 2006 17:01:13 +0000 (17:01 +0000)]
(_D_EXACT_NAMELEN): Renamed from NLENGTH, for
convenience on GNU systems. All uses changed. Don't bother
looking for any dirent.h substitute other than ndir.h.
(D_INO): Remove unnecessary parentheses.
(IN_CTYPE_DOMAIN, ISGRAPH, ISPRINT, ISALNUM, ISALPHA):
(ISCNTRL, ISLOWER, ISPUNCT, ISSPACE, ISUPPER, ISXDIGIT):
(ISDIGIT_LOCALE, TOLOWER, TOUPPER): Remove. All uses changed
to ctype.h equivalents.
(isblank): Renamed from ISBLANK. Check for HAVE_DECL_ISBLANK too.
All uses changed.
Paul Eggert [Sun, 9 Jul 2006 16:59:35 +0000 (16:59 +0000)]
Update from gnulib.
Paul Eggert [Sun, 9 Jul 2006 16:59:05 +0000 (16:59 +0000)]
Update from gnulib.
Paul Eggert [Sun, 9 Jul 2006 16:57:35 +0000 (16:57 +0000)]
(stdint.h): FULL_PATH_STDINT_H -> ABSOLUTE_STDINT_H,
to accommodate update from gnulib.
Paul Eggert [Sun, 9 Jul 2006 16:57:00 +0000 (16:57 +0000)]
Update from gnulib.
Jim Meyering [Sun, 9 Jul 2006 09:49:10 +0000 (09:49 +0000)]
remove doubled "in"
Jim Meyering [Sun, 9 Jul 2006 09:47:20 +0000 (09:47 +0000)]
fix typo: remove doubled "each"
Jim Meyering [Sat, 8 Jul 2006 21:52:24 +0000 (21:52 +0000)]
New file, test for 2006-07-05 fix in copy.c.
Jim Meyering [Sat, 8 Jul 2006 12:08:59 +0000 (12:08 +0000)]
* regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a comment.
Jim Meyering [Sat, 8 Jul 2006 11:28:05 +0000 (11:28 +0000)]
* link-follow.m4: Remove one of two adjacent "whether"s in a comment.
Jim Meyering [Sat, 8 Jul 2006 11:27:07 +0000 (11:27 +0000)]
Remove one of two adjacent "your"s in a comment.
Jim Meyering [Sat, 8 Jul 2006 11:25:18 +0000 (11:25 +0000)]
Remove one of two adjacent "can"s in a comment.
Jim Meyering [Sat, 8 Jul 2006 09:58:13 +0000 (09:58 +0000)]
(getndelim2): Remove doubled "after" in comment.
Jim Meyering [Sat, 8 Jul 2006 07:37:16 +0000 (07:37 +0000)]
* tests/Coreutils.pm: Remove one of two adjacent "then"s in a comment.
Jim Meyering [Sat, 8 Jul 2006 06:08:34 +0000 (06:08 +0000)]
* Makefile.maint (sc_the_the): New rule.
Jim Meyering [Sat, 8 Jul 2006 06:04:18 +0000 (06:04 +0000)]
* src/dd.c (skip): Remove one of two adjacent "the"s in a comment.
Jim Meyering [Sat, 8 Jul 2006 06:03:50 +0000 (06:03 +0000)]
* coreutils.texi (Squeezing): Separate doubled "the", so typo-checkers
don't complain.
Jim Meyering [Sat, 8 Jul 2006 05:31:59 +0000 (05:31 +0000)]
* Makefile.am (check-texinfo): Enforce the zeros vs. zeroes consistency.
Jim Meyering [Sat, 8 Jul 2006 05:28:39 +0000 (05:28 +0000)]
* coreutils.texi: Fix some typos. Use `zeros' consistently (both
`zeros' and `zeroes' are correct).
Jim Meyering [Fri, 7 Jul 2006 06:38:36 +0000 (06:38 +0000)]
* NEWS: Mention that mv can now remove an empty destination directory,
and give an example. Prompted by a report from Florent Bayle.
Jim Meyering [Wed, 5 Jul 2006 10:17:24 +0000 (10:17 +0000)]
* src/ls.c (usage): Correct the description of -G: it is useful
only in a long listing. Reported by Martin Pool in
<https://launchpad.net/distros/ubuntu/+source/coreutils/+bug/51653>.
Jim Meyering [Wed, 5 Jul 2006 10:03:55 +0000 (10:03 +0000)]
* man/chmod.x: Correct the description of the sticky bit. Reported
by Chris Moore via Ian Jackson in <http://bugs.debian.org/376745>.
Jim Meyering [Wed, 5 Jul 2006 09:08:42 +0000 (09:08 +0000)]
* src/copy.c (copy_internal): Don't work around old NFS clients like
SunOS-4.1.4 and Irix 5.3 that set errno to values like EIO and
ENOTEMPTY upon failed rename. Otherwise, we risk misinterpreting
a banal failure as a recursive move-into-self failure.
Reported by Florent Bayle in <http://bugs.debian.org/376749>.
Jim Meyering [Wed, 5 Jul 2006 06:57:09 +0000 (06:57 +0000)]
.
Jim Meyering [Wed, 5 Jul 2006 06:57:00 +0000 (06:57 +0000)]
Regenerate, to remove fuzz.
Jim Meyering [Tue, 4 Jul 2006 07:28:57 +0000 (07:28 +0000)]
Really add wcwidth.h.
Jim Meyering [Tue, 4 Jul 2006 07:28:45 +0000 (07:28 +0000)]
*** empty log message ***
Jim Meyering [Tue, 4 Jul 2006 07:23:10 +0000 (07:23 +0000)]
*** empty log message ***
Jim Meyering [Tue, 4 Jul 2006 07:17:34 +0000 (07:17 +0000)]
Really add wcwidth.m4.
Paul Eggert [Tue, 4 Jul 2006 05:39:07 +0000 (05:39 +0000)]
Sync from gnulib.
Paul Eggert [Tue, 4 Jul 2006 05:38:32 +0000 (05:38 +0000)]
Sync from gnulib. Also:
(gt_FUNC_SETENV): Undo private change that added an
AC_LIBSOURCES line here, since Bruno didn't buy it back. Instead,
update ../lib/Makefile.am to mention the files explicitly.
Paul Eggert [Tue, 4 Jul 2006 05:37:58 +0000 (05:37 +0000)]
(gl_PREREQ): Require gl_FUNC_WCWIDTH, to accommodate
sync from gnulib.
Paul Eggert [Tue, 4 Jul 2006 05:37:11 +0000 (05:37 +0000)]
(libcoreutils_a_SOURCES): Add setenv.h, wcwidth.h,
to accommodate sync from gnulib.
Paul Eggert [Tue, 4 Jul 2006 04:50:34 +0000 (04:50 +0000)]
Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
MacOS X 10.4.6. Don't mention <sys/int_types.h>.
Jim Meyering [Mon, 3 Jul 2006 17:38:20 +0000 (17:38 +0000)]
Plug another unusual leak.
(AD_mark_helper): Free malloc'd filename if hash_insert says
that string is already in the hash table.
Jim Meyering [Mon, 3 Jul 2006 15:20:23 +0000 (15:20 +0000)]
* cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
macro is used before the first cycle_check call.
Jim Meyering [Mon, 3 Jul 2006 15:10:35 +0000 (15:10 +0000)]
The dev/inode of the topmost directory in each hierarchy were not
being recorded.
* src/remove.c (remove_cwd_entries): Don't call cycle_check here.
(AD_push): Call it from here instead.
Jim Meyering [Mon, 3 Jul 2006 13:14:01 +0000 (13:14 +0000)]
Fix two small leaks.
* src/remove.c (AD_stack_clear): New function.
(rm_1): Use it.
(AD_pop_and_chdir): Free *prev_dir just before longjmp.
Jim Meyering [Mon, 3 Jul 2006 12:55:25 +0000 (12:55 +0000)]
* tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT):
Add $VG_PATH_PREFIX as a prefix to $PATH
Jim Meyering [Mon, 3 Jul 2006 09:10:36 +0000 (09:10 +0000)]
.
Jim Meyering [Mon, 3 Jul 2006 08:37:50 +0000 (08:37 +0000)]
* tests/envvar-check (vars): Add CDPATH and POSIXLY_CORRECT.
* tests/Makefile.am (evar-check): Remove rule.
(EXTRA_DIST): Remove .env-warn.
* tests/.env-warn: Remove file. No longer used.
Suggestion from Eric Blake.
Jim Meyering [Mon, 3 Jul 2006 07:42:30 +0000 (07:42 +0000)]
*** empty log message ***
Jim Meyering [Mon, 3 Jul 2006 07:42:27 +0000 (07:42 +0000)]
(gl_FUNC_FTRUNCATE): Adjust diagnostic to recommend
./configure SKIP_FTRUNCATE_CHECK=yes, rather than env ... ./configure.
Suggestion from Ralf Wildenhues.
Paul Eggert [Sun, 2 Jul 2006 09:15:08 +0000 (09:15 +0000)]
(intmax_t, uintmax_t): Prefer long to long long if
both are 64 bits.
Paul Eggert [Sun, 2 Jul 2006 09:14:28 +0000 (09:14 +0000)]
(gl_STDINT_H): Use more-mnemonic identifiers for
test cases, so that config.log is a bit easier to follow.
Jim Meyering [Sun, 2 Jul 2006 08:29:30 +0000 (08:29 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Jul 2006 08:29:26 +0000 (08:29 +0000)]
New file, from gnulib. Required by stdint.m4.
Paul Eggert [Sun, 2 Jul 2006 07:09:25 +0000 (07:09 +0000)]
Include <stdint.h> unconditionally, since we
now assume the stdint module.
Paul Eggert [Sun, 2 Jul 2006 07:08:50 +0000 (07:08 +0000)]
Sync stdint module from gnulib.
Paul Eggert [Sat, 1 Jul 2006 23:53:05 +0000 (23:53 +0000)]
With no operand, 'tail -f' now silently ignores the '-f'
only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.