Commit Graph

626 Commits

Author SHA1 Message Date
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
Paul Eggert
cd47c9d597 (long_options, usage, OPTION_STRING, decode_options):
New -y or --bzip2 option.
(add_filtered_exclude): New function.
(decode_options): Put excluded patterns with / into excluded_with_slash,
and without / into excluded_without_slash.
Compare newer_mtime_option to its new initial value TYPE_MINIMUM (time_t)
when deciding whether more than one threshold date was specified.
1999-08-11 12:47:01 +00:00
Paul Eggert
c402183f88 (extract_archive): Open files with O_NONBLOCK instead of O_NDELAY. 1999-08-11 12:47:01 +00:00
Paul Eggert
8af82f2c4e (encode_oflag): New function.
(rmt_open__): Do not allow newlines in the path.
Propagate errno correctly.
Decode symbolic open flags, if present.
1999-08-11 12:47:01 +00:00
Paul Eggert
db46e2e2b3 (decode_oflag): New function.
(main): Use it to support symbolic open flags.
1999-08-11 12:47:01 +00:00
Paul Eggert
36682e50cc (base_64_digits): New constant.
(base_8_digits): New macro.
(MAX_VAL_WITH_DIGITS): New macro.
(to_base): Renamed from to_oct.  Support base 64 too.
New parameters specifying bits per digit and digits.
Remove `type' parameter.  The result is now undefined if it doesn't fit;
it's the caller's responsibility to check this.
(to_chars): Other half of old to_oct, for 64-bit support.
Mostly a new function.
(GID_NOBODY, UID_NOBODY): Don't define if the headers don't.
(gid_substitute, uid_substitute): Look up names dynamically if
GID_NOBODY and UID_NOBODY aren't defined; use -2 if all else fails.
(mode_to_chars): Renamed from mode_to_oct.
Support negative values in all the _to_chars functions.
(start_header): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
Abort if archive format is DEFAULT_FORMAT when it shouldn't be.
(dump_file): Inspect entire pathname, not just new file name
component, when deciding whether to exclude it.
1999-08-11 12:47:01 +00:00
Paul Eggert
92a680ff64 (_GNU_SOURCE): Define.
(<fnmatch.h>): Include unconditionally.
(excluded_name): New function, taking over duties of excluded_pathname.
All uses changed.
1999-08-11 12:47:01 +00:00
Paul Eggert
1027b84330 (_GNU_SOURCE): Define.
(<fnmatch.h>): Include unconditionally.
(child_open_for_compress): Dup after closing, to avoid possible file
descriptor exhaustion.
(flush_write): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
(flush_read): Likewise.
1999-08-11 12:47:01 +00:00
Paul Eggert
dc4a8aa0c6 (<fnmatch.h>): Do not include.
(from_chars): Renamed from from_oct.  New parameter specifing
the negative of the minimum allowed value.  Support negative
and base-64 values.
(base64_map): New var.
(base64_init): New function.
(print_header): Output numeric uids and gids if numeric_owner_option.
1999-08-11 12:47:01 +00:00
Paul Eggert
133a9e5b86 Initial revision 1999-08-08 10:12:55 +00:00
Paul Eggert
ed88882cf9 Version 1.13.5 1999-07-20 19:55:35 +00:00
Paul Eggert
2ca2d1cb99 (new_volume): Invoke apply_delayed_set_stat before exiting. 1999-07-20 19:48:30 +00:00
Paul Eggert
1f27dca976 (decode_options): ERROR ((TAREXIT_FAILURE, ... -> FATAL_ERROR ((0,
for consistency.
1999-07-20 19:48:30 +00:00
Paul Eggert
653e9784d3 version 1.13.4 1999-07-20 07:09:27 +00:00
Paul Eggert
9cb6f5c466 this matches historical practice.
(unlink_destination): New function, which checks for unlink failures.
(maybe_recoverable): Stay quiet if -U.
(extract_archive): Use O_EXCL if unlink_first_option.
Report unlink failures.
Use HAVE_SYMLINK, not S_ISLNK, to determine whether symlink exists.
Use HAVE_MKFIFO || defined mkfifo, not S_ISFIFO, to determine whether
mkfifo exists.
1999-07-20 07:09:27 +00:00
Paul Eggert
52eb0695e8 Remove S_IS* ifdefs. 1999-07-20 07:09:27 +00:00
Paul Eggert
db2d22cd20 (rmt_open__): Remove typo that caused us to omit the first char
of the basename.
1999-07-20 07:09:27 +00:00
Paul Eggert
fbc8201238 (extract_mangle): Replace #ifdef S_ISLNK with #ifdef HAVE_SYMLINK. 1999-07-20 07:09:27 +00:00
Paul Eggert
277f69debf (dump_file): Use HAVE_READLINK, not S_ISLNK, to determine whether to invoke
readlink.
1999-07-20 07:09:27 +00:00
Paul Eggert
9d681f8130 version 1.13.3 1999-07-17 01:49:35 +00:00
Paul Eggert
6600451136 A path name is excluded if any of its file name components matches an
excluded pattern, even if the path name was specified on the command line.
1999-07-17 01:49:35 +00:00
Paul Eggert
8ae9f94ce2 (update_archive): Exclude pathnames if any of their components are excluded. 1999-07-17 01:49:35 +00:00
Paul Eggert
d8f0da985a (total_written): Remove; replaced with prev_written + bytes_written.
(prev_written): New var.
(init_total_written): New function.
(print_total_written): Use TARLONG_FORMAT instead of print_tarlong.
1999-07-17 01:49:35 +00:00
Paul Eggert
be4c265a8d (read_and): Exclude pathnames if any of their components are excluded.
(from_oct): Use C quoting style for error; omit trailing nuls.
1999-07-17 01:49:35 +00:00
Paul Eggert
617f136b46 (decode_options): Set newer_time_option to TYPE_MINIMUM, so that
negative timestamps are handled correctly.
Replace invocations of xstrtol and xstrtoul with xstrtoumax, for
uniformity (and so that we don't need to have the other fns).
(main): Remove call to init_total_written; no longer needed.
1999-07-17 01:49:35 +00:00
Paul Eggert
a0c7ce6e37 (create_archive): Exclude pathnames if any of their components are
excluded.
1999-07-17 01:49:35 +00:00
Paul Eggert
48bec1274c version 1.13.2 1999-07-14 15:17:06 +00:00
Paul Eggert
6c48e00730 tar-bugs@gnu.org -> bug-tar@gnu.org 1999-07-14 15:13:25 +00:00
Paul Eggert
9e15f49bd0 (usage): tar-bugs@gnu.org -> bug-tar@gnu.org 1999-07-14 15:13:25 +00:00
Paul Eggert
803f861392 Version 1.13.1 1999-07-12 13:28:36 +00:00
Paul Eggert
fbc29baad9 (start_header): Do not assume S_IFMT is defined.
(dump_file): Remove unnecessary check for screwy apollo lossage.
Do not assume S_IFBLK and S_IFCHR are defined.
1999-07-12 13:03:58 +00:00
Paul Eggert
de1db1ed96 (is_regular_file): Don't succeed on files that we can't access due to
permissions problems.
(open_archive): Fix wording on fatal error message.
Don't bother to stat /dev/null if the archive is not a character
special device.
1999-07-12 13:03:58 +00:00
Paul Eggert
6a8c91fef3 (extract_archive): Test whether S_IFCHR and S_IFBLK are nonzero,
not whether they are defined, for consistency with other tests.
1999-07-12 13:03:58 +00:00
Paul Eggert
2016526b1a (decode_header): Do not assume that S_IFBLK and S_IFCHR are defined. 1999-07-12 13:03:58 +00:00
Paul Eggert
4dd9bd50bd (append_file): Open the file before statting it, to avoid a race.
Complain about file shrinkage only when we reach EOF.
1999-07-12 13:03:58 +00:00
Paul Eggert
9c540db933 Bump date to 07-08. 1999-07-08 04:09:22 +00:00
Paul Eggert
508b2ae13f Initial revision 1999-07-08 03:45:21 +00:00
Paul Eggert
d100b4033b Include safe-read.h. 1999-07-08 03:45:21 +00:00
Paul Eggert
65fda730cf Include safe-read.h instead of full-write.h. 1999-07-08 03:45:21 +00:00
Paul Eggert
8bbacf0b4f Include basename.h, save-read.h.
(rmt_open__): Use base_name to compute base name.
1999-07-08 03:45:21 +00:00
Paul Eggert
5129abee27 (safe_read): New decl. 1999-07-08 03:45:21 +00:00