Commit Graph

748 Commits

Author SHA1 Message Date
Paul Eggert
f762709bb0 Sync with fileutils. 2001-12-19 15:05:33 +00:00
Paul Eggert
88711e3972 (jm_AC_PREREQ_XSTRTOUMAX): Check for strtol and strtoimax,
as those declarations are made even in the unsigned case.
2001-09-28 17:53:12 +00:00
Paul Eggert
06384f1def (jm_AC_PREREQ_XSTRTOIMAX): Check for strtoul and strtoumax,
as those declarations are made even in the signed case.
2001-09-28 17:53:12 +00:00
Paul Eggert
bab605d5bd (strtol): Do not declare if HAVE_DECL_STRTOL.
(strtoul): Do not declare if HAVE_DECL_STRTOUL.
(strtoimax, strtoumax): Do not declare if already defined as a macro.
2001-09-28 06:54:20 +00:00
Paul Eggert
9c93a32114 Initial revision 2001-09-26 20:54:08 +00:00
Paul Eggert
7f1bf2e09f just ignore them silently. 2001-09-26 20:53:42 +00:00
Paul Eggert
3847d0f51f 1.13.25 2001-09-26 20:31:11 +00:00
Paul Eggert
dd83d5dd9d (read_header): Don't keep around extended name and link info
indefinitely; keep it only for the next file.  This fixes a bug
introduced in 1.13.24, and remove the need for some static variables.
Set recent_long_name and recent_long_link to zero if there were no
long links; this avoids a violation of ANSI C rules for pointers in
delete.c.
2001-09-26 20:15:52 +00:00
Paul Eggert
1735867f56 new automake patch 2001-09-26 20:07:51 +00:00
Paul Eggert
fb1c65e512 know -> known
From: Jim Meyering <jim@meyering.net>
Date: Wed, 26 Sep 2001 19:20:10 +0200
2001-09-26 18:46:35 +00:00
Paul Eggert
1a9ace4d99 Include iconv.h before testing for EILSEQ. 2001-09-25 22:52:27 +00:00
Paul Eggert
1ad624bbbc (EILSEQ): Include <time.h> and <wchar.h> if <errno.h> does not define
EILSEQ, because BSD/OS 4.1 defines EILSEQ in <wchar.h>, which requires
<time.h>.  Define a replacement EILSEQ to be ENOENT, not EINVAL, since
callers may want to distinguish EINVAL and EILSEQ.
2001-09-25 18:17:36 +00:00
Paul Eggert
02a275c6ac (maybe_recoverable): Treat OVERWRITE_OLD_DIRS like DEFAULT_OLD_FILES. 2001-09-24 18:58:52 +00:00
Paul Eggert
61170ee840 Don't assume we're using the included libintl. 2001-09-23 06:40:35 +00:00
Paul Eggert
f42a0e5af3 Version 1.13.24. 2001-09-23 06:23:14 +00:00
Paul Eggert
e6e72bf7ed Allocate one more byte than the size would indicate, since we're
null-terminating.
2001-09-23 06:18:20 +00:00
Paul Eggert
1b10ab140f (<libintl.h>): Do not include; no longer needed.
(_): Remove; no longer needed.
2001-09-23 05:37:04 +00:00
Paul Eggert
9a15fcf491 (write_archive_buffer, close_archive): If an archive is a socket,
treat it like a FIFO.
2001-09-23 05:03:42 +00:00
Paul Eggert
e2b5f1e918 Put copyright notice into documentation. 2001-09-22 00:47:09 +00:00
Paul Eggert
4dbeac6c7f Initial revision 2001-09-22 00:47:09 +00:00
Paul Eggert
63db9071d2 Include print-copyr.h, not copysym.h.
(main): Use print_copyright, not copyright_symbol.
2001-09-22 00:47:09 +00:00
Paul Eggert
5a5f4d06e7 Include print-copyr.h, not copysym.h.
(decode_options): Use print_copyright, not copyright_symbol.
(OVERWRITE_DIR_OPTION): New constant.
(long_options, usage, decode_options): Add --overwrite-dir.
2001-09-22 00:47:09 +00:00
Paul Eggert
ec63030958 (update_archive): Pass 0 to read_header. 2001-09-22 00:47:09 +00:00
Paul Eggert
0e041a7bfe (records_read, records_written): New vars.
(write_archive_to_stdout): Now bool, not int.
(open_archive, flush_write, flush_read): Keep records_read and
records_written up to date.
2001-09-22 00:47:09 +00:00
Paul Eggert
85f651c8c6 (recent_long_name, recent_long_link, recent_long_name_blocks,
recent_long_link_blocks): New vars.
(read_and): Pass 0 to read_header.
(read_header): New arg RAW_EXTENDED_HEADERS.  Store away extended headers
into new vars.  Null-terminate incoming symbolic links.
2001-09-22 00:47:09 +00:00
Paul Eggert
6c9e824ce5 (extract_archive): When marking a directory to be updated after
symlinks, stat all directories after it in the delayed-set-stat
list too, since they will be checked after symlinks.
Add support for --overwrite-dir.
2001-09-22 00:47:09 +00:00
Paul Eggert
95a4feb37b (EXTRA_DIST): Remove isc-posix.m4. 2001-09-22 00:47:09 +00:00
Paul Eggert
06e4c77310 (unicode_to_mb): Return int, not void. New arg for failure callback.
(print_unicode_success, print_unicode_failure): New decls.
(print_unicode_char): Return int, not void.
2001-09-21 22:26:45 +00:00
Paul Eggert
a942967415 (EILSEQ, ENOTSUP): New macros, if not defined by errno.h.
(<error.h>): Do not include.
(unicode_to_mb): Return int, not void.  New arg for failure callback.
Invoke the failure callback instead of invoking 'error'.
(print_unicode_success): Renamed from fprintf_callback.  Now extern.
Return -1 on failure, 0 on success.
(print_unicode_failure): New function.
(print_unicode_char): Return int.  Adjust to changes to unicode_to_mb.
Do not report error: instead, print an approximation.
2001-09-21 22:26:45 +00:00
Paul Eggert
92734c1511 Rewrite from scratch, as print-copyr.h. 2001-09-21 22:19:09 +00:00
Paul Eggert
4b5d60ef38 Rewrite from scratch, as print-copyr.c. 2001-09-21 22:19:09 +00:00
Paul Eggert
7a1b6cfa67 (extracting files): Mention --to-stdout.
(Option Summary, Dealing with Old Files): New option --overwrite-dir.
(Overwrite Old Files): Likewise.
2001-09-21 22:19:09 +00:00
Paul Eggert
cc818a584f Add copyright notice. 2001-09-21 21:25:50 +00:00
Paul Eggert
45bf6a9089 Add copyright notice, autoconf 2.52 patch. 2001-09-21 21:22:15 +00:00
Paul Eggert
9957263ec4 From Jim Meyering
(jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of strtoumax
old
2001-09-20 18:01:32 +00:00
Paul Eggert
6fae4f6655 From Jim Meyering
(jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of strtoimax.
2001-09-20 18:01:32 +00:00
Paul Eggert
1589ca47d0 From Jim Meyering.
(strtoimax): Guard declaration with
`#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
have their own, conflicting declaration of strtoimax in sys/inttypes.h.
(strtoumax): Likewise, for completeness (it wasn't necessary).
2001-09-20 18:01:31 +00:00
Paul Eggert
e9da8d1a80 Initial revision 2001-09-20 17:08:35 +00:00
Paul Eggert
c80097bb1d Initial revision 2001-09-17 21:44:53 +00:00
Paul Eggert
356b01119e Include stddef.h, for size_t.
Include langinfo.h if needed.
Use locale_charset only if USE_INCLUDED_LIBINTL;
if not, use nl_langinfo (CODESET) if available.
2001-09-15 06:11:37 +00:00
Paul Eggert
698e5f95bf Describe automake patch 2001-09-15 06:10:14 +00:00
Paul Eggert
8267e6ed02 Fix bug: statement before decl. 2001-09-14 02:05:00 +00:00
Paul Eggert
17a96facb7 1.13.23 2001-09-14 01:51:21 +00:00
Paul Eggert
792f268988 Initial revision 2001-09-14 00:27:39 +00:00
Paul Eggert
135a24714f Include copysym.h.
(main): Use copyright_symbol to translate copyright notice,
instead of gettext.
2001-09-14 00:27:39 +00:00
Paul Eggert
8571998faa Include copysym.h.
(decode_options): Use copyright_symbol to translate copyright notice,
instead of gettext.
2001-09-14 00:27:39 +00:00
Paul Eggert
38322a564c (EXTRA_DIST): Add getcwd.m4; remove uintmax_t.m4. 2001-09-14 00:27:39 +00:00
Paul Eggert
95dda72cc6 (struct delayed_set_stat): New member 'after_symlinks'.
(delay_set_stat): Initialize it to 0.
(set_mode): New arg current_stat_info.  Use it (if nonnull) to avoid
taking an extra stat ourselves.  All callers changed.
(set_stat): Likewise.
(apply_nonancestor_delayed_set_stat): New arg 'after_symlinks'.
If false, stop when encountering a struct whose 'after_symlinks' member is
true.  Otherwise, go through all structures but check them more carefully.
All callers changed.
(extract_archive): When extracting a deferred symlink, if its parent
directory's status needs fixing, then mark the directory as needing
to be fixed after symlinks.
(extract_finish): Fix status of ordinary directories, then apply delayed
symlinks, then fix the status of directories that are ancestors
of delayed symlinks.
2001-09-12 06:46:23 +00:00
Paul Eggert
172dc3e72b Remove rexec declaration; it ran afoul of prototypes on Crays. 2001-09-12 06:37:02 +00:00
Paul Eggert
f596d1be2e (HAVE_LONG_LONG): Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
(strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
to work around bug in IBM C compiler.
2001-09-06 19:47:45 +00:00