1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-19 10:15:48 +02:00
Commit Graph

18616 Commits

Author SHA1 Message Date
Jim Meyering
d14676e7fc *** empty log message *** 2004-06-06 19:31:46 +00:00
Jim Meyering
032b5b3bcf (tr invocation): Remove the section describing
how POSIXLY_CORRECT changes tr's behavior.
2004-06-06 19:31:43 +00:00
Jim Meyering
9011b52917 fix typo in comment 2004-06-06 19:18:49 +00:00
Jim Meyering
62d61c7c12 *** empty log message *** 2004-06-06 19:03:05 +00:00
Jim Meyering
12c6cc38c2 Update from gnulib. 2004-06-06 19:03:01 +00:00
Jim Meyering
558c5aa7ff *** empty log message *** 2004-06-06 14:20:20 +00:00
Jim Meyering
8bf5b1841c (main): "tr -d a b" is now a fatal error even if POSIXLY_CORRECT is set.
The POSIX SYNOPSIS does not allow this option combination.
2004-06-06 14:20:16 +00:00
Jim Meyering
8600e5f5f7 *** empty log message *** 2004-06-04 17:44:24 +00:00
Jim Meyering
657842c693 (dopass): Don't subtract 1 from the offset after
a write error.  Problem reported by Jon Peatfield in:
http://lists.gnu.org/archive/html/bug-coreutils/2004-06/msg00020.html
2004-06-04 17:43:55 +00:00
Jim Meyering
b07edbf476 *** empty log message *** 2004-06-03 16:03:44 +00:00
Jim Meyering
fa81dcf58e *** empty log message *** 2004-06-03 16:03:39 +00:00
Jim Meyering
6f31b14a6d Fix bug reported by Buciuman Adrian in
<http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00105.html>
where 'dd' created a file that was too large.  The bug was that dd
assumed that the input file offset does not advance after a failed
read; but POSIX says that the input file offset is undefined after
a failed read.

(MAX_BLOCKSIZE): New macro.
(input_seekable, input_seek_errno, input_offset,
input_offset_overflow): New vars.
(scanargs): Reject block sizes greater than MAX_BLOCKSIZE.
(advance_input_offset): New function.
(skip_via_lseek): Set errno to zero when reporting our failure,
so that we don't report based on garbage errno.
(skip): If fdesc is standard input, advance the input offset.
Do not quit if reading, and if noerror was specified;
POSIX seems to require this.
If read fails on output file, report the earlier lseek failure
instead; this fixes a FIXME in dd_copy.
(advance_input_after_read_error): New function.
(dd_copy): Use it, instead of assuming that failed reads
do not advance the file pointer.  Advance input offset
after nonfailed reads.  Advance only a partial block if
the previous read (before the failed read) succeeded, and
do not generate an output block of zeros in this case.
(main): Determine initial input offset, seekability of input,
and error if it wasn't seekable.
2004-06-03 16:03:32 +00:00
Jim Meyering
6e81a1d947 *** empty log message *** 2004-06-02 21:41:42 +00:00
Jim Meyering
f7d818938f *** empty log message *** 2004-06-02 21:39:49 +00:00
Jim Meyering
a0b4523704 rm (without -f) could hang unnecessarily when attempting to
remove a symlink to a file on an off-line NFS-mounted partition.
Reported by David Howells in https://bugzilla.redhat.com/124699.

(write_protected_non_symlink): New function.
Don't invoke euidaccess on symlinks.
(prompt): Use write_protected_non_symlink rather than using
euidaccess directly, being careful not to call lstat twice for a file.
2004-06-02 21:39:45 +00:00
Jim Meyering
0539abe980 *** empty log message *** 2004-06-02 21:23:42 +00:00
Jim Meyering
2cd87c6562 (cut invocation): Clarify what --output-delimiter=STR
does with byte/character ranges.
2004-06-02 21:23:39 +00:00
Jim Meyering
d53e7ba8a1 . 2004-06-02 21:21:05 +00:00
Jim Meyering
977dd1a0eb *** empty log message *** 2004-06-02 21:20:45 +00:00
Jim Meyering
847e066085 Fix a bug in how the --output-delimiter=D option works with
abutting byte or character ranges.  Reported by David Krider in
http://lists.gnu.org/archive/html/bug-coreutils/2004-05/msg00132.html

