Paul Eggert
dbf96ec903
Spelling fixes.
2005-04-04 18:31:44 +00:00
Paul Eggert
5d87077565
* src/buffer.c: Fix struct zip_magic to avoid problems with pedantic
...
C compilers. Make 'magic' const and redo it to save alignment and space.
2005-04-04 18:22:44 +00:00
Paul Eggert
7d4bd5b38d
(struct zip_magic): Use char arrays, not pointers.
...
The unsigned char * pointer ran afoul of pedantic C compilers, and
we didn't need pointers anyway. Put the size field before the
data to avoid unnecessary padding. All uses changed.
(magic) Make it const, since it doesn't change. All uses changed.
2005-04-04 18:21:55 +00:00
Paul Eggert
ad0bd3c9c4
* src/xheader.c (decode_record): Don't dump core when given
...
a corrupted extended header.
2005-04-02 06:39:37 +00:00
Paul Eggert
95fa3422d7
(decode_record): Don't dump core when given
...
a corrupted extended header. Problem reported by Jim Meyering.
Also, check for other ways that the header might be invalid,
e.g., missing newline at end. Do not allow keys with nulls.
Allow blanks before and after length, as POSIX requires.
Do not allow leading "-" in length. Check for length overflow.
(xheader_decode, xheader_decode_global): Let decode_record
check for exhaustion of record.
(xheader_read): Null-terminate the extended record;
decode_record relies on this.
2005-04-02 06:39:19 +00:00
Paul Eggert
67c7284d07
* bootstrap (TP_URL): Change from
...
<http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/ > to
<http://www.iro.umontreal.ca/translation/maint/tar/ > to avoid
some redirection glitches.
Use "trap - 0" rather than "trap 0" to fix a POSIX-conformance bug.
* doc/.cvsignore: Change "tar.info" to "tar.info*". Sort.
2005-03-21 21:56:02 +00:00
Sergey Poznyakoff
6811232d8f
Updated
2005-03-03 23:17:07 +00:00
Sergey Poznyakoff
fdbb1d8c7c
(restore_fs): Use root_fs
2005-03-03 23:16:03 +00:00
Sergey Poznyakoff
f04c7701fa
Use `head -n 1'. Provide missing argument to ${MT_STATUS}. Fixed typo in MT_OFFLINE assignment. Proposed by Jan Merka.
2005-03-03 23:14:52 +00:00
Sergey Poznyakoff
63e90fdc62
Use `head -n 1'. Provide missing argument to ${MT_STATUS}. Proposed by Jan Merka.
2005-03-03 23:14:23 +00:00
Sergey Poznyakoff
b320151a23
(sparse_scan_file): Bugfix. offset had incorrect type.
2005-03-03 23:13:30 +00:00
Sergey Poznyakoff
9fc348aae9
Correctly parse empty uname/gname
2005-03-03 23:13:14 +00:00
Sergey Poznyakoff
0fd49f51a0
(print_header): Print UID/GID in case of
...
empty user/group name. This could occur when dumping
files belonging to non-existing users and when listing
broken archives.
Reported by Igor Lautar.
2005-03-03 23:13:04 +00:00
Sergey Poznyakoff
002cd6843a
Updated
2005-02-15 15:25:14 +00:00
Sergey Poznyakoff
b4fb3e9f74
Use -print with find
2005-02-15 15:24:51 +00:00
Sergey Poznyakoff
549a691ada
Replace strdup with xstrdup
2005-02-15 15:24:35 +00:00
Sergey Poznyakoff
e7e66c4426
Updated
2005-02-15 14:47:06 +00:00
Sergey Poznyakoff
ea9df3c243
Added reference to bug-tar archive
2005-02-15 14:46:16 +00:00
Sergey Poznyakoff
1d804e4f68
Updated
2005-02-10 22:53:22 +00:00
Sergey Poznyakoff
eaa66dc858
Added append01.at
2005-02-10 22:52:13 +00:00
Sergey Poznyakoff
a66ab8591f
Test appending of files with long names
2005-02-10 22:52:00 +00:00
Sergey Poznyakoff
6e63133691
(read_header): Removed assignment to oldgnu_header.isextended. It was breaking append mode.
2005-02-10 22:51:21 +00:00
Sergey Poznyakoff
b480196651
Added Tim Adye. Fixed UTF.
2005-02-10 22:51:04 +00:00
Sergey Poznyakoff
371af209a7
Updated
2005-02-06 20:02:23 +00:00
Sergey Poznyakoff
5c2e32780e
Various fixes in help and diagnostic messages
2005-02-06 20:01:22 +00:00
Sergey Poznyakoff
4d8ddc720e
Merge list of required modules from paxutils with that from tar proper
2005-02-06 20:00:56 +00:00
Sergey Poznyakoff
5f405b1a2d
List of required gnulib modules.
2005-02-06 20:00:09 +00:00
Sergey Poznyakoff
ef68503367
Updated
2005-02-05 22:25:50 +00:00
Sergey Poznyakoff
64ba4757bc
Reverted changes
2005-02-05 22:08:49 +00:00
Sergey Poznyakoff
cd02b0855c
(options): Improved sorting. Document --backup=off.
...
(decode_options): Clear backup_option if necessary.
2005-02-05 22:03:10 +00:00
Sergey Poznyakoff
35bb355734
(sys_exec_command): Use xclose, xpipe, xfork, xdup2 and exec_fatal.
2005-02-05 22:02:08 +00:00
Sergey Poznyakoff
fa63755f6b
(exec_error,fork_error,dup2_error,pipe_error): Removed unneeded functions.
2005-02-05 22:01:49 +00:00
Sergey Poznyakoff
ea12939af0
(extract_archive): Do not check for EXTRACT_OVER_PIPE, decode_options() does this.
2005-02-05 22:01:08 +00:00
Sergey Poznyakoff
9a71d32d2f
Code clean up.
2005-02-05 22:00:48 +00:00
Sergey Poznyakoff
6609c2a607
(EXTRACT_OVER_PIPE): New macro
2005-02-05 22:00:29 +00:00
Sergey Poznyakoff
c580a1c407
Updated
2005-02-05 10:49:26 +00:00
Sergey Poznyakoff
91ce177fc7
Added Hansjoerg Lipp
2005-02-05 10:35:46 +00:00
Sergey Poznyakoff
4d24adbecb
Handle new options --to-command,--ignore-command-error
2005-02-05 10:35:18 +00:00
Sergey Poznyakoff
0b939d7dbc
(sys_exec_command,sys_wait_command): New functions
2005-02-05 10:34:46 +00:00
Sergey Poznyakoff
75a16f75a9
(exec_error, fork_error, dup_error,pipe_error): New functions
2005-02-05 10:34:25 +00:00
Sergey Poznyakoff
e758088191
(extract_file): Handle to_command_option
...
Fix error recovery: decrease `size' by `written', not
by `count', otherwise tar misses the next header
Do not diagnose write errror if to_command_option
is set, since the command may have exited prematurely.
It would be better to check for sigpipe, though.
(prepare_to_extract): Handle to_command_option
2005-02-05 10:34:01 +00:00
Sergey Poznyakoff
f96dc77bbc
(to_command_option)
...
(ignore_command_error_option): New globals
(sys_exec_command,sys_wait_command): New commands
2005-02-05 10:33:25 +00:00
Sergey Poznyakoff
23cf312ef1
Do not use 8-bit chars in comments
2005-02-05 10:33:05 +00:00
Sergey Poznyakoff
0e4b59b4b2
Get setenv module from gnulib
2005-02-05 10:32:35 +00:00
Paul Eggert
a6f6974f75
Improved checksum diagnostics; adjust to gnulib changes.
2005-02-04 01:52:48 +00:00
Paul Eggert
8f0112cb23
(from_header): New arg OCTAL_ONLY, normally false.
...
All uses changed. Fix typo that sometimes suppressed all "Archive
contains obsolescent base-64 headers" warnings, not just the first
one.
(tar_checksum): Accept only octal checksums, since they aren't
supposed to overflow into weird formats.
2005-02-04 01:52:20 +00:00
Paul Eggert
9c2f942930
Adjust to gnulib changes.
...
* lib/.cvsignore: Add chdir-long.c, chdir-long.h, memrchr.c,
memrchr.h, openat.c, openat.h. Remove pathmax.h (added by
mistake, perhaps?), sysexit.h (my typo), xstrdup.c (gnulib removed
this file). Sort entries.
2005-02-04 01:44:45 +00:00
Sergey Poznyakoff
5422166048
Updated
2005-02-04 01:43:41 +00:00
Sergey Poznyakoff
0ad4063606
(update_argv): Changed type to void
2005-02-04 01:42:58 +00:00
Sergey Poznyakoff
db2d3f2344
Removed unused variables.
2005-02-04 01:42:33 +00:00