1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00
Commit Graph

20344 Commits

Author SHA1 Message Date
Jim Meyering
2c84165280 *** empty log message *** 2005-03-12 10:51:06 +00:00
Paul Eggert
cc887eac73 "ls" now refuses to generate very long time stamps. 2005-03-11 23:14:31 +00:00
Paul Eggert
9d55554bf1 ls now refuses to generate time stamps containing more than 1000 bytes. 2005-03-11 23:13:58 +00:00
Paul Eggert
1aab3a0c90 * coreutils.texi (Formatting file timestamps): Very long timestamps
may be treated as errors.
2005-03-11 23:13:37 +00:00
Paul Eggert
8e80be2356 (Formatting file timestamps): Very long timestamps
may be treated as errors.
2005-03-11 23:13:19 +00:00
Paul Eggert
e8024715d7 (TIME_STAMP_LEN_MAXIMUM): New constant.
(long_time_expected_width, print_long_format): Use it, to avoid
some possible denial-of-service attacks.
2005-03-11 23:12:43 +00:00
Jim Meyering
e5d16d2b72 *** empty log message *** 2005-03-11 10:04:16 +00:00
Jim Meyering
5dd8c8ca32 Add tests for this:
Prompt once again for `mv -i A B' when A and B are hard links
	to the same file.  This fixes a bug introduced by my 2003-04-04
	(coreutils-5.0.1) change.
2005-03-11 09:37:15 +00:00
Jim Meyering
c2bd74fcea *** empty log message *** 2005-03-11 09:36:56 +00:00
Jim Meyering
d0f21b4a55 Prompt once again for `mv -i A B' when A and B are hard links
to the same file.  This fixes a bug introduced by my 2003-04-04
(coreutils-5.0.1) change.

(abandon_move): New function, factored out of
copy_internal, now that this code is being used from two places.
(copy_internal): Perform the same interactive-related test for
whether it's alright to proceed and (usually) overwrite the
destination file.
2005-03-11 09:36:52 +00:00
Jim Meyering
d1d993432f *** empty log message *** 2005-03-10 12:40:40 +00:00
Jim Meyering
62ae181b3f *** empty log message *** 2005-03-10 12:07:47 +00:00
Jim Meyering
5bb81adac0 (long_time_expected_width): Use x2nrealloc, not alloca,
so format string abuse cannot provoke stack overflow.
(print_long_format): Likewise.
2005-03-10 12:07:31 +00:00
Jim Meyering
ecab5d28df *** empty log message *** 2005-03-10 11:29:32 +00:00
Jim Meyering
9200b53afb *** empty log message *** 2005-03-10 10:01:23 +00:00
Jim Meyering
03252f614c *** empty log message *** 2005-03-10 08:56:00 +00:00
Jim Meyering
c06f2e3a5a (gl_SAVE_CWD): Check for fchdir. 2005-03-10 08:54:50 +00:00
Jim Meyering
aa7845aebb *** empty log message *** 2005-03-10 08:51:53 +00:00
Jim Meyering
82477b8efb Don't segfault for a long header date string, e.g.,
echo a|pr -D +%9999999A

(init_header): Use x2nrealloc, rather than alloca.
Don't bother with fixed-sized initial buffer;  always use x*alloc.
2005-03-10 08:51:49 +00:00
Jim Meyering
6eb7488b32 *** empty log message *** 2005-03-10 08:03:13 +00:00
Jim Meyering
f83e17f928 (tostring, printv): Use INT_BUFSIZE_BOUND in place of INT_STRLEN_BOUND + 1. 2005-03-10 08:02:24 +00:00
Jim Meyering
075a99ffcf (init_header): Use INT_BUFSIZE_BOUND in place of INT_STRLEN_BOUND + 1. 2005-03-10 07:58:34 +00:00
Paul Eggert
4d645f3053 Add TYPE_ONES_COMPLEMENT and TYPE_SIGNED_MAGNITUDE, and use
less-tricky TYPE_MINIMUM and TYPE_MAXIMUM.
2005-03-09 23:22:14 +00:00
Jim Meyering
f0f31b512f *** empty log message *** 2005-03-09 23:21:10 +00:00
Jim Meyering
9d0f3eeb6c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
so that this module works on systems without fchdir.
2005-03-09 23:21:00 +00:00
Jim Meyering
5ccd8ce31d . 2005-03-09 23:16:07 +00:00
Jim Meyering
4f07deaab6 *** empty log message *** 2005-03-09 23:12:48 +00:00
Jim Meyering
d828d15348 (libfetish_a_SOURCES): Remove xstrtol.c and xstrtol.h. 2005-03-09 23:11:19 +00:00
Jim Meyering
5bdf28cfaa *** empty log message *** 2005-03-09 23:10:46 +00:00
Jim Meyering
185b3fffbb (gl_XNANOSLEEP): Add intprops.h. 2005-03-09 23:06:55 +00:00
Jim Meyering
080aae6f46 (gl_UTIMECMP): Add intprops.h. 2005-03-09 23:06:16 +00:00
Jim Meyering
b143ebb28b (gl_USERSPEC): Add intprops.h. 2005-03-09 23:05:32 +00:00
Jim Meyering
0163eb5b63 (gl_FUNC_SIG2STR): Add intprops.h. 2005-03-09 23:04:47 +00:00
Jim Meyering
586d7113c3 (gl_INTTOSTR): Add intprops.h. 2005-03-09 23:03:42 +00:00
Jim Meyering
3b1f5253fd (gl_HUMAN): Add intprops.h. 2005-03-09 23:02:25 +00:00
Jim Meyering
2c60c397c8 (gl_XSTRTOL): Use AC_LIBSOURCES and AC_LIBOBJ to list the required files. 2005-03-09 23:01:36 +00:00
Paul Eggert
541acb39f7 * src/system.h: Include intprops.h instead of rolling our own. 2005-03-09 19:27:23 +00:00
Paul Eggert
87d42256b3 Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND): Remove;
they are now defined in intprops.h.
2005-03-09 19:27:02 +00:00
Paul Eggert
707034f696 Factor int-properties macros into a single file, except for
glibc-related files.
2005-03-09 19:26:36 +00:00
Paul Eggert
f240872265 Include xstrtol.h first, to test interface.
Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-09 19:25:58 +00:00
Paul Eggert
09aa89fc35 Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-09 19:25:34 +00:00
Paul Eggert
d7506ef9cd Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
(utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
instead of rolling our own expressions.
2005-03-09 19:25:14 +00:00
Paul Eggert
81e7c85bca Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-09 19:24:37 +00:00
Paul Eggert
6c5e34b431 Adjust comments to match intprops.h. 2005-03-09 19:24:15 +00:00
Paul Eggert
cb675ad062 (TYPE_SIGNED): Remove.
(INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
2005-03-09 19:23:59 +00:00
Paul Eggert
bdbdf51a00 Include <signal.h>, intprops.h.
(INT_STRLEN_BOUND): Remove.
2005-03-09 19:23:35 +00:00
Paul Eggert
5fd82cbf0d (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
for consistency with intprops.h.
(time_t_is_integer, twos_complement_arithmetic): Use them.
2005-03-09 19:23:05 +00:00
Paul Eggert
064157578c Include intprops.h instead of limits.h.
(INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
2005-03-09 19:22:48 +00:00
Paul Eggert
111fada0c3 (LONGEST_HUMAN_READABLE): Use 146/485 rather than 302/1000. 2005-03-09 19:22:21 +00:00
Paul Eggert
67f958c224 Include intprops.h.
(group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
2005-03-09 19:22:05 +00:00