platform/upstream/coreutils.git
18 years agoFix typo in latest changelog entry: restrict.m4 wasn't logged right.
Paul Eggert [Tue, 8 Aug 2006 22:41:15 +0000 (22:41 +0000)]
Fix typo in latest changelog entry: restrict.m4 wasn't logged right.

18 years agoAdd shuf, better random number generation, and fix sort -R in
Paul Eggert [Tue, 8 Aug 2006 22:28:00 +0000 (22:28 +0000)]
Add shuf, better random number generation, and fix sort -R in
funny locales.

18 years agoRemove, since we no longer need gl_RESTRICT.
Paul Eggert [Tue, 8 Aug 2006 22:26:44 +0000 (22:26 +0000)]
Remove, since we no longer need gl_RESTRICT.

18 years agoRemove; its contents are now in ../lib/rand-isaac.c.
Paul Eggert [Tue, 8 Aug 2006 22:23:11 +0000 (22:23 +0000)]
Remove; its contents are now in ../lib/rand-isaac.c.

18 years agoNew file, introduced for shuf, sort -R, and/or shred.
Paul Eggert [Tue, 8 Aug 2006 22:22:47 +0000 (22:22 +0000)]
New file, introduced for shuf, sort -R, and/or shred.

18 years ago(TESTS): Add shuf.
Paul Eggert [Tue, 8 Aug 2006 22:20:59 +0000 (22:20 +0000)]
(TESTS): Add shuf.

18 years agoUse new random-number interface rather than rand-isaac.c.
Paul Eggert [Tue, 8 Aug 2006 22:20:12 +0000 (22:20 +0000)]
Use new random-number interface rather than rand-isaac.c.
Don't include rand-isaac.c; include randint.h and randread.h instead.
(RANDOM_SOURCE_OPTION): New enum.
(long_opts, usage, main): New option --random-source.
Include md5.h, randread.h, xmemxfrm.h.
(longopts, usage, main): Remove undocumented --seed option;
it's now replaced by --random-source.
(rand_state, get_hash): Remove.
(randread_source): New static var.
(random_state, cmp_hashes, compare_random): New functions; they guarantee
no collisions in the random hash function.
(keycompare): Use compare_random for -R; don't fall back on comparing
via memcoll, since compare_random does the right thing.

18 years agoUse new random-number interface rather than rand-isaac.c.
Paul Eggert [Tue, 8 Aug 2006 22:19:39 +0000 (22:19 +0000)]
Use new random-number interface rather than rand-isaac.c.
Don't include rand-isaac.c; include randint.h and randread.h instead.
(RANDOM_SOURCE_OPTION): New enum.
(long_opts, usage, main): New option --random-source.
(struct irand_state, irand_init, irand32, irand_mod): Remove.
All callers changed to use randint interface.
(fillrand): Remove.  All callers changed to use randread interface.
(dopass): Remove dependency on ISAAC buffer size.
(genpattern): Don't wipe the random state here.
(randint_source): New static var.
(clear_random_data): New function.
(main): Allocate random source, and arrange to wipe it on exit.

18 years ago(bin_PROGRAMS): Add shuf.
Paul Eggert [Tue, 8 Aug 2006 22:19:03 +0000 (22:19 +0000)]
(bin_PROGRAMS): Add shuf.
(EXTRA_DIST): Remove rand-isaac.c.
(shuf_LDADD): New macro.

18 years ago(dist_man_MANS): Add shuf.1.
Paul Eggert [Tue, 8 Aug 2006 22:18:39 +0000 (22:18 +0000)]
(dist_man_MANS): Add shuf.1.
(shuf.1): New dependency.

18 years agoAdd shuf.1.
Paul Eggert [Tue, 8 Aug 2006 22:18:20 +0000 (22:18 +0000)]
Add shuf.1.

