Commit Graph

328 Commits

Author SHA1 Message Date
Paul Eggert
0e1fcd0959 Fix bug-report addr. 1999-03-18 07:20:42 +00:00
Paul Eggert
0e3b1c9291 Update to 1.12.64007. 1999-03-08 07:51:45 +00:00
Paul Eggert
03863d011c 1.12.64006 1999-03-02 00:10:11 +00:00
Paul Eggert
13617c42d8 (to_oct): New parameter substitute, giving a substitute value to use
when the original value is out of range.  Do not append a space to the
output; modern tars don't.  When a value is out of range, specify the
maximum value, not the number of bits.
(GID_NOBODY, UID_NOBODY): New macros.
(gid_to_oct, uid_to_oct): Use them as substitutes.
(finish_header): Do not assume that UINTMAX_TO_OCT appends a space.
(dump_file): Check whether the file changed as we read it.
1999-03-02 00:10:11 +00:00
Paul Eggert
00a2b4708f (main): Remove suspicious AIX/386 code. 1999-03-02 00:10:11 +00:00
Paul Eggert
545ec1a3fa (gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct, off_from_oct,
size_from_oct, time_from_oct, uid_from_oct, uintmax_from_oct):
Use TYPE_MAXIMUM instead of macros like OFF_MAX, which are not reliable
(e.g. OFF_MAX in AIX 4.2 is incorrect).
1999-03-02 00:10:11 +00:00
Paul Eggert
971cfed8d9 Version 1.12.64005 1999-02-20 06:04:28 +00:00
Paul Eggert
dcf34d8c4a Add --bzip2, --bunzip2 options. 1999-02-20 06:04:28 +00:00
Paul Eggert
f561403bad (long_options, usage): Prefer --unbzip2 to --bunzip2. 1999-02-20 06:04:28 +00:00
Paul Eggert
16368da655 Update copyright. 1999-02-01 08:10:25 +00:00
Paul Eggert
006ccbe408 1.12.64004 1999-02-01 08:02:16 +00:00
Paul Eggert
6ccb513321 (long_options, usage, OPTION_STRING, decode_options):
Add -y or --bzip2 or --bunzip2 option.
1999-02-01 07:51:19 +00:00
Paul Eggert
7381ee26dd (extract_archive): Fix bug when extracting sparse files: they were
trashing the tar file header.
1999-02-01 07:51:19 +00:00
Paul Eggert
2e4d78d856 (cached_no_such_uname, cached_no_such_gname, cached_no_such_uid,
cached_no_such_gid): New vars.
(uid_to_uname, gid_to_gname, uname_to_uid, gname_to_gid):
Cache failures, too.
1999-01-31 02:53:47 +00:00
Paul Eggert
562d543b2d (decode_options): Don't pass names longer than UNAME_FIELD_SIZE to
uname_to_uid, as it messes up the cache.  Similarly for gname_to_uid.
1999-01-31 02:52:16 +00:00
Paul Eggert
89a1608bd4 version 1.12.64003 1999-01-28 00:29:59 +00:00
Paul Eggert
5019d3b2d9 (backspace_output, close_archive): Cast rmtlseek position arg to off_t,
for benefit of K&R compilers with long long.
1999-01-28 00:28:41 +00:00
Paul Eggert
3b34cd8be3 Version 1.12.64002 1999-01-27 20:45:26 +00:00
Paul Eggert
3ca6dbbb22 (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
size_to_oct, time_to_oct, uid_to_oct): Cast value to uintmax_t, for
benefit of pre-ANSI compilers with long long.
1999-01-27 20:42:30 +00:00
Paul Eggert
c7f56e640d (gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct,
off_from_oct, size_from_oct, time_from_oct, uid_from_oct):
Cast limit to uintmax_t, for
benefit of pre-ANSI compilers with long long.
1999-01-27 20:42:30 +00:00
Paul Eggert
d434121129 GNU fileutils 4.0i 1999-01-25 14:09:30 +00:00
Paul Eggert
ad3e6fd9fa Update version 1999-01-22 22:37:10 +00:00
Paul Eggert
271450942b Update version number to 1.12.64000. 1999-01-20 20:49:57 +00:00
Paul Eggert
5f1d467d9c Update version number. 1999-01-20 19:30:20 +00:00
Paul Eggert
407206f5f2 GNU tar 1.13 1999-01-19 04:21:34 +00:00
Paul Eggert
85d7b872bf GNU tar 1.13 1999-01-01 17:43:10 +00:00
Paul Eggert
2a65ad143a 1.12.lfs.6 1998-12-07 22:44:42 +00:00
Paul Eggert
e1ac06bcca (read_header): Accept file names as specified by POSIX.1-1996 section 10.1.1. 1998-12-07 22:36:22 +00:00
Paul Eggert
53a5ac41d2 (set_stat): chmod after chown even when not root; if we are using
--same-owner this is needed e.g. on Solaris 2.5.1.
1998-11-30 22:17:11 +00:00
Paul Eggert
b4e98e81e0 Bump revision 1998-11-15 09:30:07 +00:00
Paul Eggert
1d20c503fd Update to 1.12.lfs.4. 1998-10-29 02:29:49 +00:00
Paul Eggert
b9ca9399a1 Don't use rexec code unless compiled with WITH_REXEC. On many
installations, rexec is disabled.
1998-10-29 02:22:34 +00:00
Paul Eggert
7d33c24bbe glibc 2.1.2 1998-10-23 18:07:04 +00:00
Paul Eggert
b21cfb5780 Ghostscript 6.0 1998-09-09 23:52:32 +00:00
Paul Eggert
6cd816fc83 Update revision number. 1998-08-07 19:09:53 +00:00
Paul Eggert
887188311d (uid_to_uname, gid_to_gname): Don't used cached name for nameless
users and groups.
1998-08-07 19:09:15 +00:00
Paul Eggert
8be2b02752 GNU tar 1.13 1998-07-16 23:23:05 +00:00
Paul Eggert
2c3536c509 Initial revision 1998-02-24 23:17:38 +00:00
Paul Eggert
7f0553b270 Add explanation of why this isn't an official version. 1998-02-18 01:23:55 +00:00
Paul Eggert
08ba6038aa Add 1.12.lfs.1. 1998-02-02 23:02:03 +00:00
Paul Eggert
3aa399bca9 Update version to 1.12.lfs.1 1998-02-02 22:57:55 +00:00
Paul Eggert
8d5fcefaa2 GNU tar 1.13 1997-12-31 11:01:18 +00:00
junio
4559fdbfb1 Implement -E (ending-file) option. 1997-12-04 07:07:11 +00:00
junio
d1f1e3a189 Implement -E (ending-file) option. 1997-12-04 06:37:52 +00:00
Paul Eggert
83406bb4c3 gtar 1.12 1997-11-19 20:42:34 +00:00
Paul Eggert
56569a0f75 (main): Don't assume mt_count is of type daddr_t. 1997-11-10 19:13:12 +00:00
Paul Eggert
48be206fbf (to_oct): Now static. Value arg is now uintmax_t. Accept new args
giving name of type of octal field, for error messages.  Report an
error if the value is too large to fit in the field.
(gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct): New functions.

