Jim Meyering [Mon, 17 Nov 2003 13:46:34 +0000 (13:46 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Nov 2003 21:12:56 +0000 (21:12 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Nov 2003 21:12:47 +0000 (21:12 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Nov 2003 18:14:45 +0000 (18:14 +0000)]
.
Jim Meyering [Sun, 16 Nov 2003 14:13:13 +0000 (14:13 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Nov 2003 14:12:04 +0000 (14:12 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Nov 2003 14:11:59 +0000 (14:11 +0000)]
Minor tweak: use mkdir -p.
Jim Meyering [Sun, 16 Nov 2003 14:02:03 +0000 (14:02 +0000)]
.
Jim Meyering [Sun, 16 Nov 2003 12:26:02 +0000 (12:26 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Nov 2003 12:25:35 +0000 (12:25 +0000)]
Fix read-from-free'd-buffer error detected by valgrind.
(remove_line): Don't return a pointer to data in
a freed buffer. Instead, arrange to free the buffer on the
subsequent call.
Jim Meyering [Sun, 16 Nov 2003 11:52:08 +0000 (11:52 +0000)]
Add test to detect this.
This would fail due to reading from freed buffer with coreutils-5.0.91.
Jim Meyering [Thu, 13 Nov 2003 07:45:25 +0000 (07:45 +0000)]
*** empty log message ***
Jim Meyering [Thu, 13 Nov 2003 07:45:20 +0000 (07:45 +0000)]
Update from gnulib.
Jim Meyering [Thu, 13 Nov 2003 07:45:00 +0000 (07:45 +0000)]
Update from gnulib.
Jim Meyering [Wed, 12 Nov 2003 09:23:03 +0000 (09:23 +0000)]
(extract_dirs_from_files): Avoid useless copy operations.
This avoids a warning valgrind about memcpy with overlapping
source and destination.
Jim Meyering [Tue, 11 Nov 2003 12:42:09 +0000 (12:42 +0000)]
*** empty log message ***
Jim Meyering [Tue, 11 Nov 2003 12:42:02 +0000 (12:42 +0000)]
(@chownchgrpoptions): add index entry for this.
Jim Meyering [Tue, 11 Nov 2003 12:38:07 +0000 (12:38 +0000)]
(chown invocation) [chownchgrpoptions]: New macro
describing -H, -L, -P options. Use it here.
(chgrp invocation): And here.
Jim Meyering [Tue, 11 Nov 2003 12:35:49 +0000 (12:35 +0000)]
Require automake-1.7.8.
Jim Meyering [Tue, 11 Nov 2003 12:21:38 +0000 (12:21 +0000)]
no longer used -- replaced by fts*.[ch]
Jim Meyering [Tue, 11 Nov 2003 12:21:12 +0000 (12:21 +0000)]
*** empty log message ***
Jim Meyering [Tue, 11 Nov 2003 07:13:26 +0000 (07:13 +0000)]
update from gnulib
Jim Meyering [Tue, 11 Nov 2003 07:07:00 +0000 (07:07 +0000)]
*** empty log message ***
Jim Meyering [Tue, 11 Nov 2003 07:06:53 +0000 (07:06 +0000)]
Update from gnulib.
Jim Meyering [Sun, 9 Nov 2003 21:19:43 +0000 (21:19 +0000)]
*** empty log message ***
Jim Meyering [Sun, 9 Nov 2003 21:19:18 +0000 (21:19 +0000)]
.
Jim Meyering [Sun, 9 Nov 2003 21:18:35 +0000 (21:18 +0000)]
*** empty log message ***
Jim Meyering [Sun, 9 Nov 2003 21:16:27 +0000 (21:16 +0000)]
*** empty log message ***
Jim Meyering [Sun, 9 Nov 2003 21:16:01 +0000 (21:16 +0000)]
(libfetish_a_SOURCES): Add root-dev-ino.c root-dev-ino.h.
Jim Meyering [Sun, 9 Nov 2003 21:15:19 +0000 (21:15 +0000)]
*** empty log message ***
Jim Meyering [Sun, 9 Nov 2003 21:15:16 +0000 (21:15 +0000)]
Add lib/root-dev-ino.h.
Jim Meyering [Sun, 9 Nov 2003 21:10:55 +0000 (21:10 +0000)]
Include <sys/types.h> and <sys/stat.h>.
Jim Meyering [Sun, 9 Nov 2003 21:10:15 +0000 (21:10 +0000)]
*** empty log message ***
Jim Meyering [Sun, 9 Nov 2003 21:10:11 +0000 (21:10 +0000)]
Support new options: --preserve-root and --no-preserve-root.
Jim Meyering [Sun, 9 Nov 2003 21:09:27 +0000 (21:09 +0000)]
Support new options: --preserve-root and --no-preserve-root.
Jim Meyering [Sun, 9 Nov 2003 21:07:31 +0000 (21:07 +0000)]
Include "root-dev-ino.h".
(chopt_init): Initialize new member.
(change_file_owner): Support rm's new --preserve-root option.
Jim Meyering [Sun, 9 Nov 2003 21:06:16 +0000 (21:06 +0000)]
Include "root-dev-ino.h".
(remove_cwd_entries): Remove now-obsolete FIXME comment.
(remove_dir): Support rm's new --preserve-root option.
Jim Meyering [Sun, 9 Nov 2003 21:04:20 +0000 (21:04 +0000)]
(usage): Describe new options.
Jim Meyering [Sun, 9 Nov 2003 21:03:57 +0000 (21:03 +0000)]
(usage): Describe new options.
Jim Meyering [Sun, 9 Nov 2003 20:53:21 +0000 (20:53 +0000)]
Include "root-dev-ino.h".
(process_file): Use newly-factored-out ROOT_DEV_INO_CHECK and
ROOT_DEV_INO_WARN macros.
(get_root_dev_ino): Remove function definition, now that it's
been moved to a separate file.
Jim Meyering [Sun, 9 Nov 2003 20:50:37 +0000 (20:50 +0000)]
Initialized new member.
Jim Meyering [Sun, 9 Nov 2003 20:49:58 +0000 (20:49 +0000)]
.
Jim Meyering [Sun, 9 Nov 2003 20:47:54 +0000 (20:47 +0000)]
Include "dev-ino.h".
(struct rm_options): Add new member: root_dev_ino.
Jim Meyering [Sun, 9 Nov 2003 20:47:15 +0000 (20:47 +0000)]
Include "dev-ino.h".
(struct Chown_option): Add new member: root_dev_ino.
Jim Meyering [Sun, 9 Nov 2003 20:16:31 +0000 (20:16 +0000)]
.
Jim Meyering [Sun, 9 Nov 2003 07:21:47 +0000 (07:21 +0000)]
(dd invocation): Fix typo in example.
Jim Meyering [Sat, 8 Nov 2003 13:26:25 +0000 (13:26 +0000)]
*** empty log message ***
Jim Meyering [Sat, 8 Nov 2003 13:26:21 +0000 (13:26 +0000)]
Sync from gnulib (this file was previously empty,
to work around some sort of problem).
Jim Meyering [Sat, 8 Nov 2003 13:25:10 +0000 (13:25 +0000)]
.
Jim Meyering [Sat, 8 Nov 2003 13:24:18 +0000 (13:24 +0000)]
*** empty log message ***
Jim Meyering [Sat, 8 Nov 2003 13:24:12 +0000 (13:24 +0000)]
(jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
value, $ac_cv_search_nanosleep, if it's "none required".
Jim Meyering [Fri, 7 Nov 2003 10:42:40 +0000 (10:42 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 10:02:27 +0000 (10:02 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 10:01:06 +0000 (10:01 +0000)]
whoops. One more.
Jim Meyering [Thu, 6 Nov 2003 09:54:28 +0000 (09:54 +0000)]
(paste_parallel): Use `sizeof *var' rather than hard-coding `sizeof FILE*'.
Jim Meyering [Thu, 6 Nov 2003 09:36:50 +0000 (09:36 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 09:32:25 +0000 (09:32 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 09:28:45 +0000 (09:28 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 09:28:40 +0000 (09:28 +0000)]
(who): Free `utmp_buf' so there is no confusion about
whether it's leaked or not.
Jim Meyering [Thu, 6 Nov 2003 09:28:13 +0000 (09:28 +0000)]
(main): Free `fstatus' so there is no confusion about
whether it's leaked or not.
Jim Meyering [Thu, 6 Nov 2003 08:37:55 +0000 (08:37 +0000)]
Fix 'cut' problems with size_t overflow and unsigned int.
More generally, resize integer variables to fit use more precisely.
(ADD_RANGE_PAIR): Remove unnecessary parens.
(struct range_pair): Make members to be of type size_t, not unsigned.
(max_range_endpoint, eol_range_start): Now size_t, not unsigned.
(suppress_non_delimited, output_delimiter_specified,
have_read_stdin, print_kth, set_fields): Now bool, nt int.
(delim): Now unsigned char, not int.
(mark_printable_field, is_printable_field, is_range_start_index,
set_fields, set_fields, cut_bytes, cut_fields):
Use size_t, not unsigned, for field and byte counts.
(hash_int): Use uintptr_t, not unsigned, for pointers converted
to integers. This squeezes more info out of them.
(set_fields, cut_bytes, cut_fields, main):
Use bool, not int, for booleans.
(set_fields): Allocate zeroed byte array with xzalloc, not xcalloc.
Jim Meyering [Thu, 6 Nov 2003 08:37:17 +0000 (08:37 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 08:37:13 +0000 (08:37 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 08:37:09 +0000 (08:37 +0000)]
(jm_CHECK_ALL_TYPES): Check for uintptr_t.
Jim Meyering [Thu, 6 Nov 2003 08:06:58 +0000 (08:06 +0000)]
.
Jim Meyering [Thu, 6 Nov 2003 08:03:33 +0000 (08:03 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 08:03:27 +0000 (08:03 +0000)]
(check-programs-vs-x):
Work even if $(programs) contains '$'.
Work even if 'missing=1' in environment.
Don't report an error simply because $(programs) outputs nothing.
Jim Meyering [Thu, 6 Nov 2003 06:08:07 +0000 (06:08 +0000)]
New file. From gnulib.
Jim Meyering [Thu, 6 Nov 2003 06:07:44 +0000 (06:07 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 22:47:44 +0000 (22:47 +0000)]
(jm_MACROS): Require gl_FUNC_FREE.
Jim Meyering [Wed, 5 Nov 2003 22:47:37 +0000 (22:47 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 21:56:05 +0000 (21:56 +0000)]
Update from gnulib.
Jim Meyering [Wed, 5 Nov 2003 21:47:00 +0000 (21:47 +0000)]
Update from gnulib.
Jim Meyering [Wed, 5 Nov 2003 21:44:14 +0000 (21:44 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 21:44:10 +0000 (21:44 +0000)]
(jm_MACROS): Require autoconf-2.58.
(AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
Jim Meyering [Wed, 5 Nov 2003 21:42:49 +0000 (21:42 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 14:55:33 +0000 (14:55 +0000)]
.
Jim Meyering [Wed, 5 Nov 2003 03:55:48 +0000 (03:55 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 03:53:25 +0000 (03:53 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 03:53:19 +0000 (03:53 +0000)]
Cast NULL to `(char *)' in call to variadic function,
parse_long_options, so that it works even on systems for which
sizeof char* != sizeof int.
Jim Meyering [Wed, 5 Nov 2003 03:49:44 +0000 (03:49 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 03:49:29 +0000 (03:49 +0000)]
(spec_init): Fix typo in last change.
Jim Meyering [Wed, 5 Nov 2003 03:43:30 +0000 (03:43 +0000)]
(main): Cast NULL to `(char *)' in
call to variadic version_etc function, so that it works even on systems
for which sizeof char* != sizeof int.
Jim Meyering [Wed, 5 Nov 2003 03:43:22 +0000 (03:43 +0000)]
(case_GETOPT_VERSION_CHAR): Cast NULL to `(char *)' in
call to variadic version_etc function, so that it works even on systems
for which sizeof char* != sizeof int.
Jim Meyering [Wed, 5 Nov 2003 03:34:15 +0000 (03:34 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 03:34:09 +0000 (03:34 +0000)]
Document _POSIX2_VERSION.
Jim Meyering [Wed, 5 Nov 2003 03:19:14 +0000 (03:19 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 03:15:21 +0000 (03:15 +0000)]
(users): Free `utmp_buf' explicitly so that people
don't mistake this for a real leak.
Jim Meyering [Wed, 5 Nov 2003 03:14:28 +0000 (03:14 +0000)]
*** empty log message ***
Jim Meyering [Tue, 4 Nov 2003 14:42:54 +0000 (14:42 +0000)]
.
Jim Meyering [Tue, 4 Nov 2003 14:42:09 +0000 (14:42 +0000)]
*** empty log message ***
Jim Meyering [Tue, 4 Nov 2003 14:42:05 +0000 (14:42 +0000)]
(ADD_FIELD, initseq, getseq): Use x2nrealloc rather than xrealloc.
Jim Meyering [Tue, 4 Nov 2003 10:27:24 +0000 (10:27 +0000)]
(fold_file): Use x2nrealloc rather than xrealloc.
Jim Meyering [Tue, 4 Nov 2003 09:32:16 +0000 (09:32 +0000)]
(store_char): Use x2nrealloc rather than xrealloc.
Jim Meyering [Tue, 4 Nov 2003 09:31:08 +0000 (09:31 +0000)]
(memrchr): Remove #if-0'd function.
(tac_stdin_to_mem): Clean up #if-0'd code.
Jim Meyering [Tue, 4 Nov 2003 09:28:28 +0000 (09:28 +0000)]
(new_key): Use xzalloc, not xcalloc.
Jim Meyering [Tue, 4 Nov 2003 09:27:54 +0000 (09:27 +0000)]
(show_date): Use x2nrealloc rather than xrealloc.
Jim Meyering [Tue, 4 Nov 2003 09:27:19 +0000 (09:27 +0000)]
(decode_format_string): Remove unnecessary casts.
Use more maintainable `sizeof *var'.
(main): Call decode_format_string rather than decode_one_format,
now that `spec' may be NULL.
Jim Meyering [Tue, 4 Nov 2003 06:32:51 +0000 (06:32 +0000)]
(decode_format_string, dump_strings): Use x2nrealloc rather than xrealloc.
Jim Meyering [Tue, 4 Nov 2003 06:28:01 +0000 (06:28 +0000)]
(ADD_RANGE_PAIR): Use x2nrealloc rather than xrealloc,
to avoid potential overflow in pointer arithmetic.
(set_fields): Use not `1', but rather `sizeof *printable_field' as
second argument to xcalloc.