18 years ago(gl_TIME_R): Use AC_C_RESTRICT, not
Paul Eggert [Tue, 8 Aug 2006 22:17:56 +0000 (22:17 +0000)]
(gl_TIME_R): Use AC_C_RESTRICT, not
gl_C_RESTRICT, since we assume recent Autoconf.

18 years ago(gl_PREREQ_REGEX): Use AC_C_RESTRICT, not gl_C_RESTRICT, since we
Paul Eggert [Tue, 8 Aug 2006 22:17:20 +0000 (22:17 +0000)]
(gl_PREREQ_REGEX): Use AC_C_RESTRICT, not gl_C_RESTRICT, since we
assume recent Autoconf.

18 years ago(gl_PREREQ): Require gl_MEMXFRM, gl_RANDINT, gl_RANDPERM,
Paul Eggert [Tue, 8 Aug 2006 22:16:51 +0000 (22:16 +0000)]
(gl_PREREQ): Require gl_MEMXFRM, gl_RANDINT, gl_RANDPERM,
gl_RANDREAD.

18 years ago(gl_PREREQ_GETADDRINFO): Use AC_C_RESTRICT, not
Paul Eggert [Tue, 8 Aug 2006 22:16:18 +0000 (22:16 +0000)]
(gl_PREREQ_GETADDRINFO): Use AC_C_RESTRICT, not
gl_C_RESTRICT, since we assume recent Autoconf.

18 years ago(libcoreutils_a_SOURCES): Add xmemxfrm.c, xmemxfrm.h.
Paul Eggert [Tue, 8 Aug 2006 22:12:21 +0000 (22:12 +0000)]
(libcoreutils_a_SOURCES): Add xmemxfrm.c, xmemxfrm.h.

18 years ago(shuf invocation, Random sources): New sections.
Paul Eggert [Tue, 8 Aug 2006 22:11:49 +0000 (22:11 +0000)]
(shuf invocation, Random sources): New sections.
(Operating on sorted files): Add shuf.
(sort invocation, shred invocation): New option --random-source.
(sort invocation): Fix typo: -R -> -r.

18 years agoAdd shuf.
Paul Eggert [Tue, 8 Aug 2006 22:11:18 +0000 (22:11 +0000)]
Add shuf.

18 years agoAdd shuf. Mention new --random-source option for shred and sort.
Paul Eggert [Tue, 8 Aug 2006 22:10:39 +0000 (22:10 +0000)]
Add shuf.  Mention new --random-source option for shred and sort.
Move "sort +1 -2" notice to the appropriate section, and clarify its
role with respect to POSIXLY_CORRECT.

18 years agoAdd shuf.
Paul Eggert [Tue, 8 Aug 2006 22:10:05 +0000 (22:10 +0000)]
Add shuf.

18 years ago(set_author): Preserve the st_author field via the
Paul Eggert [Sat, 29 Jul 2006 17:13:28 +0000 (17:13 +0000)]
(set_author): Preserve the st_author field via the
file descriptor dest_desc.

18 years agochmod 0755 DIR and chmod 755 DIR are now equivalent.
Paul Eggert [Fri, 28 Jul 2006 07:28:56 +0000 (07:28 +0000)]
chmod 0755 DIR and chmod 755 DIR are now equivalent.

18 years agochmod now preserves setuid and setgid bits on directories
Paul Eggert [Fri, 28 Jul 2006 07:27:56 +0000 (07:27 +0000)]
chmod now preserves setuid and setgid bits on directories
if you use a numeric mode with them clear, e.g., "chmod 755 DIR".

18 years agoClear setuid and setuid bits on directory, in case the build
Paul Eggert [Fri, 28 Jul 2006 07:27:20 +0000 (07:27 +0000)]
Clear setuid and setuid bits on directory, in case the build
directory has them set and they're inherited.

18 years agoUse symbolic mode so that we clear
Paul Eggert [Fri, 28 Jul 2006 07:26:39 +0000 (07:26 +0000)]
Use symbolic mode so that we clear
setgid bit more reliably on directories.

