Commit Graph
19517 Commits
Author SHA1 Message Date
Jim Meyering dc3504e276 *** empty log message *** 2004-10-29 22:05:04 +00:00
Jim Meyering 404fe2a045 *** empty log message *** 2004-10-29 21:59:39 +00:00
Jim Meyering 0c1c5b483d * src/tac.c (tac_file): Remove temporary prototype and move this
function `down' so that it precedes definition of tac_nonseekable.
2004-10-29 21:59:33 +00:00
Jim Meyering bbda05b8ee *** empty log message *** 2004-10-29 21:55:21 +00:00
Jim Meyering 259934f3a4 `tac /proc/modules' would print nothing
(copy_to_temp): Renamed from save_stdin, since
now it copies a general file descriptor, not just stdin.
(tac_nonseekable): Renamed/adapted from tac_stdin.
(tac_file): Get fd via `open' directly rather than via fopen/fileno,
since we never used the stream.  Perform "-" to stdin mapping here
rather than in main.  Determine whether a file is seekable,
by trying to `lseek' to its end, and dispatch to tac_seekable or
tac_nonseekable accordingly.
(main): Rewrite argument handling now that it uses only tac_file.
Reported by Harald Dunkel in http://bugs.debian.org/278604.
2004-10-29 21:55:15 +00:00
Jim Meyering 7230399d89 *** empty log message *** 2004-10-29 21:50:15 +00:00
Paul Eggert d6ef01c78f * coreutils.texi (Standards conformance): Use "head -10" rather
than "head -1".
2004-10-28 07:51:25 +00:00
Paul Eggert 57ac7f5a02 (Standards conformance): Use "head -10" rather than "head -1" as
example of obsolete usage, since the POSIX consensus is that "head -1"
could be supported even if we don't yet have clear consensus on "head
-10".  See today's revision to the SUS FAQ
<http://www.opengroup.org/austin/papers/single_unix_faq.html>.
2004-10-28 07:50:51 +00:00
Paul Eggert acdb9f592e * coreutils.texi (pathchk invocation): Options must precede operands. 2004-10-25 03:20:29 +00:00
Paul Eggert ea75231962 (pathchk invocation): Options must precede operands. 2004-10-25 03:20:02 +00:00
Paul Eggert 3eb23529c5 * mktime.c (leapyear): Arg is long int, not int. 2004-10-24 23:25:18 +00:00
Paul Eggert c707d3acbe (leapyear): Arg is long int, not int. Change imported from gnulib. 2004-10-24 23:24:47 +00:00
Jim Meyering 2168e06a9d . 2004-10-21 10:39:15 +00:00
Jim Meyering 0492f5ec4a *** empty log message *** 2004-10-21 10:38:56 +00:00
Jim Meyering 37c518aaf4 *** empty log message *** 2004-10-21 10:38:37 +00:00
Jim Meyering 90b7cc00d0 *** empty log message *** 2004-10-21 10:38:09 +00:00
Jim Meyering 2469a229d5 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.
2004-10-21 10:37:18 +00:00
Jim Meyering 0f8445ab90 *** empty log message *** 2004-10-21 09:19:06 +00:00
Jim Meyering c40c07b39b (TESTS): Add leak-fd. 2004-10-21 09:17:50 +00:00
Jim Meyering 61ae10db4e *** empty log message *** 2004-10-21 09:16:52 +00:00
Jim Meyering 7a6efe58da (TESTS): Add dot-rel. 2004-10-21 08:07:27 +00:00
Jim Meyering cc66dd6e01 *** empty log message *** 2004-10-21 08:06:26 +00:00
Paul Eggert a27ab616ed * src/fmt.c (usage): Improve description of --prefix. 2004-10-20 21:17:15 +00:00
Paul Eggert a5929282a9 (usage): Improve description of --prefix.
Problem reported by Edward Welbourne.
2004-10-20 21:16:56 +00:00
Paul Eggert a6976346b1 * man/uniq.x: Change summary. 2004-10-20 20:21:23 +00:00
Paul Eggert caee2e567f Change summary so that it doesn't imply that uniq writes to its input file. 2004-10-20 20:19:28 +00:00
Jim Meyering ba57edcd43 *** empty log message *** 2004-10-18 08:59:17 +00:00
Jim Meyering e302d38421 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
2004-10-18 08:59:12 +00:00
Jim Meyering 35abc478c6 rm (and mv when moving between partitions) no longer fails when
operating on too many command-line-specified nonempty directories.
2004-10-18 08:58:55 +00:00
Jim Meyering e37a412052 *** empty log message *** 2004-10-18 08:56:19 +00:00
Jim Meyering 3d84ea7559 *** empty log message *** 2004-10-18 08:26:51 +00:00
Jim Meyering f2f7e25dc4 *** empty log message *** 2004-10-18 08:19:41 +00:00
Jim Meyering 385f1ab2a0 (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.
2004-10-18 08:19:26 +00:00
Jim Meyering ccbf47a8e1 *** empty log message *** 2004-10-18 07:56:26 +00:00
Jim Meyering 41d58525e3 (main): Remove declaration of unused local, optc. 2004-10-18 07:54:01 +00:00
Jim Meyering bc8a38f102 (main): Remove declaration of unused local, opt. 2004-10-18 07:53:45 +00:00
Jim Meyering 4e1cbbdb67 (main): Remove declaration of unused local, c. 2004-10-18 07:52:19 +00:00
Paul Eggert d7ac96d586 Regenerate. 2004-10-18 06:34:20 +00:00
Paul Eggert d0bc999e2f pathchk cleanups, gnulib merge 2004-10-18 06:33:20 +00:00
Paul Eggert 8d177f684a (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.
2004-10-18 06:30:49 +00:00
Paul Eggert 765016e9e2 (gl_MACROS): Check for mbrlen, for pathchk.
(gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
2004-10-18 06:30:22 +00:00
Paul Eggert 91b17c0c82 (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.
2004-10-18 06:29:51 +00:00
Paul Eggert 586910ff61 Add self to pathchk. 2004-10-18 06:29:19 +00:00
Paul Eggert 0581f17dca Sync from gnulib. 2004-10-18 05:06:47 +00:00
Paul Eggert 3ae9ce3622 * src/printf.c (usage): Mention Unicode, and use H for hex digits. 2004-10-15 19:32:04 +00:00
Paul Eggert c34c0ac31e (usage): Mention Unicode, and use H for hex digits. 2004-10-15 19:31:47 +00:00
Paul Eggert 7e20a09f8f (printf invocation): Mention ISO/IEC 10646 as well as Unicode. 2004-10-15 19:31:26 +00:00
Paul Eggert 235bae84e1 (printf invocation): Mention ISO/IEC 10646 as
well as Unicode.  Various minor formatting cleanups.
2004-10-15 19:31:08 +00:00
Jim Meyering 2d383a77c9 *** empty log message *** 2004-10-14 19:55:18 +00:00
Jim Meyering bd98640cd8 *** empty log message *** 2004-10-14 19:22:50 +00:00