Commit Graph

506 Commits

Author SHA1 Message Date
Paul Eggert
23842e32bb New node create options for --ignore-failed-read.
Remove unused version control symbols.
Modernize texinfo usage.
1999-11-07 21:27:40 +00:00
Paul Eggert
859a4ec01f (usage): Add examples. 1999-11-07 21:15:15 +00:00
Paul Eggert
02519e5575 Include getopt.h.
(long_opts): New constant.
(usage): New function.
(main): Implement --help and --version.
Output usage message if arguments are bad.
1999-11-07 21:06:38 +00:00
Paul Eggert
f87e585c51 (to_chars): Remove trailing newline from warning.
(dump_file): Ignore doors.
1999-11-07 21:06:38 +00:00
Paul Eggert
7be178a4d4 (set_stat): Remove duplicate code. 1999-11-07 21:06:38 +00:00
Paul Eggert
26505948d9 (from_header): Handle 32-bit two's complement negative time stamps
even if the leading octal digit is 2 or 3.
1999-11-07 21:06:38 +00:00
Paul Eggert
0ca48105ea (AC_FUNC_FNMATCH): Include fnmatch.h when testing fnmatch. 1999-11-07 21:06:38 +00:00
Paul Eggert
12fa57c63b Fix comment (from meyering fileutils). 1999-10-31 15:47:44 +00:00
Paul Eggert
a3bbec5628 Initial revision 1999-10-30 08:03:14 +00:00
Paul Eggert
598799956c version 1.13.13 1999-10-11 06:56:17 +00:00
Paul Eggert
bf9a7d3d97 Remove --with-dmalloc.
Add --disable-largefile.
Remove old NeXT dirent problems, or AIX valloc problems.
Remove old union wait advice, and old %lld advice.
Remove advice about FreeBSD 2.1.7, ISC 4.1mu, Ultrix `make'.
1999-10-11 06:56:17 +00:00
Paul Eggert
23d6aeb946 Clarify documentation for portable file names. 1999-10-11 06:56:17 +00:00
Paul Eggert
a46a204436 (update_archive): Fix typo: last two args to dump_file were interchanged. 1999-10-11 06:56:17 +00:00
Paul Eggert
51f0c7c364 (tartime): Now extern.
(read_and): Invalid headers cause errors, not warnings.
1999-10-11 06:56:17 +00:00
Paul Eggert
3f3860fd6a (dump_file): Fix typo: last two args to dump_file were interchanged. 1999-10-11 06:56:17 +00:00
Paul Eggert
cf4065dfe9 (decode_options): Invalid dates are now treated as (time_t) -1.
Redo version message to conform to GNU standards.
1999-10-11 06:56:17 +00:00
Paul Eggert
9f9336cb0a (__attribute__): Don't use if GCC claims to be before 2.8; this is
needed for OPENStep 4.2 cc.  Also, don't use if strict ANSI.
1999-10-03 23:30:09 +00:00
Paul Eggert
f4f13c4705 Initial revision 1999-09-26 19:03:20 +00:00
Paul Eggert
5af183358f A read error now causes a nonzero exit status. 1999-09-25 05:50:48 +00:00
Paul Eggert
29929863e8 (write_error): Read error is an error, not just a warning. 1999-09-25 05:47:17 +00:00
Paul Eggert
559eeb2b52 (to_chars): Fix base-256 output. 1999-09-25 05:47:17 +00:00
Paul Eggert
edf35a92f8 Version 1.13.12 1999-09-25 00:33:06 +00:00
Paul Eggert
10f585ea2f (print_total_written): Use a format compatible with
Amanda 2.4.1p1.
1999-09-25 00:25:36 +00:00
Paul Eggert
e6d8e9279f (update_archive): Remove call to name_expand; had no effect.
Use chdir_do to change into directory.
Use deref_stat instead of stat.
Use add_avoided_name to mark names to be avoided; the old method of
setting a bit with the name caused all descendants of that name to
be avoided, in some circumstances.
1999-09-24 23:44:52 +00:00
Paul Eggert
825b72c52b (<time.h>): Include.
(time): Declare if not defined.
(confirm): Don't read past EOF.
(long_options, usage): Add --no-same-owner, --no-same-permissions.
(main): Use clock_gettime if available.
1999-09-24 23:44:52 +00:00
Paul Eggert
6e36ce5668 (name_next): Go back to using plain chdir.
(name_gather): Use chdir_arg to keep track of arguments to chdir.
(addname): Likewise.
(name_match): Use chdir_do to act on chdir args.
(merge_sort): Moved here from incremen.c.
(compare_names, add_hierarchy_to_namelist, collect_and_sort_names):
Likewise.
(name_expand): Remove.
(name_from_list): Skip fack names.
Use chdir_do to act on chdir args.
(struct avoided_name): New struct.
(avoided_names): New var.
(add_avoided_name, is_avoided_name): New functions.
1999-09-23 06:22:31 +00:00
Paul Eggert
a7002a034e (to_chars): Fix typo in decl.
Don't assign through char const *.
Rename name_expand back to collect_and_sort_names.
1999-09-22 06:14:23 +00:00
Paul Eggert
e4e624848b (time): Declare if not defined.
(base_64_digits): Moved here from create.c.
(base64_map): Use UCHAR_MAX for size, not less-clear (unsigned char) -1.
(read_and): Don't get time from header unless we need it now;
as getting time can cause duplicate diagnostics if bogus.
Remove "Hmm, " from diagnostic.
Use "Skipping to next header" uniformly.
(from_header): Renamed from from_chars.  All uses changed.
Allow different forms for unportable 2's complement numbers.
Don't check for extended forms when parsing checksums.
Parse base-256 output.
(gid_from_header): Renamed from gid_from_chars.  All uses changed.
(major_from_header): Renamed from major_from_chars.  All uses changed.
(minor_from_header): Renamed from minor_from_chars.  All uses changed.
(mode_from_header): Renamed from mode_from_chars.  All uses changed.
(off_from_header): Renamed from off_from_chars.  All uses changed.
(size_from_header): Renamed from size_from_chars.  All uses changed.
(time_from_header): Renamed from time_from_chars.  All uses changed.
Warn about future timestamps.
(uid_from_header): Renamed from uid_from_chars.  All uses changed.
(uintmax_from_header): Renamed from uintmax_from_chars.  All uses changed.
(tartime): New function, incorporating isotime.
(isotime): Delete.
(print_header): Use tartime.
1999-09-22 06:14:23 +00:00
Paul Eggert
d591c42003 (<time.h>): Remove; not used.
(time): Do not declare.
1999-09-22 06:14:23 +00:00
Paul Eggert
0d70f547f3 (struct link): Remove unused linkcount member.
(base_64_digits): Move to list.c.
(base_8_digits): Remove.
(to_octal): New function, with some of old contents of to_base.
(to_base): Remove.
(to_base256): New function.
(to_chars): Use base 256, not base 64, for huge values.
(mode_to_chars): Don't use two's complement in GNU format or POSIX format.
(dump_file): Interchange last two arguments.  If TOP_LEVEL is negative,
it means we have an incremental dump where we don't know whether this
is a top-level call.
Use deref_stat instead of statx / stat / lstat.
Cast result of alloca.
Check for dates if 0 < top_level, not if listed_incremental_option.
Move multiple-link check after directory check.
Do not dump avoided names.
Dump hard links to symbolic names as links, not as separate symbolic links.
start_header cannot return a null pointer, so don't test for it.
Likewise for find_next_block.
1999-09-21 15:13:33 +00:00
Paul Eggert
5ae88d8a13 (<time.h>): No need to include.
(time): No need to declare.
(now): Remove variable.
(extr_init): Don't initialize `now'.
Increment same_permissions_option and same_owner_option if we_are_root
is nonzero; this supports the new --no-same-owner option.
(set_stat): Use start_time instead of `now'.
1999-09-21 15:13:33 +00:00
Paul Eggert
17e0cd7065 (<human.h>): Include.
(print_total_written): Also print human-readable byte count, and bytes/s.
(open_archive, flush_write): Use start_time, not current time.
(flush_read): Report about garbage bytes ignored at end of archive,
but act on non-garbage bytes (instead of ignoring them).
(new_volume): Use WARN for warnings.
1999-09-20 06:28:45 +00:00
Paul Eggert
8793fc2ca2 Initial revision 1999-09-20 06:12:58 +00:00
Paul Eggert
ed0fa614f7 Add --no-same-owner, --no-same-permissions.
Modernize sample backup script.
1999-09-20 06:12:58 +00:00
Paul Eggert
a9e349319b (EXTRA_DIST): Add fnmatch.m4. 1999-09-20 06:12:58 +00:00
Paul Eggert
26fd2b79db (get_date): Rename outermost local probe' to quarter'.
(get_date): Rename latter local `tm' to probe_tm.
From: Jim Meyering <meyering@ascend.com>
Message-ID: <uryn1vafyyc.fsf@ixi.eng.ascend.com>
1999-08-29 21:32:29 +00:00
Paul Eggert
269a3b3ed2 (PC): New macro; use it when possible.
(number): Handle `Nov 11 1996' example correctly.
See Risks Digest 20.55 (1999-08-27).
1999-08-28 07:50:29 +00:00
Paul Eggert
77de7dbb2f Fix typo in previous change. 1999-08-23 11:03:47 +00:00
Paul Eggert
4732e8a4da (first_mangle, mangled_num): Remove. 1999-08-23 10:55:51 +00:00
Paul Eggert
edf0754a95 spelling fix 1999-08-23 09:55:55 +00:00
Paul Eggert
0b277662d5 spelling corrections 1999-08-23 09:55:55 +00:00
Paul Eggert
bd5bbd4f65 Remove lint.
(name_gather): Handle trailing -C option correctly.
(addname): use memcpy, not strncpy, to copy a string of known length.
(name_match): Handle trailing -C option correctly.
Propagate -C option to following files.
Simplify matching code.
(name_scan): Simplify matching code.
1999-08-23 09:55:55 +00:00
Paul Eggert
db16e89362 Remove lint.
(main): status is ssize_t, not long.
1999-08-23 09:55:55 +00:00
Paul Eggert
276d317d88 Remove lint.
(long_options, usage, main): -y is now -I (for --bzip).
(usage): Fix misspelling.
(OPTION_STRING): -y is now -I.
(decode_options): Use -1, not EOF, for getopt_long result.
Fix typo when invoking xstrtoumax: look for LONGINT_OK, not LONG_MAX.
Handle operands after any "--" argument.
(main): Report any output errors.
1999-08-23 09:55:55 +00:00
Paul Eggert
43085596a3 Remove lint. 1999-08-23 09:55:55 +00:00
Paul Eggert
cc9d6c88f9 Lint removal. 1999-08-23 09:55:55 +00:00
Paul Eggert
b8ae0938a4 Lint cleanup.
(open_archive): Use American spelling in diagnostic.
1999-08-23 09:55:55 +00:00
Paul Eggert
aeef457460 Lint cleanup.
(linklist): Now static.
(to_chars): Fix wording of message to match from_chars.
1999-08-23 09:55:55 +00:00
Paul Eggert
aa904fd8ec Lint cleanup.
(from_chars): Report out-of-range values more precisely.
(off_from_chars): Do not allow negative offsets.
(uid_from_chars): Allow negative uids.
1999-08-23 09:55:55 +00:00
Paul Eggert
c270f6f1b2 Lint cleanup. 1999-08-23 09:55:55 +00:00