18 years agoRemove obsolete comment about masks.
Paul Eggert [Fri, 28 Jul 2006 07:26:06 +0000 (07:26 +0000)]
Remove obsolete comment about masks.

18 years ago(mode_compile): Numeric modes now affect setuid and
Paul Eggert [Fri, 28 Jul 2006 07:25:44 +0000 (07:25 +0000)]
(mode_compile): Numeric modes now affect setuid and
setgid on directories only if they set these bits.

18 years ago(Changing Special Mode Bits): Clarify u+s versus
Paul Eggert [Fri, 28 Jul 2006 07:21:03 +0000 (07:21 +0000)]
(Changing Special Mode Bits): Clarify u+s versus
a+s versus +s, and likewise for g+s.
(Numeric Modes): Bring back example of 0055 == 55.  4755 no
longer clears setgid bit on directories.
(Directory Setuid and Setgid): Numeric modes now affect setuid
and setgid on directories only if they set these bits.  This
is so that leading 0 has no effect on numeric modes.

18 years ago(install invocation, mkdir invocation):
Paul Eggert [Fri, 28 Jul 2006 07:20:28 +0000 (07:20 +0000)]
(install invocation, mkdir invocation):
Add cross-references to Directory Setuid and Setgid.
(install-invocation): The default mode is no longer equivalent to 755.

18 years ago* src/chgrp.c (usage): Use correct grammar in description of the --reference option
Jim Meyering [Thu, 27 Jul 2006 09:11:08 +0000 (09:11 +0000)]
* src/chgrp.c (usage): Use correct grammar in description of the --reference option
* src/chown.c (usage): Likewise.

18 years ago* src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:
Jim Meyering [Wed, 26 Jul 2006 14:43:00 +0000 (14:43 +0000)]
* src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:
Correctly access SRC_SB's element ST_AUTHOR.

18 years ago* tests/ls/stat-failed: Adapt to match new expected output.
Jim Meyering [Wed, 26 Jul 2006 14:35:19 +0000 (14:35 +0000)]
* tests/ls/stat-failed: Adapt to match new expected output.
From Paul Eggert.

18 years ago* src/ls.c (print_color_indicator): Test for S_IFREG first, rather
Jim Meyering [Wed, 26 Jul 2006 14:06:57 +0000 (14:06 +0000)]
* src/ls.c (print_color_indicator): Test for S_IFREG first, rather
than having the code test for all of the other types first.
Hoist the set-uid/gid-testing code "up" into this new block.
Classify any other type of file (e.g., S_TYPEISSHM, etc.) as
C_ORPHAN, not as C_FILE.

* doc/coreutils.texi (What information is listed): Mention that missing
pieces of information are marked with "?".  From Paul Eggert.

18 years agoChecking in a change from Paul.
Jim Meyering [Wed, 26 Jul 2006 13:47:41 +0000 (13:47 +0000)]
Checking in a change from Paul.

2006-07-25  Paul Eggert  <eggert@cs.ucla.edu>

* src/ls.c (DT_INIT): Remove.  All uses removed.
(enum filetype): Use an ordinary enum rather than trying to keep
the values in sync with DT_FIFO etc.  That way, we don't have
to make special assumptions about them.  All uses changed.
(whiteout): New constant member of enum filetype.
(filetype_letter): New constant, for use with enum filetype.
(FILETYPE_INDICATORS): New initializer list.
(print_dir): Add case for DT_WHT.
(gobble_file): If stat fails, don't discard information from
readdir; instead, preserve it so it can be printed.
(print_long_format): Fall back on readdir result if stat info
is not available.  Use "?" to denote each unknown mode char,
instead of an overall "?", since we now know some of the mode
typically.
(print_type_indicator): Now that MODE isn't necessarily
useful, guard all uses.
Now that two blocks in the type-checking tree can set "type = C_FILE",
move the suffix-handling code out and down.

