Paul Eggert [Wed, 9 Aug 2006 23:46:10 +0000 (23:46 +0000)]
Regenerate.
Paul Eggert [Wed, 9 Aug 2006 23:44:56 +0000 (23:44 +0000)]
Regenerate.
Paul Eggert [Wed, 9 Aug 2006 23:44:30 +0000 (23:44 +0000)]
Sync from gnulib.
Paul Eggert [Wed, 9 Aug 2006 23:42:26 +0000 (23:42 +0000)]
Sync from gnulib.
Paul Eggert [Wed, 9 Aug 2006 21:16:28 +0000 (21:16 +0000)]
Warn about oflag=append without conv=notrunc.
Paul Eggert [Wed, 9 Aug 2006 20:56:15 +0000 (20:56 +0000)]
Add mlterm, rxvt-unicode; this fixes Debian bug 317503.
Paul Eggert [Wed, 9 Aug 2006 20:24:38 +0000 (20:24 +0000)]
Regenerate.
Paul Eggert [Wed, 9 Aug 2006 20:23:36 +0000 (20:23 +0000)]
Regenerate.
Paul Eggert [Wed, 9 Aug 2006 20:23:07 +0000 (20:23 +0000)]
Add shuf.
Paul Eggert [Wed, 9 Aug 2006 20:11:12 +0000 (20:11 +0000)]
* LINGUAS: Add ro, sr, uk, wa.
* ro.po, sr.po, uk,po, wa.po: New files.
Regenerate other translations.
Paul Eggert [Wed, 9 Aug 2006 20:06:14 +0000 (20:06 +0000)]
Remove the po-update procedure; it doesn't
work with the new repository on http://www.iro.umontreal.ca/.
For now I guess we'll have to fix things by hand.
(do-po-update, po-update): Remove. All references removed.
Paul Eggert [Wed, 9 Aug 2006 20:05:18 +0000 (20:05 +0000)]
Fix too-long line in 2006-08-08 checkin, and an encoding error
in 2006-07-19 checkin.
Paul Eggert [Wed, 9 Aug 2006 18:08:06 +0000 (18:08 +0000)]
(my-distcheck): Compile with -Wpointer-arith
to detect this sort of problem automatically in the future.
Paul Eggert [Wed, 9 Aug 2006 18:07:43 +0000 (18:07 +0000)]
(next_line): New function.
(read_input): Use it, to avoid relying on GCC-specific behavior
with void * arithmetic.
Jim Meyering [Wed, 9 Aug 2006 09:45:17 +0000 (09:45 +0000)]
Add a compile-time check to ensure that filetype
and filetype_letter have the same number of elements.
Jim Meyering [Wed, 9 Aug 2006 08:24:37 +0000 (08:24 +0000)]
Remove use of --seed=S.
Jim Meyering [Wed, 9 Aug 2006 08:13:36 +0000 (08:13 +0000)]
Include <config.h>.
Jim Meyering [Wed, 9 Aug 2006 08:12:27 +0000 (08:12 +0000)]
Add lib/randread.c, lib/xmemxfrm.c, and src/shuf.c.
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.
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.
Paul Eggert [Tue, 8 Aug 2006 22:26:44 +0000 (22:26 +0000)]
Remove, since we no longer need gl_RESTRICT.
Paul Eggert [Tue, 8 Aug 2006 22:23:11 +0000 (22:23 +0000)]
Remove; its contents are now in ../lib/rand-isaac.c.
Paul Eggert [Tue, 8 Aug 2006 22:22:47 +0000 (22:22 +0000)]
New file, introduced for shuf, sort -R, and/or shred.
Paul Eggert [Tue, 8 Aug 2006 22:20:59 +0000 (22:20 +0000)]
(TESTS): Add shuf.
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.
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.
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.
Paul Eggert [Tue, 8 Aug 2006 22:18:39 +0000 (22:18 +0000)]
(dist_man_MANS): Add shuf.1.
(shuf.1): New dependency.
Paul Eggert [Tue, 8 Aug 2006 22:18:20 +0000 (22:18 +0000)]
Add shuf.1.
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.
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.
Paul Eggert [Tue, 8 Aug 2006 22:16:51 +0000 (22:16 +0000)]
(gl_PREREQ): Require gl_MEMXFRM, gl_RANDINT, gl_RANDPERM,
gl_RANDREAD.
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.
Paul Eggert [Tue, 8 Aug 2006 22:12:21 +0000 (22:12 +0000)]
(libcoreutils_a_SOURCES): Add xmemxfrm.c, xmemxfrm.h.
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.
Paul Eggert [Tue, 8 Aug 2006 22:11:18 +0000 (22:11 +0000)]
Add shuf.
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.
Paul Eggert [Tue, 8 Aug 2006 22:10:05 +0000 (22:10 +0000)]
Add shuf.
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.
Paul Eggert [Fri, 28 Jul 2006 07:28:56 +0000 (07:28 +0000)]
chmod 0755 DIR and chmod 755 DIR are now equivalent.
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".
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.
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.
Paul Eggert [Fri, 28 Jul 2006 07:26:06 +0000 (07:26 +0000)]
Remove obsolete comment about masks.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Jim Meyering [Wed, 26 Jul 2006 09:52:43 +0000 (09:52 +0000)]
* src/ls.c: Correct indentation/formatting in a few places.
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.
Paul Eggert [Tue, 25 Jul 2006 18:38:25 +0000 (18:38 +0000)]
Use "chmod 0500" rather than "chmod 500".
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.
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.
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.
Jim Meyering [Tue, 25 Jul 2006 15:36:07 +0000 (15:36 +0000)]
*** empty log message ***
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.
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.
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.
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.
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.
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.
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".
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).
Jim Meyering [Tue, 25 Jul 2006 14:34:39 +0000 (14:34 +0000)]
.
Jim Meyering [Tue, 25 Jul 2006 14:10:12 +0000 (14:10 +0000)]
vc-list-files: Handle git repositories, too.
Jim Meyering [Tue, 25 Jul 2006 14:06:21 +0000 (14:06 +0000)]
* src/df.c (n_valid_args): Declare global to be static.
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.
Paul Eggert [Sun, 23 Jul 2006 01:27:27 +0000 (01:27 +0000)]
Update to reflect recent changes to coreutils.texi.
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.
Paul Eggert [Sat, 22 Jul 2006 23:42:19 +0000 (23:42 +0000)]
(Mode Structure): The restricted deletion flag
restricts only unprivileged users.
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.
Paul Eggert [Sat, 22 Jul 2006 22:28:53 +0000 (22:28 +0000)]
Split closeout into close-stream and closeout.
Paul Eggert [Sat, 22 Jul 2006 22:27:17 +0000 (22:27 +0000)]
(close_stdout): Use new function close_stream.
Paul Eggert [Sat, 22 Jul 2006 22:26:04 +0000 (22:26 +0000)]
Initial revision.
Paul Eggert [Sat, 22 Jul 2006 22:23:43 +0000 (22:23 +0000)]
(gl_PREREQ): Require gl_CLOSE_STREAM.
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.
Jim Meyering [Fri, 21 Jul 2006 09:14:43 +0000 (09:14 +0000)]
*** empty log message ***
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.
Jim Meyering [Fri, 21 Jul 2006 08:58:00 +0000 (08:58 +0000)]
mention yesterday's other ls bugfix
Jim Meyering [Fri, 21 Jul 2006 08:57:47 +0000 (08:57 +0000)]
*** empty log message ***
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.
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 .
Jim Meyering [Thu, 20 Jul 2006 10:31:48 +0000 (10:31 +0000)]
*** empty log message ***
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.
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.
Jim Meyering [Thu, 20 Jul 2006 08:34:22 +0000 (08:34 +0000)]
*** empty log message ***
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>.
Jim Meyering [Thu, 20 Jul 2006 08:33:19 +0000 (08:33 +0000)]
*** empty log message ***
Jim Meyering [Thu, 20 Jul 2006 07:57:10 +0000 (07:57 +0000)]
*** empty log message ***
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.
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.
Jim Meyering [Wed, 19 Jul 2006 09:56:03 +0000 (09:56 +0000)]
*** empty log message ***
Jim Meyering [Wed, 19 Jul 2006 09:54:53 +0000 (09:54 +0000)]
(EXTRA_DIST): Add build-aux/vc-list-files.
Jim Meyering [Wed, 19 Jul 2006 09:54:32 +0000 (09:54 +0000)]
*** empty log message ***
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.