Sergey Poznyakoff
87fa28ed2a
Use new sparse file interface.
2003-11-17 07:37:03 +00:00
Sergey Poznyakoff
3cdbeffe30
Major rewrite.
2003-11-17 07:36:18 +00:00
Sergey Poznyakoff
80b8de13ce
(struct sp_array): Declaration from common.h
...
(struct tar_stat_info): New members archive_file_size,
sparse_map_avail,sparse_map.
2003-11-17 07:34:55 +00:00
Sergey Poznyakoff
caa20e5bac
(struct sp_array,sparsearray,sp_array_size)
...
(init_sparsearray,fill_in_sparse_array): Removed
(enum dump_status): New data type
(pad_archive,close_diag,open_diag,read_diag_details)
(readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
functions.
(sparse_file_p,sparse_dump_file,sparse_extract_file): New
functions.
2003-11-17 07:34:16 +00:00
Sergey Poznyakoff
18ef8acac5
Added sparse.c
2003-11-17 07:32:37 +00:00
Sergey Poznyakoff
8c0a6b24b2
Do not zero-terminate name field if
...
the name is exactly 100 characters long.
(write_ustar_long_name): Fixed cheking for unsplittable
names.
2003-11-14 12:27:50 +00:00
Sergey Poznyakoff
3bfdc3f8ce
(safer_name_suffix): If the input file name ends with a slash, output one should do so as well.
2003-11-14 09:57:49 +00:00
Sergey Poznyakoff
bc73e3d68d
Removed debugging hook
2003-11-14 09:56:11 +00:00
Sergey Poznyakoff
f92c7cf4c8
(start_header): Removed debugging hook
...
(dump_file): Fixed handling of linkname field.
2003-11-14 09:27:50 +00:00
Sergey Poznyakoff
7e2f7ead1c
New option --format=ustar forces POSIX.1-1988 archive format.
2003-11-13 22:27:44 +00:00
Sergey Poznyakoff
052118a907
(safer_name_suffix): Skip leading ./
2003-11-13 22:27:23 +00:00
Sergey Poznyakoff
fe4ee38fce
Added POSIX.1-1988 support.
2003-11-13 22:27:09 +00:00
Sergey Poznyakoff
040bc32535
(archive_format): USTAR_FORMAT: New type.
2003-11-13 22:26:55 +00:00
Sergey Poznyakoff
4ed709c3c2
(atime_decoder,gid_decoder,ctime_decoder)
...
(mtime_decoder,size_decoder,uid_decoder): Use xstrtoumax.
Fixes "pax-big-10g" bug
2003-11-13 08:47:25 +00:00
Sergey Poznyakoff
c95535bae8
(all_names_found): Check if the argument
...
contains valid filename. Fixes coredump on "not_a_tar_file"
2003-11-13 08:46:53 +00:00
Sergey Poznyakoff
cc8628df0c
(read_and): Initialize current_stat_info
...
and extended_header at the start of the loop.
2003-11-13 08:46:26 +00:00
Paul Eggert
572225dfdc
Fix some C compatibility bugs reported by Joerg Schilling.
2003-11-13 06:23:23 +00:00
Sergey Poznyakoff
f035e8f9e2
(decode_header): Initialize st_atime and st_ctime.
2003-11-12 11:46:04 +00:00
Paul Eggert
4414f1a82c
Make xhdr_tab extern, not static.
2003-11-05 01:33:35 +00:00
Paul Eggert
761802e87a
Include bounds in forward declaration for xhdr_tab.
2003-11-03 23:03:35 +00:00
Paul Eggert
b7ed638806
* system.c (sys_spawn_shell): Cast trailing null to (char *).
2003-10-27 05:41:15 +00:00
Sergey Poznyakoff
4bc226bb42
(decode_options): Removed superfluous archive format check
2003-10-19 19:02:03 +00:00
Sergey Poznyakoff
006d3dc1d5
[MSDOS]: Fixed spelling of EACCES. Added macro overriding broken mkdir prototypes.
2003-10-08 11:18:01 +00:00
Sergey Poznyakoff
80e978dc2e
Removed spurious includes.
2003-10-08 11:17:52 +00:00
Sergey Poznyakoff
89d2ad35e6
Added missing includes.
2003-10-08 11:17:36 +00:00
Paul Eggert
1e7d274cd8
Fix some misspellings.
2003-10-04 22:30:52 +00:00
Sergey Poznyakoff
0008f61237
Added system.c
2003-10-04 18:19:34 +00:00
Sergey Poznyakoff
a0d91086c4
Moved system dependencies to system.c
2003-10-04 18:18:02 +00:00
Sergey Poznyakoff
c1b9212b16
Moved system dependencies to system.c
2003-10-04 18:14:32 +00:00
Sergey Poznyakoff
3b76d26206
(SET_BINARY_MODE, ERRNO_IS_EACCESS): New defines
2003-10-04 18:13:51 +00:00
Sergey Poznyakoff
719c762d80
Prototypes for functions from system.c
2003-10-04 18:13:37 +00:00
Sergey Poznyakoff
b085ca3097
System-dependent functions
2003-10-04 18:13:02 +00:00
Sergey Poznyakoff
eb6bef9909
New option --occurrence
2003-10-04 14:08:16 +00:00
Sergey Poznyakoff
91493ea9b6
Count number of occurrences of each name in the
...
archive.
(name_match): Honor --occurence option.
(names_done): Removed
(all_names_found,names_notfound): Rewritten.
2003-10-04 13:50:41 +00:00
Sergey Poznyakoff
dcb7c93527
(read_and): Honor --occurence option.
2003-10-04 13:50:20 +00:00
Sergey Poznyakoff
f4935ab55d
(delete_archive_members): Honor --occurence option.
2003-10-04 13:49:46 +00:00
Sergey Poznyakoff
660c6d9b64
(occurrence_option): New global
...
(struct name): Changed `found' member to `uintmax_t
found_count'.
(names_done): Removed
(all_names_found): Changed prototype.
(ISFOUND,WASFOUND): New macros
2003-10-04 13:49:25 +00:00
Sergey Poznyakoff
a6344f97a6
Removed extra precaution regarding subcommand_option == CAT_SUBCOMMAND
2003-10-02 14:37:24 +00:00
Sergey Poznyakoff
f364d50661
Take regexps into account
2003-10-02 10:41:48 +00:00
Sergey Poznyakoff
17878ad672
New option --first-copy
2003-10-02 10:29:43 +00:00
Sergey Poznyakoff
6c16197226
New option --first-copy
2003-10-02 10:29:00 +00:00
Sergey Poznyakoff
05b3fdccc1
(read_and): Use all_names_found() as `while' condition.
2003-10-02 10:28:45 +00:00
Sergey Poznyakoff
9373182407
(names_done): New function.
2003-10-02 10:28:30 +00:00
Paul Eggert
00ac26f00c
Don't translate "Copyright".
2003-09-24 19:11:44 +00:00
Paul Eggert
07286647fb
--strip strips file system prefix too, and it counts adjacent
...
slashes as if they were one slash.
2003-09-22 18:54:50 +00:00
Sergey Poznyakoff
0289902e4a
(cut_path_elements): Added proto.
2003-09-17 10:17:09 +00:00
Sergey Poznyakoff
91b2d65e9d
Use ngettext where appropriate.
2003-09-05 13:24:15 +00:00
Sergey Poznyakoff
eada0a9b35
New option --strip-path=NUM.
...
(decode_options) Assign boolean values to bool variables.
2003-09-04 15:48:02 +00:00
Sergey Poznyakoff
3590887776
(cut_path_elements): New functon.
2003-09-04 15:47:26 +00:00
Sergey Poznyakoff
ddab1f615e
(extract_archive): Implemented --strip-path
2003-09-04 15:44:44 +00:00