Commit Graph

616 Commits

Author SHA1 Message Date
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
Paul Eggert
c0d324c43c Add copyright notice.
(<stdio.h>): Include only if testing.
(ISUPPER): Remove.
(ISLOWER): New macro.
(<string.h>): Include if HAVE_STRING_H, not USG.
(bcopy): Remove.
(yymaxdepth, ..., yycheck): Don't bother to redefine, since we can assume
bison.
(EPOCH_YEAR): Renamed from EPOCH.
(table): Renamed from TABLE.
(meridian): Now an anonymous enum.
(struct parser_control): New type.
(YYLEX_PARAM, YYPARSE_PARAM, YYSTYPE): New macros.
(yyInput, ..., yyRelYear): Migrated into struct parser_control.
(%pure_parser): Added, so that the parser is pure.
(%union): Removed; the type is now just plain int.
All %type directives removed.
(tLOCAL_ZONE): New %token.
(month_day_table): Renamed from MonthDayTable.
(gmtime, localtime, mktime, time): Declare only if not defined.
(meridian_table): New table.
(dst_table): New table.
(units_table): renamed from UnitsTable.
(relative_time_table): Renamed from OtherTable.
(time_zone_table): Renamed from TimezoneTable.  Modernized.
(military_table): Renamed from MilitaryTable.
(to_hour): Renamed from ToHour.
(to_year): Renamed from ToYear.
(lookup_zone): New function.
(LookupWord): Renamed from lookup_word.  Use lookup_zone for time zones.
(yylex): Now reentrant.  All callers changed.
(get_date): Add support for local time zone abbreviations.
Make it reentrant.
1999-08-23 09:55:55 +00:00
Paul Eggert
38d825f34b 1.13.11 1999-08-23 09:55:55 +00:00
Paul Eggert
6b6064c3fa --bzip2 is now -I. Remove bogus time zone info.
Fix spelling.
1999-08-23 09:55:55 +00:00
Paul Eggert
984190dcc6 (time): Do not declare if defined.
(first_mangle, mangled_num): Now static.
1999-08-23 09:55:55 +00:00
Paul Eggert
2ac3be1648 version 1.13.10 1999-08-20 09:13:42 +00:00
Paul Eggert
f74aea3ae3 (name_next): Use chdir_from_initial_wd, not chdir.
(name_gather): Handle `-C x -C y' correctly.
Do not rely on addname to handle -C.
(addname): New CHANGE_DIR parameter.
Remove ugly calls to getcwd; no longer needed now that we have save-cwd.
(name_match): Use chdir_from_initial_wd, not chdir.
(name_from_list): Likewise.
1999-08-20 08:53:21 +00:00
Paul Eggert
2eaf29f3fb (decode_options): Adjust to addname's new signature. 1999-08-20 08:53:21 +00:00
Paul Eggert
2c3d0a2dcd (to_chars): Generate GNU base-64 representation if we are generating
an old or new GNU format tar file for a number that can't be represented
with the POSIX format.
1999-08-20 08:41:32 +00:00
Paul Eggert
6dccec3ba4 (max): New macro.
(isotime): Now takes time_t, not time_t *.  Report the decimal values
of times that can't be broken down.
(print_header): Don't assume that major and minor device numbers can
fit into uintmax_t.
1999-08-20 08:41:32 +00:00
Paul Eggert
f34eafea87 (TimezoneTable): Modernize to current tz data. 1999-08-20 08:41:32 +00:00
Paul Eggert
6a5e9283fb (EXTRA_DIST): Add getline.m4. 1999-08-20 08:41:32 +00:00
Paul Eggert
22ee808ffe (from_chars): Skip only the initial null byte from buggy tars, so that
we don't complain about all-null fields.
1999-08-18 09:24:42 +00:00
Paul Eggert
3c47b1f080 (EXTRA_DIST): Add signedchar.m4. 1999-08-18 08:37:16 +00:00
Paul Eggert
d9c7673472 version 1.13.9 1999-08-18 08:05:06 +00:00
Paul Eggert
f9d278ba35 Comment fix. 1999-08-18 07:52:26 +00:00
Paul Eggert
f5116dd1db (write_eot): Write at least two zero blocks. 1999-08-18 07:52:26 +00:00
Paul Eggert
c62fe41ec5 (read_and, list_archive): Simplify code.
(read_header): Fix computation of signed checksums on machines where
char is unsigned.
Do not consider a block to be zero unless all its bytes are zero,
even the checksum bytes.  Do not attempt to parse the checksum of
a zero block.  Fix memory leak with long names and links.
(from_chars): Accommodate a buggy tar that outputs leading NUL
if the previous field overflows.
(skip_extended_headers): Don't assume find_next_block yields nonnull.
1999-08-18 07:52:26 +00:00
Paul Eggert
72290b64a6 (extract_sparse_file, extract_archive): Don't assume find_next_block yields nonnull.
(extract_archive): Fix sparse array bug: we did not find end of array
correctly.
1999-08-18 07:52:26 +00:00
Paul Eggert
34183f8d77 Fix a few more white-space glitches. 1999-08-18 07:49:49 +00:00
Paul Eggert
9939476576 Comment fix. 1999-08-18 07:49:49 +00:00
Paul Eggert
fcde5487eb Ghostscript 6.0 1999-08-17 19:59:28 +00:00
Paul Eggert
c977f9dd60 version 1.13.8 1999-08-16 08:13:20 +00:00
Paul Eggert
0357ce3365 indenting fixes. 1999-08-16 08:13:20 +00:00
Paul Eggert
14b1583256 indenting fixes 1999-08-16 08:13:20 +00:00
Paul Eggert
f536f68bfb Remove punctuation glitches. 1999-08-16 08:13:20 +00:00
Paul Eggert
da82a07e93 Fix bugs when interpreting POSIX-compliant headers that do not
contain null bytes in the header or link names.
1999-08-16 08:13:20 +00:00
Paul Eggert
5e0e027651 (make_directories): Do not chown intermediate directories, even
if we are root.
1999-08-16 08:13:20 +00:00
Paul Eggert
981a4bf1ff -g now implies after_date_option = 1.
-g and -N are now incompatible options.
1999-08-14 07:10:19 +00:00
Paul Eggert
bda50f104b (time): Don't declare if defined.
(extr_init): Remove unneeded cast around 0 arg to time.
1999-08-14 07:10:19 +00:00
Paul Eggert
203dea13a4 (time): Don't declare if defined.
(child_open_for_compress): Undo previous change.
(close_archive): Use waitpid, POSIX-style, instead of old BSD style.
(new_volume): Likewise.
1999-08-14 07:10:19 +00:00
Paul Eggert
619a95af98 (start_header): Include text of ignored filesystem prefix in warning.
(create_archive): Check for excluded names when doing incremental
pass through directory.
(dump_file): Do not dump old files explicitly given on command line
when using --listed-incremental.  Do not strip ./ from front of file names.
1999-08-14 07:10:19 +00:00
Paul Eggert
eaef08322e (isotime): Report ??? if localtime returns null.
Don't assume years fit into four digits.
Don't append trailing newline.
(print_header): Report ??? if localtime returns null;
Don't assume years fit into four digits.
1999-08-14 07:10:19 +00:00
Paul Eggert
7db0b90f9d Version 1.13.7. 1999-08-14 07:05:51 +00:00
Paul Eggert
ea2373a8a3 Initial revision 1999-08-14 07:05:51 +00:00
Paul Eggert
3f7ee6f595 Explain --exclude better. Don't strip leading `./'. 1999-08-14 07:05:51 +00:00
Paul Eggert
67f20a741a (read_header): Don't parse OLDGNU_FORMAT incremental headers
as POSIX prefixes.
1999-08-11 14:43:46 +00:00
Paul Eggert
9d68ac2e94 (update_archive): excluded_pathname -> excluded_name. 1999-08-11 13:43:15 +00:00
Paul Eggert
33a2b1fc06 (decode_options): Fix typo in invoking add_exclude_file. 1999-08-11 13:41:56 +00:00
Paul Eggert
911e926f45 version 1.13.6 1999-08-11 13:37:09 +00:00
Paul Eggert
9dfffffa84 Add -y and --bzip2.
Patterns containing / now exclude only file names whose prefix match.
1999-08-11 12:47:01 +00:00