(print_kth): Remove special case for open-ended range.
(set_fields): Record the range start index for an interval even
when it abuts another interval on its low side.
Also record the range start index of the longest right-open-interval.
2004-06-02 21:20:41 +00:00
Jim Meyering
3ce2931ad2 Add tests of --output-delimiter=S with abutting and overlapping byte ranges. 2004-06-02 21:20:23 +00:00
Jim Meyering
709978531b . 2004-06-02 08:54:32 +00:00
Jim Meyering
27d6dec23d New tests bs-055, bs-at-end, repeat-Compl.
Fix comment for range-a-a.
2004-06-02 08:50:42 +00:00
Jim Meyering
c18814a736 *** empty log message *** 2004-06-02 08:50:30 +00:00
Jim Meyering
a396e88106 (posix_pedantic): Remove; no longer needed since
we need to test this in just one place now.
(usage): Mention -C.
(unquote): Note that \055, \n, etc are escaped.
Do not worry about POSIXLY_CORRECT when warning about ambiguous
escape sequences.
\ at end of string stands for itself.
Do not diagnose invalid backslash escapes: POSIX says the behavior
is unspecified in this case, so we don't need to diagnose it.
(main): Add support for -C (currently an alias for -c).
Do not diagnose 'tr [:upper:] [:upper:], as POSIX does not require
a diagnostic here.
2004-06-02 08:50:24 +00:00
Jim Meyering
7a9884545c *** empty log message *** 2004-06-02 08:35:27 +00:00
Jim Meyering
733ceab1b8 (tr invocation): Mention -C. 2004-06-02 08:35:02 +00:00
Jim Meyering
17ccbf5907 *** empty log message *** 2004-06-01 17:12:44 +00:00
Jim Meyering
33f99919fd update from gnulib 2004-06-01 15:27:10 +00:00
Jim Meyering
c74dc457eb *** empty log message *** 2004-06-01 15:24:15 +00:00
Jim Meyering
4041dbb5e4 Update from gnulib. 2004-06-01 15:24:11 +00:00
Jim Meyering
807984cc3f . 2004-06-01 14:28:25 +00:00
Jim Meyering
6d835b1811 *** empty log message *** 2004-06-01 14:18:08 +00:00
Jim Meyering
80b21d2d40 *** empty log message *** 2004-06-01 13:37:04 +00:00
Jim Meyering
be62d4e33d (main): Update use of xreadlink. 2004-06-01 13:37:01 +00:00
Jim Meyering
5c00973123 (print_stat): Update use of xreadlink. 2004-06-01 13:36:40 +00:00
Jim Meyering
b99bf39b10 (get_link_name): Update use of xreadlink. 2004-06-01 13:36:20 +00:00
Jim Meyering
50a5f71804 *** empty log message *** 2004-06-01 13:29:42 +00:00
Jim Meyering
bd62a6597a (copy_internal): Don't use alloca, as it can mess up
royally if the link length is long (e.g., GNU/Hurd).  Use
xreadlink instead, it's safer.  Don't bother to read the link if
it's the wrong size.  Add a FIXME because this area is a bit murky
and undocumented.
2004-06-01 13:29:36 +00:00
Jim Meyering
6992440dfb *** empty log message *** 2004-06-01 13:24:23 +00:00
Jim Meyering
8c808cebf4 (canonicalize_file_name): Update use of xreadlink. 2004-06-01 13:24:12 +00:00
Jim Meyering
63107c9f9a Update prototype to reflect new signature.
Include <stddef.h>, for size_t.
2004-06-01 13:22:25 +00:00
Jim Meyering
8a81d09a7f Include xreadlink.h first, to catch .h file dependency problems. 2004-06-01 13:20:50 +00:00
Jim Meyering
8aceeea5ff *** empty log message *** 2004-06-01 13:17:13 +00:00
Jim Meyering
70a4763937 (binary_operator, and, or, main):
Prefer the notation `STREQ (a, b)' over `!strcmp (a, b)'
and `STREQ (a, b)' over `strcmp (a, b) == 0'.
2004-06-01 13:17:08 +00:00
Jim Meyering
a0009d0ec1 *** empty log message *** 2004-06-01 13:09:20 +00:00
Jim Meyering
4bc03442d7 (main): Prefer the notation STREQ (a, b)' over !strcmp (a, b)'. 2004-06-01 13:07:01 +00:00
Jim Meyering
f81aaf1fa8 (swallow_file_in_memory, main):
Prefer the notation `STREQ (a, b)' over `strcmp (a, b) == 0'.
2004-06-01 13:05:27 +00:00
Jim Meyering
ae752755d2 (correct_password, restricted_shell, main):
Prefer the notation `STREQ (a, b)' over `strcmp (a, b) == 0'.
2004-06-01 13:04:02 +00:00
Jim Meyering
4db0764f1a (main): Prefer the notation STREQ (a, b)' over strcmp (a, b) == 0'. 2004-06-01 13:00:28 +00:00