18 years agoPrepare for the above change.
Jim Meyering [Wed, 26 Jul 2006 13:33:07 +0000 (13:33 +0000)]
Prepare for the above change.
* src/ls.c [struct fileinfo] (stat_ok): Rename from stat_failed,
and adjust uses.  From a patch by Paul Eggert.

18 years ago* src/ls.c: Correct indentation/formatting in a few places.
Jim Meyering [Wed, 26 Jul 2006 09:52:43 +0000 (09:52 +0000)]
* src/ls.c: Correct indentation/formatting in a few places.

18 years agoClarify the "chmod 0500" news, and correct the vague
Paul Eggert [Tue, 25 Jul 2006 18:38:58 +0000 (18:38 +0000)]
Clarify the "chmod 0500" news, and correct the vague
statements about compatibility with BSD.

18 years agoUse "chmod 0500" rather than "chmod 500".
Paul Eggert [Tue, 25 Jul 2006 18:38:25 +0000 (18:38 +0000)]
Use "chmod 0500" rather than "chmod 500".

18 years ago(Directory Setuid and Setgid): Explain that this is a
Paul Eggert [Tue, 25 Jul 2006 18:37:55 +0000 (18:37 +0000)]
(Directory Setuid and Setgid): Explain that this is a
GNU extension, and that other systems behave differently here.

18 years ago* src/ls.c (gobble_file): When handling a stat-failed entry,
Jim Meyering [Tue, 25 Jul 2006 16:35:59 +0000 (16:35 +0000)]
* src/ls.c (gobble_file): When handling a stat-failed entry,
print the entry name not the absolute_name -- to be consistent
with the usual case.
* tests/ls/stat-failed: Update accordingly.

18 years ago* tests/ls-2/tests (no-a-isdir-b): Update to reflect addition
Jim Meyering [Tue, 25 Jul 2006 15:40:02 +0000 (15:40 +0000)]
* tests/ls-2/tests (no-a-isdir-b): Update to reflect addition
of "cannot access " to diagnostic.

18 years ago*** empty log message ***
Jim Meyering [Tue, 25 Jul 2006 15:36:07 +0000 (15:36 +0000)]
*** empty log message ***

18 years ago* src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks.
Jim Meyering [Tue, 25 Jul 2006 15:34:58 +0000 (15:34 +0000)]
* src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks.

18 years ago* src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks.
Jim Meyering [Tue, 25 Jul 2006 15:33:57 +0000 (15:33 +0000)]
* src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks.

18 years agoGet --dired offsets right when handling stat-failed entries.
Jim Meyering [Tue, 25 Jul 2006 15:30:27 +0000 (15:30 +0000)]
Get --dired offsets right when handling stat-failed entries.
* src/ls.c (print_long_format): Be careful to increment P by the
appropriate amount, even when inode_number_width and nlink_width
are zero.
* tests/ls/stat-failed: Test for the above.

18 years ago* src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the
Jim Meyering [Tue, 25 Jul 2006 15:25:37 +0000 (15:25 +0000)]
* src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the
have_acl member.  That would happen for a directory with both a
non-stat'able entry and one with an ACL.

18 years ago* src/ls.c (gobble_file): Make it so failure to stat a
Jim Meyering [Tue, 25 Jul 2006 15:23:59 +0000 (15:23 +0000)]
* src/ls.c (gobble_file): Make it so failure to stat a
non-command-line file provokes an exit status of 1, not 0.
Say "cannot access" rather than "cannot stat".
* tests/ls/stat-failed: New file/test, for the above.
* tests/ls/Makefile.am (TESTS): Add stat-failed.

18 years ago* src/ls.c: Declare stat_failed to be "bool", not "int" everywhere.
Jim Meyering [Tue, 25 Jul 2006 15:13:56 +0000 (15:13 +0000)]
* src/ls.c: Declare stat_failed to be "bool", not "int" everywhere.