(write_eot, write_long, finish_header, deal_with_sparse,
finish_sparse_file, dump_file): Use dev_t, off_t, ssize_t, size_t when
appropriate.  Remove now-useless casts.  Use unsigned long to print
*_t types, except use STRINGIFY_BIGINT for off_t.

(find_new_file_size): 1st arg is now off_t*.
(finish_sparse_file): Args now use off_t, not long.
Check for lseek error.
(create_archive, dump_file): Cast -1 to dev_t when necessary.
(dump_file): Device arg is now dev_t.
Avoid overflow when testing whether file has holes
by using the new ST_NBLOCKSIZE macro.
1997-10-31 00:58:55 +00:00
Paul Eggert
293c604c5d (rmt_read__, rmt_write__): Now returns ssize_t.
(rmt_lseek): Now returns off_t.
1997-10-31 00:58:55 +00:00
Paul Eggert
ac8cfdacf6 (record_start_block, save_totsize, save_sizeleft, real_s_totsize,
real_s_sizeleft, current_block_ordinal): Now off_t.
(write_error): Arg is now ssize_t.
(child_pid): Now pid_t.
(available_space_after): Now size_t.

(child_open_for_compress, child_open_for_uncompress, flush_write,
open_archive, flush_write, write_error, flush_read, close_archive):
Use pid_t, ssize_t, size_t when appropriate.  Remove now-useless
casts.  Use unsigned long to print *_t types, except use
STRINGIFY_BIGINT for off_t.
1997-10-31 00:58:55 +00:00
Paul Eggert
241bbee81b (read_and, list_archive, read_header, decode_mode, print_header,
print_for_mkdir): Use mode_t, off_t, size_t when appropriate.  Remove
now-useless casts.  Use unsigned long to print *_t types, except use
STRINGIFY_BIGINT for off_t.

(read_header): Check for overflow when converting header size.

(from_oct): Now static.  Now returns uintmax_t.  `where' arg is now
const char *.  Size arg is now size_t.  Now takes new type and maxval
args.  Compute result using uintmax_t, not long.  Report error if
field does not contain octal number in range.
(gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct,
off_from_oct, size_from_oct, time_from_oct, uid_from_oct,
uintmax_from_oct): New functions.

(stringify_uintmax_t_backwards): New function.

(decode_mode, print_for_mkdir): Mode arg is now mode_t.
(skip_file): Offset arg is now off_t.
1997-10-31 00:58:55 +00:00