Paul Eggert [Tue, 15 Aug 2006 20:50:22 +0000 (20:50 +0000)]
* src/dd.c (print_stats): Don't substitute "1" for number, as this
causes confusion for the Hungarian translators. Problem reported
by Egmont Koblinger.
Jim Meyering [Tue, 15 Aug 2006 19:17:30 +0000 (19:17 +0000)]
[./]
* .x-sc_require_config_h: Add lib/at-func.c.
[lib/]
* at-func.c: New file, with the logic of all emulated at-functions.
* openat-priv.h: Include <errno.h> and define ENOSYS,
in support of the EXPECTED_ERRNO macro.
* openat.c (fstatat, unlinkat, fchownat): Remove function definitions.
Instead, define the appropriate symbols and include "at-func.c".
* mkdirat.c (mkdirat): Likewise.
* fchmodat.c (fchmodat): Likewise.
(ENOSYS): Remove definition.
* openat.c: Don't include <errno.h>, now that "openat-priv.h" does it.
Don't include "unistd--.h" -- it wasn't ever used.
[m4/]
* openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
Jim Meyering [Tue, 15 Aug 2006 17:00:00 +0000 (17:00 +0000)]
* NEWS: Add a line for 6.1-cvs.
* configure.ac (AC_INIT): Bump to 6.1 and add "-cvs" suffix.
Jim Meyering [Tue, 15 Aug 2006 12:30:26 +0000 (12:30 +0000)]
.
Jim Meyering [Tue, 15 Aug 2006 12:13:04 +0000 (12:13 +0000)]
* Makefile.maint (alpha beta major): Fix syntax error.
Jim Meyering [Tue, 15 Aug 2006 12:06:10 +0000 (12:06 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Aug 2006 12:05:34 +0000 (12:05 +0000)]
.
Jim Meyering [Tue, 15 Aug 2006 11:26:17 +0000 (11:26 +0000)]
Don't mention "stable" on Version line.
Jim Meyering [Tue, 15 Aug 2006 11:25:13 +0000 (11:25 +0000)]
tweak syntax of "Version ..." line.
Jim Meyering [Tue, 15 Aug 2006 11:23:44 +0000 (11:23 +0000)]
* TODO: Add an item (convert to use gnulib-tool), add to the plan
for id-vs-getgrouplist, and remove a few completed items.
Jim Meyering [Tue, 15 Aug 2006 11:12:07 +0000 (11:12 +0000)]
* Version 6.0 [unstable].
* NEWS: Record the 6.0 release date.
* configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
Jim Meyering [Tue, 15 Aug 2006 11:08:03 +0000 (11:08 +0000)]
commit, for the record. May never be used.
Jim Meyering [Tue, 15 Aug 2006 11:05:50 +0000 (11:05 +0000)]
do not set $path
Use --leak-check=full, not --quiet.
Emit "--" after $vg.
Jim Meyering [Tue, 15 Aug 2006 09:14:36 +0000 (09:14 +0000)]
update from gnulib
Paul Eggert [Mon, 14 Aug 2006 16:20:49 +0000 (16:20 +0000)]
(memcoll): Optimize for the common case where the
arguments are bytewise equal.
Jim Meyering [Sun, 13 Aug 2006 21:21:52 +0000 (21:21 +0000)]
* src/shred.c (usage): Don't indent the second line of an item.
Otherwise, help2man would misformat the output.
Reported by Adam Buchbinder in <https://launchpad.net/bugs/48917>.
Paul Eggert [Fri, 11 Aug 2006 20:28:42 +0000 (20:28 +0000)]
* pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
Paul Eggert [Fri, 11 Aug 2006 18:40:41 +0000 (18:40 +0000)]
(AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.
Paul Eggert [Fri, 11 Aug 2006 18:29:06 +0000 (18:29 +0000)]
(re_string_skip_chars): Don't assume WEOF fits in wchar_t.
Paul Eggert [Fri, 11 Aug 2006 17:47:40 +0000 (17:47 +0000)]
Fix typo in previous checkin: len -> lenbuf.
Paul Eggert [Fri, 11 Aug 2006 17:41:11 +0000 (17:41 +0000)]
(snprintf): memcpy LEN bytes, not SIZE - 1, when
LEN is smaller than SIZE. Suggested by Bruno Haible.
Also, help the compiler to keep LEN in a register.
Jim Meyering [Fri, 11 Aug 2006 08:40:11 +0000 (08:40 +0000)]
* tests/ls/stat-vs-dirent: Too many (losing) systems trigger the
failure that this test checks for (stat/dirent inode mismatch at
a mount point), so continue to give a diagnostic about the failure,
but don't actually count it as a failure.
Paul Eggert [Thu, 10 Aug 2006 22:53:24 +0000 (22:53 +0000)]
Undo latest change; I was confused about gettext versus gcc.
Paul Eggert [Thu, 10 Aug 2006 22:52:57 +0000 (22:52 +0000)]
Undo latest change; I was confused about xgettext versus gcc.
Paul Eggert [Thu, 10 Aug 2006 22:51:06 +0000 (22:51 +0000)]
Adjust some files for gettext 0.15.
Paul Eggert [Thu, 10 Aug 2006 22:50:40 +0000 (22:50 +0000)]
Import from gettext 0.15.
Paul Eggert [Thu, 10 Aug 2006 22:50:17 +0000 (22:50 +0000)]
(XGETTEXT_OPTIONS): Add pass-c-format flags for
_ and N_, so that we get format checking even when --enable-nls.
Add c-format flags for error, error_at_line, asprintf, vasprintf,
asnprintf, vasnprintf, wrapf.
(USE_MSGCTXT): New macro.
Paul Eggert [Thu, 10 Aug 2006 22:49:50 +0000 (22:49 +0000)]
(my-distcheck): Don't bother with --disable-nls,
as it shouldn't be needed with gettext 0.15.
Paul Eggert [Thu, 10 Aug 2006 22:49:26 +0000 (22:49 +0000)]
(AM_GNU_GETTEXT_VERSION): Update from 0.13.1 to 0.15.
Paul Eggert [Thu, 10 Aug 2006 22:49:06 +0000 (22:49 +0000)]
Import from gettext 0.15
Paul Eggert [Thu, 10 Aug 2006 20:53:32 +0000 (20:53 +0000)]
(struct control): Remove fastmap member.
(extract_regexp): Allocate fastmap separately, since otherwise
it might move due to a realloc.
Paul Eggert [Thu, 10 Aug 2006 20:49:28 +0000 (20:49 +0000)]
Import regex changes from libc via gnulib.
Paul Eggert [Thu, 10 Aug 2006 19:26:39 +0000 (19:26 +0000)]
Update cycle-check from gnulib.
Paul Eggert [Thu, 10 Aug 2006 19:10:52 +0000 (19:10 +0000)]
Accommodate new getaddrinfo implementation in gnulib.
(gl_PREREQ): Require gl_FUNC_SNPRINTF, gl_GETADDRINFO,
gl_HEADER_ARPA_INET, gl_HEADER_NETINET_IN, gl_HEADER_SYS_SOCKET,
gl_INET_NTOP, gl_TYPE_SOCKEN_T.
Paul Eggert [Thu, 10 Aug 2006 19:10:26 +0000 (19:10 +0000)]
Accommodate new getaddrinfo implementation in gnulib.
(libcoreutils_a_SOURCES): Add inet_ntop.h, snprintf.h.
(MOSTLYCLEANDIRS): New macro.
(BUILT_SOURCES): Add $(ARPA_INET_H), $(SYS_SOCKET_H), $(NETINET_IN_H).
(arpa/inet.h, netinet/in.h, sys/socket.h): New rules.
(MOSTLYCLEANFILES): Add arpa/inet.h, arpa/inet.h-t, netinet/in.h,
netinet/in.h-t, sys/socket.h, sys/socket.h-t.
(EXTRA_DIST): Add socket_.h.
Paul Eggert [Thu, 10 Aug 2006 19:09:33 +0000 (19:09 +0000)]
Import from gnulib, to support new getaddrinfo implementation of gnulib.
Paul Eggert [Thu, 10 Aug 2006 19:08:58 +0000 (19:08 +0000)]
Add snprintf.h, socket_.h.
Jim Meyering [Thu, 10 Aug 2006 09:22:33 +0000 (09:22 +0000)]
* tests/ls/stat-dtype: If "." is tmpfs, skip this test unless uname -s
reports "Linux". This avoids a failure on Solaris 10's tmpfs.
Redirect both stdout and stderr of df invocations.
Jim Meyering [Thu, 10 Aug 2006 08:50:37 +0000 (08:50 +0000)]
* src/dircolors.hin: Add a TERM directive for each of the following:
ansi, color-xterm, gnome, konsole, kterm, rxvt-cygwin,
rxvt-cygwin-native, screen.linux, xterm-256color.
Sort the TERM directives.
From Mike Frysinger.
Jim Meyering [Thu, 10 Aug 2006 08:25:03 +0000 (08:25 +0000)]
add a comment
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 ***