18 years ago* src/ls.c [enum filetype] (command_line): Remove member. Not needed.
Jim Meyering [Tue, 25 Jul 2006 15:12:26 +0000 (15:12 +0000)]
* src/ls.c [enum filetype] (command_line): Remove member.  Not needed.
Replace all occurrences of "type == command_line" with the
equivalent, "command_line_arg".

18 years ago* src/ls.c: Apply the stat-failed parts of Red Hat's
Jim Meyering [Tue, 25 Jul 2006 15:09:56 +0000 (15:09 +0000)]
* src/ls.c: Apply the stat-failed parts of Red Hat's
coreutils-selinux.patch.  From Ulrich Drepper.
This makes it so files not mentioned on the command line (e.g.,
names read from a directory that *is* mentioned on the command
line) for which stat fails are still listed.  With --color,
such files are colored just like ORPHANs (aka dangling symlinks).

18 years ago.
Jim Meyering [Tue, 25 Jul 2006 14:34:39 +0000 (14:34 +0000)]
.

18 years agovc-list-files: Handle git repositories, too.
Jim Meyering [Tue, 25 Jul 2006 14:10:12 +0000 (14:10 +0000)]
vc-list-files: Handle git repositories, too.

18 years ago* src/df.c (n_valid_args): Declare global to be static.
Jim Meyering [Tue, 25 Jul 2006 14:06:21 +0000 (14:06 +0000)]
* src/df.c (n_valid_args): Declare global to be static.

18 years agoSkip this test on reiserfs, since that file system lacks d_type support.
Jim Meyering [Mon, 24 Jul 2006 14:02:35 +0000 (14:02 +0000)]
Skip this test on reiserfs, since that file system lacks d_type support.

18 years agoUpdate to reflect recent changes to coreutils.texi.
Paul Eggert [Sun, 23 Jul 2006 01:27:27 +0000 (01:27 +0000)]
Update to reflect recent changes to coreutils.texi.

18 years ago(Mode Structure, Symbolic Modes, Numeric Modes): Be more careful
Paul Eggert [Sun, 23 Jul 2006 01:26:56 +0000 (01:26 +0000)]
(Mode Structure, Symbolic Modes, Numeric Modes): Be more careful
about distinguishing file mode bits from permissions bits,
and about execute versus search permission.  The FreeBSD command
is chflags, not chrflags.

18 years ago(Mode Structure): The restricted deletion flag
Paul Eggert [Sat, 22 Jul 2006 23:42:19 +0000 (23:42 +0000)]
(Mode Structure): The restricted deletion flag
restricts only unprivileged users.

18 years ago(What information is listed): Clarify that the restricted deletion
Paul Eggert [Sat, 22 Jul 2006 23:41:43 +0000 (23:41 +0000)]
(What information is listed): Clarify that the restricted deletion
flag is another name for the sticky bit.

18 years agoSplit closeout into close-stream and closeout.
Paul Eggert [Sat, 22 Jul 2006 22:28:53 +0000 (22:28 +0000)]
Split closeout into close-stream and closeout.

18 years ago(close_stdout): Use new function close_stream.
Paul Eggert [Sat, 22 Jul 2006 22:27:17 +0000 (22:27 +0000)]
(close_stdout): Use new function close_stream.

18 years agoInitial revision.
Paul Eggert [Sat, 22 Jul 2006 22:26:04 +0000 (22:26 +0000)]
Initial revision.

18 years ago(gl_PREREQ): Require gl_CLOSE_STREAM.
Paul Eggert [Sat, 22 Jul 2006 22:23:43 +0000 (22:23 +0000)]
(gl_PREREQ): Require gl_CLOSE_STREAM.

18 years ago* src/su.c (usage): Correct typo in --help output: s/commmand/command/
Jim Meyering [Fri, 21 Jul 2006 13:32:40 +0000 (13:32 +0000)]
* src/su.c (usage): Correct typo in --help output: s/commmand/command/
Reported by Tim Waugh.
Also remove the comment duplicating much of --help output.

