platform/upstream/coreutils.git
19 years ago(leapyear): Arg is long int, not int. Change imported from gnulib.
Paul Eggert [Sun, 24 Oct 2004 23:24:47 +0000 (23:24 +0000)]
(leapyear): Arg is long int, not int.  Change imported from gnulib.

19 years ago.
Jim Meyering [Thu, 21 Oct 2004 10:39:15 +0000 (10:39 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Thu, 21 Oct 2004 10:38:56 +0000 (10:38 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Thu, 21 Oct 2004 10:38:37 +0000 (10:38 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Thu, 21 Oct 2004 10:38:09 +0000 (10:38 +0000)]
*** empty log message ***

19 years agoCorrect my patch of 2004-10-18.
Jim Meyering [Thu, 21 Oct 2004 10:37:18 +0000 (10:37 +0000)]
Correct my patch of 2004-10-18.

(rm): Destroy the saved_cwd here (via cwd_state),
if necessary, not in remove_dir.  Otherwise, removing multiple
`.'-relative nonempty directories no longer worked.

19 years ago*** empty log message ***
Jim Meyering [Thu, 21 Oct 2004 09:19:06 +0000 (09:19 +0000)]
*** empty log message ***

19 years ago(TESTS): Add leak-fd.
Jim Meyering [Thu, 21 Oct 2004 09:17:50 +0000 (09:17 +0000)]
(TESTS): Add leak-fd.

19 years ago*** empty log message ***
Jim Meyering [Thu, 21 Oct 2004 09:16:52 +0000 (09:16 +0000)]
*** empty log message ***

19 years ago(TESTS): Add dot-rel.
Jim Meyering [Thu, 21 Oct 2004 08:07:27 +0000 (08:07 +0000)]
(TESTS): Add dot-rel.

19 years ago*** empty log message ***
Jim Meyering [Thu, 21 Oct 2004 08:06:26 +0000 (08:06 +0000)]
*** empty log message ***

19 years ago* src/fmt.c (usage): Improve description of --prefix.
Paul Eggert [Wed, 20 Oct 2004 21:17:15 +0000 (21:17 +0000)]
* src/fmt.c (usage): Improve description of --prefix.

19 years ago(usage): Improve description of --prefix.
Paul Eggert [Wed, 20 Oct 2004 21:16:56 +0000 (21:16 +0000)]
(usage): Improve description of --prefix.
Problem reported by Edward Welbourne.

19 years ago* man/uniq.x: Change summary.
Paul Eggert [Wed, 20 Oct 2004 20:21:23 +0000 (20:21 +0000)]
* man/uniq.x: Change summary.

19 years agoChange summary so that it doesn't imply that uniq writes to its input file.
Paul Eggert [Wed, 20 Oct 2004 20:19:28 +0000 (20:19 +0000)]
Change summary so that it doesn't imply that uniq writes to its input file.

19 years ago*** empty log message ***
Jim Meyering [Mon, 18 Oct 2004 08:59:17 +0000 (08:59 +0000)]
*** empty log message ***

19 years agoPlug a leak that would cause rm or a cross-device mv to fail when
Jim Meyering [Mon, 18 Oct 2004 08:59:12 +0000 (08:59 +0000)]
Plug a leak that would cause rm or a cross-device mv to fail when
operating on too many command-line-specified nonempty directories.

(remove_dir): Destroy the `struct saved_cwd' on the
top of the stack before returning.  This usually closes the file
descriptor that was used to return to the original working directory.
Reported by Cyril Bouthors in
http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/3048

19 years ago rm (and mv when moving between partitions) no longer fails when
Jim Meyering [Mon, 18 Oct 2004 08:58:55 +0000 (08:58 +0000)]
  rm (and mv when moving between partitions) no longer fails when
  operating on too many command-line-specified nonempty directories.

19 years ago*** empty log message ***
Jim Meyering [Mon, 18 Oct 2004 08:56:19 +0000 (08:56 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Mon, 18 Oct 2004 08:26:51 +0000 (08:26 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Mon, 18 Oct 2004 08:19:41 +0000 (08:19 +0000)]
*** empty log message ***

19 years ago(validate_file_name): Give a more descriptive
Jim Meyering [Mon, 18 Oct 2004 08:19:26 +0000 (08:19 +0000)]
(validate_file_name): Give a more descriptive
diagnostic when pathconf fails.  This also avoids an unwarranted
warning from gcc-3.3.5 about a format not being a string literal.

19 years ago*** empty log message ***
Jim Meyering [Mon, 18 Oct 2004 07:56:26 +0000 (07:56 +0000)]
*** empty log message ***

19 years ago(main): Remove declaration of unused local, optc.
Jim Meyering [Mon, 18 Oct 2004 07:54:01 +0000 (07:54 +0000)]
(main): Remove declaration of unused local, optc.

19 years ago(main): Remove declaration of unused local, opt.
Jim Meyering [Mon, 18 Oct 2004 07:53:45 +0000 (07:53 +0000)]
(main): Remove declaration of unused local, opt.

19 years ago(main): Remove declaration of unused local, c.
Jim Meyering [Mon, 18 Oct 2004 07:52:19 +0000 (07:52 +0000)]
(main): Remove declaration of unused local, c.

19 years agoRegenerate.
Paul Eggert [Mon, 18 Oct 2004 06:34:20 +0000 (06:34 +0000)]
Regenerate.

19 years agopathchk cleanups, gnulib merge
Paul Eggert [Mon, 18 Oct 2004 06:33:20 +0000 (06:33 +0000)]
pathchk cleanups, gnulib merge

19 years ago(AUTHORS): Add self.
Paul Eggert [Mon, 18 Oct 2004 06:30:49 +0000 (06:30 +0000)]
(AUTHORS): Add self.
Change "path" to "file name" whenever possible.
Remove usage comment, as it was a duplication of the code or doc.
Include <wchar.h> if available.
(mbrlen, mbstate_t) [! (HAVE_MBRLEN && HAVE_MBSTATE_T)]: Define.
(NEED_PATHCONF_WRAPPER, PATH_MAX, PATH_MAX_FOR, NAME_MAX,
pathconf_wrapper, portable_chars, dir_ok): Remove.
(NAME_MAX_MINIMUM, PATH_MAX_MINIMUM): New macros.
(pathconf, _PC_NAME_MAX, _PC_PATH_MAX): Define if nonexistent.
(portable_chars_only): New arg FILELEN.
Don't assume ASCII; we might be on an EBCDIC host.
Don't assume unibyte locale in diagnostic.
(component_start, component_len): New functions.
(validate_file_name): Renamed from validate_path.  All uses changed.
Pretty much a complete rewrite.
Don't make copy of file arg.  Always append trailing slash to
pathconf arg, just in case it's a symlink (this is pure paranoia;
we don't know of any hosts where the trailing slash is required).
Use size_t instead of long int when possible.
Avoid need to call pathconf in most practical cases.
Don't use euidaccess several times to test searchability;
just use lstat once.  Reword diagnostic to put the (often very long)
file names last.

19 years ago(gl_MACROS): Check for mbrlen, for pathchk.
Paul Eggert [Mon, 18 Oct 2004 06:30:22 +0000 (06:30 +0000)]
(gl_MACROS): Check for mbrlen, for pathchk.
(gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.

19 years ago(pathchk invocation): Overall lengths are
Paul Eggert [Mon, 18 Oct 2004 06:29:51 +0000 (06:29 +0000)]
(pathchk invocation): Overall lengths are
OS limits, not file system limits.  Component length checks
apply to all components, not merely to existing ones.  Say
that nonexistent names are not errors.  For -p, omit all
checks based on the underlying file system, not merely length
checks.  Explain what the portabile file name character set is.

19 years agoAdd self to pathchk.
Paul Eggert [Mon, 18 Oct 2004 06:29:19 +0000 (06:29 +0000)]
Add self to pathchk.

19 years agoSync from gnulib.
Paul Eggert [Mon, 18 Oct 2004 05:06:47 +0000 (05:06 +0000)]
Sync from gnulib.

19 years ago* src/printf.c (usage): Mention Unicode, and use H for hex digits.
Paul Eggert [Fri, 15 Oct 2004 19:32:04 +0000 (19:32 +0000)]
* src/printf.c (usage): Mention Unicode, and use H for hex digits.

19 years ago(usage): Mention Unicode, and use H for hex digits.
Paul Eggert [Fri, 15 Oct 2004 19:31:47 +0000 (19:31 +0000)]
(usage): Mention Unicode, and use H for hex digits.

19 years ago(printf invocation): Mention ISO/IEC 10646 as well as Unicode.
Paul Eggert [Fri, 15 Oct 2004 19:31:26 +0000 (19:31 +0000)]
(printf invocation): Mention ISO/IEC 10646 as well as Unicode.

19 years ago(printf invocation): Mention ISO/IEC 10646 as
Paul Eggert [Fri, 15 Oct 2004 19:31:08 +0000 (19:31 +0000)]
(printf invocation): Mention ISO/IEC 10646 as
well as Unicode.  Various minor formatting cleanups.

19 years ago*** empty log message ***
Jim Meyering [Thu, 14 Oct 2004 19:55:18 +0000 (19:55 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Thu, 14 Oct 2004 19:22:50 +0000 (19:22 +0000)]
*** empty log message ***

19 years ago* tests/stty/row-col-1: Set LC_ALL=C.
Paul Eggert [Wed, 13 Oct 2004 23:07:09 +0000 (23:07 +0000)]
* tests/stty/row-col-1: Set LC_ALL=C.

19 years ago*** empty log message ***
Paul Eggert [Wed, 13 Oct 2004 23:06:57 +0000 (23:06 +0000)]
*** empty log message ***

19 years ago* coreutils.texi (sort invocation): Move LC_ALL, LC_COLLATE
Paul Eggert [Wed, 13 Oct 2004 23:05:08 +0000 (23:05 +0000)]
* coreutils.texi (sort invocation): Move LC_ALL, LC_COLLATE

19 years ago(sort invocation): Move LC_ALL, LC_COLLATE
Paul Eggert [Wed, 13 Oct 2004 21:47:58 +0000 (21:47 +0000)]
(sort invocation): Move LC_ALL, LC_COLLATE
index entries to proper paragraph.

19 years ago*** empty log message ***
Jim Meyering [Wed, 13 Oct 2004 19:25:34 +0000 (19:25 +0000)]
*** empty log message ***

19 years ago(fts_read): When about to fail (by returning NULL) due
Jim Meyering [Wed, 13 Oct 2004 19:25:30 +0000 (19:25 +0000)]
(fts_read): When about to fail (by returning NULL) due
to a failed fchdir or failed fts_safe_changedir call, set
`sp->fts_cur = p'.  Do this by removing the explicit `return NULL;'
statements and setting p->fts_errno so execution falls through
to the common-case code below.  Otherwise, after such a failure,
calling fts_close would attempt to free an already-freed buffer.
Reported by Luis Lopez Lopez in http://bugs.debian.org/276352.

19 years ago*** empty log message ***
Jim Meyering [Tue, 12 Oct 2004 16:58:54 +0000 (16:58 +0000)]
*** empty log message ***

19 years agoAdd .mpc as an audio suffix, too.
Jim Meyering [Tue, 12 Oct 2004 16:58:51 +0000 (16:58 +0000)]
Add .mpc as an audio suffix, too.

19 years ago*** empty log message ***
Jim Meyering [Tue, 12 Oct 2004 16:54:28 +0000 (16:54 +0000)]
*** empty log message ***

19 years agoAdd .flac as an audio suffix.
Jim Meyering [Tue, 12 Oct 2004 16:54:24 +0000 (16:54 +0000)]
Add .flac as an audio suffix.

19 years ago(check-texinfo): Add `builtin' and `builtins' to the list of words to avoid.
Jim Meyering [Tue, 12 Oct 2004 09:14:56 +0000 (09:14 +0000)]
(check-texinfo): Add `builtin' and `builtins' to the list of words to avoid.

19 years ago(check-texinfo): Add `builtin' and `builtins' to
Jim Meyering [Tue, 12 Oct 2004 07:58:47 +0000 (07:58 +0000)]
(check-texinfo): Add `builtin' and `builtins' to
the list of words to avoid.

19 years agoAdd missing .
Paul Eggert [Mon, 11 Oct 2004 23:47:20 +0000 (23:47 +0000)]
Add missing .

19 years ago* coreutils.texi (Special built-in utilities): New node.
Paul Eggert [Mon, 11 Oct 2004 23:44:18 +0000 (23:44 +0000)]
* coreutils.texi (Special built-in utilities): New node.
Warn about env variable spelling.

19 years ago(Special built-in utilities): New node.
Paul Eggert [Mon, 11 Oct 2004 23:43:49 +0000 (23:43 +0000)]
(Special built-in utilities): New node.
(printf invocation): builtin -> built-in, for consistency
with POSIX terminology.
(test invocation, pwd invocation):
Use specific rather than generic language to warn about
built-in commands.
(chroot invocation, env invocation, nice invocation, nohup invocation):
Warn that command must not be a special built-in.
(env invocation): Warn about environment variables with unusual
spellings, or duplicates.

19 years ago*** empty log message ***
Jim Meyering [Mon, 11 Oct 2004 06:49:45 +0000 (06:49 +0000)]
*** empty log message ***

19 years ago* src/ls.c (ignore_mode): Renamed from ignore.
Paul Eggert [Tue, 5 Oct 2004 17:38:35 +0000 (17:38 +0000)]
* src/ls.c (ignore_mode): Renamed from ignore.

19 years ago(ignore_mode): Renamed from ignore, to avoid shadowing
Paul Eggert [Tue, 5 Oct 2004 17:38:15 +0000 (17:38 +0000)]
(ignore_mode): Renamed from ignore, to avoid shadowing
problems.  All uses changed.

19 years ago*** empty log message ***
Jim Meyering [Tue, 5 Oct 2004 14:52:12 +0000 (14:52 +0000)]
*** empty log message ***

19 years agoAdd an exclusion for config/texinfo.tex,
Jim Meyering [Tue, 5 Oct 2004 14:52:04 +0000 (14:52 +0000)]
Add an exclusion for config/texinfo.tex,
since Karl says its trailing blanks are there to stay :-)

19 years agoremove trailing blanks.
Jim Meyering [Tue, 5 Oct 2004 07:13:08 +0000 (07:13 +0000)]
remove trailing blanks.

19 years agoRegenerate.
Paul Eggert [Tue, 5 Oct 2004 06:53:58 +0000 (06:53 +0000)]
Regenerate.

19 years agoRename xclone to xmemdup. Remove obsolete xalloc macros.
Paul Eggert [Tue, 5 Oct 2004 06:52:09 +0000 (06:52 +0000)]
Rename xclone to xmemdup.  Remove obsolete xalloc macros.
Remove xstrdup.c and move xstrdup implementation to xmalloc.c.

19 years ago* src/expr.c (NEW, OLD): Remove.
Paul Eggert [Tue, 5 Oct 2004 06:34:12 +0000 (06:34 +0000)]
* src/expr.c (NEW, OLD): Remove.

19 years ago(NEW, OLD): Remove, partly to avoid
Paul Eggert [Tue, 5 Oct 2004 06:33:53 +0000 (06:33 +0000)]
(NEW, OLD): Remove, partly to avoid
reference to obsolescent macro XMALLOC.
All uses replaced by xmalloc and free.

19 years agoSync from gnulib.
Paul Eggert [Tue, 5 Oct 2004 06:05:20 +0000 (06:05 +0000)]
Sync from gnulib.

19 years agoRegenerate.
Paul Eggert [Mon, 4 Oct 2004 20:19:28 +0000 (20:19 +0000)]
Regenerate.

19 years agoSync from gnulib, to remove dependencies of other modules on unlocked-io.
Paul Eggert [Mon, 4 Oct 2004 20:18:43 +0000 (20:18 +0000)]
Sync from gnulib, to remove dependencies of other modules on unlocked-io.

19 years agoRegenerate.
Paul Eggert [Mon, 4 Oct 2004 04:12:53 +0000 (04:12 +0000)]
Regenerate.

19 years agoSync from gnulib.
Paul Eggert [Mon, 4 Oct 2004 04:12:18 +0000 (04:12 +0000)]
Sync from gnulib.

19 years agoSync from gnulib.
Paul Eggert [Mon, 4 Oct 2004 04:09:41 +0000 (04:09 +0000)]
Sync from gnulib.

19 years ago*** empty log message ***
Jim Meyering [Tue, 28 Sep 2004 06:34:29 +0000 (06:34 +0000)]
*** empty log message ***

19 years ago(usage): Clarify: --retry works only with --follow=name.
Jim Meyering [Tue, 28 Sep 2004 06:34:22 +0000 (06:34 +0000)]
(usage): Clarify: --retry works only with --follow=name.
Reported by Nik A. Melchior in http://bugs.debian.org/273781.

19 years ago* src/od.c (format_address_paren): Don't output c if it's '\0'.
Paul Eggert [Tue, 28 Sep 2004 01:09:41 +0000 (01:09 +0000)]
* src/od.c (format_address_paren): Don't output c if it's '\0'.

19 years ago(format_address_paren): c is optional, so don't output it if it's '\0'.
Paul Eggert [Tue, 28 Sep 2004 01:09:03 +0000 (01:09 +0000)]
(format_address_paren): c is optional, so don't output it if it's '\0'.

19 years ago*** empty log message ***
Jim Meyering [Mon, 27 Sep 2004 07:23:23 +0000 (07:23 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Mon, 27 Sep 2004 07:22:39 +0000 (07:22 +0000)]
.

19 years agoUse [[] in place of \[, since cvsu doesn't handle the latter,
Jim Meyering [Mon, 27 Sep 2004 07:20:46 +0000 (07:20 +0000)]
Use [[] in place of \[, since cvsu doesn't handle the latter,
and both cvs and cvsu handle the former.

19 years agoAdd "ls --hide".
Paul Eggert [Sun, 26 Sep 2004 22:56:53 +0000 (22:56 +0000)]
Add "ls --hide".

19 years agoAdd "ls --hide".
Paul Eggert [Sun, 26 Sep 2004 22:56:38 +0000 (22:56 +0000)]
Add "ls --hide".
(file_ignored): Renamed from file_interesting, with
inverted return value.  Accept the file name, not a struct dirent *.
All uses changed.  Avoid the expense of calling fnmatch if the
file is ignorable due to leading '.'.
(all_files, really_all_files): Removed; replaced by:
(ignore): New variable.  All uses changed.
(IGNORE_DEFAULT, IGNORE_DOT_AND_DOTDOT, IGNORE_MINIMAL, HIDE_OPTION):
New constants.
(hide_patterns): New variable.
(long_options, decode_switches, file_ignored, usage):
Add support for --hide.
(patterns_match): New function.
(usage): Replace "hide" with "ignore" in explanation, to avoid
confusion.

19 years ago(ls invocation): Document "ls --hide".
Paul Eggert [Sun, 26 Sep 2004 22:56:04 +0000 (22:56 +0000)]
(ls invocation): Document "ls --hide".

19 years agoAdd "ls --hide".
Paul Eggert [Sun, 26 Sep 2004 22:55:05 +0000 (22:55 +0000)]
Add "ls --hide".

19 years agoFix location of "Version 5.3.0."
Paul Eggert [Sun, 26 Sep 2004 07:29:15 +0000 (07:29 +0000)]
Fix location of "Version 5.3.0."

19 years agoRemove unused variable.
Paul Eggert [Sun, 26 Sep 2004 07:10:53 +0000 (07:10 +0000)]
Remove unused variable.

19 years ago* src/ls.c: Fix problem with multibyte decimal points in human-readable output.
Paul Eggert [Sun, 26 Sep 2004 07:07:06 +0000 (07:07 +0000)]
* src/ls.c: Fix problem with multibyte decimal points in human-readable output.

19 years ago(gobble_file, print_long_format): Don't assume that
Paul Eggert [Sun, 26 Sep 2004 07:06:07 +0000 (07:06 +0000)]
(gobble_file, print_long_format): Don't assume that
human-readable output has a byte count equal to its column width;
this isn't always true in locales where the radix character is not
'.' or ','.
(format_user_or_group): Revamp code to match the above fix;
this avoids the (very faint) possibility of integer overflow.

19 years agoRegenerate
Paul Eggert [Fri, 24 Sep 2004 23:38:43 +0000 (23:38 +0000)]
Regenerate

19 years ago"chmod -w file" doc
Paul Eggert [Fri, 24 Sep 2004 23:35:13 +0000 (23:35 +0000)]
"chmod -w file" doc

19 years ago(TESTS): Add 'usage'.
Paul Eggert [Fri, 24 Sep 2004 23:34:41 +0000 (23:34 +0000)]
(TESTS): Add 'usage'.

19 years agoInitial revision
Paul Eggert [Fri, 24 Sep 2004 23:34:07 +0000 (23:34 +0000)]
Initial revision

19 years ago(main): Revamp option processing to support "chmod -r -w file".
Paul Eggert [Fri, 24 Sep 2004 23:33:39 +0000 (23:33 +0000)]
(main): Revamp option processing to support "chmod -r -w file".

19 years ago(chmod invocation): Warn about "chmod -w file".
Paul Eggert [Fri, 24 Sep 2004 23:33:13 +0000 (23:33 +0000)]
(chmod invocation): Warn about "chmod -w file".

19 years agochmod -r -w x fixes.
Paul Eggert [Fri, 24 Sep 2004 23:32:52 +0000 (23:32 +0000)]
chmod -r -w x fixes.

19 years agoMention that "chmod -r -w x" now works as expected.
Paul Eggert [Fri, 24 Sep 2004 23:32:37 +0000 (23:32 +0000)]
Mention that "chmod -r -w x" now works as expected.

19 years ago*** empty log message ***
Jim Meyering [Fri, 24 Sep 2004 08:14:44 +0000 (08:14 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Fri, 24 Sep 2004 08:13:37 +0000 (08:13 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Fri, 24 Sep 2004 08:13:10 +0000 (08:13 +0000)]
*** empty log message ***

19 years ago(CVS_LIST): Use --types=AFGM option so that
Jim Meyering [Fri, 24 Sep 2004 08:13:02 +0000 (08:13 +0000)]
(CVS_LIST): Use --types=AFGM option so that
it lists only cvs-controlled regular files.

19 years ago* modechange.c (mode_compile): Don't decrement past start of string.
Paul Eggert [Fri, 24 Sep 2004 07:01:23 +0000 (07:01 +0000)]
* modechange.c (mode_compile): Don't decrement past start of string.

19 years ago(mode_compile): Don't decrement a pointer that
Paul Eggert [Fri, 24 Sep 2004 07:00:59 +0000 (07:00 +0000)]
(mode_compile): Don't decrement a pointer that
points to the start of a string, as the C Standard says the
resulting behavior is undefined.

19 years ago*** empty log message ***
Jim Meyering [Fri, 24 Sep 2004 06:58:46 +0000 (06:58 +0000)]
*** empty log message ***