18 years ago*** empty log message ***
Jim Meyering [Fri, 21 Jul 2006 09:14:43 +0000 (09:14 +0000)]
*** empty log message ***

18 years ago(FILE_TYPE_INDICATOR_OPTION): Reposition this new name so the list remains alphabetized.
Jim Meyering [Fri, 21 Jul 2006 09:14:39 +0000 (09:14 +0000)]
(FILE_TYPE_INDICATOR_OPTION): Reposition this new name so the list remains alphabetized.

18 years agomention yesterday's other ls bugfix
Jim Meyering [Fri, 21 Jul 2006 08:58:00 +0000 (08:58 +0000)]
mention yesterday's other ls bugfix

18 years ago*** empty log message ***
Jim Meyering [Fri, 21 Jul 2006 08:57:47 +0000 (08:57 +0000)]
*** empty log message ***

18 years agoFix another bug: ls --indicator-style=file-type would call
Jim Meyering [Fri, 21 Jul 2006 08:49:24 +0000 (08:49 +0000)]
Fix another bug: ls --indicator-style=file-type would call
stat for a symlink, even though it wasn't always needed.
In some cases, that unnecessary stat would cause ls to fail.
* src/ls.c (gobble_file): Don't treat symlinks specially (in
requiring a stat syscall).  Remove the offending exclusion.
* NEWS: Mention the fix.
* tests/ls/stat-dtype: New file/test, for the above fix.
Also exercises the new df feature, below.

18 years ago* src/df.c (main): Fail and don't print the headers if no
Jim Meyering [Thu, 20 Jul 2006 15:42:26 +0000 (15:42 +0000)]
* src/df.c (main): Fail and don't print the headers if no
file system is processed.  This makes it easy to test whether
a specified directory is on a file system of a given type or types.
Otherwise, applications would have had to parse df's output.
E.g., is "." either ext3 or reiserfs: df -t ext3 -t reiserfs .

18 years ago*** empty log message ***
Jim Meyering [Thu, 20 Jul 2006 10:31:48 +0000 (10:31 +0000)]
*** empty log message ***

18 years ago(file-type): New test:
Jim Meyering [Thu, 20 Jul 2006 10:30:42 +0000 (10:30 +0000)]
(file-type): New test:
For 5.97 and earlier, --file-type acted like --indicator-style=slash.

18 years agoFix a bug: ls --file-type worked like --indicator-style=slash,
Jim Meyering [Thu, 20 Jul 2006 10:20:23 +0000 (10:20 +0000)]
Fix a bug: ls --file-type worked like --indicator-style=slash,
rather than like --indicator-style=file-type.

(FILE_TYPE_INDICATOR_OPTION): New enum member.
(long_options): Map "file-type" to FILE_TYPE_INDICATOR_OPTION,
not to 'p'.
(decode_switches): Handle new case: FILE_TYPE_INDICATOR_OPTION.

18 years ago*** empty log message ***
Jim Meyering [Thu, 20 Jul 2006 08:34:22 +0000 (08:34 +0000)]
*** empty log message ***

18 years ago[ME_REMOTE]: Filter out cifs.
Jim Meyering [Thu, 20 Jul 2006 08:34:15 +0000 (08:34 +0000)]
[ME_REMOTE]: Filter out cifs.
Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.

18 years ago*** empty log message ***
Jim Meyering [Thu, 20 Jul 2006 08:33:19 +0000 (08:33 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Thu, 20 Jul 2006 07:57:10 +0000 (07:57 +0000)]
*** empty log message ***

18 years ago(ME_REMOTE): Compare strchr's result to NULL, not 0, for better readability.
Jim Meyering [Thu, 20 Jul 2006 07:57:06 +0000 (07:57 +0000)]
(ME_REMOTE): Compare strchr's result to NULL, not 0, for better readability.

18 years ago* src/ls.c (print_dir): Give a better diagnostic for failed opendir.
Jim Meyering [Wed, 19 Jul 2006 10:36:02 +0000 (10:36 +0000)]
* src/ls.c (print_dir): Give a better diagnostic for failed opendir.

18 years ago*** empty log message ***
Jim Meyering [Wed, 19 Jul 2006 09:56:03 +0000 (09:56 +0000)]
*** empty log message ***

18 years ago(EXTRA_DIST): Add build-aux/vc-list-files.
Jim Meyering [Wed, 19 Jul 2006 09:54:53 +0000 (09:54 +0000)]
(EXTRA_DIST): Add build-aux/vc-list-files.

18 years ago*** empty log message ***
Jim Meyering [Wed, 19 Jul 2006 09:54:32 +0000 (09:54 +0000)]
*** empty log message ***

18 years agoCommand line args correspond to an "include" list, not an exclude list.
Jim Meyering [Wed, 19 Jul 2006 09:54:28 +0000 (09:54 +0000)]
Command line args correspond to an "include" list, not an exclude list.

18 years agotweak spacing to align backslashes
Jim Meyering [Wed, 19 Jul 2006 08:43:27 +0000 (08:43 +0000)]
tweak spacing to align backslashes

18 years agoIn comment: bits bits -> bits.
Paul Eggert [Mon, 17 Jul 2006 05:56:28 +0000 (05:56 +0000)]
In comment: bits bits -> bits.

18 years agoRegenerate.
Paul Eggert [Mon, 17 Jul 2006 03:52:18 +0000 (03:52 +0000)]
Regenerate.

18 years agoRegenerate.
Paul Eggert [Mon, 17 Jul 2006 03:51:25 +0000 (03:51 +0000)]
Regenerate.

18 years agoFix typo in previous checkin; some file names were wrong.
Paul Eggert [Mon, 17 Jul 2006 03:35:18 +0000 (03:35 +0000)]
Fix typo in previous checkin; some file names were wrong.

18 years agochmod, install, and mkdir now leave setgid and setuid bits
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.

18 years agoAdd a test for the X bug.
Paul Eggert [Mon, 17 Jul 2006 03:12:44 +0000 (03:12 +0000)]
Add a test for the X bug.

18 years agoRemove re_protect case that no longer applies.
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.

18 years agoDo the setgid test instead of bailing.
Paul Eggert [Mon, 17 Jul 2006 03:11:51 +0000 (03:11 +0000)]
Do the setgid test instead of bailing.

18 years ago(main): Adjust to new mode_adjust API.
Paul Eggert [Mon, 17 Jul 2006 03:11:01 +0000 (03:11 +0000)]
(main): Adjust to new mode_adjust API.

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

18 years ago(struct mkdir_options): New struct.
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.

18 years agoInclude mkancesdirs.h.
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.

18 years ago(process_file): Adjust to mode_adjust API change.
Paul Eggert [Mon, 17 Jul 2006 03:09:26 +0000 (03:09 +0000)]
(process_file): Adjust to mode_adjust API change.

18 years ago(gl_PREREQ): Require gl_MKANCESDIRS.
Paul Eggert [Mon, 17 Jul 2006 03:09:09 +0000 (03:09 +0000)]
(gl_PREREQ): Require gl_MKANCESDIRS.

18 years ago(gl_MKDIR_PARENTS): Mention dirchownmod.c, dirchownmod.h.
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.

18 years agoRemove; no longer needed.
Paul Eggert [Mon, 17 Jul 2006 03:08:18 +0000 (03:08 +0000)]
Remove; no longer needed.

18 years ago(gl_MACROS): Remove gl_AFS.
Paul Eggert [Mon, 17 Jul 2006 03:08:04 +0000 (03:08 +0000)]
(gl_MACROS): Remove gl_AFS.