| 1 |
2023-07-18 Sergey Poznyakoff <[email protected]> |
| 2 |
|
| 3 |
Version 1.35 |
| 4 |
|
| 5 |
2023-07-17 Sergey Poznyakoff <[email protected]> |
| 6 |
|
| 7 |
Use full-read instead of safe-read |
| 8 |
|
| 9 |
This helps handle archiving on certain filesystems where read() |
| 10 |
returns less bytes than requested when reading from a regular |
| 11 |
file. |
| 12 |
|
| 13 |
References: |
| 14 |
|
| 15 |
https://savannah.gnu.org/bugs/index.php?64426 |
| 16 |
https://lists.gnu.org/archive/html/bug-tar/2021-07/msg00001.html |
| 17 |
|
| 18 |
* gnulib.modules: Add full-read. |
| 19 |
* src/common.h: Include full-read.h |
| 20 |
* src/misc.c: Use full_read. |
| 21 |
* src/sparse.c: Likewise. |
| 22 |
* src/update.c: Likewise. |
| 23 |
|
| 24 |
2023-07-11 Sergey Poznyakoff <[email protected]> |
| 25 |
|
| 26 |
Fix typo in comments |
| 27 |
|
| 28 |
This and the bug fixed by the previous commit were reported by |
| 29 |
Benno Schulenberg. |
| 30 |
|
| 31 |
2023-07-10 Sergey Poznyakoff <[email protected]> |
| 32 |
|
| 33 |
Fix --update --wildcards |
| 34 |
|
| 35 |
* src/common.h (name): New field: is_wildcard. |
| 36 |
(name_scan): Change protoype. |
| 37 |
* src/delete.c: Update calls to name_scan. |
| 38 |
* src/names.c (addname, add_starting_file): Initialize |
| 39 |
is_wildcard. |
| 40 |
(namelist_match): Take two arguments. If second one is true, |
| 41 |
return |
| 42 |
only exact matches. |
| 43 |
(name_scan): Likewise. All callers updated. |
| 44 |
(name_from_list): Skip patterns. |
| 45 |
* src/update.c (remove_exact_name): New function. |
| 46 |
(update_archive): Do not remove matching name, if it is a pattern. |
| 47 |
Instead, add a new entry with the matching file name. |
| 48 |
|
| 49 |
* tests/update04.at: New test. |
| 50 |
* tests/Makefile.am: Add new test. |
| 51 |
* tests/testsuite.at: Include new test. |
| 52 |
|
| 53 |
* NEWS: Update. |
| 54 |
|
| 55 |
2023-07-10 Benno Schulenberg <[email protected]> |
| 56 |
|
| 57 |
Various fixes in the documentation |
| 58 |
|
| 59 |
* doc/tar.1: Add missing dots, use plural when necessary, |
| 60 |
tweak a wording. Remove an incorrect observation, three times. |
| 61 |
Add some missing articles, correct some formatting, |
| 62 |
and expand the opaque descriptions of two options. |
| 63 |
* doc/tar.texi: Drop a stray `cd` command from an example. |
| 64 |
Correct two cross references, correct the paragraph |
| 65 |
about the manpage, and unbreak a URL. |
| 66 |
* src/names.c: Correct and shorten an error message: |
| 67 |
"non-optional" |
| 68 |
means "mandatory", but "non-option" is what was meant. And the |
| 69 |
phrase "in archive create or update mode" was both unneeded and |
| 70 |
incomplete. |
| 71 |
* tests/positional01.at: Change expected error text. |
| 72 |
* tests/positional02.at: Likewise. |
| 73 |
* tests/positional03.at: Likewise. |
| 74 |
|
| 75 |
2023-06-29 Paul Eggert <[email protected]> |
| 76 |
|
| 77 |
build: update gnulib submodule to latest |
| 78 |
|
| 79 |
2023-06-26 Paul Eggert <[email protected]> |
| 80 |
|
| 81 |
tar: extract delayed links in order |
| 82 |
|
| 83 |
Extract delayed links in tar file order, rather than |
| 84 |
in hash table order with modifications. |
| 85 |
This is simpler and more likely to use the kernel’s |
| 86 |
cached filesystem data, assuming related delayed links |
| 87 |
are nearby in the tar file. |
| 88 |
* src/extract.c (struct delayed_link.has_predecessor): |
| 89 |
Remove. All uses removed. |
| 90 |
(delayed_link_head, delayed_link_tail): New static vars. |
| 91 |
This resurrects delayed_link_head’s old function |
| 92 |
except that the linked list is now in forward order, not reverse. |
| 93 |
(find_delayed_link_source): Now simply returns bool, |
| 94 |
since the callers no longer need the pointer. |
| 95 |
(create_placeholder_file): |
| 96 |
Put the delayed link at the end of the linked list. |
| 97 |
Omit no-longer-needed last arg. All callers changed. |
| 98 |
(apply_delayed_links): Simplify now that we can just iterate |
| 99 |
through the delayed_link_head list. |
| 100 |
|
| 101 |
2023-06-26 Paul Eggert <[email protected]> |
| 102 |
|
| 103 |
tar: make safe for -Wunused-parameter |
| 104 |
|
| 105 |
This also ports to C23 [[maybe_unused]]. |
| 106 |
* configure.ac (WARN_CFLAGS): Do not add -Wno-unused-parameter. |
| 107 |
Add MAYBE_UNUSED where needed in source code. |
| 108 |
Also, put it at the front where C23 requires it. |
| 109 |
|
| 110 |
2023-06-26 Paul Eggert <[email protected]> |
| 111 |
|
| 112 |
* po/.gitignore: Omit redundant *~ entries. |
| 113 |
|
| 114 |
2023-06-26 Paul Eggert <[email protected]> |
| 115 |
|
| 116 |
tar: omit unnecessary freeing |
| 117 |
|
| 118 |
* src/tar.c (main): Omit unnecessary freeing. |
| 119 |
|
| 120 |
2023-06-18 Sergey Poznyakoff <[email protected]> |
| 121 |
|
| 122 |
Make sure each delayed link entry is visited once |
| 123 |
|
| 124 |
* src/extract.c (create_placeholder_file): Use FLEXNSIZEOF |
| 125 |
(overlooked |
| 126 |
by c542d3d0c8) |
| 127 |
(apply_delayed_links): Don't follow the "next" chain after |
| 128 |
its entries |
| 129 |
have been applied. |
| 130 |
|
| 131 |
2023-06-17 Paul Eggert <[email protected]> |
| 132 |
|
| 133 |
Omit unnecessary freeing |
| 134 |
|
| 135 |
* src/extract.c (apply_delayed_link): Don’t bother to |
| 136 |
free memory, as we’re about to exit. |
| 137 |
|
| 138 |
2023-06-17 Paul Eggert <[email protected]> |
| 139 |
|
| 140 |
Port to strict C99 struct hack |
| 141 |
|
| 142 |
Portability bug caught by GCC 13 -fstrict-flex-arrays. |
| 143 |
* gnulib.modules: Add flexmember. |
| 144 |
* src/create.c (struct link): |
| 145 |
* src/exclist.c (struct excfile): |
| 146 |
* src/extract.c (struct delayed_link, struct string_list): |
| 147 |
Include <flexmember.h>. Use FLEXIBLE_ARRAY_MEMBER, for |
| 148 |
portability to strict C99 or later. All storage |
| 149 |
allocations changed to use FLEXNSIZEOF. |
| 150 |
|
| 151 |
2023-06-17 Paul Eggert <[email protected]> |
| 152 |
|
| 153 |
Use Gnulib ‘dup2’ module |
| 154 |
|
| 155 |
This simplifies code that would otherwise use dup and close. |
| 156 |
* gnulib.modules: Add dup2. |
| 157 |
* src/system.c: Add #pragma to pacify GCC 13. |
| 158 |
(xdup2): Simplify by using dup2. |
| 159 |
|
| 160 |
2023-06-17 Paul Eggert <[email protected]> |
| 161 |
|
| 162 |
Use Gnulib ‘free-posix’ module |
| 163 |
|
| 164 |
Paxutils uses it so we should too. |
| 165 |
* gnulib.modules: Add ‘free-posix’. |
| 166 |
* src/misc.c (remove_any_file): Assume ‘free’ keeps errno. |
| 167 |
|
| 168 |
2023-06-17 Paul Eggert <[email protected]> |
| 169 |
|
| 170 |
* buffer.c: work around GCC bug 109856 |
| 171 |
|
| 172 |
Recommend Y2038 safety |
| 173 |
|
| 174 |
build: update gnulib and paxutils submodules to latest |
| 175 |
|
| 176 |
* .gitignore: Add slash, as bootstrap does this now. |
| 177 |
|
| 178 |
Sync bootstrap from Gnulib |
| 179 |
|
| 180 |
2023-06-06 Pavel Raiskup <[email protected]> |
| 181 |
|
| 182 |
Comment a bit on the xattr extraction logic |
| 183 |
|
| 184 |
* src/extract.c (extract_file): Document why we pre-create |
| 185 |
with S_IWUSR. |
| 186 |
(set_xattr): Drop the INVERT_PERMISSIONS doc leftover. |
| 187 |
|
| 188 |
2023-06-06 Pavel Raiskup <[email protected]> |
| 189 |
|
| 190 |
Fix --xattr-include='*' documentation |
| 191 |
|
| 192 |
* doc/tar.texi (Extended File Attributes): The default extraction |
| 193 |
pattern consists of just 'user.*' namespace only. While on |
| 194 |
it, try |
| 195 |
to explain the reasons for this default behavior. |
| 196 |
|
| 197 |
2023-05-18 Sergey Poznyakoff <[email protected]> |
| 198 |
|
| 199 |
Honor --numeric-owner when storing ACL entries |
| 200 |
|
| 201 |
Based on patch from Fabian Grünbichler |
| 202 |
<[email protected]> |
| 203 |
|
| 204 |
* src/xattrs.c (acls_get_text): New function. If given |
| 205 |
--numeric-owner, |
| 206 |
use acl_to_any_text to convert ACL to textual representation. |
| 207 |
Print |
| 208 |
warning if that function is not available. |
| 209 |
(xattrs__acls_get_a, xattrs__acls_get_d): Use acls_get_text. |
| 210 |
|
| 211 |
2023-05-18 Sergey Poznyakoff <[email protected]> |
| 212 |
|
| 213 |
Upgrade paxutils to d50ea31268 |
| 214 |
|
| 215 |
This fixes two bugs related to remote archives: |
| 216 |
|
| 217 |
1. Access from unprivileged user accounts. |
| 218 |
2. Malfunctioning seek (L) command. |
| 219 |
|
| 220 |
2023-05-18 Sergey Poznyakoff <[email protected]> |
| 221 |
|
| 222 |
Don't copy DISTFILES during bootstrapping |
| 223 |
|
| 224 |
DISTFILES are necessary only during bootstrapping and should |
| 225 |
not be |
| 226 |
distributed. |
| 227 |
|
| 228 |
This partially reverts commit 9f0e54ab2. |
| 229 |
|
| 230 |
2023-05-01 Benno Schulenberg <[email protected]> |
| 231 |
|
| 232 |
Add missing option to manpage and remove duplicate operation |
| 233 |
|
| 234 |
* doc/tar.1: Add needed option -f after operation -A, sort |
| 235 |
operation -t |
| 236 |
alphabetically, add --file after --concatenate, consistently |
| 237 |
use long |
| 238 |
option --file in the GNU-style section, and delete duplicate |
| 239 |
--update. |
| 240 |
* doc/tar.texi: Add small missing word, and lowercase a letter. |
| 241 |
|
| 242 |
2023-04-18 Sergey Poznyakoff <[email protected]> |
| 243 |
|
| 244 |
Change some wording in doc/intern.texi |
| 245 |
|
| 246 |
2023-04-18 Anton Makrushin <[email protected]> |
| 247 |
|
| 248 |
Exclude VCS directory with writing from an archive |
| 249 |
|
| 250 |
See https://savannah.gnu.org/bugs/?62859 |
| 251 |
|
| 252 |
2023-02-21 Sergey Poznyakoff <[email protected]> |
| 253 |
|
| 254 |
Detect EOF when deleting from archive. |
| 255 |
|
| 256 |
See https://savannah.gnu.org/bugs/?63823 |
| 257 |
|
| 258 |
* src/delete.c (flush_file): Break the loop on EOF. |
| 259 |
* tests/delete06.at: New test. |
| 260 |
* tests/Makefile.am: Add new test. |
| 261 |
* tests/testsuite.at: Likewise. |
| 262 |
|
| 263 |
2023-02-11 Sergey Poznyakoff <[email protected]> |
| 264 |
|
| 265 |
Changes in extended header decoder |
| 266 |
|
| 267 |
* src/xheader.c (decode_time): Fix error detection. |
| 268 |
(raw_path_decoder): Ignore empty paths. |
| 269 |
|
| 270 |
2023-02-11 Sergey Poznyakoff <[email protected]> |
| 271 |
|
| 272 |
Prevent dead loop in extract_file |
| 273 |
|
| 274 |
* src/extract.c (maybe_recoverable): If make_directories indicates |
| 275 |
success, suppose some intermediate directories have been made, |
| 276 |
even |
| 277 |
if in fact they have not. That's necessary to avoid dead |
| 278 |
loops when |
| 279 |
maybe_recoverable is called with the same arguments again. |
| 280 |
|
| 281 |
2023-02-11 Sergey Poznyakoff <[email protected]> |
| 282 |
|
| 283 |
Fix boundary checking in base-256 decoder |
| 284 |
|
| 285 |
* src/list.c (from_header): Base-256 encoding is at least 2 bytes |
| 286 |
long. |
| 287 |
|
| 288 |
2023-01-06 Paul Eggert <[email protected]> |
| 289 |
|
| 290 |
Adjust to Gnulib macro renaming |
| 291 |
|
| 292 |
* src/Makefile.am, tests/Makefile.am (LDADD): |
| 293 |
Gnulib renamed LIB_HAS_ACL to FILE_HAS_ACL_LIB. |
| 294 |
|
| 295 |
2023-01-06 Paul Eggert <[email protected]> |
| 296 |
|
| 297 |
build: update gnulib, paxutils submodules to latest |
| 298 |
|
| 299 |
2023-01-06 Paul Eggert <[email protected]> |
| 300 |
|
| 301 |
Go back to single-file bootstrap |
| 302 |
|
| 303 |
Gnulib now supports a single-file bootstrap with --pull |
| 304 |
and --gen options, in place of the three files |
| 305 |
autopull.sh, autogen.sh, bootstrap-funclib.sh. |
| 306 |
This keeps the top level a bit cleaner. |
| 307 |
* bootstrap: Sync from Gnulib build-aux/bootstrap |
| 308 |
instead of from top/bootstrap. |
| 309 |
* autopull.sh, autogen.sh, bootstrap-funclib.sh: Remove. |
| 310 |
|
| 311 |
2023-01-06 Paul Eggert <[email protected]> |
| 312 |
|
| 313 |
Fix ‘assume’ include |
| 314 |
|
| 315 |
* src/tar.c: Include verify.h, needed for ‘assume’. |
| 316 |
|
| 317 |
2023-01-06 Paul Eggert <[email protected]> |
| 318 |
|
| 319 |
Update copyright years |
| 320 |
|
| 321 |
UPDATE_COPYRIGHT_USE_INTERVALS=1 \ |
| 322 |
gnulib/build-aux/update-copyright \ |
| 323 |
$(git ls-files | sed -e '/^gnulib$/d |
| 324 |
/^paxutils$/d |
| 325 |
/^COPYING$/d |
| 326 |
/\/fdl.texi$/d') |
| 327 |
|
| 328 |
2022-12-29 Sergey Poznyakoff <[email protected]> |
| 329 |
|
| 330 |
Optionally warn about missing zero blocks at the end of the |
| 331 |
archive |
| 332 |
|
| 333 |
(In response to savannah bug #63574) |
| 334 |
|
| 335 |
* doc/intern.texi: Document actual tar behaviour in regard to |
| 336 |
missing end-of-file marker. |
| 337 |
* doc/tar.texi: Rewrite the "warnings" section. Document |
| 338 |
--warning=missing-zero-blocks |
| 339 |
* src/common.h (WARN_MISSING_ZERO_BLOCKS): New constant. |
| 340 |
(WARN_ALL): Include all warning bits. |
| 341 |
* src/list.c (read_and): If EOF is reached without seeing |
| 342 |
end-of-file |
| 343 |
blocks and the "missing-zero-blocks" warning is requested, |
| 344 |
warn about |
| 345 |
the fact. |
| 346 |
* src/warning.c: New warnings: "missing-zero-blocks", "verbose". |
| 347 |
(warning_option): Change definition to reflect changes in common.h |
| 348 |
|
| 349 |
2022-12-27 Sergey Poznyakoff <[email protected]> |
| 350 |
|
| 351 |
Fix example use of find command in documentation |
| 352 |
|
| 353 |
2022-12-26 Sergey Poznyakoff <[email protected]> |
| 354 |
|
| 355 |
Fix savannah bug #63567 |
| 356 |
|
| 357 |
* src/buffer.c (short_read): Increase records_read only if a full |
| 358 |
record has been read. |
| 359 |
|
| 360 |
2022-11-04 Paul Eggert <[email protected]> |
| 361 |
|
| 362 |
Fix -Af F bug when F is not a regular file |
| 363 |
|
| 364 |
Problem reported by Boris Gjenero in: |
| 365 |
https://lists.gnu.org/r/bug-tar/2022-11/msg00001.html |
| 366 |
* src/update.c (append_file): Don’t assume that FILE_NAME is a |
| 367 |
regular file whose size can be determined before reading. |
| 368 |
Instead, simply read from the file until its end is reached. |
| 369 |
|
| 370 |
2022-11-04 Paul Eggert <[email protected]> |
| 371 |
|
| 372 |
Fix README-* files |
| 373 |
|
| 374 |
README-alpha is for alpha releases, which are not from Git or |
| 375 |
CVS, so |
| 376 |
omit mention of that. I'm not sure we'll ever do alpha releases, |
| 377 |
but |
| 378 |
if we do, README-alpha assumes the tarballs are already bit. |
| 379 |
|
| 380 |
Update README-hacking with info that was mistakenly put into |
| 381 |
README-alpha. Also mention Bison, needed for parse-date.y. |
| 382 |
|
| 383 |
2022-10-27 Paul Eggert <[email protected]> |
| 384 |
|
| 385 |
Fix undefined behavior on bad extended header |
| 386 |
|
| 387 |
* src/xheader.c (locate_handler): Avoid undefined behavior |
| 388 |
if strlen(keyword) < kwlen. |
| 389 |
|
| 390 |
2022-10-22 Sergey Poznyakoff <[email protected]> |
| 391 |
|
| 392 |
Fix savannah bug #63123 |
| 393 |
|
| 394 |
The bug was introduced by commit 79d1ac38c1, which didn't |
| 395 |
take into |
| 396 |
account all the consequences of returning RECOVER_OK on EEXIST, in |
| 397 |
particular interactions with the delayed_set_stat logic. |
| 398 |
|
| 399 |
The commit 79d1ac38c1 is reverted (the bug it was intended to fix |
| 400 |
was actually fixed by 79a442d7b0). Instead: |
| 401 |
|
| 402 |
* src/extract.c (maybe_recoverable): Don't call maybe_recoverable |
| 403 |
if EEXIST is reported when UNLINK_FIRST_OLD_FILES option is set. |
| 404 |
|
| 405 |
2022-10-22 Sergey Poznyakoff <[email protected]> |
| 406 |
|
| 407 |
Fix savannah bug #63250 |
| 408 |
|
| 409 |
* src/buffer.c (magic): Add signature of LZMA files produced |
| 410 |
by xz. |
| 411 |
|
| 412 |
2022-10-08 Paul Eggert <[email protected]> |
| 413 |
|
| 414 |
Mention previous bug fix |
| 415 |
|
| 416 |
2022-10-08 Paul Eggert <[email protected]> |
| 417 |
|
| 418 |
tests: check for recently-fixed bug |
| 419 |
|
| 420 |
* tests/exclude17.at: New file. |
| 421 |
* tests/testsuite.at (AT_CHECK_TIMESTAMP): Add it. |
| 422 |
|
| 423 |
2022-10-08 Aurélien Martin <[email protected]> (tiny change) |
| 424 |
|
| 425 |
tar: fix --exclude-vcs-ignores memory |
| 426 |
|
| 427 |
The function frees the patterns' wordsplit structure without |
| 428 |
asking |
| 429 |
add_exclude to reallocate the strings. In many cases, this |
| 430 |
leads to |
| 431 |
each file name in the directory being checked against the memory |
| 432 |
location where it just got reallocated. |
| 433 |
* src/exclist.c: Use EXCLUDE_ALLOC. |
| 434 |
|
| 435 |
2022-09-11 Paul Eggert <[email protected]> |
| 436 |
|
| 437 |
build: update submodules to latest |
| 438 |
|
| 439 |
* src/common.h: Include <inttostr.h> since paxutils no longer |
| 440 |
does. |
| 441 |
(STRINGIFY_BIGINT): New macro, copied from older paxutils. |
| 442 |
(UINTMAX_STRSIZE_BOUND): New constant, also from older paxutils. |
| 443 |
|
| 444 |
2022-09-11 Paul Eggert <[email protected]> |
| 445 |
|
| 446 |
Fix bootstrap.conf when no paxutils |
| 447 |
|
| 448 |
* bootstrap.conf: Don’t assume the paxutils subdirectory already |
| 449 |
exists, when bootstrapping. |
| 450 |
|
| 451 |
2022-09-04 Paul Eggert <[email protected]> |
| 452 |
|
| 453 |
Fix data loss when acting as filter |
| 454 |
|
| 455 |
This bug was introduced by the recent lseek-related changes. |
| 456 |
* src/delete.c (delete_archive_members): |
| 457 |
* src/update.c (update_archive): |
| 458 |
Copy the member if acting as a filter, rather than lseeking over |
| 459 |
it, which is possible if stdin is a regular file. |
| 460 |
* src/list.c (skim_file, skim_member): |
| 461 |
* src/sparse.c (sparse_skim_file): |
| 462 |
New functions, for copying when a filter. |
| 463 |
* src/list.c (skip_file): Remove; replaced with skim_file. |
| 464 |
All callers changed. |
| 465 |
(skip_member): Reimplement in terms of skim_member. |
| 466 |
* src/sparse.c (sparse_skip_file): |
| 467 |
Remove; replaced with sparse_skim_file. All callers changed. |
| 468 |
* src/update.c (acting_as_filter): New static var. |
| 469 |
(update_archive): Set it; this is like delete.c. |
| 470 |
* tests/delete01.at (deleting a member after a big one): |
| 471 |
* tests/delete02.at (deleting a member from stdin archive): |
| 472 |
Also test filter case. |
| 473 |
|
| 474 |
2022-09-03 Paul Eggert <[email protected]> |
| 475 |
|
| 476 |
Fix --delete bug with short reads |
| 477 |
|
| 478 |
* gnulib.modules: Add idx. |
| 479 |
* src/common.h: Include idx.h. |
| 480 |
* src/delete.c (move_archive): Don’t botch short reads. |
| 481 |
|
| 482 |
2022-08-27 Paul Eggert <[email protected]> |
| 483 |
|
| 484 |
Do not diagnose same xattr file twice |
| 485 |
|
| 486 |
* src/extract.c (set_xattr): Simplify, by having it do only |
| 487 |
the mknodat and xattrs_xattrs_set, rather than also |
| 488 |
trying to recover from failure. Caller simplified too. |
| 489 |
* tests/xattr07.at (xattrs: xattrs and --skip-old-files): |
| 490 |
Adjust test to match fixed behavior. |
| 491 |
|
| 492 |
2022-08-27 Paul Eggert <[email protected]> |
| 493 |
|
| 494 |
Fix bug with -x --xattr read-only files |
| 495 |
|
| 496 |
Problem reported by Kevin Raymond in: |
| 497 |
https://bugzilla.redhat.com/show_bug.cgi?id=1886540 |
| 498 |
* src/extract.c (open_output_file): If we already created the |
| 499 |
empty file, do not open with O_EXCL, or with O_CREAT or O_TRUNC |
| 500 |
for that matter. Instead, use only O_NOFOLLOW to avoid some |
| 501 |
races. When estimating current mode, use openflag & O_EXCL rather |
| 502 |
than overwriting_old_files. |
| 503 |
(extract_file): Also invert S_IWUSR if it’s not set. |
| 504 |
* tests/xattr08.at: New test. |
| 505 |
* tests/Makefile.am, tests/testsuite.at: Add it. |
| 506 |
|
| 507 |
2022-08-15 Paul Eggert <[email protected]> |
| 508 |
|
| 509 |
Avoid quadratic behavior with delayed links |
| 510 |
|
| 511 |
Do this by searching a hash table instead of a linked list. |
| 512 |
Problem reported by Martin Dørum in https://mort.coffee/home/tar/ |
| 513 |
via Gavin Smith in: |
| 514 |
https://lists.gnu.org/r/bug-tar/2022-07/msg00003.html |
| 515 |
* src/extract.c: Include hash.h. |
| 516 |
Improve performance a bit on non-birthtime hosts |
| 517 |
(struct delayed_link.has_predecessor): New member. |
| 518 |
(delayed_link_head): Remove, replacing with ... |
| 519 |
(delayed_link_table): ... this new variable. All uses |
| 520 |
of linked list replaced with hash table. |
| 521 |
(dl_hash, dl_compare): New functions for hash table. |
| 522 |
(create_placeholder_file): Initialize has_predecessor. |
| 523 |
(apply_delayed_link): New function, with body taken from |
| 524 |
most of the old apply_delayed_link. |
| 525 |
(apply_delayed_links): Use it. Respect has_predecessor. |
| 526 |
Don’t bother freeing as we are about to exit. |
| 527 |
|
| 528 |
2022-08-15 Paul Eggert <[email protected]> |
| 529 |
|
| 530 |
Improve performance a bit on non-birthtime hosts |
| 531 |
|
| 532 |
* src/extract.c (HAVE_BIRTHTIME, BIRTHTIME_EQ): New macros. |
| 533 |
(struct delayed_link, create_placeholder_file, extract_link) |
| 534 |
(apply_delayed_links): Avoid unnecessary work on platforms |
| 535 |
like GNU/Linux that lack birthtime. |
| 536 |
|
| 537 |
2022-08-15 Paul Eggert <[email protected]> |
| 538 |
|
| 539 |
Avoid excess lseek etc. |
| 540 |
|
| 541 |
* src/buffer.c, src/delete.c: Do not include system-ioctl.h. |
| 542 |
* src/buffer.c (guess_seekable_archive): Remove. This is now done |
| 543 |
by get_archive_status, in a different way. |
| 544 |
(get_archive_status): New function that gets archive_stat |
| 545 |
unless remote, and sets seekable_archive etc. |
| 546 |
(_open_archive): Prefer bool for boolean. |
| 547 |
(_open_archive, new_volume): Get archive status consistently |
| 548 |
by calling get_archive_status in both places. |
| 549 |
* src/buffer.c (backspace_output): |
| 550 |
* src/compare.c (verify_volume): |
| 551 |
* src/delete.c (move_archive): |
| 552 |
Let mtioseek worry about mtio. |
| 553 |
* src/common.h (archive_stat): New global, replacing ar_dev and |
| 554 |
ar_ino. All uses changed. |
| 555 |
* src/delete.c (move_archive): Check for integer overflow. |
| 556 |
Also report overflow if the archive position would go negative. |
| 557 |
* src/system.c: Include system-ioctl.h, for MTIOCTOP etc. |
| 558 |
(mtioseek): New function, which also checks for integer overflow. |
| 559 |
(sys_save_archive_dev_ino): Remove. |
| 560 |
(archive_stat): Now |
| 561 |
(sys_get_archive_stat): Also initialize mtioseekable_archive. |
| 562 |
(sys_file_is_archive): Don’t return true if the archive is |
| 563 |
/dev/null |
| 564 |
since it’s not a problem in that case. |
| 565 |
(sys_detect_dev_null_output): Cache dev_null_stat. |
| 566 |
|
| 567 |
doc: omit MS-DOS mentions in doc |
| 568 |
It’s really FAT32 we’re worried about now, not MS-DOS. |
| 569 |
And doschk is no longer a GNU program. |
| 570 |
|
| 571 |
2022-08-15 Paul Eggert <[email protected]> |
| 572 |
|
| 573 |
Omit MS-DOS mentions in doc |
| 574 |
|
| 575 |
It’s really FAT32 we’re worried about now, not MS-DOS. |
| 576 |
And doschk is no longer a GNU program. |
| 577 |
|
| 578 |
2022-07-25 Paul Eggert <[email protected]> |
| 579 |
|
| 580 |
Work around GCC bug 106436 |
| 581 |
|
| 582 |
* src/tar.c (optloc_eq): Use ‘assume’ to pacify GCC bug. |
| 583 |
|
| 584 |
2022-07-25 Paul Eggert <[email protected]> |
| 585 |
|
| 586 |
Avoid unlikely crash when xasprintf returns 0 |
| 587 |
|
| 588 |
Problem caught by GCC 12. |
| 589 |
* src/tar.c (easprintf): New static function, which never returns |
| 590 |
a null pointer. All uses of xasprintf replaced by uses of this |
| 591 |
function. |
| 592 |
|
| 593 |
2022-07-25 Paul Eggert <[email protected]> |
| 594 |
|
| 595 |
Update .gitignore |
| 596 |
|
| 597 |
* .gitignore: Redo for current sources. |
| 598 |
|
| 599 |
2022-07-25 Paul Eggert <[email protected]> |
| 600 |
|
| 601 |
Fix minor type confusion |
| 602 |
|
| 603 |
* src/tar.c (decode_options): Don’t assign ‘false’ to |
| 604 |
a pointer. |
| 605 |
|
| 606 |
2022-07-25 Paul Eggert <[email protected]> |
| 607 |
|
| 608 |
Work around GCC bug 106428 |
| 609 |
|
| 610 |
* src/names.c (read_next_name): Reword and clarify |
| 611 |
to avoid GCC bug 106428. |
| 612 |
|
| 613 |
2022-07-25 Paul Eggert <[email protected]> |
| 614 |
|
| 615 |
Work around GCC bug 106427 |
| 616 |
|
| 617 |
* lib/wordsplit.c (coalesce_segment): Reword to avoid |
| 618 |
GCC bug 106427. |
| 619 |
|
| 620 |
2022-07-24 Paul Eggert <[email protected]> |
| 621 |
|
| 622 |
Adjust to Gnulib bootstrap revamp |
| 623 |
|
| 624 |
* autogen.sh, autopull.sh, bootstrap-funclib.sh: |
| 625 |
New files, copied from gnulib/top. |
| 626 |
* bootstrap: Copy from gnulib/top/bootstrap (as opposed |
| 627 |
to copying from gnulib/build-aux/bootstrap, as we used to). |
| 628 |
* bootstrap.conf (bootstrap_post_pull_hook) |
| 629 |
(bootstrap_post_import_hook): New functions. |
| 630 |
Move commands into these functions as needed. |
| 631 |
|
| 632 |
2022-07-11 Paul Eggert <[email protected]> |
| 633 |
|
| 634 |
* doc/tar.1: Fix --xattrs-exclude typo. |
| 635 |
|
| 636 |
2022-06-14 Paul Eggert <[email protected]> |
| 637 |
|
| 638 |
Avoid EOVERFLOW problems in some symlink tests |
| 639 |
|
| 640 |
* src/extract.c (is_directory_link): New arg ST. Caller changed. |
| 641 |
(is_directory_link, open_output_file): |
| 642 |
Use readlinkat, not fstatat, to determine whether a string |
| 643 |
names a symlink. This avoids EOVERFLOW issues. |
| 644 |
(extract_dir): Avoid duplicate calls to fstatat when |
| 645 |
keep_directory_symlink_option && fstatat_flags == 0 |
| 646 |
and the file is a symlink to an existing file. |
| 647 |
|
| 648 |
2022-06-14 Paul Eggert <[email protected]> |
| 649 |
|
| 650 |
Fix ‘make dist-xz’ bug |
| 651 |
|
| 652 |
Problem reported by Pavel Raiskup in: |
| 653 |
https://lists.gnu.org/r/bug-tar/2022-06/msg00014.html |
| 654 |
* bootstrap.conf (copy_files): Also copy DISTFILES. |
| 655 |
|
| 656 |
2022-06-14 Paul Eggert <[email protected]> |
| 657 |
|
| 658 |
Fix commentary in new test case |
| 659 |
|
| 660 |
2022-06-13 Paul Eggert <[email protected]> |
| 661 |
|
| 662 |
Fix doc -c typo |
| 663 |
|
| 664 |
https://lists.gnu.org/r/bug-tar/2022-06/msg00006.html |
| 665 |
* doc/tar.texi (Extended File Attributes): Fix typo. |
| 666 |
|
| 667 |
2022-06-13 Paul Eggert <[email protected]> |
| 668 |
|
| 669 |
Update to current Autoconf & Gettext |
| 670 |
|
| 671 |
* acinclude.m4, configure.ac: |
| 672 |
Use AS_HELP_STRING, not AC_HELP_STRING. |
| 673 |
* bootstrap: Sync from Gnulib. |
| 674 |
* configure.ac: Require Autoconf 2.71 and Gettext 0.21. |
| 675 |
Use AC_PROG_CC, not AC_PROG_CC_STDC. |
| 676 |
Prefer AC_COMPILE_IFELSE to AC_TRY_COMPILE. |
| 677 |
Use AC_CONFIG_FILES. |
| 678 |
* gnulib.modules: Use gettext-h, not gettext. |
| 679 |
|
| 680 |
2022-06-13 Paul Eggert <[email protected]> |
| 681 |
|
| 682 |
build: update gnulib and paxutils submodules to latest |
| 683 |
|
| 684 |
2022-06-11 James Abbatiello <[email protected]> (tiny change) |
| 685 |
|
| 686 |
tar: fix race condition |
| 687 |
|
| 688 |
Problem reported in: |
| 689 |
https://lists.gnu.org/r/bug-tar/2022-03/msg00000.html |
| 690 |
* src/extract.c (make_directories): Retry the file creation as |
| 691 |
long as the directory exists, regardless of whether tar itself |
| 692 |
created the directory. |
| 693 |
|
| 694 |
2022-06-11 Paul Eggert <[email protected]> |
| 695 |
|
| 696 |
tar: fix race condition |
| 697 |
|
| 698 |
Problem reported by James Abbatiello in: |
| 699 |
https://lists.gnu.org/r/bug-tar/2022-03/msg00000.html |
| 700 |
* src/extract.c (make_directories): Do not assume that when |
| 701 |
mkdirat fails with errno == EEXIST that there is an existing file |
| 702 |
that can be statted. It could be a dangling symlink. Instead, |
| 703 |
wait until the end and stat it. |
| 704 |
|
| 705 |
2022-06-11 Paul Eggert <[email protected]> |
| 706 |
|
| 707 |
test: new test extrac25.at |
| 708 |
|
| 709 |
* tests/Makefile.am (TESTSUITE_AT): Add extrac25.at. |
| 710 |
* tests/extrac25.at: New file. |
| 711 |
* tests/testsuite.at: Include it. |
| 712 |
|
| 713 |
2022-06-10 Paul Eggert <[email protected]> |
| 714 |
|
| 715 |
Warn “file changed as we read it” less often |
| 716 |
|
| 717 |
* src/create.c (dump_file0): Remove an fstatat call that is |
| 718 |
unnecessary because the file wasn’t read so we can treat |
| 719 |
the first |
| 720 |
fstatat as atomic. Warn “file changed” when the file’s |
| 721 |
size, |
| 722 |
mtime, user ID, group ID, or mode changes, instead of when the |
| 723 |
file’s size or ctime changes. Also, when such a change happens, |
| 724 |
do not change exit status if --ignore-failed-read. Finally, |
| 725 |
don’t |
| 726 |
attempt to change atime back if it didn’t change. |
| 727 |
|
| 728 |
2022-06-10 Paul Eggert <[email protected]> |
| 729 |
|
| 730 |
Modernize NEWS hook to current Emacs |
| 731 |
|
| 732 |
2022-05-04 Paul Eggert <[email protected]> |
| 733 |
|
| 734 |
doc: fix abrupt sentence in HTML |
| 735 |
|
| 736 |
Typo reported by Jackson Dougherty in: |
| 737 |
https://lists.gnu.org/r/bug-tar/2022-05/msg00000.html |
| 738 |
* doc/tar.texi: Don’t assume that tex and info are the only two |
| 739 |
formats. |
| 740 |
|
| 741 |
2022-02-16 Paul Eggert <[email protected]> |
| 742 |
|
| 743 |
tar: revamp "file is the archive" diagnostic |
| 744 |
|
| 745 |
* src/create.c (dump_file0): For clarity, change diagnostic |
| 746 |
wording from "file is the archive; not dumped" to "archive cannot |
| 747 |
contain itself; not dumped". All test cases and documentation |
| 748 |
changed. |
| 749 |
|
| 750 |
2022-01-02 Sergey Poznyakoff <[email protected]> |
| 751 |
|
| 752 |
Update copyright years |
| 753 |
|
| 754 |
2021-12-14 Paul Eggert <[email protected]> |
| 755 |
|
| 756 |
Copy COPYING and fdl.texi from upstream |
| 757 |
|
| 758 |
2021-12-14 Paul Eggert <[email protected]> |
| 759 |
|
| 760 |
Format ` and ' more nicely in doc |
| 761 |
|
| 762 |
Use @documentencoding and set txicodequoteundirected and |
| 763 |
txicodequotebacktick to get nicer-looking quoting in the manual. |
| 764 |
|
| 765 |
2021-12-14 Paul Eggert <[email protected]> |
| 766 |
|
| 767 |
Don’t recommend delete=mtime |
| 768 |
|
| 769 |
That stops working after the year 2242. |
| 770 |
|
| 771 |
2021-12-13 Paul Eggert <[email protected]> |
| 772 |
|
| 773 |
More reproducible tarball doc |
| 774 |
|
| 775 |
* doc/tar.texi (PAX keywords): Improve discussion of how |
| 776 |
to generate reproducible tarballs. |
| 777 |
|
| 778 |
2021-12-13 Sergey Poznyakoff <[email protected]> |
| 779 |
|
| 780 |
Raise version number |
| 781 |
|
| 782 |
2021-12-13 Paul Eggert <[email protected]> |
| 783 |
|
| 784 |
.gitignore maintenance (some automated) |
| 785 |
|
| 786 |
bootstrap: copy from Gnulib |
| 787 |
|
| 788 |
build: update gnulib and paxutils submodules to latest |
| 789 |
|
| 790 |
Add NEWS items for changes since 1.34 |
| 791 |
|
| 792 |
2021-12-13 Paul Eggert <[email protected]> |
| 793 |
|
| 794 |
Omit unnecessary devmajor and devminor setting |
| 795 |
|
| 796 |
* src/create.c (dump_file0): Omit redundant setting of devmajor |
| 797 |
and devminor; start_header already does this. |
| 798 |
|
| 799 |
2021-12-13 Paul Eggert <[email protected]> |
| 800 |
|
| 801 |
Omit devmajor and devminor for non-special files |
| 802 |
|
| 803 |
* src/create.c (start_header): Leave the devmajor and devminor |
| 804 |
fields empty for files that are not character and block special |
| 805 |
devices, even when the archive format is pax, ustar or v7. |
| 806 |
This avoids generating irrelevant differences which helps with |
| 807 |
reproducible builds, and is more compatible with what Solaris 10 |
| 808 |
tar does. |
| 809 |
|
| 810 |
2021-12-13 Paul Eggert <[email protected]> |
| 811 |
|
| 812 |
Use ‘bool’ in create.c |
| 813 |
|
| 814 |
* src/create.c: Prefer ‘bool’, ‘true’, ‘false’ |
| 815 |
for booleans. |
| 816 |
|
| 817 |
2021-10-14 Paul Eggert <[email protected]> |
| 818 |
|
| 819 |
* gnulib.modules: Add year2038. |
| 820 |
|
| 821 |
2021-09-20 Paul Eggert <[email protected]> |
| 822 |
|
| 823 |
build: improve build-from-git for older GCCs |
| 824 |
|
| 825 |
configure.ac: Bump GCC version from 4.6 to 11.2 when deciding |
| 826 |
whether |
| 827 |
to default to enabling GCC warnings when --enable-gcc-warnings |
| 828 |
is not |
| 829 |
specified, as older GCCs can generate too many false alarms. From |
| 830 |
a suggestion by Christian Schoenebeck. |
| 831 |
|
| 832 |
2021-09-19 Paul Eggert <[email protected]> |
| 833 |
|
| 834 |
Simplify wordsplit code a bit |
| 835 |
|
| 836 |
These changes pacify gcc -Wanalyzer-null-dereference on x86-64 gcc |
| 837 |
11.2.1 20210728 (Red Hat 11.2.1-1). |
| 838 |
* lib/wordsplit.c (wsnode_tail): Remove unnecessary test. |
| 839 |
(coalesce_segment): Coalesce calls to wsnode_len. |
| 840 |
|
| 841 |
2021-09-18 Paul Eggert <[email protected]> |
| 842 |
|
| 843 |
build: document WERROR_CFLAGS |
| 844 |
|
| 845 |
* README-hacking: Mention 'make WERROR_CFLAGS='. |
| 846 |
|
| 847 |
2021-09-17 Paul Eggert <[email protected]> |
| 848 |
|
| 849 |
build: update paxutils submodule to latest |
| 850 |
|
| 851 |
2021-09-17 Paul Eggert <[email protected]> |
| 852 |
|
| 853 |
build: update gnulib submodule to latest |
| 854 |
|
| 855 |
* src/common.h (get_directory_entries): |
| 856 |
Add _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE. |
| 857 |
Problem found by gcc -Wsuggest-attribute=malloc and |
| 858 |
current Gnulib. |
| 859 |
|
| 860 |
2021-09-17 Paul Eggert <[email protected]> |
| 861 |
|
| 862 |
Pacify gcc -Warray-parameter |
| 863 |
|
| 864 |
* src/common.h (code_timespec): Declare sbuf arg to be an array, |
| 865 |
to be consistent with definition. |
| 866 |
|
| 867 |
2021-09-17 Paul Eggert <[email protected]> |
| 868 |
|
| 869 |
Fix null rereference if low-memory |
| 870 |
|
| 871 |
* src/incremen.c (read_incr_db_01): Use xstrdup not strdup. |
| 872 |
Problem found by gcc -Wanalyzer-possible-null-argument. |
| 873 |
|
| 874 |
2021-09-02 Sergey Poznyakoff <[email protected]> |
| 875 |
|
| 876 |
Provide functions for manipulating arrays of extended attributes |
| 877 |
|
| 878 |
* src/common.h (xheader_xattr_free,xheader_xattr_copy): Remove |
| 879 |
protos. |
| 880 |
(xattr_map_init,xattr_map_copy) |
| 881 |
(xattr_map_add,xattr_map_free): New protos. |
| 882 |
* src/tar.h (xattr_map): New struct. |
| 883 |
(tar_stat_info): Replace xattr_map_size and xattr_map with one |
| 884 |
field: xattr_map. |
| 885 |
* src/xattrs.c (XATTRS_PREFIX,XATTRS_PREFIX_LEN): New defines. |
| 886 |
(xheader_xattr_init,xattr_map_init) |
| 887 |
(xattr_map_free,xattr_map_add) |
| 888 |
(xheader_xattr_add,xattr_map_copy): New functions. |
| 889 |
All uses changed. |
| 890 |
* src/create.c (start_header): Update to use struct xattr_map. |
| 891 |
* src/extract.c: Update to use struct xattr_map. |
| 892 |
* src/tar.c: Likewise. |
| 893 |
* src/xheader.c (xheader_xattr_init,xheader_xattr_free) |
| 894 |
(xheader_xattr_add,xheader_xattr_copy): Remove. |
| 895 |
(xattr_coder,xattr_decoder): Use xattr_map_ functions. |
| 896 |
|
| 897 |
2021-08-28 Sergey Poznyakoff <[email protected]> |
| 898 |
|
| 899 |
Fix handling of extended header prefixes |
| 900 |
|
| 901 |
* src/xheader.c (locate_handler): Recognize prefix keywords only |
| 902 |
when followed by a dot. |
| 903 |
(xattr_decoder): Use xmalloc/xstrdup instead of alloc |
| 904 |
|
| 905 |
2021-08-28 Sergey Poznyakoff <[email protected]> |
| 906 |
|
| 907 |
Handle invalid sparse entries in pax header |
| 908 |
|
| 909 |
* src/sparse.c (pax_decode_header): Check if sp.offset+sp.numbytes |
| 910 |
falls within the reported file size. Check for possible integer |
| 911 |
overflow. |
| 912 |
|
| 913 |
2021-08-28 Sergey Poznyakoff <[email protected]> |
| 914 |
|
| 915 |
transform: fix replacement of particular pattern instance |
| 916 |
|
| 917 |
This fixes handling of expressions like 's/s/@/2' |
| 918 |
|
| 919 |
Fix suggested by Anthony Heading. |
| 920 |
|
| 921 |
* src/transform.c (_single_transform_name_to_obstack): Avoid |
| 922 |
duplicating |
| 923 |
initial prefix if replace is not needed. |
| 924 |
|
| 925 |
2021-07-01 Samanta Navarro <[email protected]> |
| 926 |
|
| 927 |
Fix crash on invalid command line argument |
| 928 |
|
| 929 |
The copy_string_unquote function does not handle arguments |
| 930 |
which only |
| 931 |
consist of a single quote. A string is only quoted if two quoting |
| 932 |
characters exist. |
| 933 |
|
| 934 |
How to reproduce: |
| 935 |
|
| 936 |
tar --checkpoint-action exec=\" |
| 937 |
|
| 938 |
2021-07-01 Sergey Poznyakoff <[email protected]> |
| 939 |
|
| 940 |
Fix the use of options with trailing slash in files-from list |
| 941 |
|
| 942 |
* src/names.c (read_name_from_file): Do not remove trailing slash |
| 943 |
here, since name_buffer might contain an option (e.g. -C /). |
| 944 |
(read_next_name): Remove trailing slash when we're sure we're |
| 945 |
dealing |
| 946 |
with a file name. |
| 947 |
See 163e96a0. |
| 948 |
|
| 949 |
2021-06-01 Sergey Poznyakoff <[email protected]> |
| 950 |
|
| 951 |
Minor fix |
| 952 |
|
| 953 |
* scripts/backup-specs: Set standard paths for rsh (patch#9275). |
| 954 |
|
| 955 |
2021-06-01 Samanta Navarro <[email protected]> |
| 956 |
|
| 957 |
Fix typos |
| 958 |
|
| 959 |
Typos found with codespell |
| 960 |
|
| 961 |
2021-06-01 Samanta Navarro <[email protected]> |
| 962 |
|
| 963 |
Minor changes. |
| 964 |
|
| 965 |
* src/xheader.c (decode_record): Fix format specification. |
| 966 |
(xattr_encode_keyword): Allocate space for terminating \0. |
| 967 |
|
| 968 |
2021-03-24 Sergey Poznyakoff <[email protected]> |
| 969 |
|
| 970 |
Fix gendocs_template |
| 971 |
|
| 972 |
2021-03-08 Paul Eggert <[email protected]> |
| 973 |
|
| 974 |
Tune for single-threaded tar |
| 975 |
|
| 976 |
This takes advantage of recent optimizations in Gnulib |
| 977 |
for single-threaded programs. |
| 978 |
* configure.ac (GNULIB_EXCLUDE_SINGLE_THREAD) |
| 979 |
(GNULIB_MBRTOWC_SINGLE_THREAD, GNULIB_REGEX_SINGLE_THREAD) |
| 980 |
(GNULIB_WCHAR_SINGLE_LOCALE): Define. |
| 981 |
|
| 982 |
2021-03-08 Paul Eggert <[email protected]> |
| 983 |
|
| 984 |
Port linking to AIX 7.1 |
| 985 |
|
| 986 |
* src/Makefile.am (LDADD): Remove, folding into tar_LDADD. |
| 987 |
* src/Makefile.am (tar_LDADD), tests/Makefile.am (LDADD): |
| 988 |
Add the libraries gnulib-tool currently recommends: LIB_ACL, |
| 989 |
LIB_CLOCK_GETTIME, LIB_GETRANDOM, LIB_HARD_LOCALE, LIB_HAS_ACL, |
| 990 |
LIB_MBRTOWC, LIB_SETLOCALE_NULL. Otherwise, tar won’t link |
| 991 |
on AIX |
| 992 |
7.1 with xlc because the -lpthread option is missing. |
| 993 |
|
| 994 |
2021-03-08 Paul Eggert <[email protected]> |
| 995 |
|
| 996 |
Port xattr-at.h to AIX 7.1 |
| 997 |
|
| 998 |
* lib/xattr-at.h: Include <errno.h> before testing whether |
| 999 |
ENOATTR is defined. |
| 1000 |
|
| 1001 |
2021-03-08 Paul Eggert <[email protected]> |
| 1002 |
|
| 1003 |
build: update gnulib submodule to latest |
| 1004 |
|
| 1005 |
2021-03-01 Sergey Poznyakoff <[email protected]> |
| 1006 |
|
| 1007 |
Fix building the online version of the manual. |
| 1008 |
|
| 1009 |
* doc/Makefile.am (GENDOCS): Use the version from the tar |
| 1010 |
repository. |
| 1011 |
(manual): Set the DISTRIN rendition. |
| 1012 |
(manual-rebuild): New goal. |
| 1013 |
* doc/README.manual: New file. Instructions for maintainers on |
| 1014 |
how to |
| 1015 |
update web documentation. |
| 1016 |
* doc/gendocs.sh: A version from gnulib fixed as per |
| 1017 |
https://lists.gnu.org/archive/html/bug-gnulib/2021-03/msg00002.html. |
| 1018 |
* doc/gendocs_template: Updated version from gnulib. |
| 1019 |
* doc/intern.texi: Fix the use of UNREVISED. |
| 1020 |
* doc/tar.texi: Fix the use of GNUTAR. |
| 1021 |
|
| 1022 |
2021-03-01 Paul Eggert <[email protected]> |
| 1023 |
|
| 1024 |
Fix unlikely uninitalized var bug with sparse file |
| 1025 |
|
| 1026 |
* src/sparse.c (sparse_extract_file): Set *SIZE to |
| 1027 |
stat.st_size so that the caller does not use *SIZE |
| 1028 |
when uninitalized. Problem found with GCC 10 and |
| 1029 |
--enable-gcc-warnings CFLAGS='-O2 -flto -fanalyzer'. |
| 1030 |
|
| 1031 |
2021-03-01 Paul Eggert <[email protected]> |
| 1032 |
|
| 1033 |
Pacify --enable-gcc-warnings -flto -fanalyzer |
| 1034 |
|
| 1035 |
With GCC 10.2.1, ‘./configure --enable-gcc-warnings CFLAGS='-O2 |
| 1036 |
-flto -fanalyzer' issued a false alarm about uninitialized |
| 1037 |
variable use. Pacify GCC by using a variant of the code. |
| 1038 |
* src/buffer.c (zip_program): Omit last placeholder entry. |
| 1039 |
(n_zip_programs): New constant. |
| 1040 |
(find_zip_program): Use it instead of placeholder. |
| 1041 |
(first_decompress_program): Set *PSTATE to maximum value |
| 1042 |
if skipping the table. This avoids confusing gcc -flto |
| 1043 |
into thinking *PSTATE is used uninitialized. |
| 1044 |
(next_decompress_program): Simplify now that *PSTATE is maximal |
| 1045 |
when skipping. |
| 1046 |
|
| 1047 |
2021-03-01 Paul Eggert <[email protected]> |
| 1048 |
|
| 1049 |
Pacify clang for unreachable ‘return’ |
| 1050 |
|
| 1051 |
* src/sparse.c (sparse_scan_file_seek): Omit unreachable |
| 1052 |
statement. |
| 1053 |
|
| 1054 |
2021-03-01 Paul Eggert <[email protected]> |
| 1055 |
|
| 1056 |
Pacify clang char conversion |
| 1057 |
|
| 1058 |
* src/create.c (to_chars): Pacify ‘clang’ about assigning |
| 1059 |
128 to ‘char’. |
| 1060 |
|
| 1061 |
2021-03-01 Paul Eggert <[email protected]> |
| 1062 |
|
| 1063 |
Omit most uses of ‘inline’ |
| 1064 |
|
| 1065 |
With today’s compilers ‘inline’ is typically not needed for |
| 1066 |
performance (at least the way GNU Tar uses it) and it gets in the |
| 1067 |
way of portability. |
| 1068 |
* configure.ac: Omit AC_C_INLINE; no longer needed here. |
| 1069 |
* lib/attr-xattr.in.h (setxattr, lsetxattr, fsetxattr, getxattr) |
| 1070 |
(lgetxattr, fgetxattr, listxattr, llistxattr, flistxattr): |
| 1071 |
* lib/wordsplit.c (skip_delim_internal, skip_delim) |
| 1072 |
(skip_delim_real, exptab_matches): |
| 1073 |
* src/delete.c (flush_file): |
| 1074 |
* src/extract.c (safe_dir_mode): |
| 1075 |
* src/misc.c (ptr_align): |
| 1076 |
Now just static, not static inline. |
| 1077 |
* lib/wordsplit.h (wordsplit_getwords): Remove; no longer used. |
| 1078 |
* src/common.h (name_more_files): Now COMMON_INLINE, not |
| 1079 |
extern inline - which is not portable according to C99, |
| 1080 |
the way we were using it. |
| 1081 |
|
| 1082 |
2021-03-01 Paul Eggert <[email protected]> |
| 1083 |
|
| 1084 |
maint: port better to non-GCC compilers |
| 1085 |
|
| 1086 |
This can be helpful in porting to compilers like Oracle Developer |
| 1087 |
Studio that support some but not all GCC attributes. |
| 1088 |
* lib/wordsplit.c (FALLTHROUGH): Remove; now done by attribute.h. |
| 1089 |
* lib/wordsplit.h (__WORDSPLIT_ATTRIBUTE_FORMAT): Remove; |
| 1090 |
all uses replaced by ATTRIBUTE_FORMAT. |
| 1091 |
* lib/wordsplit.h, src/buffer.c, src/common.h, src/compare.c: |
| 1092 |
* src/sparse.c, src/system.c, src/xheader.c: |
| 1093 |
Prefer ATTRIBUTE_FORMAT, MAYBE_UNUSED, _Noreturn, etc. to |
| 1094 |
__attribute__. |
| 1095 |
|
| 1096 |
2021-03-01 Paul Eggert <[email protected]> |
| 1097 |
|
| 1098 |
Update paxutils from upstream |
| 1099 |
|
| 1100 |
2021-02-28 Paul Eggert <[email protected]> |
| 1101 |
|
| 1102 |
maint: 1.34 announcement update |
| 1103 |
|
| 1104 |
Hand-install 1.34 changes into master. |
| 1105 |
Evidently these changes were not pushed to savannah, |
| 1106 |
before I installed further changes today. |
| 1107 |
|
| 1108 |
2021-02-28 Paul Eggert <[email protected]> |
| 1109 |
|
| 1110 |
maint: port to Fedora 33 |
| 1111 |
|
| 1112 |
Fedora 33 uses GCC 10.2.1, which is a bit pickier. |
| 1113 |
* configure.ac: Do not use -Wsystem-headers, as this |
| 1114 |
runs afoul of netdb.h on Fedora 33. |
| 1115 |
* gnulib.modules: Add ‘attribute’. |
| 1116 |
* lib/wordsplit.c (wsnode_new): Return the newly allocated |
| 1117 |
pointer instead of a boolean, to pacify GCC 10.2.1 which otherwise |
| 1118 |
complains about use of possibly-null pointers. All uses changed. |
| 1119 |
* src/buffer.c (try_new_volume): Don’t assume find_next_block |
| 1120 |
succeeds. |
| 1121 |
(_write_volume_label): Pacify GCC 10.2.1 with an ‘assume’, |
| 1122 |
since |
| 1123 |
LABEL must be nonnull here. |
| 1124 |
* src/common.h (FALLTHROUGH): Remove; now in attribute.h. |
| 1125 |
Include attribute.h, for ATTRIBUTE_NONNULL. |
| 1126 |
* src/misc.c (assign_string_or_null): New function, |
| 1127 |
taking over the old role of assign_string. |
| 1128 |
(assign_string): Assume VALUE is non-null. |
| 1129 |
(assign_null): New function, taking over the old |
| 1130 |
role of assign_string when its VALUE was nonnull. |
| 1131 |
All callers of assign_string changed to use these functions. |
| 1132 |
(assign_string_n): Clear *STRING if VALUE is null, |
| 1133 |
to fix a potential double-free. |
| 1134 |
|
| 1135 |
2021-02-28 Paul Eggert <[email protected]> |
| 1136 |
|
| 1137 |
Update gnulib and paxutils from upstream |
| 1138 |
|
| 1139 |
2021-02-08 Pavel Raiskup <[email protected]> |
| 1140 |
|
| 1141 |
xattrs: fix capabilities root test |
| 1142 |
|
| 1143 |
Related discussion in the Fedora pull-request: |
| 1144 |
https://src.fedoraproject.org/rpms/tar/pull-request/8 |
| 1145 |
|
| 1146 |
* tests/capabs_raw01.at: Newer systems (currently e.g. Fedora 34) |
| 1147 |
print getcap output in format CAP=VAL, not CAP+VAL. |
| 1148 |
|
| 1149 |
2021-02-08 Sergey Poznyakoff <[email protected]> |
| 1150 |
|
| 1151 |
Gracefully handle duplicate symlinks when extracting |
| 1152 |
|
| 1153 |
If the archive being extracted contains multiple copies |
| 1154 |
of the same symlink, extract only the first of them and |
| 1155 |
skip the rest. The use case is described in |
| 1156 |
|
| 1157 |
https://lists.gnu.org/archive/html/bug-tar/2021-01/msg00026.html |
| 1158 |
|
| 1159 |
The bug was introduced by 2d3396c3ea. |
| 1160 |
|
| 1161 |
* src/extract.c (create_placeholder_file): If placeholder already |
| 1162 |
exists and is registered in the delayed_link list, return |
| 1163 |
immediately. |
| 1164 |
|
| 1165 |
2021-02-04 Sergey Poznyakoff <[email protected]> |
| 1166 |
|
| 1167 |
Fix savannah bug #60002 |
| 1168 |
|
| 1169 |
Bug was introduced by commit 34d15af1. |
| 1170 |
|
| 1171 |
* src/extract.c (prepare_to_extract): When extracting over pipe, |
| 1172 |
process only regular files. |
| 1173 |
* tests/extrac24.at: New test case. |
| 1174 |
* tests/Makefile.am: Add new test case. |
| 1175 |
* tests/testsuite.at: Likewise. |
| 1176 |
|
| 1177 |
2021-01-17 Sergey Poznyakoff <[email protected]> |
| 1178 |
|
| 1179 |
Fix memory leak in read_header |
| 1180 |
|
| 1181 |
Bug reported in https://savannah.gnu.org/bugs/?59897 |
| 1182 |
|
| 1183 |
* src/list.c (read_header): Don't return directly from the loop. |
| 1184 |
Instead set the status and break. Return the status. Free |
| 1185 |
next_long_name and next_long_link before returning. |
| 1186 |
|
| 1187 |
2021-01-17 Sergey Poznyakoff <[email protected]> |
| 1188 |
|
| 1189 |
Fix improper argument reference. |
| 1190 |
|
| 1191 |
(bug introduced by 1ff0b63f) |
| 1192 |
|
| 1193 |
* src/tar.c (parse_default_options): Pass args as is to the |
| 1194 |
argp_parse. |
| 1195 |
|
| 1196 |
2021-01-16 Sergey Poznyakoff <[email protected]> |
| 1197 |
|
| 1198 |
Fix regression itroduced by 66162927. |
| 1199 |
|
| 1200 |
* src/misc.c (chdir_arg): Initialize the abspath field to NULL. |
| 1201 |
(tar_getcdpath): Actually initialize the abspath field here. |
| 1202 |
|
| 1203 |
2021-01-14 Sergey Poznyakoff <[email protected]> |
| 1204 |
|
| 1205 |
Fixes in the delete_archive_members function |
| 1206 |
|
| 1207 |
* src/delete.c (delete_archive_members): Clean-up the code. Avoid |
| 1208 |
entering the loop from the middle. Free the memory allocated for |
| 1209 |
current_stat_info. |
| 1210 |
|
| 1211 |
2021-01-08 Sergey Poznyakoff <[email protected]> |
| 1212 |
|
| 1213 |
Use stdopen from gnulib |
| 1214 |
|
| 1215 |
* gnulib.modules: Request stdopen |
| 1216 |
* lib/Makefile.am: Remove stdopen.c and stdopen.h |
| 1217 |
* lib/stdopen.c: Remove. |
| 1218 |
* lib/stdopen.h: Remove. |
| 1219 |
* src/tar.c: stdopen returns 0 on success. |
| 1220 |
|
| 1221 |
2021-01-08 Sergey Poznyakoff <[email protected]> |
| 1222 |
|
| 1223 |
Actually prefer /dev/full over /dev/null as a replacement |
| 1224 |
for stdin |
| 1225 |
|
| 1226 |
* lib/stdopen.c (stdopen): Fix improper condition. |
| 1227 |
Avoid leaking extra file descriptor. |
| 1228 |
* src/tar.c (main): Set name of the stdout for diagnostics. |
| 1229 |
Bail out if stdopen fails. |
| 1230 |
|
| 1231 |
2021-01-07 Sergey Poznyakoff <[email protected]> |
| 1232 |
|
| 1233 |
Version 1.33 |
| 1234 |
|
| 1235 |
* NEWS: Update. |
| 1236 |
* configure.ac: Raise version number. Require automake 1.15 and |
| 1237 |
autoconf 2.64. |
| 1238 |
* gnulib: pull v0.1-4333-g30820c2 |
| 1239 |
* src/names.c: Use hash_remove instead of the deprecated |
| 1240 |
hash_delete. |
| 1241 |
|
| 1242 |
2021-01-06 Sergey Poznyakoff <[email protected]> |
| 1243 |
|
| 1244 |
Update copyright years |
| 1245 |
|
| 1246 |
2020-07-13 Sergey Poznyakoff <[email protected]> |
| 1247 |
|
| 1248 |
Fix typo in the manpage |
| 1249 |
|
| 1250 |
* doc/tar.1: Fix description of the --newer option |
| 1251 |
|
| 1252 |
2020-07-10 Pavel Raiskup <[email protected]> |
| 1253 |
|
| 1254 |
Bugfix --sparse --diff mode |
| 1255 |
|
| 1256 |
Originally reported in: |
| 1257 |
https://bugzilla.redhat.com/show_bug.cgi?id=1853469 |
| 1258 |
|
| 1259 |
* src/sparse.c (check_data_region): Only compare the part |
| 1260 |
of buffer |
| 1261 |
really fed by safe_read(), not whole rdsize. |
| 1262 |
|
| 1263 |
2020-06-24 Sergey Poznyakoff <[email protected]> |
| 1264 |
|
| 1265 |
Accept only position-sensitive (file-selection) options in file |
| 1266 |
list files. |
| 1267 |
|
| 1268 |
Using such options as -f, -z, etc. is senseless in the file |
| 1269 |
list file |
| 1270 |
and bypasses the option consistency checks in decode_options. |
| 1271 |
Therefore, |
| 1272 |
only options related to file selection (a.k.a position-sensitive |
| 1273 |
options) |
| 1274 |
are allowed in files. |
| 1275 |
|
| 1276 |
* doc/tar.texi: Document changes. |
| 1277 |
* src/common.h (tar_args): Move from tar.c |
| 1278 |
(TAR_ARGS_INITIALIZER): New macro. |
| 1279 |
* src/names.c: Declare option group identifiers as an enum. |
| 1280 |
(names_parse_opt): Special handling for ARGP_KEY_ERROR. |
| 1281 |
(names_argp): Remove static qualifier. |
| 1282 |
(names_argp_children): Remove. |
| 1283 |
* src/tar.c: Declare option group identifiers as an enum. |
| 1284 |
(parse_opt): Special handling for ARGP_KEY_INIT. |
| 1285 |
(argp_children): New static variable. |
| 1286 |
(args): Remove static variable. |
| 1287 |
(more_options): Allow only options from names_argp. |
| 1288 |
(parse_default_options): Take a pointer to struct tar_args |
| 1289 |
as argument. |
| 1290 |
Replace the loc member during the call to argp_parse and |
| 1291 |
restore it |
| 1292 |
afterwards. |
| 1293 |
(decode_options): Use automatic variable for args. |
| 1294 |
|
| 1295 |
2020-06-22 Sergey Poznyakoff <[email protected]> |
| 1296 |
|
| 1297 |
Fix the logic of prepare_to_extract. |
| 1298 |
|
| 1299 |
* src/extract.c (prepare_to_extract): Return true to proceed with |
| 1300 |
the extraction, and false to skip the current member. |
| 1301 |
If extracting |
| 1302 |
over a pipe, skip unlinking logic. |
| 1303 |
(extract_archive): Update accordingly. |
| 1304 |
|
| 1305 |
2020-06-15 Sergey Poznyakoff <[email protected]> |
| 1306 |
|
| 1307 |
Make sure link counting works for file names supplied with -T |
| 1308 |
|
| 1309 |
* src/common.h (name_count): Remove extern. |
| 1310 |
(files_count): New enum. |
| 1311 |
(filename_args): New extern. |
| 1312 |
* src/names.c (name_count): Remove. |
| 1313 |
(files_count): New variable. |
| 1314 |
(name_add_name,name_add_file): Update filename_args. |
| 1315 |
* src/create.c (create_archive): Set trivial_link_count |
| 1316 |
depending on |
| 1317 |
the filename_args. |
| 1318 |
|
| 1319 |
2020-06-10 Alfred M. Szmidt <[email protected]> |
| 1320 |
|
| 1321 |
Remove freemanuals.texi |
| 1322 |
|
| 1323 |
* doc/Makefile.am (tar_TEXINFOS): Remove freemanuals.texi. |
| 1324 |
* doc/freemanuals.texi: Delete file. |
| 1325 |
* doc/tar.texi (Free Software Needs Free Documentation): Remove |
| 1326 |
appendix. |
| 1327 |
|
| 1328 |
2020-06-03 Sergey Poznyakoff <[email protected]> |
| 1329 |
|
| 1330 |
Fix typo in docs |
| 1331 |
|
| 1332 |
2020-06-03 Sergey Poznyakoff <[email protected]> |
| 1333 |
|
| 1334 |
Bugfix |
| 1335 |
|
| 1336 |
* src/sparse.c (sparse_diff_file): Fix return value. |
| 1337 |
|
| 1338 |
2020-05-19 Paul Eggert <[email protected]> |
| 1339 |
|
| 1340 |
tar: avoid read overrun |
| 1341 |
|
| 1342 |
Problem reported by Timotej Kapus in: |
| 1343 |
https://lists.gnu.org/r/bug-tar/2020-05/msg00001.html |
| 1344 |
* src/transform.c (parse_transform_expr): |
| 1345 |
Diagnose ‘--transform='s'’ instead of continuing past '\0'. |
| 1346 |
|
| 1347 |
2020-02-15 Sergey Poznyakoff <[email protected]> |
| 1348 |
|
| 1349 |
Fix handling of linked rename chains in incremental backups |
| 1350 |
|
| 1351 |
* src/incremen.c: Change the meaning of the DIRF_RENAMED flag. |
| 1352 |
Now it |
| 1353 |
marks a directory which is the last one in a chain of renames. |
| 1354 |
Regular renamed directories are recognized by their orig member |
| 1355 |
being |
| 1356 |
non-NULL. Directories marked with DIRF_RENAMED start encoding |
| 1357 |
of renames. |
| 1358 |
(procdir): Clear DIRF_RENAMED flag on directories which are |
| 1359 |
origins for |
| 1360 |
renames. |
| 1361 |
(makedumpdir): Use the orig member to check if the directory is a |
| 1362 |
result of a rename. |
| 1363 |
(store_rename): Move the check for DIR_IS_RENAMED to the |
| 1364 |
caller. Don't |
| 1365 |
clear the DIRF_RENAMED, it is not needed any more. |
| 1366 |
|
| 1367 |
* tests/rename06.at: New test. |
| 1368 |
* tests/Makefile.am: Add rename06.at |
| 1369 |
* tests/testsuite.at: Likewise. |
| 1370 |
|
| 1371 |
2020-02-08 Sergey Poznyakoff <[email protected]> |
| 1372 |
|
| 1373 |
Update copyright years |
| 1374 |
|
| 1375 |
2020-02-08 Sergey Poznyakoff <[email protected]> |
| 1376 |
|
| 1377 |
Fix the --no-overwrite-dir option |
| 1378 |
|
| 1379 |
Given this option, tar failed to preserve permissions of empty |
| 1380 |
directories |
| 1381 |
and to create files under directories owned by the current user |
| 1382 |
that did |
| 1383 |
not have the S_IWUSR bit set. |
| 1384 |
|
| 1385 |
* src/extract.c (fd_chmod): Rename to fd_i_chmod. |
| 1386 |
(fd_chmod): New function. |
| 1387 |
(safe_dir_mode): New function. |
| 1388 |
(extract_dir): Special handling for existing directories in |
| 1389 |
--no-overwrite-dir mode. |
| 1390 |
* tests/extrac23.at: New file. |
| 1391 |
* tests/Makefile.am: Add new test case. |
| 1392 |
* tests/testsuite.at: Likewise. |
| 1393 |
|
| 1394 |
2019-12-03 Sergey Poznyakoff <[email protected]> |
| 1395 |
|
| 1396 |
Wildcards in exclude-vcs-ignore mode should not match slash |
| 1397 |
|
| 1398 |
* src/exclist.c (info_attach_exclist): Use the FNM_FILE_NAME flag. |
| 1399 |
|
| 1400 |
2019-11-27 Sergey Poznyakoff <[email protected]> |
| 1401 |
|
| 1402 |
Version 1.32.90 |
| 1403 |
|
| 1404 |
2019-11-25 Sergey Poznyakoff <[email protected]> |
| 1405 |
|
| 1406 |
Testsuite fixes |
| 1407 |
|
| 1408 |
* tests/sparse06.at: Skip the test if genfile is unable to create |
| 1409 |
sparse files. |
| 1410 |
* tests/sptrcreat.at: Likewise. |
| 1411 |
* tests/sptrdiff00.at: Likewise. |
| 1412 |
* tests/sptrdiff01.at: Likewise. |
| 1413 |
|
| 1414 |
2019-11-14 Sergey Poznyakoff <[email protected]> |
| 1415 |
|
| 1416 |
Another testsuite fix. |
| 1417 |
|
| 1418 |
* tests/extrac11.at: Skip test if ulimit fails. |
| 1419 |
|
| 1420 |
2019-11-13 Sergey Poznyakoff <[email protected]> |
| 1421 |
|
| 1422 |
Testsuite fix. |
| 1423 |
|
| 1424 |
* tests/remfiles10.at: Don't expect EINVAL when trying to remove |
| 1425 |
CWD. |
| 1426 |
|
| 1427 |
2019-08-25 Sergey Poznyakoff <[email protected]> |
| 1428 |
|
| 1429 |
Consistently use x2realloc for buffer reallocation |
| 1430 |
|
| 1431 |
* src/create.c (create_archive): Use x2realloc |
| 1432 |
* src/names.c (copy_name) |
| 1433 |
(add_hierarchy_to_namelist): Use x2realloc |
| 1434 |
|
| 1435 |
2019-08-18 Sergey Poznyakoff <[email protected]> |
| 1436 |
|
| 1437 |
Fix extraction of symbolic links hardlinked to another symbolic |
| 1438 |
links |
| 1439 |
|
| 1440 |
* src/extract.c (create_placeholder_file): Take additional |
| 1441 |
argument: |
| 1442 |
the delayed_link entry after which to the newly created one. |
| 1443 |
(extract_link): Create a placeholder file if the target link name |
| 1444 |
exists in the delayed_link list. |
| 1445 |
|
| 1446 |
2019-04-11 Sergey Poznyakoff <[email protected]> |
| 1447 |
|
| 1448 |
Fix --delay-directory-restore on archives with reversed member |
| 1449 |
ordering. |
| 1450 |
|
| 1451 |
* src/extract.c (find_direct_ancestor): Remove useless test. |
| 1452 |
(delay_set_stat): If the file name being added is already in |
| 1453 |
the list, update stored data instead of creating a new entry. |
| 1454 |
This works for archives with reversed order of members. |
| 1455 |
* tests/extrac22.at: New testcase. |
| 1456 |
* tests/Makefile.am: Add new testcase. |
| 1457 |
* tests/testsuite.at: Include new testcase. |
| 1458 |
|
| 1459 |
2019-03-28 Sergey Poznyakoff <[email protected]> |
| 1460 |
|
| 1461 |
Minor change * scripts/backup.in: Fix typo |
| 1462 |
|
| 1463 |
Typesetting fixes in the manpage |
| 1464 |
|
| 1465 |
2019-03-28 Zachary Vance <[email protected]> |
| 1466 |
|
| 1467 |
POSIX extended format headers do not include PID by default |
| 1468 |
|
| 1469 |
The intent is to make binary-equivalent PAX archives easy |
| 1470 |
to create. If |
| 1471 |
POSIXLY_CORRECT is set, the POSIX standard default is used, |
| 1472 |
which embeds |
| 1473 |
the pid. |
| 1474 |
|
| 1475 |
* src/common.h (posixly_correct): New global. |
| 1476 |
* src/tar.c (decode_options): Detect the POSIXLY_CORRECT |
| 1477 |
environment |
| 1478 |
variable. |
| 1479 |
* src/buffer.c (add_chunk_header): Change filenames of multipart |
| 1480 |
files to |
| 1481 |
omit the pid. |
| 1482 |
* src/xheader.c (HEADER_TEMPLATE): New macro. |
| 1483 |
(xheader_xhdr_name, xheader_ghdr_name): Use HEADER_TEMPLATE |
| 1484 |
to select |
| 1485 |
the template for the POSIX extended header name. |
| 1486 |
* doc/tar.texi: Document the change. |
| 1487 |
|
| 1488 |
2019-03-03 Sergey Poznyakoff <[email protected]> |
| 1489 |
|
| 1490 |
Check return value from xgetcwd |
| 1491 |
|
| 1492 |
* src/misc.c (chdir_arg,tar_getcdpath): Check for non-NULL |
| 1493 |
return from xgetcwd. The function returns NULL for any |
| 1494 |
error originating from getcwd. |
| 1495 |
|
| 1496 |
2019-02-23 Sergey Poznyakoff <[email protected]> |
| 1497 |
|
| 1498 |
Version 1.32 |
| 1499 |
|
| 1500 |
2019-02-04 Sergey Poznyakoff <[email protected]> |
| 1501 |
|
| 1502 |
Minor fixes in docs. |
| 1503 |
|
| 1504 |
* doc/tar.1: Remove description of the --preserve option |
| 1505 |
Document verbosity levels. |
| 1506 |
* doc/tar.texi: Fix description of the -o option. |
| 1507 |
|
| 1508 |
2019-01-15 Daniel Le <[email protected]> |
| 1509 |
|
| 1510 |
Fix typos in the documentation |
| 1511 |
|
| 1512 |
Short option "t" was mistranslated to "--test" instead of "--list" |
| 1513 |
in commit |
| 1514 |
67cad0792b4e6cf22c6cb1b167b149cd176d49f9. |
| 1515 |
|
| 1516 |
2019-01-15 Sergey Poznyakoff <[email protected]> |
| 1517 |
|
| 1518 |
Fix build on AIX |
| 1519 |
|
| 1520 |
* src/unlink.c (flush_deferred_unlinks): Avoid possible duplicate |
| 1521 |
case |
| 1522 |
(if ENOTEMPTY==EEXIST) |
| 1523 |
|
| 1524 |
2019-01-15 Sergey Poznyakoff <[email protected]> |
| 1525 |
|
| 1526 |
Version 1.31.90 |
| 1527 |
|
| 1528 |
2019-01-14 Sergey Poznyakoff <[email protected]> |
| 1529 |
|
| 1530 |
Ensure gnu format when running checkpoint tests |
| 1531 |
|
| 1532 |
2019-01-14 Sergey Poznyakoff <[email protected]> |
| 1533 |
|
| 1534 |
Fix compression tests |
| 1535 |
|
| 1536 |
Existing compression tests used tar with compiled-in |
| 1537 |
defaults. However, |
| 1538 |
some of the defaults are sure to create archives that are not |
| 1539 |
byte-to-byte |
| 1540 |
reproducible (e.g. DEFAULT_ARCHIVE_FORMAT=POSIX, because the |
| 1541 |
name field |
| 1542 |
in posix extended headers uses PID of the creating process |
| 1543 |
by default). |
| 1544 |
Moreover, some compressors (e.g. gzip) store current timestamp in |
| 1545 |
the file header when compressing from stdin, so that using cmp |
| 1546 |
on the |
| 1547 |
two created archives as the tests did is error-prone. Another |
| 1548 |
problem |
| 1549 |
is that the tests implicitly assumed that tar uses archive |
| 1550 |
suffix to |
| 1551 |
recognize its format when extracting, which isn't the |
| 1552 |
case. Finally, |
| 1553 |
there's hardly any reason in using sed to create m4 sources, when |
| 1554 |
everything can be achieved by m4 itself. |
| 1555 |
|
| 1556 |
* tests/Makefile.am: Remove generation of compress-*.at files. |
| 1557 |
* tests/compress.at.in: Remove. |
| 1558 |
* tests/compress.m4: New file. |
| 1559 |
* tests/testsuite.at: Include compress.m4, use TAR_CHECK_COMPRESS |
| 1560 |
to |
| 1561 |
check compression options. |
| 1562 |
|
| 1563 |
2019-01-14 Sergey Poznyakoff <[email protected]> |
| 1564 |
|
| 1565 |
Fix possible NULL dereference (savannah bug #55369) |
| 1566 |
|
| 1567 |
* src/sparse.c (pax_decode_header): Check return from |
| 1568 |
find_next_block. |
| 1569 |
|
| 1570 |
2019-01-14 Sergey Poznyakoff <[email protected]> |
| 1571 |
|
| 1572 |
Fix compilation without iconv. |
| 1573 |
|
| 1574 |
2019-01-14 Sergey Poznyakoff <[email protected]> |
| 1575 |
|
| 1576 |
Fix iconv usage. |
| 1577 |
|
| 1578 |
Patch by Christian Weisgerber. |
| 1579 |
|
| 1580 |
* src/utf8.c (utf8_convert): non-zero return from iconv means |
| 1581 |
failure. |
| 1582 |
|
| 1583 |
2019-01-14 Pavel Raiskup <[email protected]> |
| 1584 |
|
| 1585 |
tests: fix numeric.at for BSD |
| 1586 |
|
| 1587 |
While creating file, BSD kernels inherit the group ownership from |
| 1588 |
parent directory. |
| 1589 |
http://lists.gnu.org/archive/html/bug-tar/2016-06/msg00000.html |
| 1590 |
|
| 1591 |
* tests/numeric.at: Attempt to 'chown' the newly created directory |
| 1592 |
to proper group (at least on affected machines that command is |
| 1593 |
expected to succeed). |
| 1594 |
|
| 1595 |
2019-01-14 Sergey Poznyakoff <[email protected]> |
| 1596 |
|
| 1597 |
Fix typo in manpage. |
| 1598 |
|
| 1599 |
2019-01-14 Sergey Poznyakoff <[email protected]> |
| 1600 |
|
| 1601 |
Fix expected output in dirrem tests. |
| 1602 |
|
| 1603 |
In both tests, the "file changed as we read it" warning might be |
| 1604 |
produced for dir/sub, depending on the ctime resolution and |
| 1605 |
timing. |
| 1606 |
The problem was fixed by 64b43fdf70d82c39eb2ca900cd4f8e49, |
| 1607 |
but regressed |
| 1608 |
after e7cd377f7801d42aa8e07addff93d2150666c237, which removed |
| 1609 |
1 second |
| 1610 |
delays between each pair of checkpoints. Since the presense |
| 1611 |
or absense |
| 1612 |
of this warning is irrelevant for the test, it is now suppressed. |
| 1613 |
|
| 1614 |
* tests/dirrem01.at: Suppress the file-changed warning. |
| 1615 |
* tests/dirrem02.at: Likewise. |
| 1616 |
|
| 1617 |
2019-01-12 Sergey Poznyakoff <[email protected]> |
| 1618 |
|
| 1619 |
Fix the use of --checkpoint without explicit --checkpoint-action |
| 1620 |
|
| 1621 |
* src/checkpoint.c (checkpoint_finish_compile): Set default |
| 1622 |
action, |
| 1623 |
if necessary. |
| 1624 |
* tests/checkpoint/defaults.at: New testcase. |
| 1625 |
* tests/checkpoint/dot-compat.at: New testcase. |
| 1626 |
* tests/checkpoint/dot-int.at: New testcase. |
| 1627 |
* tests/checkpoint/dot.at: New testcase. |
| 1628 |
* tests/checkpoint/interval.at: New testcase. |
| 1629 |
* tests/Makefile.am: Add new testcases. |
| 1630 |
* tests/testsuite.at Include new testcases. |
| 1631 |
|
| 1632 |
2019-01-10 Sergey Poznyakoff <[email protected]> |
| 1633 |
|
| 1634 |
Remove erroneous abort() call |
| 1635 |
|
| 1636 |
The call was introduced by commit ccef8581. It caused tar to abort |
| 1637 |
on perfectly normal operations, like untarring archives containing |
| 1638 |
./ with the -U option, |
| 1639 |
|
| 1640 |
See |
| 1641 |
http://lists.gnu.org/archive/html/bug-tar/2019-01/msg00019.html |
| 1642 |
for details. |
| 1643 |
|
| 1644 |
* src/extract.c (maybe_recoverable): Remove misplaced call |
| 1645 |
to abort(). |
| 1646 |
|
| 1647 |
2019-01-02 Sergey Poznyakoff <[email protected]> |
| 1648 |
|
| 1649 |
Version 1.31 |
| 1650 |
|
| 1651 |
2018-12-28 Sergey Poznyakoff <[email protected]> |
| 1652 |
|
| 1653 |
Fix the difflink test |
| 1654 |
|
| 1655 |
Hardlinking a symlink produces hardlink on BSD and symlink |
| 1656 |
on GNU/Linux. Avoid the ambiguity. |
| 1657 |
|
| 1658 |
* tests/difflink.at: Create hard link from a regular file. |
| 1659 |
|
| 1660 |
2018-12-28 Sergey Poznyakoff <[email protected]> |
| 1661 |
|
| 1662 |
Work over a bug in gnulib error() |
| 1663 |
|
| 1664 |
The error() function from glibc correctly prefixes each message it |
| 1665 |
prints with program_name as set by set_program_name. However, its |
| 1666 |
replacement from gnulib, which is linked in on systems where this |
| 1667 |
function is not available, prints the name returned by |
| 1668 |
getprogname() |
| 1669 |
instead. Due to this messages output by tar subprocess (which |
| 1670 |
sets its |
| 1671 |
program name to 'tar (child)') become indiscernible from those |
| 1672 |
printed |
| 1673 |
by the main process. In particular, this breaks the remfiles01.at |
| 1674 |
and |
| 1675 |
remfiles02.at test cases. |
| 1676 |
|
| 1677 |
* configure.ac: Define ENABLE_ERROR_PRINT_PROGNAME if using |
| 1678 |
gnulib error(). |
| 1679 |
* src/tar.c [ENABLE_ERROR_PRINT_PROGNAME] (tar_print_progname): |
| 1680 |
New function. |
| 1681 |
(main) [ENABLE_ERROR_PRINT_PROGNAME]: Set error_print_progname. |
| 1682 |
|
| 1683 |
2018-12-28 Sergey Poznyakoff <[email protected]> |
| 1684 |
|
| 1685 |
Implement the "wait" checkpoint action. |
| 1686 |
|
| 1687 |
This action instructs tar to pause until given signal is |
| 1688 |
delivered. |
| 1689 |
The newer genfile tool uses this action for communication between |
| 1690 |
genfile and tar in exec mode. This eliminates race conitions and |
| 1691 |
speeds up the tests based on exec mode. |
| 1692 |
|
| 1693 |
* doc/tar.texi: Document changes. |
| 1694 |
* paxutils: Upgrade. |
| 1695 |
* src/checkpoint.c: Implement the wait action. |
| 1696 |
* src/common.h (decode_signal): New proto. |
| 1697 |
* src/tar.c (decode_signal): New function. |
| 1698 |
(set_stat_signal): Rewrite. |
| 1699 |
* tests/dirrem01.at: Adjust genfile and tar command line arguments |
| 1700 |
to use the new feature. |
| 1701 |
* tests/dirrem02.at: Likewise. |
| 1702 |
* tests/filerem01.at: Likewise. |
| 1703 |
* tests/filerem02.at: Likewise. |
| 1704 |
* tests/grow.at: Likewise. |
| 1705 |
* tests/sptrcreat.at: Likewise. |
| 1706 |
* tests/sptrdiff00.at: Likewise. |
| 1707 |
* tests/sptrdiff01.at: Likewise. |
| 1708 |
* tests/truncate.at: Likewise. |
| 1709 |
|
| 1710 |
2018-12-27 Sergey Poznyakoff <[email protected]> |
| 1711 |
|
| 1712 |
Fix CVE-2018-20482 |
| 1713 |
|
| 1714 |
* NEWS: Update. |
| 1715 |
* src/sparse.c (sparse_dump_region): Handle short read condition. |
| 1716 |
(sparse_extract_region,check_data_region): Fix dumped_size |
| 1717 |
calculation. |
| 1718 |
Handle short read condition. |
| 1719 |
(pax_decode_header): Fix dumped_size calculation. |
| 1720 |
* tests/Makefile.am: Add new testcases. |
| 1721 |
* tests/testsuite.at: Likewise. |
| 1722 |
|
| 1723 |
* tests/sptrcreat.at: New file. |
| 1724 |
* tests/sptrdiff00.at: New file. |
| 1725 |
* tests/sptrdiff01.at: New file. |
| 1726 |
|
| 1727 |
2018-12-21 Sergey Poznyakoff <[email protected]> |
| 1728 |
|
| 1729 |
Disallow modifications to the global pax extended header in |
| 1730 |
update mode. |
| 1731 |
|
| 1732 |
Updating global headers in update mode is not possible, because: |
| 1733 |
|
| 1734 |
1) If the original archive was not in PAX format, writing the |
| 1735 |
global header would overwrite first member header (and eventually |
| 1736 |
data blocks) in the archive. |
| 1737 |
2) Otherwise, using the --pax-option can make the updated header |
| 1738 |
occupy more blocks than the original one, which would lead to the |
| 1739 |
same effect as in 1. |
| 1740 |
|
| 1741 |
This also fixes |
| 1742 |
http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00007.html |
| 1743 |
|
| 1744 |
* src/xheader.c (xheader_forbid_global): New function. |
| 1745 |
* src/common.h (xheader_forbid_global): New prototype. |
| 1746 |
* src/update.c (update_archive): Use xheader_forbid_global, |
| 1747 |
instead |
| 1748 |
of trying to write global extended header record. |
| 1749 |
|
| 1750 |
2018-12-21 Sergey Poznyakoff <[email protected]> |
| 1751 |
|
| 1752 |
Bugfix |
| 1753 |
|
| 1754 |
Bug reported in |
| 1755 |
http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00014.html |
| 1756 |
|
| 1757 |
* src/names.c (collect_and_sort_names): Fix iteration over |
| 1758 |
namelist. |
| 1759 |
|
| 1760 |
2018-12-21 Sergey Poznyakoff <[email protected]> |
| 1761 |
|
| 1762 |
Fix semantics of -K used together with explicit member names. |
| 1763 |
|
| 1764 |
This also fixes the bug reported in |
| 1765 |
http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00012.html |
| 1766 |
|
| 1767 |
* src/common.h (starting_file_option): Describe the variable. |
| 1768 |
* src/names.c (add_starting_file): New function. |
| 1769 |
(name_match): Ignore everything before the member indicated by the |
| 1770 |
--starting-file option |
| 1771 |
* src/tar.c: Use add_starting_file to handle the -K option. |
| 1772 |
|
| 1773 |
2018-12-21 Sergey Poznyakoff <[email protected]> |
| 1774 |
|
| 1775 |
Fix error handling when reading incremental snapshots |
| 1776 |
|
| 1777 |
Bug reported in |
| 1778 |
http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00008.html |
| 1779 |
|
| 1780 |
* incremen.c (read_incr_db_01): Don't try to continue after |
| 1781 |
errors. |
| 1782 |
|
| 1783 |
2018-12-21 Sergey Poznyakoff <[email protected]> |
| 1784 |
|
| 1785 |
Reject pax options starting with equals sign |
| 1786 |
|
| 1787 |
Bug reported in |
| 1788 |
http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00010.html |
| 1789 |
|
| 1790 |
* xheader.c (xheader_set_keyword_equal): Bail out if the keyword |
| 1791 |
starts |
| 1792 |
with = |
| 1793 |
|
| 1794 |
2018-12-21 Sergey Poznyakoff <[email protected]> |
| 1795 |
|
| 1796 |
Fix buffer overflow |
| 1797 |
|
| 1798 |
Bug reported in |
| 1799 |
http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00011.html |
| 1800 |
|
| 1801 |
* src/xheader.c (xheader_format_name): fix length calculation |
| 1802 |
|
| 1803 |
2018-12-21 Sergey Poznyakoff <[email protected]> |
| 1804 |
|
| 1805 |
Fix improper memory access |
| 1806 |
|
| 1807 |
Bug reported in |
| 1808 |
http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00009.html |
| 1809 |
|
| 1810 |
* src/transform.c (parse_transform_expr): Check if re is not empty |
| 1811 |
before accessing its last byte. |
| 1812 |
|
| 1813 |
2018-11-24 Sergey Poznyakoff <[email protected]> |
| 1814 |
|
| 1815 |
Fix parsing of ACLs |
| 1816 |
|
| 1817 |
Text returned by acl_to_text can contain comments (introduced |
| 1818 |
by #). |
| 1819 |
Strip comments and horizontal tabs prior to storing ACLs in PAX |
| 1820 |
headers. |
| 1821 |
|
| 1822 |
* src/xattrs.c (xattrs_acls_cleanup): New function. |
| 1823 |
(xattrs__acls_get_a,xattrs__acls_get_d): Use xattrs_acls_cleanup. |
| 1824 |
|
| 1825 |
2018-11-24 Sergey Poznyakoff <[email protected]> |
| 1826 |
|
| 1827 |
Don't try to read past the end of header string fields |
| 1828 |
|
| 1829 |
* src/common.h (assign_string_n): New proto. |
| 1830 |
(ASSIGN_STRING_N): New macro. |
| 1831 |
* src/misc.c (assign_string_n): New function. |
| 1832 |
* gnulib.modules: Add strnlen. |
| 1833 |
* src/buffer.c: Use assign_string_n where appropriate. |
| 1834 |
* src/list.c: Likewise. |
| 1835 |
|
| 1836 |
2018-11-12 Sergey Poznyakoff <[email protected]> |
| 1837 |
|
| 1838 |
Fix verbose ACL listing |
| 1839 |
|
| 1840 |
* src/xattrs.c (acls_one_line): Advance pos. |
| 1841 |
(xattrs_print): Insert a comma between ACL and default ACL if both |
| 1842 |
are non-empty. |
| 1843 |
|
| 1844 |
2018-10-29 Paul Eggert <[email protected]> |
| 1845 |
|
| 1846 |
tar: fix numbered backup bug |
| 1847 |
|
| 1848 |
* src/misc.c (maybe_backup_file): Pass chdir_fd, not AT_FDCWD, |
| 1849 |
to find_backup_file_name. This fixes a bug whereby the wrong |
| 1850 |
backup file name was chosen for numbered backups. |
| 1851 |
|
| 1852 |
2018-10-29 Paul Eggert <[email protected]> |
| 1853 |
|
| 1854 |
* src/tar.c (expand_pax_option): Pacify recent GCC. |
| 1855 |
|
| 1856 |
2018-10-29 Paul Eggert <[email protected]> |
| 1857 |
|
| 1858 |
build: update gnulib submodule to latest |
| 1859 |
|
| 1860 |
* src/misc.c (maybe_backup_file): Adjust to Gnulib change. |
| 1861 |
|
| 1862 |
2018-08-02 Sergey Poznyakoff <[email protected]> |
| 1863 |
|
| 1864 |
Minor fixes in wordsplit.c |
| 1865 |
|
| 1866 |
2018-08-02 Paul Eggert <[email protected]> |
| 1867 |
|
| 1868 |
build: update gnulib submodule to latest |
| 1869 |
|
| 1870 |
2018-07-31 Sergey Poznyakoff <[email protected]> |
| 1871 |
|
| 1872 |
Silence gcc warnings in wordsplit |
| 1873 |
|
| 1874 |
2018-07-31 Sergey Poznyakoff <[email protected]> |
| 1875 |
|
| 1876 |
Fix double-free introduced by 577dc345 |
| 1877 |
|
| 1878 |
* src/utf8.c (utf8_convert): Don't store freed value in *output |
| 1879 |
|
| 1880 |
2018-07-31 Pavel Raiskup <[email protected]> |
| 1881 |
|
| 1882 |
Report race on systems without O_DIRECTORY |
| 1883 |
|
| 1884 |
* src/names.c (collect_and_sort_names): Report ENOTDIR after |
| 1885 |
successful fstat() but !S_ISDIR. |
| 1886 |
|
| 1887 |
2018-07-31 Pavel Raiskup <[email protected]> |
| 1888 |
|
| 1889 |
Avoid some resource leaks |
| 1890 |
|
| 1891 |
* src/incremen.c (store_rename): Free temp_name, leaked before for |
| 1892 |
each renamed directory with --listed-incremental. |
| 1893 |
* src/transform.c (add_literal_segment): Tighten arguments by |
| 1894 |
const. |
| 1895 |
(parse_transform_expr): Free 'str', leaked storage for each |
| 1896 |
--transform option before. |
| 1897 |
* src/utf8.c (utf8_convert): Deallocate buffer for failed iconv() |
| 1898 |
call so callers don't have to. |
| 1899 |
|
| 1900 |
2018-07-31 Sergey Poznyakoff <[email protected]> |
| 1901 |
|
| 1902 |
Sync wordsplit and paxutils with the most recent versions |
| 1903 |
|
| 1904 |
2018-06-14 Paul Eggert <[email protected]> |
| 1905 |
|
| 1906 |
* doc/tar.1: Fix font typo noted by esr. |
| 1907 |
|
| 1908 |
2018-05-16 Paul Eggert <[email protected]> |
| 1909 |
|
| 1910 |
* doc/tar.1: Don't refer to nonexistent tar(5). |
| 1911 |
|
| 1912 |
2018-04-13 Jim Meyering <[email protected]> |
| 1913 |
|
| 1914 |
--one-top-level: avoid a heap-buffer-overflow |
| 1915 |
|
| 1916 |
* NEWS: Mention this. |
| 1917 |
* src/suffix.c (strip_compression_suffix): Fix string comparison |
| 1918 |
guard. |
| 1919 |
Without this change, some ASAN-enabled test runs would fail |
| 1920 |
with the |
| 1921 |
following. Also, strip an additional .tar suffix only if |
| 1922 |
the just- |
| 1923 |
stripped suffix did not match /^\.t/". |
| 1924 |
|
| 1925 |
==30815==ERROR: AddressSanitizer: heap-buffer-overflow on |
| 1926 |
address 0x6020000002ed at pc 0x00000049d1f4 bp 0x7ffeb5906d50 |
| 1927 |
sp 0x7ffeb5906500 |
| 1928 |
READ of size 1 at 0x6020000002ed thread T0 |
| 1929 |
SCARINESS: 12 (1-byte-read-heap-buffer-overflow) |
| 1930 |
#0 0x49d1f3 in __interceptor_strncmp |
| 1931 |
/j/gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:407 |
| 1932 |
#1 0x5670f3 in strip_compression_suffix |
| 1933 |
/j/tar/src/suffix.c:107 |
| 1934 |
#2 0x575788 in decode_options /j/tar/src/tar.c:2545 |
| 1935 |
#3 0x5760c0 in main /j/tar/src/tar.c:2708 |
| 1936 |
#4 0x7f105090df29 in __libc_start_main ../csu/libc-start.c:308 |
| 1937 |
#5 0x408629 in _start (/j/tar/src/tar+0x408629) |
| 1938 |
|
| 1939 |
0x6020000002ed is located 3 bytes to the left of 6-byte region |
| 1940 |
[0x6020000002f0,0x6020000002f6) |
| 1941 |
allocated by thread T0 here: |
| 1942 |
#0 0x4d0710 in __interceptor_malloc |
| 1943 |
/j/gcc/libsanitizer/asan/asan_malloc_linux.cc:86 |
| 1944 |
#1 0x4908ad in __interceptor_strndup |
| 1945 |
/j/gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:326 |
| 1946 |
#2 0x5cbcbd in xstrndup /j/tar/gnu/xstrndup.c:32 |
| 1947 |
#3 0x5a325b in base_name /j/tar/gnu/basename.c:57 |
| 1948 |
#4 0x575772 in decode_options /j/tar/src/tar.c:2544 |
| 1949 |
#5 0x5760c0 in main /j/tar/src/tar.c:2708 |
| 1950 |
#6 0x7f105090df29 in __libc_start_main ../csu/libc-start.c:308 |
| 1951 |
|
| 1952 |
2018-04-07 Andrew Hounsell <[email protected]> |
| 1953 |
|
| 1954 |
Tiny fix |
| 1955 |
|
| 1956 |
* doc/snapshot.texi: Fix a typo |
| 1957 |
* scripts/tar-snapshot-edit: Fix a typo |
| 1958 |
|
| 1959 |
2018-04-07 Jim Meyering <[email protected]> |
| 1960 |
|
| 1961 |
tests: avoid test failure with non-ancient autoconf |
| 1962 |
|
| 1963 |
Running "make check" would fail with this: |
| 1964 |
T-nonl.at:30: error: m4_divert_push: cannot change diversion |
| 1965 |
to `GROW' inside m4_expand |
| 1966 |
* tests/T-nonl.at: Use printf in place of AS_ECHO_N. |
| 1967 |
These days, printf should work for everyone. |
| 1968 |
|
| 1969 |
2018-04-07 Jim Meyering <[email protected]> |
| 1970 |
|
| 1971 |
maint: avoid -Wstringop-truncation warnings from upcoming GCC8 |
| 1972 |
|
| 1973 |
* src/create.c (start_private_header, start_header): Convert |
| 1974 |
trivial uses of strncpy to memcpy, to avoid warnings like this: |
| 1975 |
In function 'strncpy', |
| 1976 |
inlined from 'start_private_header' at create.c:522:3: |
| 1977 |
/usr/include/bits/string_fortified.h:106:10: warning: \ |
| 1978 |
'__builtin_strncpy' output truncated before terminating nul \ |
| 1979 |
copying 2 bytes from a string of the same length \ |
| 1980 |
[-Wstringop-truncation] |
| 1981 |
|
| 1982 |
2018-04-07 Jim Meyering <[email protected]> |
| 1983 |
|
| 1984 |
maint: avoid -Wstringop-truncation warnings upcoming GCC8 |
| 1985 |
|
| 1986 |
* src/buffer.c (gnu_add_multi_volume_header): Convert a use of |
| 1987 |
strncpy to memcpy, to avoid this warning: |
| 1988 |
In function 'strncpy', |
| 1989 |
inlined from 'gnu_add_multi_volume_header' at buffer.c:1782:3, |
| 1990 |
... |
| 1991 |
/usr/include/bits/string_fortified.h:106:10: error: |
| 1992 |
'__builtin_strncpy'\ |
| 1993 |
specified bound 100 equals destination size \ |
| 1994 |
[-Werror=stringop-truncation] |
| 1995 |
|
| 1996 |
2018-04-07 Jim Meyering <[email protected]> |
| 1997 |
|
| 1998 |
maint: avoid warnings from upcoming GCC8 |
| 1999 |
|
| 2000 |
* src/transform.c (_single_transform_name_to_obstack): Mark with |
| 2001 |
FALLTHROUGH statement rather than /* FALL THROUGH */ comment. |
| 2002 |
Only the former works with gcc-8. |
| 2003 |
* src/extract.c (maybe_recoverable): Call abort to tell gcc-8 that |
| 2004 |
this code is unreachable. |
| 2005 |
|
| 2006 |
2018-04-07 Sergey Poznyakoff <[email protected]> |
| 2007 |
|
| 2008 |
Rewrite struct tm formatting |
| 2009 |
|
| 2010 |
* src/list.c (tartime): Use strftime instead of manually |
| 2011 |
formatting |
| 2012 |
fields of the struct tm. This should also suppress some gcc |
| 2013 |
warnings. |
| 2014 |
|
| 2015 |
2018-04-07 Jim Meyering <[email protected]> |
| 2016 |
|
| 2017 |
tests: add coverage for new --zstd and all other compression tools |
| 2018 |
|
| 2019 |
* tests/compress.at.in: New file: template from which each |
| 2020 |
per-compression-tool test is derived. |
| 2021 |
* tests/Makefile.am (TESTSUITE_AT): Add it. |
| 2022 |
(EXTRA_DIST): Add compress.at.in. |
| 2023 |
(compress-*.at): New rules to generate a file/tests for each |
| 2024 |
compression tool. |
| 2025 |
* tests/testsuite.at (Compression): Add each of these generated |
| 2026 |
files in a new section. |
| 2027 |
* tests/.gitignore: Ignore the new generated files. |
| 2028 |
|
| 2029 |
2018-03-18 Aaron Schrab <[email protected]> |
| 2030 |
|
| 2031 |
Fix typo |
| 2032 |
|
| 2033 |
2018-03-18 Sergey Poznyakoff <[email protected]> |
| 2034 |
|
| 2035 |
Version 1.30.90 |
| 2036 |
|
| 2037 |
* NEWS: Update. |
| 2038 |
* configure.ac: Update. |
| 2039 |
* THANKS: Add Adam Borowski. |
| 2040 |
|
| 2041 |
2018-03-18 Adam Borowski <[email protected]> |
| 2042 |
|
| 2043 |
Add support for zstd compression |
| 2044 |
|
| 2045 |
* configure.ac (zstd): Register compression program. |
| 2046 |
* doc/tar.1: Mention --zstd. |
| 2047 |
* doc/tar.texi: Document zstd support. |
| 2048 |
* src/buffer.c: Register zstd compression. |
| 2049 |
* src/suffix.c: Add suffixes zst and tzst. |
| 2050 |
* src/tar.c: New compression option --zstd. |
| 2051 |
|
| 2052 |
2018-03-18 Pavel Raiskup <[email protected]> |
| 2053 |
|
| 2054 |
tests: fix race in dirrem01 and dirrem02 |
| 2055 |
|
| 2056 |
Previously the '--checkpoint-action=echo' was triggered after |
| 2057 |
'--checkpoint-action=sleep=1' - so the order of events *usually* |
| 2058 |
was (for --format='gnu'): |
| 2059 |
|
| 2060 |
... |
| 2061 |
1. checkpoint handler before write of 'dir/sub' member |
| 2062 |
2. one-second delay |
| 2063 |
3. stderr write: 'tar: Write checkpoint 3' |
| 2064 |
4. write the member 'dir/sub' into the archive |
| 2065 |
5. check that the member's ctime has not been changed |
| 2066 |
6. genfile's detecting 'Write checkpoint', doing unlink |
| 2067 |
... |
| 2068 |
|
| 2069 |
But sometimes, the genfile was fast enough to win the race and |
| 2070 |
unlinked the directory before the member was written into the |
| 2071 |
archive (IOW, the order was 1-2-3-6-4-5). This led to the |
| 2072 |
occasional warning 'tar: dir/sub: file changed as we read it'. |
| 2073 |
|
| 2074 |
Swap the order of 'sleep=1' and 'echo' actions so the genfile |
| 2075 |
utility has (hopefully) enough time to do the unlink before |
| 2076 |
writing the file into the archive (enforce 1-2-3-6-4-5 order). |
| 2077 |
|
| 2078 |
* tests/dirrem01.at: Swap 'sleep=1' and 'echo' actions. |
| 2079 |
* tests/dirrem02.at: Likewise. |
| 2080 |
|
| 2081 |
2018-03-13 Sergey Poznyakoff <[email protected]> |
| 2082 |
|
| 2083 |
Fix typos in the docs |
| 2084 |
|
| 2085 |
2018-03-13 Sergey Poznyakoff <[email protected]> |
| 2086 |
|
| 2087 |
Provide a way to skip tests that create very large files |
| 2088 |
|
| 2089 |
Define environment variable TARTEST_SKIP_LARGE_FILES=1 in order |
| 2090 |
to skip tests that require lots of disk space. |
| 2091 |
|
| 2092 |
* tests/testsuite.at (AT_SKIP_LARGE_FILES): New macro. |
| 2093 |
* tests/sparse03.at: Mark test with AT_SKIP_LARGE_FILES. |
| 2094 |
* tests/sparse05.at: Likewise. |
| 2095 |
* tests/star/pax-big-10g.at: Likewise. |
| 2096 |
* tests/star/ustar-big-2g.at: Likewise. |
| 2097 |
* tests/star/ustar-big-8g.at: Likewise. |
| 2098 |
|
| 2099 |
2018-03-13 Sergey Poznyakoff <[email protected]> |
| 2100 |
|
| 2101 |
Testsuite bugfix |
| 2102 |
|
| 2103 |
* tests/difflink.at: Define order of files within tested archive. |
| 2104 |
|
| 2105 |
2018-03-13 Sergey Poznyakoff <[email protected]> |
| 2106 |
|
| 2107 |
testsuite: account for absolute file names starting with double |
| 2108 |
slash |
| 2109 |
|
| 2110 |
* tests/incr08.at: Absolute file names can start with // |
| 2111 |
* tests/xform03.at: Likewise. |
| 2112 |
|
| 2113 |
2017-12-17 Sergey Poznyakoff <[email protected]> |
| 2114 |
|
| 2115 |
Version 1.30 |
| 2116 |
|
| 2117 |
* configure.ac: Set version 1.30 |
| 2118 |
* NEWS: Update. |
| 2119 |
|
| 2120 |
2017-11-20 Paul Eggert <[email protected]> |
| 2121 |
|
| 2122 |
Fix "concatenating" typo. |
| 2123 |
|
| 2124 |
Problem reported by Rodrigo Queiro in: |
| 2125 |
https://lists.gnu.org/r/bug-tar/2017-11/msg00021.html |
| 2126 |
* doc/intern.texi (Extensions): Fix typo. |
| 2127 |
|
| 2128 |
2017-11-18 Paul Eggert <[email protected]> |
| 2129 |
|
| 2130 |
Port to gcc -Wimplicit-fallthrough=5 |
| 2131 |
|
| 2132 |
* src/common.h (FALLTHROUGH): New macro, for use with gcc |
| 2133 |
-Wimplicit-fallthrough=5, which is now the default when used with |
| 2134 |
Gnulib after commit 2017-05-16T16:23:[email protected] |
| 2135 |
and with --enable-gcc-warnings |
| 2136 |
|
| 2137 |
2017-11-18 Paul Eggert <[email protected]> |
| 2138 |
|
| 2139 |
Port to Texinfo 6.4 |
| 2140 |
|
| 2141 |
* doc/tar.texi (Sparse Recovery): Omit ‘.’ from anchor name, |
| 2142 |
as ‘makeinfo’ now complains about it. All uses changed. |
| 2143 |
|
| 2144 |
2017-11-18 Paul Eggert <[email protected]> |
| 2145 |
|
| 2146 |
Document base-256 representation in GNU format |
| 2147 |
|
| 2148 |
Problem reported by Rodrigo Queiro in: |
| 2149 |
https://lists.gnu.org/r/bug-tar/2017-11/msg00018.html |
| 2150 |
* doc/intern.texi (Standard, Extensions): |
| 2151 |
Document base-256 representations. |
| 2152 |
|
| 2153 |
2017-11-18 Paul Eggert <[email protected]> |
| 2154 |
|
| 2155 |
build: update gnulib submodule to latest |
| 2156 |
|
| 2157 |
2017-11-18 Paul Eggert <[email protected]> |
| 2158 |
|
| 2159 |
Fix typo caught by GCC 7.2.1 |
| 2160 |
|
| 2161 |
* lib/wordsplit.c (wordsplit_perror): Add missing "break;". |
| 2162 |
|
| 2163 |
2017-11-16 Sergey Poznyakoff <[email protected]> |
| 2164 |
|
| 2165 |
Update docs |
| 2166 |
|
| 2167 |
* doc/Makefile.am: Add recipes.texi |
| 2168 |
* doc/recipes.texi: New file. |
| 2169 |
* doc/tar.texi: New appendix "Recipes" |
| 2170 |
|
| 2171 |
2017-11-16 Pavel Raiskup <[email protected]> |
| 2172 |
|
| 2173 |
tests: more deterministic xattr07 |
| 2174 |
|
| 2175 |
* tests/xattr07.at: Define order of files within tested archive. |
| 2176 |
|
| 2177 |
2017-11-16 Sergey Poznyakoff <[email protected]> |
| 2178 |
|
| 2179 |
Minor improvements in the docs. |
| 2180 |
|
| 2181 |
2017-11-16 Sergey Poznyakoff <[email protected]> |
| 2182 |
|
| 2183 |
New option --warning=failed-read |
| 2184 |
|
| 2185 |
* NEWS: Document the --warning=failed-read option. |
| 2186 |
* doc/tar.texi: Likewise. |
| 2187 |
* doc/tar.1: Likewise. |
| 2188 |
* src/common.h (WARN_FAILED_READ): New constant. |
| 2189 |
(WARNING_ENABLED): New macro. |
| 2190 |
* src/misc.c (close_diag, open_diag) |
| 2191 |
(read_diag_details, readlink_diag) |
| 2192 |
(savedir_diag, seek_diag_details) |
| 2193 |
(stat_diag): Suppress warnings if WARN_FAILED_READ is set. |
| 2194 |
* src/warning.c (failed-read): New keyword. |
| 2195 |
|
| 2196 |
2017-11-16 Sergey Poznyakoff <[email protected]> |
| 2197 |
|
| 2198 |
Fix docs |
| 2199 |
|
| 2200 |
* doc/tar.texi: Fix description of the argument to |
| 2201 |
--xattrs-exclude |
| 2202 |
and --xattrs-include option. It is a globbing pattern, not |
| 2203 |
a regex. |
| 2204 |
|
| 2205 |
Fix a typo (LZOP) |
| 2206 |
|
| 2207 |
2017-11-16 Sergey Poznyakoff <[email protected]> |
| 2208 |
|
| 2209 |
Fix the --delay-directory-restore option |
| 2210 |
|
| 2211 |
* src/extract.c (find_direct_ancestor): New function. |
| 2212 |
(create_placeholder_file): Set after_links member on |
| 2213 |
delayed_set_stat |
| 2214 |
entries starting from the direct ancestor of the placeholder file. |
| 2215 |
|
| 2216 |
* tests/extrac21.at: New testcase. |
| 2217 |
* tests/testsuite.at: Add extrac21 |
| 2218 |
* tests/Makefile.am: Likewise. |
| 2219 |
|
| 2220 |
* NEWS: Update. |
| 2221 |
|
| 2222 |
2017-11-09 Sergey Poznyakoff <[email protected]> |
| 2223 |
|
| 2224 |
Fix reporting of hardlink mismatch during compare |
| 2225 |
|
| 2226 |
* src/common.h (quote_n_colon): New prototype. |
| 2227 |
* src/misc.c (quote_n_colon): New function. |
| 2228 |
* src/compare.c (report_difference, diff_link): Use quote_n_colon. |
| 2229 |
|
| 2230 |
* tests/difflink.at: New file. |
| 2231 |
* tests/Makefile.am: Add difflink.at |
| 2232 |
* tests/testsuite.at: Likewise. |
| 2233 |
|
| 2234 |
2017-11-09 Sergey Poznyakoff <[email protected]> |
| 2235 |
|
| 2236 |
Fix --verbatim-files-from |
| 2237 |
|
| 2238 |
* src/names.c (read_next_name): Don't unquote name read from the |
| 2239 |
file, if --verbatim-files-from option is in effect. |
| 2240 |
(names_options): improve description of --verbatim-files-from |
| 2241 |
* tests/T-null2.at: Test the change. |
| 2242 |
|
| 2243 |
2017-11-09 Sergey Poznyakoff <[email protected]> |
| 2244 |
|
| 2245 |
Fix typo |
| 2246 |
|
| 2247 |
* doc/tar.texi |
| 2248 |
|
| 2249 |
2017-09-30 Sergey Poznyakoff <[email protected]> |
| 2250 |
|
| 2251 |
Fix the effect of --transform over hard link targets without |
| 2252 |
the --absolute-names |
| 2253 |
|
| 2254 |
* src/create.c (file_count_links): Apply safer_name_suffix to the |
| 2255 |
hard link name prior to transforming it. |
| 2256 |
* tests/xform03.at: New test case. |
| 2257 |
* tests/Makefile.am: Add xform03.at |
| 2258 |
* tests/testsuite.at: Likewise. |
| 2259 |
|
| 2260 |
2017-08-24 Sergey Poznyakoff <[email protected]> |
| 2261 |
|
| 2262 |
Bugfix |
| 2263 |
|
| 2264 |
* src/tar.c (tar_help_filter): Add missing break statement |
| 2265 |
|
| 2266 |
2017-06-29 Troels Thomsen <[email protected]> |
| 2267 |
|
| 2268 |
Fix typo |
| 2269 |
|
| 2270 |
2017-05-29 Pavel Raiskup <[email protected]> |
| 2271 |
|
| 2272 |
Fix non-deterministic archive type detection |
| 2273 |
|
| 2274 |
Due to analysis of partly uninitialized read-ahead buffer |
| 2275 |
(short_read call), we sometimes mistakenly classified very small |
| 2276 |
compressed archives as non-compressed; which in turn caused |
| 2277 |
extraction failure. |
| 2278 |
|
| 2279 |
* src/buffer.c (check_compressed_archive): Don't assume that |
| 2280 |
archives smaller than BLOCKSIZE could be non-compressed, as tar |
| 2281 |
header always has at least one block. |
| 2282 |
|
| 2283 |
2017-05-29 Jonas Julino <[email protected]> |
| 2284 |
Sergey Poznyakoff <[email protected]> |
| 2285 |
|
| 2286 |
Fix handling of directories removed during incremental tar run |
| 2287 |
|
| 2288 |
* paxutils: Upgrade |
| 2289 |
* src/create.c (create_archive): Use file_removed_diag |
| 2290 |
instead of calling the corresponding *_diag function |
| 2291 |
directly. |
| 2292 |
* tests/dirrem01.at: New testcase. |
| 2293 |
* tests/dirrem02.at: New testcase. |
| 2294 |
* tests/Makefile.am: Add new tests. |
| 2295 |
* tests/testsuite.at: Likewise. |
| 2296 |
|
| 2297 |
2017-05-29 Sergey Poznyakoff <[email protected]> |
| 2298 |
|
| 2299 |
Fix a bug in multi-volume archive creation. |
| 2300 |
|
| 2301 |
When creating multivolume archives, the bufmap code in buffer.c |
| 2302 |
implicitly assumed that the members are stored in the archive |
| 2303 |
contiguously, ignoring the member (and eventual extended) headers |
| 2304 |
between them. This worked until the member header happened to be |
| 2305 |
at the very beginning of the volume, in which case its length was |
| 2306 |
included in the calculation of the stored size and size left to |
| 2307 |
store. Due to this, the GNUFileParts extended header contained |
| 2308 |
invalid GNU.volume.offset value, and the resulting archive failed |
| 2309 |
to extract properly. |
| 2310 |
|
| 2311 |
This patch also eliminates improper listing of file part headers |
| 2312 |
as regular files, when creating multivolume posix archives |
| 2313 |
with -v. |
| 2314 |
|
| 2315 |
* src/buffer.c (bufmap): New member nblocks. Counts number |
| 2316 |
of blocks |
| 2317 |
of file data written since reset. |
| 2318 |
(bufmap_reset): Reset nblocks to 0. |
| 2319 |
(_flush_write): Update nblocks. When computing offset difference |
| 2320 |
for |
| 2321 |
bufmap_reset, count only data blocks, not headers. |
| 2322 |
(close_archive): Flush archive until all blocks are written. |
| 2323 |
(add_chunk_header): Use simple_finish_header instead of |
| 2324 |
finish_header |
| 2325 |
to avoid listing chunk header as regular file in verbose mode. |
| 2326 |
* tests/multiv10.at: New test case. |
| 2327 |
* tests/Makefile.am: Add new test. |
| 2328 |
* tests/testsuite.at: Add new test. |
| 2329 |
|
| 2330 |
2017-04-07 Paul Eggert <[email protected]> |
| 2331 |
|
| 2332 |
--numeric-owner now affects private headers too |
| 2333 |
|
| 2334 |
Problem reported by Daniel Peebles in: |
| 2335 |
http://lists.gnu.org/archive/html/bug-tar/2017-04/msg00004.html |
| 2336 |
* NEWS: Document this. |
| 2337 |
* src/create.c (write_gnu_long_link): If --numeric-owner, |
| 2338 |
leave the user and group empty in a private header. Cache the |
| 2339 |
names for 0. |
| 2340 |
|
| 2341 |
2017-02-28 Pavel Raiskup <[email protected]> |
| 2342 |
|
| 2343 |
Test and document --keep-directory-symlink |
| 2344 |
|
| 2345 |
* doc/tar.1: Document the option. |
| 2346 |
* tests/extrac20.at: New testcase. |
| 2347 |
* tests/Makefile.am: Mention extrac20. |
| 2348 |
* tests/testsuite.at: Likewise. |
| 2349 |
|
| 2350 |
2017-02-14 Paul Eggert <[email protected]> |
| 2351 |
|
| 2352 |
Fix incompatibility with PGI 16.10 |
| 2353 |
|
| 2354 |
* src/tar.c (options): Fix incompatibility with the C standard, |
| 2355 |
which says that arguments to macro calls cannot contain # |
| 2356 |
directives. |
| 2357 |
|
| 2358 |
2017-01-02 Sergey Poznyakoff <[email protected]> |
| 2359 |
|
| 2360 |
Update copyright years |
| 2361 |
|
| 2362 |
2016-11-12 Sergey Poznyakoff <[email protected]> |
| 2363 |
|
| 2364 |
Fix description of the "escape" quoting style |
| 2365 |
|
| 2366 |
2016-11-12 Sergey Poznyakoff <[email protected]> |
| 2367 |
|
| 2368 |
Better error checking in the backup script. |
| 2369 |
|
| 2370 |
* scripts/backup.in: Check exit code of MT_BEGIN |
| 2371 |
* scripts/backup.sh.in (backup_host): Return meaningful code |
| 2372 |
in case of remote execution. See the comment, though. |
| 2373 |
|
| 2374 |
2016-11-12 Sergey Poznyakoff <[email protected]> |
| 2375 |
|
| 2376 |
Minor documentation fix |
| 2377 |
|
| 2378 |
* doc/tar.texi: Fix example about use of --no-recursion with -T |
| 2379 |
|
| 2380 |
2016-11-12 Sergey Poznyakoff <[email protected]> |
| 2381 |
|
| 2382 |
Fix the --add-file option. |
| 2383 |
|
| 2384 |
* src/common.h (name_more_files): New proto. |
| 2385 |
(files_from_option): Remove. |
| 2386 |
* src/names.c (name_more_files): New file. |
| 2387 |
(names_options): Fix declaration of the |
| 2388 |
add-file option. |
| 2389 |
(names_parse_opt): Handle --add-file. |
| 2390 |
* src/tar.c (struct tar_args): Remove the input_files member. |
| 2391 |
Change all uses: use name_more_files() instead. |
| 2392 |
* tests/Makefile.am: Add new test. |
| 2393 |
* tests/add-file.at: New testcase. |
| 2394 |
* tests/testsuite.at: Add new test. |
| 2395 |
|
| 2396 |
2016-11-11 Sergey Poznyakoff <[email protected]> |
| 2397 |
|
| 2398 |
Add missing files |
| 2399 |
|
| 2400 |
2016-11-11 Pavel Raiskup <[email protected]> |
| 2401 |
|
| 2402 |
don't set xattrs when --skip-old-files is used |
| 2403 |
|
| 2404 |
* src/extract.c (set_xattr): Properly handle maybe_recoverable() |
| 2405 |
output. Throw warnings to not complicate caller. |
| 2406 |
(extract_file): Don't handle set_xattr's error. |
| 2407 |
* tests/xattr07.at: New testcase. |
| 2408 |
* tests/Makefile.am: Mention new testcase. |
| 2409 |
* tests/testsuite.at: Likewise. |
| 2410 |
* THANKS: Dawid. |
| 2411 |
|
| 2412 |
2016-11-11 Sergey Poznyakoff <[email protected]> |
| 2413 |
|
| 2414 |
Minor fix |
| 2415 |
|
| 2416 |
* src/tar.h (tar_stat_info): Change type of real_size_set to bool |
| 2417 |
|
| 2418 |
2016-11-11 Pavel Raiskup <[email protected]> |
| 2419 |
|
| 2420 |
sparse: fix pax extraction for unicode filenames |
| 2421 |
|
| 2422 |
Make sure that 'GNU.sparse.name' header has higher priority than |
| 2423 |
(for sparse-purposes artificially modified) 'path' pax header. |
| 2424 |
|
| 2425 |
Historically, the 'GNU.sparse.name' header comes before 'path'; |
| 2426 |
this caused that modified 'path' header won and that is not what |
| 2427 |
we want in sparse "capable" tar implementation. |
| 2428 |
|
| 2429 |
* src/tar.h (tar_stat_info): New argument sparse_name_done. |
| 2430 |
* src/xheader.c (raw_path_decoder): Move here the unconditional |
| 2431 |
code from path_decoder. |
| 2432 |
(path_decoder): Apply raw_path_decoder only if sparse_path_decoder |
| 2433 |
was not yet called. |
| 2434 |
(sparse_path_decoder): New wrapper around raw_path_decoder. |
| 2435 |
* tests/sparse07.at: New testcase. |
| 2436 |
* tests/testsuite.at: Mention new testcase. |
| 2437 |
* tests/Makefile.am: Likewise. |
| 2438 |
|
| 2439 |
2016-11-10 Pavel Raiskup <[email protected]> |
| 2440 |
|
| 2441 |
* tests/xattr06.at: Test include/exclude during archive/exctract. |
| 2442 |
|
| 2443 |
2016-11-10 Ian McLeod <[email protected]> |
| 2444 |
|
| 2445 |
Bugfix - fix xattr exclude/include for archive create |
| 2446 |
|
| 2447 |
This makes archive create behavior consistent with the |
| 2448 |
documentation. Without this change xattr include/exclude options |
| 2449 |
are accepted when creating an archive but are silently ignored. |
| 2450 |
|
| 2451 |
* src/xattrs.c (xattrs_xattrs_get): Apply exclude/include mask |
| 2452 |
when fetching extended attributes |
| 2453 |
* tests/Makefile.am: Add new test case. |
| 2454 |
* tests/testsuite.at: Likewise. |
| 2455 |
|
| 2456 |
2016-10-30 Paul Eggert <[email protected]> |
| 2457 |
|
| 2458 |
When extracting, skip ".." members |
| 2459 |
|
| 2460 |
* NEWS: Document this. |
| 2461 |
* src/extract.c (extract_archive): Skip members whose names |
| 2462 |
contain "..". |
| 2463 |
|
| 2464 |
2016-09-26 Sergey Poznyakoff <[email protected]> |
| 2465 |
|
| 2466 |
Mark all tests related to -C option with the "chdir" keyword |
| 2467 |
|
| 2468 |
2016-09-26 Sergey Poznyakoff <[email protected]> |
| 2469 |
|
| 2470 |
Fix interaction of -u with -C |
| 2471 |
|
| 2472 |
* src/update.c (update_archive): Pass correct change_dir |
| 2473 |
value for addname |
| 2474 |
* tests/update03.at: New file. |
| 2475 |
* tests/Makefile.am: Add update03.at |
| 2476 |
* tests/testsuite.at: Include update03.at |
| 2477 |
|
| 2478 |
2016-09-21 Sergey Poznyakoff <[email protected]> |
| 2479 |
|
| 2480 |
Fix passing string values via TAR_OPTIONS |
| 2481 |
|
| 2482 |
* src/tar.c (parse_default_options): Don't free parsed words. |
| 2483 |
* tests/options03.at: New testcase. |
| 2484 |
* tests/Makefile.am: Add options03.at |
| 2485 |
* tests/testsuite.at: Include options03.at |
| 2486 |
|
| 2487 |
2016-05-28 Sergey Poznyakoff <[email protected]> |
| 2488 |
|
| 2489 |
Tiny bugfix |
| 2490 |
|
| 2491 |
2016-05-27 Sergey Poznyakoff <[email protected]> |
| 2492 |
|
| 2493 |
Report positional options that were used but had no effect during |
| 2494 |
archive creation |
| 2495 |
|
| 2496 |
* src/names.c (file_selection_option) |
| 2497 |
(file_selection_option_name): New functions. |
| 2498 |
(unconsumed_option_push, unconsumed_option_free) |
| 2499 |
(unconsumed_option_report): New functions. |
| 2500 |
(name_list_advance): Maintain a list |
| 2501 |
of eventually unconsumed options during archive creation. |
| 2502 |
Report unconsumed options, if any. |
| 2503 |
|
| 2504 |
* tests/positional01.at: New test case. |
| 2505 |
* tests/positional02.at: New test case. |
| 2506 |
* tests/positional03.at: New test case. |
| 2507 |
* tests/Makefile.am: Add new test cases. |
| 2508 |
* tests/testsuite.at: Likewise. |
| 2509 |
|
| 2510 |
* NEWS: Document the changes. |
| 2511 |
* configure.ac: Version 1.29.90 |
| 2512 |
* doc/tar.texi: Document the changes. |
| 2513 |
|
| 2514 |
2016-05-16 Sergey Poznyakoff <[email protected]> |
| 2515 |
|
| 2516 |
Version 1.29 |
| 2517 |
|
| 2518 |
2016-05-16 Sergey Poznyakoff <[email protected]> |
| 2519 |
|
| 2520 |
Minor fix |
| 2521 |
|
| 2522 |
* src/names.c (new_name): rename to make_file_name. All uses |
| 2523 |
changed. |
| 2524 |
|
| 2525 |
2016-04-14 Sergey Poznyakoff <[email protected]> |
| 2526 |
|
| 2527 |
Fix argument handling when running external commands. |
| 2528 |
|
| 2529 |
* src/system.c (xexec): Use sh -c to run the command. This fixed |
| 2530 |
bug introduced by 7b5e80396 (tar 1.27) |
| 2531 |
* doc/tar.texi: Fix checkpoint examples: (1) $TAR_FILENAME |
| 2532 |
is not available when creating archive and (2) --checkpoint |
| 2533 |
can't be used as abbreviation of --checkpoint-action |
| 2534 |
|
| 2535 |
2016-04-06 Sergey Poznyakoff <[email protected]> |
| 2536 |
|
| 2537 |
Remove iotty test |
| 2538 |
|
| 2539 |
The auxiliary utility ttyemu proved to be unreliable. |
| 2540 |
Given existing |
| 2541 |
differences between pty implementations and termios ioctls |
| 2542 |
on various |
| 2543 |
platforms, writing it in a portable way requires effort |
| 2544 |
disproportional |
| 2545 |
to its actual purpose. |
| 2546 |
|
| 2547 |
* configure.ac: Remove check for grantpt |
| 2548 |
* gnulib.modules: Remove posix_openpt, ptsname, and unlockpt |
| 2549 |
* tests/Makefile.am (TESTSUITE_AT): Remove iotty.at |
| 2550 |
(check_PROGRAMS): Remove ttyemu. |
| 2551 |
* tests/testsuite.at: Remove iotty.at |
| 2552 |
* tests/iotty.at: Remove. |
| 2553 |
* tests/ttyemu.c: Remove. |
| 2554 |
|
| 2555 |
2016-04-05 Pavel Raiskup <[email protected]> |
| 2556 |
|
| 2557 |
xattrs: fix build on Darwin |
| 2558 |
|
| 2559 |
Be careful to define HAVE_XATTRS when not all needed xattr-related |
| 2560 |
functions are properly defined either in libc or libattr. |
| 2561 |
|
| 2562 |
Reported independently by Denis Excoffier and Dominyk Tille. |
| 2563 |
|
| 2564 |
* acinclude.m4 (TAR_HEADERS_ATTR_XATTR_H): Check for each xattr |
| 2565 |
function separately. Don't AC_CHECK_LIB (LIBS is filled by |
| 2566 |
AC_SEARCH_LIBS when necessary). |
| 2567 |
* src/Makefile.am: The LDADD -lattr was redundant. |
| 2568 |
|
| 2569 |
2016-03-24 Sergey Poznyakoff <[email protected]> |
| 2570 |
|
| 2571 |
Remove --preserve option |
| 2572 |
|
| 2573 |
* src/tar.c: Remove --preserve option |
| 2574 |
* NEWS: Update. |
| 2575 |
* doc/tar.texi: Update. |
| 2576 |
|
| 2577 |
2016-03-24 Sergey Poznyakoff <[email protected]> |
| 2578 |
|
| 2579 |
Fix testcase |
| 2580 |
|
| 2581 |
* tests/time02.at: Sort tar -d output |
| 2582 |
|
| 2583 |
2016-03-24 Sergey Poznyakoff <[email protected]> |
| 2584 |
|
| 2585 |
Update THANKS file |
| 2586 |
|
| 2587 |
2016-03-24 Jeremy Bobbio <[email protected]> |
| 2588 |
|
| 2589 |
New option --clamp-mtime |
| 2590 |
|
| 2591 |
The new `--clamp-mtime` option will change the behavior of |
| 2592 |
`--mtime` to only |
| 2593 |
use the time specified if the file mtime is newer than the |
| 2594 |
given time. |
| 2595 |
The `--clamp-mtime` option can only be used together with |
| 2596 |
`--mtime`. |
| 2597 |
|
| 2598 |
Typical use case is to make builds reproducible: to loose less |
| 2599 |
information, it's better to keep the original date of an archive, |
| 2600 |
except for |
| 2601 |
files modified during the build process. In that case, using |
| 2602 |
a reference |
| 2603 |
(and thus reproducible) timestamps for the latter is good |
| 2604 |
enough. See |
| 2605 |
<https://wiki.debian.org/ReproducibleBuilds> for more information. |
| 2606 |
|
| 2607 |
Patch submitted by Jeremy Bobbio and |
| 2608 |
Daniel Kahn Gillmor <[email protected]> |
| 2609 |
|
| 2610 |
* doc/tar.1: Document --clamp-mtime |
| 2611 |
* doc/tar.texi: Likewise. |
| 2612 |
|
| 2613 |
* src/common.h (set_mtime_option_mode): New enum |
| 2614 |
(set_mtime_option): Change type to enum set_mtime_option_mode. |
| 2615 |
(NEWER_OPTION_INITIALIZED): Rename to NEWER_OPTION_INITIALIZED. |
| 2616 |
* src/create.c (start_header): Set mtime depending on |
| 2617 |
set_mtime_option. |
| 2618 |
* src/tar.c (options,parse_opt): New option --clamp-mtime |
| 2619 |
(decode_options): Initialize mtime_option |
| 2620 |
|
| 2621 |
* tests/time02.at: New testcase. |
| 2622 |
* tests/Makefile.am: Add new testcase |
| 2623 |
* tests/testsuite.at: Likewise. |
| 2624 |
|
| 2625 |
2016-03-21 Sergey Poznyakoff <[email protected]> |
| 2626 |
|
| 2627 |
Acknowledgments |
| 2628 |
|
| 2629 |
* THANKS: Add Dagobert Michelsen |
| 2630 |
|
| 2631 |
2016-03-21 Sergey Poznyakoff <[email protected]> |
| 2632 |
|
| 2633 |
Fix the testsuite |
| 2634 |
|
| 2635 |
* tests/sparse06.at: Don't use timeout: depending on the |
| 2636 |
filesystem |
| 2637 |
mounted, current LA and lots of other factors, creation of |
| 2638 |
archive can |
| 2639 |
take much more time than the expected 2 seconds. |
| 2640 |
|
| 2641 |
2016-03-21 Sergey Poznyakoff <[email protected]> |
| 2642 |
|
| 2643 |
Fix ckmtime |
| 2644 |
|
| 2645 |
* gnulib.modules: Use timespec-sub |
| 2646 |
* tests/ckmtime.c: Use second resolution. |
| 2647 |
|
| 2648 |
2016-03-20 Sergey Poznyakoff <[email protected]> |
| 2649 |
|
| 2650 |
Fix the testsuite |
| 2651 |
|
| 2652 |
* tests/sparse05.at: Use autom4te magic to generate mapfile, |
| 2653 |
instead of the shell command seq, which is not always available. |
| 2654 |
* tests/listed03.at: Skip the test if xgetcwd fails. |
| 2655 |
* tests/ckmtime.c: New file. |
| 2656 |
* tests/Makefile.am: Build ckmtime |
| 2657 |
* tests/testsuite.at (AT_CHECK_TIMESTAMP): Check whether newly |
| 2658 |
created |
| 2659 |
files have timestamps consistent with the creation time. |
| 2660 |
Skip the test |
| 2661 |
if not. |
| 2662 |
* tests/incr01.at: Use AT_CHECK_TIMESTAMP |
| 2663 |
* tests/incr02.at: Likewise. |
| 2664 |
* tests/incr03.at: Likewise. |
| 2665 |
* tests/incr04.at: Likewise. |
| 2666 |
* tests/incr05.at: Likewise. |
| 2667 |
* tests/incr06.at: Likewise. |
| 2668 |
* tests/incr07.at: Likewise. |
| 2669 |
* tests/incr08.at: Likewise. |
| 2670 |
* tests/incr09.at: Likewise. |
| 2671 |
* tests/incr10.at: Likewise. |
| 2672 |
* tests/incr11.at: Likewise. |
| 2673 |
* tests/incremental.at: Likewise. |
| 2674 |
* tests/listed01.at: Likewise. |
| 2675 |
* tests/listed02.at: Likewise. |
| 2676 |
* tests/listed04.at: Likewise. |
| 2677 |
* tests/listed05.at: Likewise. |
| 2678 |
|
| 2679 |
2016-03-18 Sergey Poznyakoff <[email protected]> |
| 2680 |
|
| 2681 |
Testsuite fixes. |
| 2682 |
|
| 2683 |
* paxutils: Update. |
| 2684 |
* src/unlink.c (flush_deferred_unlinks): OpenSolaris sets EEXIST |
| 2685 |
instead of ENOTEMPTY if trying to remove a non-empty directory. |
| 2686 |
* tests/numeric.at: Avoid using awk -v: some older awks don't |
| 2687 |
support |
| 2688 |
that option. Also fix environment variable usage. |
| 2689 |
* tests/onetop05.at: Skip test if unable to set initial directory |
| 2690 |
mode bits. |
| 2691 |
* tests/sparse06.at: Use --quiet option. |
| 2692 |
|
| 2693 |
2016-03-18 Sergey Poznyakoff <[email protected]> |
| 2694 |
|
| 2695 |
Revise docs |
| 2696 |
|
| 2697 |
2016-03-18 Sergey Poznyakoff <[email protected]> |
| 2698 |
|
| 2699 |
Fix build with --enable-gcc-warnings |
| 2700 |
|
| 2701 |
* configure.ac: Disable stack-protector warnings |
| 2702 |
|
| 2703 |
2016-03-17 Sergey Poznyakoff <[email protected]> |
| 2704 |
|
| 2705 |
Improve testsuite |
| 2706 |
|
| 2707 |
* tests/iotty.at: Skip test if ttyemu can't do its job |
| 2708 |
|
| 2709 |
2016-03-16 Sergey Poznyakoff <[email protected]> |
| 2710 |
|
| 2711 |
Document xattrs, ACL and SELinux-related options. |
| 2712 |
|
| 2713 |
* doc/tar.1: Document all options. |
| 2714 |
* doc/tar.texi: Likewise. |
| 2715 |
|
| 2716 |
2016-03-15 Sergey Poznyakoff <[email protected]> |
| 2717 |
|
| 2718 |
Fix appending to archive with changed blocking factor. |
| 2719 |
|
| 2720 |
* src/buffer.c (flush_archive): If previous reading attempt |
| 2721 |
resulted |
| 2722 |
in short read, correctly use the remaining record space. |
| 2723 |
(backspace_output): Fix position calculation (still has to be |
| 2724 |
improved). |
| 2725 |
|
| 2726 |
* tests/append05.at: New test case. |
| 2727 |
* tests/Makefile.am: Add new test. |
| 2728 |
* tests/testsuite.at: Likewise. |
| 2729 |
|
| 2730 |
2016-03-14 Sergey Poznyakoff <[email protected]> |
| 2731 |
|
| 2732 |
Fix coredump on parsing invalid traditional option |
| 2733 |
|
| 2734 |
* src/tar.c (find_argp_option): Fix loop termination condition. |
| 2735 |
|
| 2736 |
2016-01-20 Sergey Poznyakoff <[email protected]> |
| 2737 |
|
| 2738 |
Update copyright years |
| 2739 |
|
| 2740 |
2016-01-20 Sergey Poznyakoff <[email protected]> |
| 2741 |
|
| 2742 |
Allow escaped delimiters in transform expressions. |
| 2743 |
|
| 2744 |
Patch provided by Charles McGarvey and Flavio Poletti. |
| 2745 |
|
| 2746 |
* src/transform.c (parse_transform_expr): Allow escaped delimiters |
| 2747 |
in transform expressions. |
| 2748 |
* tests/xform02.at: New test case. |
| 2749 |
* tests/Makefile.am: Add xform02.at |
| 2750 |
* tests/testsuite.at: Include xform02.at |
| 2751 |
* THANKS: Update. |
| 2752 |
|
| 2753 |
2015-12-17 Sergey Poznyakoff <[email protected]> |
| 2754 |
|
| 2755 |
Fix eventual dereference of uninitialized pointer. |
| 2756 |
|
| 2757 |
* src/exclist.c (hg_initfn): Initialize hgopt. |
| 2758 |
|
| 2759 |
2015-12-17 Pavel Raiskup <[email protected]> |
| 2760 |
|
| 2761 |
sparse: fix use of indeterminate value |
| 2762 |
|
| 2763 |
* src/xheader.c (sparse_map_decoder): Move 'e' up from loop-block. |
| 2764 |
|
| 2765 |
2015-12-11 Sergey Poznyakoff <[email protected]> |
| 2766 |
|
| 2767 |
fix a typo |
| 2768 |
|
| 2769 |
* doc/tar.texi (Incremental Dumps): Add missing --file to the |
| 2770 |
'--list' example. |
| 2771 |
|
| 2772 |
2015-12-11 Sergey Poznyakoff <[email protected]> |
| 2773 |
|
| 2774 |
Minor fixes. |
| 2775 |
|
| 2776 |
* doc/tar.texi: Document position-sensitive options in a |
| 2777 |
separate subsection. |
| 2778 |
* src/names.c (names_argp,names_argp_children): Explicitly |
| 2779 |
initialize |
| 2780 |
all members. |
| 2781 |
|
| 2782 |
2015-12-11 Sergey Poznyakoff <[email protected]> |
| 2783 |
|
| 2784 |
Minor fix |
| 2785 |
|
| 2786 |
2015-12-11 Sergey Poznyakoff <[email protected]> |
| 2787 |
|
| 2788 |
Fix handling of filename-selection options. |
| 2789 |
|
| 2790 |
Filename-selection options are --wildcards, --recursive, etc. (see |
| 2791 |
names.c for a complete list). These options are |
| 2792 |
position-sensitive, |
| 2793 |
i.e. each such option affects all filenames and filename-selection |
| 2794 |
options that appear after it until eventually cancelled by a |
| 2795 |
corresponding counterpart option. |
| 2796 |
|
| 2797 |
These options can appear in "file-from" file lists, which |
| 2798 |
means that |
| 2799 |
they cannot be handled right away, but instead should be put on |
| 2800 |
the "name_elt" list and processed sequentionally, as file name |
| 2801 |
arguments |
| 2802 |
are. |
| 2803 |
|
| 2804 |
* src/common.h (warn_regex_usage): Remove. |
| 2805 |
(name_add_name): Change signature. |
| 2806 |
(name_add_dir, name_add_file): Remove prototypes. |
| 2807 |
* src/names.c (name_add_option, name_add_dir) |
| 2808 |
(name_add_file): Static functions. |
| 2809 |
(names_options, is_file_selection_option, names_parse_opt): |
| 2810 |
Static functions. |
| 2811 |
(names_argp_children): New variable. |
| 2812 |
(NELT_NAME, NELT_CHDIR) |
| 2813 |
(NELT_FILE, NELT_NOOP): Redefine as enum nelt_type. |
| 2814 |
(NELT_FMASK): Remove. |
| 2815 |
(NELT_OPTION): New constant. |
| 2816 |
(name_elt) <type>: Change type. |
| 2817 |
<v.opt>: New member. |
| 2818 |
(name_elt_alloc_matflags): Remove. |
| 2819 |
(name_add_name): Take one argument. |
| 2820 |
(name_add_option): New static function. |
| 2821 |
(name_add_file): Take one argument. |
| 2822 |
(read_next_name): Use filename_terminator and |
| 2823 |
verbatim_files_from_option to initialize file.term and |
| 2824 |
file.verbatim. |
| 2825 |
* src/tar.c: Move handling of filename-selection options to |
| 2826 |
names.c |
| 2827 |
|
| 2828 |
* tests/T-dir00.at: Fix typo. |
| 2829 |
* tests/T-recurse.at: Remove expected failure. |
| 2830 |
|
| 2831 |
2015-12-10 Pavel Raiskup <[email protected]> |
| 2832 |
|
| 2833 |
better test --{,no-}recursion options |
| 2834 |
|
| 2835 |
* tests/recurs02.at: Also test --list mode. |
| 2836 |
* tests/T-recurse.at: New test case. Test that -T option works |
| 2837 |
correctly together with --{,no-}recursion. |
| 2838 |
* tests/Makefile.am: Mention new test T-recurse.at. |
| 2839 |
* tests/testsuite.at: Likewise. |
| 2840 |
|
| 2841 |
2015-12-06 Pavel Raiskup <[email protected]> |
| 2842 |
|
| 2843 |
Bugfix |
| 2844 |
|
| 2845 |
* src/buffer.c (try_new_volume): Warn if user supplied malformed |
| 2846 |
tar archive. |
| 2847 |
Consistently use WARN (instead of ERROR) when reporting. |
| 2848 |
|
| 2849 |
2015-12-06 Sergey Poznyakoff <[email protected]> |
| 2850 |
|
| 2851 |
Fix segfault when extracting from a multi-volume archive. |
| 2852 |
|
| 2853 |
Fix suggested by Pavel Raiskup. |
| 2854 |
|
| 2855 |
* src/buffer.c (try_new_volume): Fix dereferencing NULL pointer. |
| 2856 |
* tests/multiv09.at: New testcase. |
| 2857 |
* tests/Makefile.am: Add new testcase. |
| 2858 |
* tests/testsuite.at: Likewise. |
| 2859 |
|
| 2860 |
2015-12-06 Sergey Poznyakoff <[email protected]> |
| 2861 |
|
| 2862 |
Fix NEWS |
| 2863 |
|
| 2864 |
2015-12-06 Pavel Raiskup <[email protected]> |
| 2865 |
|
| 2866 |
numeric-owner: print big UID/GID correctly |
| 2867 |
|
| 2868 |
* src/list.c (simple_print_header): Do not parse ustar header |
| 2869 |
for UID/GID again (tar_stat_info has already been correctly |
| 2870 |
filled with respect to possible uid/gid extended headers). |
| 2871 |
* tests/numeric.at: New testcase for --numeric-owner option. |
| 2872 |
* tests/Makefile.am: Add new testcase. |
| 2873 |
* tests/testsuite.at: Likewise. |
| 2874 |
|
| 2875 |
2015-12-06 Sergey Poznyakoff <[email protected]> |
| 2876 |
|
| 2877 |
Use SEEK_HOLE for hole detection |
| 2878 |
|
| 2879 |
Based on patch by Pavel Raiskup. |
| 2880 |
|
| 2881 |
Use SEEK_HOLE/SEEK_DATA feature of lseek on systems that support |
| 2882 |
it. This can make archiving of sparse files much faster. |
| 2883 |
|
| 2884 |
Implement the --hole-detection option to allow users to select |
| 2885 |
hole-detection method. |
| 2886 |
|
| 2887 |
* src/common.h (hole_detection_method): New enum. |
| 2888 |
(hole_detection): New global. |
| 2889 |
* src/sparse.c (sparse_scan_file_wholesparse): New function as a |
| 2890 |
method for detecting sparse files without any data. |
| 2891 |
(sparse_scan_file_raw): Rename from sparse_scan_file; with edits. |
| 2892 |
(sparse_scan_file_seek): New function. |
| 2893 |
(sparse_scan_file): Reimplement function. |
| 2894 |
* src/tar.c: New option --hole-detection |
| 2895 |
|
| 2896 |
* tests/checkseekhole.c: New file. |
| 2897 |
* tests/.gitignore: Mention two test binaries. |
| 2898 |
* tests/Makefile.am: Add new tests. |
| 2899 |
* tests/testsuite.at (AT_SEEKHOLE_PREREQ): New macro. |
| 2900 |
Include sparse06.at. |
| 2901 |
* tests/sparse06.at: New test case. |
| 2902 |
* tests/sparse02.at: Force raw hole-detection method. |
| 2903 |
* tests/sparsemv.at: Likewise. |
| 2904 |
* tests/sparsemvp.at: Likewise. |
| 2905 |
|
| 2906 |
* doc/tar.1: Document --hole-detection option. |
| 2907 |
* doc/tar.texi: Document hole-detection algorithms and |
| 2908 |
command-line options. |
| 2909 |
* NEWS: Document hole-detection. |
| 2910 |
|
| 2911 |
2015-12-05 Sergey Poznyakoff <[email protected]> |
| 2912 |
|
| 2913 |
Catch compressor execution errors. |
| 2914 |
|
| 2915 |
* src/misc.c (write_fatal_details): Move to buffer.c |
| 2916 |
* src/buffer.c (write_fatal_details): Close the archive and |
| 2917 |
wait for |
| 2918 |
the compressor program to terminate in order to catch eventual |
| 2919 |
execution |
| 2920 |
errors. |
| 2921 |
* src/system.c (sys_child_open_for_compress): Ignore SIGPIPE so |
| 2922 |
tar will |
| 2923 |
not silently terminate when unable to write to the compressor. |
| 2924 |
* tests/comperr.at: New file. |
| 2925 |
* tests/Makefile.am: Add comperr.at |
| 2926 |
* tests/testsuite.at: Include comperr.at |
| 2927 |
|
| 2928 |
2015-12-05 Sergey Poznyakoff <[email protected]> |
| 2929 |
|
| 2930 |
Upgrade paxutils |
| 2931 |
|
| 2932 |
2015-11-29 Sergey Poznyakoff <[email protected]> |
| 2933 |
|
| 2934 |
Fix extraction from concatenated incremental archives with |
| 2935 |
renamed directories. |
| 2936 |
|
| 2937 |
Complements 15c02c2b. |
| 2938 |
|
| 2939 |
* src/extract.c (delayed_set_stat): Change type of file_name. |
| 2940 |
(delay_set_stat): Allocate file_name member. |
| 2941 |
(free_delayed_set_stat): Free file_name. |
| 2942 |
(fixup_delayed_set_stat): New function. |
| 2943 |
(rename_directory): Call fixup_delayed_set_stat on success. |
| 2944 |
|
| 2945 |
* tests/incr11.at: New testcase. |
| 2946 |
* tests/incr10.at: Improve description. |
| 2947 |
* tests/Makefile.am: Add incr11.at |
| 2948 |
* tests/testsuite.at: Add incr11.at |
| 2949 |
|
| 2950 |
2015-11-21 Sergey Poznyakoff <[email protected]> |
| 2951 |
|
| 2952 |
Fix bug in the inplementation of --one-top-level. |
| 2953 |
|
| 2954 |
When extracting an archive that contains './' with the |
| 2955 |
--one-top-level option, |
| 2956 |
the mode and ownership of '.' would be incorrectly applied to |
| 2957 |
the current |
| 2958 |
working directory, instead of the requested top-level directory. |
| 2959 |
|
| 2960 |
* src/list.c (enforce_one_top_level): Map '.' to the top-level |
| 2961 |
directory. |
| 2962 |
* tests/Makefile.am: Add onetop05.at |
| 2963 |
* tests/testsuite.at: Include onetop05.at. |
| 2964 |
* tests/onetop05.at: New file. |
| 2965 |
* tests/onetop01.at: Fix keywords. |
| 2966 |
* tests/onetop02.at: Likewise. |
| 2967 |
* tests/onetop03.at: Likewise. |
| 2968 |
* tests/onetop04.at: Likewise. |
| 2969 |
|
| 2970 |
2015-11-11 Sergey Poznyakoff <[email protected]> |
| 2971 |
|
| 2972 |
Work around unlinkat bug on FreeBSD and GNU/Hurd |
| 2973 |
|
| 2974 |
* src/unlink.c (dunlink_insert): New function. |
| 2975 |
(flush_deferred_unlinks): Skip cwds and nonempty directories |
| 2976 |
at the first pass. If force is requested, run a second pass |
| 2977 |
removing them. |
| 2978 |
(queue_deferred_unlink): Make sure current working directory |
| 2979 |
entries are sorted in descending order by the value of dir_idx. |
| 2980 |
This makes sure they will be removed in right order, which works |
| 2981 |
around unlinkat bug on FreeBSD and GNU/Hurd. |
| 2982 |
* tests/remfiles08b.at: Remove expected failure. |
| 2983 |
* tests/remfiles09b.at: Likewise. |
| 2984 |
|
| 2985 |
2015-11-10 Sergey Poznyakoff <[email protected]> |
| 2986 |
|
| 2987 |
Fix coredump on FreeBSD when TAR_OPTIONS is set |
| 2988 |
|
| 2989 |
* src/tar.c (parse_default_options): Use program_name instead of |
| 2990 |
program_invocation_short_name. On some systems the latter is |
| 2991 |
NULL when |
| 2992 |
the function is called, which causes coredumps. |
| 2993 |
(tar_set_quoting_style): Likewise. |
| 2994 |
* src/names.c: Likewise. |
| 2995 |
|
| 2996 |
2015-11-02 Sergey Poznyakoff <[email protected]> |
| 2997 |
|
| 2998 |
Use sort in T-dir tests. |
| 2999 |
|
| 3000 |
2015-11-02 Sergey Poznyakoff <[email protected]> |
| 3001 |
|
| 3002 |
Fix distclean in tests/ |
| 3003 |
|
| 3004 |
* tests/Makefile.am: Remove "download" |
| 3005 |
|
| 3006 |
2015-11-02 Sergey Poznyakoff <[email protected]> |
| 3007 |
|
| 3008 |
New options: --owner-map and --group-map. |
| 3009 |
|
| 3010 |
* NEWS: Update. |
| 3011 |
* doc/tar.1: Document --owner-map and --group-map |
| 3012 |
* doc/tar.texi: Likewise. |
| 3013 |
|
| 3014 |
* src/map.c: New file. |
| 3015 |
* src/Makefile.am: Add map.c |
| 3016 |
* src/common.h (owner_map_read, owner_map_translate) |
| 3017 |
(group_map_read, group_map_translate): New protos. |
| 3018 |
* src/create.c (start_header): Use owner_map_translate |
| 3019 |
and group_map_translate to optionally translate user/group |
| 3020 |
names/ids. |
| 3021 |
* src/tar.c: New options --owner-map and --group-map. |
| 3022 |
|
| 3023 |
* tests/map.at: New file. |
| 3024 |
* tests/Makefile.am: Add map.at |
| 3025 |
* tests/testsuite.at: Include map.at. |
| 3026 |
|
| 3027 |
2015-09-24 Kir Kolyshkin <[email protected]> (tiny change) |
| 3028 |
|
| 3029 |
doc: fix font and spelling typos |
| 3030 |
|
| 3031 |
* doc/tar.1: Fix font and spelling typos in man page. |
| 3032 |
|
| 3033 |
2015-09-24 Paul Eggert <[email protected]> |
| 3034 |
|
| 3035 |
Fix problems caught by static checking |
| 3036 |
|
| 3037 |
Most of these can be caught by configuring with |
| 3038 |
--enable-gcc-warnings. |
| 3039 |
Problem reported by Pavel Raiskup in: |
| 3040 |
http://lists.gnu.org/archive/html/bug-tar/2015-09/msg00001.html |
| 3041 |
* src/buffer.c (format_total_stats): |
| 3042 |
Prefer pointer to const when it’s OK to use const. |
| 3043 |
(default_total_format): Now const. |
| 3044 |
* src/buffer.c (default_total_format): |
| 3045 |
* src/exclist.c (excfile_head, excfile_tail, vcs_ignore_files): |
| 3046 |
* src/misc.c (namebuf_add_dir, namebuf_finish): |
| 3047 |
* src/tar.c (verbatim_files_from_option, option_set_in_cl) |
| 3048 |
(optloc_eq, set_old_files_option): |
| 3049 |
Now static. |
| 3050 |
* src/common.h: Adjust to match the other changes described here. |
| 3051 |
* src/exclist.c (info_cleanup_exclist): |
| 3052 |
* src/tar.c (argp_program_version, argp_program_bug_address): |
| 3053 |
Remove; unused. |
| 3054 |
(parse_default_options): Define via prototype instead of old |
| 3055 |
style. |
| 3056 |
(parse_default_options, decode_options): |
| 3057 |
Fill out incomplete initializers. |
| 3058 |
|
| 3059 |
2015-08-31 Sergey Poznyakoff <[email protected]> |
| 3060 |
|
| 3061 |
Improve option sanity checking |
| 3062 |
|
| 3063 |
Any two conflicting options are reported only if they both |
| 3064 |
occur in |
| 3065 |
the command line. Otherwise, options defined in the command line |
| 3066 |
silently override those set in the TAR_OPTIONS environment |
| 3067 |
variable. |
| 3068 |
|
| 3069 |
* src/common.h (option_source): New enum. |
| 3070 |
(option_locus): New struct. |
| 3071 |
* src/names.c (name_elt): New member: line. |
| 3072 |
(name_add_file): Initialize line. |
| 3073 |
(read_name_from_file): Keep track of input line number for |
| 3074 |
diagnostic |
| 3075 |
purposes. |
| 3076 |
(handle_option): Take a pointer to struct name_elt as 2nd |
| 3077 |
parameter; |
| 3078 |
pass locus info to more_options(). |
| 3079 |
* src/tar.c (tar_args): New member: loc. |
| 3080 |
(option_class): New enum. |
| 3081 |
(optloc_save,optloc_lookup) |
| 3082 |
(option_set_in_cl,optloc_eq): New functions. |
| 3083 |
(set_use_compress_program_option): Take into account option |
| 3084 |
location. |
| 3085 |
(set_old_files_option): New function. |
| 3086 |
(parse_opt): Keep track of option locations. |
| 3087 |
(more_options): Improve error reporting. |
| 3088 |
(parse_default_options): New function. |
| 3089 |
(decode_options): Parse TAR_OPTION and command line separately. |
| 3090 |
Options from the latter silently override those from the former. |
| 3091 |
|
| 3092 |
* lib/prepargs.c: Remove. |
| 3093 |
* lib/prepargs.h: Remove. |
| 3094 |
* lib/Makefile.am: Update. |
| 3095 |
|
| 3096 |
2015-08-24 Sergey Poznyakoff <[email protected]> |
| 3097 |
|
| 3098 |
Improve check-full |
| 3099 |
|
| 3100 |
* tests/atlocal.in: Download external archives to |
| 3101 |
$abs_builddir/download. |
| 3102 |
(tarball_prereq): Create destination directory if necessary. |
| 3103 |
* tests/.gitignore: Add download |
| 3104 |
|
| 3105 |
2015-08-24 Sergey Poznyakoff <[email protected]> |
| 3106 |
|
| 3107 |
Fix check-full |
| 3108 |
|
| 3109 |
* tests/atlocal.in (TAR_DATA_URL): Berlios is dead. Get |
| 3110 |
test archives from gnu.org.ua |
| 3111 |
|
| 3112 |
2015-08-24 Sergey Poznyakoff <[email protected]> |
| 3113 |
|
| 3114 |
Include gnulib and paxutils as submodules. |
| 3115 |
|
| 3116 |
* .gitmodules: New file. |
| 3117 |
* README-alpha: Update. |
| 3118 |
* README-hacking: Update. |
| 3119 |
* bootstrap: Install slightly modified version from the gnulib |
| 3120 |
repo. |
| 3121 |
* bootstrap.conf: Add paxutils-related stuff. |
| 3122 |
* .gitignore: Update. |
| 3123 |
* doc/.gitignore: Update. |
| 3124 |
* po/.gitignore: Update. |
| 3125 |
* gnu/Makefile.am |
| 3126 |
|
| 3127 |
2015-08-24 Sergey Poznyakoff <[email protected]> |
| 3128 |
|
| 3129 |
Update docs. |
| 3130 |
|
| 3131 |
* doc/tar.1: Document --verbatim-files-from option. |
| 3132 |
|
| 3133 |
2015-08-20 Sergey Poznyakoff <[email protected]> |
| 3134 |
|
| 3135 |
Add missing VCS files to --exclude-vcs list |
| 3136 |
|
| 3137 |
* src/tar.c (vcs_file_table): Add .gitmodules and .gitattributes |
| 3138 |
* doc/tar.texi: Update. |
| 3139 |
|
| 3140 |
2015-08-03 Sergey Poznyakoff <[email protected]> |
| 3141 |
|
| 3142 |
Options to control option handling in file lists. |
| 3143 |
|
| 3144 |
The --verbatim-files-from option disables option handling in |
| 3145 |
file lists. The --no-verbatim-files-from reverts its effect. |
| 3146 |
|
| 3147 |
The --null option implies --verbatim-files-from. This restores |
| 3148 |
the documented behavior, broken by 26538c9b. |
| 3149 |
|
| 3150 |
* src/common.h (verbatim_files_from_option): New global. |
| 3151 |
* src/names.c (name_elt): New member: file.verbatim |
| 3152 |
(name_add_file): Take 'verbatim' state as its third parameter. |
| 3153 |
(read_next_name): Don't call handle_option if file.verbatim |
| 3154 |
is set. |
| 3155 |
* src/tar.c: New options --verbatim-files-from and |
| 3156 |
--no-verbatim-files-from. |
| 3157 |
|
| 3158 |
* doc/tar.texi: Document --verbatim-files-from and |
| 3159 |
--no-verbatim-files-from options. |
| 3160 |
* NEWS: Update. |
| 3161 |
* configure.ac: Version 1.28.90 |
| 3162 |
|
| 3163 |
* tests/T-null2.at: New testcase. |
| 3164 |
* tests/Makefile.am: Update. |
| 3165 |
* tests/testsuite.at: Update. |
| 3166 |
|
| 3167 |
2015-07-25 Anders Jonsson <[email protected]> (tiny |
| 3168 |
change) |
| 3169 |
|
| 3170 |
Fix typos (preceeded etc.) |
| 3171 |
|
| 3172 |
2015-07-13 Paul Eggert <[email protected]> |
| 3173 |
|
| 3174 |
tar: fix symlink race and symlink transform bug |
| 3175 |
|
| 3176 |
Problem reported by Tobias Stoeckmann in: |
| 3177 |
http://lists.gnu.org/archive/html/bug-tar/2015-07/msg00004.html |
| 3178 |
* gnulib.modules: Add areadlinkat-with-size. |
| 3179 |
* src/create.c: Include areadlink.h. |
| 3180 |
(dump_file0): Use areadlinkat_with_size, rather than trying to do |
| 3181 |
it by hand, incorrectly. This also avoids assumption that |
| 3182 |
the symlink contents fit on the stack. Also, use the transformed |
| 3183 |
link name, not the original link name, when deciding whether the |
| 3184 |
name is long enough to require writing a long link. |
| 3185 |
|
| 3186 |
2015-07-13 Paul Eggert <[email protected]> |
| 3187 |
|
| 3188 |
tar: port -d to longer symlinks |
| 3189 |
|
| 3190 |
* src/compare.c (diff_symlink): |
| 3191 |
Don't use alloca on symlink length; it might be too big for |
| 3192 |
the stack. |
| 3193 |
Don't assume that readlinkat's return value fits in 'int'. |
| 3194 |
Prefer memcmp to strncmp where either will do. |
| 3195 |
|
| 3196 |
2015-07-13 Paul Eggert <[email protected]> |
| 3197 |
|
| 3198 |
tar: port to recent gnulib |
| 3199 |
|
| 3200 |
* gnulib.modules: Remove 'acl' and add 'file-has-acl'. |
| 3201 |
|
| 3202 |
2015-07-13 Paul Eggert <[email protected]> |
| 3203 |
|
| 3204 |
tar: pacify GCC 5.1 -Wformat-signedness |
| 3205 |
|
| 3206 |
* lib/wordsplit.c (struct wordsplit_node.flags): |
| 3207 |
Now unsigned, so that 'printf ("%x", p->flags)' doesn't provoke |
| 3208 |
GCC. |
| 3209 |
* src/incremen.c (read_num, dumpdir_ok): |
| 3210 |
Don't printf an int with %x or %o. |
| 3211 |
|
| 3212 |
2015-04-16 Sergey Poznyakoff <[email protected]> |
| 3213 |
|
| 3214 |
Fix extraction from concatenated incremental archives. |
| 3215 |
|
| 3216 |
* src/common.h (remove_delayed_set_stat): New proto. |
| 3217 |
* src/extract.c (free_delayed_set_stat) |
| 3218 |
(remove_delayed_set_stat): New function. |
| 3219 |
(apply_nonancestor_delayed_set_stat): Use free_delayed_set_stat. |
| 3220 |
* src/misc.c (safer_rmdir): Remove delayed_set_stat entry |
| 3221 |
corresponding to the removed directory. |
| 3222 |
* tests/incr10.at: New test case. |
| 3223 |
* tests/Makefile.am: Add new test. |
| 3224 |
* tests/testsuite.at: Likewise. |
| 3225 |
|
| 3226 |
2015-04-10 Sergey Poznyakoff <[email protected]> |
| 3227 |
|
| 3228 |
Fix make installcheck |
| 3229 |
|
| 3230 |
Make installcheck would fail unless make check had been run |
| 3231 |
before it. |
| 3232 |
Reported by Erik Brangs <[email protected]> |
| 3233 |
|
| 3234 |
* tests/Makefile.am (installcheck-local): Depend on |
| 3235 |
$(check_PROGRAMS) |
| 3236 |
|
| 3237 |
2015-03-18 Paul Eggert <[email protected]> |
| 3238 |
|
| 3239 |
tar: don't assume GZIP |
| 3240 |
|
| 3241 |
* Makefile.am (dist-hook): Port to gzip implementations that |
| 3242 |
warn about nontrivial settings in the GZIP environment var. |
| 3243 |
|
| 3244 |
2015-03-17 Paul Eggert <[email protected]> |
| 3245 |
|
| 3246 |
tar: don't suggest GZIP |
| 3247 |
|
| 3248 |
* doc/tar.texi (gzip): Don't suggest using the GZIP environment |
| 3249 |
variable, as it will be deprecated in the next gzip release. |
| 3250 |
|
| 3251 |
2015-02-19 Sergey Poznyakoff <[email protected]> |
| 3252 |
|
| 3253 |
Improve compression format recognition |
| 3254 |
|
| 3255 |
Some comressed archives can pass the checksum test, which |
| 3256 |
makes tar |
| 3257 |
treat them as uncompressed archives. |
| 3258 |
|
| 3259 |
* src/buffer.c (check_compressed_archive): Test the checksum only |
| 3260 |
if the block we read looks like a valid tar header (i.e. has |
| 3261 |
a magic string). |
| 3262 |
|
| 3263 |
2015-01-06 Paul Eggert <[email protected]> |
| 3264 |
|
| 3265 |
tar: port xattr-at.c to Solaris 10 |
| 3266 |
|
| 3267 |
* lib/xattr-at.c (setxattrat, lsetxattrat, getxattrat, |
| 3268 |
lgetxattrat) |
| 3269 |
(listxattrat, llistxattrat): Compile only if HAVE_XATTRS, so that |
| 3270 |
the code doesn't call functions that are not declared. |
| 3271 |
|
| 3272 |
2015-01-06 Paul Eggert <[email protected]> |
| 3273 |
|
| 3274 |
tar: port wordsplit attribute to Sun C |
| 3275 |
|
| 3276 |
Reported by Ted Carr in: |
| 3277 |
http://lists.gnu.org/archive/html/bug-tar/2015-01/msg00002.html |
| 3278 |
* lib/wordsplit.h (__WORDSPLIT_ATTRIBUTE_FORMAT): |
| 3279 |
New macro, taken from Gnulib. |
| 3280 |
(struct wordsplit): Use it. |
| 3281 |
* lib/wordsplit.c (_wsplt_error): Use it. |
| 3282 |
|
| 3283 |
2014-12-17 Sergey Poznyakoff <[email protected]> |
| 3284 |
|
| 3285 |
Silent a cc warning |
| 3286 |
|
| 3287 |
* src/xheader.c (xheader_string_end): Make sure pointer |
| 3288 |
arithmetics applies on char*. |
| 3289 |
|
| 3290 |
2014-12-12 Paul Eggert <[email protected]> |
| 3291 |
|
| 3292 |
tar: port ISFOUND, WASFOUND to C89 |
| 3293 |
|
| 3294 |
Problem reported by Romano Maspero in: |
| 3295 |
http://lists.gnu.org/archive/html/bug-tar/2014-12/msg00010.html |
| 3296 |
* src/common.h (ISFOUND, WASFOUND): Port to C89. |
| 3297 |
|
| 3298 |
2014-12-10 Sergey Poznyakoff <[email protected]> |
| 3299 |
|
| 3300 |
Fix tar -c -l file file |
| 3301 |
|
| 3302 |
When the same file is added several times to the archive, count |
| 3303 |
correctly the number of hard links. See also 37ddfb0b. |
| 3304 |
|
| 3305 |
* src/create.c (dump_hard_link): Don't decrease nlink if it is 0. |
| 3306 |
* tests/link04.at: Test -cl options. |
| 3307 |
|
| 3308 |
2014-11-07 Sergey Poznyakoff <[email protected]> |
| 3309 |
|
| 3310 |
Honor the pax-option overrides when creating archive. |
| 3311 |
|
| 3312 |
Changes proposed by Denis Excoffier. |
| 3313 |
|
| 3314 |
* NEWS: Fix typos. |
| 3315 |
* doc/tar.texi: Fix typos. Improve recipe for creation of binary |
| 3316 |
equivalent archives. |
| 3317 |
* src/create.c (write_extended): Use the value of the |
| 3318 |
--mtime option (if specified) as the default for exthdr.mtime. |
| 3319 |
* src/xheader.c (xheader_store): Create the header if at least |
| 3320 |
one override is supplied in --pax-option. |
| 3321 |
|
| 3322 |
2014-11-07 Sergey Poznyakoff <[email protected]> |
| 3323 |
|
| 3324 |
Add testcase for the previous commit. |
| 3325 |
|
| 3326 |
* tests/sparse05.at: New file. |
| 3327 |
* tests/Makefile.am: Add sparse05.at |
| 3328 |
* tests/testsuite.at: Include sparse05.at |
| 3329 |
|
| 3330 |
2014-11-07 Pavel Raiskup <[email protected]> |
| 3331 |
|
| 3332 |
Fix bug in sparse file listing |
| 3333 |
|
| 3334 |
List posix archives containing sparse files >8GB correctly and |
| 3335 |
do not fail. |
| 3336 |
This fixes also bug in format of listing for sparse files >8GB - |
| 3337 |
now the |
| 3338 |
real size is printed instead of the effective one (this is |
| 3339 |
not strictly |
| 3340 |
posix format related). |
| 3341 |
|
| 3342 |
* src/list.c: Remove redundant assignment. |
| 3343 |
* src/tar.h: Add new 'real_size' and 'real_size_set' fields in |
| 3344 |
tar_stat_info struct. |
| 3345 |
* src/xheader.c: Correctly handle (especially sparse) file sizes |
| 3346 |
directly in |
| 3347 |
xheader_decode(). |
| 3348 |
|
| 3349 |
2014-10-15 Sergey Poznyakoff <[email protected]> |
| 3350 |
|
| 3351 |
Fix a typo |
| 3352 |
|
| 3353 |
2014-10-01 Sergey Poznyakoff <[email protected]> |
| 3354 |
|
| 3355 |
Fix README |
| 3356 |
|
| 3357 |
Remove the reference to PORTS |
| 3358 |
|
| 3359 |
2014-09-25 Sergey Poznyakoff <[email protected]> |
| 3360 |
|
| 3361 |
Bugfixes. |
| 3362 |
|
| 3363 |
* doc/tar.1: Fix typo in font spec. |
| 3364 |
* src/tar.c (sort_mode_arg, sort_mode_flag): Protect "inode" |
| 3365 |
(SAVEDIR_SORT_INODE) with D_INO_IN_DIRENT |
| 3366 |
|
| 3367 |
2014-09-18 Sergey Poznyakoff <[email protected]> |
| 3368 |
|
| 3369 |
Bugfix: entries read from the -T file did not get proper |
| 3370 |
matching_flag. |
| 3371 |
|
| 3372 |
* src/common.h (name_add_file): Change signature. |
| 3373 |
* src/names.c (name_elt_alloc_matflags): New function. |
| 3374 |
(name_add_name): Use name_elt_alloc_matflags. |
| 3375 |
(name_add_file): Take matching flags as third argument. |
| 3376 |
(read_next_name): Remove trailing slashes. |
| 3377 |
* src/tar.c (parse_opt): Pass matching_flags to name_add_file. |
| 3378 |
|
| 3379 |
* tests/T-dir00.at: New file. |
| 3380 |
* tests/T-dir01.at: New file. |
| 3381 |
* tests/Makefile.am: Add new testcases. |
| 3382 |
* tests/testsuite.at: Likewise. |
| 3383 |
|
| 3384 |
2014-08-16 Sergey Poznyakoff <[email protected]> |
| 3385 |
|
| 3386 |
Improve documentation. |
| 3387 |
|
| 3388 |
* doc/tar.1: Document --skip-old-files and --warning=existing-file |
| 3389 |
* doc/tar.texi: Document --warning=existing-file |
| 3390 |
|
| 3391 |
2014-07-27 Sergey Poznyakoff <[email protected]> |
| 3392 |
|
| 3393 |
Version 1.28 |
| 3394 |
|
| 3395 |
2014-07-27 Nathan Stratton Treadway <[email protected]> |
| 3396 |
|
| 3397 |
Minor change in docstrings. nor ch# |
| 3398 |
|
| 3399 |
Restructure the remfiles testsuite. |
| 3400 |
|
| 3401 |
2014-07-22 Sergey Poznyakoff <[email protected]> |
| 3402 |
|
| 3403 |
Don't build ttyemu and run tty I/O test if grantpt is not |
| 3404 |
available. |
| 3405 |
|
| 3406 |
* configure.ac (TAR_COND_GRANTPT): Define conditional depending |
| 3407 |
on whether grantpt is available. |
| 3408 |
* gnulib.modules: Remove grantpt. It relies upon a helper binary |
| 3409 |
pt_chown which it installs and which is useless in the testsuite. |
| 3410 |
* tests/Makefile.am [TAR_COND_GRANTPT]: Build ttyemu |
| 3411 |
* tests/iotty.at: Skip test if ttyemu is not build. |
| 3412 |
* tests/ttyemu.c (noecho): Fix error message |
| 3413 |
(main): Use TIOCSCTTY if it is defined. |
| 3414 |
|
| 3415 |
2014-07-22 Benno Schulenberg <[email protected]> |
| 3416 |
|
| 3417 |
Fix a typo and some wordings in the documentation. |
| 3418 |
|
| 3419 |
* doc/tar.texi: Fix some missing articles, and make it clearer |
| 3420 |
that "any" does not mean "anything" but "either of the two". |
| 3421 |
|
| 3422 |
2014-07-22 Nathan Stratton Treadway <[email protected]> |
| 3423 |
|
| 3424 |
Fix the testsuite |
| 3425 |
|
| 3426 |
* tests/incr07.at: Don't assume case-sensitive filesystem. |
| 3427 |
|
| 3428 |
2014-07-11 Paul Eggert <[email protected]> |
| 3429 |
|
| 3430 |
tar: minor fixups related to recent checkpoint.c change |
| 3431 |
|
| 3432 |
* src/checkpoint.c (getwidth, format_checkpoint_string): |
| 3433 |
Use long and strtol, not int, to avoid overflow issues. |
| 3434 |
(getwidth): Don't assume termios.h defines TIOCGWINSZ, |
| 3435 |
as it doesn't on some older hosts. |
| 3436 |
|
| 3437 |
2014-07-11 Sergey Poznyakoff <[email protected]> |
| 3438 |
|
| 3439 |
Bugfixes |
| 3440 |
|
| 3441 |
* gnulib.modules: Add faccessat |
| 3442 |
* src/checkpoint.c: Include termios.h |
| 3443 |
|
| 3444 |
2014-06-29 Nathan Stratton Treadway <[email protected]> |
| 3445 |
|
| 3446 |
tar: document xgetcwd test case better |
| 3447 |
|
| 3448 |
* src/misc.c (normalize_filename): Add commentary for clarity. |
| 3449 |
* tests/extrac09.at: Retitle test case and add comments for |
| 3450 |
clarity. |
| 3451 |
|
| 3452 |
2014-06-24 Sergey Poznyakoff <[email protected]> |
| 3453 |
|
| 3454 |
Fix typos in ChangeLog |
| 3455 |
|
| 3456 |
* ChangeLog.CVS: Fix typos. |
| 3457 |
* ChangeLog.amend: New file. |
| 3458 |
* Makefile.am: Define changelog_amend_file. |
| 3459 |
|
| 3460 |
2014-04-30 Paul Eggert <[email protected]> |
| 3461 |
|
| 3462 |
tar: do not dereference NULL pointer with '--remove-files .' |
| 3463 |
|
| 3464 |
Problem reported by Thorsten Hirsch in: |
| 3465 |
http://lists.gnu.org/archive/html/bug-tar/2014-04/msg00011.html |
| 3466 |
* src/unlink.c (flush_deferred_unlinks): |
| 3467 |
Do not attempt to find the parent of "." when "." is |
| 3468 |
at the top level. |
| 3469 |
* tests/remfiles10.at: New file. |
| 3470 |
* tests/Makefile.am (TESTSUITE_AT): |
| 3471 |
* tests/testsuite.at: Add it. |
| 3472 |
|
| 3473 |
2014-03-27 Sergey Poznyakoff <[email protected]> |
| 3474 |
|
| 3475 |
Refuse to write archive contents to a tty. |
| 3476 |
|
| 3477 |
* NEWS: Update. |
| 3478 |
* src/buffer.c (_open_archive): Refuse to write to a tty. |
| 3479 |
* tests/iotty.at: Test output to a tty. |
| 3480 |
|
| 3481 |
2014-03-26 Vitezslav Cizek <[email protected]> |
| 3482 |
|
| 3483 |
fix an eternal loop in handle_option |
| 3484 |
|
| 3485 |
* src/names.c (handle_option): increment loop counter |
| 3486 |
|
| 3487 |
2014-03-20 Sergey Poznyakoff <[email protected]> |
| 3488 |
|
| 3489 |
Fail if archive comes from a terminal. |
| 3490 |
|
| 3491 |
Based on patch from Pavel Raiskup <[email protected]>. |
| 3492 |
|
| 3493 |
* gnulib.modules: Add new modules. |
| 3494 |
* src/buffer.c (_open_archive): Refuse to read archive from a tty. |
| 3495 |
* tests/Makefile.am (TESTSUITE_AT): Add iotty.at |
| 3496 |
(check_PROGRAMS): New program ttyemu |
| 3497 |
* tests/testsuite.at: Include iotty.at |
| 3498 |
* tests/iotty.at: New file. |
| 3499 |
* tests/ttyemu.c: New file. |
| 3500 |
|
| 3501 |
2014-03-13 Paul Eggert <[email protected]> |
| 3502 |
|
| 3503 |
tar: port to Solaris 9 |
| 3504 |
|
| 3505 |
Problem reported by Jesse C in: |
| 3506 |
http://lists.gnu.org/archive/html/bug-tar/2014-03/msg00034.html |
| 3507 |
* gnulib.modules: Add strtoimax and strtoumax, since tar invokes |
| 3508 |
these functions directly and they don't exist on Solaris 9. |
| 3509 |
|
| 3510 |
2014-02-25 Sergey Poznyakoff <[email protected]> |
| 3511 |
|
| 3512 |
Test the --[no-]recursive options (see commit 2bd9c153). |
| 3513 |
|
| 3514 |
* tests/recurs02.at: New test case. |
| 3515 |
* tests/Makefile.am: Add new file. |
| 3516 |
* tests/testsuite.at: Add new file. |
| 3517 |
|
| 3518 |
2014-02-22 Sergey Poznyakoff <[email protected]> |
| 3519 |
|
| 3520 |
Support exclusion patterns from various VCS ignore lists. |
| 3521 |
|
| 3522 |
* src/Makefile.am (tar_SOURCES): Add exclist.c |
| 3523 |
* src/common.h (EXCL_DEFAULT, EXCL_RECURSIVE) |
| 3524 |
(EXCL_NON_RECURSIVE): New flags. |
| 3525 |
(excfile_add, info_attach_exclist) |
| 3526 |
(info_cleanup_exclist,info_free_exclist) |
| 3527 |
(exclude_vcs_ignores): New prototypes. |
| 3528 |
* src/create.c (dump_dir0): Call info_attach_exclist. |
| 3529 |
* src/exclist.c: New file. |
| 3530 |
* src/incremen.c (scan_directory): Call info_attach_exclist. |
| 3531 |
* src/names.c (excluded_name): Moved to exclist.c. Change |
| 3532 |
signature. |
| 3533 |
All uses updated. |
| 3534 |
* src/tar.c: New options: --exclude-ignore, |
| 3535 |
--exclude-ignore-recursive |
| 3536 |
and --exclude-vcs-ignores. |
| 3537 |
(tar_stat_destroy): Free exclist. |
| 3538 |
* src/tar.h (tar_stat_info): New member exclude_list. |
| 3539 |
|
| 3540 |
* NEWS: Document new exclusion options. |
| 3541 |
* doc/tar.texi: Likewise. |
| 3542 |
* doc/tar.1: Likewise. |
| 3543 |
|
| 3544 |
2014-02-14 Sergey Poznyakoff <[email protected]> |
| 3545 |
|
| 3546 |
Fix in testsuite |
| 3547 |
|
| 3548 |
* acls03.at: Fix improper invocation of setfacl. |
| 3549 |
|
| 3550 |
2014-02-14 Pavel Raiskup <[email protected]> |
| 3551 |
|
| 3552 |
testsuite: add test for buggy default ACLs |
| 3553 |
|
| 3554 |
* tests/Makefile.am: Mention acls03.at. |
| 3555 |
* tests/testsuite.at: Likewise. |
| 3556 |
* tests/acls03.at: New testcase. |
| 3557 |
|
| 3558 |
2014-02-14 Pavel Raiskup <[email protected]> |
| 3559 |
|
| 3560 |
acls: bugfix for default ACLs extraction |
| 3561 |
|
| 3562 |
When --acls option is on (regardless of tarball contents or |
| 3563 |
tarball format), we should explicitly set OR delete default ACLs |
| 3564 |
for extracted directories. Prior to this update, we always |
| 3565 |
created arbitrary default ACLs based standard file permissions. |
| 3566 |
|
| 3567 |
* configure.ac (with_posix_acls): Check also for acl_free and |
| 3568 |
acl_delete_def_file to mark IEEE 1003.1e ACLs as supported. |
| 3569 |
* src/xattrs.c (acl_delete_def_file_at): New function. |
| 3570 |
(xattrs__acls_set): Do not treat acls_option at all; Delete |
| 3571 |
default ACLs if appropriate. |
| 3572 |
|
| 3573 |
References: |
| 3574 |
http://www.mail-archive.com/[email protected]/msg04355.html |
| 3575 |
Thanks: Juan J. Martínez and Mark Steinborn |
| 3576 |
|
| 3577 |
2014-02-14 Pavel Raiskup <[email protected]> |
| 3578 |
|
| 3579 |
tar: imply --xattrs when --xattrs-{inc,exc}lude used |
| 3580 |
|
| 3581 |
Options --xattrs-include=MASK and --xattrs-exclude=MASK now turn |
| 3582 |
on the --xattrs option. |
| 3583 |
|
| 3584 |
Fix also bug in printing in xattrs.c - don't print when option is |
| 3585 |
negative. |
| 3586 |
|
| 3587 |
* src/tar.c (set_xattr_option): New static function. |
| 3588 |
(parse_opt): Call new function when --xatrrs, --xattrs-include or |
| 3589 |
--xattrs-exclude option is used. |
| 3590 |
* src/xattrs.c (xattrs_print, xattrs_print_char): Expect positive |
| 3591 |
values in options. |
| 3592 |
|
| 3593 |
2014-02-14 Sergey Poznyakoff <[email protected]> |
| 3594 |
|
| 3595 |
THANKS: Add Anthony G. Basile. |
| 3596 |
|
| 3597 |
2014-02-14 Sergey Poznyakoff <[email protected]> |
| 3598 |
|
| 3599 |
Use correct headers/libraries when providing xattr support |
| 3600 |
|
| 3601 |
See https://savannah.gnu.org/patch/index.php?8252. Patch provided |
| 3602 |
by Anthony G. Basile. |
| 3603 |
|
| 3604 |
* acinclude.m4 (TAR_HEADERS_ATTR_XATTR_H): Look for <sys/xattr.h> |
| 3605 |
first and then for <attr/xattr.h>. Link against libattr.so if |
| 3606 |
needed. |
| 3607 |
* lib/xattr-at.h: Include sys/xattr.h or attr/xattr.h, depending |
| 3608 |
on which one is detected. |
| 3609 |
* src/Makefile.am [TAR_LIB_ATTR] (tar_LDADD): Link against -lattr. |
| 3610 |
|
| 3611 |
2014-02-14 Sergey Poznyakoff <[email protected]> |
| 3612 |
|
| 3613 |
Minor change |
| 3614 |
|
| 3615 |
* src/tar.c (decode_options): Silently ignore --one-top-level |
| 3616 |
if used with a non-reading command. |
| 3617 |
|
| 3618 |
2014-02-14 Sergey Poznyakoff <[email protected]> |
| 3619 |
|
| 3620 |
New option --sort=ORDER |
| 3621 |
|
| 3622 |
This option makes tar sort the entries of directories that will be |
| 3623 |
added to an archive according to ORDER (none, name, or inode). |
| 3624 |
|
| 3625 |
Based on proposition by Dick Streefland |
| 3626 |
(https://savannah.gnu.org/patch/?7892). |
| 3627 |
|
| 3628 |
* src/common.h (savedir_sort_order): New global. |
| 3629 |
* src/create.c: Pass savedir_sort_order to streamsavedir. |
| 3630 |
* src/misc.c: Likewise. |
| 3631 |
* src/tar.c: New option --sort. |
| 3632 |
|
| 3633 |
* NEWS: Update. |
| 3634 |
* doc/tar.texi: Document the --sort option. |
| 3635 |
* doc/tar.1: Likewise. |
| 3636 |
|
| 3637 |
2014-02-13 Sergey Poznyakoff <[email protected]> |
| 3638 |
|
| 3639 |
Fix the testsuite |
| 3640 |
|
| 3641 |
* tests/opcomp01.at: Update expected error messages. |
| 3642 |
* tests/opcomp03.at: Likewise. |
| 3643 |
|
| 3644 |
2014-02-13 Sergey Poznyakoff <[email protected]> |
| 3645 |
|
| 3646 |
Fix --one-top-level used together with --list. |
| 3647 |
|
| 3648 |
* src/extract.c: Move one_top_level stuff to tar.c |
| 3649 |
(decode_options). |
| 3650 |
* src/tar.c (option_conflict_error): New function. |
| 3651 |
(decode_options): Use option_conflict_error to complain about |
| 3652 |
conflicting options in a uniform manner. |
| 3653 |
Process one_top_level options here. |
| 3654 |
(request_stdin): Fix error message. |
| 3655 |
* tests/onetop04.at: New testcase: check --one-top-level with |
| 3656 |
--list. |
| 3657 |
* tests/Makefile.am: Add new testcase. |
| 3658 |
* tests/testsuite.at: Add new testcase. |
| 3659 |
|
| 3660 |
2014-02-13 Sergey Poznyakoff <[email protected]> |
| 3661 |
|
| 3662 |
Fix NEWS |
| 3663 |
|
| 3664 |
* NEWS: Remove duplicate description of the --one-top-level |
| 3665 |
option. |
| 3666 |
|
| 3667 |
2014-02-12 Sergey Poznyakoff <[email protected]> |
| 3668 |
|
| 3669 |
configure.ac: look for host-prefixed ar |
| 3670 |
|
| 3671 |
See https://savannah.gnu.org/patch/?8183 |
| 3672 |
|
| 3673 |
2014-02-10 Sergey Poznyakoff <[email protected]> |
| 3674 |
|
| 3675 |
Bugfix |
| 3676 |
|
| 3677 |
* src/suffix.c (find_compression_suffix): Fix eventual coredump. |
| 3678 |
|
| 3679 |
2014-02-10 Sergey Poznyakoff <[email protected]> |
| 3680 |
|
| 3681 |
Fix docs. |
| 3682 |
|
| 3683 |
2014-02-10 Sergey Poznyakoff <[email protected]> |
| 3684 |
|
| 3685 |
Update docs. |
| 3686 |
|
| 3687 |
* NEWS: Document --one-top-level |
| 3688 |
* THANKS: Mention Connor Behan |
| 3689 |
|
| 3690 |
2014-01-30 Sergey Poznyakoff <[email protected]> |
| 3691 |
|
| 3692 |
Update copyright years. |
| 3693 |
|
| 3694 |
2014-01-28 Sergey Poznyakoff <[email protected]> |
| 3695 |
|
| 3696 |
Improve one-top-level functionality |
| 3697 |
|
| 3698 |
Make sure the changes become visible with |
| 3699 |
--show-transformed-names. |
| 3700 |
|
| 3701 |
* src/common.h (strip_compression_suffix): New function. |
| 3702 |
(one_top_level): Rename to one_top_level_dir. All uses changed. |
| 3703 |
* src/extract.c (extr_init): Use strip_compression_suffix. |
| 3704 |
Bail out if unable to determine top-level directory. |
| 3705 |
(maybe_prepend_name): Remove. All uses removed. |
| 3706 |
* src/tar.c (options): --one-top-level takes optional argument. |
| 3707 |
(parse_opt): Handle it. |
| 3708 |
* src/list.c (enforce_one_top_level): New function. |
| 3709 |
(transform_stat_info): Call enforce_one_top_level if required. |
| 3710 |
* src/suffix.c (compression_suffixes): List "tar" (no |
| 3711 |
compression); |
| 3712 |
terminate with NULL entry. |
| 3713 |
(find_compression_suffix): New static. |
| 3714 |
(strip_compression_suffix): New function. |
| 3715 |
|
| 3716 |
* doc/tar.1: Update. |
| 3717 |
* doc/tar.texi: Update. |
| 3718 |
|
| 3719 |
* tests/onetop01.at: New testcase. |
| 3720 |
* tests/onetop02.at: New testcase. |
| 3721 |
* tests/onetop03.at: New testcase. |
| 3722 |
* tests/Makefile.am: Add new testcases. |
| 3723 |
* tests/testsuite.at: Likewise. |
| 3724 |
|
| 3725 |
2014-01-27 Connor Behan <[email protected]> |
| 3726 |
|
| 3727 |
Detect tarbombs while extracting |
| 3728 |
|
| 3729 |
* src/common.h (one_top_level_option): New global. |
| 3730 |
(one_top_level): New global. |
| 3731 |
* src/extract.c (extr_init): If one_top_level_option is set, |
| 3732 |
determine |
| 3733 |
the name one_top_level that might have to be prepended. |
| 3734 |
(extract_archive): If one_top_level_option is set, prepend |
| 3735 |
one_top_level |
| 3736 |
to all names that don't already start with it. |
| 3737 |
* src/tar.c (ONE_TOP_LEVEL_OPTION): New content. |
| 3738 |
(options): New option --one-top-level. |
| 3739 |
(parse_opt): Handle this option. |
| 3740 |
(decode_options): Make it conflict with --absolute-names. |
| 3741 |
|
| 3742 |
2014-01-27 Sergey Poznyakoff <[email protected]> |
| 3743 |
|
| 3744 |
Don't install rmt.8 if rmt is not built. |
| 3745 |
|
| 3746 |
* doc/Makefile.am [PU_RMT_COND]: Define RMT_8 |
| 3747 |
(dist_man_MANS): use RMT_8 instead of the hardcoded rmt.8 |
| 3748 |
|
| 3749 |
2014-01-27 Sergey Poznyakoff <[email protected]> |
| 3750 |
|
| 3751 |
Provide tar(1) and rmt(8) manpages. |
| 3752 |
|
| 3753 |
* NEWS: Update. |
| 3754 |
* doc/Makefile.am: Add manpages. |
| 3755 |
* doc/tar.1: New file. |
| 3756 |
|
| 3757 |
* src/tar.c (tar_help_filter): Handle LZOP_OPTION. |
| 3758 |
|
| 3759 |
2014-01-23 Sergey Poznyakoff <[email protected]> |
| 3760 |
|
| 3761 |
Make sure transformed file names retain trailing slash in listing. |
| 3762 |
|
| 3763 |
* src/list.c (simple_print_header): Print trailing slash |
| 3764 |
if using the transformed name. |
| 3765 |
Use had_trailing_slash instead of analyzing last byte if temp_name |
| 3766 |
|
| 3767 |
2014-01-22 Sergey Poznyakoff <[email protected]> |
| 3768 |
|
| 3769 |
checkpoint actions: further improvements. |
| 3770 |
|
| 3771 |
* NEWS: Update. |
| 3772 |
* doc/tar.texi: Update. |
| 3773 |
* src/buffer.c (print_stats): Avoid use of additional string |
| 3774 |
buffer. |
| 3775 |
Allow for text to be NULL. |
| 3776 |
Call gettext if it is not. |
| 3777 |
(format_total_stats): Don't use gettext when calling print_stats. |
| 3778 |
* src/checkpoint.c (def_format): Change default format. |
| 3779 |
(format_checkpoint_string): Implement optional arguments for |
| 3780 |
T conversion. |
| 3781 |
(finish_checkpoint_actions): Rename to checkpoint_flush_actions, |
| 3782 |
make extern. All uses changed. |
| 3783 |
* src/common.h (checkpoint_flush_actions): New proto. |
| 3784 |
* src/tar.c (main): Set error_hook |
| 3785 |
|
| 3786 |
2014-01-22 Sergey Poznyakoff <[email protected]> |
| 3787 |
|
| 3788 |
Improve checkpoint interface. |
| 3789 |
|
| 3790 |
* src/buffer.c (format_total_stats): The format arg is const |
| 3791 |
All uses updated. |
| 3792 |
(default_total_format): const |
| 3793 |
* src/checkpoint.c (tty, tty_cleanup): New static. |
| 3794 |
(format_checkpoint_string): New "canned" format %c |
| 3795 |
(checkpoint_finish): New function. |
| 3796 |
* src/common.h (checkpoint_finish): New proto. |
| 3797 |
* src/tar.c (main): Call checkpoint_finish.` |
| 3798 |
|
| 3799 |
2014-01-21 Sergey Poznyakoff <[email protected]> |
| 3800 |
|
| 3801 |
Implement statistics display in checkpoint actions. |
| 3802 |
|
| 3803 |
* NEWS: Update. |
| 3804 |
* configure.ac: Version 1.27.90 |
| 3805 |
* gnulib.modules: Add fprintftime. |
| 3806 |
* doc/tar.texi: Document the "totals" action and new format |
| 3807 |
specifiers |
| 3808 |
for echo and ttyout checkpoint actions. |
| 3809 |
* src/buffer.c (compute_duration): Return computed value. |
| 3810 |
(print_stats): Don't print trailing newline. Return number of |
| 3811 |
characters output. |
| 3812 |
(format_total_stats): New function. |
| 3813 |
(print_total_stats): Rewrite via format_total_stats. |
| 3814 |
* src/checkpoint.c (checkpoint_opcode) <cop_totals>: New opcode. |
| 3815 |
(checkpoint_compile_action): Handle cop_totals. |
| 3816 |
(expand_checkpoint_string): Remove. |
| 3817 |
(format_checkpoint_string): New function to be used instead of |
| 3818 |
expand_checkpoint_string. All callers updated. |
| 3819 |
* src/common.h (TF_READ,TF_WRITE) |
| 3820 |
(TF_DELETED): New constants. |
| 3821 |
(format_total_stats,print_total_stats): New protos. |
| 3822 |
|
| 3823 |
2014-01-10 Sergey Poznyakoff <[email protected]> |
| 3824 |
|
| 3825 |
Remove shar archives from distribution. |
| 3826 |
|
| 3827 |
These are going to phase out in automake 2.0 |
| 3828 |
|
| 3829 |
2014-01-10 Sergey Poznyakoff <[email protected]> |
| 3830 |
|
| 3831 |
Fix the use of --no-recursion and --recursion options. |
| 3832 |
|
| 3833 |
Each option remains in effect until cancelled by the next |
| 3834 |
occurrence |
| 3835 |
of its counterpart, as stated in the documentation. |
| 3836 |
|
| 3837 |
* src/names.c (name_next_elt): Restore recursion_option from the |
| 3838 |
value of matching_flags. |
| 3839 |
|
| 3840 |
2014-01-09 Sergey Poznyakoff <[email protected]> |
| 3841 |
|
| 3842 |
Minor bugfixes |
| 3843 |
|
| 3844 |
* src/compare.c (diff_dumpdir): Close descriptor if fstat failed. |
| 3845 |
(diff_multivol): Make sure the descriptor is closed and eventual |
| 3846 |
errors reported if lseek fails. |
| 3847 |
Both reported by Jiri Kukacka. |
| 3848 |
|
| 3849 |
2014-01-07 Paul Eggert <[email protected]> |
| 3850 |
|
| 3851 |
tar: work around IBM XL C bug |
| 3852 |
|
| 3853 |
* src/incremen.c (show_snapshot_field_ranges) |
| 3854 |
(write_directory_file_entry): Use simpler array size expression, |
| 3855 |
one that evaluates to the same value. This works around |
| 3856 |
a compiler |
| 3857 |
bug with IBM XL C. Problem reported by Yannick Bergeron in |
| 3858 |
<http://lists.gnu.org/archive/html/bug-tar/2014-01/msg00009.html>. |
| 3859 |
|
| 3860 |
2014-01-03 Paul Eggert <[email protected]> |
| 3861 |
|
| 3862 |
tar: update ancient configure cruft |
| 3863 |
|
| 3864 |
* configure.ac: Use AC_PROG_CC_STDC, not just AC_PROG_CC. |
| 3865 |
Remove obsolete macros AC_ISC_POSIX, AC_HEADER_SYS_WAIT, |
| 3866 |
AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC, AC_TYPE_SIGNAL, |
| 3867 |
AC_TYPE_SIZE_T. |
| 3868 |
* lib/prepargs.c (IN_CTYPE_DOMAIN): Remove. All uses removed. |
| 3869 |
* src/list.c (from_header): Use isspace, not ISSPACE. |
| 3870 |
* src/system.c (pipe_handler, sys_exec_info_script): |
| 3871 |
* src/tar.c (sigstat): |
| 3872 |
Use void, not RETSIGTYPE. |
| 3873 |
|
| 3874 |
2013-11-17 Sergey Poznyakoff <[email protected]> |
| 3875 |
|
| 3876 |
Version 1.27.1 |
| 3877 |
|
| 3878 |
2013-11-17 Sergey Poznyakoff <[email protected]> |
| 3879 |
|
| 3880 |
Fix star compatibility (sparse headers) |
| 3881 |
|
| 3882 |
* src/sparse.c (star_get_sparse_info): Update file->dumped_size |
| 3883 |
|
| 3884 |
2013-11-17 Sergey Poznyakoff <[email protected]> |
| 3885 |
|
| 3886 |
Fix GNU long link header. |
| 3887 |
|
| 3888 |
* src/create.c (write_gnu_long_link): Set timestamp to |
| 3889 |
0 for backward compatibility. Bug reported by David Barri. |
| 3890 |
* THANKS: Update. |
| 3891 |
|
| 3892 |
2013-11-17 Sergey Poznyakoff <[email protected]> |
| 3893 |
|
| 3894 |
Fix unquoting of input file names. |
| 3895 |
|
| 3896 |
* src/names.c (read_next_name): Unquote file names coming from the |
| 3897 |
-T argument. Bug reported by Nicolas Dudebout. |
| 3898 |
* THANKS: Update. |
| 3899 |
|
| 3900 |
2013-10-24 Paul Eggert <[email protected]> |
| 3901 |
|
| 3902 |
build: fix bug where 'configure --with-posix-acls' disables ACLs |
| 3903 |
|
| 3904 |
Reported by Lars Wendler in |
| 3905 |
<http://lists.gnu.org/archive/html/bug-tar/2013-10/msg00022.html>. |
| 3906 |
* configure.ac (with_posix_acls): Fix typo. |
| 3907 |
|
| 3908 |
2013-10-23 Paul Eggert <[email protected]> |
| 3909 |
|
| 3910 |
Fix core dump on Solaris 10 when "." isn't readable. |
| 3911 |
|
| 3912 |
Reported by Peter Kruse in |
| 3913 |
<http://lists.gnu.org/archive/html/bug-tar/2013-10/msg00017.html>. |
| 3914 |
This doesn't fix all the Solaris 10 test failures, just the |
| 3915 |
core dump. |
| 3916 |
* src/common.h, src/misc.c (tar_getcdpath): Now static. |
| 3917 |
* src/misc.c (normalize_filename): Report a fatal error |
| 3918 |
if cdpath is null, since we don't know the absolute name |
| 3919 |
of the working directory in that case. FIXME: there should |
| 3920 |
be no need to know absolute file names. |
| 3921 |
(chdir_arg): Simplify wd allocation. |
| 3922 |
Don't assume that xgetcwd returns non-null. |
| 3923 |
|
| 3924 |
2013-10-06 Sergey Poznyakoff <[email protected]> |
| 3925 |
|
| 3926 |
Version 1.27 |
| 3927 |
|
| 3928 |
* NEWS: Update. |
| 3929 |
* configure.ac: Update. |
| 3930 |
|
| 3931 |
2013-10-06 Sergey Poznyakoff <[email protected]> |
| 3932 |
|
| 3933 |
Minor fixes. |
| 3934 |
|
| 3935 |
* src/names.c: Include argp.h |
| 3936 |
* tests/testsuite.at (AT_XATTRS_UTILS_PREREQ) |
| 3937 |
(AT_SELINUX_UTILS_PREREQ,AT_ACLS_UTILS_PREREQ) |
| 3938 |
(AT_CAPABILITIES_UTILS_PREREQ) |
| 3939 |
(AT_XATTRS_PREREQ,AT_SELINUX_PREREQ) |
| 3940 |
(AT_ACLS_PREREQ): Use POSIX-compatible syntax for |
| 3941 |
mktemp. |
| 3942 |
* tests/incr08.at: Fix find usage. |
| 3943 |
|
| 3944 |
2013-10-05 Sergey Poznyakoff <[email protected]> |
| 3945 |
|
| 3946 |
Xfail the remfiles09b test. |
| 3947 |
|
| 3948 |
* tests/remfiles09b.at: Turn into expected failure. |
| 3949 |
|
| 3950 |
2013-10-05 Nathan Stratton Treadway <[email protected]> |
| 3951 |
|
| 3952 |
Tiny change |
| 3953 |
|
| 3954 |
* scripts/tar-snapshot-edit: Mention --show-snapshot-field-ranges |
| 3955 |
option |
| 3956 |
|
| 3957 |
2013-10-05 Pavel Raiskup <[email protected]> |
| 3958 |
|
| 3959 |
Tiny change |
| 3960 |
|
| 3961 |
* configure.ac (RSH): Define as AC_ARG_VAR. |
| 3962 |
|
| 3963 |
2013-10-05 Sergey Poznyakoff <[email protected]> |
| 3964 |
|
| 3965 |
Fix namespace contamination in testsuite. |
| 3966 |
|
| 3967 |
* tests/append01.at: Use m4_pushdef/m4_popdef to define local |
| 3968 |
macros. |
| 3969 |
* tests/delete03.at: Likewise. |
| 3970 |
* tests/exclude06.at: Likewise. |
| 3971 |
* tests/incr04.at: Likewise. |
| 3972 |
* tests/link03.at: Likewise. |
| 3973 |
* tests/long01.at: Likewise. |
| 3974 |
* tests/longv7.at: Likewise. |
| 3975 |
* tests/lustar01.at: Likewise. |
| 3976 |
* tests/lustar02.at: Likewise. |
| 3977 |
* tests/lustar03.at: Likewise. |
| 3978 |
* tests/multiv05.at: Likewise. |
| 3979 |
* tests/sparse04.at: Likewise. |
| 3980 |
|
| 3981 |
2013-10-05 Nathan Stratton Treadway <[email protected]> |
| 3982 |
|
| 3983 |
Provide comprehensive testcases for various file removal modes. |
| 3984 |
|
| 3985 |
* tests/Makefile.am: Add new testcases. |
| 3986 |
* tests/testsuite.at: Likewise. |
| 3987 |
* tests/incr09.at: Add description. |
| 3988 |
* tests/remfiles04a.at: New file. |
| 3989 |
* tests/remfiles05.at: Rename to ... |
| 3990 |
* tests/remfiles04b.at: ... this. |
| 3991 |
* tests/remfiles04.at: Rename to ... |
| 3992 |
* tests/remfiles04c.at: ... this. |
| 3993 |
* tests/remfiles05a.at: New file. |
| 3994 |
* tests/remfiles05b.at: New file. |
| 3995 |
* tests/remfiles06.at: Rename to ... |
| 3996 |
* tests/remfiles05c.at: ... this. |
| 3997 |
* tests/remfiles06a.at: New file. |
| 3998 |
* tests/remfiles06b.at: New file. |
| 3999 |
* tests/remfiles06c.at: New file. |
| 4000 |
* tests/remfiles07a.at: New file. |
| 4001 |
* tests/remfiles07b.at: New file. |
| 4002 |
* tests/remfiles07c.at: New file. |
| 4003 |
* tests/remfiles08a.at: New file. |
| 4004 |
* tests/remfiles08b.at: New file. |
| 4005 |
* tests/remfiles08c.at: New file. |
| 4006 |
* tests/remfiles08.at: Rename to ... |
| 4007 |
* tests/remfiles09a.at: ... this. |
| 4008 |
* tests/remfiles09b.at: New file. |
| 4009 |
* tests/remfiles07.at: Rename to ... |
| 4010 |
* tests/remfiles09c.at: ... this. |
| 4011 |
|
| 4012 |
2013-10-03 Sergey Poznyakoff <[email protected]> |
| 4013 |
|
| 4014 |
Tiny changes. |
| 4015 |
|
| 4016 |
* src/misc.c: Fix comments, rename wd.cwd to wd.abspath (Nathan |
| 4017 |
Stratton |
| 4018 |
Treadway); |
| 4019 |
* src/tar.c (options): Reword description of the --starting-file |
| 4020 |
and |
| 4021 |
--preserve-order options. |
| 4022 |
(decode_options): Both --starting-file and --preserve-order |
| 4023 |
have meaning |
| 4024 |
only when used together with an archive reading command. (Pavel |
| 4025 |
Raiskup). |
| 4026 |
|
| 4027 |
2013-10-01 Sergey Poznyakoff <[email protected]> |
| 4028 |
|
| 4029 |
Revamp tar_getcwd/normalize_filename stuff. |
| 4030 |
|
| 4031 |
The changes are based on the discussion with Nathan. |
| 4032 |
|
| 4033 |
* src/common.h (normalize_filename): Take two arguments. All |
| 4034 |
callers updated. |
| 4035 |
(tar_getcwd): Replaced with .. |
| 4036 |
(tar_getcdpath): New proto. |
| 4037 |
* src/misc.c (normalize_filename): Take two arguments. |
| 4038 |
(chdir_arg): Populate cwd along with creating the |
| 4039 |
structure. |
| 4040 |
(tar_getcwd): Removed. |
| 4041 |
(tar_getcdpath): New function. |
| 4042 |
|
| 4043 |
* tests/incr09.at: New test case. |
| 4044 |
* tests/Makefile.am: Add new tests. |
| 4045 |
* tests/testsuite.at: Likewise. |
| 4046 |
|
| 4047 |
2013-09-27 Sergey Poznyakoff <[email protected]> |
| 4048 |
|
| 4049 |
Bugfix |
| 4050 |
|
| 4051 |
* tests/remfiles08.at: Restore missing find |
| 4052 |
|
| 4053 |
2013-09-26 Sergey Poznyakoff <[email protected]> |
| 4054 |
|
| 4055 |
Use relative addressing in deferred unlinks. |
| 4056 |
|
| 4057 |
* src/common.h (tar_dirname): New function. |
| 4058 |
* src/misc.c (normalize_filename_x): Make extern. |
| 4059 |
(tar_dirname): New function. |
| 4060 |
(tar_getcwd): Take into account absolute pathnames. |
| 4061 |
* src/unlink.c (deferred_unlink) <dir_idx>: New member; keeps the |
| 4062 |
value of chdir_current at the moment of structure allocation. |
| 4063 |
(flush_deferred_unlinks): Use chdir_do and relative addressing. |
| 4064 |
(queue_deferred_unlink): Initialize dir_idx. |
| 4065 |
* tests/Makefile.am: Add new tests. |
| 4066 |
* tests/testsuite.at: Add new tests. |
| 4067 |
* tests/remfiles06.at: Fix description. |
| 4068 |
* tests/remfiles07.at: Fix description. |
| 4069 |
* tests/remfiles08.at: New test case. |
| 4070 |
|
| 4071 |
2013-09-25 Nathan Stratton Treadway <[email protected]> |
| 4072 |
|
| 4073 |
Improve tar-snapshot-edit |
| 4074 |
|
| 4075 |
Support architecture-specific field ranges for the "-c" function. |
| 4076 |
Better handle negative or larger-than-32-bit field values even |
| 4077 |
when running in 32-bit Perl (for the default "print a summary" |
| 4078 |
function) |
| 4079 |
|
| 4080 |
2013-09-25 Sergey Poznyakoff <[email protected]> |
| 4081 |
|
| 4082 |
Improve tar_getcwd |
| 4083 |
|
| 4084 |
* src/common.h (tar_getcwd): Return pointer is const. |
| 4085 |
* src/misc.c (wd) <cwd>: New member. |
| 4086 |
(chdir_arg): Initialize cwd. |
| 4087 |
(tar_getcwd): Use cwd member to cache the result. Take into |
| 4088 |
account absolute pathnames, |
| 4089 |
(normalize_filename): Don't free the value |
| 4090 |
returned from tar_getcwd. |
| 4091 |
* src/names.c (name_next_elt): Remove leftover call chdir(). |
| 4092 |
* tests/Makefile.am: Add new tests. |
| 4093 |
* tests/testsuite.at: Likewise. |
| 4094 |
|
| 4095 |
* tests/incr08.at: New testcase. |
| 4096 |
* tests/remfiles04.at: New testcase. |
| 4097 |
* tests/remfiles05.at: New testcase. |
| 4098 |
* tests/remfiles06.at: New testcase. |
| 4099 |
* tests/remfiles07.at: New testcase. |
| 4100 |
|
| 4101 |
2013-09-24 Sergey Poznyakoff <[email protected]> |
| 4102 |
|
| 4103 |
Fix normalize_filename. |
| 4104 |
|
| 4105 |
The function did not take into account eventual -C options, which |
| 4106 |
in particular led to various problems when using -C and |
| 4107 |
--remove-files |
| 4108 |
together. |
| 4109 |
|
| 4110 |
* src/common.h (namebuf_add_dir,namebuf_finish) |
| 4111 |
(tar_getcwd): New prototypes. |
| 4112 |
* src/misc.c (namebuf_add_dir,namebuf_finish) |
| 4113 |
(tar_getcwd): New functions. |
| 4114 |
(normalize_filename): Use tar_getcwd. |
| 4115 |
|
| 4116 |
2013-09-23 Sergey Poznyakoff <[email protected]> |
| 4117 |
|
| 4118 |
Changes for compatibility with Slackware installation scripts. |
| 4119 |
|
| 4120 |
* src/buffer.c (short_read): the "Record size" message |
| 4121 |
is controlled by the WARN_RECORD_SIZE warning_option bit. |
| 4122 |
* src/common.h (keep_directory_symlink_option): New global. |
| 4123 |
(WARN_RECORD_SIZE): New constant. |
| 4124 |
(WARN_VERBOSE_WARNINGS): Add WARN_RECORD_SIZE. |
| 4125 |
* src/extract.c (extract_dir): If keep_directory_symlink_option is |
| 4126 |
set, follow symlinks to directories. |
| 4127 |
* src/suffix.c (compression_suffixes): Add support for txz |
| 4128 |
suffix. |
| 4129 |
* src/tar.c (KEEP_DIRECTORY_SYMLINK_OPTION): New constant. |
| 4130 |
(options): New option --keep-directory-symlink. |
| 4131 |
(parse_opt): Handle this option. |
| 4132 |
* src/warning.c: Implement "record-size" warning control. |
| 4133 |
|
| 4134 |
* NEWS: Update. |
| 4135 |
* doc/tar.texi: Document new features. |
| 4136 |
|
| 4137 |
2013-09-21 Sergey Poznyakoff <[email protected]> |
| 4138 |
|
| 4139 |
Fix error message (complements 0ea6e686) |
| 4140 |
|
| 4141 |
* src/tar.c (set_subcommand_option): Mention --delete in the |
| 4142 |
error message. |
| 4143 |
|
| 4144 |
2013-09-15 Sergey Poznyakoff <[email protected]> |
| 4145 |
|
| 4146 |
Improve the incr07 test |
| 4147 |
|
| 4148 |
2013-09-15 Nathan Stratton Treadway <[email protected]> |
| 4149 |
|
| 4150 |
Implement the --show-snapshot-field-ranges option |
| 4151 |
|
| 4152 |
* src/common.h (show_snapshot_field_ranges): New prototype. |
| 4153 |
* src/incremen.c (show_snapshot_field_ranges): New function. |
| 4154 |
* src/tar.c: New option --show-snapshot-field-ranges. |
| 4155 |
* doc/snapshot.texi: Document the --show-snapshot-field-ranges |
| 4156 |
option. |
| 4157 |
* doc/tar.texi: Likewise. |
| 4158 |
|
| 4159 |
2013-09-15 Sergey Poznyakoff <[email protected]> |
| 4160 |
|
| 4161 |
Take into account chdir_fd when extracting from incremental dumps. |
| 4162 |
|
| 4163 |
* src/common.h (tar_savedir): New prototype. |
| 4164 |
* src/misc.c (tar_savedir): New function. |
| 4165 |
(remove_any_file): Use tar_savedir. |
| 4166 |
* src/incremen.c (try_purge_directory): Use tar_savedir. |
| 4167 |
* src/update.c (update_archive): Use tar_savedir. |
| 4168 |
* tests/incr07.at: New testcase. |
| 4169 |
* tests/Makefile.am (TESTSUITE_AT): Add new test. |
| 4170 |
* tests/testsuite.at: Likewise. |
| 4171 |
* THANKS: Updated. |
| 4172 |
|
| 4173 |
2013-09-15 Sergey Poznyakoff <[email protected]> |
| 4174 |
|
| 4175 |
Minor fix |
| 4176 |
|
| 4177 |
* src/tar.c (main): Mention --delete in the error message. |
| 4178 |
* THANKS: Update |
| 4179 |
|
| 4180 |
2013-09-13 Paul Eggert <[email protected]> |
| 4181 |
|
| 4182 |
* src/names.c (file_list_name): Properly prototype. |
| 4183 |
|
| 4184 |
2013-09-13 Paul Eggert <[email protected]> |
| 4185 |
|
| 4186 |
tar: don't warn about zero timestamps |
| 4187 |
|
| 4188 |
* src/extract.c (check_time): Suppress warning when t.tv_sec == 0. |
| 4189 |
Problem reported by Denis Excoffier. |
| 4190 |
|
| 4191 |
2013-08-19 Pavel Raiskup <[email protected]> |
| 4192 |
|
| 4193 |
Minor fix in the testsuite. |
| 4194 |
|
| 4195 |
* tests/T-cd.at: sort the 'tar cf' output. |
| 4196 |
|
| 4197 |
2013-08-17 Sergey Poznyakoff <[email protected]> |
| 4198 |
|
| 4199 |
Improve error diagnostics |
| 4200 |
|
| 4201 |
* src/names.c (file_list_name): New static function. |
| 4202 |
(add_file_id): If a filelist is being read twice, print the names |
| 4203 |
of the files that caused it. |
| 4204 |
* tests/T-rec.at: New test case. |
| 4205 |
* tests/Makefile.am: Add new file. |
| 4206 |
* tests/testsuite.at: Include new file. |
| 4207 |
|
| 4208 |
2013-08-16 Sergey Poznyakoff <[email protected]> |
| 4209 |
|
| 4210 |
Revamp initial name collection functions to ensure proper |
| 4211 |
argument ordering. |
| 4212 |
|
| 4213 |
* src/names.c (NELT_NOOP): New constant |
| 4214 |
(name_elt) <next,prev>: New members. |
| 4215 |
(name_array,allocated_entries,entries,scanned): Remove. |
| 4216 |
(check_name_alloc): Remove function. |
| 4217 |
(name_elt_alloc): New static. |
| 4218 |
(name_list_adjust,name_list_advance): New functions. |
| 4219 |
(name_add_name,name_add_dir) |
| 4220 |
(name_add_file): Use new allocation functions. |
| 4221 |
(read_next_name): Advance list head pointer as necessary |
| 4222 |
before returning. |
| 4223 |
(name_next_elt): Read elements from list. |
| 4224 |
* tests/T-cd.at: New file. |
| 4225 |
* tests/T-mult.at: New file. |
| 4226 |
* tests/T-nest.at: New file. |
| 4227 |
* tests/Makefile.am: Add new testcases. |
| 4228 |
* tests/testsuite.at: Likewise. |
| 4229 |
|
| 4230 |
2013-08-16 Sergey Poznyakoff <[email protected]> |
| 4231 |
|
| 4232 |
Don't treat attempts to read an already read file list as |
| 4233 |
fatal errors. |
| 4234 |
|
| 4235 |
* src/names.c (add_file_id): Report error and return 1 if the file |
| 4236 |
has already been read. |
| 4237 |
(read_next_name): Don't try to open file if add_file_id returns 1. |
| 4238 |
(name_next_elt): Simplify conditional. |
| 4239 |
|
| 4240 |
2013-08-16 Sergey Poznyakoff <[email protected]> |
| 4241 |
|
| 4242 |
Minor change. |
| 4243 |
|
| 4244 |
* src/names.c (name_next_elt): Simplify conditional. |
| 4245 |
|
| 4246 |
2013-08-15 Pavel Raiskup <[email protected]> |
| 4247 |
|
| 4248 |
Fix use of uninitialized memory |
| 4249 |
|
| 4250 |
* src/names.c (name_add_file): Initialize the ep->v.file.fp |
| 4251 |
pointer |
| 4252 |
after structure allocation. |
| 4253 |
|
| 4254 |
2013-08-05 Sergey Poznyakoff <[email protected]> |
| 4255 |
|
| 4256 |
Minor changes |
| 4257 |
|
| 4258 |
* src/names.c (handle_option): Use program_invocation_short_name |
| 4259 |
instead of the constant string. |
| 4260 |
(read_next_name): Remove unused variable. |
| 4261 |
|
| 4262 |
2013-08-04 Sergey Poznyakoff <[email protected]> |
| 4263 |
|
| 4264 |
Update the docs. |
| 4265 |
|
| 4266 |
* doc/tar.texi: Parsing of the options found in the file list |
| 4267 |
follows the same rules as for command line. Remove the obsolete |
| 4268 |
description. This complements 26538c9b. |
| 4269 |
|
| 4270 |
2013-08-04 Sergey Poznyakoff <[email protected]> |
| 4271 |
|
| 4272 |
Fix interaction of --verbose and --append. |
| 4273 |
|
| 4274 |
* src/buffer.c (_open_archive): don't overwrite existing archive |
| 4275 |
if given the --verify option. |
| 4276 |
* tests/append04.at: New file. |
| 4277 |
* tests/Makefile.am: Add new testcase. |
| 4278 |
* tests/testsuite.at: Add new testcase. |
| 4279 |
* THANKS: Update. |
| 4280 |
|
| 4281 |
2013-08-04 Sergey Poznyakoff <[email protected]> |
| 4282 |
|
| 4283 |
Bugfix. |
| 4284 |
|
| 4285 |
* src/names.c (read_name_from_file): Fix a typo. Remove |
| 4286 |
unused variable. |
| 4287 |
|
| 4288 |
2013-08-04 Sergey Poznyakoff <[email protected]> |
| 4289 |
|
| 4290 |
Reduce memory consumption when handling the -T option. |
| 4291 |
|
| 4292 |
The commit cdb27293 made the -T option more flexible, but |
| 4293 |
incurred a very considerable memory overhead by storing |
| 4294 |
all file names in the argument array. In case of very |
| 4295 |
big file lists this caused tar to run out of memory. This |
| 4296 |
was reported by Christian Wetzel <[email protected]> |
| 4297 |
on March 14, 2013 |
| 4298 |
(http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00018.html). |
| 4299 |
|
| 4300 |
On the other hand, Michal Žeidl discovered that tar malfunctioned |
| 4301 |
when given empty file lists or lists with the trailing newline |
| 4302 |
missing in the last entry. This was reported by Pavel Raiskup |
| 4303 |
on July 23 |
| 4304 |
(http://lists.gnu.org/archive/html/bug-tar/2013-07/msg00009.html |
| 4305 |
and |
| 4306 |
msg00010.html). |
| 4307 |
|
| 4308 |
This change fixes both issues. |
| 4309 |
|
| 4310 |
* src/common.h (name_add_file,request_stdin): New prototype. |
| 4311 |
(more_options): New prototype. |
| 4312 |
* src/names.c (NELT_FILE): New entry type. |
| 4313 |
(name_elt) <file>: New union member. |
| 4314 |
(name_add_file): New function. |
| 4315 |
(read_name_from_file): New function, a rewrite of |
| 4316 |
the same function from tar.c |
| 4317 |
(read_next_name,copy_name): New static functions. |
| 4318 |
(name_next_elt): Handle NELT_FILE entries. |
| 4319 |
* src/tar.c (request_stdin): Make extern. |
| 4320 |
(read_name_from_file,add_file_id) |
| 4321 |
(update_argv): Removed. |
| 4322 |
(parse_opt): Change handling of the -T option. |
| 4323 |
(more_options): New function. |
| 4324 |
|
| 4325 |
* tests/T-null.at: Rewrite test. |
| 4326 |
* tests/T-zfile.at: New file. |
| 4327 |
* tests/T-nonl.at: New file. |
| 4328 |
* tests/Makefile.am: Add new testcases. |
| 4329 |
* tests/testsuite.at: Likewise. |
| 4330 |
|
| 4331 |
* THANKS: Update. |
| 4332 |
|
| 4333 |
2013-06-29 Sergey Poznyakoff <[email protected]> |
| 4334 |
|
| 4335 |
Fix the compatibility check for the --occurrence option. |
| 4336 |
|
| 4337 |
* src/tar.c (SUBCL_OCCUR): New class. |
| 4338 |
(subcommand_class): Update. |
| 4339 |
(decode_options): Accept the --occurrence option |
| 4340 |
with any subcommand from the SUBCL_OCCUR class. |
| 4341 |
|
| 4342 |
2013-06-29 Pavel Raiskup <[email protected]> |
| 4343 |
|
| 4344 |
testsuite: do not resist on file order in archive |
| 4345 |
|
| 4346 |
On my Fedora 19 box, the exclude08 & exclude11 tests failed before |
| 4347 |
this fix. The reason was that the directory traversing chosen the |
| 4348 |
file order differently than the testsuite expected. |
| 4349 |
|
| 4350 |
* tests/exclude08.at: Sort the tarball content output. |
| 4351 |
* tests/exclude09.at: Likewise. |
| 4352 |
* tests/exclude10.at: Likewise. |
| 4353 |
* tests/exclude11.at: Likewise. |
| 4354 |
* tests/exclude12.at: Likewise. |
| 4355 |
* tests/exclude13.at: Likewise. |
| 4356 |
* tests/exclude14.at: Likewise. |
| 4357 |
* tests/exclude15.at: Likewise. |
| 4358 |
* tests/exclude16.at: Likewise. |
| 4359 |
|
| 4360 |
2013-06-29 Sergey Poznyakoff <[email protected]> |
| 4361 |
|
| 4362 |
Improve checks for incompatible options. |
| 4363 |
|
| 4364 |
* src/common.h (READ_LIKE_SUBCOMMAND): Remove define. |
| 4365 |
* src/tar.c (IS_SUBCOMMAND_CLASS): New macro. |
| 4366 |
(decode_options): Use IS_SUBCOMMAND_CLASS in checking |
| 4367 |
option compatibility. |
| 4368 |
Accept the --verify option only with subcommands that |
| 4369 |
write to the archive. |
| 4370 |
|
| 4371 |
* tests/opcomp01.at: New test case. |
| 4372 |
* tests/opcomp02.at: New test case. |
| 4373 |
* tests/opcomp03.at: New test case. |
| 4374 |
* tests/opcomp04.at: New test case. |
| 4375 |
* tests/opcomp05.at: New test case. |
| 4376 |
* tests/opcomp06.at: New test case. |
| 4377 |
* tests/Makefile.am: Add new testcases. |
| 4378 |
* tests/testsuite.at: Likewise. |
| 4379 |
|
| 4380 |
2013-06-28 Paul Eggert <[email protected]> |
| 4381 |
|
| 4382 |
tar: port to Mingw Shell |
| 4383 |
|
| 4384 |
* src/extract.c (extract_symlink) [!HAVE_SYMLINK]: |
| 4385 |
Fix typo by replacing WARN_SYMBOLIC_CAST with WARN_SYMLINK_CAST. |
| 4386 |
Problem reported by kaka in |
| 4387 |
<http://lists.gnu.org/archive/html/bug-tar/2013-06/msg00008.html>. |
| 4388 |
|
| 4389 |
2013-05-06 Paul Eggert <[email protected]> |
| 4390 |
|
| 4391 |
maint: revert previous change |
| 4392 |
|
| 4393 |
It wasn't actually needed. Reported by Stefano Lattarini in |
| 4394 |
<http://lists.gnu.org/archive/html/bug-tar/2013-04/msg00041.html>. |
| 4395 |
* configure.ac (AM_GNU_GETTEXT_VERSION): Decrease from 0.18.2 |
| 4396 |
back to 0.16. |
| 4397 |
|
| 4398 |
2013-04-25 Paul Eggert <[email protected]> |
| 4399 |
|
| 4400 |
maint: port to bleeding-edge Automake by assuming Gettext 0.18.2 |
| 4401 |
|
| 4402 |
Reported by Stefano Lattarini in |
| 4403 |
<http://lists.gnu.org/archive/html/bug-tar/2013-04/msg00009.html>. |
| 4404 |
* configure.ac (AM_GNU_GETTEXT_VERSION): Increase from 0.16 |
| 4405 |
to 0.18.2. |
| 4406 |
README-alpha says that we do not make any efforts to accommodate |
| 4407 |
older versions of Gettext. |
| 4408 |
|
| 4409 |
2013-04-25 Paul Eggert <[email protected]> |
| 4410 |
|
| 4411 |
tar: port to --without-xattrs --enable-gcc-warnings |
| 4412 |
|
| 4413 |
Reported by Pavel Raiskup in |
| 4414 |
<http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00029.html>. |
| 4415 |
* src/xattrs.c (xattrs__fd_set) [!HAVE_XATTRS]: Omit. |
| 4416 |
|
| 4417 |
2013-04-25 Paul Eggert <[email protected]> |
| 4418 |
|
| 4419 |
doc: port to texinfo 5 |
| 4420 |
|
| 4421 |
* doc/tar.texi (Reports, assumptions, Mixing): |
| 4422 |
Put FIXMEs at line start. |
| 4423 |
|
| 4424 |
2013-03-12 Sergey Poznyakoff <[email protected]> |
| 4425 |
|
| 4426 |
Continue extracting from a separate volume after skipping a |
| 4427 |
partial member. |
| 4428 |
|
| 4429 |
Reported by Göran Udeborg on 2013-03-09. |
| 4430 |
|
| 4431 |
* src/extract.c (extract_skip): New function. |
| 4432 |
(prepare_to_extract): Set extractor to extract_skip if starting |
| 4433 |
at a partial member. |
| 4434 |
|
| 4435 |
2013-03-12 Sergey Poznyakoff <[email protected]> |
| 4436 |
|
| 4437 |
Fix interaction of various --exclude-tag options with |
| 4438 |
--listed-incremental. |
| 4439 |
|
| 4440 |
* src/incremen.c (procdir): Set directory->tagfile in |
| 4441 |
the exclusion_tag_contents case. |
| 4442 |
(makedumpdir): Mark all entries as ignored if directory->tagfile |
| 4443 |
is set. |
| 4444 |
Free new_dump before returning. |
| 4445 |
(maketagdumpdir): New function. |
| 4446 |
(scan_directory): If directory->children is set to |
| 4447 |
NO_CHILDREN and directory->tagfile is set, create a |
| 4448 |
dumpdir consisting of the tagfile only. |
| 4449 |
|
| 4450 |
* tests/exclude08.at: New testcase. |
| 4451 |
* tests/exclude09.at: New testcase. |
| 4452 |
* tests/exclude10.at: New testcase. |
| 4453 |
* tests/exclude11.at: New testcase. |
| 4454 |
* tests/exclude12.at: New testcase. |
| 4455 |
* tests/exclude13.at: New testcase. |
| 4456 |
* tests/exclude14.at: New testcase. |
| 4457 |
* tests/exclude15.at: New testcase. |
| 4458 |
* tests/exclude16.at: New testcase. |
| 4459 |
* tests/Makefile.am: Add new tests. |
| 4460 |
* tests/testsuite.at: Include new tests. |
| 4461 |
* tests/atlocal.in (mkexcltest): New function. |
| 4462 |
* tests/chtype.at: Update keywords. |
| 4463 |
* tests/filerem01.at: Likewise. |
| 4464 |
* tests/filerem02.at: Likewise. |
| 4465 |
* tests/incremental.at: Likewise. |
| 4466 |
* tests/multiv04.at: Likewise. |
| 4467 |
|
| 4468 |
2013-02-20 Paul Eggert <[email protected]> |
| 4469 |
|
| 4470 |
tar: remove lint |
| 4471 |
|
| 4472 |
* lib/wordsplit.c (_wsplit_error): Mark with printf attribute. |
| 4473 |
(expvar): "Use" defstr to pacify GCC. |
| 4474 |
* src/system.c (xexec): Now _Noreturn, to pacify GCC. |
| 4475 |
(run_decompress_program): Add cast to pacify GCC. |
| 4476 |
(sys_exec_command, sys_exec_info_script, |
| 4477 |
sys_exec_checkpoint_script): |
| 4478 |
Remove unused variables. |
| 4479 |
|
| 4480 |
2013-02-10 Sergey Poznyakoff <[email protected]> |
| 4481 |
|
| 4482 |
Pass command line arguments to external commands. |
| 4483 |
|
| 4484 |
Any option taking a command name as its argument accepts |
| 4485 |
additional arguments as well. |
| 4486 |
|
| 4487 |
* lib/wordsplit.c: New file. |
| 4488 |
* lib/wordsplit.h: New file. |
| 4489 |
* lib/Makefile.am: Add new files. |
| 4490 |
* src/system.c (xexec): New function. |
| 4491 |
(run_decompress_program): Use wordsplit. |
| 4492 |
(sys_child_open_for_compress,sys_exec_command) |
| 4493 |
(sys_exec_info_script) |
| 4494 |
(sys_exec_checkpoint_script): Use xexec to invoke external |
| 4495 |
command. |
| 4496 |
|
| 4497 |
* NEWS: Update. |
| 4498 |
* doc/tar.texi: Update. |
| 4499 |
|
| 4500 |
2013-01-29 Nathan Stratton Treadway <[email protected]> |
| 4501 |
|
| 4502 |
tar: improve compile-time diagnostics |
| 4503 |
|
| 4504 |
* src/misc.c (sysinttostr, strtosysint): Improve #error wording. |
| 4505 |
|
| 4506 |
2013-01-27 Paul Eggert <[email protected]> |
| 4507 |
|
| 4508 |
tar: improve quality of diagnostics with incrementals |
| 4509 |
|
| 4510 |
Inspired by a prototype by Nathan Stratton Treadway in |
| 4511 |
<http://lists.gnu.org/archive/html/bug-tar/2013-01/msg00000.html>. |
| 4512 |
* src/incremen.c (read_num): Rewrite by merging read_negative_num |
| 4513 |
and read_unsigned_num. Use strtosysint rather than rolling this |
| 4514 |
stuff ourselves. Change return type to bool. All uses changed. |
| 4515 |
(read_negative_num, read_unsigned_num): Remove. |
| 4516 |
(read_num, read_timespec, read_incr_db_2): Improve quality of |
| 4517 |
diagnostics, e.g., by supplying byte offset of error. |
| 4518 |
|
| 4519 |
2013-01-26 Paul Eggert <[email protected]> |
| 4520 |
|
| 4521 |
tar: fix bug with sparse files with effective size of 8 GiB |
| 4522 |
or more |
| 4523 |
|
| 4524 |
Reported by Pavel Raiskup in |
| 4525 |
<http://lists.gnu.org/archive/html/bug-tar/2013-01/msg00001.html>. |
| 4526 |
* NEWS: Document the fix. |
| 4527 |
* src/sparse.c (pax_start_header): New function. |
| 4528 |
(pax_dump_header_0, pax_dump_header_1): Use it. |
| 4529 |
|
| 4530 |
2012-12-31 Paul Eggert <[email protected]> |
| 4531 |
|
| 4532 |
maint: update copyrights for 2013 and as per current GNU standards |
| 4533 |
|
| 4534 |
2012-12-31 Paul Eggert <[email protected]> |
| 4535 |
|
| 4536 |
maint: remove unnecessary file |
| 4537 |
|
| 4538 |
* src/configure.in: Remove. This file has been obsolete for |
| 4539 |
a while. |
| 4540 |
|
| 4541 |
2012-12-24 Paul Eggert <[email protected]> |
| 4542 |
|
| 4543 |
maint: don't enable warnings by default unless GCC 4.6 or later |
| 4544 |
|
| 4545 |
* configure.ac (gl_GCC_VERSION_IFELSE): New macro, from coreutils. |
| 4546 |
(gl_gcc_warnings): By default, disable warnings for GCC versions |
| 4547 |
before 4.6. This works around a failure when building from git on |
| 4548 |
Ubuntu 10, reported privately by Nathan Stratton Treadway. |
| 4549 |
|
| 4550 |
2012-12-23 Paul Eggert <[email protected]> |
| 4551 |
|
| 4552 |
Handle incremental format 2 with negative numbers, too. |
| 4553 |
|
| 4554 |
* src/incremen.c (read_unsigned_num): Last arg is intmax_t *, not |
| 4555 |
uintmax_t, for consistency with other readers. All callers |
| 4556 |
changed. |
| 4557 |
Avoid signed integer overflow. |
| 4558 |
(read_num): |
| 4559 |
|
| 4560 |
2012-12-23 Paul Eggert <[email protected]> |
| 4561 |
|
| 4562 |
Fix some problems with negative and out-of-range integers. |
| 4563 |
|
| 4564 |
Original problem reported for HP-UX LVM v2.2 by Michael White in |
| 4565 |
<http://lists.gnu.org/archive/html/bug-tar/2012-10/msg00000.html>. |
| 4566 |
This patch fixes some other gotchas that I noticed. |
| 4567 |
* gnulib.modules: Add extern-inline. |
| 4568 |
* src/common.h: Use _GL_INLINE_HEADER_BEGIN, |
| 4569 |
_GL_INLINE_HEADER_END. |
| 4570 |
(COMMON_INLINE, max, min): New macros. |
| 4571 |
(represent_uintmax, valid_timespec): New inline functions. |
| 4572 |
(SYSINT_BUFSIZE): New constant. |
| 4573 |
(sysinttostr, strtosysint, decode_timespec): New decls. |
| 4574 |
* src/create.c (start_private_header): Silently bring the time_t |
| 4575 |
value into range; it is now the caller's responsibility to deal |
| 4576 |
with any overflow error. Use uid 0 and gid 0 rather than the |
| 4577 |
user's uid/gid, since the faked header isn't "owned" by the user |
| 4578 |
and the uid/gid could in theory be out of range. Leave major and |
| 4579 |
minor zeroed. |
| 4580 |
(FILL): Remove. |
| 4581 |
(write_gnu_long_link): Let start_private_header zero things out. |
| 4582 |
* src/create.c (write_gnu_long_link, write_extended): |
| 4583 |
* src/xheader.c (xheader_write_global): |
| 4584 |
Use start_time, not current time; no point hammering on the clock. |
| 4585 |
* src/compare.c (diff_multivol): Check that offset, size are |
| 4586 |
in range. |
| 4587 |
* src/incremen.c (read_incr_db_01, write_directory_file_entry): |
| 4588 |
Allow negative time_t, dev_t, and ino_t. |
| 4589 |
* src/list.c (max): Remove (moved to common.h). |
| 4590 |
(read_header): Check that size is in range. |
| 4591 |
(from_header): Return intmax_t, not uintmax_t, to allow negative. |
| 4592 |
All callers changed. At compile time, check assumptions about |
| 4593 |
intmax_t and uintmax_t. Use bool for booleans. Avoid overflow |
| 4594 |
hassles on picky hosts. |
| 4595 |
(mode_from_header): Last arg is now bool *, not unsigned *. |
| 4596 |
All callers changed. |
| 4597 |
(simple_print_header): Do not assume UID, GID fit in 'long'. |
| 4598 |
* src/list.c (from_header): |
| 4599 |
* src/xheader.c (out_of_range_header): |
| 4600 |
Arg is now a plain minimum value, not minus minval converted to |
| 4601 |
uintmax_t. All callers changed. |
| 4602 |
* src/misc.c (COMMON_INLINE): New macro. |
| 4603 |
(sysinttostr, strtosysint, decode_timespec): New functions. |
| 4604 |
* src/sparse.c (oldgnu_add_sparse, oldgnu_fixup_header) |
| 4605 |
(star_fixup_header): |
| 4606 |
Check for offset overflow. |
| 4607 |
(decode_num): Clear errno before calling strtoumax. |
| 4608 |
* src/tar.c (expand_pax_option): Don't discard nanoseconds. |
| 4609 |
* src/xheader.c (assign_time_option): Allow negative time_t. |
| 4610 |
(decode_record): Simplify, since out-of-range string is guaranteed |
| 4611 |
to produce a value exceeding len_max. |
| 4612 |
(xheader_read): Last arg is off_t, not size_t. |
| 4613 |
Caller should diagnose negative arg, as needed. |
| 4614 |
Check that it's in range. |
| 4615 |
(enum decode_time_status): Remove. |
| 4616 |
(_decode_time): Remove, folding into decode_time. |
| 4617 |
(decode_time): Return bool, not enum decode_time_status. |
| 4618 |
Rely on decode_timespec to do most of the work. |
| 4619 |
(code_signed_num): New function. |
| 4620 |
(code_num): Use it. |
| 4621 |
(decode_signed_num): New function. |
| 4622 |
(decode_num): Use it. |
| 4623 |
(gid_coder, gid_decoder, uid_coder, uid_decoder, |
| 4624 |
sparse_map_decoder) |
| 4625 |
(sparse_map_decoder): Code and decode negative values. |
| 4626 |
(sparse_map_decoder): Improve check for out-of-range values. |
| 4627 |
* tests/time01.at: New file. |
| 4628 |
* tests/Makefile.am (TESTSUITE_AT): Add it. |
| 4629 |
* tests/testsuite.at: Include it. |
| 4630 |
|
| 4631 |
2012-12-22 Paul Eggert <[email protected]> |
| 4632 |
|
| 4633 |
Port use of mkdirat etc. to Solaris 10. |
| 4634 |
|
| 4635 |
* gnulib.modules (fchmodat, fchownat, fstatat, mkdirat, unlinkat): |
| 4636 |
Add. These were split out in gnulib, so we now need to request |
| 4637 |
them separately. mkdirat, for example, is not in Solaris 10. |
| 4638 |
|
| 4639 |
2012-12-22 Paul Eggert <[email protected]> |
| 4640 |
|
| 4641 |
Port ACL configuration to Solaris 10. |
| 4642 |
|
| 4643 |
* configure.ac (with_posix_acls): Fix misspellings. |
| 4644 |
Stop checking at the first failure, to speed up 'configure'. |
| 4645 |
|
| 4646 |
2012-12-19 Paul Eggert <[email protected]> |
| 4647 |
|
| 4648 |
tar: remove unused externs, or make them static |
| 4649 |
|
| 4650 |
* src/buffer.c (record_buffer_aligned, flush_write_ptr, |
| 4651 |
flush_read_ptr) |
| 4652 |
(duration): |
| 4653 |
* src/list.c (recent_global_header): |
| 4654 |
* src/unlink.c (deferred_unlink_delay): |
| 4655 |
* src/transform.c (transform_flags): |
| 4656 |
* src/xattrs.c (acl_get_file_at, acl_set_file_at, |
| 4657 |
file_has_acl_at): |
| 4658 |
Now static. |
| 4659 |
* src/common.h (rmt_command_option): Remove; unused. |
| 4660 |
* src/tar.c (check_links_option, allocated_archive_names): |
| 4661 |
Move decls here from common.h; these are now static. |
| 4662 |
|
| 4663 |
2012-12-19 Paul Eggert <[email protected]> |
| 4664 |
|
| 4665 |
* .gitignore: Regenerate. |
| 4666 |
|
| 4667 |
2012-12-19 Paul Eggert <[email protected]> |
| 4668 |
|
| 4669 |
build: new configure option --enable-gcc-warnings |
| 4670 |
|
| 4671 |
This has a similar meaning as in other GNU applications |
| 4672 |
such as coreutils and Emacs. |
| 4673 |
* NEWS: Document it. |
| 4674 |
* .gitignore: Remove redundant build-aux. |
| 4675 |
Remove gnu, since gnu/Makefile.am is now in git. |
| 4676 |
Add gnu/.gitignore, gnu/charset.alias, gnu/*.h, gnu/*/ to cover |
| 4677 |
autogenerated files. |
| 4678 |
* bootstrap.conf (gnulib_mk): Remove. |
| 4679 |
* configure.ac: Add support for --enable-gcc-warnings, |
| 4680 |
taken from coreutils and simplified. |
| 4681 |
* gnu/Makefile.am: New file. Formerly this was autogenerated, |
| 4682 |
but the autogenerated file has been renamed to gnulib.mk, |
| 4683 |
its usual name when bootstrapping from gnulib. |
| 4684 |
This way, AM_CFLAGS can incorporate warning options. |
| 4685 |
* gnulib.modules: Add manywarnings. |
| 4686 |
* lib/Makefile.am, src/Makefile.am (AM_CFLAGS): New macro, |
| 4687 |
incorporating warning options. |
| 4688 |
* lib/attr-xattr.in.h (ENOATTR): New macro, if not already |
| 4689 |
defined. |
| 4690 |
* src/buffer.c (magic): Don't rely on incomplete initializers. |
| 4691 |
* src/common.h (report_difference): Add printf format attribute. |
| 4692 |
* src/system.c (sys_exec_command, sys_exec_info_script) |
| 4693 |
(sys_exec_checkpoint_script): |
| 4694 |
* src/tar.c (update_argv): |
| 4695 |
Add casts to char * to pacify GCC warnings about using string |
| 4696 |
literals in a char * context. |
| 4697 |
* src/xattrs.c, src/xattrs.h (xattrs_clear_setup): |
| 4698 |
Declare parameters as (void), not (). |
| 4699 |
* src/xheader.c (xheader_format_name): Initialize pptr to null, |
| 4700 |
to pacify GCC. Remove unnecessary test of nptr versus null. |
| 4701 |
|
| 4702 |
2012-12-19 Paul Eggert <[email protected]> |
| 4703 |
|
| 4704 |
tar: don't truncate diagnostic |
| 4705 |
|
| 4706 |
* src/list.c (from_header): Fix buffer size calculation when |
| 4707 |
generating a diagnostic. |
| 4708 |
|
| 4709 |
2012-12-03 Sergey Poznyakoff <[email protected]> |
| 4710 |
|
| 4711 |
Bugfix. |
| 4712 |
|
| 4713 |
* tests/Makefile.am: Fix double AM_CPPFLAGS |
| 4714 |
|
| 4715 |
2012-12-01 Sergey Poznyakoff <[email protected]> |
| 4716 |
|
| 4717 |
Use AM_CPPFLAGS instead of INCLUDES. |
| 4718 |
|
| 4719 |
2012-11-19 Sergey Poznyakoff <[email protected]> |
| 4720 |
|
| 4721 |
Housekeeping. |
| 4722 |
|
| 4723 |
* NEWS: Mention the support for POSIX ACLs, extended |
| 4724 |
attributes and SELinux context. |
| 4725 |
* THANKS: List James Antill and Pavel Raiskup. |
| 4726 |
|
| 4727 |
2012-11-19 Sergey Poznyakoff <[email protected]> |
| 4728 |
|
| 4729 |
Fix indentation. |
| 4730 |
|
| 4731 |
2012-11-19 Pavel Raiskup <[email protected]> |
| 4732 |
|
| 4733 |
Allow to store/extract '=' character in xattr keyword |
| 4734 |
|
| 4735 |
* src/xheader.c (xattr_decode_keyword) |
| 4736 |
(xattr_encode_keyword): New functions. |
| 4737 |
(xheader_print_n,xattr_decoder): Use them. |
| 4738 |
* tests/xattr05.at: New test case. |
| 4739 |
* tests/Makefile.am: Add new test case. |
| 4740 |
* tests/testsuite.at: Likewise. |
| 4741 |
|
| 4742 |
2012-11-19 Pavel Raiskup <[email protected]> |
| 4743 |
|
| 4744 |
Bugfixes. |
| 4745 |
|
| 4746 |
* configure.ac: Avoid linking against -lacl when |
| 4747 |
--without-posix-acls is given. |
| 4748 |
* tests/selacl01.at: Call restorecon |
| 4749 |
* tests/selnx01.at: Likewise. |
| 4750 |
* tests/testsuite.at (AT_SELINUX_UTILS_PREREQ): Likewise. |
| 4751 |
(AT_SELINUX_PREREQ,AT_ACLS_PREREQ): Use the right _PREREQ macros. |
| 4752 |
|
| 4753 |
2012-11-19 Pavel Raiskup <[email protected]> |
| 4754 |
|
| 4755 |
Fix bootstrapping. |
| 4756 |
|
| 4757 |
* bootstrap (gnulib_extra_files): Remove $build_aux/missing |
| 4758 |
|
| 4759 |
2012-11-19 Sergey Poznyakoff <[email protected]> |
| 4760 |
|
| 4761 |
Various fixes. |
| 4762 |
|
| 4763 |
* src/xattrs.c: Don't mix variable declarations and statements. |
| 4764 |
Use proper data types. Remove improper use of const qualifiers. |
| 4765 |
Use x2nrealloc to reallocate memory buffers. |
| 4766 |
|
| 4767 |
2012-11-18 Sergey Poznyakoff <[email protected]> |
| 4768 |
|
| 4769 |
Minor change. |
| 4770 |
|
| 4771 |
* src/xattrs.c: Fix indentation. Fix copyleft statement, promote |
| 4772 |
to GPLv3+. |
| 4773 |
* src/xattrs.h: Likewise |
| 4774 |
|
| 4775 |
2012-11-18 Pavel Raiskup <[email protected]> |
| 4776 |
|
| 4777 |
Add SELinux context store/restore/list support. |
| 4778 |
|
| 4779 |
* gnulib.modules: Add selinux-at. |
| 4780 |
* src/Makefile.am (tar_LDADD): Add LIB_SELINUX. |
| 4781 |
|
| 4782 |
* src/create.c (start_header, dump_file0): Handle selinux |
| 4783 |
contexts. |
| 4784 |
* src/extract.c (delayed_set_stat) <cntx_name>: New member. |
| 4785 |
(delayed_link) <cntx_name>: New member. |
| 4786 |
(set_stat, delay_set_stat) |
| 4787 |
(apply_nonancestor_delayed_set_stat): Handle selinux contexts. |
| 4788 |
* src/tar.c: New options: "--selinux", "--no-selinux". |
| 4789 |
(tar_stat_destroy): Free cntx_name. |
| 4790 |
* src/tar.h (tar_stat_info) <cntx_name>: New member. |
| 4791 |
* src/xattrs.c (xattrs_selinux_get) |
| 4792 |
(xattrs_selinux_set): New functions. |
| 4793 |
(xattrs_print_char): Honor selinux_context_option. |
| 4794 |
(xattrs_print): Print selinux context. |
| 4795 |
* src/xheader.c: Handle new keyword "RHT.security.selinux". |
| 4796 |
* tests/Makefile.am: Add new tests. |
| 4797 |
* tests/testsuite.at: Likewise. |
| 4798 |
* tests/selacl01.at: New test. |
| 4799 |
* tests/selnx01.at: New test. |
| 4800 |
|
| 4801 |
2012-11-18 Pavel Raiskup <[email protected]> |
| 4802 |
|
| 4803 |
Support for POSIX ACLs |
| 4804 |
|
| 4805 |
* configure.ac: Check whether ACLs are available on the |
| 4806 |
host system. |
| 4807 |
* gnulib.modules: Add acl |
| 4808 |
* src/create.c (start_header): Store ACLs when creating |
| 4809 |
a POSIX archive. |
| 4810 |
(dump_file0): Handle ACLs. |
| 4811 |
* src/extract.c (delayed_set_stat) <acls_a_ptr, acls_a_len> |
| 4812 |
<acls_d_ptr, acls_d_len>: New members. |
| 4813 |
(delayed_link): Likewise. |
| 4814 |
(set_stat,delay_set_stat) |
| 4815 |
(apply_nonancestor_delayed_set_stat): Set ACLs. |
| 4816 |
* src/tar.c: New options: "--acls", "--no-acls" |
| 4817 |
(tar_stat_destroy): Free acls_a_ptr and acls_d_ptr fields. |
| 4818 |
* src/tar.h (tar_stat_info) <acls_a_ptr, acls_a_len> |
| 4819 |
<acls_d_ptr, acls_d_len>: New members. |
| 4820 |
* src/xattrs.c (xattrs_acls_get, xattrs_acls_set): New functions. |
| 4821 |
* src/xheader.c: Support new keywors: "SCHILY.acl.access" and |
| 4822 |
"SCHILY.acl.default". |
| 4823 |
* tests/Makefile.am: Add new tests. |
| 4824 |
* tests/testsuite.at: Likewise. |
| 4825 |
* tests/acls01.at: New test. |
| 4826 |
* tests/acls02.at: New test. |
| 4827 |
|
| 4828 |
2012-11-18 Pavel Raiskup <[email protected]> |
| 4829 |
|
| 4830 |
Add basic support for extended attributes. |
| 4831 |
|
| 4832 |
* src/Makefile.am: Add xattrs.[ch] |
| 4833 |
* src/xattrs.c: New file. |
| 4834 |
* src/xattrs.h: New file. |
| 4835 |
* src/common.h (READ_LIKE_SUBCOMMAND): New define. |
| 4836 |
(selinux_context_option, acls_option, xattrs_option): New globals. |
| 4837 |
(xheader_xattr_init, xheader_xattr_free) |
| 4838 |
(xheader_xattr_copy, xheader_xattr_add): New protos. |
| 4839 |
(WARN_XATTR_WRITE): New mask. |
| 4840 |
* src/create.c (start_header): Handle xattrs pairs if in POSIX |
| 4841 |
format. |
| 4842 |
(dump_file0): Handle extended attributes. |
| 4843 |
* src/extract.c (delayed_set_stat,delayed_link) <xattr_map_size> |
| 4844 |
<xattr_map>: New members. |
| 4845 |
(set_xattr): New static function. |
| 4846 |
(open_output_file): Accept an additional argument indicating |
| 4847 |
whether the file has already been created. |
| 4848 |
(set_stat,delay_set_stat) |
| 4849 |
(apply_nonancestor_delayed_set_stat) |
| 4850 |
(extract_file): Handle extended attributes. |
| 4851 |
* src/list.c (decode_header, simple_print_header): Display |
| 4852 |
extended attributes. |
| 4853 |
* src/tar.c: New options --xattrs, --no-xattrs, --xattrs-include, |
| 4854 |
--xattrs-exclude |
| 4855 |
(tar_stat_destroy): Free the xattr_map storage. |
| 4856 |
* src/tar.h (xattr_array): New struct. |
| 4857 |
(tar_stat_info) <xattr_map_size, xattr_map>: New members. |
| 4858 |
* src/warning.c: New warning control keyword "xattr-write". |
| 4859 |
* src/xheader.c (xheader_xattr_init) |
| 4860 |
(xheader_xattr_free, xheader_xattr_add) |
| 4861 |
(xheader_xattr_copy): New functions. |
| 4862 |
(struct xhdr_tab) <prefix>: New member. |
| 4863 |
(locate_handler): Permit selecting the keyword based on its |
| 4864 |
prefix. |
| 4865 |
(xheader_protected_pattern_p) |
| 4866 |
(xheader_protected_keyword_p): Likewise. |
| 4867 |
(xattr_coder, xattr_decoder): New functions. |
| 4868 |
(xhdr_tab): Reflect the changes to struct xhdr_tab. |
| 4869 |
New keyword "SCHILY.xattr". |
| 4870 |
* tests/Makefile.am: Add new tests. |
| 4871 |
* tests/testsuite.at: Likewise. |
| 4872 |
(AT_CHECK_UTIL, AT_XATTRS_UTILS_PREREQ) |
| 4873 |
(AT_CAPABILITIES_UTILS_PREREQ, AT_XATTRS_PREREQ): New defuns. |
| 4874 |
* tests/xattr01.at: New test. |
| 4875 |
* tests/xattr02.at: New test. |
| 4876 |
* tests/xattr03.at: New test. |
| 4877 |
* tests/xattr04.at: New test. |
| 4878 |
* tests/capabs_raw01.at: New test. |
| 4879 |
|
| 4880 |
2012-11-18 Sergey Poznyakoff <[email protected]> |
| 4881 |
|
| 4882 |
Prepare for implementing extended attribute support. |
| 4883 |
|
| 4884 |
This patch adds *xattr() stubs in case extended attribute |
| 4885 |
support is |
| 4886 |
not present and implements the *attrat() family of functions. |
| 4887 |
Based |
| 4888 |
on the patch by Pavel Raiskup <[email protected]> for gnulib. |
| 4889 |
|
| 4890 |
* acinclude.m4 (TAR_HEADERS_ATTR_XATTR_H): New defun. |
| 4891 |
* configure.ac: Call TAR_HEADERS_ATTR_XATTR_H |
| 4892 |
* lib/Makefile.am: Add xattr-at.[ch], distribute attr-xattr.in.h |
| 4893 |
[!TAR_COND_XATTR_H]: Build attr/xattr.h |
| 4894 |
* lib/attr-xattr.in.h: New file. |
| 4895 |
* lib/xattr-at.c: New file. |
| 4896 |
* lib/xattr-at.h: New file. |
| 4897 |
|
| 4898 |
2012-11-14 Sergey Poznyakoff <[email protected]> |
| 4899 |
|
| 4900 |
Fix creation of incremental archives when a subdirectory becomes |
| 4901 |
a mountpoint. |
| 4902 |
|
| 4903 |
When used with --listed-incremental and --one-file-system, tar |
| 4904 |
was unable to cope with directories that had once been part of the |
| 4905 |
dumped system and became separate mount points afterward. The bug |
| 4906 |
has been reported and a fix proposed by Nathan Stratton Treadway. |
| 4907 |
|
| 4908 |
* src/incremen.c (procdir): If one_file_system_option is in |
| 4909 |
effect, |
| 4910 |
clear out dumpdir info from the directory. |
| 4911 |
* tests/Makefile.am: Add new testcase. |
| 4912 |
* tests/listed05.at: New testcase. |
| 4913 |
* tests/testsuite.at (AT_PRIVILEGED_PREREQ): New macro. |
| 4914 |
include listed05.at. |
| 4915 |
* THANKS: Update. |
| 4916 |
|
| 4917 |
2012-07-27 Jim Meyering <[email protected]> |
| 4918 |
|
| 4919 |
maint: try to avoid unwanted chatter in ChangeLog |
| 4920 |
|
| 4921 |
* bootstrap.conf: Do not alter ChangeLog if it already exists. |
| 4922 |
|
| 4923 |
2012-07-26 Paul Eggert <[email protected]> |
| 4924 |
|
| 4925 |
doc: improve discussion of compressed archives |
| 4926 |
|
| 4927 |
* doc/tar.texi (gzip): Don't claim that -I 'gzip --best' works. |
| 4928 |
Problem reported by Davide Brini in |
| 4929 |
<http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00025.html>. |
| 4930 |
Also, improve some of the surrounding text. |
| 4931 |
|
| 4932 |
This file is a placeholder. It will be replaced with the actual |
| 4933 |
ChangeLog |
| 4934 |
by make dist. Run make ChangeLog if you wish to create it |
| 4935 |
earlier. |
| 4936 |
|
| 4937 |
2012-06-27 Paul Eggert <[email protected]> |
| 4938 |
|
| 4939 |
tests: fix permissions-assumption bug in test |
| 4940 |
|
| 4941 |
* tests/owner.at: Don't assume umask is 022. |
| 4942 |
Reported by Pavel Raiskup in |
| 4943 |
<http://lists.gnu.org/archive/html/bug-tar/2012-06/msg00015.html>. |
| 4944 |
|
| 4945 |
2012-06-27 Paul Eggert <[email protected]> |
| 4946 |
|
| 4947 |
tar: don't assume root is uid 0 |
| 4948 |
|
| 4949 |
This is not true for Tandem NonStop Kernel. See Joachim Schmitz's |
| 4950 |
comment in <http://bugs.gnu.org/10305#111>. |
| 4951 |
* gnulib.modules: Add root-uid. |
| 4952 |
* src/extract.c: Include <root-uid.h>. |
| 4953 |
(extr_init): Don't assume root is uid 0. |
| 4954 |
|
| 4955 |
2012-04-25 Paul Eggert <[email protected]> |
| 4956 |
|
| 4957 |
* src/compare.c (diff_dumpdir): Omit useless 'stat'. |
| 4958 |
|
| 4959 |
2012-04-25 Paul Eggert <[email protected]> |
| 4960 |
|
| 4961 |
* doc/tar.texi (Option Summary): Fix xref typo. |
| 4962 |
|
| 4963 |
Reported by Nathan Stratton Treadway in |
| 4964 |
<http://lists.gnu.org/archive/html/bug-tar/2012-04/msg00035.html>. |
| 4965 |
|
| 4966 |
This file is a placeholder. It will be replaced with the actual |
| 4967 |
ChangeLog |
| 4968 |
by make dist. Run make ChangeLog if you wish to create it |
| 4969 |
earlier. |
| 4970 |
|
| 4971 |
2012-03-29 Sergey Poznyakoff <[email protected]> |
| 4972 |
|
| 4973 |
Fix unrecognized option. |
| 4974 |
|
| 4975 |
* src/tar.c (parse_opt): Handle OLD_ARCHIVE_OPTION. |
| 4976 |
|
| 4977 |
2012-03-11 Paul Eggert <[email protected]> |
| 4978 |
|
| 4979 |
tar: remove lint |
| 4980 |
|
| 4981 |
This lint was found by GCC 4.6.2 on Fedora 15 x86-64. |
| 4982 |
* src/buffer.c (buffer_write_global_xheader, mv_end, |
| 4983 |
set_start_time) |
| 4984 |
(compute_duration, print_total_stats, flush_read, flush_write): |
| 4985 |
* src/checkpoint.c (checkpoint_finish_compile): |
| 4986 |
* src/list.c (test_archive_label): |
| 4987 |
* src/misc.c (chdir_count): |
| 4988 |
* src/names.c (const): |
| 4989 |
* src/unlink.c (finish_deferred_unlinks): |
| 4990 |
Define with (void) instead of with (), for slightly-better C type |
| 4991 |
checking and to avoid a GCC warning. |
| 4992 |
* src/compare.c (diff_dumpdir): |
| 4993 |
* src/tar.c (parse_owner_group): Remove unused local. |
| 4994 |
* src/misc.c (chdir_do): |
| 4995 |
* src/tar.c (add_exclude_array): Rename local to avoid shadowing. |
| 4996 |
(LOW_DENSITY_NUM, MID_DENSITY_NUM, HIGH_DENSITY_NUM): |
| 4997 |
Define only if needed. |
| 4998 |
* src/update.c (update_archive): Initialize a local; this fixes |
| 4999 |
what appears to be a real bug. |
| 5000 |
|
| 5001 |
2012-02-14 Paul Eggert <[email protected]> |
| 5002 |
|
| 5003 |
doc: suggest Bash for large-fd script |
| 5004 |
|
| 5005 |
* doc/tar.texi (Multi-Volume Archives): Suggest Bash for shell |
| 5006 |
script that might use >&10. Problem reported by Edward F |
| 5007 |
Eaglehouse in |
| 5008 |
<http://lists.gnu.org/archive/html/bug-tar/2012-02/msg00002.html>. |
| 5009 |
|
| 5010 |
2012-01-18 Paul Eggert <[email protected]> |
| 5011 |
|
| 5012 |
tar: quote 'like this', not `like this' |
| 5013 |
|
| 5014 |
This fixes some test failures recently introduced by gnulib |
| 5015 |
updates |
| 5016 |
prompted by recent changes to the GNU coding standards, |
| 5017 |
which now advise to use quotes 'like this' or "like this" |
| 5018 |
rather than `like this'. |
| 5019 |
* NEWS: Document this. |
| 5020 |
* README, README-hacking, doc/Makefile.am, scripts/backup.in: |
| 5021 |
* scripts/backup.sh.in, scripts/dump-remind.in: |
| 5022 |
* src/buffer.c, src/checkpoint.c, src/create.c, src/incremen.c: |
| 5023 |
* src/misc.c, src/names.c, src/sparse.c, src/transform.c: |
| 5024 |
* tests/incr02.at, tests/incremental.at, tests/multiv08.at: |
| 5025 |
* tests/sparse04.at, tests/star/README, tests/update01.at: |
| 5026 |
Quote 'like this' in comments. |
| 5027 |
* src/tar.h: |
| 5028 |
Quote "like this" in comments, when quoting English phrases rather |
| 5029 |
than code. |
| 5030 |
* configure.ac: |
| 5031 |
* scripts/xsparse.c (get_var, read_xheader, main): |
| 5032 |
* src/compare.c (diff_archive): |
| 5033 |
* src/extract.c (prepare_to_extract): |
| 5034 |
* src/tar.c (request_stdin, tar_set_quoting_style, doc, options) |
| 5035 |
(set_subcommand_option, report_textual_dates, parse_opt) |
| 5036 |
(decode_options, main): |
| 5037 |
* src/xheader.c (decx): |
| 5038 |
Quote 'like this' in diagnostics. |
| 5039 |
* doc/tar.texi (list, warnings, override) |
| 5040 |
(Selecting Archive Members, quoting styles, after, hard links) |
| 5041 |
(Sparse Recovery, Multi-Volume Archives, label): |
| 5042 |
Adjust documentation to match new output. |
| 5043 |
* tests/backup01.at, tests/incr01.at, tests/incr04.at: |
| 5044 |
* tests/label04.at, tests/label05.at, tests/link03.at: |
| 5045 |
* tests/listed02.at, tests/multiv03.at, tests/multiv05.at: |
| 5046 |
* tests/rename01.at, tests/rename02.at, tests/rename03.at: |
| 5047 |
* tests/volume.at: |
| 5048 |
Adjust tests to match new quoting behavior. |
| 5049 |
|
| 5050 |
2012-01-18 Paul Eggert <[email protected]> |
| 5051 |
|
| 5052 |
tar: port --overwrite symlink test to GNU/Hurd |
| 5053 |
|
| 5054 |
Problem reported by Pino Toscano in |
| 5055 |
<http://lists.gnu.org/archive/html/bug-tar/2012-01/msg00040.html>. |
| 5056 |
* gnulib.modules: Add fcntl-h, which defines |
| 5057 |
HAVE_WORKING_O_NOFOLLOW. |
| 5058 |
* src/extract.c (open_output_file): Use HAVE_WORKING_O_NOFOLLOW, |
| 5059 |
not O_NOFOLLOW, when testing whther O_NOFOLLOW works. |
| 5060 |
|
| 5061 |
This file is a placeholder. It will be replaced with the actual |
| 5062 |
ChangeLog |
| 5063 |
by make dist. Run make ChangeLog if you wish to create it |
| 5064 |
earlier. |
| 5065 |
|
| 5066 |
2012-01-11 Paul Eggert <[email protected]> |
| 5067 |
|
| 5068 |
tar: fix core dump with --index-file=bad_path |
| 5069 |
|
| 5070 |
* src/tar.c (decode_options): Exit cleanly if index file won't |
| 5071 |
open. |
| 5072 |
Problem reported by Khanh-Dang Nguyen Thu Lam in |
| 5073 |
<http://lists.gnu.org/archive/html/bug-tar/2012-01/msg00018.html>. |
| 5074 |
|
| 5075 |
2012-01-06 Paul Eggert <[email protected]> |
| 5076 |
|
| 5077 |
tar: don't assume O_NONBLOCK is benign on regular files |
| 5078 |
|
| 5079 |
On Data Migration Facility (DMF), High Performance Storage System |
| 5080 |
(HPSS), |
| 5081 |
and presumably other file systems based on hierarchical storage, |
| 5082 |
opening |
| 5083 |
a regular file with O_NONBLOCK can cause later reads to fail with |
| 5084 |
errno == EAGAIN. We need the O_NONBLOCK to avoid some security |
| 5085 |
races. |
| 5086 |
Work around the problem by using fcntl to clear the O_NONBLOCK |
| 5087 |
flag if I/O fails with that errno value. |
| 5088 |
Problem reported by Vitezslav Cizek in |
| 5089 |
<http://lists.gnu.org/archive/html/bug-tar/2012-01/msg00000.html>. |
| 5090 |
* src/common.h (blocking_read, blocking_write): New decls. |
| 5091 |
* src/misc.c (blocking_read, blocking_write): New functions. |
| 5092 |
* src/compare.c (process_rawdata): |
| 5093 |
* src/create.c (dump_regular_file): |
| 5094 |
* src/extract.c (extract_file): |
| 5095 |
* src/sparse.c (sparse_scan_file, sparse_extract_region): |
| 5096 |
|
| 5097 |
2011-11-26 Sergey Poznyakoff <[email protected]> |
| 5098 |
|
| 5099 |
Fix --keep-old-files option. |
| 5100 |
|
| 5101 |
The regression was introduced by 8f390db9. This patch implements |
| 5102 |
additional |
| 5103 |
option --skip-old-files, which silently skips members which |
| 5104 |
would cause |
| 5105 |
writing over existing files, and restores --keep-old-files to |
| 5106 |
its traditional |
| 5107 |
behavior. |
| 5108 |
|
| 5109 |
* NEWS: Update. |
| 5110 |
* configure.ac: Update. |
| 5111 |
* doc/tar.texi: Document the changes. |
| 5112 |
* src/common.h (SKIP_OLD_FILES): New old_files mode. |
| 5113 |
* src/extract.c (maybe_recoverable): Restore KEEP_OLD_FILES |
| 5114 |
behavior. |
| 5115 |
Handle SKIP_OLD_FILES. |
| 5116 |
* src/tar.c: New option --skip-old-files. |
| 5117 |
* tests/extrac18.at: New file. |
| 5118 |
* tests/extrac19.at: New file. |
| 5119 |
* tests/Makefile.am: Add new test cases. |
| 5120 |
* tests/testsuite.at: Likewise. |
| 5121 |
|
| 5122 |
2011-11-17 Sergey Poznyakoff <[email protected]> |
| 5123 |
|
| 5124 |
Warn about existing files in keep-old-files mode (complements |
| 5125 |
8f390db9). |
| 5126 |
|
| 5127 |
This is controlled by "existing-file" warning code, which is off |
| 5128 |
by default. |
| 5129 |
|
| 5130 |
* src/common.h (WARN_EXISTING_FILE): New warning code. |
| 5131 |
(WARN_VERBOSE_WARNINGS): Add WARN_EXISTING_FILE. |
| 5132 |
* src/extract.c (maybe_recoverable): warn about existing file |
| 5133 |
if WARN_EXISTING_FILE is set. |
| 5134 |
* src/warning.c: New warning type: "existing-file" |
| 5135 |
|
| 5136 |
2011-11-17 Sergey Poznyakoff <[email protected]> |
| 5137 |
|
| 5138 |
Fix the "Creating directory:" output |
| 5139 |
|
| 5140 |
* src/list.c (print_for_mkdir): don't use unquoted name length for |
| 5141 |
computing its output width. |
| 5142 |
|
| 5143 |
2011-11-15 Sergey Poznyakoff <[email protected]> |
| 5144 |
|
| 5145 |
Fix operation of --verify in conjunction with --listed-incremental |
| 5146 |
|
| 5147 |
* src/common.h (clear_directory_table): New proto. |
| 5148 |
* src/incremen.c (clear_directory_table): New function. |
| 5149 |
* src/compare.c (diff_dumpdir): Take a pointer to struct |
| 5150 |
tar_stat_info as argument. |
| 5151 |
Initialize its fd. |
| 5152 |
(diff_archive): Update call to diff_dumpdir. |
| 5153 |
(verify_volume): Call clear_directory_table. |
| 5154 |
|
| 5155 |
2011-10-18 Paul Eggert <[email protected]> |
| 5156 |
|
| 5157 |
* doc/tar.texi (Option Summary, absolute): Document -P better, |
| 5158 |
|
| 5159 |
by describing how it deals with symbolic links on extraction. |
| 5160 |
|
| 5161 |
2011-09-28 Paul Eggert <[email protected]> |
| 5162 |
|
| 5163 |
2011-09-27 Paul Eggert <[email protected]> |
| 5164 |
|
| 5165 |
* src/tar.c (stat_on_signal): Use SA_RESTART if available. |
| 5166 |
|
| 5167 |
2011-09-20 Paul Eggert <[email protected]> |
| 5168 |
|
| 5169 |
* doc/tar.texi: Remove front- and back-cover texts. |
| 5170 |
|
| 5171 |
These are no longer needed for this manual, according to the |
| 5172 |
GNU maintainers guide. Update copyright date to 2011. |
| 5173 |
|
| 5174 |
2011-09-19 Sergey Poznyakoff <[email protected]> |
| 5175 |
|
| 5176 |
Minor changes. |
| 5177 |
|
| 5178 |
* scripts/tar-snapshot-edit: License under GPLv3+. |
| 5179 |
Remove trailing whitespace. |
| 5180 |
|
| 5181 |
2011-09-19 Nathan Stratton Treadway <[email protected]> |
| 5182 |
|
| 5183 |
Minor changes. |
| 5184 |
|
| 5185 |
* doc/snapshot.texi: Clarify the use of nfs field in 0 and |
| 5186 |
1 formats. |
| 5187 |
Give more precise information about which versions of tar |
| 5188 |
used each |
| 5189 |
format. |
| 5190 |
|
| 5191 |
2011-09-19 Nathan Stratton Treadway <[email protected]> |
| 5192 |
|
| 5193 |
Upgrade tar-snapshot-edit script. |
| 5194 |
|
| 5195 |
* scripts/tar-snapshot-edit: Update Perl syntax to work |
| 5196 |
correctly with more recent versions of Perl. (The original |
| 5197 |
code worked with in the v5.8 timeframe but not with |
| 5198 |
Perl v5.10.1 and later.) |
| 5199 |
Add a "-c" option to check the snapshot file for invalid |
| 5200 |
field values. |
| 5201 |
Handle NFS indicator character ("+") in version 0 and 1 files. |
| 5202 |
Preserve the original header/version line when editing version 1 |
| 5203 |
or 2 files. |
| 5204 |
Tweak output formatting. |
| 5205 |
* doc/tar-snapshot-edit.texi: Update documentation. |
| 5206 |
|
| 5207 |
2011-08-13 Paul Eggert <[email protected]> |
| 5208 |
|
| 5209 |
tar: --owner and --group names and numbers |
| 5210 |
|
| 5211 |
The --owner and --group options now accept operands of the form |
| 5212 |
NAME:NUM, so that you can specify both symbolic name and numeric |
| 5213 |
ID for owner and group. Also, in these options, NAME no longer |
| 5214 |
needs to be present in the current host's user and group |
| 5215 |
databases; this implements Debian enhancement request 136231 |
| 5216 |
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=136231> reported |
| 5217 |
by Mark W. Eichin, communicated by Thayne Harbaugh to bug-tar in |
| 5218 |
<http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00001.html>. |
| 5219 |
* NEWS, doc/tar.texi (Option Summary, override): Document |
| 5220 |
enhancement. |
| 5221 |
* src/common.h (group_name_option, owner_name_option): New decls. |
| 5222 |
* src/create.c (start_header): Don't assume owner and group names |
| 5223 |
are in current host database. |
| 5224 |
* src/tar.c (parse_owner_group): New function, for parsing |
| 5225 |
NAME:NUM. |
| 5226 |
(parse_opt): Use it. |
| 5227 |
(decode_options): Initialize owner_name_option, group_name_option. |
| 5228 |
* tests/owner.at: New file, to test this enhancement. |
| 5229 |
* tests/Makefile.am (TESTSUITE_AT): Add it. |
| 5230 |
* tests/testsuite.at: Include it. |
| 5231 |
|
| 5232 |
2011-08-13 Paul Eggert <[email protected]> |
| 5233 |
|
| 5234 |
.gitignore: update |
| 5235 |
|
| 5236 |
* .gitignore: Add rmt. |
| 5237 |
* lib/.gitignore: New file. |
| 5238 |
|
| 5239 |
2011-07-30 Sergey Poznyakoff <[email protected]> |
| 5240 |
|
| 5241 |
Fix the --exclude-backups option. |
| 5242 |
|
| 5243 |
* src/tar.c (add_exclude_array): Take exclude option flags in its |
| 5244 |
second argument. |
| 5245 |
(parse_opt): Register backup_file_table with the EXCLUDE_WILDCARDS |
| 5246 |
flag. |
| 5247 |
* tests/exclude07.at: New testcase. |
| 5248 |
* tests/Makefile.am (TESTSUITE_AT): Add testsuite.at. |
| 5249 |
* tests/testsuite.at: Include exclude07.at. |
| 5250 |
|
| 5251 |
2011-06-08 Paul Eggert <[email protected]> |
| 5252 |
|
| 5253 |
tar: simplify birthtime calculations |
| 5254 |
|
| 5255 |
* src/extract.c (same_birthtime): Remove. |
| 5256 |
(extract_link, apply_delayed_links): Go back to using |
| 5257 |
timestamp_cmp |
| 5258 |
instead of same_birthtime, as this is a bit simpler. This fix |
| 5259 |
relies |
| 5260 |
on an up-to-date gnulib. |
| 5261 |
|
| 5262 |
2011-06-08 Paul Eggert <[email protected]> |
| 5263 |
|
| 5264 |
tar: use birthtime rather than ctime when checking identity |
| 5265 |
|
| 5266 |
Without this fix, tar would sometimes mishandle the extraction of |
| 5267 |
hard links to symbolic links. Problem reported in |
| 5268 |
<http://lists.gnu.org/archive/html/bug-tar/2011-06/msg00000.html> |
| 5269 |
by Andreas Stolcke. |
| 5270 |
* src/extract.c (struct delayed_link): Change ctime member |
| 5271 |
to birthtime. |
| 5272 |
(same_birthtime): New function. |
| 5273 |
(create_placeholder_file, extract_link, apply_delayed_links): |
| 5274 |
Use it to compare birthtimes (when available) instead of ctime. |
| 5275 |
|
| 5276 |
2011-05-26 Paul Eggert <[email protected]> |
| 5277 |
|
| 5278 |
* doc/tar.texi (Old Options): Clarify distinction from short |
| 5279 |
options. |
| 5280 |
|
| 5281 |
Adjust other parts of the manual to use examples that parse the |
| 5282 |
same regardless of whether "-" is in front of the option clump. |
| 5283 |
See |
| 5284 |
<http://lists.gnu.org/archive/html/bug-tar/2011-05/msg00022.html>. |
| 5285 |
|
| 5286 |
2011-03-12 Sergey Poznyakoff <[email protected]> |
| 5287 |
|
| 5288 |
Testsuite fix. |
| 5289 |
|
| 5290 |
* tests/sparse04.at: Use the -f option. |
| 5291 |
|
| 5292 |
2011-03-12 Sergey Poznyakoff <[email protected]> |
| 5293 |
|
| 5294 |
Version 1.26 |
| 5295 |
|
| 5296 |
* NEWS, configure.ac: Update. |
| 5297 |
* po/POTFILES.in: Remove paxexit.c (see bb971a1e). |
| 5298 |
|
| 5299 |
2011-03-08 Paul Eggert <[email protected]> |
| 5300 |
|
| 5301 |
--atime-preserve=replace: fix correctness and performance bugs |
| 5302 |
|
| 5303 |
reported by Eric Blake in |
| 5304 |
<http://lists.gnu.org/archive/html/bug-tar/2011-03/msg00000.html>. |
| 5305 |
* src/compare.c (diff_file): Do not restore atime of size-zero |
| 5306 |
files. |
| 5307 |
* src/create.c (dump_file0): Likewise. Also, do not restore atime |
| 5308 |
when fd is zero, because that indicates a file we haven't opened. |
| 5309 |
|
| 5310 |
2011-02-23 Paul Eggert <[email protected]> |
| 5311 |
|
| 5312 |
* doc/tar.texi: Adjust example commands and output for accuracy. |
| 5313 |
|
| 5314 |
The original problem was reported by Michael Witten in |
| 5315 |
<http://lists.gnu.org/archive/html/bug-tar/2011-02/msg00033.html>. |
| 5316 |
|
| 5317 |
2011-02-16 Paul Eggert <[email protected]> |
| 5318 |
|
| 5319 |
tar: if (p) free (p); -> free (p); |
| 5320 |
|
| 5321 |
There is no longer (since SunOS 4) any need to guard against |
| 5322 |
free (NULL), so replace each "if (p) free (p);" with "free (p);". |
| 5323 |
From Jim Meyering in |
| 5324 |
<http://lists.gnu.org/archive/html/bug-tar/2011-01/msg00026.html>. |
| 5325 |
* src/incremen.c (scan_directory, read_directory_file): As above. |
| 5326 |
(try_purge_directory): Likewise. |
| 5327 |
* src/list.c (read_header): Likewise. |
| 5328 |
* src/misc.c (assign_string): Likewise. |
| 5329 |
|
| 5330 |
2010-12-14 Sergey Poznyakoff <[email protected]> |
| 5331 |
|
| 5332 |
Correctly store long sparse file names in PAX archives. |
| 5333 |
|
| 5334 |
* src/sparse.c (pax_dump_header_1): Make sure the created header |
| 5335 |
name is |
| 5336 |
shorter than NAME_FIELD_SIZE bytes. |
| 5337 |
* tests/sparse04.at: New testcase. |
| 5338 |
* tests/Makefile.am (TESTSUITE_AT): Add sparse04.at. |
| 5339 |
* tests/testsuite.at: Include sparse04.at. |
| 5340 |
* NEWS: Update. |
| 5341 |
|
| 5342 |
2010-12-07 Paul Eggert <[email protected]> |
| 5343 |
|
| 5344 |
tests: make the truncate test smaller and less buggy (tiny change) |
| 5345 |
|
| 5346 |
Reported by Solar Designer in |
| 5347 |
<http://lists.gnu.org/archive/html/bug-tar/2010-12/msg00003.html>. |
| 5348 |
* tests/truncate.at: Use a smaller test case, and make its |
| 5349 |
race condition less likely. |
| 5350 |
|
| 5351 |
2010-11-27 Paul Eggert <[email protected]> |
| 5352 |
|
| 5353 |
tests: skip SIGPIPE-dependent tests in environments ignoring |
| 5354 |
SIGPIPE |
| 5355 |
|
| 5356 |
Problem reported by Sven Joachim in |
| 5357 |
<http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00043.html>. |
| 5358 |
* tests/remfiles01.at: Use AT_SIGPIPE_PREREQ. |
| 5359 |
* tests/sigpipe.at: Likewise. |
| 5360 |
* tests/testsuite.at (AT_SIGPIPE_PREREQ): New macro. |
| 5361 |
|
| 5362 |
2010-11-25 Paul Eggert <[email protected]> |
| 5363 |
|
| 5364 |
tar: work around NetBSD and Tru64 symlink incompatibility |
| 5365 |
with POSIX |
| 5366 |
|
| 5367 |
Problem reported by Bruno Haible in |
| 5368 |
<http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00306.html>. |
| 5369 |
* src/extract.c (maybe_recoverable): Also treat EFTYPE (if |
| 5370 |
defined) |
| 5371 |
and ENOTSUP like ELOOP. |
| 5372 |
|
| 5373 |
2010-11-24 Paul Eggert <[email protected]> |
| 5374 |
|
| 5375 |
tar: adjust to paxutils change: paxexit.c -> paxexit-status.c |
| 5376 |
|
| 5377 |
* lib/Makefile.am (libtar_a_SOURCES): paxexit.c renamed to |
| 5378 |
paxexit-status.c. |
| 5379 |
|
| 5380 |
2010-11-24 Paul Eggert <[email protected]> |
| 5381 |
|
| 5382 |
tar: remove unused function dir_removed_diag |
| 5383 |
|
| 5384 |
* src/common.h (dir_removed_diag): Remove unused decl. |
| 5385 |
* src/misc.c (dir_removed_diag): Remove unused function. |
| 5386 |
|
| 5387 |
2010-11-23 Paul Eggert <[email protected]> |
| 5388 |
|
| 5389 |
tar: work around FreeBSD symlink incompatibility with POSIX |
| 5390 |
|
| 5391 |
* src/extract.c (maybe_recoverable): Treat EMLINK like ELOOP, for |
| 5392 |
FreeBSD. Problem reported by Christian Weisgerber in |
| 5393 |
<http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00080.html>. |
| 5394 |
|
| 5395 |
2010-11-23 Paul Eggert <[email protected]> |
| 5396 |
|
| 5397 |
* src/names.c: tar: fix bug with --one-file-system |
| 5398 |
--listed-incremental |
| 5399 |
|
| 5400 |
Problem (and idea for fix) reported by Martin Weigel |
| 5401 |
<http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00071.html>. |
| 5402 |
* src/common.h (is_individual_file): Remove decl. |
| 5403 |
* src/create.c (dump_file0): Replace "is_individual_file (p)" |
| 5404 |
with "top_level". |
| 5405 |
* src/incremen.c (procdir): Replace "!is_individual_file |
| 5406 |
(name_buffer)" with "st->parent". Fix bug with --one-file-system |
| 5407 |
and --listed-incremental. |
| 5408 |
* src/names.c (individual_file_table, register_individual_file): |
| 5409 |
(is_individual_file): Remove. All uses removed. |
| 5410 |
|
| 5411 |
2010-11-23 Paul Eggert <[email protected]> |
| 5412 |
|
| 5413 |
tests: new test listed04 for --one-file-system |
| 5414 |
--listed-incremental |
| 5415 |
|
| 5416 |
* tests/Makefile.am (TESTSUITE_AT): Add listed04.at. |
| 5417 |
* tests/listed04.at: New file. |
| 5418 |
* tests/testsuite.at: Include it. |
| 5419 |
|
| 5420 |
2010-11-23 Paul Eggert <[email protected]> |
| 5421 |
|
| 5422 |
scripts: fix option parsing |
| 5423 |
|
| 5424 |
Problem reported by Dennis Wydra in |
| 5425 |
<http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00082.html>. |
| 5426 |
* scripts/backup.in: Accept "-l LEVEL". Be more systematic about |
| 5427 |
backslashes inside ``; it shouldn't matter for modern shells but |
| 5428 |
it might matter for older ones. |
| 5429 |
* scripts/restore.in: Likewise. |
| 5430 |
* scripts/backup.in: Adjust implementation of -t/--time to match |
| 5431 |
the new implementation of -l/--level. |
| 5432 |
|
| 5433 |
2010-11-15 Sergey Poznyakoff <[email protected]> |
| 5434 |
|
| 5435 |
Issue a warning if the archive being compared contains transformed |
| 5436 |
file names. |
| 5437 |
|
| 5438 |
* src/common.h (transform_program_p): New proto. |
| 5439 |
* src/transform.c (transform_program_p): New function. |
| 5440 |
* src/compare.c (verify_volume): Warn if the archive contains |
| 5441 |
transformed file names. |
| 5442 |
|
| 5443 |
2010-11-15 Sergey Poznyakoff <[email protected]> |
| 5444 |
|
| 5445 |
Minor change. |
| 5446 |
|
| 5447 |
* doc/tar.texi: Reword the description of decompress-program. |
| 5448 |
|
| 5449 |
2010-11-15 Paul Eggert <[email protected]> |
| 5450 |
|
| 5451 |
tar: fix --verify option, which broke in 1.24 |
| 5452 |
|
| 5453 |
* NEWS: Document this. |
| 5454 |
* src/compare.c (verify_volume): Decode the header before invoking |
| 5455 |
diff_archive, as diff_archive no longer does this as of the |
| 5456 |
2010-06-28 commit. Also, don't try to invoke diff_archive on a |
| 5457 |
zero block. |
| 5458 |
* tests/Makefile.am (TESTSUITE_AT): Add verify.at. |
| 5459 |
* tests/testsuite.at: Include verify.at. |
| 5460 |
* tests/verify.at: New file. |
| 5461 |
|
| 5462 |
2010-11-08 Paul Eggert <[email protected]> |
| 5463 |
|
| 5464 |
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/tar |
| 5465 |
|
| 5466 |
2010-11-08 Jim Meyering <[email protected]> |
| 5467 |
|
| 5468 |
tests: avoid spurious failure when VERSION_CONTROL envvar is set |
| 5469 |
|
| 5470 |
* tests/backup01.at: Unset VERSION_CONTROL. Otherwise, |
| 5471 |
when set to e.g., 'always', it would cause this test to fail. |
| 5472 |
|
| 5473 |
2010-11-07 Sergey Poznyakoff <[email protected]> |
| 5474 |
|
| 5475 |
Version 1.25 |
| 5476 |
|
| 5477 |
* configure.ac: Version 1.25 |
| 5478 |
* NEWS: Describe the changes. |
| 5479 |
|
| 5480 |
2010-11-05 Sergey Poznyakoff <[email protected]> |
| 5481 |
|
| 5482 |
Run alternative decompression programs if the principal one is |
| 5483 |
not available. |
| 5484 |
|
| 5485 |
Some compression programs are able to handle various compression |
| 5486 |
formats |
| 5487 |
(e.g. `gzip' can decompress files created by `compress', `xz' |
| 5488 |
is able |
| 5489 |
to handle lzma, etc.) Tar tries to use such programs for |
| 5490 |
decompression |
| 5491 |
if the principal decompressor cannot be started. |
| 5492 |
|
| 5493 |
* src/buffer.c (compress_type): Swap ct_none and ct_tar. |
| 5494 |
(archive_compression_type): New static variable. |
| 5495 |
(zip_magic): Remove program and option fields. |
| 5496 |
(zip_program): New structure and static. |
| 5497 |
(compress_program): Remove macro. |
| 5498 |
(find_zip_program): New static function. |
| 5499 |
(first_decompress_program,next_decompress_program): New functions. |
| 5500 |
(open_compressed_archive): Set archive_compression_type instead of |
| 5501 |
use_compress_program_option. |
| 5502 |
* src/common.h (first_decompress_program) |
| 5503 |
(next_decompress_program): New functions. |
| 5504 |
(WARN_DECOMPRESS_PROGRAM): New flag. |
| 5505 |
(WARN_VERBOSE_WARNINGS): Include WARN_DECOMPRESS_PROGRAM. |
| 5506 |
* src/warning.c (warning_args): Add "decompress-program". |
| 5507 |
(warning_types): Add WARN_DECOMPRESS_PROGRAM. |
| 5508 |
* src/system.c (run_decompress_program): New function. |
| 5509 |
(sys_child_open_for_uncompress): Use run_decompress_program |
| 5510 |
instead of calling execlp directly. |
| 5511 |
|
| 5512 |
2010-11-02 Paul Eggert <[email protected]> |
| 5513 |
|
| 5514 |
tests: fix some issues with signals, timestamps, "test" typo |
| 5515 |
|
| 5516 |
* tests/extrac17.at: Add --warning=no-timestamp, to avoid |
| 5517 |
bogus warning due to NFS clock skew. |
| 5518 |
* tests/remfiles01.at: Discard diagnostics that some shells |
| 5519 |
generate about broken pipes. |
| 5520 |
* tests/sigpipe.at: Likewise. |
| 5521 |
* tests/remfiles01.at: Fix typo: "test $EC" was written where |
| 5522 |
"test $EC -ne 0" was intended. |
| 5523 |
|
| 5524 |
2010-11-01 Sergey Poznyakoff <[email protected]> |
| 5525 |
|
| 5526 |
Fix extraction of device nodes. |
| 5527 |
|
| 5528 |
* src/extract.c (extract_node): Do not mask out node type. |
| 5529 |
The bug was introduced in commit ea964cce. |
| 5530 |
|
| 5531 |
2010-10-28 Paul Eggert <[email protected]> |
| 5532 |
|
| 5533 |
tar: don't cross struct member boundaries with OLDGNU_MAGIC |
| 5534 |
|
| 5535 |
* src/create.c (write_gnu_long_link, start_header): Access |
| 5536 |
header->buffer + offsetof (struct posix_header, magic), instead of |
| 5537 |
header->header.magic, when reading or writing the OLDGNU_MAGIC |
| 5538 |
pattern. The code violates the C standard without this change, |
| 5539 |
and GCC warns about this if fortify checking is enabled. It's not |
| 5540 |
a bug on traditional (i.e., non-debugging) platforms, but it does |
| 5541 |
violate the C standard so it should be fixed. Problem originally |
| 5542 |
reported by John Emil Karlson in |
| 5543 |
<http://lists.gnu.org/archive/html/bug-tar/2010-04/msg00023.html>. |
| 5544 |
* src/list.c (decode_header): Likewise. |
| 5545 |
|
| 5546 |
2010-10-28 Paul Eggert <[email protected]> |
| 5547 |
|
| 5548 |
tests: port to sh variants that squirrel away file descriptors |
| 5549 |
|
| 5550 |
OpenBSD /bin/sh, and some other sh variants, squirrel away file |
| 5551 |
descriptors before closing them. For example, for "cat 3<&-" they |
| 5552 |
first dup file descriptor 3 to a fd that is 10 or greater, then |
| 5553 |
close 3 (because if "cat" had been a builtin command like ":" then |
| 5554 |
they would have wanted to avoid the fork and restore the fd after |
| 5555 |
":" finished); and they treat ordinary (forking) commands the same |
| 5556 |
as builtin commands. This approach fails after "ulimit -n 10". |
| 5557 |
Work around this deficiency by closing the file descriptors before |
| 5558 |
invoking ulimit. Problem reported by Christian Weisgerber in |
| 5559 |
<http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00041.html>; |
| 5560 |
solution suggested by Jilles Tjoelker in |
| 5561 |
<http://article.gmane.org/gmane.comp.shells.dash/415>. |
| 5562 |
|
| 5563 |
* tests/extrac11.at (scarce file descriptors): Close file |
| 5564 |
descriptors before invoking ulimit -n. |
| 5565 |
|
| 5566 |
2010-10-27 Sergey Poznyakoff <[email protected]> |
| 5567 |
|
| 5568 |
Transform file names when updating and appending to archives. |
| 5569 |
|
| 5570 |
This complements 28e91b48. |
| 5571 |
|
| 5572 |
* src/common.h (transform_stat_info): New prototype. |
| 5573 |
* src/list.c (transform_stat_info): Remove static qualifier. |
| 5574 |
* src/update.c (update_archive): Call transform_stat_info. |
| 5575 |
* tests/Makefile.am (TESTSUITE_AT): Add append03.at |
| 5576 |
* tests/testsuite.at: Include append03.at |
| 5577 |
|
| 5578 |
2010-10-27 Paul Eggert <[email protected]> |
| 5579 |
|
| 5580 |
tests: port to Solaris diff |
| 5581 |
|
| 5582 |
* tests/extrac13.at: Don't assume that "diff -c" outputs nothing |
| 5583 |
when there are no differences. This is not true on Solaris, |
| 5584 |
where it outputs "No differences encountered". |
| 5585 |
|
| 5586 |
2010-10-27 Paul Eggert <[email protected]> |
| 5587 |
|
| 5588 |
tar: fix -x --overwrite bug (no --dereference, ! O_NOFOLLOW) |
| 5589 |
|
| 5590 |
This bug was discovered on Solaris 8. On older hosts lacking |
| 5591 |
O_NOFOLLOW, tar -x --overwrite (without --dereference) follows |
| 5592 |
symbolic links, causing the "extract over symlinks" test to fail. |
| 5593 |
|
| 5594 |
* src/extract.c (open_output_file): If O_NOFOLLOW is needed but |
| 5595 |
does not work, check for a symlink separately. |
| 5596 |
|
| 5597 |
2010-10-27 Paul Eggert <[email protected]> |
| 5598 |
|
| 5599 |
tar: don't use "((" in shell scripts |
| 5600 |
|
| 5601 |
* tests/extrac11.at: Replace "((" with "( (" in shell scripts, as |
| 5602 |
"((" is not portable to the Korn shell, and POSIX 1003.1-2008 says |
| 5603 |
that "((" is not portable. |
| 5604 |
|
| 5605 |
2010-10-26 Sergey Poznyakoff <[email protected]> |
| 5606 |
|
| 5607 |
Make sure name matching occurs before name transformation. |
| 5608 |
|
| 5609 |
The commit 9c194c99 altered that order. |
| 5610 |
|
| 5611 |
* src/list.c (transform_stat_info): New function. Split off from |
| 5612 |
decode_header. |
| 5613 |
(read_and): Call transform_stat_info right before do_something, |
| 5614 |
and after deciding if we should proceed with this member name, |
| 5615 |
so that name matching occurs before name transformation. |
| 5616 |
|
| 5617 |
* tests/extrac17.at: New file. |
| 5618 |
* tests/Makefile.am (TESTSUITE_AT): Add extrac17.at |
| 5619 |
* tests/testsuite.at: Include extrac17.at. |
| 5620 |
|
| 5621 |
2010-10-26 Paul Eggert <[email protected]> |
| 5622 |
|
| 5623 |
tar: don't assume stdin is open when testing fd limits |
| 5624 |
|
| 5625 |
* tests/extrac11.at: Redirect stdin from /dev/null, in case |
| 5626 |
the parent 'make' is running with stdin closed. |
| 5627 |
|
| 5628 |
2010-10-26 Sergey Poznyakoff <[email protected]> |
| 5629 |
|
| 5630 |
Further fixes in bootstrap. |
| 5631 |
|
| 5632 |
* bootstrap: Restore the default for gnulib_path |
| 5633 |
(symlink_to_dir): Re-apply 67cad07. |
| 5634 |
|
| 5635 |
2010-10-26 Paul Eggert <[email protected]> |
| 5636 |
|
| 5637 |
tar: fix bug with -C and extracting directories |
| 5638 |
|
| 5639 |
Problem reported by Denis Excoffier in |
| 5640 |
<http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00034.html>. |
| 5641 |
|
| 5642 |
* src/extract.c (extract_dir): Use mkdirat, not mkdir. |
| 5643 |
* tests/extrac16.at: New file, to test for this bug. |
| 5644 |
* tests/Makefile.am (TESTSUITE_AT): Add it. |
| 5645 |
* tests/testsuite.at: Include it. |
| 5646 |
|
| 5647 |
This file is a placeholder. It will be replaced with the actual |
| 5648 |
ChangeLog |
| 5649 |
by make dist. Run make ChangeLog if you wish to create it |
| 5650 |
earlier. |
| 5651 |
|
| 5652 |
2010-10-25 Sergey Poznyakoff <[email protected]> |
| 5653 |
|
| 5654 |
Version 1.24 |
| 5655 |
|
| 5656 |
* configure.ac, NEWS: Version 1.24 |
| 5657 |
* bootstrap: Restore tar-specific code lost during last |
| 5658 |
sync from gnulib (241b72ffad). |
| 5659 |
* src/misc.c (chdir_do): Remove unused automatic variable. |
| 5660 |
|
| 5661 |
2010-10-16 Paul Eggert <[email protected]> |
| 5662 |
|
| 5663 |
tar: use more-accurate diagnostic when intermediate mkdir fails |
| 5664 |
|
| 5665 |
Without this change, if tar tried to extract a file A/B/C, noticed |
| 5666 |
that A/B didn't exist, attempted to mkdir A/B, and the mkdir |
| 5667 |
failed, it did not diagnose the mkdir failure, but simply reported |
| 5668 |
the failure to open A/B/C. This sometimes led to confusion |
| 5669 |
because it wasn't clear what tar was trying to do, in particular |
| 5670 |
that tar tried to mkdir A/B. With this patch, tar issues two |
| 5671 |
diagnostics in this case: one for A/B and the other for A/B/C. |
| 5672 |
Problem reported by Hauke Laging in |
| 5673 |
<http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00020.html>. |
| 5674 |
* gnulib.modules: Remove faccessat. |
| 5675 |
* src/extract.c (make_directories): New arg INTERDIR_MADE. |
| 5676 |
Diagnose mkdir failure. Return 0 on success, nonzero on failure, |
| 5677 |
as opposed to nonzero iff some directory was created. All callers |
| 5678 |
changed. Simplify the code when mkdir fails, by checking whether |
| 5679 |
the desired file exists unless errno==EEXIST: this is more robust. |
| 5680 |
* tests/extrac15.at: New test, to check this. |
| 5681 |
* tests/Makefile.am (TESTSUITE_AT): Add it. |
| 5682 |
* tests/testsuite.at: Include it. |
| 5683 |
|
| 5684 |
2010-10-16 Paul Eggert <[email protected]> |
| 5685 |
|
| 5686 |
tests: port to NFS file servers with clock skew |
| 5687 |
|
| 5688 |
Several of the tests assumed that a newly created file cannot |
| 5689 |
have a time stamp dated in the future. This assumption is not |
| 5690 |
true when files are served by a remote host whose clock is |
| 5691 |
slightly in advance of ours. Fix the problems that I observed |
| 5692 |
when running "make check" a couple of times on such a server. |
| 5693 |
|
| 5694 |
* tests/backup01.at: Use --warning=no-timestamp to suppress |
| 5695 |
clock-skew warnings. |
| 5696 |
* tests/chtype.at, tests/comprec.at, tests/exclude06.at: |
| 5697 |
* tests/extrac01.at, tests/extrac03.at, tests/extrac05.at: |
| 5698 |
* tests/extrac06.at, tests/extrac08.at, tests/extrac13.at: |
| 5699 |
* tests/extrac14.at, tests/incr01.at, tests/incr03.at, |
| 5700 |
tests/link01.at: |
| 5701 |
* tests/multiv01.at, tests/multiv02.at, tests/multiv03.at: |
| 5702 |
* tests/pipe.at, tests/rename02.at, tests/rename03.at: |
| 5703 |
* tests/rename05.at, tests/same-order01.at, tests/same-order02.at: |
| 5704 |
* tests/sparse01.at: |
| 5705 |
Likewise. |
| 5706 |
|
| 5707 |
2010-10-12 Paul Eggert <[email protected]> |
| 5708 |
|
| 5709 |
gnulib: sync from latest gnulib, notably bootstrap and |
| 5710 |
parse-datetime |
| 5711 |
|
| 5712 |
* bootstrap: Sync from gnulib. |
| 5713 |
* doc/.gitignore: Rename getdate.texi to parse-datetime.texi. |
| 5714 |
* doc/Makefile.am (tar_TEXINFOS): Likewise. |
| 5715 |
* doc/tar.texi (Top): Adjust to renaming of getdate to |
| 5716 |
parse-datetime. |
| 5717 |
* gnulib.modules: Likewise. Also, remove ftruncate (now |
| 5718 |
obsolete). |
| 5719 |
And add inttostr (we missed this dependency). |
| 5720 |
* src/tar.c: Include parse-datetime.h, not getdate.h. All calls |
| 5721 |
to get_date replaced with parse_datetime. |
| 5722 |
|
| 5723 |
2010-09-24 Paul Eggert <[email protected]> |
| 5724 |
|
| 5725 |
tar: -x -C symlink fix |
| 5726 |
|
| 5727 |
* src/misc.c (chdir_do): Don't use O_NOFOLLOW when opening the |
| 5728 |
argument to -C. This is for consistency with "tar -c -C FOO", and |
| 5729 |
matches the new documentation. |
| 5730 |
* tests/extrac14.at: New file. |
| 5731 |
* tests/Makefile.am (TESTSUITE_AT): Add it. |
| 5732 |
* tests/testsuite.at: Include it. |
| 5733 |
|
| 5734 |
2010-09-24 Paul Eggert <[email protected]> |
| 5735 |
|
| 5736 |
tar: --dereference consistency |
| 5737 |
|
| 5738 |
This closes another race condition, that occurs when overwriting a |
| 5739 |
symlink with a regular file. |
| 5740 |
* NEWS (--dereference consistency): New section. |
| 5741 |
* doc/tar.texi (Option Summary): Describe new --deference |
| 5742 |
behavior. |
| 5743 |
(dereference): Likewise. Remove discussion that I didn't follow, |
| 5744 |
even before --dereference was changed. |
| 5745 |
* src/common.h (deref_stat, set_file_atime): Adjust signatures. |
| 5746 |
* src/compare.c (diff_file, diff_multivol): Respect |
| 5747 |
open_read_flags |
| 5748 |
instead of rolling our own flags. This implements the new |
| 5749 |
behavior |
| 5750 |
for --dereference. |
| 5751 |
(diff_file, diff_dumpdir): Likewise, for fstatat_flags. |
| 5752 |
* src/create.c: Adjust to set_file_atime signature change. |
| 5753 |
* src/extract.c (mark_after_links, file_newer_p, extract_dir): |
| 5754 |
Likewise. |
| 5755 |
* src/incremen.c (try_purge_directory): Likewise. |
| 5756 |
* src/misc.c (maybe_backup_file): Likewise. |
| 5757 |
* src/extract.c (file_newer_p): New arg STP. All callers changed. |
| 5758 |
(maybe_recoverable): New arg REGULAR. All callers changed. |
| 5759 |
Handle the case of overwriting a symlink with a regular file, |
| 5760 |
when --overwrite is specified but --dereference is not. |
| 5761 |
(open_output_file): Add O_CLOEXEC, O_NOCTTY, O_NONBLOCK for |
| 5762 |
consistency with file creation. Add O_NOFOLLOW if |
| 5763 |
overwriting_old_files && ! dereference_option. |
| 5764 |
* src/incremen.c (update_parent_directory): Use fstat, not |
| 5765 |
fstatat; |
| 5766 |
there's less to go wrong. |
| 5767 |
* src/misc.c (deref_stat): Remove DEREF arg. All callers changed. |
| 5768 |
Instead, use fstatat_flags. |
| 5769 |
(set_file_atime): Remove ATFLAG arg. All callers changed. |
| 5770 |
Instead, use fstatat_flags. |
| 5771 |
* src/names.c, src/update.c: Adjust to deref_stat signature |
| 5772 |
change. |
| 5773 |
* src/tar.c (get_date_or_file): Use stat, not deref_stat, as this |
| 5774 |
is not a file to be archived. |
| 5775 |
* tests/Makefile.am (TESTSUITE_AT): Add extrac13.at. |
| 5776 |
* tests/extrac13.at: New file. |
| 5777 |
* tests/testsuite.at: Include it. |
| 5778 |
|
| 5779 |
2010-09-20 Paul Eggert <[email protected]> |
| 5780 |
|
| 5781 |
tar: do not crash with --listed-incremental |
| 5782 |
|
| 5783 |
Problem reported by Frantisek Hanzlik in |
| 5784 |
<https://bugzilla.redhat.com/635318> via Kamil Dudka in |
| 5785 |
<http://lists.gnu.org/archive/html/bug-tar/2010-09/msg00066.html>. |
| 5786 |
I don't understand this code either, but Sergey can take a look at |
| 5787 |
this patch, and perhaps install a better one, when he has |
| 5788 |
the time. |
| 5789 |
* src/incremen.c (append_incremental_renames): Don't actually |
| 5790 |
append |
| 5791 |
anything to DIR if DIR is null. |
| 5792 |
|
| 5793 |
2010-09-19 Paul Eggert <[email protected]> |
| 5794 |
|
| 5795 |
tar: prefer openat-style functions |
| 5796 |
|
| 5797 |
This change replaces traditional functions like 'open' with the |
| 5798 |
POSIX.1-2008 functions like 'openat'. Mostly this is an internal |
| 5799 |
refactoring change, in preparation for further changes to close |
| 5800 |
some races. |
| 5801 |
* gnulib.modules: Add faccessat, linkat, mkfifoat, renameat, |
| 5802 |
symlinkat. |
| 5803 |
Remove save-cwd. |
| 5804 |
* src/Makefile.am (tar_LDADD): Add $(LIB_EACCESS). |
| 5805 |
* tests/Makefile.am (LDADD): Likewise. |
| 5806 |
* src/common.h (chdir_fd): New extern var. |
| 5807 |
* src/compare.c (diff_file, diff_multivol): Use openat instead |
| 5808 |
of open. |
| 5809 |
* src/create.c (create_archive, restore_parent_fd): Likewise. |
| 5810 |
* src/extract.c (create_placeholder_file): Likewise. |
| 5811 |
* src/names.c (collect_and_sort_names): Likewise. |
| 5812 |
* src/update.c (append_file): Likewise. |
| 5813 |
* src/compare.c (diff_symlink): Use readlinkat instead of |
| 5814 |
readlink. |
| 5815 |
* src/compare.c (diff_file): Use chdir_fd instead of AT_FDCWD. |
| 5816 |
* src/create.c (subfile_open, dump_file0): Likewise. |
| 5817 |
* src/extract.c (fd_chmod, fd_chown, fd_stat, set_stat): |
| 5818 |
(repair_delayed_set_stat, apply_nonancestor_delayed_set_stat): |
| 5819 |
Likewise. |
| 5820 |
* src/extract.c (mark_after_links, file_newer_p, extract_dir): |
| 5821 |
(extract_link, apply_delayed_links): |
| 5822 |
Use fstatat rather than stat or lstat. |
| 5823 |
* src/misc.c (maybe_backup_file, deref_stat): Likewise. |
| 5824 |
* src/extract.c (make_directories): Use mkdirat rather than mkdir. |
| 5825 |
Use faccessat rather than access. This fixes a minor permissions |
| 5826 |
bug when tar is running setuid (who would want to do that?!). |
| 5827 |
(open_output_file): Use openat rather than open. |
| 5828 |
In the process, this removes support for Masscomp's O_CTG files, |
| 5829 |
which aren't compatible with openat's signature. Masscomp! Wow! |
| 5830 |
That's a blast from the past. As far as I know, that operating |
| 5831 |
system hasn't been supported for more than 20 years. |
| 5832 |
(extract_link, apply_delayed_links): |
| 5833 |
Use linkat rather than link. |
| 5834 |
(extract_symlink, apply_delayed_links): |
| 5835 |
Use symlinkat rather than symlink. |
| 5836 |
(extract_node): Use mknodat rather than mknod. |
| 5837 |
(extract_fifo): Use mkfifoat rather than mkfifo. |
| 5838 |
(apply_delayed_links): Use unlinkat rather than unlink or rmdir. |
| 5839 |
* src/misc.c (safer_rmdir, remove_any_file): Likewise. |
| 5840 |
* src/unlink.c (flush_deferred_unlinks): Likewise. |
| 5841 |
* src/extract.c (rename_directory): Use renameat rather than |
| 5842 |
rename. |
| 5843 |
* src/misc.c (maybe_backup_file, undo_last_backup): Likewise. |
| 5844 |
* src/misc.c: Don't include <save-cwd.h>; no longer needed now |
| 5845 |
that we're using openat etc. |
| 5846 |
(struct wd): Add member fd. Remove members err and fd. All uses |
| 5847 |
changed. |
| 5848 |
(CHDIR_CACHE_SIZE): New constant. |
| 5849 |
(wdcache, wdcache_count, chdir_fd): New vars. |
| 5850 |
(chdir_do): Use openat rather than save_cwd. Keep the cache up |
| 5851 |
to date. This code won't scale well, but is good enough for now. |
| 5852 |
* src/update.c (update_archive): Use openat + fdopendir + |
| 5853 |
streamsavedir rather than savedir. |
| 5854 |
|
| 5855 |
This file is a placeholder. It will be replaced with the actual |
| 5856 |
ChangeLog |
| 5857 |
by make dist. Run make ChangeLog if you wish to create it |
| 5858 |
earlier. |
| 5859 |
|
| 5860 |
2010-09-18 Paul Eggert <[email protected]> |
| 5861 |
|
| 5862 |
tar: add utimens.h includes |
| 5863 |
|
| 5864 |
* src/extract.c: Include <utimens.h>, needed for fdutimens |
| 5865 |
prototype. |
| 5866 |
* src/misc.c: Likewise. |
| 5867 |
|
| 5868 |
2010-09-18 Paul Eggert <[email protected]> |
| 5869 |
|
| 5870 |
tar: switch to gnulib fdutimensat module |
| 5871 |
|
| 5872 |
* gnulib.modules: Add fdutimensat. |
| 5873 |
* src/common.h (fd_utimensat): Remove decl. |
| 5874 |
* src/extract.c (set_stat): Call fdutimensat, not fd_utimensat. |
| 5875 |
* src/misc.c (set_file_atime): Likewise. |
| 5876 |
(fd_utimensat): Remove. |
| 5877 |
|
| 5878 |
2010-09-17 Paul Eggert <[email protected]> |
| 5879 |
|
| 5880 |
tar: extract permissions for . last |
| 5881 |
|
| 5882 |
* src/common.h (must_be_dot_or_slash): New decl. |
| 5883 |
* src/extract.c (mark_after_links): New function, taking code |
| 5884 |
that used to be in create_placeholder_file. |
| 5885 |
(create_placeholder_file): Use it. |
| 5886 |
(delay_set_stat): Always delay setting status for . and /. |
| 5887 |
* src/misc.c (must_be_dot_or_slash): Now extern. |
| 5888 |
* tests/extrac12.at: New file. |
| 5889 |
* tests/Makefile.am (TESTSUITE_AT): Add it. |
| 5890 |
* tests/testsuite.at: Likewise. |
| 5891 |
|
| 5892 |
2010-09-17 Paul Eggert <[email protected]> |
| 5893 |
|
| 5894 |
tar: don't check for getdtablesize; use AC_CHECK_FUNCS_ONCE |
| 5895 |
|
| 5896 |
* configure.ac: Don't check for getdtablesize; no longer needed. |
| 5897 |
Use AC_CHECK_FUNCS_ONCE rather than AC_CHECK_FUNCS, for |
| 5898 |
efficiency. |
| 5899 |
|
| 5900 |
2010-09-17 Paul Eggert <[email protected]> |
| 5901 |
|
| 5902 |
tar: extract symlink attributes, close some symlink-related races |
| 5903 |
|
| 5904 |
* NEWS: Describe symlink-extraction improvements. |
| 5905 |
* src/extract.c (enum permstatus): Remove. |
| 5906 |
(fchmod, fchown): Define dummy replacement macros if the system |
| 5907 |
does not supply them. |
| 5908 |
(implemented): New function. |
| 5909 |
(struct delayed_set_stat): Remove members invert_permissions, |
| 5910 |
permstatus. They were too confusing, and tried to do too much |
| 5911 |
in too-little space. Instead, add members current_mode, |
| 5912 |
current_mode_mask, interdir, atflag. All users changed. |
| 5913 |
(struct delayed_link): Add members mode, atime, mtime, to support |
| 5914 |
platforms such as BSD where symlinks have these attributes. |
| 5915 |
All users changed. |
| 5916 |
(fd_chmod): Renamed from fdchmod. New argument atflag. Check for |
| 5917 |
operation not supported at run-time, not at configure-time. Put |
| 5918 |
fd argument first. All callers changed. |
| 5919 |
(fd_chown): Likewise, renaming from fdchown. |
| 5920 |
(fd_stat): Likewise, renaming from fdstat. |
| 5921 |
(set_mode): Remove args stat_info, cur_info, invert_permissions, |
| 5922 |
permstatus. Add args mode, mode_mask, current_mode, |
| 5923 |
current_mode_mask, |
| 5924 |
atflag. All callers changed. Close some races. Use an easier-to |
| 5925 |
understand method for computing permissions. Work around POSIX |
| 5926 |
incompatibility in Linux fchmodat. Support extraction of symlink |
| 5927 |
modes, if the OS allows it. |
| 5928 |
(set_stat): Remove args cur_info, invert_permissions, permstatus. |
| 5929 |
Add args current_mode, current_mode_mask, interdir, atflag. |
| 5930 |
All callers changed. Close some races. Support extraction of |
| 5931 |
attributes on symlinks, if the OS allows it. |
| 5932 |
(delay_set_stat): Remove args invert_permissions, permstatus. |
| 5933 |
Add args current_mode, current_mode_mask, mode, atflag. |
| 5934 |
The ST arg can be null now, indicating that it's an intermediate |
| 5935 |
directory. All callers changed. |
| 5936 |
(repair_delayed_set_stat, apply_nonancestor_delayed_set_stat): |
| 5937 |
Close some races. |
| 5938 |
(extract_dir): Also be paranoid if only --same-permissions, due |
| 5939 |
to semantics of setgid and setuid directories on some hosts. |
| 5940 |
This closes a race on those hosts. Simplify calculation of |
| 5941 |
delay_set_stat arguments; the old code was truly strange and |
| 5942 |
probably wrong in some border cases. |
| 5943 |
(extract_dir, extract_file, extract_node, extract_fifo): Don't |
| 5944 |
rely on |
| 5945 |
unspecified behavior in mode arg of open, mknod, etc. Instead, |
| 5946 |
mask out those bits when creating the file, and add them later via |
| 5947 |
fchmod or chmodat. |
| 5948 |
(open_output_file): file_name is now const. Add arg current_mode, |
| 5949 |
current_mode_mask. All callers changed. When overwriting |
| 5950 |
old files, |
| 5951 |
refuse to overwrite something that is not a regular file, since |
| 5952 |
we're extracting a regular file. |
| 5953 |
(extract_file): Remove the FIXME comment. Whatever the protection |
| 5954 |
issues were, they should be fixed now. As a result of all |
| 5955 |
the other |
| 5956 |
API changes, we now use fchmod etc. rather than chmod etc., |
| 5957 |
closing |
| 5958 |
some races. |
| 5959 |
(create_placeholder_file, apply_delayed_links): Record desired |
| 5960 |
mode and times for symlinks, for OSes that support that. |
| 5961 |
|
| 5962 |
2010-09-16 Paul Eggert <[email protected]> |
| 5963 |
|
| 5964 |
tar: tar -x without --incremental no longer sets atime again |
| 5965 |
|
| 5966 |
* src/extract.c (set_stat): Use UTIME_OMIT rather than UTIME_NOW. |
| 5967 |
The UTIME_NOW was there only to emulate the previous behavior of |
| 5968 |
using the current time, and the previous behavior was there only |
| 5969 |
because before we started assuming POSIX.1-2008 there was no |
| 5970 |
portable way to get the effect of UTIME_NOW. |
| 5971 |
|
| 5972 |
2010-09-16 Paul Eggert <[email protected]> |
| 5973 |
|
| 5974 |
tar: another --atime-preserve race fix |
| 5975 |
|
| 5976 |
* src/common.h (set_file_atime): Add parentfd arg. |
| 5977 |
* src/compare.c (diff_file): Use it. |
| 5978 |
* src/create.c (dump_file0): Likewise. This closes yet another |
| 5979 |
race condition with symbolic links. |
| 5980 |
* src/misc.c (set_file_atime): Add parentfd arg. |
| 5981 |
|
| 5982 |
2010-09-16 Paul Eggert <[email protected]> |
| 5983 |
|
| 5984 |
tar: --atime-preserve fixes for races etc. |
| 5985 |
|
| 5986 |
This patch fixes a race condition in the --atime-preserve=replace |
| 5987 |
option, which might cause tar to improperly follow a symbolic |
| 5988 |
link. |
| 5989 |
|
| 5990 |
It also drops the use of the _FIOSATIME ioctl of Solaris 2.x |
| 5991 |
and later, which loses resolution on time stamps. Modern Solaris |
| 5992 |
systems support full-resolution time stamps in the kernel, and |
| 5993 |
it's not worth the hassle of testing this call, useful only in |
| 5994 |
no-longer-supported Solaris variants. |
| 5995 |
|
| 5996 |
Also, it undoes a change I recently introduced to the --compare |
| 5997 |
option, which caused it to not follow symbolic links unless the |
| 5998 |
--dereference option was also used. Quite possibly this change is |
| 5999 |
a good idea, but the old behavior was documented and the change |
| 6000 |
should not have been installed casually. |
| 6001 |
|
| 6002 |
* configure.ac: Don't check for stropts.h and sys/filio.h. |
| 6003 |
* gnulib.modules: Add futimens, utimensat. Remove futimens. |
| 6004 |
* src/common.h (fd_utimensat): New decl. |
| 6005 |
* src/compare.c (diff_file, diff_multivol): |
| 6006 |
Don't use open_read_flags: those are for --create only. |
| 6007 |
* src/create.c (dump_file0): Adjust to set_file_atime changes. |
| 6008 |
Pass fstatat_flags to set_file_atime, so that symbolic links are |
| 6009 |
not followed inadvertently. |
| 6010 |
* src/extract.c: Don't include utimens.h. |
| 6011 |
(set_stat): Use fd_utimensat ant UTIME_NOW rather than fdutimens. |
| 6012 |
* src/misc.c: Don't include utimens.h, stropts.h, sys/filio.h. |
| 6013 |
(fd_utimensat): New function. |
| 6014 |
(set_file_atime): Use it. New arg atflag, controlling symlink |
| 6015 |
handling. All callers changed. |
| 6016 |
|
| 6017 |
2010-09-14 Paul Eggert <[email protected]> |
| 6018 |
|
| 6019 |
* configure.ac: tar: close some race conditions when extracting |
| 6020 |
|
| 6021 |
* configure.ac: Check for fchmod and fchown. Don't check |
| 6022 |
for utimes. |
| 6023 |
* src/extract.c (fdchmod, fdchown, fdstat): New functions. |
| 6024 |
(set_mode, set_stat): New arg FD. All callers changed. |
| 6025 |
This avoids some race conditions between closing a regular file |
| 6026 |
and setting its metadata, and it's a bit faster. |
| 6027 |
|
| 6028 |
2010-09-13 Paul Eggert <[email protected]> |
| 6029 |
|
| 6030 |
tar: don't worry about fdopendir closing its argument |
| 6031 |
|
| 6032 |
* NEWS: Don't mention dirfd; no longer needed. |
| 6033 |
* gnulib.modules: Remove dirfd. |
| 6034 |
* src/create.c (get_directory_entries): Remove the code dealing |
| 6035 |
with dirfd failures, as the new fdopendir replacement doesn't |
| 6036 |
close its argument so we don't need to call dirfd. See |
| 6037 |
<http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html> |
| 6038 |
and gnulib commit 970c9038e4cca46e1b037ae0a6d574dfae6a7327. |
| 6039 |
|
| 6040 |
2010-09-13 Paul Eggert <[email protected]> |
| 6041 |
|
| 6042 |
* NEWS: Fix wording typo in previous change. |
| 6043 |
|
| 6044 |
Reported by Jim Meyering. |
| 6045 |
|
| 6046 |
2010-09-13 Paul Eggert <[email protected]> |
| 6047 |
|
| 6048 |
tar: live within system-supplied limits on file descriptors |
| 6049 |
|
| 6050 |
* NEWS: Note the change. Mention dirfd and fdopendir. |
| 6051 |
* gnulib.modules: Add dirfd and fdopendir. The code was already |
| 6052 |
using fdopendir; dirfd is a new need. |
| 6053 |
* src/common.h (open_searchdir_flags, get_directory_entries): |
| 6054 |
(subfile_open, restore_parent_fd, tar_stat_close): New decls. |
| 6055 |
(check_exclusion_tags): Adjust signature to match code change. |
| 6056 |
* src/create.c (IMPOSTOR_ERRNO): New constant. |
| 6057 |
(check_exclusion_tags): First arg is now a struct tar_stat_info |
| 6058 |
const *, not an fd. All callers changed. |
| 6059 |
(dump_regular_file, dump_file0): A zero fd represents an unused |
| 6060 |
slot, so play it safe if the fd member is zero here. A negative |
| 6061 |
fd represents the negation of an errno value, so play it safe and |
| 6062 |
do not assign -1 to fd merely because an open fails. |
| 6063 |
(open_failure_recover, get_directory_entries, restore_parent_fd): |
| 6064 |
(subfile_open): New functions. These help to recover from file |
| 6065 |
descriptor exhaustion. |
| 6066 |
(dump_dir, dump_file0): Use them. |
| 6067 |
(dump_file0): Use tar_stat_close instead of rolling our own close. |
| 6068 |
* src/incremen.c (scan_directory): Use get_directory_entries, |
| 6069 |
subfile_open, etc., to recover from file descriptor exhaustion. |
| 6070 |
* src/names.c (add_hierarchy_to_namelist): Likewise. |
| 6071 |
(collect_and_sort_names): A negative fd represents the negation |
| 6072 |
of an errno value, so play it safe and do not assign -1 to fd. |
| 6073 |
* src/tar.c (decode_options): Set open_searchdir_flags. |
| 6074 |
Add O_CLOEXEC to all the open flags. |
| 6075 |
(tar_stat_close): New function, which knows how to deal with |
| 6076 |
new convention for directory streams and file descriptors. |
| 6077 |
Diagnose 'close' failures. |
| 6078 |
(tar_stat_destroy): Use it. |
| 6079 |
* src/tar.h (struct tar_stat_info): New member dirstream. |
| 6080 |
fd now has the negative of an errno value, not merely -1, if |
| 6081 |
the file could not be opened, so that failures to reopen |
| 6082 |
directories |
| 6083 |
are better-diagnosed later. |
| 6084 |
* tests/Makefile.am (TESTSUITE_AT): Add extrac11.at. |
| 6085 |
* tests/testsuite.at: Likewise. |
| 6086 |
* tests/extrac11.at: New file. |
| 6087 |
|
| 6088 |
2010-09-08 Paul Eggert <[email protected]> |
| 6089 |
|
| 6090 |
tar: improve documentation of reliability and security issues |
| 6091 |
|
| 6092 |
* doc/tar.texi (Reliability and security, Reliability): |
| 6093 |
(Permissions problems, Data corruption and repair, Race |
| 6094 |
conditions): |
| 6095 |
(Security, Privacy, Integrity, Live untrusted data): |
| 6096 |
(Security rules of thumb): New nodes. |
| 6097 |
|
| 6098 |
2010-09-06 Paul Eggert <[email protected]> |
| 6099 |
|
| 6100 |
tar: more reliable directory traversal when creating archives |
| 6101 |
|
| 6102 |
* NEWS: Document this. |
| 6103 |
* gnulib.modules: Add openat, readlinkat. |
| 6104 |
* src/common.h (open_read_flags, fstatat_flags): New global |
| 6105 |
variables. |
| 6106 |
(cachedir_file_p, dump_file, check_exclusion_tags, |
| 6107 |
scan_directory): |
| 6108 |
Adjust to new signatures, described below. |
| 6109 |
(name_fill_directory): Remove. |
| 6110 |
* src/compare.c (diff_file, diff_multivol): Use open_read_flags. |
| 6111 |
* src/create.c (struct exclusion_tag): Exclusion predicates |
| 6112 |
now take |
| 6113 |
a file descriptor, not a file name. |
| 6114 |
(add_exclusion_tag): Likewise. All uses changed. |
| 6115 |
(cachedir_file_p): Likewise. |
| 6116 |
(check_exclusion_tags): The directory is now a file descriptor, |
| 6117 |
not a file name. All uses changed. Use openat for better |
| 6118 |
traversal. |
| 6119 |
(file_dumpable_p): Arg is now a struct stat, not a struct |
| 6120 |
tar_stat_info. All uses changed. Check the arg's file types too. |
| 6121 |
(dump_dir0, dump_dir, dump_file0, dump_file): Omit top_level and |
| 6122 |
parent_device args, since st->parent tells us that now. All uses |
| 6123 |
changed. |
| 6124 |
(dump_dir): Likewise. Also, omit fd arg for similar reasons. |
| 6125 |
Apply fdsavedir to a dup of the file descriptor, since we need a |
| 6126 |
file descriptor for openat etc. as well, and fdsavedir (perhaps |
| 6127 |
unwisely) consumes its file descriptor when successful. |
| 6128 |
Do not consume st->fd when successful; this simplifies the caller. |
| 6129 |
(create_archive): Allocate a file descriptor when retraversing |
| 6130 |
a directory, during incremental dumps. |
| 6131 |
(dump_file0): Use fstatat, openat, and readlinkat for better |
| 6132 |
traversal. |
| 6133 |
When opening a file, use the result of fstat on the file |
| 6134 |
descriptor |
| 6135 |
rather than the fstatat on the directory entry, to avoid some race |
| 6136 |
conditions. No need to reopen the directory since we now |
| 6137 |
no longer |
| 6138 |
close it. Change "did we open the file?" test from 0 <= fd to |
| 6139 |
0 < fd since fd == 0 now represents uninitialized. |
| 6140 |
(dump_file): Now accepts struct tar_stat_info describing parent, |
| 6141 |
not parent_device. Also, accept basename and fullname of entry. |
| 6142 |
All uses changed. |
| 6143 |
* src/incremen.c (update_parent_directory): Accept struct |
| 6144 |
tar_stat_info for parent, not name. All callers changed. |
| 6145 |
Use fstatat for safer directory traversal. |
| 6146 |
(procdir): Accept struct tar_stat_info, not struct stat and |
| 6147 |
dev_t, for info about directory. All callers changed. |
| 6148 |
(scan_directory): Accept struct tar_stat_info, not name, |
| 6149 |
device, and cmdline, for info about directory. All callers |
| 6150 |
changed. Do not consume the file descriptor, since caller |
| 6151 |
might need it. Use fstatat and openat for safer directory |
| 6152 |
traversal; also, use fstat after opening to double-check. |
| 6153 |
(name_fill_directory): Remove. |
| 6154 |
* src/names.c (add_hierarchy_to_namelist): Accept struct |
| 6155 |
tar_stat_info instead of device and cmdline. All callers changed. |
| 6156 |
When descending into a subdirectory, use openat and fstat for |
| 6157 |
safer directory traversal. |
| 6158 |
(collect_and_sort_names): Use open and fstat for safer directory |
| 6159 |
traversal. Set up struct tar_stat_info for callee's new API. |
| 6160 |
* src/tar.c (decode_options): Initialize open_read_flags |
| 6161 |
and fstatat_flags. |
| 6162 |
(tar_stat_destroy): Close st->fd if it is positive (not zero!). |
| 6163 |
* src/tar.h (struct tar_stat_info): New members parent, fd. |
| 6164 |
* src/update.c (update_archive): Adjust to dump_file's API change. |
| 6165 |
* tests/filerem02.at: Ignore stderr since its contents now depend |
| 6166 |
on the file system implementation. |
| 6167 |
|
| 6168 |
2010-09-05 Paul Eggert <[email protected]> |
| 6169 |
|
| 6170 |
tar: remove lint discovered by Sun C compiler |
| 6171 |
|
| 6172 |
* src/common.h (WARN_ALL): Don't mask with 0xffffffff; on a 32-bit |
| 6173 |
host, 0xffffffff is of type 'unsigned int', which makes WARN_ALL |
| 6174 |
an unsigned int value that is too large to fit into an int, and |
| 6175 |
the C standard says that this has undefined behavior. The mask is |
| 6176 |
not needed, so omit it. |
| 6177 |
|
| 6178 |
2010-09-04 Paul Eggert <[email protected]> |
| 6179 |
|
| 6180 |
tar: restore macros that are used in some cases |
| 6181 |
|
| 6182 |
* src/tar.c (LOW_DENSITY_NUM, MID_DENSITY_NUM, HIGH_DENSITY_NUM): |
| 6183 |
Restore these macros, undoing the previous change to this file. |
| 6184 |
The macros are used after all, in some cases. Sorry about that. |
| 6185 |
|
| 6186 |
2010-09-03 Paul Eggert <[email protected]> |
| 6187 |
|
| 6188 |
tar: remove unused macros |
| 6189 |
|
| 6190 |
* src/create.c (UINTMAX_TO_CHARS): Remove; no longer used. |
| 6191 |
* src/tar.c (LOW_DENSITY_NUM, MID_DENSITY_NUM, HIGH_DENSITY_NUM): |
| 6192 |
Likewise. |
| 6193 |
* src/incremen.c (DIR_IS_NEW): Comment out; not used. |
| 6194 |
Mark this with a FIXME, since it looks like it should be used. |
| 6195 |
|
| 6196 |
2010-08-27 Sergey Poznyakoff <[email protected]> |
| 6197 |
|
| 6198 |
Fix --remove-files in update/append mode. |
| 6199 |
|
| 6200 |
* src/update.c (update_archive): Call finish_deferred_unlinks when |
| 6201 |
done. |
| 6202 |
|
| 6203 |
2010-08-26 Paul Eggert <[email protected]> |
| 6204 |
|
| 6205 |
tar: avoid assumptions about root access and chmod -w in test |
| 6206 |
cases |
| 6207 |
|
| 6208 |
* tests/extrac07.at, tests/extrac09.at, tests/listed03.at: Use |
| 6209 |
AT_UNPRIVILEGED_PREREQ, since this test requires non-root |
| 6210 |
privileges. |
| 6211 |
* tests/extrac07.at: Don't use "chmod -w", as POSIX says it's not |
| 6212 |
portable to start a chmod permissions-list with "-" as it may be |
| 6213 |
confused with an option. Use "chmod a-w" instead. |
| 6214 |
|
| 6215 |
2010-08-26 Paul Eggert <[email protected]> |
| 6216 |
|
| 6217 |
tar: fix bug with -C and delayed setting of metadata |
| 6218 |
|
| 6219 |
* src/common.h (chdir_current): New decl. |
| 6220 |
* src/extract.c (struct delayed_set_stat, struct delayed_link): |
| 6221 |
New member change_dir. |
| 6222 |
(delay_set_stat, create_placeholder_file): Set it. |
| 6223 |
(apply_nonancestor_delayed_set_stat, apply_delayed_links): Use it. |
| 6224 |
(extract_link): Check that the links are all relative to the same |
| 6225 |
directory. |
| 6226 |
(extract_archive): Restore the current directory after |
| 6227 |
apply_nonancestor_delayed_set_stat has possibly changed it. |
| 6228 |
* src/misc.c (chdir_current): New external var; this used to |
| 6229 |
be the private static variable 'previous' inside chdir_dir. |
| 6230 |
All uses changed. |
| 6231 |
* tests/Makefile.am (TESTSUITE_AT): New test extrac10.at. |
| 6232 |
* tests/extrac10.at: New file. |
| 6233 |
* tests/testsuite.at: Include it. |
| 6234 |
|
| 6235 |
2010-08-25 Sergey Poznyakoff <[email protected]> |
| 6236 |
|
| 6237 |
Don't apply file transformations to volume names. |
| 6238 |
|
| 6239 |
* src/list.c (decode_header): Don't apply file transformations |
| 6240 |
to volume names. |
| 6241 |
* tests/xform01.at: New testcase. |
| 6242 |
* tests/xform-h.at (xform): Rename macro to xformtest. Use |
| 6243 |
pushdef/popdef. |
| 6244 |
* tests/Makefile.am, tests/testsuite.at: Add xform01.at |
| 6245 |
|
| 6246 |
2010-08-25 Paul Eggert <[email protected]> |
| 6247 |
|
| 6248 |
tar: optimize -c --sparse when file is entirely sparse |
| 6249 |
|
| 6250 |
* src/sparse.c (sparse_scan_file): If the file is entirely sparse, |
| 6251 |
that is, if ST_NBLOCKS is zero, don't bother scanning for nonzero |
| 6252 |
blocks. Idea by Kit Westneat, communicated by Bernd Schubert in |
| 6253 |
<http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00038.html>. |
| 6254 |
Also, omit unnecessary lseek at start of file. |
| 6255 |
|
| 6256 |
2010-08-25 Paul Eggert <[email protected]> |
| 6257 |
|
| 6258 |
tar: don't assume size of a sparse file chunk fits in size_t |
| 6259 |
|
| 6260 |
* src/tar.h (struct sp_array): Change numbytes from size_t |
| 6261 |
to off_t. |
| 6262 |
All uses changed. |
| 6263 |
* scripts/xsparse.c (struct sp_array): Likewise. |
| 6264 |
Include <stdint.h>, for SIZE_MAX. |
| 6265 |
(expand_sparse): Don't try to allocate a buffer bigger than |
| 6266 |
SIZE_MAX bytes. |
| 6267 |
* src/common.h (SIZE_TO_CHARS, size_to_chars, SIZE_FROM_HEADER): |
| 6268 |
(size_from_header): Remove decls. |
| 6269 |
* src/create.c (size_to_chars): Remove. |
| 6270 |
* src/list.c (size_from_header): Remove. |
| 6271 |
* src/sparse.c (sparse_extract_region, check_data_region): |
| 6272 |
(oldgnu_add_sparse, oldgnu_store_sparse_info, pax_decode_header): |
| 6273 |
Don't assume chunk sizes fit in size_t. |
| 6274 |
(oldgnu_add_sparse): Check for off_t overflow. |
| 6275 |
* src/xheader.c (sparse_numbytes_decoder, sparse_map_decoder): |
| 6276 |
Likewise. |
| 6277 |
|
| 6278 |
2010-08-25 Paul Eggert <[email protected]> |
| 6279 |
|
| 6280 |
tar: use ctime, not mtime, when checking placeholders |
| 6281 |
|
| 6282 |
* src/extract.c (struct delayed_link): Rename member mtime |
| 6283 |
to ctime. |
| 6284 |
All uses changed to use ctime rather than mtime. |
| 6285 |
|
| 6286 |
2010-08-24 Paul Eggert <[email protected]> |
| 6287 |
|
| 6288 |
tar: add comment to link04.at test |
| 6289 |
|
| 6290 |
* tests/link04.at: Add explanatory comment at head. |
| 6291 |
|
| 6292 |
2010-08-24 Paul Eggert <[email protected]> |
| 6293 |
|
| 6294 |
tar: fix 1.23 Solaris regression related to PRIV_SYS_LINKDIR |
| 6295 |
|
| 6296 |
The idea was suggested by Petr Sumbera in the thread starting |
| 6297 |
here: |
| 6298 |
http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00000.html |
| 6299 |
* src/extract.c (set_mode): Save the errno of the chmod that |
| 6300 |
failed, for the benefit of chmod_error_details. Do not bother |
| 6301 |
retrying chmod unless the mode suggests setuid is the issue. |
| 6302 |
(extract_archive): Remove redundant call to |
| 6303 |
priv_set_remove_linkdir. |
| 6304 |
* src/system.c: Include priv-set.h. |
| 6305 |
(sys_spawn_shell, sys_child_open_for_compress): |
| 6306 |
(sys_child_open_for_uncompress, sys_exec_command): |
| 6307 |
(sys_exec_info_script, sys_exec_checkpoint_script): |
| 6308 |
Invoke priv_set_restore_linkdir before execv or execlp, so that |
| 6309 |
the subprocess has the same privileges that tar originally did. |
| 6310 |
|
| 6311 |
2010-08-24 Paul Eggert <[email protected]> |
| 6312 |
|
| 6313 |
tar: handle files that occur multiple times but have link count 1 |
| 6314 |
|
| 6315 |
This patch was inspired by the following patch that addressed a |
| 6316 |
similar problem in GNU coreutils du: |
| 6317 |
http://git.savannah.gnu.org/gitweb/?p=coreutils.git;h=efe53cc72b599979ea292754ecfe8abf7c839d22 |
| 6318 |
* src/common.h (name_count): New decl. |
| 6319 |
* src/create.c (trivial_link_count): New static var. |
| 6320 |
(create_archive): Initialize it. |
| 6321 |
(dump_hard_link, file_count_links): Use it, so that files with |
| 6322 |
link count 1 are handled correctly when they are found multiple |
| 6323 |
times. |
| 6324 |
* src/names.c (allocated_entries): Renamed from allocated_names, |
| 6325 |
since the identifier's name was misleading. All uses changed. |
| 6326 |
(entries): Renamed from names. All uses changed. |
| 6327 |
(scanned): Renamed from name_index. All uses changed. |
| 6328 |
(name_count): New var. |
| 6329 |
(name_add_name): Increment it. |
| 6330 |
* tests/link04.at: New file. |
| 6331 |
* tests/testsuite.at: Add it. |
| 6332 |
* tests/Makefile.am (TESTSUITE_AT): Likewise. |
| 6333 |
|
| 6334 |
2010-08-23 Paul Eggert <[email protected]> |
| 6335 |
|
| 6336 |
tar: use nlink_t for link counts |
| 6337 |
|
| 6338 |
* src/create.c (struct link): nlink is now of type nlink_t, |
| 6339 |
not size_t. |
| 6340 |
|
| 6341 |
2010-08-23 Paul Eggert <[email protected]> |
| 6342 |
|
| 6343 |
tar: don't export names that aren't used elsewhere |
| 6344 |
|
| 6345 |
* src/common.h (file_dumpable_p, gid_to_chars, major_to_chars): |
| 6346 |
(minor_to_chars, mode_to_chars, uid_to_chars, uintmax_to_chars): |
| 6347 |
(string_to_chars, dumpdir_creat0, dumpdir_create, dumpdir_free): |
| 6348 |
(dumpdir_locate, dumpdir_next, dumpdir_first, gid_from_header): |
| 6349 |
(major_from_header, minor_from_header, mode_from_header): |
| 6350 |
(time_from_header, uid_from_header, quote_copy_string, |
| 6351 |
request_stdin): |
| 6352 |
(xheader_init, transform_header_name): |
| 6353 |
Remove declarations; these are no longer exported from their |
| 6354 |
modules. |
| 6355 |
(GID_TO_CHARS, MAJOR_TO_CHARS, MINOR_TO_CHARS, MODE_TO_CHARS): |
| 6356 |
(UID_TO_CHARS, UINTMAX_TO_CHARS, UNAME_TO_CHARS, GNAME_TO_CHARS): |
| 6357 |
Move to src/create.c, since no other module uses these. |
| 6358 |
(GID_FROM_HEADER, MAJOR_FROM_HEADER, MINOR_FROM_HEADER): |
| 6359 |
(MODE_FROM_HEADER, TIME_FROM_HEADER, UID_FROM_HEADER): |
| 6360 |
Move to src/extract.c, since no other module uses these. |
| 6361 |
(dumpdir_t, dumpdir_iter_t): Remove; no longer used. |
| 6362 |
* src/create.c (gid_to_chars, major_to_chars, minor_to_chars): |
| 6363 |
(mode_to_chars, uid_to_chars, uintmax_to_chars, string_to_chars): |
| 6364 |
(file_dumpable_p): Now static. |
| 6365 |
* src/incremen.c (dumpdir_create0, dumpdir_create, dumpdir_free): |
| 6366 |
(dumpdir_locate, dumpdir_next, dumpdir_first): Now static. |
| 6367 |
(scan_directory, write_directory_file_entry): |
| 6368 |
Use struct dumpdir_iter * rather than dumpdir_iter_t. |
| 6369 |
* src/list.c (gid_from_header, major_from_header, |
| 6370 |
minor_from_header): |
| 6371 |
(mode_from_header, time_from_header, uid_from_header): |
| 6372 |
(transform_member_name): Now static. |
| 6373 |
* src/misc.c (quote_copy_string): #if 0 out, as it's not used |
| 6374 |
anywhere. |
| 6375 |
* src/system.c (wait_for_grandchild): Now static. |
| 6376 |
* src/tar.c (request_stdin): Now static. |
| 6377 |
* src/xheader.c (xheader_init): Now static. |
| 6378 |
|
| 6379 |
2010-08-23 Paul Eggert <[email protected]> |
| 6380 |
|
| 6381 |
tar: fix misspelled identifier "set_comression_program_by_suffix" |
| 6382 |
|
| 6383 |
* src/suffix.c (set_compression_program_by_suffix): Renamed from |
| 6384 |
set_comression_program_by_suffix. |
| 6385 |
* src/buffer.c, src/common.h, src/tar.c: All uses changed. |
| 6386 |
|
| 6387 |
2010-08-20 Paul Eggert <[email protected]> |
| 6388 |
|
| 6389 |
tar: change interdir_made from int to bool |
| 6390 |
|
| 6391 |
* src/extract.c (maybe_recoverable, create_placeholder_file): |
| 6392 |
Change interdir_made from int * to bool *, since the flag has just |
| 6393 |
two values 0 and 1. All uses changed. This does not affect tar's |
| 6394 |
behavior. |
| 6395 |
|
| 6396 |
2010-08-20 Paul Eggert <[email protected]> |
| 6397 |
|
| 6398 |
tar: remove trailing white space from source files |
| 6399 |
|
| 6400 |
* ChangeLog.1, ChangeLog.CVS, Makefile.am, NEWS, README: |
| 6401 |
* README-hacking, directory, doc/Makefile.am, doc/dumpdir.texi: |
| 6402 |
* doc/gendocs_template, doc/intern.texi, doc/mastermenu.el: |
| 6403 |
* doc/snapshot.texi, doc/sparse.texi, doc/tar-snapshot-edit.texi: |
| 6404 |
* doc/value.texi, lib/Makefile.am, scripts/backup-specs: |
| 6405 |
* scripts/dump-remind.in, scripts/tar-snapshot-edit, |
| 6406 |
scripts/tarcat: |
| 6407 |
* scripts/xsparse.c, src/arith.h, src/buffer.c, src/compare.c: |
| 6408 |
* src/create.c, src/delete.c, src/exit.c, src/suffix.c, src/tar.c: |
| 6409 |
* src/tar.h, src/update.c, src/warning.c, src/xheader.c: |
| 6410 |
* tests/append01.at, tests/append02.at, tests/atlocal.in: |
| 6411 |
* tests/delete03.at, tests/exclude.at, tests/exclude06.at: |
| 6412 |
* tests/extrac04.at, tests/extrac05.at, tests/extrac06.at: |
| 6413 |
* tests/extrac07.at, tests/filerem01.at, tests/filerem02.at: |
| 6414 |
* tests/incr01.at, tests/incr02.at, tests/incr03.at, |
| 6415 |
tests/incr06.at: |
| 6416 |
* tests/label02.at, tests/label03.at, tests/label04.at: |
| 6417 |
* tests/label05.at, tests/link02.at, tests/link03.at: |
| 6418 |
* tests/listed01.at, tests/listed02.at, tests/long01.at: |
| 6419 |
* tests/longv7.at, tests/multiv01.at, tests/multiv02.at: |
| 6420 |
* tests/multiv03.at, tests/multiv05.at, tests/multiv06.at: |
| 6421 |
* tests/multiv07.at, tests/multiv08.at, tests/options.at: |
| 6422 |
* tests/options02.at, tests/remfiles03.at, tests/rename01.at: |
| 6423 |
* tests/rename02.at, tests/rename03.at, tests/rename04.at: |
| 6424 |
* tests/rename05.at, tests/same-order01.at, tests/same-order02.at: |
| 6425 |
* tests/shortfile.at, tests/shortupd.at, tests/sparse01.at: |
| 6426 |
* tests/sparse02.at, tests/sparsemv.at, tests/sparsemvp.at: |
| 6427 |
* tests/star/README, tests/star/gtarfail2.at: |
| 6428 |
* tests/star/multi-fail.at: |
| 6429 |
* tests/star/pax-big-10g.at, tests/star/quicktest.sh: |
| 6430 |
* tests/star/ustar-big-2g.at, tests/star/ustar-big-8g.at: |
| 6431 |
* tests/update01.at, tests/update02.at, tests/volsize.at: |
| 6432 |
* tests/volume.at: |
| 6433 |
Remove trailing spaces and tabs from lines, and remove |
| 6434 |
trailing empty lines from files. This makes it a bit easier |
| 6435 |
to share code among coreutils and other projects that do this. |
| 6436 |
|
| 6437 |
2010-08-19 Paul Eggert <[email protected]> |
| 6438 |
|
| 6439 |
tar: update licenses to latest versions from www.gnu.org |
| 6440 |
|
| 6441 |
* COPYING: Update to latest version; this is just minor |
| 6442 |
formatting. |
| 6443 |
* doc/fdl.texi: Update from GFDL 1.2 to 1.3. |
| 6444 |
* doc/tar.texi: Adjust to new format of fdl.texi. Omit trailing |
| 6445 |
white space. |
| 6446 |
|
| 6447 |
2010-07-18 Paul Eggert <[email protected]> |
| 6448 |
|
| 6449 |
* src/misc.c (struct wd): Fix comment to match code. |
| 6450 |
|
| 6451 |
2010-07-18 Paul R. Eggert <[email protected]> |
| 6452 |
|
| 6453 |
tar: no need to report getcwd error if never using the result |
| 6454 |
|
| 6455 |
* src/misc.c (struct wd): Rename 'saved' to 'err', with new |
| 6456 |
semantics. |
| 6457 |
(chdir_arg, chdir_do): Adjust to new semantics. Do not report an |
| 6458 |
error merely because save_cwd fails; report an error only if |
| 6459 |
save_cwd's result is needed later. |
| 6460 |
* tests/extrac09.at: New file, to test for bug that was fixed. |
| 6461 |
* tests/testsuite.at: Include it. |
| 6462 |
* tests/Makefile.am (TESTSUITE_AT): Add it. |
| 6463 |
|
| 6464 |
2010-07-18 Paul R. Eggert <[email protected]> |
| 6465 |
|
| 6466 |
tar: go back to absolutifying filenames in normalize_filename |
| 6467 |
for now |
| 6468 |
|
| 6469 |
* src/misc.c (normalize_filename): For now, go back to making |
| 6470 |
filenames absolute, even though this causes 'tar' to fail when |
| 6471 |
getcwd fails. However, do not attempt to resolve ".." as this |
| 6472 |
does not work with symlinks. Also, do the right thing with |
| 6473 |
leading file system prefixes and on hosts where // != /. |
| 6474 |
|
| 6475 |
2010-07-17 Sergey Poznyakoff <[email protected]> |
| 6476 |
|
| 6477 |
Allow for size suffixes in -L and --record-size options. |
| 6478 |
|
| 6479 |
* src/tar.c (TAR_SIZE_SUFFIXES): New define. |
| 6480 |
(parse_opt): Allow for size suffixes in arguments to |
| 6481 |
-L and --record-size options. |
| 6482 |
* NEWS, doc/tar.texi: Update. |
| 6483 |
|
| 6484 |
2010-07-15 Paul R. Eggert <[email protected]> |
| 6485 |
|
| 6486 |
tar: don't crash if getcwd fails |
| 6487 |
|
| 6488 |
* src/extract.c: Don't include xgetcwd.h. |
| 6489 |
(extract_dir): stat "." rather than statting getcwd's output. |
| 6490 |
* src/misc.c (normalize_filename_x): Rewrite so as not to resolve |
| 6491 |
/../, which can't be done reliably in the presence of symlinks. |
| 6492 |
Don't reject valid names such as ".". |
| 6493 |
(normalize_filename): Don't make it absolute; that way, we don't |
| 6494 |
have to invoke xgetcwd which might fail. Don't bother to realloc |
| 6495 |
at the end, since that uses time and now saves little space. |
| 6496 |
(chdir_do): Don't crash if xgetcwd fails. |
| 6497 |
* tests/Makefile.am (TESTSUITE_AT): Add listed03.at. |
| 6498 |
* tests/listed03.at: New file. |
| 6499 |
* tests/testsuite.at: Include listed03.at. |
| 6500 |
|
| 6501 |
2010-07-11 Sergey Poznyakoff <[email protected]> |
| 6502 |
|
| 6503 |
Keep a detailed map of archive members stored in the record |
| 6504 |
buffer. |
| 6505 |
|
| 6506 |
A separate map (bufmap) provides information for creating |
| 6507 |
multi-volume continuation headers. |
| 6508 |
|
| 6509 |
* src/buffer.c (bufmap): New struct. |
| 6510 |
(bufmap_head, bufmap_tail, inhibit_map): New variables. |
| 6511 |
(mv_begin_write): New function. |
| 6512 |
(mv_begin): Rename to mv_begin_read. Rewrite using mv_begin_write. |
| 6513 |
All callers changed. |
| 6514 |
(mv_total_size): Remove. |
| 6515 |
(bufmap_locate, bufmap_free, bufmap_reset): New functions. |
| 6516 |
(_flush_write): Update bufmap. |
| 6517 |
(close_archive): Free bufmap. |
| 6518 |
(add_chunk_header): Take a bufmap argument. |
| 6519 |
(gnu_add_multi_volume_header): Likewise. |
| 6520 |
(add_multi_volume_header): Likewise. |
| 6521 |
(_gnu_flush_write): Rewrite using bufmap. |
| 6522 |
(real_s_name, real_s_totsize) |
| 6523 |
(real_s_sizeleft) |
| 6524 |
(save_name, save_totsize, save_sizeleft): Removed. All |
| 6525 |
uses updated. |
| 6526 |
(mv_size_left): Update bufmap_head. |
| 6527 |
(mv_end): Rewrite. |
| 6528 |
(multi_volume_sync): Remove. |
| 6529 |
|
| 6530 |
* src/common.h (mv_begin_write): New prototype. |
| 6531 |
(mv_begin): Rename to mv_begin_read. |
| 6532 |
* src/create.c: Use mv_begin_write instead of mv_begin. |
| 6533 |
Remove calls to mv_size_left and mv_end. |
| 6534 |
* src/sparse.c: Likewise. |
| 6535 |
|
| 6536 |
* tests/multiv07.at: Close stdin. |
| 6537 |
* tests/spmvp00.at: Update AT_KEYWORDS. |
| 6538 |
* tests/spmvp10.at: Likewise. |
| 6539 |
|
| 6540 |
* tests/multiv08.at: New testcase. |
| 6541 |
* tests/Makefile.am, tests/testsuite.at: Add multiv08.at. |
| 6542 |
|
| 6543 |
2010-07-11 Sergey Poznyakoff <[email protected]> |
| 6544 |
|
| 6545 |
Version 1.23.90 |
| 6546 |
|
| 6547 |
* NEWS, configure.ac: Version 1.23.90 |
| 6548 |
* doc/tar.texi: Document the use of lbzip2. |
| 6549 |
|
| 6550 |
2010-06-28 Sergey Poznyakoff <[email protected]> |
| 6551 |
|
| 6552 |
Fix exclusion of long file names when extracting from pax format |
| 6553 |
archives. |
| 6554 |
|
| 6555 |
* src/list.c (read_and): Call decode_header before attempting |
| 6556 |
name_match. |
| 6557 |
(list_archive): Remove call to decode_header. |
| 6558 |
|
| 6559 |
* src/compare.c (diff_archive): Remove call to decode_header. |
| 6560 |
* src/extract.c (extract_archive): Likewise. |
| 6561 |
|
| 6562 |
* test/exclude06.at: New test case. |
| 6563 |
* tests/testsuite.at: Include exclude06.at. |
| 6564 |
* tests/Makefile.am (TESTSUITE_AT): Add exclude06.at. |
| 6565 |
|
| 6566 |
2010-06-28 Sergey Poznyakoff <[email protected]> |
| 6567 |
|
| 6568 |
Minor fix. |
| 6569 |
|
| 6570 |
* src/buffer.c (magic): Split the character constant to help |
| 6571 |
cc recognize character boundaries (7 is a valid hex character). |
| 6572 |
|
| 6573 |
2010-06-27 Sergey Poznyakoff <[email protected]> |
| 6574 |
|
| 6575 |
Minor fix. |
| 6576 |
|
| 6577 |
* src/buffer.c (magic): Fix xz magic. |
| 6578 |
|
| 6579 |
2010-06-16 Paul Eggert <[email protected]> |
| 6580 |
|
| 6581 |
Remove some lint, found by gcc -W etc. |
| 6582 |
|
| 6583 |
* src/common.h (label_notfound): New decl. |
| 6584 |
* src/buffer.c (set_volume_start_time, compress_type): |
| 6585 |
(guess_seekable_archive, open_compressed_archive, init_buffer): |
| 6586 |
(_flush_write, archive_is-dev, increase_volume_number): |
| 6587 |
(change_tape_menu, try_new_volume, add_chunk_header): |
| 6588 |
(multi_volume_sync): |
| 6589 |
Declare as 'static' if it's not exported. |
| 6590 |
Use function prototype (void) rather than old-style (). |
| 6591 |
* src/checkpoint.c (expand_checkpoint_string): Likewise. |
| 6592 |
* src/incremen.c (dirlist_replace_prefix, makedumpdir, |
| 6593 |
read_incr_db_2): |
| 6594 |
Likewise. |
| 6595 |
* src/list.c (print_volume_label): Likewise. |
| 6596 |
* src/misc.c (normalize_filename_x): Likewise. |
| 6597 |
* src/names.c (make_name, free_name, check_name_alloc, |
| 6598 |
name_next_elt): |
| 6599 |
Likewise. |
| 6600 |
* src/tar.c (tar_list_quoting_style, add_exclude_array): |
| 6601 |
(set_stat_signal): Likewise. |
| 6602 |
* src/transform.c (new_transform, |
| 6603 |
_single_transform_name_to_obstack): |
| 6604 |
(_transform_name_to_obstack): Likewise. |
| 6605 |
* src/unlink.c (dunlink_alloc): Likewise. |
| 6606 |
|
| 6607 |
* src/buffer.c (struct zip_magic): Use const when appropriate. |
| 6608 |
* src/incremen.c (obstack_code_rename, |
| 6609 |
write_directory_file_entry): |
| 6610 |
Likewise. |
| 6611 |
* src/sparse.c (COPY_STRING): Likewise. |
| 6612 |
* src/system.c (dec_to_env, time_to_env, oct_to_env, str_to_env): |
| 6613 |
(chr_to_env): Likewise. |
| 6614 |
* src/tar.c (tar_list_quoting_style, set_stat_signal): Likewise. |
| 6615 |
|
| 6616 |
* src/extract.c (extract_node): Don't return garbage. |
| 6617 |
|
| 6618 |
* src/names.c: Remove old-style declarations of getgrnam etc. |
| 6619 |
All modern systems declare these, and it's not worth the hassle |
| 6620 |
of ignoring the warnings on modern systems for old-style decls. |
| 6621 |
|
| 6622 |
2010-05-17 Sergey Poznyakoff <[email protected]> |
| 6623 |
|
| 6624 |
Bugfix. |
| 6625 |
|
| 6626 |
* src/incremen.c (make_directory): Retain the slash if it is the |
| 6627 |
only character in a filename. |
| 6628 |
|
| 6629 |
2010-04-02 Sergey Poznyakoff <[email protected]> |
| 6630 |
|
| 6631 |
Recode NEWS back to UTF-8 |
| 6632 |
|
| 6633 |
2010-04-01 Sergey Poznyakoff <[email protected]> |
| 6634 |
|
| 6635 |
Fix the gzip.at test case. |
| 6636 |
|
| 6637 |
* tests/gzip.at: Suppress gzip error output, as it can differ |
| 6638 |
depending on its version etc. Bug reported by Ludovic Courtès. |
| 6639 |
|
| 6640 |
2010-03-28 Sergey Poznyakoff <[email protected]> |
| 6641 |
|
| 6642 |
New option --full-time. |
| 6643 |
|
| 6644 |
* src/common.h (full_time_option): New global. |
| 6645 |
* src/tar.c (FULL_TIME_OPTION): New constant. |
| 6646 |
(options): New option --full-time. |
| 6647 |
(parse_opt): Handle the --full-time option. |
| 6648 |
* src/list.c (simple_print_header): Pass full_time_option |
| 6649 |
as the 2nd argument to tartime. |
| 6650 |
* doc/tar.texi: Update. |
| 6651 |
* NEWS: Update. |
| 6652 |
|
| 6653 |
2010-03-27 Sergey Poznyakoff <[email protected]> |
| 6654 |
|
| 6655 |
Minor fixes in the testsuite. |
| 6656 |
|
| 6657 |
* tests/extrac07.at: Fix a typo (invalid number |
| 6658 |
of arguments before format list). |
| 6659 |
* tests/link02.at: Use `ln' instead of `link'. |
| 6660 |
* tests/link03.at: Likewise. |
| 6661 |
|
| 6662 |
2010-03-27 Sergey Poznyakoff <[email protected]> |
| 6663 |
|
| 6664 |
Fix coredump. |
| 6665 |
|
| 6666 |
* src/names.c (collect_and_sort_names): Remove |
| 6667 |
entry from the table before freeing it. |
| 6668 |
|
| 6669 |
2010-03-27 Sergey Poznyakoff <[email protected]> |
| 6670 |
|
| 6671 |
Fix dead loop on extracting existing symlinks with the -k option. |
| 6672 |
|
| 6673 |
* src/extract.c (create_placeholder_file) |
| 6674 |
(extract_link, extract_symlink) |
| 6675 |
(extract_node, extract_fifo): Handle all possible |
| 6676 |
return values from maybe_recoverable. This complements |
| 6677 |
8f390db92fc. Reported by Ico Doornekamp <[email protected]>. |
| 6678 |
* NEWS: Update. |
| 6679 |
|
| 6680 |
2010-03-20 Sergey Poznyakoff <[email protected]> |
| 6681 |
|
| 6682 |
Fix undesired error exit on receiving SIGPIPE. |
| 6683 |
|
| 6684 |
* src/tar.c: Do not ignore SIGPIPE. |
| 6685 |
* tests/sigpipe.at: New testcase. |
| 6686 |
* tests/Makefile.am, tests/testsuite.at: Add sigpipe.at |
| 6687 |
* tests/remfiles01.at: Fix error code expectation. |
| 6688 |
* NEWS: Update. |
| 6689 |
|
| 6690 |
2010-03-17 Sergey Poznyakoff <[email protected]> |
| 6691 |
|
| 6692 |
Fix --remove-files. |
| 6693 |
|
| 6694 |
Tar --remove-files relied on canonicalize_file_name, |
| 6695 |
which replaces symlinks in file name components with |
| 6696 |
the directories they point to. Due to this, tar |
| 6697 |
effectively ignored existence of symbolic links and |
| 6698 |
was unable to remove a directory that contained any |
| 6699 |
(Alexander Kozlov <[email protected]>, 2010-03-15). |
| 6700 |
|
| 6701 |
* gnulib.modules: Remove canonicalize. |
| 6702 |
* src/misc.c (normalize_filename): Rewrite |
| 6703 |
from scratch. The function operates only on |
| 6704 |
its input string, it makes no attempt to test |
| 6705 |
components for existence or to resolve symbolic |
| 6706 |
links. |
| 6707 |
* tests/Makefile.am (TESTSUITE_AT): Add remfiles03.at. |
| 6708 |
* tests/testsuite.at: Likewise. |
| 6709 |
* tests/remfiles03.at: New test case. |
| 6710 |
* NEWS: Update. |
| 6711 |
|
| 6712 |
2010-03-12 Sergey Poznyakoff <[email protected]> |
| 6713 |
|
| 6714 |
Bugfixes. |
| 6715 |
|
| 6716 |
* src/buffer.c (check_label_pattern): Initialize result. |
| 6717 |
* tests/remfiles01.at: Skip if run with root privileges. |
| 6718 |
|
| 6719 |
2010-03-11 Sergey Poznyakoff <[email protected]> |
| 6720 |
|
| 6721 |
Fix `--test-label' and `--label -r' behavior. |
| 6722 |
|
| 6723 |
* doc/tar.texi (Including a Label in the Archive): Revise |
| 6724 |
the section. |
| 6725 |
* NEWS: Update |
| 6726 |
|
| 6727 |
* src/buffer.c (open_archive): Check volume label on |
| 6728 |
ACCESS_UPDATE as well. |
| 6729 |
* src/list.c (test_archive_label): Rewrite to match the |
| 6730 |
documentation. |
| 6731 |
* src/names.c (regex_usage_warning): Return int. |
| 6732 |
(names_notfound): Rewrite the conditional. |
| 6733 |
(label_notfound): New function. |
| 6734 |
|
| 6735 |
* tests/label03.at: New testcase. |
| 6736 |
* tests/label04.at: New testcase. |
| 6737 |
* tests/label05.at: New testcase. |
| 6738 |
* tests/Makefile.am: Add new testcases. |
| 6739 |
* tests/testsuite.at: Likewise. |
| 6740 |
|
| 6741 |
2010-03-11 Sergey Poznyakoff <[email protected]> |
| 6742 |
|
| 6743 |
Doc fixes. |
| 6744 |
|
| 6745 |
* doc/tar.texi: Consistently use lowercase `see' within sentences. |
| 6746 |
More fixes spotted by Denis Excoffier. |
| 6747 |
* THANKS: Update. |
| 6748 |
|
| 6749 |
2010-03-11 Sergey Poznyakoff <[email protected]> |
| 6750 |
|
| 6751 |
Shut up a gcc warning message. |
| 6752 |
|
| 6753 |
* src/tar.c (tar_help_filter): Use a separate const |
| 6754 |
variable to hold returns from gettext. Reported by |
| 6755 |
Peter Breitenlohner. |
| 6756 |
|
| 6757 |
2010-03-11 Sergey Poznyakoff <[email protected]> |
| 6758 |
|
| 6759 |
Bugfix. |
| 6760 |
|
| 6761 |
* src/names.c (collect_and_sort_names): Initialize prev_name. |
| 6762 |
Reported by Dmitry V. Levin. |
| 6763 |
|
| 6764 |
2010-03-10 Sergey Poznyakoff <[email protected]> |
| 6765 |
|
| 6766 |
Version 1.23 |
| 6767 |
|
| 6768 |
* configure.ac, NEWS: Update version number. |
| 6769 |
|
| 6770 |
2010-03-10 Sergey Poznyakoff <[email protected]> |
| 6771 |
|
| 6772 |
Doc changes. |
| 6773 |
|
| 6774 |
* NEWS: Update. |
| 6775 |
* THANKS: Update. |
| 6776 |
* doc/snapshot.texi, doc/snapshot.texi, |
| 6777 |
doc/sparse.texi, doc/tar-snapshot-edit.texi, |
| 6778 |
doc/tar.texi: Spellchecked and proof-read. Thanks |
| 6779 |
to Denis Excoffier. |
| 6780 |
* gnulib.modules: Remove utime. |
| 6781 |
|
| 6782 |
2010-03-08 Kamil Dudka <[email protected]> |
| 6783 |
|
| 6784 |
Fix possible overflow in code_timespec (tiny change) |
| 6785 |
|
| 6786 |
* src/misc.c (code_timespec): ignore invalid values of ns |
| 6787 |
|
| 6788 |
2010-03-08 Sergey Poznyakoff <[email protected]> |
| 6789 |
|
| 6790 |
Minor fix in the testsuite. |
| 6791 |
|
| 6792 |
* tests/extrac05.at: Skip test if creating |
| 6793 |
sparse file fails. |
| 6794 |
|
| 6795 |
2010-03-08 Sergey Poznyakoff <[email protected]> |
| 6796 |
|
| 6797 |
Fix eventual memory override and fd exhaustion in create.c Both |
| 6798 |
bugs reported by Kamil Dudka. |
| 6799 |
|
| 6800 |
* src/create.c (check_exclusion_tags): Do not keep |
| 6801 |
pointer to a location within tagname: it may change |
| 6802 |
after xrealloc. Use byte offset instead. |
| 6803 |
(dump_file0): Close fd before returning without |
| 6804 |
dumping the directory. |
| 6805 |
|
| 6806 |
2010-03-02 Sergey Poznyakoff <[email protected]> |
| 6807 |
|
| 6808 |
Minor change. |
| 6809 |
|
| 6810 |
* doc/tar.texi: Improve some wording. |
| 6811 |
|
| 6812 |
2010-03-02 Antonio Diaz Diaz <[email protected]> |
| 6813 |
|
| 6814 |
Add Lzip support |
| 6815 |
|
| 6816 |
* configure.ac: Add TAR_COMPR_PROGRAM(lzip) |
| 6817 |
* doc/tar.texi: Reflect lzip support. |
| 6818 |
* src/buffer.c (compress_type) <ct_lzip>: New constant. |
| 6819 |
(magic): Add magic for lzip. |
| 6820 |
* src/suffix.c (compression_suffixes): Add lz. |
| 6821 |
* src/tar.c: New option --lzip. |
| 6822 |
|
| 6823 |
2010-03-02 Sergey Poznyakoff <[email protected]> |
| 6824 |
|
| 6825 |
Minor fix. |
| 6826 |
|
| 6827 |
* tests/exclude05.at: Rewrite awk invocation to avoid |
| 6828 |
overflowing awk's file table on Solaris. |
| 6829 |
|
| 6830 |
2010-03-02 Eric Blake <[email protected]> |
| 6831 |
|
| 6832 |
Fix large file support. |
| 6833 |
|
| 6834 |
* scripts/xsparse.c (read_map): Use fseeko. |
| 6835 |
* src/incremen.c (write_directory_file): Likewise. |
| 6836 |
|
| 6837 |
2010-03-02 Sergey Poznyakoff <[email protected]> |
| 6838 |
|
| 6839 |
Bugfix |
| 6840 |
|
| 6841 |
* src/buffer.c (seek_archive): Rewrite size computation |
| 6842 |
to prevent it from reaching negative values. Based on |
| 6843 |
report by Denis Excoffier <[email protected]>. |
| 6844 |
|
| 6845 |
2010-02-25 Sergey Poznyakoff <[email protected]> |
| 6846 |
|
| 6847 |
Supply more information to the --to-command script. |
| 6848 |
|
| 6849 |
* src/system.c (stat_to_env): Pass information about the current |
| 6850 |
volume in variables TAR_ARCHIVE, TAR_VOLUME, TAR_BLOCKING_FACTOR, |
| 6851 |
TAR_FORMAT. |
| 6852 |
* doc/tar.texi: Document new environment variables. |
| 6853 |
* NEWS: Likewise. |
| 6854 |
* configure.ac: Version number 1.22.91. |
| 6855 |
|
| 6856 |
2010-02-17 Sergey Poznyakoff <[email protected]> |
| 6857 |
|
| 6858 |
Minor change. |
| 6859 |
|
| 6860 |
* src/names.c (regex_usage_warning): Fix warning message. |
| 6861 |
|
| 6862 |
2010-02-05 Sergey Poznyakoff <[email protected]> |
| 6863 |
|
| 6864 |
Update THANKS |
| 6865 |
|
| 6866 |
2010-02-05 Ondřej Vašík <[email protected]> |
| 6867 |
|
| 6868 |
Bugfix (tiny change) |
| 6869 |
|
| 6870 |
* src/xheader.c (xheader_read): Remove unnecessary call |
| 6871 |
to xheader_init. |
| 6872 |
|
| 6873 |
2010-01-26 Sergey Poznyakoff <[email protected]> |
| 6874 |
|
| 6875 |
Enable silent build mode. |
| 6876 |
|
| 6877 |
* configure.ac: Require automake 1.11, autoconf 2.63. Enable |
| 6878 |
silent rules. |
| 6879 |
* NEWS: Update. |
| 6880 |
* lib/Makefile.am (rmt-command.h): Silent the rule. |
| 6881 |
|
| 6882 |
2010-01-25 Sergey Poznyakoff <[email protected]> |
| 6883 |
|
| 6884 |
Read POSIX multivolume archives split at the header boundary. |
| 6885 |
|
| 6886 |
* src/common.h (read_header_mode): New enum. |
| 6887 |
(read_header): Change type of the 3rd argument. |
| 6888 |
* src/list.c (read_header): Change type of the 3rd argument. |
| 6889 |
All callers updated. |
| 6890 |
* src/buffer.c (try_new_volume): Allow for volumes split at the |
| 6891 |
extended/ustar header boundary. This is against POSIX specs, but |
| 6892 |
we must be able to read such archives anyway. |
| 6893 |
|
| 6894 |
* tests/multiv07.at: New test case. |
| 6895 |
* tests/Makefile.am: Add multiv07.at |
| 6896 |
* tests/testsuite.at: Likewise. |
| 6897 |
|
| 6898 |
* src/compare.c: Update calls to read_header. |
| 6899 |
* src/delete.c: Likewise. |
| 6900 |
* src/update.c: Likewise. |
| 6901 |
|
| 6902 |
2010-01-24 Sergey Poznyakoff <[email protected]> |
| 6903 |
|
| 6904 |
Minor change. |
| 6905 |
|
| 6906 |
* NEWS: Update. |
| 6907 |
* doc/tar.texi: Update. |
| 6908 |
* src/create.c (finish_header): Minor change. |
| 6909 |
|
| 6910 |
2010-01-24 Rob Vermaas <[email protected]> |
| 6911 |
|
| 6912 |
Bugfix (tiny change). |
| 6913 |
|
| 6914 |
* src/tar.c (format_default_settings)[REMOTE_SHELL]: Fix |
| 6915 |
misplaced comma. |
| 6916 |
|
| 6917 |
2010-01-24 Sergey Poznyakoff <[email protected]> |
| 6918 |
|
| 6919 |
Minor fix. |
| 6920 |
|
| 6921 |
* src/incremen.c (read_incr_db_01) |
| 6922 |
(read_directory_file): Initialize bufsize to 0. |
| 6923 |
Suggested by [email protected]. |
| 6924 |
|
| 6925 |
2010-01-24 Sergey Poznyakoff <[email protected]> |
| 6926 |
|
| 6927 |
Improve handling of --test-label. |
| 6928 |
|
| 6929 |
* src/list.c (print_volume_label): New function. |
| 6930 |
(print_header): Call print_volume_label. |
| 6931 |
(test_archive_label): New function. |
| 6932 |
* src/buffer.c (VOLUME_LABEL_APPEND): Remove. |
| 6933 |
(VOLUME_TEXT, VOLUME_TEXT_LEN): New macros |
| 6934 |
(drop_volume_label_suffix): New function. |
| 6935 |
(check_label_pattern): Use drop_volume_label_suffix. |
| 6936 |
* src/common.h (subcommand): New constant TEST_LABEL_SUBCOMMAND. |
| 6937 |
(test_label_option): Remove. |
| 6938 |
(drop_volume_label_suffix): New proto. |
| 6939 |
(test_archive_label): New proto. |
| 6940 |
* src/names.c (all_names_found): Remove test for |
| 6941 |
test_label_option. |
| 6942 |
* src/tar.c (subcommand_string): Handle TEST_LABEL_SUBCOMMAND. |
| 6943 |
(set_subcommand_option): Improve diagnostics. |
| 6944 |
(parse_opt): Set subcommand if --test-label is given. |
| 6945 |
(main): Handle TEST_LABEL_SUBCOMMAND. |
| 6946 |
|
| 6947 |
2010-01-24 Sergey Poznyakoff <[email protected]> |
| 6948 |
|
| 6949 |
Fix listing of volume labels (in particular in PAX archives). |
| 6950 |
|
| 6951 |
* src/buffer.c (match_volume_label): Call set_volume_label. |
| 6952 |
(check_label_pattern): Get label string |
| 6953 |
as argument. |
| 6954 |
(match_volume_label): Handle volume labels stored in |
| 6955 |
global PAX headers. |
| 6956 |
* src/common.c (print_header,read_header): Change signature. |
| 6957 |
(read_header_primitive): Remove prototype. |
| 6958 |
* src/list.c (recent_global_header): New static. |
| 6959 |
(list_archive): Always print volume labels. |
| 6960 |
(read_header_primitive): Remove. |
| 6961 |
(read_header): Change the signature (all callers updated) |
| 6962 |
Save the recent global header. |
| 6963 |
(volume_label_printed): New static. |
| 6964 |
(simple_print_header): New function (ex-print_header). |
| 6965 |
(print_header): Change the signature (all callers updated). |
| 6966 |
For POSIX formats, print first volume header (if set). |
| 6967 |
* src/xheader.c (xheader_write_global): Write the data |
| 6968 |
accumulated in xhdr->stk even if keyword_global_override_list |
| 6969 |
is empty. |
| 6970 |
(xheader_read): On unexpected EOF, report error instead of |
| 6971 |
coredumping. |
| 6972 |
(XHDR_PROTECTED, XHDR_GLOBAL): New defines. |
| 6973 |
(struct xhdr_tab): Remove `protected' with `flags'. All uses |
| 6974 |
updated. |
| 6975 |
(decg): If XHDR_GLOBAL bit is set, call the keyword's decode |
| 6976 |
method instead of adding it to `kwl'. |
| 6977 |
|
| 6978 |
* src/compare.c: Update calls to read_header. |
| 6979 |
* src/create.c: Likewise. |
| 6980 |
* src/delete.c: Likewise. |
| 6981 |
* src/update.c: Likewise. |
| 6982 |
* src/extract.c: Likewise. |
| 6983 |
(extract_volhdr): Do not print "Reading <label>" statement, |
| 6984 |
because |
| 6985 |
it is inconsistent: it is not printed if the volume begins with a |
| 6986 |
member continued from the previous volume. |
| 6987 |
|
| 6988 |
* tests/label01.at: New testcase. |
| 6989 |
* tests/label02.at: New testcase. |
| 6990 |
* tests/Makefile.am, tests/testsuite.at: Add new testcases. |
| 6991 |
|
| 6992 |
2010-01-22 Sergey Poznyakoff <[email protected]> |
| 6993 |
|
| 6994 |
Fix prefix length calculation in ustar mode. |
| 6995 |
|
| 6996 |
* src/create.c (split_long_name): Fix prefix length |
| 6997 |
calculation. |
| 6998 |
(write_ustar_long_name): Improve ustar mode compatibility |
| 6999 |
with the Sun version. |
| 7000 |
|
| 7001 |
2009-10-14 Sergey Poznyakoff <[email protected]> |
| 7002 |
|
| 7003 |
Rewrite update algorithm. |
| 7004 |
|
| 7005 |
* src/common.h (namebuf_t): New typedef. |
| 7006 |
(namebuf_create, namebuf_free) |
| 7007 |
(namebuf_name): New prototypes. |
| 7008 |
(remname): New prototype. |
| 7009 |
* src/misc.c (struct namebuf): New structure. |
| 7010 |
(namebuf_create, namebuf_free) |
| 7011 |
(namebuf_name): New functions. |
| 7012 |
* src/create.c (dup_dir0): Remove is_avoided_name |
| 7013 |
checks. This is taken care of in update_archive. |
| 7014 |
* src/incremen.c (scan_directory): Use namebuf |
| 7015 |
to produce full file names. |
| 7016 |
* src/names.c (nametail): Remove extra level of |
| 7017 |
indirection. All uses updated. |
| 7018 |
(avoided_name_table, add_avoided_name) |
| 7019 |
(is_avoided_name): Remove. |
| 7020 |
* src/update.c (update_archive): Change algorithm. |
| 7021 |
Instead of adding unmodified files to the avoided_name |
| 7022 |
table, create namelist so that it contains only |
| 7023 |
modified files. |
| 7024 |
|
| 7025 |
* tests/Makefile.am: Add update01.at, update02.at |
| 7026 |
* tests/testsuite.at: Likewise. |
| 7027 |
* tests/update.at (AT_KEYWORDS): Add update00. |
| 7028 |
|
| 7029 |
2009-10-14 Sergey Poznyakoff <[email protected]> |
| 7030 |
|
| 7031 |
Minor changes. |
| 7032 |
|
| 7033 |
* src/tar.c (main): Ignore SIGPIPE. |
| 7034 |
* src/system.c (sys_child_open_for_compress) |
| 7035 |
(sys_child_open_for_uncompress): Reset SIGPIPE |
| 7036 |
in child to default. |
| 7037 |
* tests/remfiles01.at: Avoid race conditions. |
| 7038 |
* tests/remfiles02.at: Likewise. |
| 7039 |
|
| 7040 |
2009-10-14 Sergey Poznyakoff <[email protected]> |
| 7041 |
|
| 7042 |
Bugfix. |
| 7043 |
|
| 7044 |
* src/buffer.c (_open_archive): Call guess_seekable_archive |
| 7045 |
only if the call to open_compressed_archive succeeded. |
| 7046 |
|
| 7047 |
2009-10-10 Sergey Poznyakoff <[email protected]> |
| 7048 |
|
| 7049 |
Improve previous changes. |
| 7050 |
|
| 7051 |
* acinclude.m4: Fix typos. |
| 7052 |
* gnulib.modules: Add xvasprintf. |
| 7053 |
* src/common.h: Include xvasprintf.h. |
| 7054 |
* src/tar.c (options): Remove docstrings for --gzip, --bzip2, |
| 7055 |
--compress, --lzop, --lzma and --xz. |
| 7056 |
(tar_help_filter): Generate these using actual values of |
| 7057 |
*_PROGRAM constants. |
| 7058 |
(format_default_settings): Use xasprintf. |
| 7059 |
(parse_opt): Use *_PROGRAM defines instead of hardcoded |
| 7060 |
program names. |
| 7061 |
|
| 7062 |
2009-10-10 Sergey Poznyakoff <[email protected]> |
| 7063 |
|
| 7064 |
Allow installers to specify alternative program names for |
| 7065 |
compression programs. |
| 7066 |
|
| 7067 |
This adds --with-gzip, --with-bzip2 etc. switches to the |
| 7068 |
configure, so that |
| 7069 |
one can do, e.g. ./configure --with-bzip2=lbzip2 and have |
| 7070 |
lbzip2 executed |
| 7071 |
whenever user calls `tar --bzip2'. |
| 7072 |
|
| 7073 |
* acinclude.m4: New file. |
| 7074 |
* configure.ac: Add TAR_COMPR_PROGRAM invocations for |
| 7075 |
the supported compressors. |
| 7076 |
* src/buffer.c (magic): Use *_COMPRESSOR defines instead |
| 7077 |
of hardcoded program names. |
| 7078 |
* src/suffix.c (compression_suffixes): Likewise. |
| 7079 |
|
| 7080 |
2009-10-09 Sergey Poznyakoff <[email protected]> |
| 7081 |
|
| 7082 |
Minor fix. |
| 7083 |
|
| 7084 |
* src/buffer.c (magic): Fix `xz' entry: add the name of the |
| 7085 |
program. |
| 7086 |
* src/suffix.c (compression_suffixes, nsuffixes): Mark as static. |
| 7087 |
|
| 7088 |
2009-10-07 Sergey Poznyakoff <[email protected]> |
| 7089 |
|
| 7090 |
Provide a way to explicitly set mtime for extended header |
| 7091 |
ustar blocks. |
| 7092 |
|
| 7093 |
* src/tar.c (struct textual_date): ts is a copy of the structure, |
| 7094 |
not a pointer to it. Date is a copy as well, hence the `const' is |
| 7095 |
taken away. |
| 7096 |
(get_date_or_file): Return 0/1 depending on success/failure. |
| 7097 |
Copy timestamp to the `ts' member. Store a copy of the string |
| 7098 |
in `date'. |
| 7099 |
(report_textual_dates): Report only if verbose_option is set, |
| 7100 |
but always free the list. |
| 7101 |
(expand_pax_option): New function. |
| 7102 |
(parse_opt): Preprocess the argument to xheader_set_option with |
| 7103 |
expand_pax_option. |
| 7104 |
(decode_options): Call report_textual_dates unconditionally. |
| 7105 |
* src/xheader.c (exthdr_mtime_option, exthdr_mtime) |
| 7106 |
(globexthdr_mtime_option, globexthdr_mtime): New statics. |
| 7107 |
(xheader_set_keyword_equal): handle exthdr.mtime and |
| 7108 |
globexthdr.mtime. |
| 7109 |
(xheader_write): Override `t' argument if a corresponding |
| 7110 |
exthdr.mtime or globexthdr.mtime option is set. |
| 7111 |
* NEWS: Update |
| 7112 |
* doc/tar.texi: Document the changes. |
| 7113 |
|
| 7114 |
2009-10-07 Sergey Poznyakoff <[email protected]> |
| 7115 |
|
| 7116 |
Use file's mtime as mtime for its extended header. |
| 7117 |
|
| 7118 |
This makes two pax archives binary equivalent if they |
| 7119 |
have the same contents and care is taken to make extended |
| 7120 |
headers otherwise reproducible, e.g. by using: |
| 7121 |
|
| 7122 |
--pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0 |
| 7123 |
|
| 7124 |
Proposed by Michael D. Adams <[email protected]>. |
| 7125 |
|
| 7126 |
* src/common.h (start_private_header): Take time_t as 3rd param. |
| 7127 |
(xheader_write): Likewise. |
| 7128 |
* src/create.c (start_private_header): Take time_t as 3rd param. |
| 7129 |
All callers updated. |
| 7130 |
(write_extended): Use file's mtime as mtime for its extended |
| 7131 |
header, |
| 7132 |
Use current time stamp as mtime for global headers. |
| 7133 |
(xheader_write): Take time_t as 3rd param. |
| 7134 |
|
| 7135 |
2009-10-07 Sergey Poznyakoff <[email protected]> |
| 7136 |
|
| 7137 |
Fix bugs in handling the --remove-files option. |
| 7138 |
|
| 7139 |
Make sure the files are deleted only if they were successfully |
| 7140 |
stored |
| 7141 |
to the archive. |
| 7142 |
|
| 7143 |
* src/exit.c: New file. |
| 7144 |
* src/unlink.c: New file. |
| 7145 |
* src/Makefile.am (tar_SOURCES): Add exit.c and unlink.c. |
| 7146 |
* src/common.h: Include progname.h |
| 7147 |
(program_name): Remove global. |
| 7148 |
(records_written): New extern. |
| 7149 |
(queue_deferred_unlink, finish_deferred_unlinks): New prototypes. |
| 7150 |
(fatal_exit_hook): New extern. |
| 7151 |
* src/create.c (create_archive): Call finish_deferred_unlinks. |
| 7152 |
(dump_hard_link, dump_file0): Don't actually unlink the file, |
| 7153 |
queue it to deferred_unlinks instead. |
| 7154 |
* src/delete.c (records_written): Remove extern: declared in |
| 7155 |
common.h. |
| 7156 |
* src/extract.c (extract_archive): Set fatal_exit_hook. |
| 7157 |
(fatal_exit, xalloc_die): Move to exit.c |
| 7158 |
* src/system.c (sys_wait_for_child): Exit immediately |
| 7159 |
if the child dies or exits with a non-zero status. |
| 7160 |
(sys_child_open_for_compress) |
| 7161 |
(sys_child_open_for_uncompress): Use set_program_name, |
| 7162 |
instead of setting program_name directly. |
| 7163 |
* src/tar.c (main): Use set_program_name, |
| 7164 |
instead of setting program_name directly. |
| 7165 |
|
| 7166 |
* tests/Makefile.am (TESTSUITE_AT): Add remfiles01.at |
| 7167 |
and remfiles02.at. |
| 7168 |
* tests/testsuite.at: Likewise. |
| 7169 |
* tests/gzip.at: Reflect the above changes. |
| 7170 |
|
| 7171 |
2009-10-04 Sergey Poznyakoff <[email protected]> |
| 7172 |
|
| 7173 |
Fix bug in OLDGNU format creation. |
| 7174 |
|
| 7175 |
See tests/append02.at for a detailed description |
| 7176 |
|
| 7177 |
* src/common.h (MODE_FROM_HEADER): Take additional argument. |
| 7178 |
(mode_from_header): Likewise. |
| 7179 |
* src/create.c (mode_to_chars): Store all mode bits if |
| 7180 |
using OLDGNU_FORMAT. This reverses f4e4adea80a. |
| 7181 |
* src/list.c (decode_header): Use header mode field |
| 7182 |
to discern between GNU and OLDGNU formats. |
| 7183 |
(mode_from_header): Store unrecognized mode bits (from 10th up) |
| 7184 |
in the location pointed to by the third parameter. |
| 7185 |
* tests/append02.at: Update documentation and references. |
| 7186 |
|
| 7187 |
2009-09-16 Sergey Poznyakoff <[email protected]> |
| 7188 |
|
| 7189 |
Restore extra help output. |
| 7190 |
|
| 7191 |
* src/tar.c (tar_list_quoting_styles): Change first argument to |
| 7192 |
struct obstack. |
| 7193 |
(format_default_settings): New function. |
| 7194 |
(show_default_settings) |
| 7195 |
(show_default_settings_fs): Removed. |
| 7196 |
(tar_help): Removed. |
| 7197 |
(tar_help_filter): New function. |
| 7198 |
(argp): Set help_filter. |
| 7199 |
(parse_opt): Fix error message. |
| 7200 |
|
| 7201 |
2009-09-08 Sergey Poznyakoff <[email protected]> |
| 7202 |
|
| 7203 |
Improve command line option handling. |
| 7204 |
|
| 7205 |
* gnulib.modules: Add argp-version-etc and progname, |
| 7206 |
use getopt-gnu instead of getopt. |
| 7207 |
* src/tar.c (HANG_OPTION, USAGE_OPTION) |
| 7208 |
(VERSION_OPTION): Remove. |
| 7209 |
(options): Remove corresponding options. Let argp |
| 7210 |
handle them. |
| 7211 |
(parse_opt): Likewise. |
| 7212 |
(_argp_hang): Removed. |
| 7213 |
(tar_authors): New variable. |
| 7214 |
(decode_options): Call argp_version_setup. |
| 7215 |
Do not use ARGP_NO_HELP flag in the call to argp_parse. |
| 7216 |
|
| 7217 |
2009-09-08 Sergey Poznyakoff <[email protected]> |
| 7218 |
|
| 7219 |
Avoid overwriting exit_status with a value indicating less |
| 7220 |
important condition. |
| 7221 |
|
| 7222 |
* src/tar.c (set_exit_status): New function. |
| 7223 |
* src/common.h (set_exit_status): New prototype. |
| 7224 |
* src/compare.c: Use set_exit_status instead of |
| 7225 |
exit_status assignments. |
| 7226 |
* src/create.c: Likewise. |
| 7227 |
* src/misc.c: Likewise. |
| 7228 |
|
| 7229 |
* src/system.c (wait_for_grandchild): Use auto variable |
| 7230 |
instead of the global exit_status. |
| 7231 |
* src/incremen.c (scan_directory): Use file_removed_diag |
| 7232 |
instead of stat_diag. |
| 7233 |
|
| 7234 |
2009-09-08 Sergey Poznyakoff <[email protected]> |
| 7235 |
|
| 7236 |
Automatic detection of seekable archives. |
| 7237 |
|
| 7238 |
* src/buffer.c (guess_seekable_archive): New function. |
| 7239 |
(_open_archive): Call guess_seekable_archive for archives |
| 7240 |
open for reading. |
| 7241 |
(new_volume): Likewise. |
| 7242 |
* src/common.h (seek_option): New global. |
| 7243 |
* src/tar.c (options): New option --no-seek. |
| 7244 |
(parse_opt): --seek and --no-seek set seek_option, |
| 7245 |
not seekable_archive. |
| 7246 |
(decode_options): Initialize seek_option to -1. |
| 7247 |
|
| 7248 |
* NEWS: Update. |
| 7249 |
* doc/tar.texi: Update. |
| 7250 |
|
| 7251 |
2009-08-27 Sergey Poznyakoff <[email protected]> |
| 7252 |
|
| 7253 |
Fix testcases. |
| 7254 |
|
| 7255 |
* tests/extrac08.at: Ensure a predictable umask value. |
| 7256 |
* tests/xform-h.at (xform): do not depend on file name |
| 7257 |
ordering. |
| 7258 |
|
| 7259 |
2009-08-13 Sergey Poznyakoff <[email protected]> |
| 7260 |
|
| 7261 |
Fix interaction between --listed-incremental and -C |
| 7262 |
|
| 7263 |
* src/incremen.c (read_directory_file): Execute eventual -C dir |
| 7264 |
after opening the snapshot file. |
| 7265 |
(collect_and_sort_names): Remove call to chdir_do |
| 7266 |
* tests/incr05.at, tests/incr06.at: Use relative file names for |
| 7267 |
snapshot files. |
| 7268 |
|
| 7269 |
2009-08-12 Sergey Poznyakoff <[email protected]> |
| 7270 |
|
| 7271 |
Update for new exclude module from gnulib. Add testcases by |
| 7272 |
Phil Proudman. |
| 7273 |
|
| 7274 |
* src/names.c (is_pattern): Remove. |
| 7275 |
(regex_usage_warning): Use fnmatch_pattern_has_wildcards |
| 7276 |
instead of |
| 7277 |
is_pattern. |
| 7278 |
* src/tar.c: New option --exclude-backups. |
| 7279 |
(vcs_file_table, backup_file_table): New globals. |
| 7280 |
(add_exclude_array): New function. |
| 7281 |
* tests/exclude01.at, tests/exclude02.at, |
| 7282 |
tests/exclude03.at, tests/exclude04.at, |
| 7283 |
tests/exclude05.at: New testcases. Supplied by Phil Proudman. |
| 7284 |
* tests/Makefile.am (TESTSUITE_AT): Add new tests. |
| 7285 |
* tests/testsuite.at: Add new tests. |
| 7286 |
* THANKS: Update. |
| 7287 |
|
| 7288 |
2009-08-10 Sergey Poznyakoff <[email protected]> |
| 7289 |
|
| 7290 |
Remove src/version.c (reappeared after migration to Git) |
| 7291 |
|
| 7292 |
2009-08-09 Sergey Poznyakoff <[email protected]> |
| 7293 |
|
| 7294 |
Minor fixes. |
| 7295 |
|
| 7296 |
* src/misc.c (file_removed_diag): Set exit code to |
| 7297 |
TAREXIT_DIFFERS. |
| 7298 |
|
| 7299 |
2009-08-08 Sergey Poznyakoff <[email protected]> |
| 7300 |
|
| 7301 |
Minor fixes |
| 7302 |
|
| 7303 |
2009-08-08 Sergey Poznyakoff <[email protected]> |
| 7304 |
|
| 7305 |
Fix handling of files removed during incremental dumps. |
| 7306 |
|
| 7307 |
Changes to src/create.c and src/incremen.c are partially |
| 7308 |
based on patch from Alexander Peslyak <solar at openwall.com>. |
| 7309 |
|
| 7310 |
The new testcases require paxutils commit f653a2b or later. |
| 7311 |
|
| 7312 |
* src/common.h (struct name): New member `cmdline'. |
| 7313 |
(dump_file): Change type of the 2nd argument to bool. |
| 7314 |
(file_removed_diag, dir_removed_diag): New prototypes. |
| 7315 |
(addname): New argument `cmdline'. |
| 7316 |
(name_from_list): Change return value. |
| 7317 |
* src/create.c (dump_dir0, dump_dir): top_level is bool. |
| 7318 |
(create_archive): Update calls to name_from_list. |
| 7319 |
Take advantage of the name->cmdline to set top_level argument |
| 7320 |
during incremental backups. |
| 7321 |
(dump_file0): top_level is bool. |
| 7322 |
Do not bail out if a no-top-level file disappears during |
| 7323 |
incremental |
| 7324 |
backup, use file_removed_diag instead. |
| 7325 |
(dump_filed): top_level is bool. |
| 7326 |
* src/incremen.c (update_parent_directory): Silently ignore |
| 7327 |
ENOENT. It should have already been reported elsewhere. |
| 7328 |
(scan_directory): Use dir_removed_diag to report missing |
| 7329 |
directories. |
| 7330 |
* src/misc.c (file_removed_diag, dir_removed_diag): New functions. |
| 7331 |
* src/names.c (name_gather): Set ->cmdname. |
| 7332 |
(addname): Likewise. All uses updated. |
| 7333 |
(name_from_list): Return struct name const *. All uses updated. |
| 7334 |
|
| 7335 |
* tests/filerem01.at: New testcase. |
| 7336 |
* tests/filerem02.at: New testcase. |
| 7337 |
* tests/Makefile.am, tests/testsuite.at: Add filerem01.at, |
| 7338 |
filerem02.at |
| 7339 |
* tests/grow.at, test/truncate.at: Use new syntax for genfile |
| 7340 |
--run. |
| 7341 |
|
| 7342 |
* NEWS: Update. |
| 7343 |
* doc/tar.texi: Minor fix. |
| 7344 |
|
| 7345 |
2009-08-08 Sergey Poznyakoff <[email protected]> |
| 7346 |
|
| 7347 |
Optimize searches for directory structures by keeping a pointer |
| 7348 |
to struct directory in struct name. |
| 7349 |
|
| 7350 |
* src/common.h (struct name): New member `directory' replaces |
| 7351 |
dir_contents. Rearrange members. |
| 7352 |
(rebase_directory): Change signature. |
| 7353 |
(scan_directory): Change signature. |
| 7354 |
(name_fill_directory) |
| 7355 |
(directory_contents, safe_directory_contents): New prototypes. |
| 7356 |
(append_incremental_renames): Change signature. |
| 7357 |
(replace_prefix): New proto. |
| 7358 |
* src/compare.c (diff_dumpdir): Use directory_contents + |
| 7359 |
scan_directory. |
| 7360 |
* src/create.c |
| 7361 |
* src/incremen.c (replace_prefix): Move to misc.c |
| 7362 |
(rebase_directory): Rewrite. |
| 7363 |
(scan_directory): Return pointer to struct directory. |
| 7364 |
(directory_contents, safe_directory_contents): New functions. |
| 7365 |
(get_directory_contents): Remove. |
| 7366 |
(name_fill_directory): New function. |
| 7367 |
(append_incremental_renames): Rewrite. This also fixes a memory |
| 7368 |
leak. |
| 7369 |
* src/names.c (name_gather, addname): Reflect changes in struct |
| 7370 |
name. |
| 7371 |
(add_hierarchy_to_namelist): Rewrite using name_fill_directory and |
| 7372 |
directory_contents. |
| 7373 |
(rebase_child_list): Update call to rebase_directory. |
| 7374 |
(collect_and_sort_names): Optimize |
| 7375 |
|
| 7376 |
* src/misc.c (replace_prefix): New function. |
| 7377 |
* src/names.c (add_hierarchy_to_namelist): Use new |
| 7378 |
get_directory_contents. |
| 7379 |
|
| 7380 |
* tests/incr05.at: New test case. |
| 7381 |
* tests/incr06.at: New test case. |
| 7382 |
* tests/Makefile.am, test/testsuite.at: Add incr05.at and |
| 7383 |
incr06.at. |
| 7384 |
|
| 7385 |
* doc/Makefile.am (check-options): Improve rule. |
| 7386 |
* doc/tar.texi, NEWS: Update. |
| 7387 |
|
| 7388 |
2009-08-07 Sergey Poznyakoff <[email protected]> |
| 7389 |
|
| 7390 |
Minor fixes. |
| 7391 |
|
| 7392 |
* src/common.h (rebase_directory): New prototype. |
| 7393 |
* src/incremen.c (rebase_directory): Use replace_prefix. |
| 7394 |
* src/names.c (collect_and_sort_names): Abort if |
| 7395 |
hash_insert fails. |
| 7396 |
|
| 7397 |
2009-08-07 Sergey Poznyakoff <[email protected]> |
| 7398 |
|
| 7399 |
Improve listed incremental dumps. |
| 7400 |
|
| 7401 |
The modified algorithm tries to avoid dumping the same |
| 7402 |
directory twice and ensures the order of the directories |
| 7403 |
in the resulting archive is the same, whatever their order |
| 7404 |
on the command line. It also fixes the operation of |
| 7405 |
--listed-incremental -C. |
| 7406 |
|
| 7407 |
* gnulib.modules: Add canonicalize |
| 7408 |
* src/common.h (incremental_level): New global. |
| 7409 |
(check_exclusion_tags): first argument is const. |
| 7410 |
(get_directory_contents): Add third argument. |
| 7411 |
(zap_slashes, normalize_filename): New prototypes. |
| 7412 |
(chdir_count): New prototype. |
| 7413 |
(WARN_VERBOSE_WARNINGS): New define. |
| 7414 |
(WARN_ALL): Exclude WARN_VERBOSE_WARNINGS. |
| 7415 |
* src/compare.c (diff_dumpdir): Update the call to |
| 7416 |
get_directory_contents. |
| 7417 |
* src/create.c (check_exclusion_tags): First argument is const. |
| 7418 |
Use ISSLASH and DIRECTORY_SEPARATOR instead of referring to '/'. |
| 7419 |
|
| 7420 |
* src/incremen.c (struct directory): New member `caname'. |
| 7421 |
(hash_directory_name): Rename to |
| 7422 |
hash_directory_canonical_name. Operate |
| 7423 |
on the canonical name. |
| 7424 |
(compare_directory_names): Rename to |
| 7425 |
compare_directory_canonical_names. |
| 7426 |
Operate on the canonical name. |
| 7427 |
(make_directory): Take two arguments. |
| 7428 |
(free_directory): Free caname. |
| 7429 |
(attach_directory): Create caname. |
| 7430 |
(find_directory): Use caname for lookups. |
| 7431 |
(PD_VERBOSE): Remove. |
| 7432 |
(PD_FORCE_INIT): New define. |
| 7433 |
(procdir): First argument is const. |
| 7434 |
Reinitialize directory if PD_FORCE_INIT bit is set. |
| 7435 |
Do not use PD_VERBOSE or verbose_option for issuing warnings. |
| 7436 |
Rely on WARNOPT instead. |
| 7437 |
Always set *entry. |
| 7438 |
(scan_directory): Take three arguments. The third one is a boolean |
| 7439 |
which is true if the directory is explicitly mentioned on |
| 7440 |
the command |
| 7441 |
line. |
| 7442 |
(get_directory_contents): Remove. Use scan_directory instead. |
| 7443 |
All callers updated. |
| 7444 |
(read_directory_file): Truncate the file if --level=0 is given. |
| 7445 |
* src/misc.c: Include canonicalize.h |
| 7446 |
(zap_slashes, normalize_filename): New functions. |
| 7447 |
(chdir_count): New function. |
| 7448 |
* src/names.c (add_hierarchy_to_namelist): Take three arguments, |
| 7449 |
as |
| 7450 |
get_directory_contents and scan_directory. |
| 7451 |
(collect_and_sort_names): Allow at most one -C, before file name |
| 7452 |
arguments. |
| 7453 |
Read directory file after eventual changing to another directory. |
| 7454 |
Avoid adding the same directory under different pathnames to |
| 7455 |
the list. |
| 7456 |
* src/tar.c: New option --level. |
| 7457 |
|
| 7458 |
* tests/incr03.at, tests/incr04.at, tests/listed01.at, |
| 7459 |
tests/listed02.at, tests/rename01.at, tests/rename02.at, |
| 7460 |
tests/rename03.at: Update for new tar behavior. |
| 7461 |
* tests/multiv01.at: Do not use --listed-incremental. |
| 7462 |
|
| 7463 |
2009-08-05 Sergey Poznyakoff <[email protected]> |
| 7464 |
|
| 7465 |
Forgotten to push src/warning.c |
| 7466 |
|
| 7467 |
2009-08-05 Sergey Poznyakoff <[email protected]> |
| 7468 |
|
| 7469 |
Implement the --warning option. |
| 7470 |
|
| 7471 |
* src/warning.c: New file. |
| 7472 |
* src/Makefile.am: Add warning.c |
| 7473 |
* src/common.h: Provide definitions for warning classes. |
| 7474 |
(warning_option): New global. |
| 7475 |
(WARNOPT): New define. |
| 7476 |
(set_warning_option): New prototype. |
| 7477 |
* src/tar.c: New option `--warning'. |
| 7478 |
* src/compare.c: When applicable WARNOPT instead of WARN. |
| 7479 |
* src/create.c: Likewise. |
| 7480 |
* src/extract.c: Likewise. |
| 7481 |
* src/incremen.c: Likewise. |
| 7482 |
* src/list.c: Likewise. |
| 7483 |
|
| 7484 |
* NEWS, doc/tar.texi: Update. |
| 7485 |
|
| 7486 |
2009-08-05 Carl Worth <[email protected]> |
| 7487 |
|
| 7488 |
Fix descriptions of some options (tiny change) |
| 7489 |
|
| 7490 |
2009-08-05 Sergey Poznyakoff <[email protected]> |
| 7491 |
|
| 7492 |
Fix backup handling and restoring file modes of existing |
| 7493 |
directories |
| 7494 |
|
| 7495 |
* NEWS, THANKS: Update |
| 7496 |
* src/extract.c (extract_dir): reset status to 0 if the |
| 7497 |
directory already exists. |
| 7498 |
* src/misc.c (maybe_backup_file): Assign before_backup_name |
| 7499 |
and clear after_backup_name before checking if we really need |
| 7500 |
to backup the file. |
| 7501 |
* tests/backup01.at: New testcase. |
| 7502 |
* tests/extrac08.at: New testcase. |
| 7503 |
* tests/Makefile.am, tests/testsuite.at: Add extrac08.at and |
| 7504 |
backup01.at |
| 7505 |
|
| 7506 |
2009-07-30 Sergey Poznyakoff <[email protected]> |
| 7507 |
|
| 7508 |
Fix hard links recognition with -c --remove-files |
| 7509 |
|
| 7510 |
* src/create.c (dump_hard_link): Always look up in the link table |
| 7511 |
if remove_files_option is set. Patch suggested by Theodore Ts'o |
| 7512 |
<[email protected]>. |
| 7513 |
(check_links): Remove extra newline from the warning message. |
| 7514 |
* tests/link02.at, tests/link03.at: New testcases. |
| 7515 |
* tests/Makefile.am (TESTSUITE_AT): Add link02.at and link03.at |
| 7516 |
* tests/testsuite.at: Include link02.at and link03.at |
| 7517 |
|
| 7518 |
2009-07-30 Sergey Poznyakoff <[email protected]> |
| 7519 |
|
| 7520 |
Fix handling of hard link targets by -c --transform |
| 7521 |
|
| 7522 |
* src/create.c (file_count_links): Transform link target |
| 7523 |
before the look up. |
| 7524 |
* tests/xform-h.at: New test case. |
| 7525 |
* tests/Makefile.am (TESTSUITE_AT): Add xform-h.at. |
| 7526 |
* tests/testsuite.at: Add xform-h.at |
| 7527 |
|
| 7528 |
2009-06-23 Sergey Poznyakoff <[email protected]> |
| 7529 |
|
| 7530 |
Minor fix. |
| 7531 |
|
| 7532 |
* src/extract.c (file_newer_p): Do not report error on ENOENT |
| 7533 |
|
| 7534 |
2009-06-19 Sergey Poznyakoff <[email protected]> |
| 7535 |
|
| 7536 |
Remove rebox.el (reappeared after migration to Git) |
| 7537 |
|
| 7538 |
2009-06-18 Sergey Poznyakoff <[email protected]> |
| 7539 |
|
| 7540 |
Remove files that were removed in CVS, but reappeared after |
| 7541 |
migration to Git |
| 7542 |
|
| 7543 |
2009-06-18 David Bartley <[email protected]> |
| 7544 |
|
| 7545 |
Fix Solaris bug where chmod fails if we don't have |
| 7546 |
PRIV_SYS_LINKDIR |
| 7547 |
|
| 7548 |
* gnulib.modules: Add priv-set. |
| 7549 |
* src/extract.c (set_mode, extract_archive): Restore |
| 7550 |
PRIV_SYS_LINKDIR on chmod failure. |
| 7551 |
* src/tar.c (main): Drop PRIV_SYS_LINKDIR on startup. |
| 7552 |
|
| 7553 |
2009-06-18 Sergey Poznyakoff <[email protected]> |
| 7554 |
|
| 7555 |
Ensure default behavior for SIGPIPE |
| 7556 |
|
| 7557 |
* src/tar.c (main): Install default handler for SIGPIPE. |
| 7558 |
Proposed by Bastian Blank. |
| 7559 |
|
| 7560 |
2009-06-18 Eric Blake <[email protected]> |
| 7561 |
|
| 7562 |
Follow autoconf recommendation for TESTSUITEFLAGS. |
| 7563 |
|
| 7564 |
* tests/Makefile.am (check-local, installcheck-local): Honor |
| 7565 |
TESTSUITEFLAGS. |
| 7566 |
|
| 7567 |
2009-06-18 Sergey Poznyakoff <[email protected]> |
| 7568 |
|
| 7569 |
Fix handling of sub-subprocess returns. |
| 7570 |
|
| 7571 |
* src/system.c (wait_for_grandchild): New function. |
| 7572 |
(sys_child_open_for_compress) |
| 7573 |
(sys_child_open_for_uncompress): Use wait_for_grandchild |
| 7574 |
to manage grandchild return. |
| 7575 |
|
| 7576 |
2009-05-25 Sergey Poznyakoff <[email protected]> |
| 7577 |
|
| 7578 |
Report record size only if the archive refers to a device. |
| 7579 |
|
| 7580 |
* Makefile.am (INCLUDES): Add ../lib, for rmt-command.h |
| 7581 |
* src/buffer.c (short_read): Report the actual record size |
| 7582 |
only if the archive descriptor refers to a device. |
| 7583 |
* tests/pipe.at, tests/shortrec.at, |
| 7584 |
tests/sparsemvp.at: Reflect the above change. |
| 7585 |
* NEWS, configure.ac: Version 1.22.90 |
| 7586 |
|
| 7587 |
2009-05-14 Sergey Poznyakoff <[email protected]> |
| 7588 |
|
| 7589 |
Do not issue errors on existing files when given the -k option |
| 7590 |
|
| 7591 |
* Makefile.am (dist-hook): Fix rule. |
| 7592 |
* src/extract.c (maybe_recoverable): Return three-state value. |
| 7593 |
(extract_dir): Skip extraction if maybe_recoverable indicates so. |
| 7594 |
(extract_file): Likewise. |
| 7595 |
|
| 7596 |
2009-05-12 Eric Blake <[email protected]> |
| 7597 |
|
| 7598 |
Avoid undefined behavior |
| 7599 |
|
| 7600 |
* src/xheader.c (xheader_set_keyword_equal): Pass correct type to |
| 7601 |
ctype macros. |
| 7602 |
* src/transform.c (run_case_conv): Likewise. |
| 7603 |
|
| 7604 |
2009-05-12 Sergey Poznyakoff <[email protected]> |
| 7605 |
|
| 7606 |
Remove src/Makefile.in |
| 7607 |
|
| 7608 |
2009-03-12 Sergey Poznyakoff <[email protected]> |
| 7609 |
|
| 7610 |
Bugfixes. |
| 7611 |
|
| 7612 |
* bootstrap (symlink_to_dir): Fix symlink calculation. |
| 7613 |
* doc/tar.texi: Minor fixes by Victor Villa and Stepan Kasal. |
| 7614 |
|
| 7615 |
2009-03-07 Sergey Poznyakoff <[email protected]> |
| 7616 |
|
| 7617 |
Remove Makefile.in |
| 7618 |
|
| 7619 |
Migrate to Git |
| 7620 |
|
| 7621 |
Currently the ChangeLog is generated automatically from the Git |
| 7622 |
revision history, but from 1997 to 2009 the ChangeLog file was |
| 7623 |
maintained by hand, under CVS. This file records the older log. |
| 7624 |
|
| 7625 |
Copyright 1997-2001, 2003-2009, 2013, 2023 Free Software Foundation, |
| 7626 |
Inc. |
| 7627 |
|
| 7628 |
This file is part of GNU tar. |
| 7629 |
|
| 7630 |
GNU tar is free software; you can redistribute it and/or modify |
| 7631 |
it under the terms of the GNU General Public License as published by |
| 7632 |
the Free Software Foundation; either version 3 of the License, or |
| 7633 |
(at your option) any later version. |
| 7634 |
|
| 7635 |
GNU tar is distributed in the hope that it will be useful, |
| 7636 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7637 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 7638 |
GNU General Public License for more details. |
| 7639 |
|
| 7640 |
You should have received a copy of the GNU General Public License |
| 7641 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 7642 |
|
| 7643 |
2009-03-05 Sergey Poznyakoff <[email protected]> |
| 7644 |
|
| 7645 |
* src/incremen.c: --no-recursive works with --incremental. |
| 7646 |
|
| 7647 |
2009-03-04 Sergey Poznyakoff <[email protected]> |
| 7648 |
|
| 7649 |
Add xz support. |
| 7650 |
|
| 7651 |
* src/buffer.c, src/suffix.c: Add support for xz compression. |
| 7652 |
* src/tar.c: New option --xz, for compression/decompression using xz. |
| 7653 |
Re-assign -J as a short equivalent of --xz. |
| 7654 |
|
| 7655 |
2009-01-19 Sergey Poznyakoff <[email protected]> |
| 7656 |
|
| 7657 |
* doc/tar.texi: Fix typo. |
| 7658 |
|
| 7659 |
2008-12-29 Sergey Poznyakoff <[email protected]> |
| 7660 |
|
| 7661 |
* bootstrap.conf: Include size_max. |
| 7662 |
* gnulib.modules: Remove memset, rmdir. Replace strdup with |
| 7663 |
strdup-posix. Patch by Eric Blake. |
| 7664 |
* src/tar.c: Implement -I as a shorthand for --use-compress-program. |
| 7665 |
* doc/tar.texi: Document -I. |
| 7666 |
* tests/pipe.at, tests/shortrec.at: Account for eventual 'Record |
| 7667 |
size' output. |
| 7668 |
* tests/testsuite.at (AT_TAR_CHECK_HOOK): New define |
| 7669 |
(AT_TAR_WITH_HOOK, TAR_IGNREC_HOOK): New macros. |
| 7670 |
|
| 7671 |
2008-11-30 Sergey Poznyakoff <[email protected]> |
| 7672 |
|
| 7673 |
* src/xheader.c: Remove duplicate inclusion of fnmatch.h. Reported |
| 7674 |
by Jim Meyering. |
| 7675 |
|
| 7676 |
2008-11-25 Sergey Poznyakoff <[email protected]> |
| 7677 |
|
| 7678 |
Do not try to drain the input pipe before closing the |
| 7679 |
archive. |
| 7680 |
|
| 7681 |
* src/buffer.c (close_archive): Remove call to |
| 7682 |
sys_drain_input_pipe. Pass hit_eof as the second |
| 7683 |
argument to sys_wait_for_child. |
| 7684 |
* src/common.h (sys_drain_input_pipe): Remove |
| 7685 |
(sys_wait_for_child): Declare second argument. |
| 7686 |
* src/system.c (sys_drain_input_pipe): Remove. |
| 7687 |
(sys_wait_for_child): Take two arguments. The second one helps to |
| 7688 |
decide whether to tolerate child termination on SIGPIPE. |
| 7689 |
|
| 7690 |
2008-11-03 Sergey Poznyakoff <[email protected]> |
| 7691 |
|
| 7692 |
* src/buffer.c (_write_volume_label): Fix typo, which prevented |
| 7693 |
`-V label -M' from working. |
| 7694 |
|
| 7695 |
2008-10-30 Sergey Poznyakoff <[email protected]> |
| 7696 |
|
| 7697 |
* NEWS, configure.ac: Version 1.20.91 |
| 7698 |
* doc/tar.texi: Document transformation scope flags. |
| 7699 |
* src/common.h (transform_symlinks_option): Remove in favor of |
| 7700 |
transformation scope flags. |
| 7701 |
(XFORM_REGFILE, XFORM_LINK, XFORM_SYMLINK, XFORM_ALL): New macros. |
| 7702 |
(transform_name, transform_member_name, transform_name_fp): Take |
| 7703 |
an additional argument, specifying scope flags. |
| 7704 |
* src/create.c: Reflect changes to transform_name. |
| 7705 |
* src/extract.c (extract_link, extract_symlink): Remove calls to |
| 7706 |
transform_member_name. It is done in read_header. |
| 7707 |
* src/list.c (decode_xform): Reflect change in data type of 2nd |
| 7708 |
argument. |
| 7709 |
(transform_member_name): 2nd arg is int. |
| 7710 |
(decode_header): Transform file name and link target names. |
| 7711 |
* src/tar.c: Remove --transform-symlinks. |
| 7712 |
* src/transform.c (struct transform): New member `flags'. |
| 7713 |
(transform_flags): New variable. |
| 7714 |
(parse_transform_expr): Parse transformation scope flags. Allow to |
| 7715 |
set global flags using `flags=' syntax. |
| 7716 |
(_transform_name_to_obstack, transform_name_fp) |
| 7717 |
(transform_name): Take an additional argument, specifying scope |
| 7718 |
flags. |
| 7719 |
|
| 7720 |
2008-10-19 Sergey Poznyakoff <[email protected]> |
| 7721 |
|
| 7722 |
* THANKS: Add Ed Leaver. |
| 7723 |
* src/buffer.c (short_read): Remove !read_full_records condition, |
| 7724 |
which was always false on a first record and thus disabled record |
| 7725 |
size autodetection. Thanks Ed Leaver for the patch. |
| 7726 |
(_gnu_flush_read): Handle blocking_factor == 1. |
| 7727 |
* tests/sparsemv.at: Reflect changes to buffer.c. |
| 7728 |
* tests/sparsemvp.at: Likewise. |
| 7729 |
* tests/volsize.at: Likewise. |
| 7730 |
* NEWS: Update. |
| 7731 |
|
| 7732 |
2008-10-16 Sergey Poznyakoff <[email protected]> |
| 7733 |
|
| 7734 |
* src/common.h (transform_symlinks_option): New global. |
| 7735 |
* src/create.c (dump_file0): Transform symlink targets only if |
| 7736 |
explicitly required. Thanks Cyril Strejc for reporting the |
| 7737 |
problem. |
| 7738 |
* src/tar.c (parse_opt): New options --transform-symlinks and |
| 7739 |
--no-transform-symlinks. New alias --xform to the --transform |
| 7740 |
option. |
| 7741 |
* doc/tar.texi: Document --transform-symlinks |
| 7742 |
* NEWS: Update. |
| 7743 |
* THANKS: Update. |
| 7744 |
|
| 7745 |
* src/names.c (name_gather): Use xzalloc. |
| 7746 |
* src/buffer.c (short_read): Move record size detection before |
| 7747 |
the loop. |
| 7748 |
|
| 7749 |
2008-10-07 Sergey Poznyakoff <[email protected]> |
| 7750 |
|
| 7751 |
* src/tar.c (options): Add --lzop option. |
| 7752 |
|
| 7753 |
2008-10-05 Xavier Hienne <[email protected]> (tiny change) |
| 7754 |
|
| 7755 |
* src/checkpoint.c (checkpoint_compile_action): Add missing |
| 7756 |
`else'. |
| 7757 |
|
| 7758 |
2008-09-24 Sergey Poznyakoff <[email protected]> |
| 7759 |
|
| 7760 |
* NEWS: Update. |
| 7761 |
* doc/tar.texi: Update. |
| 7762 |
* src/tar.c: New option --no-null. |
| 7763 |
|
| 7764 |
2008-09-23 Sergey Poznyakoff <[email protected]> |
| 7765 |
|
| 7766 |
* src/common.h (filename_terminator): Remove global. |
| 7767 |
* src/tar.c (filename_terminator): New static. |
| 7768 |
* src/names.c (name_next_elt): Do not depend on |
| 7769 |
filename_terminator, this was a leftover from 1.13. |
| 7770 |
|
| 7771 |
2008-09-18 Sergey Poznyakoff <[email protected]> |
| 7772 |
|
| 7773 |
* doc/tar.texi: Remove incorrect example. |
| 7774 |
|
| 7775 |
2008-09-07 Sergey Poznyakoff <[email protected]> |
| 7776 |
|
| 7777 |
* src/incremen.c (dumpdir_create0): Eliminate gcc warning. |
| 7778 |
(attach_directory): Bugfix - add missing return statement. |
| 7779 |
* THANKS: Add Enric Hernandez |
| 7780 |
|
| 7781 |
2008-07-31 Sergey Poznyakoff <[email protected]> |
| 7782 |
|
| 7783 |
* src/incremen.c (struct directory): New member `next'. Change |
| 7784 |
type of `name'. |
| 7785 |
(dirhead, dirtail): New statics. |
| 7786 |
(make_directory): Reflect changes to struct directory. |
| 7787 |
(free_directory, attach_directory): New functions. |
| 7788 |
(dirlist_replace_prefix): New function. |
| 7789 |
(note_directory): Use attach_directory, instead of make_directory, |
| 7790 |
(find_directory, find_directory_meta): Use free_directory. |
| 7791 |
(procdir): Replace directory prefixes in directory list to avoid |
| 7792 |
marking subdirectories as renamed after renaming their parent |
| 7793 |
directory. |
| 7794 |
(append_incremental_renames): Iterate over directory list, not |
| 7795 |
hash table, to preserve logical ordering of renames. |
| 7796 |
* tests/rename04.at, tests/rename05.at: New test cases. |
| 7797 |
* tests/Makefile.am, tests/testsuite.at: Add rename04.at and |
| 7798 |
rename05.at. |
| 7799 |
* tests/atlocal.in (decho): New function. |
| 7800 |
* tests/multiv06.at: Use decho instead of echo2. |
| 7801 |
* tests/incremental.at: Raise wait interval to 2 seconds. |
| 7802 |
|
| 7803 |
2008-07-24 Sergey Poznyakoff <[email protected]> |
| 7804 |
|
| 7805 |
* src/tar.c (decode_options): Do not allow volume length less |
| 7806 |
than record size. |
| 7807 |
* src/buffer.c (_gnu_flush_write): Compensate for the effect |
| 7808 |
of eventual flush_archive occurring in the middle of buffer |
| 7809 |
move. |
| 7810 |
Increment records_written only if _flush_write was able to write |
| 7811 |
something. |
| 7812 |
* tests/multiv06.at: New testcase. |
| 7813 |
* tests/Makefile.am, test/testsuite.at: Add tests/multiv06.at |
| 7814 |
|
| 7815 |
2008-06-26 Sergey Poznyakoff <[email protected]> |
| 7816 |
|
| 7817 |
* configure.ac, NEWS: Version 1.20.90 |
| 7818 |
* doc/tar.texi: Document -J, --no-auto-compress, etc. |
| 7819 |
* src/buffer.c (ct_tar): New constant. |
| 7820 |
(magic): Add lzop support. Proposed by Kevin Day |
| 7821 |
<[email protected]>. |
| 7822 |
(check_compressed_archive): Do not use autodetect if the |
| 7823 |
compression program was specified explicitly. |
| 7824 |
Fall back to analyzing archive name, if the autodetection fails. |
| 7825 |
* src/suffix.c: Add .lzo |
| 7826 |
* src/tar.c: New options --lzop and --no-auto-compress. |
| 7827 |
New short option -J (alias for --lzma). |
| 7828 |
|
| 7829 |
* src/buffer.c (try_new_volume): Print more information with error |
| 7830 |
diagnostics. |
| 7831 |
(_gnu_flush_write): Improve error checking. Adjust |
| 7832 |
real_s_sizeleft before calling new_volume to avoid creating |
| 7833 |
malformed multivolume headers. |
| 7834 |
* tests/delete05.at, tests/gzip.at, tests/ignfail.at, |
| 7835 |
tests/longv7.at, tests/lustar01.at, tests/lustar02.at, |
| 7836 |
tests/shortfile.at: Update to match new diagnostic wording |
| 7837 |
(see 2008-05-06). |
| 7838 |
|
| 7839 |
* NEWS: Update. |
| 7840 |
|
| 7841 |
2008-06-14 Sergey Poznyakoff <[email protected]> |
| 7842 |
|
| 7843 |
* doc/tar.texi (exclude): Document support for new VCS. |
| 7844 |
* THANKS: Update. |
| 7845 |
* NEWS: Update. |
| 7846 |
* tests/multiv05.at: Fix typos. |
| 7847 |
* tests/volsize.at: Remove a TZ dependency. |
| 7848 |
|
| 7849 |
2008-06-14 Dan Drake <[email protected]> (tiny change) |
| 7850 |
|
| 7851 |
* src/tar.c (exclude_vcs_files): Support for Bazaar, Mercurial and |
| 7852 |
Darcs. |
| 7853 |
|
| 7854 |
2008-05-06 Sergey Poznyakoff <[email protected]> |
| 7855 |
|
| 7856 |
* src/tar.c (main): Reword the "delayed error" message. New |
| 7857 |
wording proposed by Karl Berry. |
| 7858 |
|
| 7859 |
2008-02-20 Sergey Poznyakoff <[email protected]> |
| 7860 |
|
| 7861 |
* configure.ac: Raise version number to 1.20 |
| 7862 |
* src/compare.c (diff_dumpdir): const. |
| 7863 |
* src/common.h (dumpdir_t,dumpdir_iter_t): New data types. |
| 7864 |
(dumpdir_create0,dumpdir_create,dumpdir_free,dumpdir_locate) |
| 7865 |
(dumpdir_first,dumpdir_next): New functions. |
| 7866 |
* src/incremen.c (dumpdir_create0,dumpdir_create,dumpdir_free) |
| 7867 |
(dumpdir_first,dumpdir_next): New functions. |
| 7868 |
(dumpdir_locate): Rewrite using binary search. |
| 7869 |
(struct directory): Change members char *contents, *icontents to |
| 7870 |
struct dumpdir *dump, *idump. All references updated. |
| 7871 |
(note_directory): Last arg is const. |
| 7872 |
* src/names.c (add_hierarchy_to_namelist): buffer is const. |
| 7873 |
* tests/incr03.at, tests/incr04.at, tests/rename02.at, |
| 7874 |
tests/rename03.at: Insert calls to sleep between creation of files |
| 7875 |
and adding them to the archive. |
| 7876 |
|
| 7877 |
2008-03-31 Sergey Poznyakoff <[email protected]> |
| 7878 |
|
| 7879 |
* src/create.c (dump_file0): Count links only for actually dumped |
| 7880 |
files. |
| 7881 |
|
| 7882 |
2008-03-27 Sergey Poznyakoff <[email protected]> |
| 7883 |
|
| 7884 |
* NEWS: Document --no-check-device and --check-device. |
| 7885 |
* doc/rendition.texi: Change the way FIXME-*refs are handled in |
| 7886 |
!PROOF. |
| 7887 |
* doc/intern.texi, doc/tar.texi: Update. |
| 7888 |
* doc/untabify.el: New file. |
| 7889 |
* doc/Makefile.am (EXTRA_DIST): Add untabify.el |
| 7890 |
(untabify, final, check-format, check-refs, check-fixmes) |
| 7891 |
(check-unrevised, all-check-docs, check-docs): New rules. |
| 7892 |
|
| 7893 |
* src/common.h (check_device_option): New global. |
| 7894 |
* src/incremen.c (procdir): Use boolean and instead of bitwise |
| 7895 |
one. Patch by Jean-Louis Martineau. |
| 7896 |
Compare device numbers only if check_device_option is set. |
| 7897 |
* src/tar.c: New command line options --no-check-device and |
| 7898 |
--check-device. Proposed by Jean-Louis Martineau. |
| 7899 |
(parse_opt): Hanlde new options. |
| 7900 |
(decode_options): Initialize check_device_option to true. |
| 7901 |
|
| 7902 |
* THANKS: Update |
| 7903 |
|
| 7904 |
2008-03-06 Sergey Poznyakoff <[email protected]> |
| 7905 |
|
| 7906 |
* bootstrap: Use rsync to get translations. |
| 7907 |
* doc/tar.texi: Minor change. |
| 7908 |
* lib/.cvsignore: Update |
| 7909 |
* po/.cvsignore: Update |
| 7910 |
* src/system.c: Remove include setenv.h. |
| 7911 |
* tests/atlocal.in (STAR_DATA_URL): Update. |
| 7912 |
* tests/star/README: Update URL. |
| 7913 |
|
| 7914 |
2008-02-09 Sergey Poznyakoff <[email protected]> |
| 7915 |
|
| 7916 |
* doc/tar.texi: Fix a typo. Reported by Denis Excoffier. |
| 7917 |
|
| 7918 |
2008-02-08 Sergey Poznyakoff <[email protected]> |
| 7919 |
|
| 7920 |
* NEWS: Update. |
| 7921 |
* configure.ac: Version 1.19.90 |
| 7922 |
* po/POTFILES.in: Add missing files. |
| 7923 |
* src/compare.c (verify_volume): Honor --ignore-zeros. |
| 7924 |
Proposed by Jan-Benedict Glaw. |
| 7925 |
* tests/shortfile.at (AT_KEYWORDS): Add shortfile0. |
| 7926 |
|
| 7927 |
2008-02-07 Sergey Poznyakoff <[email protected]> |
| 7928 |
|
| 7929 |
* NEWS: Update. |
| 7930 |
* src/create.c (dump_file0): Apply transform_name to symlink |
| 7931 |
targets. |
| 7932 |
|
| 7933 |
2008-02-04 Sergey Poznyakoff <[email protected]> |
| 7934 |
|
| 7935 |
* src/transform.c: Support multiple --transform options. Support |
| 7936 |
semicolon-separated lists of replace expressions. |
| 7937 |
* NEWS, tar.texi: Document changes to the --transform option. |
| 7938 |
|
| 7939 |
2008-01-30 Paul Eggert <[email protected]> |
| 7940 |
|
| 7941 |
* doc/tar.texi: Update Back-Cover text to reflect new GNU wording. |
| 7942 |
|
| 7943 |
2007-12-17 Paul Eggert <[email protected]> |
| 7944 |
|
| 7945 |
Exit with nonzero status if a close fails on an archive. |
| 7946 |
Problem (and initial trivial fix) |
| 7947 |
* src/buffer.c (close_archive, new_volume): close_error, not |
| 7948 |
close_warn. |
| 7949 |
|
| 7950 |
2007-12-05 Sergey Poznyakoff <[email protected]> |
| 7951 |
|
| 7952 |
* src/buffer.c (check_compressed_archive): Do not bail out if the |
| 7953 |
file is too short, set boolean flag, passed as an argument |
| 7954 |
instead. This fixes a bug introduced on 2007-08-24. See also |
| 7955 |
tests/shortupd.at. |
| 7956 |
|
| 7957 |
* tests/Makefile.am, tests/testsuite.at: Add shortupd.at. |
| 7958 |
* tests/shortupd.at: New test. |
| 7959 |
|
| 7960 |
2007-11-12 Jim Meyering <[email protected]> |
| 7961 |
|
| 7962 |
Don't read from name[-1]. |
| 7963 |
* src/incremen.c (make_directory): Handle namelen == 0, since |
| 7964 |
find_directory_meta calls make_directory (""). |
| 7965 |
|
| 7966 |
2007-11-07 Sergey Poznyakoff <[email protected]> |
| 7967 |
|
| 7968 |
* bootstrap (checkout): Use URL of the gnulib CVS mirror. |
| 7969 |
* gnulib.modules: Add fseeko and snprintf. |
| 7970 |
|
| 7971 |
2007-10-31 Sergey Poznyakoff <[email protected]> |
| 7972 |
|
| 7973 |
* src/checkpoint.c: New actions: bell and ttyout |
| 7974 |
* src/system.c (sys_exec_info_script) |
| 7975 |
(sys_exec_checkpoint_script): pass the current blocking factor in |
| 7976 |
TAR_BLOCKING_FACTOR environment variable. |
| 7977 |
* doc/tar.texi: Update |
| 7978 |
* NEWS: Update |
| 7979 |
|
| 7980 |
2007-10-30 Sergey Poznyakoff <[email protected]> |
| 7981 |
|
| 7982 |
* doc/Makefile.am: Use texi2html and the CVS version of gendocs.sh |
| 7983 |
to create HTML versions of the manual. |
| 7984 |
* doc/gendocs_template: Likewise. |
| 7985 |
* doc/tar.texi: Document --hard-dereference and |
| 7986 |
--checkpoint-action options. Improve documentation of |
| 7987 |
--check-links. |
| 7988 |
|
| 7989 |
2007-10-29 Sergey Poznyakoff <[email protected]> |
| 7990 |
|
| 7991 |
* NEWS: Update |
| 7992 |
* configure.ac: Version 1.19.1 |
| 7993 |
* po/POTFILES.in: Add src/checkpoint.c |
| 7994 |
* src/Makefile.am (tar_SOURCES): add checkpoint.c |
| 7995 |
* src/checkpoint.c: New file - checkpoint handling. |
| 7996 |
* src/buffer.c (checkpoint, do_checkpoint): Remove. |
| 7997 |
(_flush_write, simple_flush_read, _gnu_flush_read): Use |
| 7998 |
checkpoint_run. |
| 7999 |
* src/common.h (enum checkpoint_style): Remove. |
| 8000 |
(checkpoint_style): Remove. |
| 8001 |
(DEFAULT_CHECKPOINT): New define. |
| 8002 |
(hard_dereference_option): New variable. |
| 8003 |
(sys_exec_checkpoint_script): New declaration. |
| 8004 |
* src/create.c (file_count_links): do nothing if |
| 8005 |
hard_dereference_option is set. |
| 8006 |
* src/system.c (sys_exec_checkpoint_script): New function. |
| 8007 |
(sys_exec_info_script): Restore SIGPIPE handler. |
| 8008 |
* src/tar.c: (parse_opt): New options --hard-dereference, |
| 8009 |
--checkpoint-action. |
| 8010 |
(decode_options): Call checkpoint_finish_compile. |
| 8011 |
|
| 8012 |
* src/system.c (sys_exec_info_script): Initialize buf. Problem |
| 8013 |
reported by Bengt-Arne Fjellner. |
| 8014 |
|
| 8015 |
2007-10-18 Jim Meyering <[email protected]> |
| 8016 |
|
| 8017 |
Avoid compiler warnings. |
| 8018 |
* src/list.c (read_header_primitive): Define two locals, to |
| 8019 |
avoid incorrect "may be used uninitialized" warnings. |
| 8020 |
* src/incremen.c (procdir): Remove decl of unused local, "len". |
| 8021 |
|
| 8022 |
2007-10-18 Sergey Poznyakoff <[email protected]> |
| 8023 |
|
| 8024 |
* doc/tar.texi (gzip): Remove compression patent |
| 8025 |
warning. According to Brett Smith, the patent is |
| 8026 |
expired. |
| 8027 |
|
| 8028 |
2007-10-17 Sergey Poznyakoff <[email protected]> |
| 8029 |
|
| 8030 |
* src/suffix.c: New file. Compress format detection by archive |
| 8031 |
suffix (when creating). Suggested by Jean-Pierre Demailly. |
| 8032 |
* src/Makefile.am: Add suffix.c |
| 8033 |
* src/buffer.c (magic): Add an entry for new lzma format. Proposed |
| 8034 |
by Lasse Collin. |
| 8035 |
* src/common.h (set_comression_program_by_suffix): New prototype. |
| 8036 |
* src/tar.c: New options --auto-compress (-a) and --lzma |
| 8037 |
* THANKS: Add Lasse Collin and Jean-Pierre Demailly. |
| 8038 |
* NEWS: Update |
| 8039 |
* doc/tar.texi: Update |
| 8040 |
|
| 8041 |
2007-10-12 Paul Eggert <[email protected]> |
| 8042 |
|
| 8043 |
* src/utf8.c (string_ascii_p): Recode to avoid bogus GCC 4.2.1 |
| 8044 |
warning about "comparison is always true due to limited range of |
| 8045 |
data type" when char is unsigned. |
| 8046 |
|
| 8047 |
2007-10-11 Paul Eggert <[email protected]> |
| 8048 |
|
| 8049 |
Adjust to recent gnulib changes. |
| 8050 |
* configure.ac: Dont' check for strerror, since gnulib now does this. |
| 8051 |
* .cvsignore: Add m4, tar-[0-9]*. |
| 8052 |
* lib/.cvsignore: Adjust to various gnulib file name changes. |
| 8053 |
Add .deps, rmt-command.h. |
| 8054 |
|
| 8055 |
2007-10-10 Sergey Poznyakoff <[email protected]> |
| 8056 |
|
| 8057 |
* configure.ac, NEWS: Raise version number to 1.19 |
| 8058 |
* tests/star/README: Update |
| 8059 |
|
| 8060 |
2007-10-05 Sergey Poznyakoff <[email protected]> |
| 8061 |
|
| 8062 |
* src/create.c (dump_regular_file): Fix file padding in case of |
| 8063 |
truncation to zero size. |
| 8064 |
* NEWS: Update |
| 8065 |
|
| 8066 |
2007-10-04 Sergey Poznyakoff <[email protected]> |
| 8067 |
|
| 8068 |
* tests/T-null.at: Use AT_DATA for sample output. |
| 8069 |
|
| 8070 |
2007-10-03 Sergey Poznyakoff <[email protected]> |
| 8071 |
|
| 8072 |
* src/incremen.c (try_purge_directory): Ensure that arguments to T |
| 8073 |
and R are safe. |
| 8074 |
|
| 8075 |
2007-09-29 Sergey Poznyakoff <[email protected]> |
| 8076 |
|
| 8077 |
* src/incremen.c (obstack_code_rename): Apply safer_name_suffix to |
| 8078 |
name arguments before storing them in T and R records. Reported by |
| 8079 |
Nicholas Cole. |
| 8080 |
|
| 8081 |
2007-09-27 Sergey Poznyakoff <[email protected]> |
| 8082 |
|
| 8083 |
* configure.ac: Raise version number to 1.18.90 |
| 8084 |
* NEWS: Likewise |
| 8085 |
|
| 8086 |
* doc/snapshot.texi: Document version 2. |
| 8087 |
* doc/dumpdir.texi: Update. |
| 8088 |
|
| 8089 |
Implement --exclude-tag* and --exclude-cache* options for listed |
| 8090 |
incremental archives. |
| 8091 |
New option --exclude-vcs to exclude VCS-specific files and |
| 8092 |
directories. |
| 8093 |
|
| 8094 |
* NEWS: Update |
| 8095 |
* doc/tar.texi: Document --exclude-vcs option |
| 8096 |
* src/common.h (exclusion_tag_warning, check_exclusion_tags): New |
| 8097 |
prototypes. |
| 8098 |
* src/create.c (exclusion_tag_warning, check_exclusion_tags): |
| 8099 |
Remove static qualifier. |
| 8100 |
(check_exclusion_tags): account for dirname without terminating |
| 8101 |
slash. |
| 8102 |
(dump_dir0): exclusion_tag_all is handled elsewhere. |
| 8103 |
* src/incremen.c (struct directory): New member tagfile |
| 8104 |
(make_directory): Initialize tagfile to NULL |
| 8105 |
(procdir): New argument: entry |
| 8106 |
Hanlde exclusion tags. |
| 8107 |
(makedumpdir): Take into account directory->tagfile. |
| 8108 |
(scan_directory): Hanlde exclusion tags. |
| 8109 |
* src/tar.c: New option --exclude-vcs |
| 8110 |
(exclude_vcs_files): New function |
| 8111 |
|
| 8112 |
2007-09-14 Paul Eggert <[email protected]> |
| 8113 |
|
| 8114 |
* AUTHORS: Remove unnecessary information. Just list the |
| 8115 |
principal authors. |
| 8116 |
* THANKS: Remove info duplicated from AUTHORS. |
| 8117 |
|
| 8118 |
2007-08-25 Jim Meyering <[email protected]> |
| 8119 |
|
| 8120 |
Don't include <getline.h>. No longer needed. |
| 8121 |
* src/incremen.c: Don't include <getline.h>. No longer needed. |
| 8122 |
* src/buffer.c: Likewise. |
| 8123 |
* src/system.c: Likewise. |
| 8124 |
* src/tar.c: Likewise. |
| 8125 |
|
| 8126 |
Avoid shadowing and unused-variable warnings. |
| 8127 |
* src/create.c (check_exclusion_tags): Remove declaration of unused |
| 8128 |
local, "ret". |
| 8129 |
* src/compare.c (diff_dumpdir): Rename stat->stat_data to avoid |
| 8130 |
shadowing the syscall. |
| 8131 |
* src/buffer.c (do_checkpoint): Don't shadow the write syscall. |
| 8132 |
(try_new_volume): Avoid shadowing "access". |
| 8133 |
* src/tar.c (decode_options): Rename index->idx to avoid shadowing. |
| 8134 |
(find_argp_option): Rename option->o to avoid shadowing. |
| 8135 |
* src/incremen.c (scan_directory): Rename local, dir_name->dir, |
| 8136 |
to avoid shadowing the function. |
| 8137 |
(get_directory_contents): Likewise. |
| 8138 |
* src/system.c (global_pid): Rename from "pid", to avoid being |
| 8139 |
shadowed by locals. |
| 8140 |
* src/extract.c (apply_nonancestor_delayed_set_stat): |
| 8141 |
Rename st->sb to avoid shadowing another local. |
| 8142 |
|
| 8143 |
2007-08-24 Sergey Poznyakoff <[email protected]> |
| 8144 |
|
| 8145 |
* configure.ac, NEWS: Raise version number to 1.18.1 |
| 8146 |
|
| 8147 |
* src/buffer.c (check_compressed_archive): Detect files smaller |
| 8148 |
than 512 bytes. |
| 8149 |
* tests/shortfile.at: New test case for the above change. |
| 8150 |
* tests/testsuite.at, tests/Makefile.am: Add shortfile.at |
| 8151 |
|
| 8152 |
2007-08-19 Sergey Poznyakoff <[email protected]> |
| 8153 |
|
| 8154 |
* bootstrap: Gnulib initialization destroyed paxutils m4 files. |
| 8155 |
Initialize paxutils structure after that of gnulib. |
| 8156 |
|
| 8157 |
2007-08-12 Sergey Poznyakoff <[email protected]> |
| 8158 |
|
| 8159 |
* src/names.c (contains_dot_dot): Fix double-dot recognition in |
| 8160 |
case of duplicate /. Patch by Dmitry V. Levin. |
| 8161 |
|
| 8162 |
* bootstrap (symlink_to_gnulib): Make sure the target directory |
| 8163 |
exists and create it if it does not. |
| 8164 |
|
| 8165 |
* doc/tar.texi: Fix a typo. |
| 8166 |
|
| 8167 |
2007-06-28 Sergey Poznyakoff <[email protected]> |
| 8168 |
|
| 8169 |
* bootstrap: Update for the change of the TP URL |
| 8170 |
|
| 8171 |
2007-06-27 Sergey Poznyakoff <[email protected]> |
| 8172 |
|
| 8173 |
Relicense under GPLv3 |
| 8174 |
|
| 8175 |
2007-06-21 Sergey Poznyakoff <[email protected]> |
| 8176 |
|
| 8177 |
* tests/testsuite.at (AT_TAR_MKHIER): Skip test if genfile is |
| 8178 |
unable to create the file |
| 8179 |
* tests/lustar01.at: Likewise |
| 8180 |
|
| 8181 |
2007-06-21 Eric Blake <[email protected]> |
| 8182 |
|
| 8183 |
Resolve testsuite failures 40-42 on cygwin. |
| 8184 |
* tests/testsuite.at (AT_TAR_MKHIER): Skip tests when long |
| 8185 |
file names cannot be created. |
| 8186 |
|
| 8187 |
2007-06-16 Sergey Poznyakoff <[email protected]> |
| 8188 |
|
| 8189 |
* doc/Makefile.am (tar_TEXINFOS): Add tar-snapshot-edit.texi |
| 8190 |
* doc/tar-snapshot-edit.texi: New file |
| 8191 |
* doc/tar.texi (Fixing Snapshot Files): New appendix |
| 8192 |
|
| 8193 |
* scripts/tar-snapshot-edit: New file |
| 8194 |
* tests/extrac07.at: Add back write permissions on dir |
| 8195 |
|
| 8196 |
2007-06-09 Sergey Poznyakoff <[email protected]> |
| 8197 |
|
| 8198 |
* tests/exclude.at: Sort the output. |
| 8199 |
|
| 8200 |
2007-06-08 Sergey Poznyakoff <[email protected]> |
| 8201 |
|
| 8202 |
* configure.ac, NEWS: Raise version number to 1.17 |
| 8203 |
|
| 8204 |
* doc/tar.texi, doc/intern.texi: Replace: s/filename/file name/; |
| 8205 |
s/(ASCII|ID|BSD)/@acronym{&}/;s/"[^"]+"/``&''/ |
| 8206 |
Use `path' only when it refers to search paths, use |
| 8207 |
`file name' otherwise. |
| 8208 |
Fix various errors (based on patch by Benno Schulenberg) |
| 8209 |
|
| 8210 |
* doc/tar.texi (Operation Summary): Restore alphabetical order of |
| 8211 |
the options. |
| 8212 |
|
| 8213 |
2007-06-02 Sergey Poznyakoff <[email protected]> |
| 8214 |
|
| 8215 |
Fix bug, introduced on 2007-03-30. |
| 8216 |
|
| 8217 |
* src/common.h (xform_type): New data type |
| 8218 |
(transform_member_name): Last argument is of xform_type type |
| 8219 |
All callers updated |
| 8220 |
|
| 8221 |
* src/extract.c: Update calls to transform_member_name |
| 8222 |
* src/list.c (decode_xform): Exempt symbolic links from component |
| 8223 |
stripping and name suffix normalization. |
| 8224 |
|
| 8225 |
* tests/extrac07.at: Update |
| 8226 |
|
| 8227 |
2007-05-30 Sergey Poznyakoff <[email protected]> |
| 8228 |
|
| 8229 |
* src/xheader.c (decx): Unknown pax keywords produce a warning, |
| 8230 |
not error. |
| 8231 |
|
| 8232 |
2007-05-29 Paul Eggert <[email protected]> |
| 8233 |
|
| 8234 |
* src/misc.c (set_file_atime): Use gl_futimens, not futimens, |
| 8235 |
due to gnulib change. |
| 8236 |
|
| 8237 |
2007-05-19 Sergey Poznyakoff <[email protected]> |
| 8238 |
|
| 8239 |
* src/common.h (buffer_write_global_xheader): New function |
| 8240 |
(struct xheader): Move definition to tar.h |
| 8241 |
(extended_header): Remove global |
| 8242 |
(xheader_init): New function |
| 8243 |
(xheader_decode_global,xheader_store,xheader_read) |
| 8244 |
(xheader_write_global,xheader_write,xheader_string_begin) |
| 8245 |
(xheader_string_add,xheader_string_end): Take xhdr as first |
| 8246 |
argument. |
| 8247 |
* src/tar.h (struct xheader): New definition |
| 8248 |
(struct tar_stat_info): New member xhdr (extended header). |
| 8249 |
|
| 8250 |
* src/xheader.c (xheader_init): New function |
| 8251 |
(xheader_decode_global,xheader_store,xheader_read) |
| 8252 |
(xheader_write_global,xheader_write,xheader_string_begin) |
| 8253 |
(xheader_string_add,xheader_string_end): Take xhdr as first |
| 8254 |
argument. |
| 8255 |
|
| 8256 |
* src/buffer.c (buffer_write_global_xheader): New function |
| 8257 |
Update to use new xheader calls. |
| 8258 |
|
| 8259 |
* src/compare.c, src/create.c, src/delete.c, src/list.c, |
| 8260 |
src/sparse.c, src/tar.c, src/update.c: Global extended_header |
| 8261 |
removed, use new xheader calls instead. |
| 8262 |
|
| 8263 |
* tests/T-null.at: Minor fix |
| 8264 |
* tests/atlocal.in (tarball_prereq): Discard eventual md5sum |
| 8265 |
output. |
| 8266 |
|
| 8267 |
2007-05-18 Sergey Poznyakoff <[email protected]> |
| 8268 |
|
| 8269 |
* src/create.c (dump_file0): Original ctime cannot be used as a |
| 8270 |
directory change indicator if --remove-files is given. |
| 8271 |
|
| 8272 |
2007-04-12 Paul Eggert <[email protected]> |
| 8273 |
|
| 8274 |
Adjust to latest Gnulib. |
| 8275 |
* lib/.cvsignore: Add dirfd.c, dirfd.h, float+.h, mbscasecmp.c, |
| 8276 |
stdio.h, stdio_.h, stdlib.h, stdlib_.h, time.h, time_.h, unistd.h. |
| 8277 |
Remove exit.h, getcwd.h, mempcpy.h, memrchr.h, mkdtemp.h, stpcpy.h, |
| 8278 |
strcase.h, strchrnul.h, strdup.h, strndup.h, strnlen.h, time_r.h, |
| 8279 |
vsnprintf.h. |
| 8280 |
* m4/.cvsignore: Remove localedir.h. Sort. |
| 8281 |
|
| 8282 |
2007-04-03 Paul Eggert <[email protected]> |
| 8283 |
|
| 8284 |
* src/common.h (closeopen): Remove decl. |
| 8285 |
* src/misc.c: Don't include <sys/time.h>, <sys/resource.h>; no longer |
| 8286 |
needed. |
| 8287 |
(get_max_open_files, closeopen): Remove. All callers removed. |
| 8288 |
(chdir_dir): Use a different technique, which doesn't rely on closing |
| 8289 |
all open files. |
| 8290 |
* src/tar.c (main): Don't call closeopen. |
| 8291 |
|
| 8292 |
2007-04-04 Sergey Poznyakoff <[email protected]> |
| 8293 |
|
| 8294 |
* NEWS: Update |
| 8295 |
* doc/tar.texi: Update |
| 8296 |
* src/system.c (sys_exec_info_script): Store the |
| 8297 |
inter-communication fd in the environment variable TAR_FD |
| 8298 |
|
| 8299 |
2007-04-03 Sergey Poznyakoff <[email protected]> |
| 8300 |
|
| 8301 |
* src/tar.c (main): Move closeopen after decode_options to |
| 8302 |
allow shell process substitution to work. |
| 8303 |
* tests/extrac07.at: Expect a warning on stderr. |
| 8304 |
|
| 8305 |
2007-03-30 Sergey Poznyakoff <[email protected]> |
| 8306 |
|
| 8307 |
* src/common.h (transform_name_fp): Change signature |
| 8308 |
(transform_member_name): New function |
| 8309 |
* src/extract.c (extract_link, extract_symlink): Use |
| 8310 |
transform_member_name instead of safer_name_suffix so that |
| 8311 |
--transform and --strip-components affect links as well. |
| 8312 |
* src/list.c (transform_member_name): New function |
| 8313 |
(decode_header): Use transform_member_name |
| 8314 |
* src/names.c (all_names_found): Remove check for matching_flags. |
| 8315 |
* NEWS: Update |
| 8316 |
|
| 8317 |
* TODO: Update |
| 8318 |
* bootstrap (slurp): Remove any occurrences of $bt from the |
| 8319 |
generated gnulib.mk |
| 8320 |
* src/incremen.c: Do not include mkdtemp.h |
| 8321 |
|
| 8322 |
2007-01-26 Paul Eggert <[email protected]> |
| 8323 |
|
| 8324 |
Adjust to recent gnulib changes. |
| 8325 |
* lib/.cvsignore: Add fchownat.c, rmt-command.h, strerror.c, string.h, |
| 8326 |
string_.h, sys, sys_time_.h, unistd_.h, wchar_.h, wctype_.h. |
| 8327 |
Remove localedir.h, size_max.h, xsize.h. |
| 8328 |
* src/xheader.c: Don't include stpcpy.h; no longer needed, now that |
| 8329 |
gnulib string.h defines stpcpy on all platforms. |
| 8330 |
|
| 8331 |
2007-01-23 Sergey Poznyakoff <[email protected]> |
| 8332 |
|
| 8333 |
* doc/tar.texi: Document --exclude-caches* and --exclude-tag* |
| 8334 |
options. |
| 8335 |
* src/common.h (exclude_caches_option): Remove |
| 8336 |
(enum exclusion_tag_type): New data type |
| 8337 |
(add_exclude_tag): Rename to add_exclusion_tag |
| 8338 |
(cachedir_file_p): New prototype |
| 8339 |
* src/create.c (struct exclude_tag): rename to exclusion_tag |
| 8340 |
(check_exclusion_tags): New function |
| 8341 |
(cachedir_file_p): New function (from check_cache_directory) |
| 8342 |
(dump_dir0,dump_file0): Use check_exclusion_tags |
| 8343 |
* src/tar.c: New options --exclude-caches-all, |
| 8344 |
--exclude-caches-under, --exclude-tag-all, --exclude-tag-under |
| 8345 |
* tests/exclude.at: New file |
| 8346 |
* tests/Makefile.am (TESTSUITE_AT): Add exclude.at |
| 8347 |
* tests/testsuite.at: Add exclude.at |
| 8348 |
|
| 8349 |
2007-01-19 Sergey Poznyakoff <[email protected]> |
| 8350 |
|
| 8351 |
* gnulib.modules: Require strerror |
| 8352 |
* doc/gendocs_template: Fix typos |
| 8353 |
* scripts/xsparse.c (expand_sparse): use ftruncate to handle the |
| 8354 |
trailing hole |
| 8355 |
* src/sparse.c (sparse_skip_file,pax_dump_header_1) |
| 8356 |
(pax_decode_header): Keep track of the number of bytes |
| 8357 |
written. |
| 8358 |
* configure.ac: Version 1.16.2 |
| 8359 |
* NEWS: Update |
| 8360 |
|
| 8361 |
2007-01-04 Sergey Poznyakoff <[email protected]> |
| 8362 |
|
| 8363 |
* src/compare.c (diff_dumpdir): Compare directory contents using |
| 8364 |
dumpdir_cmp. Do not free dumpdir_buffer, it will leave the |
| 8365 |
incremental directory table in the inconsistent state and trigger |
| 8366 |
full dump. |
| 8367 |
(read_and_process): Process dumpdirs no matter what the archive |
| 8368 |
format. |
| 8369 |
* src/incremen.c (list_dumpdir): Minor fixes. |
| 8370 |
|
| 8371 |
* src/compare.c (read_and_process): Fix type of "size" |
| 8372 |
|
| 8373 |
2006-12-13 Sergey Poznyakoff <[email protected]> |
| 8374 |
|
| 8375 |
* tests/T-null.at: Skip the test if genfile is not able to create |
| 8376 |
the filename with an embedded newline. |
| 8377 |
|
| 8378 |
2006-12-12 Paul Eggert <[email protected]> |
| 8379 |
|
| 8380 |
Port to Forte Developer 7 C 5.4 and C99. |
| 8381 |
* src/common.h (add_exclude_tag): Add decl; C99 requires this |
| 8382 |
and Forte warns about it. |
| 8383 |
* src/incremen.c: Include <mkdtemp.h> for mkdtemp prototype, |
| 8384 |
for same reason. |
| 8385 |
* src/misc.c (get_max_open_files): Rewrite to avoid code that |
| 8386 |
Forte C complains about as being unreachable. |
| 8387 |
* src/xheader.c (mtime_code): Rewrite to avoid Forte error |
| 8388 |
reported by Trond Hasle Amundsen. |
| 8389 |
|
| 8390 |
* src/incremen.c (compare_dirnames): Rewrite to avoid casts. |
| 8391 |
* src/utf8.c (string_ascii_p): Likewise. |
| 8392 |
* src/xheader.c (mtime_coder, volume_size_coder, volume_offset_coder): |
| 8393 |
Likewise. |
| 8394 |
|
| 8395 |
2006-12-08 Sergey Poznyakoff <[email protected]> |
| 8396 |
|
| 8397 |
* bootstrap: Add paxutils files to dot_ignore. |
| 8398 |
|
| 8399 |
* configure.ac: Raise version number to 1.16.1 |
| 8400 |
* bootstrap (slurp): Create .(cvs|git)ignore if not present |
| 8401 |
* po/.cvsignore, m4/.cvsignore: Remove automatically generated |
| 8402 |
files. |
| 8403 |
|
| 8404 |
2006-12-07 Sergey Poznyakoff <[email protected]> |
| 8405 |
|
| 8406 |
* NEWS: Update |
| 8407 |
* Makefile.am (distclean-local): Fixed |
| 8408 |
* doc/tar.texi: Update documentation of --exclude-tag |
| 8409 |
* src/create.c (dump_dir0): Move checks for exclude tags to |
| 8410 |
dump_file0. |
| 8411 |
(dump_dir): Move calls to ensure_slash to dump_file0 |
| 8412 |
* src/extract.c (extract_file): Call skip_member if open fails. |
| 8413 |
Patch proposed by Jan-Benedict Glaw <[email protected]> |
| 8414 |
* tests/truncate.at: Use genfile instead of dd, because on some |
| 8415 |
systems /dev/zero is not available. |
| 8416 |
|
| 8417 |
2006-12-04 Paul Eggert <[email protected]> |
| 8418 |
|
| 8419 |
* NEWS: Fix some race conditions with tar -x --same-owner. |
| 8420 |
* src/extract.c (ARCHIVED_PERMSTATS): Add a comment saying that |
| 8421 |
S_IRWXG | S_IRWXO might be masked out. |
| 8422 |
(set_mode): Set the mode if some bits were masked out originally. |
| 8423 |
(set_stat): Don't chmod before chown, as that might temporarily |
| 8424 |
grant permissions that we don't want to grant. The chmod was |
| 8425 |
there only to work around broken hosts, so add a comment advising |
| 8426 |
users not to use those broken hosts instead. |
| 8427 |
(repair_delayed_set_stat, extract_dir): |
| 8428 |
Remember to mask out current umask before inverting permissions. |
| 8429 |
(extract_dir): If the owner might change, or if the mode has |
| 8430 |
special bits, create the directory 700 at first, but restore it later. |
| 8431 |
(open_output_file): New arg mode; all uses changed. |
| 8432 |
(extract_file, extract_node, extract_fifo): If the owner might |
| 8433 |
change, omit group and other bits at first, but restore them after |
| 8434 |
changing the owner. |
| 8435 |
|
| 8436 |
2006-12-04 Jim Meyering <[email protected]> |
| 8437 |
|
| 8438 |
* doc/tar.texi (Long Options): Remove doubled word. |
| 8439 |
|
| 8440 |
2006-11-30 Sergey Poznyakoff <[email protected]> |
| 8441 |
|
| 8442 |
* src/xheader.c (xheader_read): Remove unused variable |
| 8443 |
|
| 8444 |
* po/POTFILES.in: Remove src/mangle.c |
| 8445 |
|
| 8446 |
* bootstrap: Implement --update-po and .bootstrap |
| 8447 |
|
| 8448 |
* src/create.c (dump_dir0): Implement --exclude-tag option |
| 8449 |
* src/tar.c: Likewise |
| 8450 |
* doc/tar.texi (exclude): Document --exclude-tag |
| 8451 |
|
| 8452 |
2006-11-29 Paul Eggert <[email protected]> |
| 8453 |
|
| 8454 |
* NEWS: Remove support for mangled names. |
| 8455 |
* doc/tar.texi (verbose tutorial): Likewise. |
| 8456 |
* src/Makefile.am (tar_SOURCES): Remove mangle.c. |
| 8457 |
* src/common.h (extract_mangle): Remove decl. |
| 8458 |
* src/extract.c (extract_mangle_wrapper): Remove. |
| 8459 |
(prepare_to_extract): Remove support for mangled names. |
| 8460 |
* src/list.c (read_and, print_header): Likewise. |
| 8461 |
* src/mangle.c: Remove. |
| 8462 |
* src/tar.h (GNUTYPE_NAMES): Remove. |
| 8463 |
|
| 8464 |
Port to latest gnulib. There were a lot of changes, so the |
| 8465 |
simplest way to get this up and running was to switch to coreutils |
| 8466 |
bootstrap procedure. I noticed one feature missing after this |
| 8467 |
merge: the ability to update a single .po file. I can add that |
| 8468 |
later if need be. |
| 8469 |
* README-cvs, bootstrap.conf: New files. |
| 8470 |
* lib/.cvsignore: Remove Makefile.am, printf-parse.c, vasnprintf.c. |
| 8471 |
Add fstatat.c, gnulib.mk, openat-proc.c, same-inode.h, stat_.h, |
| 8472 |
tempname.c, tempname.h, uinttostr.c. |
| 8473 |
* lib/printf-parse.c, lib/vasnprintf.c: New files, from coreutils, |
| 8474 |
to override gnulib, so that we don't need xsize.h. |
| 8475 |
* bootstrap: Replace with coreutils bootstrap, except add support |
| 8476 |
for paxutils. |
| 8477 |
* configure.ac (gl_USE_SYSTEM_EXTENSIONS): Remove, as gl_EARLY now |
| 8478 |
does this. |
| 8479 |
(gl_EARLY, gl_INIT): Add. |
| 8480 |
(tar_GNULIB): Remove. |
| 8481 |
* gnulib.modules: Add configmake. |
| 8482 |
* lib/Makefile.tmpl: Remove, replacing with.... |
| 8483 |
* lib/Makefile.am: New file. |
| 8484 |
* src/Makefile.am (tar.o): Remove dependency: Automake does this |
| 8485 |
for us. |
| 8486 |
* src/tar.c: Include <configmake.h> and <rmt-command.h>, not |
| 8487 |
<localedir.h>. |
| 8488 |
|
| 8489 |
2006-11-13 Sergey Poznyakoff <[email protected]> |
| 8490 |
|
| 8491 |
* src/xheader.c (mtime_coder): Treat non-null data as a pointer to |
| 8492 |
struct timespec, overriding st->mtime |
| 8493 |
* src/create.c (start_header): Pass mtime as a call-specific data |
| 8494 |
to xheader_store. |
| 8495 |
|
| 8496 |
* tests/truncate.at: Do not use 'k' modifier in dd options. |
| 8497 |
* tests/append02.at: Do not depend on command timing. |
| 8498 |
|
| 8499 |
2006-11-01 Sergey Poznyakoff <[email protected]> |
| 8500 |
|
| 8501 |
* src/tar.c (enum read_file_list_state.file_list_skip): New value |
| 8502 |
(read_name_from_file): Skip zero-length entries |
| 8503 |
|
| 8504 |
* tests/T-empty.at: New test case |
| 8505 |
* tests/T-null.at: New test case |
| 8506 |
* tests/extrac07.at: New test case |
| 8507 |
* tests/Makefile.am: Add new test cases. |
| 8508 |
* tests/testsuite.at: Add new test cases. |
| 8509 |
* tests/extrac02.at: Add more keywords |
| 8510 |
* tests/extrac04.at: Likewise |
| 8511 |
* tests/extrac06.at: Likewise |
| 8512 |
* tests/shortrec.at: Do not assume tar's default archive is stdout |
| 8513 |
|
| 8514 |
2006-10-31 Sergey Poznyakoff <[email protected]> |
| 8515 |
|
| 8516 |
* src/extract.c, src/xheader.c: Call last_component instead of |
| 8517 |
base_name. The latter returns a malloced string since 2006-03-11. |
| 8518 |
|
| 8519 |
2006-10-21 Sergey Poznyakoff <[email protected]> |
| 8520 |
|
| 8521 |
* NEWS, configure.ac: Version 1.16 |
| 8522 |
* Makefile.am (distclean-local): New rule |
| 8523 |
|
| 8524 |
2006-10-17 Sergey Poznyakoff <[email protected]> |
| 8525 |
|
| 8526 |
* src/tar.c: Fix help output formatting. Thanks Benno |
| 8527 |
Schulenberg. |
| 8528 |
|
| 8529 |
2006-10-16 Sergey Poznyakoff <[email protected]> |
| 8530 |
|
| 8531 |
* Makefile.am (dist-hook): Create a cpio archive. |
| 8532 |
* NEWS: Update |
| 8533 |
|
| 8534 |
2006-10-14 Sergey Poznyakoff <[email protected]> |
| 8535 |
|
| 8536 |
* doc/tar.texi (Synopsis): Document tar exit codes. |
| 8537 |
* src/create.c (dump_regular_file,dump_file0): Set exit_status to |
| 8538 |
TAREXIT_DIFFERS if the file being dumped was truncated or |
| 8539 |
otherwise changed. |
| 8540 |
* src/tar.c: Do not attempt to close stderr after call to |
| 8541 |
close_stdout. |
| 8542 |
* tests/grow.at: New test case |
| 8543 |
* tests/Makefile.am: New test grow.at |
| 8544 |
* tests/testsuite.at: Likewise |
| 8545 |
* tests/truncate.at (AT_KEYWORDS): Keyword `filechange' |
| 8546 |
Test tar exit status. |
| 8547 |
|
| 8548 |
* src/buffer.c (_open_archive): Make sure stdlis is set to stderr |
| 8549 |
when we are writing archive to stdout (unless --index-file is |
| 8550 |
used). Bug introduced on 2006-07-06. |
| 8551 |
* tests/Makefile.am: New test verbose.at |
| 8552 |
* tests/testsuite.at: Likewise |
| 8553 |
* tests/indexfile.at (AT_KEYWORDS): Add stdout keyword |
| 8554 |
* tests/verbose.at: New test case |
| 8555 |
|
| 8556 |
2006-10-02 Sergey Poznyakoff <[email protected]> |
| 8557 |
|
| 8558 |
* THANKS: Add Joerg Weilbier |
| 8559 |
* src/buffer.c (new_volume): Initialize current_block |
| 8560 |
* src/xheader.c (xheader_string_end): Fix diagnostic message. |
| 8561 |
* tests/multiv05.at: New testcase. |
| 8562 |
* tests/Makefile.am, tests/testsuite.at: Add multiv05.at |
| 8563 |
|
| 8564 |
2006-09-27 Sergey Poznyakoff <[email protected]> |
| 8565 |
|
| 8566 |
* bootstrap: Use ${package} instead of hardcoding package name |
| 8567 |
* doc/tar.texi: Minor fix |
| 8568 |
* src/tar.c (doc0, doc1, initialize_argp_doc): Removed. Rely on |
| 8569 |
the new argp method instead. |
| 8570 |
|
| 8571 |
2006-09-12 Sergey Poznyakoff <[email protected]> |
| 8572 |
|
| 8573 |
* README: Fix a typo |
| 8574 |
|
| 8575 |
2006-09-08 Paul Eggert <[email protected]> |
| 8576 |
|
| 8577 |
Adjust to latest gnulib. |
| 8578 |
* lib/.cvsignore: Add at-func.c, configmake.h, fchmodat.c, |
| 8579 |
fcntl.h, fcntl_.h, inttypes_.h, lstat.c, lstat.h. |
| 8580 |
* tests/testsuite.at (AT_TAR_MKHIER): Use install-sh -d |
| 8581 |
rather than the no-longer-included mkinstalldirs. |
| 8582 |
|
| 8583 |
2006-09-08 Sergey Poznyakoff <[email protected]> |
| 8584 |
|
| 8585 |
* src/incremen.c (try_purge_directory): Initialize struct st. Fix |
| 8586 |
condition for selecting candidates for removal. |
| 8587 |
* README-alpha: List texinfo among build prerequisites for the CVS |
| 8588 |
version. |
| 8589 |
|
| 8590 |
* bootstrap (intl_files_to_remove): Do not remove m4/inttypes-h.m4 |
| 8591 |
and m4/inttypes-pri.m4 |
| 8592 |
|
| 8593 |
2006-08-11 Paul Eggert <[email protected]> |
| 8594 |
|
| 8595 |
* bootstrap: Set XGETTEXT_OPTIONS to flag our printf-format functions, |
| 8596 |
so that translators are warned about strings that are formats but |
| 8597 |
don't look like formats. This might help prevent core dumps. |
| 8598 |
* configure.ac (AM_GNU_GETTEXT): Upgrade to need-formatstring-macros. |
| 8599 |
Suggested by Eric Blake to avoid problems like |
| 8600 |
<http://lists.gnu.org/archive/html/bug-coreutils/2006-07/msg00087.html>. |
| 8601 |
(AM_GNU_GETTEXT_VERSION): Upgrade from 0.12.1 to 0.15. The gettext |
| 8602 |
manual says we should use the version number normally expected of |
| 8603 |
maintainers, neither more nor less. |
| 8604 |
|
| 8605 |
* bootstrap (get_translations): |
| 8606 |
Don't exclude ky.po; it is working again. |
| 8607 |
|
| 8608 |
2006-08-09 Paul Eggert <[email protected]> |
| 8609 |
|
| 8610 |
* bootstrap (get_translations): |
| 8611 |
Don't exclude ja.po; it is working again. |
| 8612 |
Don't remove all old .po files if we're merely updating one. |
| 8613 |
* po/.cvsignore: Add Makevars. |
| 8614 |
|
| 8615 |
2006-08-07 Paul Eggert <[email protected]> |
| 8616 |
|
| 8617 |
* src/tar.c: Work around limitation imposed by gettext 0.15 |
| 8618 |
by concatenating strings with "\v" after translation. |
| 8619 |
(doc): Remove, splitting into: |
| 8620 |
(doc0, doc1): New constants. |
| 8621 |
(argp): Don't use doc; just initialize to NULL. |
| 8622 |
(initialize_argp_doc): New function. |
| 8623 |
(decode_options): Use it. |
| 8624 |
|
| 8625 |
* bootstrap: Redo po file retrieval to match Bison's method, |
| 8626 |
since the translation project changed its index format. |
| 8627 |
Don't use --assume-autoconf; it's now replaced |
| 8628 |
by looking in configure.ac. |
| 8629 |
(m4/codeset.m4, m4/intdiv.m4, m4/inttypes-pri.m4, m4/isc-posix.m4): |
| 8630 |
(m4/lcmessage.m4, m4/onceonly_2_57.m4, m4/gettext.m4, m4/glibc21.m4): |
| 8631 |
(m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-prefix.m4, m4/po.m4): |
| 8632 |
(m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4): |
| 8633 |
Don't rename to ..._gl.m4, as this is no longer needed. |
| 8634 |
(m4/geteext.m4): Patch to remove the need for intl/*. |
| 8635 |
Use autopoint manually, then remove the intl files, |
| 8636 |
then undo changes to gnulib files that autoreconf made, |
| 8637 |
and then run aclocal/autoconf/autoheader/automake. |
| 8638 |
This makes our bootstrap procedure closer to Bison's. |
| 8639 |
(po/Makevars): Generate automatically. |
| 8640 |
* configure.ac (AC_PREREQ): Update from 2.59 to 2.60. |
| 8641 |
(gl_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Remove. |
| 8642 |
* gnulib.modules: Add inttypes, stdint. |
| 8643 |
* lib/.cvsignore: Add close-stream.c, close-stream.h, |
| 8644 |
stdint.h, stdint_.h. |
| 8645 |
* po/Makefile: Remove; now automatically generated. |
| 8646 |
|
| 8647 |
* src/incremen.c (read_incr_db_01): Check input strings more |
| 8648 |
carefully. Do not pass arbitrary char values to isspace, as |
| 8649 |
this has undefined behavior. Likewise for assigning arbitrary |
| 8650 |
uintmax_t values to other types. |
| 8651 |
(read_negative_num, read_unsigned_num, read_timespec): |
| 8652 |
New functions, to check input values a bit more carefully. |
| 8653 |
(read_num): Use read_unsigned_num. New arg MAX_VAL; |
| 8654 |
all callers changed. |
| 8655 |
(read_incr_db_2): Use these new functions. |
| 8656 |
Use a consistent diagnostic for unexpected EOF. |
| 8657 |
(read_directory_file): Do not assign arbitrary uintmax_t value |
| 8658 |
to int. |
| 8659 |
(read_timespec, write_directory_file_entry, write_directory_file): |
| 8660 |
Handle negative time_t values correctly. We don't bother to do |
| 8661 |
this with pre-2 formats, since presumably the time stamps were |
| 8662 |
output incorrectly. |
| 8663 |
|
| 8664 |
* src/tar.c (doc): Don't use \v in an argument to gettext; |
| 8665 |
gettext 0.15 rejects this. |
| 8666 |
|
| 8667 |
2006-07-24 Sergey Poznyakoff <[email protected]> |
| 8668 |
|
| 8669 |
* src/tar.c (decode_options): Do not require -L with -M -Hpax. |
| 8670 |
It could be needed in future, but currently it is not. |
| 8671 |
* src/create.c (to_chars_subst): Update comment regarding OLDGNU |
| 8672 |
vs. GNU format differences. |
| 8673 |
(mode_to_chars): Treat OLDGNU_FORMAT same as GNU_FORMAT. Fixes bug |
| 8674 |
reported by TAMUKI Shoichi <[email protected]>, which caused |
| 8675 |
equivalent `tar cf ...' and `tar rf ...' commands to produce |
| 8676 |
different archives. |
| 8677 |
|
| 8678 |
* tests/append02.at: New test case |
| 8679 |
* tests/Makefile.am, tests/testsuite.at: Add append02.at |
| 8680 |
|
| 8681 |
2006-07-20 Paul Eggert <[email protected]> |
| 8682 |
|
| 8683 |
* bootstrap: Adjust to today's change to gnulib-tool by invoking |
| 8684 |
it with --assume-autoconf='latest-stable'. |
| 8685 |
|
| 8686 |
2006-07-16 Paul Eggert <[email protected]> |
| 8687 |
|
| 8688 |
Adjust to recent gnulib changes. |
| 8689 |
* lib/.cvsignore: Remove atexit.c, exit.c, getndelim2.c, getndelim2.h, |
| 8690 |
pathmax.h, paxconvert.c, paxerror.h, xstrdup.c. |
| 8691 |
Add inttypes.h, mktime.c, wcwidth.h, xstrndup.c, xstrndup.h. |
| 8692 |
* src/create.c (start_header): Adjust to API change to mode_adjust. |
| 8693 |
|
| 8694 |
2006-07-09 Sergey Poznyakoff <[email protected]> |
| 8695 |
|
| 8696 |
* THANKS: Add Ralf Wildenhues |
| 8697 |
* NEWS: Update |
| 8698 |
|
| 8699 |
2006-07-09 Ralf Wildenhues <[email protected]> |
| 8700 |
|
| 8701 |
* doc/dumpdir.texi, doc/snapshot.texi, doc/sparse.texi, |
| 8702 |
doc/tar.texi: Fix some typos. |
| 8703 |
|
| 8704 |
2006-07-06 Sergey Poznyakoff <[email protected]> |
| 8705 |
|
| 8706 |
tar --index-file=FILE --file=- sent the archive to FILE, and |
| 8707 |
the listing to stderr. Bug reported by Marcin Gryszkalis |
| 8708 |
<[email protected]> |
| 8709 |
|
| 8710 |
* src/buffer.c (_open_archive): Remove stdlis initialization |
| 8711 |
* src/tar.c (decode_options): Initialize stdlis |
| 8712 |
* tests/indexfile.at: New test case |
| 8713 |
* tests/testsuite.at: Include indexfile.at |
| 8714 |
* tests/Makefile.am (TESTSUITE_AT): Add indexfile.at |
| 8715 |
|
| 8716 |
2006-07-05 Sergey Poznyakoff <[email protected]> |
| 8717 |
|
| 8718 |
* doc/Makefile.am (manual): Fix TEXINPUTS |
| 8719 |
* doc/rendition.texi (FIXME): Do not use deprecated @quote-args. |
| 8720 |
Do not use @allow-recursion. In its current form the macro is not |
| 8721 |
recursive. |
| 8722 |
|
| 8723 |
2006-07-03 Sergey Poznyakoff <[email protected]> |
| 8724 |
|
| 8725 |
* bootstrap (update_po): Fix single translation update |
| 8726 |
|
| 8727 |
2006-07-03 Sergey Poznyakoff <[email protected]> |
| 8728 |
|
| 8729 |
* configure.ac (AC_CHECK_FUNCS): Check for getdtablesize |
| 8730 |
* src/common.h (closeopen): New function |
| 8731 |
* src/misc.c (chdir_arg): Use x2nrealloc to reallocate wd. |
| 8732 |
(get_max_open_files,closeopen): New functions |
| 8733 |
(chdir_do): Do not use save_cwd if it was already used more than |
| 8734 |
max_open_files-4 times to avoid running off the file |
| 8735 |
descriptors. |
| 8736 |
* src/tar.c (main): Call closeopen |
| 8737 |
* doc/tar.texi: Update --directory description |
| 8738 |
* NEWS: Update |
| 8739 |
|
| 8740 |
2006-06-26 Sergey Poznyakoff <[email protected]> |
| 8741 |
|
| 8742 |
* doc/tar.texi: Update. Add cross-references. |
| 8743 |
* doc/sparse.texi: Add cross-references. |
| 8744 |
|
| 8745 |
2006-06-25 Sergey Poznyakoff <[email protected]> |
| 8746 |
|
| 8747 |
* scripts/xsparse.c: A sample utility to expand sparse files |
| 8748 |
extracted by third-party tars. It is not meant to be installed nor |
| 8749 |
to be included in the distribution. It is here, so that it can be |
| 8750 |
obtained either from CVS or from the tar web site. |
| 8751 |
* doc/Makefile.am (tar_TEXINFOS): Sorted |
| 8752 |
* doc/tar.texi (Other Tars): New node describing how to extract |
| 8753 |
GNU-specific member formats using third-party tars. |
| 8754 |
* src/common.h (sparse_file_p): Remove |
| 8755 |
* src/sparse.c: Likewise |
| 8756 |
* src/create.c: Use ST_IS_SPARSE instead of sparse_file_p (update |
| 8757 |
paxutils first) |
| 8758 |
* src/tar.c: --sparse-version turns on --sparse |
| 8759 |
|
| 8760 |
2006-06-24 Sergey Poznyakoff <[email protected]> |
| 8761 |
|
| 8762 |
* src/buffer.c (print_total_stats): Add default case. |
| 8763 |
* src/common.h (name_init): New prototype. |
| 8764 |
(xheader_string_end): Return bool. |
| 8765 |
* src/extract.c (extract_volhdr): Add missing return |
| 8766 |
* src/incremen.c: Remove not used variables |
| 8767 |
* src/sparse.c (pax_dump_header_0): Return false if |
| 8768 |
xheader_string_end fails (for 0.1 formats). |
| 8769 |
(pax_dump_header): Return meaningful value |
| 8770 |
* src/transform.c (segm_count): Change type to size_t |
| 8771 |
* src/xheader.c (xhdr_tab.decoder): pass keyword as a second |
| 8772 |
argument. All callers changed. |
| 8773 |
(decode_record): Check for numeric overflow |
| 8774 |
(xheader_string_end): Return boolean value. Check for possible |
| 8775 |
numeric overflow |
| 8776 |
|
| 8777 |
2006-06-23 Sergey Poznyakoff <[email protected]> |
| 8778 |
|
| 8779 |
* doc/sparse.texi: New file |
| 8780 |
* doc/Makefile.am (tar_TEXINFOS): Add sparse.texi |
| 8781 |
* doc/intern.texi (Sparse Formats): New node |
| 8782 |
* doc/tar.texi: Update master menu |
| 8783 |
|
| 8784 |
* src/common.h (tar_sparse_major,tar_sparse_minor): New globals. |
| 8785 |
* src/sparse.c: Implement sparse format versioning. Implement new |
| 8786 |
version (1.0) of PAX sparse format. |
| 8787 |
(pax_sparse_member_p): Fix condition |
| 8788 |
(pax_dump_header): A dispatcher function |
| 8789 |
(pax_dump_header_0,pax_dump_header_1): New functions. |
| 8790 |
(pax_optab): Update |
| 8791 |
(oldgnu_dump_header): Minor fix: make sure |
| 8792 |
sparse_header.isextended is set before calling |
| 8793 |
set_next_block_after |
| 8794 |
* src/tar.c: New option --sparse-version |
| 8795 |
* src/tar.h (struct tar_stat_info.sparse_major,sparse_minor): New |
| 8796 |
members. |
| 8797 |
* src/xheader.c: Implement new keywords: GNU.sparse.name, |
| 8798 |
GNU.sparse.major, GNU.sparse.minor, GNU.sparse.realsize |
| 8799 |
|
| 8800 |
* tests/spmpv00.at, tests/spmvp01.at, tests/spmvp10.at: New |
| 8801 |
testcases. |
| 8802 |
|
| 8803 |
* tests/Makefile.am: Add spmvp00.at, spmpv01.at, spmpv10.at |
| 8804 |
* tests/shortrec.at: Explicitely give `-f -' to the tar invocation |
| 8805 |
* tests/sparsemvp.at: Rewritten as an include file. |
| 8806 |
(TAR_MVP_TEST): New macro |
| 8807 |
* tests/testsuite.at: Include sparsemvp.at, spmvp00.at, |
| 8808 |
spmvp01.at, spmvp10.at |
| 8809 |
|
| 8810 |
2006-06-21 Sergey Poznyakoff <[email protected]> |
| 8811 |
|
| 8812 |
* doc/tar.texi (Overriding File Metadata): New node |
| 8813 |
Document --mtime option. |
| 8814 |
* src/common.h (set_mtime_option,mtime_option): New globals |
| 8815 |
* src/create.c (start_header): Override mtime if requested |
| 8816 |
* src/tar.c: Implement new option, --mtime, allowing to set |
| 8817 |
modification times for all archive members during creation. |
| 8818 |
(struct tar_args): textual_date_option replaced with a linked list |
| 8819 |
textual_date. All references updated. |
| 8820 |
(get_date_or_file,report_textual_dates): New functions. |
| 8821 |
* configure.ac: Raise version number to 1.15.92 |
| 8822 |
* NEWS: Update |
| 8823 |
|
| 8824 |
2006-06-20 Sergey Poznyakoff <[email protected]> |
| 8825 |
|
| 8826 |
* src/common.h (struct name.explicit): Remove |
| 8827 |
Use variable names in all declarations |
| 8828 |
(name_scan): Remove second argument |
| 8829 |
* src/delete.c: Remove second argument from calls to name_scan |
| 8830 |
* src/update.c: Likewise |
| 8831 |
* src/incremen.c (procdir): Use is_individual_file to check for |
| 8832 |
files explicitly specified in the command line. Fixes bug |
| 8833 |
reported by Dat Head on 19 Jun 2006 (descending into mountpoints |
| 8834 |
with --one-file-system in use) |
| 8835 |
* src/misc.c (maybe_backup_file): Second argument is bool |
| 8836 |
* src/names.c (name_next_elt): Call register_individual_file |
| 8837 |
(namelist_match): Remove third argument |
| 8838 |
(name_match): Change return type to bool |
| 8839 |
(name_scan): Remove second argument |
| 8840 |
* src/sparse.c (pax_dump_header): Store original sparse file name |
| 8841 |
in GNU.sparse.name variable. The name field in the ustar header |
| 8842 |
now contains generated name (%d/GNUSparseFile.%p/%f), so that |
| 8843 |
non-pax-aware tars won't extract the file under the original |
| 8844 |
filename. |
| 8845 |
* src/xheader.c (GNU.sparse.name): New variable for storing sparse |
| 8846 |
file name. |
| 8847 |
|
| 8848 |
2006-06-13 Sergey Poznyakoff <[email protected]> |
| 8849 |
|
| 8850 |
* doc/Makefile.am (check-options): Expand macros before grepping |
| 8851 |
in $(info_TEXINFOS) |
| 8852 |
* doc/rendition.texi (FIXME) [!PROOF_FOOTNOTED]: Enclose in a |
| 8853 |
cartouche |
| 8854 |
* doc/tar.texi: Define op as codeindex. Use special macros to |
| 8855 |
populate it |
| 8856 |
Consequently prefer @dfn{long options} over @dfn{mnemonic |
| 8857 |
options}. |
| 8858 |
Document --unquote, --no-unquote |
| 8859 |
(Short Option Summary): Build a table of cross-references to the |
| 8860 |
corresponding long options. |
| 8861 |
(Using Multiple Tapes,Multi-Volume Archives): Rewritten |
| 8862 |
|
| 8863 |
* doc/value.texi (xopindex,opsummary): New macros |
| 8864 |
|
| 8865 |
* doc/Makefile.am (check-options): New goal |
| 8866 |
* doc/tar.texi: Update |
| 8867 |
* src/tar.c: Implement --overwrite-dir option (long ago |
| 8868 |
documented). |
| 8869 |
|
| 8870 |
2006-06-12 Sergey Poznyakoff <[email protected]> |
| 8871 |
|
| 8872 |
* doc/tar.texi: Document better the --totals option |
| 8873 |
* NEWS: Update |
| 8874 |
* src/buffer.c (total_blocks_deleted): New variable |
| 8875 |
(set_start_time): Set volume_start_time and last_stat_time as well |
| 8876 |
(set_volume_start_time): New function |
| 8877 |
(compute_duration): Do not call set_start_time, update |
| 8878 |
last_stat_time instead. Use it in calculation instead of |
| 8879 |
start_time, which is now set only once, upon startup. |
| 8880 |
(print_total_written): Removed. |
| 8881 |
(print_total_stats): New function for printing byte/speed statistics. |
| 8882 |
(_open_archive): Detect attempts to update compressed archives. |
| 8883 |
(_gnu_flush_write): Always update prev_written. |
| 8884 |
(open_archive): Call set_volume_start_time. |
| 8885 |
* src/common.h (volume_start_time,last_stat_time): New globals |
| 8886 |
(print_total_written): Replaced with: |
| 8887 |
(print_total_stats): New function |
| 8888 |
* src/delete.c (records_skipped): Remove static qualifier, the |
| 8889 |
variable is used by print_total_stats in buffer.c |
| 8890 |
* src/extract.c (check_time): Use volume_start_time when checking |
| 8891 |
for timestamp plausibility. |
| 8892 |
* src/tar.c: (options, parse_opt): Allow for optional argument to |
| 8893 |
the --totals option, which specifies a signal upon delivery of which |
| 8894 |
the statistics must be output. |
| 8895 |
(main): Call print_total_stats if total_option is set. |
| 8896 |
|
| 8897 |
2006-06-11 Sergey Poznyakoff <[email protected]> |
| 8898 |
|
| 8899 |
* src/xheader.c (xheader_set_single_keyword): Fix typo. |
| 8900 |
(decode_time): Avoid using gotos. |
| 8901 |
|
| 8902 |
* doc/mastermenu.el: New file |
| 8903 |
* doc/Makefile.am (master-menu): New goal |
| 8904 |
* doc/tar.texi: Update master menu |
| 8905 |
|
| 8906 |
2006-06-10 Sergey Poznyakoff <[email protected]> |
| 8907 |
|
| 8908 |
* doc/tar.texi: Remove leftover include |
| 8909 |
|
| 8910 |
2006-06-09 Sergey Poznyakoff <[email protected]> |
| 8911 |
|
| 8912 |
* doc/Makefile.am (tar_TEXINFOS): Add intern.texi |
| 8913 |
(EXTRA_DIST): Remove convtexi.pl, add texify.sed |
| 8914 |
* doc/intern.texi: New file |
| 8915 |
* doc/convtexi.pl: Remove |
| 8916 |
* doc/texify.sed: Auxiliary script to convert ../src/tar.h to |
| 8917 |
header.texi |
| 8918 |
* doc/rendition.texi: Fix typo |
| 8919 |
* doc/tar.texi: Update |
| 8920 |
* src/tar.h: Fix indentation, introduce end-of-format marker for |
| 8921 |
texify.sed |
| 8922 |
|
| 8923 |
* THANKS: Add Jason Armistead |
| 8924 |
* doc/tar.texi: Update |
| 8925 |
* NEWS: Update |
| 8926 |
* src/buffer.c: Implement more flexible checkpoint style |
| 8927 |
* src/common.h (checkpoint_option): Change type to unsigned |
| 8928 |
(checkpoint_style): New variable. |
| 8929 |
* src/tar.c: --checkpoint takes an optional argument specifying |
| 8930 |
number of records between two successive checkpoints (proposed |
| 8931 |
by Jason Armistead on 2004-06-22). Optional dot starting the |
| 8932 |
argument means "print dots instead of textual checkpoints". |
| 8933 |
(tar_help): New function |
| 8934 |
* src/transform.c: Minor fixes. |
| 8935 |
|
| 8936 |
2006-06-08 Sergey Poznyakoff <[email protected]> |
| 8937 |
|
| 8938 |
* gnulib.modules: Add mkdtemp |
| 8939 |
* doc/dumpdir.texi: New file |
| 8940 |
* doc/Makefile.am (tar_TEXINFOS): Add dumpdir.texi |
| 8941 |
* doc/tar.texi: Document dumpdir format |
| 8942 |
* src/incremen.c (dumpdir_locate,obstack_code_rename): |
| 8943 |
(purge_directory): Re-implement renaming. Introduce |
| 8944 |
'X' control code. |
| 8945 |
(make_tmp_dir_name): Remove |
| 8946 |
|
| 8947 |
* src/transform.c (set_transform_expr,_transform_name_to_obstack): |
| 8948 |
Implement NUMBER flag. |
| 8949 |
(add_char_segment): Fix length assignment |
| 8950 |
|
| 8951 |
* doc/tar.texi: Update |
| 8952 |
|
| 8953 |
2006-06-07 Sergey Poznyakoff <[email protected]> |
| 8954 |
|
| 8955 |
* src/transform.c (transform_name_fp): Run fun even if |
| 8956 |
_transform_name_to_obstack returns false. |
| 8957 |
(_transform_name_to_obstack,set_transform_expr): Implement GNU |
| 8958 |
extension case conversion operations. |
| 8959 |
|
| 8960 |
* doc/tar.texi (transform): Document the option. |
| 8961 |
|
| 8962 |
2006-06-02 Sergey Poznyakoff <[email protected]> |
| 8963 |
|
| 8964 |
* NEWS: Update |
| 8965 |
* src/common.h (set_transform_expr): New function |
| 8966 |
* tests/Makefile.am: Add incr04.at |
| 8967 |
* tests/testsuite.at: Likewise |
| 8968 |
* tests/incr04.at: New test case |
| 8969 |
* tests/long01.at: Fix typo in the comment |
| 8970 |
* tests/multiv04.at: Use genfile --files-from |
| 8971 |
|
| 8972 |
(Above changes need new genfile.c from paxutils) |
| 8973 |
|
| 8974 |
* TODO: Update |
| 8975 |
* NEWS: Update |
| 8976 |
* doc/tar.texi: Update |
| 8977 |
* src/transform.c: New file |
| 8978 |
* src/Makefile.am (tar_SOURCES): New module transform.c |
| 8979 |
* src/common.h (transform_name, transform_name_fp): New functions |
| 8980 |
(show_stored_names_option): Renamed to |
| 8981 |
show_transformed_names_option. All uses changed |
| 8982 |
* src/create.c (dump_file0): Transform file name |
| 8983 |
* src/extract.c (extract_archive): safer_name_suffix and |
| 8984 |
stripped_prefix_len are now called by decode_header |
| 8985 |
* src/list.c (print_header): Update displayable name selection. |
| 8986 |
* src/tar.c: New option --transform |
| 8987 |
New option --show-transformed-names generalizes |
| 8988 |
--show-stored-names. The latter is retained as an alias. |
| 8989 |
|
| 8990 |
2006-05-31 Sergey Poznyakoff <[email protected]> |
| 8991 |
|
| 8992 |
* src/incremen.c (make_directory): Fix initialization of struct |
| 8993 |
directory. |
| 8994 |
|
| 8995 |
2006-05-25 Sergey Poznyakoff <[email protected]> |
| 8996 |
|
| 8997 |
* doc/tar.texi: Document use of globbing patterns. |
| 8998 |
* src/tar.c (parse_opt): Add comment before --preserve case. |
| 8999 |
|
| 9000 |
2006-05-24 Sergey Poznyakoff <[email protected]> |
| 9001 |
|
| 9002 |
* NEWS: Update |
| 9003 |
* doc/tar.texi: Update |
| 9004 |
* configure.ac (AM_INIT_AUTOMAKE): Use tar-ustar option. Raise |
| 9005 |
version requirement to 1.9 |
| 9006 |
* src/common.h (struct name): Refactored |
| 9007 |
(warn_regex_usage): New variable. |
| 9008 |
(dump_file): First argument is const char*. |
| 9009 |
(name_init,name_add): Removed |
| 9010 |
(name_add_name,name_add_dir): New functions |
| 9011 |
(name_next): Return const char*. |
| 9012 |
* src/create.c: (dump_file,dump_file0): First argument is const |
| 9013 |
char*. All callers updated. |
| 9014 |
* src/names.c: Rewritten handling of member names in the command |
| 9015 |
line. Tar no longer attempts to guess globbing patterns, instead |
| 9016 |
it relies on --wildcard option. |
| 9017 |
(init_names): Removed. |
| 9018 |
(struct name_elt): New structure. |
| 9019 |
(name_array): Change type to struct name_elt. All references updated |
| 9020 |
(name_add_name,name_add_dir): New functions |
| 9021 |
(name_next_elt): New function |
| 9022 |
(name_next): Rewritten using name_next_elt. |
| 9023 |
(namelist_match): Rewritten pattern matching using |
| 9024 |
exclude_fnmatch. |
| 9025 |
(names_notfound): Warn if globbing patterns were used without |
| 9026 |
--wildcards option |
| 9027 |
* src/tar.c (options): Move globbing-related options into a |
| 9028 |
separate group. Set -l as an alias to --check-links, as required |
| 9029 |
by UNIX98 |
| 9030 |
(struct tar_args): New fields |
| 9031 |
wildcards,matching_flags,include_anchored |
| 9032 |
(MAKE_EXCL_OPTIONS,MAKE_INCL_OPTIONS): New macros |
| 9033 |
(parse_opt): Use x2nrealloc to grow archive_name_array. |
| 9034 |
Use MAKE_EXCL_OPTIONS,MAKE_INCL_OPTIONS to create appropriate |
| 9035 |
fnmatch options, and name_add_name,name_add_dir to handle member |
| 9036 |
name and -C arguments. |
| 9037 |
(decode_options): Likewise |
| 9038 |
(main): Remove call to init_names. |
| 9039 |
|
| 9040 |
* tests/append.at, tests/append01.at, tests/extrac01.at, |
| 9041 |
tests/options.at, tests/options02.at, tests/same-order01.at, |
| 9042 |
tests/same-order02.at: Make AT_SETUP more readable. |
| 9043 |
|
| 9044 |
2006-05-23 Sergey Poznyakoff <[email protected]> |
| 9045 |
|
| 9046 |
* src/buffer.c (change_tape_menu): Fix typo (uninitialized |
| 9047 |
variable) introduced yesterday. |
| 9048 |
|
| 9049 |
2006-05-22 Sergey Poznyakoff <[email protected]> |
| 9050 |
|
| 9051 |
* doc/tar.texi: Use @var{file_name} instead of @var{file name} |
| 9052 |
* src/buffer.c (change_tape_menu): Break the loop after obtaining |
| 9053 |
new archive name. Check for empty input line. |
| 9054 |
|
| 9055 |
2006-05-15 Sergey Poznyakoff <[email protected]> |
| 9056 |
|
| 9057 |
* tests/atlocal.in (XFAILFILE): New variable |
| 9058 |
* tests/version.at: Create $XFAILFILE on failure |
| 9059 |
* tests/testsuite.at (AT_TAR_CHECK): Declare expected failure if |
| 9060 |
$XFAILFILE exists. |
| 9061 |
|
| 9062 |
2006-05-13 Sergey Poznyakoff <[email protected]> |
| 9063 |
|
| 9064 |
* THANKS: Update |
| 9065 |
* src/buffer.c (read_header0): Use read_header_primitive to avoid |
| 9066 |
clubbering current_tar_info. All callers updated. |
| 9067 |
* src/common.h (read_header_primitive): New function |
| 9068 |
* src/extract.c (extract_volhdr): New function |
| 9069 |
(prepare_to_extract): Use extract_volhdr as extractor for volume |
| 9070 |
names. |
| 9071 |
* src/list.c (read_header_primitive): New function |
| 9072 |
(read_header): Front end for read_header_primitive |
| 9073 |
* tests/chtype.at: New file |
| 9074 |
* tests/volsize.at: New file |
| 9075 |
* tests/Makefile.am (TESTSUITE_AT): Add chtype.at, volsize.at |
| 9076 |
(check-full): New target. |
| 9077 |
* tests/atlocal.in (TEST_DATA_URL,STAR_DATA_URL) |
| 9078 |
(STAR_TESTSCRIPTS): Provide default values. |
| 9079 |
(tarball_prereq): New function |
| 9080 |
* tests/testsuite.at (AT_TARBALL_PREREQ): New defun |
| 9081 |
(AT_STAR_PREREQ): Rewrite using tarball_prereq |
| 9082 |
Include chtype.at and volsize.at |
| 9083 |
* tests/volume.at: Add keywords. |
| 9084 |
|
| 9085 |
* tests/star/gtarfail.at, tests/star/gtarfail2.at, |
| 9086 |
tests/star/multi-fail.at, tests/star/pax-big-10g.at, |
| 9087 |
tests/star/ustar-big-2g.at, tests/star/ustar-big-8g.at |
| 9088 |
(AT_STAR_PREREQ): Provide md5 sum. |
| 9089 |
|
| 9090 |
* lib/.cvsignore: Update |
| 9091 |
|
| 9092 |
2006-05-08 Sergey Poznyakoff <[email protected]> |
| 9093 |
|
| 9094 |
* tests/testsuite.at (AT_SORT_PREREQ, AT_UNPRIVILEGED_PREREQ): New |
| 9095 |
defines |
| 9096 |
|
| 9097 |
* tests/extrac04.at, tests/incr03.at, tests/listed02.at, |
| 9098 |
tests/pipe.at, tests/rename01.at, tests/rename02.at, |
| 9099 |
tests/rename03.at, tests/same-order01.at: Call |
| 9100 |
AT_SORT_PREREQ. Remove fd 2 redirection after calls to sort |
| 9101 |
* ignfail.at: Call AT_UNPRIVILEGED_PREREQ |
| 9102 |
|
| 9103 |
2006-05-08 Sergey Poznyakoff <[email protected]> |
| 9104 |
|
| 9105 |
Listed incremental backups: keep more information about |
| 9106 |
directories. Handle renamed directories more effectively |
| 9107 |
(initial implementation, more updates to follow). |
| 9108 |
Source tree before this point is tagged |
| 9109 |
alpha_1_15_90_incremental_1. |
| 9110 |
|
| 9111 |
* NEWS: Update |
| 9112 |
* configure.ac: Raise version number to 1.15.91 |
| 9113 |
* src/common.h (rename_directory,append_incremental_renames): New |
| 9114 |
functions. |
| 9115 |
* src/extract.c (rename_directory): New function |
| 9116 |
* src/incremen.c (struct directory.contents, flags): New members |
| 9117 |
(nfs,found,new): Remove. Replaced by appropriate bitmask values in |
| 9118 |
`flags' field. All uses updated. |
| 9119 |
(directory_meta_table): New table. |
| 9120 |
(hash_directory): Rename to hash_directory_name |
| 9121 |
(compare_directories): Rename to compare_directory_names |
| 9122 |
(hash_directory_meta,compare_directory_meta,find_directory_meta): |
| 9123 |
New functions |
| 9124 |
(compare_dirents): Removed |
| 9125 |
(note_directory): Get 7th argument: directory contents. |
| 9126 |
All callers updated |
| 9127 |
(dumpdir_locate,makedumpdir): New functions |
| 9128 |
(scan_directory): Rewritten. Use makedumpdir to create a sorted |
| 9129 |
dumpdir array. This makes the obstack argument unnecessary. Besides, |
| 9130 |
ALL_CHILDREN flag is set only for new directories. |
| 9131 |
(procdir): Change return type to struct directory. Return |
| 9132 |
immediately if the directory was already initialized. Discover |
| 9133 |
directory renames using directory_meta_table. |
| 9134 |
(append_incremental_renames): New function. |
| 9135 |
(read_directory_file, write_directory_file): Use new snapshot file |
| 9136 |
format. |
| 9137 |
* src/names.c (collect_and_sort_names): Update dir_contents of the |
| 9138 |
first non-fake name entry when in listed incremental mode. |
| 9139 |
|
| 9140 |
* tests/incr03.at: New testcase |
| 9141 |
* tests/rename01.at: New testcase |
| 9142 |
* tests/rename02.at: New testcase |
| 9143 |
* tests/rename03.at: New testcase |
| 9144 |
* tests/Makefile.am: Add |
| 9145 |
incr03.at,rename01.at,rename02.at,rename03.at |
| 9146 |
* tests/testsuite.at: Likewise. |
| 9147 |
* tests/listed02.at: Update for the new behavior |
| 9148 |
* tests/multiv04.at (AT_KEYWORDS): Add missing incremental kw. |
| 9149 |
|
| 9150 |
2006-05-02 Sergey Poznyakoff <[email protected]> |
| 9151 |
|
| 9152 |
* src/buffer.c (try_new_volume): Attempt to continue if the name |
| 9153 |
is apparently truncated in a GNU format volume. |
| 9154 |
|
| 9155 |
* tests/comprec.at, tests/delete01.at, tests/delete02.at, |
| 9156 |
tests/delete04.at, tests/delete05.at, tests/extrac05.at, |
| 9157 |
tests/listed01.at, tests/multiv01.at, tests/multiv02.at, |
| 9158 |
tests/pipe.at, tests/same-order01.at, tests/same-order02.at, |
| 9159 |
tests/sparse01.at, tests/sparse03.at: Always use genfile --file, |
| 9160 |
this enables extra error checking. |
| 9161 |
|
| 9162 |
* tests/multiv03.at: Attempt to extract a member with truncated |
| 9163 |
file name from the archive. |
| 9164 |
|
| 9165 |
* src/buffer.c (_open_archive): Remove unnecessary argument to |
| 9166 |
check_compressed_archive. |
| 9167 |
|
| 9168 |
2006-04-25 Sergey Poznyakoff <[email protected]> |
| 9169 |
|
| 9170 |
* tests/sparse01.at, tests/sparse02.at, tests/sparse03.at, |
| 9171 |
tests/sparsemv.at, tests/sparsemvp.at: Skip the test if the file |
| 9172 |
system does not support sparse files. |
| 9173 |
* doc/tar.texi (@copying): Remove the reference to not existing |
| 9174 |
invariant section. |
| 9175 |
|
| 9176 |
2006-04-11 Sergey Poznyakoff <[email protected]> |
| 9177 |
|
| 9178 |
* src/extract.c (extract_dir): Fix toggling existing directory |
| 9179 |
permissions (Debian bug #361077). Use parts of patch provided by |
| 9180 |
Ian Jackson <[email protected]>. |
| 9181 |
* src/compare.c: Minor changes |
| 9182 |
* src/incremen.c (directory.new): New member |
| 9183 |
(note_directory,find_directory: Use make_directory to create |
| 9184 |
struct directory entries |
| 9185 |
(procdir): Avoid duplicating directories in the incremental |
| 9186 |
backup map. |
| 9187 |
* tests/Makefile.am (TESTSUITE_AT): Add extrac06.at |
| 9188 |
* tests/testsuite.at: Include extrac06.at |
| 9189 |
|
| 9190 |
2006-03-18 Ralf Wildenhues <[email protected]> (trivial change) |
| 9191 |
|
| 9192 |
* tests/atlocal.in (PATH): Add build-aux from the source tree, |
| 9193 |
not the build tree. |
| 9194 |
|
| 9195 |
2006-03-13 Sergey Poznyakoff <[email protected]> |
| 9196 |
|
| 9197 |
* THANKS: Add Benno Schulenberg |
| 9198 |
|
| 9199 |
2006-03-13 Jim Meyering <[email protected]> |
| 9200 |
|
| 9201 |
* tests/listed02.at: Sort the two lines of stderr from the |
| 9202 |
first `tar -v --listed-incremental'. They would come out |
| 9203 |
reversed and provoke a test failure on a tmpfs |
| 9204 |
file system. |
| 9205 |
|
| 9206 |
2006-03-13 Benno Schulenberg <[email protected]> |
| 9207 |
|
| 9208 |
* doc/tar.texi: Minor fixes. |
| 9209 |
* src/tar.c (options): Consistently begin help messages with a |
| 9210 |
lowercase letter. |
| 9211 |
|
| 9212 |
2006-03-12 Sergey Poznyakoff <[email protected]> |
| 9213 |
|
| 9214 |
* tests/Makefile.am (AM_CPPFLAGS): Define LOCALEDIR |
| 9215 |
|
| 9216 |
2006-03-07 Paul Eggert <[email protected]> |
| 9217 |
|
| 9218 |
* src/buffer.c (record_buffer_aligned): New var. |
| 9219 |
(init_buffer): Use it to ensure that the buffer is aligned. |
| 9220 |
This doesn't result in any measurable performance improvement |
| 9221 |
on my host (Debian GNU/Linux 3.1 stable, with default block size), |
| 9222 |
but I assume it does help on some hosts. |
| 9223 |
|
| 9224 |
* lib/.cvsignore: Sort. |
| 9225 |
|
| 9226 |
2006-03-04 Sergey Poznyakoff <[email protected]> |
| 9227 |
|
| 9228 |
* tests/shortrec.at: Use -f - to read from stdin. |
| 9229 |
|
| 9230 |
2006-02-21 Sergey Poznyakoff <[email protected]> |
| 9231 |
|
| 9232 |
* doc/tar.texi: Fix typo: --to-command instead of --to-program |
| 9233 |
|
| 9234 |
2006-02-20 Paul Eggert <[email protected]> |
| 9235 |
|
| 9236 |
* tests/multiv04.at (split directory members in a MV archive): |
| 9237 |
Don't use %X in an awk printf format; this doesn't work with |
| 9238 |
Solaris 10 /usr/bin/awk. Use %x instead. |
| 9239 |
|
| 9240 |
2006-02-20 Sergey Poznyakoff <[email protected]> |
| 9241 |
|
| 9242 |
* src/create.c (split_long_name): Fix maximum length estimation. |
| 9243 |
Patch by Jim Lowe. |
| 9244 |
* tests/Makefile.am (lustar01.at,lustar02.at,lustar03.at): New |
| 9245 |
tests. |
| 9246 |
* tests/atlocal.in: Add build-aux to the PATH |
| 9247 |
* tests/long01.at: Remove mkhier, use AT_TAR_MKHIER instead |
| 9248 |
* tests/longv7.at: Reword test title |
| 9249 |
* tests/lustar01.at: New test |
| 9250 |
* tests/lustar02.at: New test |
| 9251 |
* tests/lustar03.at: New test |
| 9252 |
* tests/testsuite.at (AT_TAR_MKHIER): New macro |
| 9253 |
(lustar01.at,lustar02.at,lustar03.at): New tests. |
| 9254 |
|
| 9255 |
2006-02-20 Paul Eggert <[email protected]> |
| 9256 |
|
| 9257 |
* bootstrap: Don't claim lib/Makefile.am is generated automatically |
| 9258 |
from itself. |
| 9259 |
|
| 9260 |
Avoid installation glitches on Solaris 8 with Sun C 5.4. |
| 9261 |
* lib/.cvsignore: Add system-ioctl.h. |
| 9262 |
* lib/Makefile.tmpl (noinst_HEADERS): Add system-ioctl.h. |
| 9263 |
* src/buffer.c: Include system-ioctl.h. |
| 9264 |
* src/compare.c: Likewise. |
| 9265 |
* src/delete.c: Likewise. |
| 9266 |
* src/system.c: Include <getline.h>, <setenv.h>. |
| 9267 |
* src/tar.c: Include <getline.h>. |
| 9268 |
|
| 9269 |
2006-02-19 Sergey Poznyakoff <[email protected]> |
| 9270 |
|
| 9271 |
* src/buffer.c (add_chunk_header): Free st.orig_file_name after |
| 9272 |
calling finish_header(). |
| 9273 |
(new_volume): Prompt the user for archive name if unable to open |
| 9274 |
next archive. |
| 9275 |
|
| 9276 |
* src/create.c (dump_file0): Restore file_count_links, |
| 9277 |
accidentally removed on 2005-11-29. |
| 9278 |
* configure.ac: Raise version number to 1.15.90 |
| 9279 |
* NEWS: Likewise. |
| 9280 |
|
| 9281 |
2006-02-08 Sergey Poznyakoff <[email protected]> |
| 9282 |
|
| 9283 |
* src/tar.c (tar_set_quoting_style): Provide second argument to |
| 9284 |
the format spec: program_invocation_short_name. Reported by Jim |
| 9285 |
Meyering. |
| 9286 |
|
| 9287 |
2006-02-07 Paul Eggert <[email protected]> |
| 9288 |
|
| 9289 |
* gnulib.modules: Add closeout, exitfial. |
| 9290 |
* lib/.cvsignore: Add __fpending.c, __fpending.h, closeout.c, |
| 9291 |
closeout.h. |
| 9292 |
* src/buffer.c: Incluse closeout.h. |
| 9293 |
(_open_archive): Use freopen rather than fopen, so |
| 9294 |
that stdlis is always either stdout or stderr. Use |
| 9295 |
close_stdout_set_file_name to report its name. |
| 9296 |
* src/tar.c: Include closeout.h and exitfail.h. |
| 9297 |
(parse_opt, usage): Call close_stdout as appropriate, to check for |
| 9298 |
write errors. |
| 9299 |
(decode_options): Exit with status TAREXIT_FAILURE, not 1. |
| 9300 |
(main): Set exit_failure, to exit with proper status on memory |
| 9301 |
allocation failure and the like. |
| 9302 |
Use close_stdout rather than rolling our own test. |
| 9303 |
|
| 9304 |
* NEWS: --version now outputs copyright etc., to conform to the |
| 9305 |
GNU coding standards. Remove --license. |
| 9306 |
* gnulib.modules: Add version-etc-fsf. |
| 9307 |
* doc/tar.texi: Document the change. |
| 9308 |
* lib/.cvsignore: Add version-etc-fsf.c, version-etc.c, version-etc.h. |
| 9309 |
* scripts/Makefile.am (SED_CMD): Update PAKCAGE_NAME, not PACKAGE. |
| 9310 |
* scripts/backup.in: Remove --license. Change --version to conform |
| 9311 |
to GCS. |
| 9312 |
* scripts/restore.in: Likewise. |
| 9313 |
* scripts/backup.sh.in (license): Output briefer license in the |
| 9314 |
style of coreutils, for consistency with other changes. |
| 9315 |
* src/tar.c: Include <version-etc.h>. |
| 9316 |
(LICENSE_OPTION): Remove. |
| 9317 |
(options): Remove --license. |
| 9318 |
(license): Remove. |
| 9319 |
(parse_opt): Use version_etc instead of rolling it ourselves. |
| 9320 |
Remove --license. |
| 9321 |
* tests/version.at (tar --version): Check only the first line of |
| 9322 |
output. |
| 9323 |
|
| 9324 |
* ChangeLog, NEWS, src/common.h, src/extract.c, src/incremen.c: |
| 9325 |
* src/list.c, src/names.c, src/tar.h, src/xheader.c: |
| 9326 |
Update copyright year to 2006. |
| 9327 |
|
| 9328 |
2006-02-07 Jim Meyering <[email protected]> |
| 9329 |
|
| 9330 |
* src/xheader.c (sparse_map_decoder): Fix misleading diagnostic. |
| 9331 |
|
| 9332 |
2006-01-31 Sergey Poznyakoff <[email protected]> |
| 9333 |
|
| 9334 |
* src/common.h (get_gnu_dumpdir): Remove prototype |
| 9335 |
(is_dumpdir): New function |
| 9336 |
* src/extract.c (prepare_to_extract): Use is_dumpdir member to |
| 9337 |
check for dumpdirs. |
| 9338 |
* src/incremen.c (get_gnu_dumpdir): Static |
| 9339 |
(is_dumpdir): New function |
| 9340 |
(purge_directory): Use is_dumpdir |
| 9341 |
* src/list.c (list_archive): Use is_dumpdir |
| 9342 |
Do not wrap skip_member in mv_begin/mv_end, the function itself |
| 9343 |
takes care of it. |
| 9344 |
(decode_header): Set stat_info->is_dumpdir |
| 9345 |
(skip_member): Do nothing if skipped is true |
| 9346 |
* src/tar.h (struct tar_stat_info): New members is_dumpdir and skipped. |
| 9347 |
|
| 9348 |
2006-01-22 Sergey Poznyakoff <[email protected]> |
| 9349 |
|
| 9350 |
* src/tar.c (decode_options): Refuse using --delete with |
| 9351 |
compression options. |
| 9352 |
|
| 9353 |
2006-01-18 Sergey Poznyakoff <[email protected]> |
| 9354 |
|
| 9355 |
* NEWS: Updated. |
| 9356 |
* configure.ac (DEFAULT_QUOTING_STYLE): New configuration variable |
| 9357 |
* doc/tar.texi: Initial documentation for --quoting-style, |
| 9358 |
--quote-chars and --no-quote-chars option. |
| 9359 |
* src/tar.c: Implement new options --quoting-style, --quote-chars |
| 9360 |
and --no-quote-chars. |
| 9361 |
|
| 9362 |
2006-01-09 Paul Eggert <[email protected]> |
| 9363 |
|
| 9364 |
* bootstrap: Default to pserver, and switch to cvs.sv.gnu.org, |
| 9365 |
to accommodate recent changes to the GNU CVS server. |
| 9366 |
* lib/.cvsignore: Add argp-pin.c, mkdirat.c, openat-priv.h. |
| 9367 |
|
| 9368 |
2005-12-14 Sergey Poznyakoff <[email protected]> |
| 9369 |
|
| 9370 |
* src/names.c (name_scan): Take an additional argument requesting |
| 9371 |
exact matching. |
| 9372 |
* src/common.h (name_scan): Change prototype. |
| 9373 |
* src/delete.c, src/incremen.c, src/update.c: Update invocations |
| 9374 |
of name_scan. |
| 9375 |
|
| 9376 |
2005-12-13 Sergey Poznyakoff <[email protected]> |
| 9377 |
|
| 9378 |
* src/common.h (struct name): New member `explicit'. Remove unused |
| 9379 |
member `isdir'. |
| 9380 |
* src/incremen.c (procdir): If name_scan() returns something, |
| 9381 |
check if it was explicitly given in the command line |
| 9382 |
* src/names.c (addname,add_hierarchy_to_namelist): Initialize |
| 9383 |
explicit member appropriately. |
| 9384 |
|
| 9385 |
* src/incremen.c (procdir): If --one-file-system is given and a |
| 9386 |
directory is found to be on another device, *and* this directory |
| 9387 |
is explicitly given in the command line, then do not omit it. |
| 9388 |
|
| 9389 |
2005-12-11 Sergey Poznyakoff <[email protected]> |
| 9390 |
|
| 9391 |
* NEWS: Update |
| 9392 |
* doc/tar.texi: Document --delay-directory-restore option. |
| 9393 |
(Configuring Help Summary): Document usage of ARGP_HELP_FMT |
| 9394 |
variable to customize help output. |
| 9395 |
* src/common.h (delay_directory_restore_option): New global. |
| 9396 |
* src/extract.c (directories_first): Replaced by |
| 9397 |
delay_directory_restore_option. All uses changed. |
| 9398 |
* src/tar.c (options,parse_opt): New options |
| 9399 |
--delay-directory-restore and --no-delay-directory-restore |
| 9400 |
|
| 9401 |
2005-12-09 Sergey Poznyakoff <[email protected]> |
| 9402 |
|
| 9403 |
* src/buffer.c (open_archive): Add default case to shut up gcc. |
| 9404 |
* src/common.h (set_file_atime): Add prototype. |
| 9405 |
* src/create.c (to_chars_subst): Remove unused variable |
| 9406 |
Make sure useful result code is returned. |
| 9407 |
* src/incremen.c (read_directory_file): Fix format string |
| 9408 |
Thanks Eric Blake for reporting. |
| 9409 |
|
| 9410 |
2005-12-08 Sergey Poznyakoff <[email protected]> |
| 9411 |
|
| 9412 |
* doc/tar.texi (Current status): Renamed to 'Changes' and moved to |
| 9413 |
appendices. |
| 9414 |
(Large or Negative Values): Rewritten |
| 9415 |
* src/common.h (gid_to_chars, major_to_chars, minor_to_chars) |
| 9416 |
(mode_to_chars, off_to_chars, size_to_chars, time_to_chars) |
| 9417 |
(uid_to_chars, uintmax_to_chars): Return bool |
| 9418 |
* src/create.c (gid_to_chars, major_to_chars, minor_to_chars) |
| 9419 |
(mode_to_chars, off_to_chars, size_to_chars, time_to_chars) |
| 9420 |
(uid_to_chars, uintmax_to_chars): Return bool |
| 9421 |
(to_chars): Return bool |
| 9422 |
(start_header): Check return values of conversion routines. Fail |
| 9423 |
if unable to store data in the header. |
| 9424 |
|
| 9425 |
2005-12-07 Sergey Poznyakoff <[email protected]> |
| 9426 |
|
| 9427 |
* doc/tar.texi: Following the discussion with Karl Berry, |
| 9428 |
discontinue using @value{} substitutions for Texinfo commands. |
| 9429 |
Properly index all long options. Print a |
| 9430 |
separate long option index. |
| 9431 |
* doc/value.texi: Remove @set's |
| 9432 |
|
| 9433 |
* doc/tar.texi: Update --info-script documentation |
| 9434 |
Resolve some more FIXMEs. |
| 9435 |
* scripts/dump-remind.in: Use TAR_VOLUME instead of reading volno |
| 9436 |
file. |
| 9437 |
* src/buffer.c (new_volume): Update invocation |
| 9438 |
(change_tape_menu): New function. Disable '!' command if given |
| 9439 |
--restrict option. |
| 9440 |
* src/common.h (sys_exec_info_script): Update declaration |
| 9441 |
(restrict_option): New global |
| 9442 |
* src/system.c (sys_exec_info_script): The script can supply new |
| 9443 |
archive name to use by writing it to file descriptor 3. |
| 9444 |
* src/tar.c (options): Add --restrict option. Use macros for |
| 9445 |
option grouping. |
| 9446 |
(license): Print full list of copyright years |
| 9447 |
* NEWS: Update |
| 9448 |
|
| 9449 |
2005-12-06 Eric Blake <[email protected]> (trivial changes) |
| 9450 |
|
| 9451 |
* configure.ac (DENSITY_LETTER): Fix m4 overquoting. |
| 9452 |
* .cvsignore: Ignore .bootstrap. |
| 9453 |
|
| 9454 |
2005-12-06 Sergey Poznyakoff <[email protected]> |
| 9455 |
|
| 9456 |
* doc/tar.texi: Document --to-command and --info-script |
| 9457 |
options. Add missing xrefs. |
| 9458 |
* src/buffer.c (new_volume): Use sys_exec_info_script() instead of |
| 9459 |
system(). |
| 9460 |
* src/common.h (archive_format_string,subcommand_string) |
| 9461 |
(sys_exec_info_script): New prototypes. |
| 9462 |
* src/system.c (sys_exec_info_script): New function. |
| 9463 |
* src/tar.c (archive_format_string): Remove static qualifier. |
| 9464 |
(subcommand_string): New function. |
| 9465 |
|
| 9466 |
2005-12-01 Sergey Poznyakoff <[email protected]> |
| 9467 |
|
| 9468 |
* src/extract.c: Fix restoring of directory timestamps from |
| 9469 |
incremental archives. |
| 9470 |
(directories_first): New variable. |
| 9471 |
(prepare_to_extract): Set directories_first |
| 9472 |
(extract_archive): Call apply_nonancestor_delayed_set_stat() only |
| 9473 |
if not extracting from an incremental archive |
| 9474 |
(extract_dir): Obtain root_device here, to make sure it works |
| 9475 |
correctly with -C. |
| 9476 |
|
| 9477 |
* src/incremen.c (purge_directory): Skip the member and return if |
| 9478 |
the archive is not in incremental format. |
| 9479 |
* tests/incr02.at: New testcase |
| 9480 |
* tests/Makefile.am: Add incr02.at |
| 9481 |
* tests/testsuite.at: Likewise |
| 9482 |
|
| 9483 |
* THANKS: Add Guerkan Karaman. |
| 9484 |
* NEWS: Update |
| 9485 |
|
| 9486 |
2005-11-30 Paul Eggert <[email protected]> |
| 9487 |
|
| 9488 |
* doc/tar.texi (Option Summary): Rewrite the |
| 9489 |
--atime-preserve=system description in response to Ian Turner's |
| 9490 |
proposed patch. |
| 9491 |
|
| 9492 |
2005-11-30 Ian Turner <[email protected]> |
| 9493 |
|
| 9494 |
* doc/tar.texi (Extracting Specific Files): Remove obsolescent |
| 9495 |
FIXME. |
| 9496 |
|
| 9497 |
2005-11-29 Paul Eggert <[email protected]> |
| 9498 |
|
| 9499 |
* NEWS: New option --atime-preserve=system, which uses O_NOATIME. |
| 9500 |
* THANKS: Add Ian Turner. |
| 9501 |
|
| 9502 |
* configure.ac: Prefer AC_CHECK_HEADERS_ONCE to AC_CHECK_HEADERS. |
| 9503 |
Check for stropts.h and sys/filio.h too, for _FIOSATIME. |
| 9504 |
* doc/tar.texi: Change "modification time" to "data modification |
| 9505 |
time", "change time" to "status change time", and "filesystem" to |
| 9506 |
"file system", so that we use terminology consistent with POSIX. |
| 9507 |
Use American spacing rather than French for sentence ends. |
| 9508 |
"non-dependable" -> "undependable". |
| 9509 |
(Option Summary, Attributes): Explain better the pitfalls of the |
| 9510 |
--atime-preserve option, and suggest read-only mounts,loopback |
| 9511 |
mounts, and noatime mounts for older systems. |
| 9512 |
* doc/value.texi (op-atime-preserve-system): Renamed from |
| 9513 |
op-atime-preserver-system to fix a misspelling. |
| 9514 |
* src/common.h (enum atime_preserve): Use lower case for enum values. |
| 9515 |
* src/compare.c: Don't include utimens.h; no longer needed. |
| 9516 |
(diff_file): Use set_file_atime rather than utimens; avoid closing |
| 9517 |
diff_handle until after this, so that we can set the file time stamp |
| 9518 |
via the file descriptor rather than via its name. |
| 9519 |
* src/create.c: Don't include utimens.h; no longer needed. |
| 9520 |
(dump_regular_finish): Remove. All callers now do its work inline. |
| 9521 |
(dump_dir): New arg FD. All callers changed. |
| 9522 |
Use fdsavedir rather than savedir. |
| 9523 |
(unknown_file_error): Arg is a const pointer now. |
| 9524 |
(dump_file0): 2nd arg is a const pointer now. |
| 9525 |
Treat directories more like files, with respect to --atime-preserve. |
| 9526 |
For example, also warn if a directory changes while we are dumping it. |
| 9527 |
Prefer file descriptors to file names when retrieving/setting file |
| 9528 |
attributes; this saves path-resolution time and allows us to avoid |
| 9529 |
changing mtime/ctime on Solaris when restoring atime as root. |
| 9530 |
Use O_DIRECTORY when opening directories, to avoid some race conditions. |
| 9531 |
Do not reset atime if mtime has changed. Report an error if |
| 9532 |
we cannot reset atime. |
| 9533 |
|
| 9534 |
* lib/.cvsignore: Add malloc.h, regcomp.c, regex.c, regex.h, |
| 9535 |
regex_internal.c, regex_internal.h, regexc.c; used by rpmatch. |
| 9536 |
|
| 9537 |
2005-11-29 Ian Turner <[email protected]> |
| 9538 |
|
| 9539 |
First cut at adding support for --atime-preserve=system. |
| 9540 |
* doc/tar.texi (Option Summary): First cut at documenting it. |
| 9541 |
All other uses of --atime-preserve changed to --atime-preserve=replace. |
| 9542 |
* doc/value.texi (op-atime-preserve-replace, op-atime-preserver-system): |
| 9543 |
New. |
| 9544 |
(op-atime-preserve): Mention METHOD. |
| 9545 |
* src/common.h (atime_preserve): New enum. |
| 9546 |
(atime_preserve_option): Now of the enum type rather than bool. |
| 9547 |
All uses changed. |
| 9548 |
* src/compare.c (diff_file): Read with O_NOATIME if asked for. |
| 9549 |
* src/create.c (dump_file0): Read regular and CTG files with O_NOATIME |
| 9550 |
if asked for. |
| 9551 |
* src/tar.c (usage): Mention new usage. |
| 9552 |
(parse_opt): Parse new usage. |
| 9553 |
|
| 9554 |
2005-11-29 Paul Eggert <[email protected]> |
| 9555 |
|
| 9556 |
* THANKS: Convert back to UTF-8, sort (using LC_ALL=C on Debian |
| 9557 |
stable), and consistently use tabs rather than spaces. |
| 9558 |
|
| 9559 |
2005-11-27 Sergey Poznyakoff <[email protected]> |
| 9560 |
|
| 9561 |
* src/xheader.c: Remove parts of code prematurely introduced |
| 9562 |
yesterday. Thanks Eric Blake. |
| 9563 |
|
| 9564 |
2005-11-26 Sergey Poznyakoff <[email protected]> |
| 9565 |
|
| 9566 |
* src/xheader.c (xheader_format_name): Fix memory leak. |
| 9567 |
|
| 9568 |
2005-11-11 Sergey Poznyakoff <[email protected]> |
| 9569 |
|
| 9570 |
* gnulib.modules: Add rpmatch |
| 9571 |
* lib/stdopen.h, lib/stdopen.c: New file. Imported from coreutils. |
| 9572 |
* lib/Makefile.tmpl: Add stdopen.h, stdopen.c |
| 9573 |
* po/POTFILES.in: Add rpmatch.c |
| 9574 |
* src/tar.c (confirm): Rewritten using rpmatch. |
| 9575 |
(decode_options): Minor optimizations |
| 9576 |
(main): Call stdopen() to ensure the first three descriptors are |
| 9577 |
open. |
| 9578 |
|
| 9579 |
* tests/multiv01.at, tests/multiv02.at, tests/multiv03.at, |
| 9580 |
tests/multiv04.at, tests/sparsemv.at, tests/sparsemvp.at, |
| 9581 |
tests/star/multi-fail.at: Close stdin so that if something fails |
| 9582 |
causing tar to ask for the next volume, it won't hang the |
| 9583 |
testsuite. |
| 9584 |
|
| 9585 |
* src/buffer.c (flush_write,flush_read): Change data type. |
| 9586 |
(flush_archive): Compute actual buffer fill level before calling |
| 9587 |
low level function. |
| 9588 |
(close_archive): Call flush_archive again if the first call |
| 9589 |
resulted in partially filled buffer. |
| 9590 |
(try_new_volume): Rewritten handling of initial headers. |
| 9591 |
(add_chunk_header): New function. Write an additional header |
| 9592 |
before the continuation chunk. The purpose of the header is to |
| 9593 |
allow third-party tars to extract the member. |
| 9594 |
(simple_flush_write): Take an argument. |
| 9595 |
(_gnu_flush_write): Correctly handle partially filled buffers. |
| 9596 |
* src/common.h (flush_read,flush_write): Functions, again. |
| 9597 |
(write_extended): Changed declaration |
| 9598 |
(xheader_format_name): New declaration |
| 9599 |
* src/create.c (write_extended): Change type and meaning of |
| 9600 |
the first argument. All callers updated |
| 9601 |
* src/xheader.c (xheader_format_name): Remove static |
| 9602 |
qualifier. Change last argument. |
| 9603 |
Correct buffer size calculation (allocated too much space). |
| 9604 |
(xheader_write): Increase global_header_count here ... |
| 9605 |
(xheader_write_global): ... instead of here |
| 9606 |
|
| 9607 |
* tests/testsuite.at (AT_TAR_CHECK): Define TEST_TAR_FORMAT |
| 9608 |
* tests/multiv01.at: Update |
| 9609 |
* tests/multiv02.at: Update |
| 9610 |
* tests/multiv03.at: Update |
| 9611 |
* tests/sparsemvp.at: Update |
| 9612 |
* tests/star/multi-fail.at: Update |
| 9613 |
|
| 9614 |
* scripts/tarcat: Handle archives in pax format. Improve handling |
| 9615 |
of traditional archives. |
| 9616 |
* doc/tar.texi (Tarcat): New node |
| 9617 |
|
| 9618 |
2005-11-10 Sergey Poznyakoff <[email protected]> |
| 9619 |
|
| 9620 |
Fix splitting of sparse files between the volumes. |
| 9621 |
|
| 9622 |
* src/buffer.c (try_new_volume): Bugfix. Always check |
| 9623 |
continued_file_name. If it is absent, the volume is out |
| 9624 |
of sync. |
| 9625 |
(add_multi_volume_header): Create GNU.volume.filename keyword in |
| 9626 |
the extended header. |
| 9627 |
* src/sparse.c (sparse_dump_region): Call mv_size_left. |
| 9628 |
(sparse_dump_file): Enclose the loop in mv_begin/mv_end. |
| 9629 |
* src/system.c: Do not pad compressed output if it goes to |
| 9630 |
stdout. |
| 9631 |
* src/xheader.c (xhdr_tab): New keyword GNU.volume.filename. |
| 9632 |
|
| 9633 |
* tests/sparsemv.at: New testcase |
| 9634 |
* tests/sparsemvp.at: New testcase |
| 9635 |
* tests/Makefile.am: Add sparsemv.at and sparsemvp.at. |
| 9636 |
* tests/testsuite.at: Likewise. |
| 9637 |
|
| 9638 |
2005-11-09 Sergey Poznyakoff <[email protected]> |
| 9639 |
|
| 9640 |
* src/buffer.c: Rewritten in a more modular fashion to provide |
| 9641 |
GNU extensions (multi-volume archives and archive labels) in |
| 9642 |
pax format. |
| 9643 |
NOTICE, that some of the aspects (e.g. splitting the archive |
| 9644 |
on the extended header boundary) are still not solved, others |
| 9645 |
(splitting a sparse file between the volume) require additional |
| 9646 |
testing. Wait for the next commit. |
| 9647 |
|
| 9648 |
(volume_label,continued_file_name,continued_file_size) |
| 9649 |
(continued_file_offset): New globals. |
| 9650 |
(save_name,save_totsize,save_sizeleft): Make static |
| 9651 |
(mv_begin,mv_end,mv_total_size,mv_size_left): New functions |
| 9652 |
(open_archive,flush_write,flush_read): Rewritten |
| 9653 |
|
| 9654 |
* src/common.h (save_name,save_sizeleft,save_totsize): Remove |
| 9655 |
globals. |
| 9656 |
(volume_label,continued_file_name,continued_file_size): New |
| 9657 |
variables. |
| 9658 |
(flush_read,flush_write): Pointers to functions |
| 9659 |
(mv_begin,mv_end,mv_total_size,mv_size_left): New functions |
| 9660 |
(write_extended): New function. |
| 9661 |
|
| 9662 |
* src/compare.c, src/create.c, src/extract.c, src/incremen.c, |
| 9663 |
src/list.c: Use mv_.* functions uniformly instead of fiddling |
| 9664 |
with the global variables. |
| 9665 |
* src/sparse.c: Use mv_.* functions where necessary. |
| 9666 |
* src/tar.c (decode_options): Allow to use --multi-volume and |
| 9667 |
--label with pax archives. |
| 9668 |
* src/xheader.c (xhdr_tab): Support for new GNU keywords. |
| 9669 |
|
| 9670 |
* tests/delete01.at, tests/delete02.at, tests/delete03.at, |
| 9671 |
tests/delete04.at, tests/delete05.at, tests/extrac01.at, |
| 9672 |
tests/extrac02.at, tests/extrac03.at, tests/extrac04.at, |
| 9673 |
tests/extrac05.at, tests/incr01.at, tests/incremental.at, |
| 9674 |
tests/listed01.at, tests/listed02.at, tests/long01.at, |
| 9675 |
tests/longv7.at, tests/multiv01.at, tests/multiv02.at, |
| 9676 |
tests/multiv03.at, tests/multiv04.at, tests/options.at, |
| 9677 |
tests/options02.at, tests/same-order01.at, tests/same-order02.at, |
| 9678 |
tests/sparse01.at, tests/sparse02.at, tests/sparse03.at, |
| 9679 |
tests/star/multi-fail.at (AT_KEYWORDS): Improve to allow execution |
| 9680 |
of related tests in groups. |
| 9681 |
|
| 9682 |
* doc/tar.texi: Update |
| 9683 |
|
| 9684 |
2005-11-07 Paul Eggert <[email protected]> |
| 9685 |
|
| 9686 |
* src/xheader.c (struct xhdr_tab.coder): Last arg is void const *, |
| 9687 |
not void *, to avoid create.c warning from GCC "passing argument 3 |
| 9688 |
of 'xheader_store' discards qualifiers from pointer target type". |
| 9689 |
(dummy_coder, atime_coder, gid_coder, gname_coder, linkpath_coder): |
| 9690 |
(ctime_coder, mtime_coder, path_coder, size_coder, uid_coder): |
| 9691 |
(uname_coder, sparse_size_coder, sparse_numblocks_coder): |
| 9692 |
(sparse_offset_coder, sparse_numbytes_coder, dumpdir_coder): |
| 9693 |
(xheader_store): Likewise. |
| 9694 |
* src/common.h (xheader_store): Likewise. |
| 9695 |
|
| 9696 |
2005-11-07 Sergey Poznyakoff <[email protected]> |
| 9697 |
and Paul Eggert <[email protected]> |
| 9698 |
|
| 9699 |
* src/tar.c (NS_PRECISION_FORMAT_MASK): New macro. |
| 9700 |
(tar_timespec_cmp): New function. Wrapper over |
| 9701 |
timespec_cmp using the timespec precision provided by the |
| 9702 |
current archive format. |
| 9703 |
* src/common.h (tar_timespec_cmp): New declaration. |
| 9704 |
* src/compare.c (diff_file): Use tar_timespec_cmp. |
| 9705 |
* src/extract.c (file_newer_p): Likewise. |
| 9706 |
* src/update.c (update_archive): Likewise. |
| 9707 |
* tests/truncate.at: Reverted changes |
| 9708 |
* tests/update.at: Reverted changes |
| 9709 |
|
| 9710 |
2005-11-07 Sergey Poznyakoff <[email protected]> |
| 9711 |
|
| 9712 |
Support for incremental formats in pax archives. |
| 9713 |
Fixed POSIX compatibility of `sparse' extended header keywords. |
| 9714 |
|
| 9715 |
* src/common.h (dumpdir_size,get_gnu_dumpdir) |
| 9716 |
(xheader_string_begin,xheader_string_add) |
| 9717 |
(xheader_string_end): New functions. |
| 9718 |
* src/create.c (dump_dir0): Handle incremental backups in pax |
| 9719 |
archives. |
| 9720 |
* src/incremen.c (dumpdir_size, get_gnu_dumpdir): New functions. |
| 9721 |
(purge_directory): Use stat_info.dumpdir instead of getting its |
| 9722 |
value explicitly. |
| 9723 |
* src/list.c (list_archive): Handle incremental backups in pax |
| 9724 |
format. |
| 9725 |
(decode_header): Initialize stat_info.dumpdir |
| 9726 |
* src/sparse.c (sparse_diff_file): Bugfix: set seekable. |
| 9727 |
(pax_dump_header): Store sparse map in GNU.sparse.map. If this |
| 9728 |
variable has been explicitly deleted, use GNU.sparse.offset/ |
| 9729 |
GNU.sparse.numbytes variables. |
| 9730 |
* src/tar.c (decode_options): Incremental options are allowed with |
| 9731 |
--format=pax |
| 9732 |
(tar_stat_destroy): Free dumpdir |
| 9733 |
* src/tar.h (struct tar_stat_info.dumpdir): New member. |
| 9734 |
* src/xheader.c (xheader_keyword_deleted_p): Remove static |
| 9735 |
qualifier. |
| 9736 |
(struct xhdr_tab.decoder): Change prototype. POSIX allows string |
| 9737 |
values to contain embedded nulls, so take an extra argument |
| 9738 |
specifying the length of the string. |
| 9739 |
(decx,decg,dummy_decoder,atime_decoder,gid_decoder) |
| 9740 |
(gname_decoder,linkpath_decoder,ctime_decoder,mtime_decoder) |
| 9741 |
(path_decoder,size_decoder,uid_decoder,uname_decoder) |
| 9742 |
(sparse_size_decoder,sparse_numblocks_decoder) |
| 9743 |
(sparse_offset_decoder,sparse_numbytes_decoder): Likewise. |
| 9744 |
(decode_record): Pass value length to the handler |
| 9745 |
(run_override_list): Pass value length to the decoder |
| 9746 |
(xheader_print_n): New function |
| 9747 |
(xheader_print): Rewritten using xheader_print_n |
| 9748 |
(xheader_finish): Do not rely om strlen to compute the length of |
| 9749 |
the collected string: it can contain embedded nulls |
| 9750 |
(xheader_string_begin,xheader_string_add,xheader_string_end): New |
| 9751 |
functions. |
| 9752 |
(sparse_map_decoder,dumpdir_coder,dumpdir_decoder): New |
| 9753 |
functions. Handle GNU.sparse.map and GNU.dumpdir variables. |
| 9754 |
(xhdr_tab): Add new variables. |
| 9755 |
|
| 9756 |
* tests/incr01.at: Test gnu, oldgnu, and posix formats |
| 9757 |
* tests/incremental.at: Likewise |
| 9758 |
|
| 9759 |
2005-11-06 Paul Eggert <[email protected]> |
| 9760 |
|
| 9761 |
* NEWS: Minor language and white space fixes. |
| 9762 |
|
| 9763 |
* tests/truncate.at: Create files whose time stamps must fall on |
| 9764 |
1-second boundaries. This prevents tests from failing on hosts |
| 9765 |
like Solaris 8 that have nanosecond-resolution file time stamps. |
| 9766 |
* tests/update.at: Likewise. |
| 9767 |
|
| 9768 |
* src/xheader.c (strtoimax, strtoumax): Remove decls; now done |
| 9769 |
in system.h. |
| 9770 |
|
| 9771 |
2005-11-06 Sergey Poznyakoff <[email protected]> |
| 9772 |
|
| 9773 |
* doc/tar.texi: Properly document incremental dumps |
| 9774 |
* doc/value.texi: Likewise. |
| 9775 |
* doc/snapshot.texi: Likewise. |
| 9776 |
|
| 9777 |
2005-11-05 Sergey Poznyakoff <[email protected]> |
| 9778 |
|
| 9779 |
Improve listed incremental format: |
| 9780 |
|
| 9781 |
* src/common.h (update_parent_directory): New prototype. |
| 9782 |
* src/create.c (dump_file): Call update_parent_directory. |
| 9783 |
* src/incremen.c (struct directory.mtime): New member. |
| 9784 |
(note_directory): Take additional arguments. All callers updated. |
| 9785 |
(scan_directory): Updated to use more metadata. In particular, |
| 9786 |
this allows to correctly detect renamed files. |
| 9787 |
(read_directory_file,write_directory_file) |
| 9788 |
(write_directory_file_entry): Support new directory file format. |
| 9789 |
* tests/listed01.at: Sleep 1 sec before creating second file. |
| 9790 |
* tests/listed02.at: Never skip the test. It should work on any |
| 9791 |
filesystem. |
| 9792 |
|
| 9793 |
* doc/snapshot.texi: New file |
| 9794 |
* doc/tar.texi: Update. |
| 9795 |
* doc/Makefile.am: Update. |
| 9796 |
|
| 9797 |
2005-11-04 Paul Eggert <[email protected]> |
| 9798 |
|
| 9799 |
* src/extract.c (set_stat): Rewrite to avoid bug in Forte |
| 9800 |
Developer 7 C 5.4 Patch 111708-09 (2004-02-19). |
| 9801 |
|
| 9802 |
2005-11-04 Sergey Poznyakoff <[email protected]> |
| 9803 |
|
| 9804 |
* bootstrap: Fix quoting in help output. |
| 9805 |
(update_po): Use backward-compatible wget option --cache instead |
| 9806 |
of deprecated -C to accommodate for wget 1.10. |
| 9807 |
Changes proposed by Eric Blake |
| 9808 |
* THANKS: Add Eric Blake |
| 9809 |
|
| 9810 |
2005-11-02 Paul Eggert <[email protected]> |
| 9811 |
|
| 9812 |
* doc/tar.texi: Consistently put two spaces after sentences, |
| 9813 |
and put commas after "i.e." and "e.g.". This is the usual GNU |
| 9814 |
style in manuals. |
| 9815 |
|
| 9816 |
* lib/.cvsignore: Add creat-safer.c, fcntl--.h, fcntl-safer.h, |
| 9817 |
open-safer.c, openat-die.c, verify.h, to accommodate recent gnulib |
| 9818 |
changes. |
| 9819 |
|
| 9820 |
2005-10-27 Sergey Poznyakoff <[email protected]> |
| 9821 |
|
| 9822 |
* src/compare.c (diff_dumpdir): Pass a valid device number to |
| 9823 |
get_directory_contents. |
| 9824 |
|
| 9825 |
* THANKS: Add John Thomas McDole |
| 9826 |
|
| 9827 |
* bootstrap: If file `.bootstrap' exists in the cwd and is |
| 9828 |
readable, prepend its contents to the command line |
| 9829 |
|
| 9830 |
2005-10-21 Sergey Poznyakoff <[email protected]> |
| 9831 |
|
| 9832 |
* tests/link01.at: Skip test if ln fails (suppose the OS does |
| 9833 |
not support hard links). |
| 9834 |
|
| 9835 |
2005-10-04 Sergey Poznyakoff <[email protected]> |
| 9836 |
|
| 9837 |
* src/tar.c (decode_options): Report error if -A or -r is used |
| 9838 |
together with compression option. |
| 9839 |
|
| 9840 |
2005-09-29 Sergey Poznyakoff <[email protected]> |
| 9841 |
|
| 9842 |
* doc/tar.texi: Use @option and @kbd consistently. |
| 9843 |
Document new options. |
| 9844 |
|
| 9845 |
2005-09-28 Sergey Poznyakoff <[email protected]> |
| 9846 |
|
| 9847 |
* NEWS: Updated |
| 9848 |
* src/common.h (show_stored_names_option): New variable |
| 9849 |
* src/list.c (print_header): If show_stored_names_option is given, |
| 9850 |
list member names as stored in the archive. Patch proposed by Erik |
| 9851 |
Cumps <[email protected]> |
| 9852 |
* src/tar.c: Implement --show-stored-names option |
| 9853 |
|
| 9854 |
* src/common.h (test_label_option): New variable; |
| 9855 |
* src/list.c (print_header): Special handling if test_label_option |
| 9856 |
is set. |
| 9857 |
* src/names.c (all_names_found): If test_label_option is set |
| 9858 |
return true. |
| 9859 |
* src/tar.c: New option --test-label tests the archive volume |
| 9860 |
label. The option proposed by Wouter Verhelst <[email protected]> |
| 9861 |
|
| 9862 |
2005-09-21 Paul Eggert <[email protected]> |
| 9863 |
|
| 9864 |
* tests/Makefile.am (clean-local): Don't attempt to run |
| 9865 |
$(TESTSUITE) if it doesn't exist. Problem reported by |
| 9866 |
Eric Blake. |
| 9867 |
|
| 9868 |
2005-09-16 Paul Eggert <[email protected]> |
| 9869 |
|
| 9870 |
Don't filter time stamps through the resolution supported |
| 9871 |
by struct stat; keep them to full nanosecond resolution. |
| 9872 |
This affects behavior only on older hosts or file systems |
| 9873 |
that have lower-resolution time stamps. |
| 9874 |
* src/common.h (OLDER_STAT_TIME): Parenthesize arg. |
| 9875 |
(OLDER_TAR_STAT_TIME): New macro. |
| 9876 |
(code_timespec): New function. |
| 9877 |
(BILLION, LOG10_BILLION, TIMESPEC_STRSIZE_BOUND): New constants. |
| 9878 |
* src/compare.c (diff_file): Use full time stamp resolution. |
| 9879 |
* src/create.c (start_header, dump_file0): Likewise. |
| 9880 |
(start_header, dump_file0): Adjust to new structure layout. |
| 9881 |
(dump_regular_finish): Simplify by using timespec_cmp. |
| 9882 |
* src/extract.c (struct delayed_set_stat): Don't store stat info |
| 9883 |
that we don't need, to save space. All uses changed. |
| 9884 |
(struct delayed_set_stat, struct delayed_link, file_newer_p): |
| 9885 |
(create_placeholder_file, extract_link, apply_delayed_links): |
| 9886 |
Use full time stamp resolution. |
| 9887 |
(check_time): Use code_timespec rather than rolling our own code. |
| 9888 |
(set_stat, delay_set_stat): Arg now points to tar_stat_info to |
| 9889 |
avoid losing time information. All callers changed. |
| 9890 |
* src/list.c (read_and, decode_header, print_heaeder): |
| 9891 |
Use full time stamp resolution. |
| 9892 |
* src/misc.c (code_timespec): New function. |
| 9893 |
* src/tar.h (struct tar_stat_info): Record atime, mtime, ctime |
| 9894 |
separately, for benefit of hosts with lower resolution. |
| 9895 |
* src/update.c (update_archive): Use full time stamp resolution. |
| 9896 |
* src/xheader.c (code_time): Use new code_timespec function |
| 9897 |
to simplify code. |
| 9898 |
(atime_coder, atime_decoder, ctime_coder, ctime_decoder): |
| 9899 |
(mtime_coder, mtime_decoder): Use full time stamp resolution. |
| 9900 |
|
| 9901 |
Report time stamps to full resolution in environment. |
| 9902 |
Report memory allocation failures rather than ignoring them. |
| 9903 |
* src/system.c (time_to_env): New function. |
| 9904 |
(oct_to_env, str_to_env, chr_to_env): Report memory allocation failures. |
| 9905 |
(stat_to_env): Report full resolution in time stamps. |
| 9906 |
|
| 9907 |
2005-09-16 Paul Eggert <[email protected]> |
| 9908 |
|
| 9909 |
Merge changes from gnulib for file system sub-second time stamps. |
| 9910 |
* configure.ac: Remove checks for struct stat.st_spare1, struct |
| 9911 |
stat.st_atim.tv_nsec, struct stat.st_atimespec.tv_nsec, struct |
| 9912 |
stat.st_atimensec, as gnulib now does this for us. |
| 9913 |
Similarly for LIB_CLOCK_GETTIME. |
| 9914 |
* gnulib.modules: Add stat-time. |
| 9915 |
* lib/.cvsignore: Add stat-time.h. |
| 9916 |
* src/common.h: Include stat-time.h. |
| 9917 |
(timespec_lt): Remove. All callers changed to use timespec_cmp. |
| 9918 |
(get_stat_atime, get_stat_ctime, get_stat_mtime): |
| 9919 |
(set_stat_atime, set_stat_ctime, set_stat_mtime): |
| 9920 |
Remove; now defined by stat-time.h. |
| 9921 |
|
| 9922 |
2005-09-14 Sergey Poznyakoff <[email protected]> |
| 9923 |
|
| 9924 |
* src/incremen.c (list_dumpdir): New function. Used to dump |
| 9925 |
contents of GNUTYPE_DUMPDIR blocks. |
| 9926 |
* src/common.h (list_dumpdir): Likewise. |
| 9927 |
* src/list.c (list_archive): Use list_dumpdir() to display |
| 9928 |
GNUTYPE_DUMPDIR blocks. Do that only if two or more -v options are |
| 9929 |
given. |
| 9930 |
|
| 9931 |
2005-09-12 Paul Eggert <[email protected]> |
| 9932 |
|
| 9933 |
* lib/.cvsignore: Adjust to current gnulib and modules used. |
| 9934 |
Add getdelim.c, getdelim.h, mbchar.c, mbchar.h, mbuiter.h, memchr.c, |
| 9935 |
pipe-safer.c, size_max.h, strdup.c, strdup.h, strnlen.h, strnlen1.c, |
| 9936 |
strnlen1.h, unistd--.h. |
| 9937 |
Remove getndelim2.c, getndelim2.h, pathmax.h, sysexits.h, xstrdup.c. |
| 9938 |
|
| 9939 |
Treat fishy-looking hard links like fishy-looking symlinks. |
| 9940 |
* src/extract.c (struct delayed_set_stat): Rename after_symlinks |
| 9941 |
member to after_links. All uses changed. |
| 9942 |
(struct delayed_link): Renamed from struct delayed_symlink. |
| 9943 |
All uses changed. New member is_symlink. |
| 9944 |
(delayed_link_head): Renamed from delayed_symlink_head. All uses |
| 9945 |
changed. |
| 9946 |
(create_placeholder_file): New function, taken from extract_symlink. |
| 9947 |
(extract_link): Create placeholders for fishy-looking hard links. |
| 9948 |
(extract_symlink): Move code into create_placeholder_file. |
| 9949 |
(apply_delayed_links): Renamed from apply_delayed_symlinks. |
| 9950 |
All uses changed. Create both hard links and symlinks. |
| 9951 |
|
| 9952 |
2005-09-03 Paul Eggert <[email protected]> |
| 9953 |
|
| 9954 |
* README-alpha: Modernize description of software required for |
| 9955 |
developers. |
| 9956 |
|
| 9957 |
2005-09-03 Sergey Poznyakoff <[email protected]> |
| 9958 |
|
| 9959 |
* gnulib.modules: Add strdup |
| 9960 |
* src/incremen.c (purge_directory): Do not dereference symbolic |
| 9961 |
links. Bug reported by Ralph Corderoy <[email protected]> and |
| 9962 |
David Brown <[email protected]> |
| 9963 |
* tests/incr01.at: New test. |
| 9964 |
* tests/Makefile.am: Add incr01.at |
| 9965 |
* tests/testsuite.at: Likewise |
| 9966 |
* THANKS: Updated |
| 9967 |
|
| 9968 |
2005-08-17 Sergey Poznyakoff <[email protected]> |
| 9969 |
|
| 9970 |
* src/incremen.c (read_directory_file): Use strtoumax to read |
| 9971 |
snapshot file contents. |
| 9972 |
(write_directory_file_entry): Use umaxtostr(). |
| 9973 |
|
| 9974 |
2005-07-31 Sergey Poznyakoff <[email protected]> |
| 9975 |
|
| 9976 |
* src/create.c (file_dumpable_p,dump_file0): Fix handling of |
| 9977 |
sparse files to /dev/null with --totals option. |
| 9978 |
* tests/update.at: Remove dependency on file order. |
| 9979 |
|
| 9980 |
2005-07-08 Sergey Poznyakoff <[email protected]> |
| 9981 |
|
| 9982 |
* doc/tar.texi: Fix typo. |
| 9983 |
|
| 9984 |
2005-07-07 Sergey Poznyakoff <[email protected]> |
| 9985 |
|
| 9986 |
* tests/pipe.at: Pipe the output from `tar xfv' through sort. |
| 9987 |
|
| 9988 |
2005-06-25 Sergey Poznyakoff <[email protected]> |
| 9989 |
|
| 9990 |
* src/sparse.c (tar_sparse_init): Fill structure with zeros. Call |
| 9991 |
sparse_select_optab(). All callers updated. |
| 9992 |
(sparse_member_p, sparse_fixup_header): Use tar_sparse_init(). |
| 9993 |
|
| 9994 |
2005-06-23 Sergey Poznyakoff <[email protected]> |
| 9995 |
|
| 9996 |
* src/sparse.c (pax_sparse_member_p): Checking member size |
| 9997 |
vs. file size is not reliable enough. Use sparse_map_avail. |
| 9998 |
|
| 9999 |
* tests/star/gtarfail.at: Adapt to the new output format |
| 10000 |
* tests/star/gtarfail2.at: Likewise |
| 10001 |
* tests/star/multi-fail.at: Likewise |
| 10002 |
* tests/star/pax-big-10g.at: Likewise |
| 10003 |
* tests/star/ustar-big-2g.at: Likewise |
| 10004 |
* tests/star/ustar-big-8g.at: Likewise |
| 10005 |
|
| 10006 |
* tests/sparse03.at: New test. |
| 10007 |
* tests/Makefile.am: Add sparse03.at |
| 10008 |
* tests/testsuite.at: Likewise |
| 10009 |
|
| 10010 |
* src/xheader.c (size_decoder): Do not set archive_file_size. |
| 10011 |
|
| 10012 |
Fix bugs introduced yesterday: |
| 10013 |
|
| 10014 |
* src/sparse.c (tar_sparse_init): Initialize |
| 10015 |
dimped_size to 0. |
| 10016 |
(sparse_scan_file): Initialize archive_file_size to 0. The |
| 10017 |
variable keeps size of the file *as stored in the archive*, not |
| 10018 |
the size reported by stat. |
| 10019 |
|
| 10020 |
2005-06-22 Paul Eggert <[email protected]> |
| 10021 |
|
| 10022 |
A sweep of the sparse code prompted by a bug report by Jim Meyering. |
| 10023 |
* src/sparse.c: Include <inttostr.h>. |
| 10024 |
(struct tar_sparse_file): offset and dumped_size are off_t, not |
| 10025 |
size_t. optab is now const *. |
| 10026 |
(dump_zeros): Return bool success flag, not off_t. |
| 10027 |
All callers changed. |
| 10028 |
Use a constant-zero buffer rather than clearing a buffer each time. |
| 10029 |
Don't mess up if write fails. |
| 10030 |
(dump_zeros, check_sparse_region): |
| 10031 |
Don't assume off_t is no wider than size_t. |
| 10032 |
(tar_sparse_init): Don't bother clearing a field that is already clear. |
| 10033 |
(zero_block_p): First arg is const *, not *. |
| 10034 |
(clear_block, SPARSES_INIT_COUNT): Remove. |
| 10035 |
(sparse_add_map): First arg is now struct start_stat_info *, not |
| 10036 |
struct tar_sparse_file *. All callers changed. |
| 10037 |
Use x2nrealloc to check for size_t overflow. |
| 10038 |
(parse_scan_file): Cache commonly-used parts of file. |
| 10039 |
Use an auto buffer, not a static one. |
| 10040 |
Don't bother clearing the buffer; not needed. |
| 10041 |
Don't bother clearing items that are already clear. |
| 10042 |
(oldgnu_optab, star_optab, pax_optab): Now const. |
| 10043 |
(sparse_dump_region): Don't bother clearing the buffer before |
| 10044 |
reading into it; just clear the parts that aren't read into. |
| 10045 |
(sparse_dump_file): Clear the whole local variable 'file'. |
| 10046 |
(diff_buffer): Remove; now a local var. |
| 10047 |
(check_sparse_region): Don't bother clearing buffer before |
| 10048 |
reading into it. Don't assume off_t is promoted to long. |
| 10049 |
(oldgnu_get_sparse_info, star_get_sparse_info): |
| 10050 |
Use an auto status, not static. |
| 10051 |
* src/tar.h (struct tar_stat_info): had_trailing_slash is |
| 10052 |
now bool, not int. |
| 10053 |
* src/xheader.c (sparse_offset_coder, sparse_numbytes_coder): |
| 10054 |
Rewrite to avoid cast. |
| 10055 |
(sparse_offset_decoder, sparse_numbytes_decoder): |
| 10056 |
Diagnose excess entries rather than crashing. |
| 10057 |
|
| 10058 |
2005-06-22 Jim Meyering <[email protected]> |
| 10059 |
|
| 10060 |
* src/common.h (timespec_lt): Add a return type: bool. |
| 10061 |
|
| 10062 |
2005-06-21 Paul Eggert <[email protected]> |
| 10063 |
|
| 10064 |
Further improvements inspired by Jim Meyering's fixes. |
| 10065 |
|
| 10066 |
* NEWS: Better support for full-resolution time stamps. |
| 10067 |
The -v option now prints time stamps only to 1-minute resolution. |
| 10068 |
* gnulib.modules: Add utimens. |
| 10069 |
* lib/.cvsignore: Add imaxtostr.c, inttostr.c, inttostr.h, |
| 10070 |
offtostr.c, umaxtostr.c, utimens.c, utimens.h. Remove paxconvert.c. |
| 10071 |
* lib/Makefile.tmpl (libtar_a_SOURCES): Remove paxconvert.c. |
| 10072 |
* lib/paxconvert.c: Remove; superseded by umaxtostr.c. |
| 10073 |
* po/POTFILES.in: Remove lib/paxconvert.c. Add lib/xalloc-die.c, |
| 10074 |
lib/obstack.c. |
| 10075 |
* src/buffer.c (set_start_time, compute_duration, start_time): |
| 10076 |
Use gettime rather than rolling our own code. |
| 10077 |
* src/common.h (OLDGNU_NAME_FIELD_SIZE, MAXOCTAL11, MAXOCTAL7): Remove. |
| 10078 |
(newer_ctime_option): Remove. |
| 10079 |
(timespec_lt): New function. |
| 10080 |
(OLDER_STAT_TIME): Use it. |
| 10081 |
(string_to_chars): First arg is char const *, not char *. |
| 10082 |
(tartime): Time arg is now struct timespec. New bool arg. |
| 10083 |
All callers changed. |
| 10084 |
(code_ns_fraction): New decl. |
| 10085 |
(sys_stat_nanoseconds): Remove decl. |
| 10086 |
(get_stat_atime, get_stat_ctime, get_stat_mtime): New functions. |
| 10087 |
(set_stat_atime, set_stat_ctime, set_stat_mtime): New functions. |
| 10088 |
* src/compare.c: Include utimens.h rather than rolling our own. |
| 10089 |
(diff_dir, diff_file, diff_link, diff_symlink, diff_special): |
| 10090 |
Prototype. |
| 10091 |
(diff_dumpdir, diff_multivol): Prototype. |
| 10092 |
(diff_file): Support higher-resolution time stamps. |
| 10093 |
* src/create.c: Include utimens.h rather than rolling our own. |
| 10094 |
(MAX_OCTAL_VAL): New macro. |
| 10095 |
(tar_copy_str, string_to_chars): Don't bother to zero-fill; |
| 10096 |
the destination is already zeroed. |
| 10097 |
(string_to_chars): First arg is char const *. |
| 10098 |
(start_private_header): Use MINOR_TO_CHARS, not MAJOR_TO_CHARS, |
| 10099 |
for minor device number. |
| 10100 |
(write_header_name, dump_hard_link, dump_file0): |
| 10101 |
Simplify test for old GNU format. |
| 10102 |
(start_header): Put in placeholders for uid, etc., even when |
| 10103 |
using extended headers, for benefit of older "tar" implementations. |
| 10104 |
Don't assume uintmax_t is wider than 32 bits. |
| 10105 |
Output extended header for mtime if needed. |
| 10106 |
(dump_regular_finish, dump_file0): |
| 10107 |
Support extended time stamp resolution. |
| 10108 |
* src/extract.c: Include utimens.h rather than rolling our own. |
| 10109 |
(check_time): Support extended time stamp resolution. |
| 10110 |
* src/list.c: Include <inttostr.h>. |
| 10111 |
(tartime): Use umaxtostr rather than stringify_uintmax_t_backwards. |
| 10112 |
* src/xheader.c: Include <inttostr.h>. |
| 10113 |
Do not include <xstrtol.h>. |
| 10114 |
(strtoimax) [!HAVE_DECL_STRTOIMAX && !defined strtoimax]: New decl. |
| 10115 |
(strtoumax) [!HAVE_DECL_STRTOUMAX && !defined strtoumax]: New decl. |
| 10116 |
(BILLION, LOG10_BILLION): New constants. |
| 10117 |
(to_decimal): Remove; superseded by inttostr. All callers changed |
| 10118 |
to use umaxtostr. |
| 10119 |
(xheader_format_name): Don't assume pids and uintmax_t values |
| 10120 |
fit in 63 bytes (!) when printed. |
| 10121 |
(decode_record): Don't bother to check for ERANGE; an out of range |
| 10122 |
value must be treater than len_max anyway. |
| 10123 |
If the length is out of range, output it in the diagnostic. |
| 10124 |
(format_uintmax): Remove; all callers changed to use umaxtostr. |
| 10125 |
(xheader_print): Don't assume sizes can be printed in 99 bytes (!). |
| 10126 |
(out_of_range_header): New function. |
| 10127 |
(decode_time): Use it. |
| 10128 |
(code_time): Accept struct timespec, not time_t and unsigned long. |
| 10129 |
All callers changed. Size sbuf properly, and remove unnecessary check. |
| 10130 |
Don't assume time stamps can fit in 199 bytes. |
| 10131 |
Handle negative time stamps. Handle fractional time stamps |
| 10132 |
more consistently. Don't output unnecessary trailing zeros. |
| 10133 |
(decode_time): Yield struct timespec, not time_t and unsigned long. |
| 10134 |
All callers changed. |
| 10135 |
Handle negative time stamps. Truncate towards minus infinity |
| 10136 |
consistently. Improve overflow checks, and output a better |
| 10137 |
diagnostic on overflow. |
| 10138 |
(code_num): Don't assume uintmax_t can be printed in 99 bytes (!). |
| 10139 |
(decode_num): New function, for better diagnostics. |
| 10140 |
(atime_coder, atime_decoder, gid_decoder, ctime_coder): |
| 10141 |
(ctime_decoder, mtime_coder, mtime_decoder, size_decoder): |
| 10142 |
(uid_decoder, sparse_size_decoder, sparse_numblocks_decoder): |
| 10143 |
(sparse_offset_decoder, sparse_numbytes_decoder): |
| 10144 |
Use decode_num, etc., instead of xstrtoumax, etc. |
| 10145 |
|
| 10146 |
2005-06-21 Jim Meyering <[email protected]> |
| 10147 |
|
| 10148 |
Carefully crafted invalid headers can cause buffer overrun. |
| 10149 |
Invalid header fields go undiagnosed. |
| 10150 |
Some valid time strings are ignored. |
| 10151 |
|
| 10152 |
* src/xheader.c (sparse_numblocks_decoder): Remove unchecked use |
| 10153 |
of `calloc'. Use xcalloc instead. |
| 10154 |
(decode_time, gid_decoder, size_decoder, uid_decoder): |
| 10155 |
(sparse_size_decoder, sparse_offset_decoder, sparse_numblocks_decoder): |
| 10156 |
Ensure that the result of calling xstrtoumax is no larger than |
| 10157 |
the maximum value for the target type. Upon any failure, exit with |
| 10158 |
a diagnostic. |
| 10159 |
(sparse_numblocks_decoder): Avoid buffer overrun/heap corruption: |
| 10160 |
use x2nrealloc, rather than `n *= 2' and xrealloc(p, n,.... |
| 10161 |
(decode_time): Rewrite to accept time strings like |
| 10162 |
1119018481.000000000. Before, such strings were always ignored. |
| 10163 |
|
| 10164 |
2005-06-13 Sergey Poznyakoff <[email protected]> |
| 10165 |
|
| 10166 |
* src/create.c (dump_file0): Check for is_avoided_name() |
| 10167 |
first. Fixes bug reported by Martin Lohmeier |
| 10168 |
<[email protected]> |
| 10169 |
* tests/update.at: New file |
| 10170 |
* tests/Makefile.am (TESTSUITE_AT): Add update.at |
| 10171 |
* tests/testsuite.at: Likewise |
| 10172 |
|
| 10173 |
2005-06-13 Sergey Poznyakoff <[email protected]> |
| 10174 |
|
| 10175 |
* configure.ac (AC_STRUCT_ST_BLKSIZE) |
| 10176 |
(AC_STRUCT_ST_BLOCKS): Removed. Handled by system.m4. |
| 10177 |
|
| 10178 |
2005-06-02 Paul Eggert <[email protected]> |
| 10179 |
|
| 10180 |
* src/names.c (excluded_name): excluded_filename -> |
| 10181 |
excluded_file_name, because the name was changed in gnulib. |
| 10182 |
|
| 10183 |
2005-05-30 Sergey Poznyakoff <[email protected]> |
| 10184 |
|
| 10185 |
* src/tar.c (read_name_from_file,update_argv): Automatically |
| 10186 |
detect nul-terminated list files. |
| 10187 |
* NEWS: Updated |
| 10188 |
|
| 10189 |
2005-05-27 Sergey Poznyakoff <[email protected]> |
| 10190 |
|
| 10191 |
* scripts/backup.sh.in: Bugfixes. |
| 10192 |
|
| 10193 |
2005-05-26 Sergey Poznyakoff <[email protected]> |
| 10194 |
|
| 10195 |
* scripts/backup.in: Minor fixes |
| 10196 |
* scripts/backup.sh.in (mt_begin,mt_rewind) |
| 10197 |
(mt_offline,mt_status): Use $MT to invoke mt |
| 10198 |
(init_common): Set --rsh-command option for mt if TAPE_FILE is a |
| 10199 |
remote archive. |
| 10200 |
* doc/tar.texi: Document new backup scripts behavior |
| 10201 |
|
| 10202 |
2005-05-22 Sergey Poznyakoff <[email protected]> |
| 10203 |
|
| 10204 |
* lib/.cvsignore: Updated |
| 10205 |
* lib/Makefile.tmpl: Add new paxutils files |
| 10206 |
* po/POTFILES.in: Likewise |
| 10207 |
* src/buffer.c: Update invocations of safer_name_suffix() |
| 10208 |
* src/create.c: Likewise |
| 10209 |
* src/extract.c: Likewise |
| 10210 |
* src/xheader.c: Likewise |
| 10211 |
* src/common.h: Include paxlib.h instead of paxerror.h |
| 10212 |
(safer_name_suffix,removed_prefixes_p): Removed. The functions are |
| 10213 |
imported from paxutils |
| 10214 |
* src/names.c (hash_string_hasher,hash_string_compare) |
| 10215 |
(hash_string_insert,hash_string_lookup,removed_prefixes_p) |
| 10216 |
(safer_name_suffix): Moved to paxutils |
| 10217 |
|
| 10218 |
2005-05-19 Sergey Poznyakoff <[email protected]> |
| 10219 |
|
| 10220 |
* bootstrap (copy_files): Accept optional third argument: a prefix |
| 10221 |
to be appended to destination file names. |
| 10222 |
Import paxutils/paxlib files. |
| 10223 |
* configure.ac: Remove checking for LIB_SETSOCKOPT, it is handled |
| 10224 |
by paxutils. |
| 10225 |
* lib/Makefile.tmpl (libtar_a_SOURCES): Add paxerror.c paxexit.c |
| 10226 |
paxconvert.c |
| 10227 |
* po/POTFILES.in: Likewise. |
| 10228 |
* src/common.h: Remove defines and declarations imported from |
| 10229 |
paxutils |
| 10230 |
* src/misc.c: Likewise |
| 10231 |
* src/list.c (stringify_uintmax_t_backwards): Moved to paxutils |
| 10232 |
|
| 10233 |
2005-05-17 Paul Eggert <[email protected]> |
| 10234 |
|
| 10235 |
* src/misc.c (remove_any_file): Fix typo in previous change. |
| 10236 |
|
| 10237 |
2005-05-14 Paul Eggert <[email protected]> |
| 10238 |
|
| 10239 |
Port to Solaris 10's treatment of unlinking directories. |
| 10240 |
* gnulib-modules: Add unlinkdir. |
| 10241 |
* lib/.cvsignore: Add unlinkdir.h, unlinkdir.c. |
| 10242 |
* src/common.h (we_are_root): Remove extern decl; it's now static. |
| 10243 |
* src/extract.c (we_are_root): Now static. |
| 10244 |
* src/misc.c: Include <unlinkdir.h>. |
| 10245 |
(remove_any_file): Use cannot_unlink_dir () rather than we_are_root. |
| 10246 |
|
| 10247 |
* ChangeLog, ChangeLog.1, Makefile.am, NEWS, PORTS, README, |
| 10248 |
README-alpha, TODO, bootstrap, configure.ac, doc/Makefile.am, |
| 10249 |
doc/convtexi.pl, doc/fdl.texi, doc/gendocs_template, |
| 10250 |
lib/Makefile.tmpl, lib/prepargs.c, lib/waitpid.c, po/POTFILES.in, |
| 10251 |
scripts/Makefile.am, scripts/backup-specs, scripts/backup.in, |
| 10252 |
scripts/backup.sh.in, scripts/restore.in, src/Makefile.am, |
| 10253 |
src/arith.h, src/buffer.c, src/common.h, src/compare.c, |
| 10254 |
src/create.c, src/delete.c, src/extract.c, src/incremen.c, |
| 10255 |
src/list.c, src/mangle.c, src/misc.c, src/names.c, src/sparse.c, |
| 10256 |
src/system.c, src/tar.c, src/tar.h, src/update.c, src/utf8.c, |
| 10257 |
src/xheader.c, tests/Makefile.am, tests/append.at, |
| 10258 |
tests/append01.at, tests/comprec.at, tests/delete01.at, |
| 10259 |
tests/delete02.at, tests/delete03.at, tests/delete04.at, |
| 10260 |
tests/delete05.at, tests/extrac01.at, tests/extrac02.at, |
| 10261 |
tests/extrac03.at, tests/extrac04.at, tests/extrac05.at, |
| 10262 |
tests/gzip.at, tests/ignfail.at, tests/incremental.at, |
| 10263 |
tests/link01.at, tests/listed01.at, tests/listed02.at, |
| 10264 |
tests/long01.at, tests/longv7.at, tests/multiv01.at, |
| 10265 |
tests/multiv02.at, tests/multiv03.at, tests/multiv04.at, |
| 10266 |
tests/old.at, tests/options.at, tests/options02.at, tests/pipe.at, |
| 10267 |
tests/recurse.at, tests/same-order01.at, tests/same-order02.at, |
| 10268 |
tests/shortrec.at, tests/sparse01.at, tests/sparse02.at, |
| 10269 |
tests/testsuite.at, tests/truncate.at, tests/version.at, |
| 10270 |
tests/volume.at, tests/star/gtarfail.at, tests/star/gtarfail2.at, |
| 10271 |
tests/star/multi-fail.at, tests/star/pax-big-10g.at, |
| 10272 |
tests/star/quicktest.sh, tests/star/ustar-big-2g.at, |
| 10273 |
tests/star/ustar-big-8g.at: |
| 10274 |
Update FSF postal mail address. |
| 10275 |
|
| 10276 |
2005-05-12 Sergey Poznyakoff <[email protected]> |
| 10277 |
|
| 10278 |
* NEWS: Updated |
| 10279 |
* THANKS: Updated |
| 10280 |
* bootstrap: Install files from paxutils/doc |
| 10281 |
* doc/Makefile.am (tar_TEXINFOS): Add genfile.texi |
| 10282 |
* doc/tar.texi (Genfile): New appendix |
| 10283 |
* src/compare.c (diff_file): diff_handle was not initialized |
| 10284 |
* src/create.c (dump_regular_file): Correctly pad archive members |
| 10285 |
that shrunk during archiving. Repored by Frank Heckenbach. |
| 10286 |
* src/extract.c (file_newer_p): Return false if file does not |
| 10287 |
exist |
| 10288 |
(prepare_to_extract): Correct warning wording. |
| 10289 |
* tests/truncate.at: New test case |
| 10290 |
* tests/Makefile.am: Add truncate.at |
| 10291 |
* tests/testsuite.at: Likewise. |
| 10292 |
|
| 10293 |
* doc/.cvsignore: Updated |
| 10294 |
* lib/.cvsignore: Updated |
| 10295 |
* tests/.cvsignore: Updated |
| 10296 |
|
| 10297 |
2005-05-02 Paul Eggert <[email protected]> |
| 10298 |
|
| 10299 |
* tests/multivol04.at: Tell awk to read from /dev/null. |
| 10300 |
|
| 10301 |
Adjust to recent gnulib changes. |
| 10302 |
* lib/.cvsignore: Add dup-safer.c, fd-safer.c, unistd-safer.h. |
| 10303 |
* src/common.h (initial_umask): New var. |
| 10304 |
* src/create.c (start_ueader): Use it, and adjust to new modechange |
| 10305 |
API. |
| 10306 |
(hash_link): unsigned -> size_t parameters and result. |
| 10307 |
* src/incremen.c (hash_directory): Likewise. |
| 10308 |
* src/names.c (hash_string_hasher): Likewise. |
| 10309 |
* src/tar.c (parse_opt): Set it, and adjust to new modechange API. |
| 10310 |
|
| 10311 |
2005-04-19 Sergey Poznyakoff <[email protected]> |
| 10312 |
|
| 10313 |
* tests/Makefile.am: Add shortrec.at. |
| 10314 |
|
| 10315 |
2005-04-18 Paul Eggert <[email protected]> |
| 10316 |
|
| 10317 |
* src/buffer.c (reading_from_pipe): Remove. All uses removed. |
| 10318 |
(short_read): Don't warn about short reads; they're normal. |
| 10319 |
* tests/shortrec.at: New file. |
| 10320 |
* tests/testsuite.at: Include it. |
| 10321 |
|
| 10322 |
* bootstrap (gnulib_modules): Don't create a file modlist.tmp, as |
| 10323 |
it is sometimes left behind as a garbage file (maybe due to the |
| 10324 |
multiple traps?). |
| 10325 |
|
| 10326 |
2005-04-14 Sergey Poznyakoff <[email protected]> |
| 10327 |
|
| 10328 |
* src/list.c: Handle Solaris 'X' type flag |
| 10329 |
* src/tar.h (SOLARIS_XHDTYPE): New define |
| 10330 |
|
| 10331 |
2005-04-06 Sergey Poznyakoff <[email protected]> |
| 10332 |
|
| 10333 |
* src/tar.c: Minor fixes to text messages. Proposed by Benno |
| 10334 |
Schulenberg. |
| 10335 |
* src/extract.c: Likewise |
| 10336 |
(extract_file): Assign orig_file_name |
| 10337 |
to save_name uniformly over the program. This fixes matching |
| 10338 |
directory names at the start of an archive volume. |
| 10339 |
* src/buffer.c (flush_write): Warn when the name of the archive |
| 10340 |
straddling volume boundary is longer than 100 characters. Earlier |
| 10341 |
behavior was to issue a fatal error. |
| 10342 |
(struct zip_magic): Reverted part of changes from 2005-04-04. |
| 10343 |
They make the maintenance too costly. Removing `unsigned' |
| 10344 |
qualifier from `magic' member should be enough. |
| 10345 |
* src/compare.c (diff_init): Read directory file if in listed |
| 10346 |
incremental. This prevents spurious 'Contents differ' diagnostics. |
| 10347 |
(diff_archive): Minor fixes to text messages |
| 10348 |
(diff_file,diff_dumpdir,diff_multivol): Assign orig_file_name |
| 10349 |
to save_name uniformly over the program. This fixes matching |
| 10350 |
directory names at the start of an archive volume. |
| 10351 |
* src/create.c: Assign orig_file_name |
| 10352 |
to save_name uniformly over the program. This fixes matching |
| 10353 |
directory names at the start of an archive volume. |
| 10354 |
* src/list.c: Likewise |
| 10355 |
|
| 10356 |
* tests/multiv03.at: Modified to match the new behavior |
| 10357 |
* tests/multiv04.at: New file. Test splitting directory members between |
| 10358 |
the archive volumes. |
| 10359 |
* tests/Makefile.am: Add multiv04.at |
| 10360 |
* tests/testsuite.at: Likewise. |
| 10361 |
|
| 10362 |
2005-04-04 Paul Eggert <[email protected]> |
| 10363 |
|
| 10364 |
* configure.ac (AC_CONFIG_AUX_DIR): Rename from config to build-aux, |
| 10365 |
for reasons discussed in the thread beginning at |
| 10366 |
<http://lists.gnu.org/archive/html/bug-gnulib/2005-03/msg00119.html>. |
| 10367 |
* .cvsignore: Remove config; add build-aux. |
| 10368 |
|
| 10369 |
* src/buffer.c (struct zip_magic): Use char arrays, not pointers. |
| 10370 |
The unsigned char * pointer ran afoul of pedantic C compilers, and |
| 10371 |
we didn't need pointers anyway. Put the size field before the |
| 10372 |
data to avoid unnecessary padding. All uses changed. |
| 10373 |
(magic) Make it const, since it doesn't change. All uses changed. |
| 10374 |
|
| 10375 |
2005-04-02 Paul Eggert <[email protected]> |
| 10376 |
|
| 10377 |
* src/xheader.c (decode_record): Don't dump core when given |
| 10378 |
a corrupted extended header. Problem reported by Jim Meyering. |
| 10379 |
Also, check for other ways that the header might be invalid, |
| 10380 |
e.g., missing newline at end. Do not allow keys with nulls. |
| 10381 |
Allow blanks before and after length, as POSIX requires. |
| 10382 |
Do not allow leading "-" in length. Check for length overflow. |
| 10383 |
(xheader_decode, xheader_decode_global): Let decode_record |
| 10384 |
check for exhaustion of record. |
| 10385 |
(xheader_read): Null-terminate the extended record; |
| 10386 |
decode_record relies on this. |
| 10387 |
|
| 10388 |
2005-03-21 Paul Eggert <[email protected]> |
| 10389 |
|
| 10390 |
* bootstrap (TP_URL): Change from |
| 10391 |
<http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/> to |
| 10392 |
<http://www.iro.umontreal.ca/translation/maint/tar/> to avoid |
| 10393 |
some redirection glitches. |
| 10394 |
Use "trap - 0" rather than "trap 0" to fix a POSIX-conformance bug. |
| 10395 |
* doc/.cvsignore: Change "tar.info" to "tar.info*". Sort. |
| 10396 |
* lib/.cvsignore: Add intprops.h (new gnulib file). |
| 10397 |
|
| 10398 |
2005-03-04 Sergey Poznyakoff <[email protected]> |
| 10399 |
|
| 10400 |
* src/list.c (print_header): Print UID/GID in case of |
| 10401 |
empty user/group name. This could occur when dumping |
| 10402 |
files belonging to non-existing users and when listing |
| 10403 |
broken archives. |
| 10404 |
Reported by Igor Lautar. |
| 10405 |
|
| 10406 |
* src/create.c: Correctly parse empty uname/gname |
| 10407 |
* src/sparse.c (sparse_scan_file): Bugfix. offset had |
| 10408 |
incorrect type. |
| 10409 |
|
| 10410 |
* scripts/backup.in: Use `head -n 1'. Provide missing |
| 10411 |
argument to ${MT_STATUS}. Proposed by Jan Merka. |
| 10412 |
* scripts/backup.sh.in: Likewise. Fixed typo in |
| 10413 |
MT_OFFLINE assignment. |
| 10414 |
* scripts/restore.in (restore_fs): Use root_fs |
| 10415 |
|
| 10416 |
2005-02-15 Sergey Poznyakoff <[email protected]> |
| 10417 |
|
| 10418 |
* src/create.c: Replace strdup with xstrdup |
| 10419 |
* src/names.c: Likewise |
| 10420 |
* src/tar.c: Likewise |
| 10421 |
|
| 10422 |
* tests/append01.at: Added reference to bug-tar archive |
| 10423 |
* tests/listed02.at: Use -print with find. |
| 10424 |
|
| 10425 |
2005-02-11 Sergey Poznyakoff <[email protected]> |
| 10426 |
|
| 10427 |
* THANKS: Added Tim Adye. Fixed UTF. |
| 10428 |
* src/list.c (read_header): Removed assignment to |
| 10429 |
oldgnu_header.isextended. It was breaking append mode. |
| 10430 |
|
| 10431 |
* tests/append01.at: New test. |
| 10432 |
* tests/Makefile.am: Added append01.at |
| 10433 |
* tests/testsuite.at: Likewise |
| 10434 |
|
| 10435 |
2005-02-06 Sergey Poznyakoff <[email protected]> |
| 10436 |
|
| 10437 |
* gnulib.modules: New file. List of required gnulib |
| 10438 |
modules. |
| 10439 |
* bootstrap: Merge list of required modules from |
| 10440 |
paxutils with that from tar proper. |
| 10441 |
* src/tar.c: Various fixes in help and diagnostic messages. |
| 10442 |
|
| 10443 |
2005-02-05 Sergey Poznyakoff <[email protected]> |
| 10444 |
|
| 10445 |
* src/common.h (EXTRACT_OVER_PIPE): New macro |
| 10446 |
* src/compare.c: Code clean up. |
| 10447 |
* src/extract.c (extract_archive): Do not check for |
| 10448 |
EXTRACT_OVER_PIPE, decode_options() does this. |
| 10449 |
* src/misc.c (exec_error,fork_error,dup2_error) |
| 10450 |
(pipe_error): Removed unneeded functions. |
| 10451 |
* src/system.c (sys_exec_command): Use xclose, xpipe, |
| 10452 |
xfork, xdup2 and exec_fatal. |
| 10453 |
* src/tar.c (options): Improved sorting. Document --backup=off. |
| 10454 |
(decode_options): Clear backup_option if necessary. |
| 10455 |
|
| 10456 |
2005-02-05 Sergey Poznyakoff <[email protected]> |
| 10457 |
|
| 10458 |
Initial implementation of --to-command option proposed |
| 10459 |
by Hansjoerg Lipp. |
| 10460 |
|
| 10461 |
* bootstrap: Get setenv module from gnulib |
| 10462 |
* src/buffer.c: Do not use 8-bit chars in comments |
| 10463 |
* src/common.h (to_command_option) |
| 10464 |
(ignore_command_error_option): New globals |
| 10465 |
(sys_exec_command,sys_wait_command): New commands |
| 10466 |
* src/extract.c (extract_file): Handle to_command_option |
| 10467 |
Fix error recovery: decrease `size' by `written', not |
| 10468 |
by `count', otherwise tar misses the next header |
| 10469 |
Do not diagnose write error if to_command_option |
| 10470 |
is set, since the command may have exited prematurely. |
| 10471 |
It would be better to check for sigpipe, though. |
| 10472 |
(prepare_to_extract): Handle to_command_option |
| 10473 |
* src/misc.c (exec_error, fork_error, dup_error) |
| 10474 |
(pipe_error): New functions |
| 10475 |
* src/system.c (sys_exec_command) |
| 10476 |
(sys_wait_command): New functions |
| 10477 |
* src/tar.c: Handle new options --to-command, |
| 10478 |
--ignore-command-error |
| 10479 |
* THANKS: Added Hansjoerg Lipp |
| 10480 |
|
| 10481 |
2005-02-03 Paul Eggert <[email protected]> |
| 10482 |
|
| 10483 |
* src/list.c (from_header): New arg OCTAL_ONLY, normally false. |
| 10484 |
All uses changed. Fix typo that sometimes suppressed all "Archive |
| 10485 |
contains obsolescent base-64 headers" warnings, not just the first |
| 10486 |
one. |
| 10487 |
(tar_checksum): Accept only octal checksums, since they aren't |
| 10488 |
supposed to overflow into weird formats. |
| 10489 |
|
| 10490 |
Adjust to gnulib changes. |
| 10491 |
* lib/.cvsignore: Add chdir-long.c, chdir-long.h, memrchr.c, |
| 10492 |
memrchr.h, openat.c, openat.h. Remove pathmax.h (added by |
| 10493 |
mistake, perhaps?), sysexit.h (my typo), xstrdup.c (gnulib removed |
| 10494 |
this file). Sort entries. |
| 10495 |
|
| 10496 |
2005-02-04 Sergey Poznyakoff <[email protected]> |
| 10497 |
|
| 10498 |
* src/extract.c: Further rewrite. |
| 10499 |
* src/buffer.c: Removed unused variables. |
| 10500 |
* src/list.c: Likewise |
| 10501 |
* src/tar.c (update_argv): Changed type to void |
| 10502 |
|
| 10503 |
* src/common.h (OLDGNU_NAME_FIELD_SIZE): New constant |
| 10504 |
* src/create.c (start_private_header,write_header_name) |
| 10505 |
(dump_hard_link): Restore compatibility with 1.13.25 |
| 10506 |
* src/extract.c (extract_archive): Rewritten |
| 10507 |
* src/list.c: Add translators' comments |
| 10508 |
* src/tar.c (options) Minor spelling fix |
| 10509 |
* tests/star/quicktest.sh: Determine path to the tar executable. |
| 10510 |
|
| 10511 |
2005-02-03 Sergey Poznyakoff <[email protected]> |
| 10512 |
|
| 10513 |
* po/POTFILES.in: Added tests/genfile.c |
| 10514 |
* src/buffer.c (short_read): Use ngettext() |
| 10515 |
(new_volume): use quote(). |
| 10516 |
* src/create.c: Use quote() |
| 10517 |
* src/extract.c: Likewise |
| 10518 |
* src/xheader.c: Likewise |
| 10519 |
* src/misc.c: Add comments to translators |
| 10520 |
|
| 10521 |
* tests/same-order01.at: sort ls output |
| 10522 |
* tests/sparse01.at (RE_CHECK): Added missing space |
| 10523 |
|
| 10524 |
* tests/sparse02.at: Test extracting sparse files over a pipe. |
| 10525 |
* tests/Makefile.am: Added sparse02.at |
| 10526 |
* tests/testsuite.at: Likewise |
| 10527 |
* tests/listed02.at: Skip the test on filesystems that do not |
| 10528 |
update ctime of a file when renaming it. To be reverted when |
| 10529 |
the new incremental mode is ready. |
| 10530 |
* tests/sparse01.at: Extract and compare sparse file |
| 10531 |
|
| 10532 |
2005-02-02 Sergey Poznyakoff <[email protected]> |
| 10533 |
|
| 10534 |
* src/sparse.c: Extract sparse files even if the output |
| 10535 |
fd is not seekable. |
| 10536 |
|
| 10537 |
2005-02-01 Sergey Poznyakoff <[email protected]> |
| 10538 |
|
| 10539 |
* bootstrap: Add a comment to lib/Makefile.am saying that this |
| 10540 |
is an autogenerated file. |
| 10541 |
Exit with code 1 if any of autotools fails. |
| 10542 |
* lib/Makefile.tmpl: Insert Emacs magic to the first line. |
| 10543 |
* tests/Makefile.am: Add append.at |
| 10544 |
|
| 10545 |
* m4/.cvsignore: Ignore all *.m4 files |
| 10546 |
|
| 10547 |
2005-01-18 Sergey Poznyakoff <[email protected]> |
| 10548 |
|
| 10549 |
Rewritten handling of -T (--files-from) option. Now it |
| 10550 |
inserts the file names immediately into argv array which allows |
| 10551 |
for: |
| 10552 |
1) any valid tar options (including another -T) to be used in the file |
| 10553 |
2) any number of -T options to be given in command line |
| 10554 |
|
| 10555 |
* configure.ac: Raised version number to 1.15.2 |
| 10556 |
* src/common.h: Include obstack.h |
| 10557 |
(files_from_option): Removed |
| 10558 |
(unquote_option): New variable |
| 10559 |
(stat_fatal): New function |
| 10560 |
(name_close): Removed function. |
| 10561 |
* src/incremen.c: Remove inclusion of obstack.h |
| 10562 |
* src/xheader.c: Likewise. |
| 10563 |
* src/misc.c (stat_fatal): New function |
| 10564 |
* src/names.c (name_file): Removed variable. |
| 10565 |
(read_name_from_file): Removed function. All callers changed. |
| 10566 |
(name_close): Removed function. All callers changed. |
| 10567 |
* src/tar.c: New options --unquote (--no-unquote) and |
| 10568 |
--add-file |
| 10569 |
(add_file_id,read_name_from_file,update_argv): New functions |
| 10570 |
(parse_opt): Rewritten handling of -T option. Handle hidden |
| 10571 |
--HANG option for debugging purposes. |
| 10572 |
(decode_options): Init unquote_option to true. Init argv_stk. |
| 10573 |
Remove unneeded references to files_from_option |
| 10574 |
|
| 10575 |
* doc/tar.texi: Document new options. |
| 10576 |
Moved rendition macros and option value definitions into |
| 10577 |
separate files |
| 10578 |
* doc/rendition.texi: New file |
| 10579 |
* doc/value.texi: New file |
| 10580 |
* doc/Makefile.am: Updated |
| 10581 |
|
| 10582 |
2005-01-13 Paul Eggert <[email protected]> |
| 10583 |
|
| 10584 |
* tests/testsuite.at (RE_CHECK): Use "join - file", not |
| 10585 |
"join file -", to work around a bug in Solaris 8 join. |
| 10586 |
Problem reported by Tomohiro Suzuki. |
| 10587 |
|
| 10588 |
2005-01-13 Sergey Poznyakoff <[email protected]> |
| 10589 |
|
| 10590 |
* src/list.c (read_header): Fixed calculation of the |
| 10591 |
size for GNU long name/link. Tar was reading one block |
| 10592 |
more if name_size was divisible by 512. Thanks Josef |
| 10593 |
Bauer. |
| 10594 |
* tests/long01.at: New file. Test listing of GNU long names |
| 10595 |
divisible by 512. |
| 10596 |
* tests/pipe.at: Sort tar output. |
| 10597 |
* tests/Makefile.am: Added long01.at |
| 10598 |
* tests/testsuite.at: Likewise. |
| 10599 |
* THANKS: Added Josef Bauer |
| 10600 |
* lib/.cvsignore: Updated |
| 10601 |
* m4/.cvsignore: Updated |
| 10602 |
* NEWS: Updated |
| 10603 |
|
| 10604 |
2005-01-11 Sergey Poznyakoff <[email protected]> |
| 10605 |
|
| 10606 |
* directory: Updated for 1.15.1 |
| 10607 |
* doc/Makefile.am: Use gendocs.sh to generate web documentation |
| 10608 |
* doc/gendocs_template: Template file for gendocs.sh |
| 10609 |
* doc/tar.texi: Updated docs for --[no-]same-permissions |
| 10610 |
* src/tar.c: Reworded docstrings for --[no-]same-permissions |
| 10611 |
|
| 10612 |
2005-01-06 Sergey Poznyakoff <[email protected]> |
| 10613 |
|
| 10614 |
* bootstrap: Create m4/paxutils.m4 |
| 10615 |
* configure.ac: Call tar_PAXUTILS |
| 10616 |
* tests/options02.at: Test that tar correctly handles non-option |
| 10617 |
arguments interspersed with options. |
| 10618 |
* tests/Makefile.am: Add options02.at |
| 10619 |
* tests/testsuite.at: Likewise |
| 10620 |
* tests/listed02.at: Do not create useless directory |
| 10621 |
|
| 10622 |
2005-01-05 Sergey Poznyakoff <[email protected]> |
| 10623 |
|
| 10624 |
* src/tar.c (parse_opt): Bugfix: Use ARGP_KEY_ARG. Thanks |
| 10625 |
Mike Frysinger <[email protected]> for reporting. |
| 10626 |
|
| 10627 |
2005-01-04 Paul Eggert <[email protected]> |
| 10628 |
|
| 10629 |
* lib/Makefile.tmpl (localedir.h): Omit needless quotes and a |
| 10630 |
needless sed command. Problem reported by Paul Jarc. |
| 10631 |
|
| 10632 |
2004-12-23 Paul Eggert <[email protected]> |
| 10633 |
|
| 10634 |
Accommodate latest gnulib. |
| 10635 |
* doc/.cvsignore: Add getdate.texi. |
| 10636 |
* bootstrap: Do not treat alloca-opt specially; this is no |
| 10637 |
longer needed (and breaks builds) with latest gnulib. |
| 10638 |
|
| 10639 |
2004-12-22 Sergey Poznyakoff <[email protected]> |
| 10640 |
|
| 10641 |
* src/tar.c (main): Reverted recent changes (#ifdef). |
| 10642 |
|
| 10643 |
2004-12-21 Sergey Poznyakoff <[email protected]> |
| 10644 |
|
| 10645 |
* configure.ac: Raise version number to 1.15.1 |
| 10646 |
Check for locale.h |
| 10647 |
* NEWS: Entry for 1.15.1 |
| 10648 |
* src/buffer.c: Bugfix. Changes introduced 2004-11-26 |
| 10649 |
broke extraction from stdin. |
| 10650 |
* src/list.c (from_header, tar_checksum): Changed declaration. |
| 10651 |
All callers updated. |
| 10652 |
* src/common.h: Likewise |
| 10653 |
* src/tar.c (main): Protect invocation of setlocale by |
| 10654 |
ifdef. |
| 10655 |
|
| 10656 |
* tests/comprec.at: New test |
| 10657 |
* tests/pipe.at: New test |
| 10658 |
* tests/Makefile.am (comprec.at,pipe.at): New tests |
| 10659 |
* tests/testsuite.at: Likewise |
| 10660 |
* tests/gzip.at: Use AT_GZIP_PREREQ |
| 10661 |
* tests/star/pax-big-10g.at: Likewise |
| 10662 |
* tests/star/ustar-big-2g.at: Likewise |
| 10663 |
* tests/star/ustar-big-8g.at: Likewise |
| 10664 |
|
| 10665 |
* tests/extrac04.at: Discard stderr from sort, on some |
| 10666 |
systems it spits out lots of irrelevant info. |
| 10667 |
* tests/listed02.at: Likewise |
| 10668 |
|
| 10669 |
* doc/index.html.in: Rewritten in xhtml to follow recent |
| 10670 |
GNU site standards. |
| 10671 |
* THANKS: Updated |
| 10672 |
|
| 10673 |
2004-12-20 Sergey Poznyakoff <[email protected]> |
| 10674 |
|
| 10675 |
Released version 1.15. Sources up to this point are |
| 10676 |
tagged release_1_15. |
| 10677 |
|
| 10678 |
* configure.ac: Raised version number to 1.15 |
| 10679 |
* NEWS: Likewise |
| 10680 |
* directory: Updated |
| 10681 |
* bootstrap (update_po): Give -r to wget. Always remove index.html |
| 10682 |
Ignore alloca-opt module (it duplicates alloca) |
| 10683 |
|
| 10684 |
* tests/Makefile.am: Distribute star/quicktest.sh |
| 10685 |
* tests/star/README: Document quicktest.sh |
| 10686 |
* tests/star/qucktest.sh: Removed. |
| 10687 |
* tests/star/quicktest.sh: New file. |
| 10688 |
|
| 10689 |
2004-12-18 Sergey Poznyakoff <[email protected]> |
| 10690 |
|
| 10691 |
* NEWS: Updated |
| 10692 |
* doc/tar.texi: Document auto-detection of compressed archive |
| 10693 |
formats. |
| 10694 |
* src/tar.c (decode_options): Ignore --seek if used with --delete. |
| 10695 |
Delete.c is based on the assumption that the archive is being |
| 10696 |
actually read, not lseeked. |
| 10697 |
|
| 10698 |
* tests/delete05.at: New file |
| 10699 |
* tests/extrac02.at: Fixed typo in AT_SETUP |
| 10700 |
* tests/Makefile.am: Added delete05.at |
| 10701 |
* tests/testsuite.at: Likewise. |
| 10702 |
|
| 10703 |
2004-12-17 Sergey Poznyakoff <[email protected]> |
| 10704 |
|
| 10705 |
* src/delete.c (delete_archive_members): Bugfix: when |
| 10706 |
attempting to delete an nonexistent member, the last |
| 10707 |
blocking_factor blocks were zeroed. |
| 10708 |
|
| 10709 |
2004-12-14 Paul Eggert <[email protected]> |
| 10710 |
|
| 10711 |
* TODO: Mention sub-second resolution, lutimes, lchmod. |
| 10712 |
|
| 10713 |
2004-11-27 Paul Eggert <[email protected]> |
| 10714 |
|
| 10715 |
Adjust to recent gnulib changes. |
| 10716 |
* doc/getdate.texi: Remove, since bootstrap gets it from gnulib now. |
| 10717 |
* .cvsignore: Add rmt, rmt/*, rmt/*/*. |
| 10718 |
* lib/.cvsignore: Add allocsa.c, allocsa.h, allocsa.valgrind, |
| 10719 |
charset.alias, config.charset, getcwd.c, getcwd.h, localcharset.c, |
| 10720 |
localcharset.h, ref-add.sed, ref-add.sin, ref-del.sed, |
| 10721 |
ref-del.sin, setenv.c, setenv.h, unsetenv.c. Remove pathmax.h, |
| 10722 |
xstrdup.c. |
| 10723 |
* m4/.cvsignore: Add allocsa.m4, eealloc.m4, getcwd-path-max.m4, |
| 10724 |
localcharset.m4, realloc.m4, setenv.m4. Remove malloc.m4, |
| 10725 |
pathmax.m4, realloc.m4. |
| 10726 |
|
| 10727 |
2004-11-26 Sergey Poznyakoff <[email protected]> |
| 10728 |
|
| 10729 |
* configure.ac: Raised version number to 1.14.91 |
| 10730 |
* scripts/tarcat: New file |
| 10731 |
* scripts/Makefile.am: Added tarcat |
| 10732 |
* src/buffer.c (hit_eof): Changed type to boolean |
| 10733 |
(read_full_records,reading_from_pipe): New variables |
| 10734 |
(check_compressed_archive,open_compressed_archive): New functions |
| 10735 |
(open_archive): Autodetect compressed archives and act accordingly. |
| 10736 |
Set reading_from_pipe. This fixes controversial set of changes |
| 10737 |
introduced 2004-05-11,2004-03-22. |
| 10738 |
* src/list.c (tar_checksum): New function |
| 10739 |
(read_header): Use tar_checksum(). |
| 10740 |
* src/common.h (tar_checksum): New function |
| 10741 |
|
| 10742 |
* tests/star/README: Updated |
| 10743 |
* NEWS: Updated |
| 10744 |
* PORTS: Updated |
| 10745 |
|
| 10746 |
2004-11-16 Sergey Poznyakoff <[email protected]> |
| 10747 |
|
| 10748 |
* src/tar.c (decode_options): Fixed -o semantics. Thanks |
| 10749 |
Jean Delvare <[email protected]> |
| 10750 |
|
| 10751 |
2004-10-25 Sergey Poznyakoff <[email protected]> |
| 10752 |
|
| 10753 |
* bootstrap: Add localcharset |
| 10754 |
* lib/Makefile.tmpl: Initialize SUFFIXES and CLEANFILES since the |
| 10755 |
makefile snippet from localcharset uses '+=' on them. |
| 10756 |
* src/Makefile.am (LDADD): Add LIBICONV |
| 10757 |
* src/list.c (decode_header): Set uname/gname to NULL if their |
| 10758 |
header counterparts are empty |
| 10759 |
* src/tar.c (options): Use OPTION_NO_TRANS |
| 10760 |
* src/utf8.c: Use locale_charset() from gnulib |
| 10761 |
|
| 10762 |
* tests/star/README: Updated |
| 10763 |
|
| 10764 |
* NEWS: Updated |
| 10765 |
* TODO: Minor fix |
| 10766 |
|
| 10767 |
2004-10-04 Sergey Poznyakoff <[email protected]> |
| 10768 |
|
| 10769 |
* THANKS: Added Bryan Ford |
| 10770 |
* doc/Makefile.am (.text): Fixed rule |
| 10771 |
* po/POTFILES.in: Added argp-help.c |
| 10772 |
|
| 10773 |
2004-10-04 Bryan Ford <[email protected]> |
| 10774 |
|
| 10775 |
* src/tar.c: New option --exclude-caches, to exclude |
| 10776 |
cache directories automatically on archive creation. |
| 10777 |
Cache directories are directories containing a |
| 10778 |
standardized tag file, as specified at: |
| 10779 |
http://www.brynosaurus.com/cachedir/spec.html |
| 10780 |
* src/common.h: New variable exclude_caches_option. |
| 10781 |
* src/create.c: New function check_cache_directory(), |
| 10782 |
called from dump_dir0() if exclude_caches_option is set, |
| 10783 |
to check for a cache directory tag and exclude the directory |
| 10784 |
if such a tag is found. |
| 10785 |
* doc/tar.texi: Updated accordingly. |
| 10786 |
|
| 10787 |
2004-09-16 Sergey Poznyakoff <[email protected]> |
| 10788 |
|
| 10789 |
* doc/tar.texi: Minor fix |
| 10790 |
* src/tar.c (options): Minor fix |
| 10791 |
|
| 10792 |
2004-09-12 Sergey Poznyakoff <[email protected]> |
| 10793 |
|
| 10794 |
* TODO: Updated |
| 10795 |
* lib/Makefile.tmpl: Added 'rtapelib.o: localedir.h' dependency |
| 10796 |
* src/common.h: Comment WANT_DIRECTORY_REMOVE_OPTION. |
| 10797 |
* src/extract.c: Normalized use of remove_any_file(). |
| 10798 |
* src/misc.c: Likewise. |
| 10799 |
* src/tar.c (parse_opt): Emit warning if -l option is used. |
| 10800 |
(show_default_settings): REMOTE_SHELL may be undefined |
| 10801 |
|
| 10802 |
2004-09-07 Sergey Poznyakoff <[email protected]> |
| 10803 |
|
| 10804 |
Test suite rewritten in autotest. |
| 10805 |
|
| 10806 |
* configure.ac: Updated for autotest |
| 10807 |
* src/tar.c (argp_program_version): Modified. |
| 10808 |
* tests/Makefile.am: Rewritten for autotest. |
| 10809 |
|
| 10810 |
* tests/.cvsignore: Updated |
| 10811 |
* tests/append.at: New file |
| 10812 |
* tests/atlocal.in: New file |
| 10813 |
* tests/delete01.at: New file |
| 10814 |
* tests/delete02.at: New file |
| 10815 |
* tests/delete03.at: New file |
| 10816 |
* tests/delete04.at: New file |
| 10817 |
* tests/extrac01.at: New file |
| 10818 |
* tests/extrac02.at: New file |
| 10819 |
* tests/extrac03.at: New file |
| 10820 |
* tests/extrac04.at: New file |
| 10821 |
* tests/extrac05.at: New file |
| 10822 |
* tests/gzip.at: New file |
| 10823 |
* tests/ignfail.at: New file |
| 10824 |
* tests/incremental.at: New file |
| 10825 |
* tests/link01.at: New file |
| 10826 |
* tests/listed01.at: New file |
| 10827 |
* tests/listed02.at: New file |
| 10828 |
* tests/longv7.at: New file |
| 10829 |
* tests/multiv01.at: New file |
| 10830 |
* tests/multiv02.at: New file |
| 10831 |
* tests/multiv03.at: New file |
| 10832 |
* tests/old.at: New file |
| 10833 |
* tests/options.at: New file |
| 10834 |
* tests/recurse.at: New file |
| 10835 |
* tests/same-order01.at: New file |
| 10836 |
* tests/same-order02.at: New file |
| 10837 |
* tests/sparse01.at: New file |
| 10838 |
* tests/testsuite.at: New file |
| 10839 |
* tests/version.at: New file |
| 10840 |
* tests/volume.at: New file |
| 10841 |
* tests/star/gtarfail.at: New file |
| 10842 |
* tests/star/gtarfail2.at: New file |
| 10843 |
* tests/star/multi-fail.at: New file |
| 10844 |
* tests/star/pax-big-10g.at: New file |
| 10845 |
* tests/star/ustar-big-2g.at: New file |
| 10846 |
* tests/star/ustar-big-8g.at: New file |
| 10847 |
|
| 10848 |
* tests/preset.in: Removed |
| 10849 |
* tests/before: Removed |
| 10850 |
* tests/after: Removed |
| 10851 |
* tests/version.sh: Removed. |
| 10852 |
* tests/append.sh: Removed. |
| 10853 |
* tests/delete01.sh: Removed. |
| 10854 |
* tests/delete02.sh: Removed. |
| 10855 |
* tests/delete03.sh: Removed. |
| 10856 |
* tests/delete04.sh: Removed. |
| 10857 |
* tests/extrac01.sh: Removed. |
| 10858 |
* tests/extrac02.sh: Removed. |
| 10859 |
* tests/extrac03.sh: Removed. |
| 10860 |
* tests/extrac04.sh: Removed. |
| 10861 |
* tests/extrac05.sh: Removed. |
| 10862 |
* tests/gzip.sh: Removed. |
| 10863 |
* tests/incremen.sh: Removed. |
| 10864 |
* tests/ignfail.sh: Removed. |
| 10865 |
* tests/link01.sh: Removed. |
| 10866 |
* tests/listed01.sh: Removed. |
| 10867 |
* tests/listed02.sh: Removed. |
| 10868 |
* tests/longv7.sh: Removed. |
| 10869 |
* tests/multiv01.sh: Removed. |
| 10870 |
* tests/multiv02.sh: Removed. |
| 10871 |
* tests/multiv03.sh: Removed. |
| 10872 |
* tests/old.sh: Removed. |
| 10873 |
* tests/options.sh: Removed. |
| 10874 |
* tests/same-order01.sh: Removed. |
| 10875 |
* tests/same-order02.sh: Removed. |
| 10876 |
* tests/volume.sh: Removed. |
| 10877 |
* tests/recurse.sh: Removed. |
| 10878 |
* tests/sparse01.sh: Removed. |
| 10879 |
* tests/star/gtarfail.sh: Removed. |
| 10880 |
* tests/star/gtarfail2.sh: Removed. |
| 10881 |
* tests/star/multi-fail.sh: Removed. |
| 10882 |
* tests/star/ustar-big-2g.sh: Removed. |
| 10883 |
* tests/star/ustar-big-8g.sh: Removed. |
| 10884 |
* tests/star/pax-big-10g.sh: Removed. |
| 10885 |
|
| 10886 |
2004-09-07 Sergey Poznyakoff <[email protected]> |
| 10887 |
|
| 10888 |
* bootstrap: Install genfile.c from paxutils |
| 10889 |
* tests/genfile.c: Removed. Integrated into |
| 10890 |
paxutils. |
| 10891 |
* tests/mksparse.c: Removed. Integrated into |
| 10892 |
(paxutils) genfile.c |
| 10893 |
* tests/Makefile.am: Removed mksparse |
| 10894 |
* tests/sparse01.sh: Use genfile instead of mksparse |
| 10895 |
|
| 10896 |
2004-09-06 Sergey Poznyakoff <[email protected]> |
| 10897 |
|
| 10898 |
Started merging with cpio into paxutils. Sources before |
| 10899 |
this point are tagged alpha-1_14_90 |
| 10900 |
|
| 10901 |
* Makefile.am: Updated for use with paxutils |
| 10902 |
* README-alpha: Likewise |
| 10903 |
* bootstrap: Likewise |
| 10904 |
* configure.ac: Likewise |
| 10905 |
* lib/Makefile.tmpl: Likewise |
| 10906 |
* po/POTFILES.in: Likewise |
| 10907 |
* src/Makefile.am: Likewise |
| 10908 |
* src/buffer.c: Likewise |
| 10909 |
* src/common.h: Likewise |
| 10910 |
* src/compare.c: Likewise |
| 10911 |
* src/create.c: Likewise |
| 10912 |
* src/delete.c: Likewise |
| 10913 |
* src/extract.c: Likewise |
| 10914 |
* src/incremen.c: Likewise |
| 10915 |
* src/list.c: Likewise |
| 10916 |
* src/mangle.c: Likewise |
| 10917 |
* src/misc.c: Likewise |
| 10918 |
* src/names.c: Likewise |
| 10919 |
* src/sparse.c: Likewise |
| 10920 |
* src/system.c: Likewise |
| 10921 |
* src/tar.c: Likewise |
| 10922 |
* src/update.c: Likewise |
| 10923 |
* src/utf8.c: Likewise |
| 10924 |
* src/xheader.c: Likewise |
| 10925 |
|
| 10926 |
* src/system.h: Removed |
| 10927 |
* src/rmt.c: Removed |
| 10928 |
* src/rmt.h: Removed |
| 10929 |
* src/rtapelib.c: Removed |
| 10930 |
|
| 10931 |
2004-09-03 Sergey Poznyakoff <[email protected]> |
| 10932 |
|
| 10933 |
* tests/listed02.sh: Do not depend on any particular ordering |
| 10934 |
of output. |
| 10935 |
|
| 10936 |
2004-09-02 Sergey Poznyakoff <[email protected]> |
| 10937 |
|
| 10938 |
* doc/tar.texi: Document the use of -C option in |
| 10939 |
file lists. Document --seek option. |
| 10940 |
* configure.ac: New option --with-rmt. New configuration variable |
| 10941 |
DEFAULT_RMT_DIR. Removed DEFAULT_RMT_COMMAND. |
| 10942 |
* src/Makefile.am: Install rmt into rmtdir |
| 10943 |
* src/tar.c (usage): Minor fix. |
| 10944 |
* NEWS: Updated. |
| 10945 |
* README: Updated. |
| 10946 |
|
| 10947 |
2004-09-01 Sergey Poznyakoff <[email protected]> |
| 10948 |
|
| 10949 |
* configure.ac: Raised version number to 1.14.90 |
| 10950 |
* src/common.h (is_individual_file): New prototype |
| 10951 |
* src/create.c (dump_file0): Fix bug introduced |
| 10952 |
2004-02-21. |
| 10953 |
* src/names.c (register_individual_file) |
| 10954 |
(is_individual_file): New functions. |
| 10955 |
* tests/listed01.sh: Use genfile instead of dd. |
| 10956 |
* tests/listed02.sh: New file. |
| 10957 |
* tests/Makefile.am: Added listed02.sh |
| 10958 |
|
| 10959 |
* NEWS: Updated |
| 10960 |
|
| 10961 |
2004-08-31 Sergey Poznyakoff <[email protected]> |
| 10962 |
|
| 10963 |
* src/sparse.c (sparse_add_map): Fixed improper initializations |
| 10964 |
of sparse_map_size. We assume that whatever number it contains |
| 10965 |
describes adequately the current size of sparse_map. The only |
| 10966 |
number we need to reset is sparse_map_avail. |
| 10967 |
* src/compare.c (verify_volume): Call set_next_block_after |
| 10968 |
if read_header returns HEADER_FAILURE |
| 10969 |
Destroy and reinitialize content of current_stat_info and |
| 10970 |
extended_header after each iteration (bug reported by |
| 10971 |
John L. Males <[email protected]>). |
| 10972 |
Issue a warning if the created archive contains some members |
| 10973 |
whose file names were stripped off their leading prefixes. |
| 10974 |
This is a temporary fix of the issue reported by Bdale Garbee |
| 10975 |
<[email protected]> (Refs: Debian bug 230064, Message-Id |
| 10976 |
<[email protected]>, Sun, 15 Feb 2004 11:22:17 -0700) |
| 10977 |
|
| 10978 |
* src/names.c (removed_prefixes_p): New function. |
| 10979 |
|
| 10980 |
* src/buffer.c: When computing write rate do not take |
| 10981 |
into account the time needed to verify the archive(s). |
| 10982 |
The bug reported by John L. Males <[email protected]> |
| 10983 |
(set_start_time,compute_duration): New functions. |
| 10984 |
(print_total_written): Use the result of compute_duration(). |
| 10985 |
(close_archive): Call compute_duration. |
| 10986 |
* src/common.h (set_start_time, removed_prefixes_p): New prototypes. |
| 10987 |
* src/list.c (decode_header): Fixed initialization |
| 10988 |
of stat_info->is_sparse |
| 10989 |
* src/tar.c (main): Call set_start_time(). |
| 10990 |
|
| 10991 |
* src/misc.c (unquote_string): Unquote '\a' and '\v'. |
| 10992 |
Reported by Helmut Waitzmann <[email protected]>. |
| 10993 |
|
| 10994 |
* NEWS: Updated |
| 10995 |
* THANKS: Updated |
| 10996 |
|
| 10997 |
2004-08-30 Sergey Poznyakoff <[email protected]> |
| 10998 |
|
| 10999 |
* src/tar.c: Fix copy-n-paste errors in the license |
| 11000 |
|
| 11001 |
2004-08-19 Sergey Poznyakoff <[email protected]> |
| 11002 |
|
| 11003 |
* scripts/backup.in: Renamed LIBPATH to LIBDIR. |
| 11004 |
Use ROOT_FS with -C option. Do not send mail |
| 11005 |
if ADMINISTRATOR is set to NONE. |
| 11006 |
* scripts/backup.sh.in (test_root): Append / to |
| 11007 |
ROOT_FS if it does not already end in it. |
| 11008 |
* scripts/restore.in: Renamed LIBPATH to LIBDIR. |
| 11009 |
New option -a (--all). Do not start restore unless |
| 11010 |
-a or patterns are given. |
| 11011 |
(restore_fs,restore_files): Fixed use of --listed option. |
| 11012 |
* doc/tar.texi: Updated |
| 11013 |
* NEWS: Updated |
| 11014 |
|
| 11015 |
2004-08-17 Sergey Poznyakoff <[email protected]> |
| 11016 |
|
| 11017 |
* src/tar.c (find_argp_option): Fixed typo |
| 11018 |
|
| 11019 |
2004-08-12 Paul Eggert <[email protected]> |
| 11020 |
|
| 11021 |
Merge argp, getopt, xalloc changes from gnulib. |
| 11022 |
* bootstrap (gnulib_modules): Add xalloc-die. |
| 11023 |
Remove code to test for patches; we don't have patches now. |
| 11024 |
Set LC_ALL=C so that file names sort consistently. |
| 11025 |
Prefer the gnulib copies of gettext.m4, glibc21.m4, |
| 11026 |
lib-ld.m4, lib-prefix.m4, po.m4 too. |
| 11027 |
|
| 11028 |
* patches/getopt.diff: Remove; gnulib now works unpatched. |
| 11029 |
* configure.ac (_getopt_long_only_r): Remove check. |
| 11030 |
gl_ARGP now does this for us. |
| 11031 |
* lib/.cvsignore: Add fnmatch.h, getopt_.h, sysexit.h, |
| 11032 |
xalloc-die.c. |
| 11033 |
* src/extract.c: Adjust to changes to gnulib xalloc module. |
| 11034 |
(extr_init): Remove assignment to xalloc_fail_func; no longer needed. |
| 11035 |
(xalloc_die): New function. |
| 11036 |
|
| 11037 |
2004-08-10 Sergey Poznyakoff <[email protected]> |
| 11038 |
|
| 11039 |
* NEWS: Updated |
| 11040 |
|
| 11041 |
* src/buffer.c (flush_write): Limit filenames |
| 11042 |
of the members that straddle multivolume archive |
| 11043 |
boundary to 100 characters. |
| 11044 |
(flush_read): Use strncmp when comparing multivolume member |
| 11045 |
names. |
| 11046 |
* tests/multiv03.sh: New file |
| 11047 |
* tests/Makefile.am: Added multiv03.sh |
| 11048 |
|
| 11049 |
2004-08-09 Sergey Poznyakoff <[email protected]> |
| 11050 |
|
| 11051 |
* src/list.c (read_and): Call decode_header before |
| 11052 |
calling skip_member() |
| 11053 |
(skip_member): Use is_sparse field to determine if the |
| 11054 |
member is a sparse file. |
| 11055 |
|
| 11056 |
* tests/Makefile.am: Added extrac05.sh |
| 11057 |
* tests/extrac05.sh: New file |
| 11058 |
* tests/append.sh: Rearranged leading comments. Added explicit |
| 11059 |
references to report messages wherever available. |
| 11060 |
* tests/delete01.sh: Likewise |
| 11061 |
* tests/delete02.sh: Likewise |
| 11062 |
* tests/delete03.sh: Likewise |
| 11063 |
* tests/delete04.sh: Likewise |
| 11064 |
* tests/extrac01.sh: Likewise |
| 11065 |
* tests/extrac02.sh: Likewise |
| 11066 |
* tests/extrac03.sh: Likewise |
| 11067 |
* tests/extrac04.sh: Likewise |
| 11068 |
* tests/gzip.sh: Likewise |
| 11069 |
* tests/ignfail.sh: Likewise |
| 11070 |
* tests/incremen.sh: Likewise |
| 11071 |
* tests/link01.sh: Likewise |
| 11072 |
* tests/listed01.sh: Likewise |
| 11073 |
* tests/longv7.sh: Likewise |
| 11074 |
* tests/multiv01.sh: Likewise |
| 11075 |
* tests/multiv02.sh: Likewise |
| 11076 |
* tests/old.sh: Likewise |
| 11077 |
* tests/options.sh: Likewise |
| 11078 |
* tests/recurse.sh: Likewise |
| 11079 |
* tests/same-order01.sh: Likewise |
| 11080 |
* tests/same-order02.sh: Likewise |
| 11081 |
* tests/sparse01.sh: Likewise |
| 11082 |
* tests/version.sh: Likewise |
| 11083 |
* tests/volume.sh: Likewise |
| 11084 |
|
| 11085 |
2004-08-08 Sergey Poznyakoff <[email protected]> |
| 11086 |
|
| 11087 |
* bootstrap: Extended --update-po option to take an |
| 11088 |
optional argument specifying the po file to update. |
| 11089 |
* src/create.c: Improved compatibility with 1.13.25 |
| 11090 |
* tests/link01.sh: New file. |
| 11091 |
* tests/Makefile.am: Added link01.sh |
| 11092 |
|
| 11093 |
2004-08-06 Paul Eggert <[email protected]> |
| 11094 |
|
| 11095 |
Merge from gnulib. |
| 11096 |
|
| 11097 |
* patches/argp.diff: Remove; no longer needed. |
| 11098 |
|
| 11099 |
* lib/.cvsignore: Add stat-macros.h. |
| 11100 |
Remove addext.c, malloc.c, realloc.c. |
| 11101 |
|
| 11102 |
* src/extract.c: Include <getcwd.h>. |
| 11103 |
(extract_archive): Rewrite with new macro IS_ABSOLUTE_FILE_NAME. |
| 11104 |
* src/extract.c (make_directories): |
| 11105 |
FILESYSTEM_PREFIX_LEN -> FILE_SYSTEM_PREFIX_LEN. |
| 11106 |
* src/misc.c (must_be_dot_or_slash): Likewise. |
| 11107 |
* src/names.c (excluded_name, safer_name_suffix, stripped_prefix_len): |
| 11108 |
Likewise. |
| 11109 |
* src/tar.c (parse_opt): Likewise. |
| 11110 |
* src/incremen.c (purge_directory): Fix format buffer typos in warning |
| 11111 |
strings. |
| 11112 |
* src/tar.c (options): Add missing initializers to pacify gcc. |
| 11113 |
(decode_options): Remove unused var. |
| 11114 |
|
| 11115 |
2004-08-02 Paul Eggert <[email protected]> |
| 11116 |
|
| 11117 |
* bootstrap (gnulib_modules): Add getpagesize. |
| 11118 |
* configure.ac (valloc): Remove check; valloc no longer used. |
| 11119 |
* lib/.cvsignore: Add getpagesize.h. |
| 11120 |
* m4/.cvsignore: Add getpagesize.m4. |
| 11121 |
* src/buffer.c (record_buffer): New var. |
| 11122 |
(open_archive): Don't use valloc; on older or buggy hosts, you can't |
| 11123 |
free the result. Use page_aligned_alloc instead. |
| 11124 |
* src/compare.c (diff_init): Likewise. |
| 11125 |
* src/buffer.c (open_archive): Record the pointer to be freed |
| 11126 |
into record_buffer. |
| 11127 |
(close_archive): Free record_buffer. |
| 11128 |
* src/common.h (page_aligned_alloc): New decl. |
| 11129 |
* src/misc.c (quote_n, quote): Remove these redundant functions. |
| 11130 |
(ptr_align): New function, from coreutils/src/system.h. |
| 11131 |
(page_aligned_alloc): New function. |
| 11132 |
* src/system.h (valloc): Remove. |
| 11133 |
|
| 11134 |
2004-07-09 Paul Eggert <[email protected]> |
| 11135 |
|
| 11136 |
* src/extract.c (extract_archive): Do not report an error |
| 11137 |
when hard-linking X to X when X exists. Problem reported by |
| 11138 |
Toby Peterson. |
| 11139 |
* lib/.cvsignore: Add fchown-stub.c. |
| 11140 |
|
| 11141 |
2004-06-29 Sergey Poznyakoff <[email protected]> |
| 11142 |
|
| 11143 |
* NEWS: Updated |
| 11144 |
* src/common.h (root_device): New global. |
| 11145 |
(gnu_restore): Renamed to purge_directory(). |
| 11146 |
* src/extract.c (extr_init): Save the device number |
| 11147 |
of the root device. |
| 11148 |
(extract_archive): Renamed gnu_restore() to purge_directory(). |
| 11149 |
* src/incremen.c (gnu_restore): Renamed to purge_directory(). |
| 11150 |
Do not attempt to purge the directory if it is on a different |
| 11151 |
device and one_file_system_option is set. |
| 11152 |
|
| 11153 |
2004-06-25 Sergey Poznyakoff <[email protected]> |
| 11154 |
|
| 11155 |
* doc/tar.texi: The actual default for exclude patterns |
| 11156 |
is --no-anchored. Fixed. |
| 11157 |
* src/tar.c (options): Likewise. |
| 11158 |
Thanks "Felix Natter" <[email protected]> for noticing. |
| 11159 |
|
| 11160 |
2004-06-22 Sergey Poznyakoff <[email protected]> |
| 11161 |
|
| 11162 |
* doc/tar.texi: Fixed several inconsistencies. |
| 11163 |
* src/tar.c: Fixed docstring for --checkpoint option. |
| 11164 |
|
| 11165 |
2004-05-19 Sergey Poznyakoff <[email protected]> |
| 11166 |
|
| 11167 |
* src/buffer.c (seek_archive): New function |
| 11168 |
* src/common.h (seek_archive): New function |
| 11169 |
(seekable_archive): New global. |
| 11170 |
* src/list.c (skip_file): Use seek_archive() if |
| 11171 |
possible. |
| 11172 |
* src/tar.c (struct fmttab): Accept 'pax' as alias |
| 11173 |
for 'posix' |
| 11174 |
(options): New option -n (--seek). |
| 11175 |
* src/update.c: Determine type of the archive before |
| 11176 |
appending to it. |
| 11177 |
|
| 11178 |
* TODO: Updated. |
| 11179 |
|
| 11180 |
2004-05-19 Sergey Poznyakoff <[email protected]> |
| 11181 |
|
| 11182 |
* bootstrap: New option --update-po |
| 11183 |
* src/tar.c: New option -H (short alias to --format) |
| 11184 |
* doc/tar.texi: Document -H option |
| 11185 |
* src/names.c (safer_name_suffix): Fixed bug introduced |
| 11186 |
2004-05-11. |
| 11187 |
|
| 11188 |
2004-05-16 Sergey Poznyakoff <[email protected]> |
| 11189 |
|
| 11190 |
* bootstrap: Apply patches from patch subdirectory |
| 11191 |
* patches: New dir |
| 11192 |
* patches/argp.diff: New file |
| 11193 |
* patches/getopt.diff: New file |
| 11194 |
* configure.ac: Check for _getopt_long_only_r and |
| 11195 |
force using included version of getopt if the function |
| 11196 |
is not available. |
| 11197 |
* src/tar.c: Use argp for command line parsing. |
| 11198 |
* src/system.h: Minor formatting fix |
| 11199 |
* m4/.cvsignore: Updated |
| 11200 |
* lib/.cvsignore: Updated |
| 11201 |
* doc/tar.texi: Minor fix. |
| 11202 |
* src/extract.c: Fix improper use of 'path' term |
| 11203 |
* src/incremen.c: Likewise |
| 11204 |
* src/list.c: Likewise |
| 11205 |
* src/misc.c: Likewise |
| 11206 |
* src/names.c: Likewise |
| 11207 |
* src/rmt.h: Likewise |
| 11208 |
* src/rtapelib.c: Likewise |
| 11209 |
* src/update.c: Likewise |
| 11210 |
* src/xheader.c: Likewise |
| 11211 |
* tests/star/README: Minor fix |
| 11212 |
|
| 11213 |
2004-05-13 Sergey Poznyakoff <[email protected]> |
| 11214 |
|
| 11215 |
* configure.ac: Raised version number to 1.14.1 |
| 11216 |
* src/tar.c: Renamed --strip-path to --strip-components |
| 11217 |
Changed improper use of _() to ngettext(). |
| 11218 |
* src/extract.c: Renamed strip_path_option to strip_components_option |
| 11219 |
* src/common.h: Likewise. |
| 11220 |
* NEWS: Updated. |
| 11221 |
* doc/tar.texi: Updated |
| 11222 |
|
| 11223 |
2004-05-11 Sergey Poznyakoff <[email protected]> |
| 11224 |
|
| 11225 |
* src/system.c (sys_child_open_for_uncompress): Do not |
| 11226 |
set read_full_records_option: the compressed archive is |
| 11227 |
likely not to contain integer number of records. Should |
| 11228 |
the user wish to use reblocking, he may always give tar |
| 11229 |
-B option. This is a minor improvement over the change |
| 11230 |
dated 2004-03-22. |
| 11231 |
* src/buffer.c (open_archive): Removed assignment to |
| 11232 |
read_full_records_option. |
| 11233 |
|
| 11234 |
* src/names.c (safer_name_suffix): (safer_name_suffix): Use "%s" |
| 11235 |
as the format argument, rather than a possibly-translated variable |
| 11236 |
string. Patch provided by Jim Meyering <[email protected]> |
| 11237 |
* src/tar.c (decode_options): Fixed typo in the comment. |
| 11238 |
* tests/star/README: Minor correction |
| 11239 |
|
| 11240 |
2004-05-11 Sergey Poznyakoff <[email protected]> |
| 11241 |
|
| 11242 |
* directory: New file. GNU directory entry for tar. |
| 11243 |
* doc/Makefile.am: Rewritten. Added rules for generating |
| 11244 |
documentation for the project's website. |
| 11245 |
* doc/.cvsignore: Updated |
| 11246 |
* doc/index.html.in: New file. |
| 11247 |
|
| 11248 |
2004-05-11 Sergey Poznyakoff <[email protected]> |
| 11249 |
|
| 11250 |
* configure.ac: Raised version number to 1.14 |
| 11251 |
* NEWS: Updated. |
| 11252 |
* tests/after: Added copyleft statement |
| 11253 |
* tests/before: Added copyleft statement |
| 11254 |
* tests/preset.in: Added copyleft statement |
| 11255 |
|
| 11256 |
Tar 1.14 is released. Sources up to this point are tagged |
| 11257 |
release_1_14 |
| 11258 |
|
| 11259 |
2004-05-10 Sergey Poznyakoff <[email protected]> |
| 11260 |
|
| 11261 |
* configure.ac: Fixed prerequisite headers for sys/buf.h |
| 11262 |
(needed on FreeBSD) |
| 11263 |
* src/system.h: Likewise. |
| 11264 |
* tests/after (compare): Fixed argument quoting under eval |
| 11265 |
* tests/before: Quote TAR_ARCHIVE_FORMATS |
| 11266 |
|
| 11267 |
2004-05-10 Sergey Poznyakoff <[email protected]> |
| 11268 |
|
| 11269 |
* NEWS: Updated |
| 11270 |
* README: Updated |
| 11271 |
* PORTS: Updated |
| 11272 |
* configure.ac: Call gl_AC_TYPE_INTMAX_T. Document |
| 11273 |
DEFAULT_.* variables. Use DEFAULT_RMT_COMMAND to set |
| 11274 |
the pathname of the rmt utility. |
| 11275 |
New option --enable-backup-scripts. |
| 11276 |
* doc/tar.texi: Updated |
| 11277 |
* scripts/Makefile.am: Install the scripts only if requested |
| 11278 |
by the configure. |
| 11279 |
* scripts/backup.in: Fixed --version output. |
| 11280 |
Fixed initialization of the listing files and printing |
| 11281 |
the time of the last previous level dump. |
| 11282 |
* scripts/restore.in: Fixed --version output. |
| 11283 |
* src/Makefile.am (localedir.h rule): Generate correct |
| 11284 |
DEFAULT_RMT_COMMAND variable. |
| 11285 |
* src/common.h (rmt_command_option): New variable. |
| 11286 |
* src/list.c (read_and): Print block number before |
| 11287 |
issuing 'Skipping to next header' diagnostics, if |
| 11288 |
requested by block_number_option. |
| 11289 |
* src/rtapelib.c: Use rmt_command_option instead of |
| 11290 |
hardcoded "/etc/rmt". |
| 11291 |
* src/tar.c: New option --rmt-command. |
| 11292 |
(decode_options): Handle --rmt-command. Initialize |
| 11293 |
rmt_command_option to DEFAULT_RMT_COMMAND. |
| 11294 |
|
| 11295 |
2004-05-09 Sergey Poznyakoff <[email protected]> |
| 11296 |
|
| 11297 |
* doc/tar.texi: Further update. |
| 11298 |
|
| 11299 |
2004-05-08 Sergey Poznyakoff <[email protected]> |
| 11300 |
|
| 11301 |
* configure.ac: Minor fix |
| 11302 |
* scripts/Makefile.am: Updated |
| 11303 |
* scripts/backup-specs: Updated |
| 11304 |
* scripts/backup.in: Minor fixes |
| 11305 |
* scripts/backup.sh: Removed |
| 11306 |
* scripts/backup.sh.in: New file. Source for backup.sh |
| 11307 |
* scripts/restore.in: New file |
| 11308 |
* scripts/.cvsignore: Updated |
| 11309 |
* scripts/WARNING: Removed |
| 11310 |
* doc/tar.texi: Updated |
| 11311 |
* NEWS: Updated |
| 11312 |
|
| 11313 |
2004-05-07 Sergey Poznyakoff <[email protected]> |
| 11314 |
|
| 11315 |
* src/names.c (name_gather): Bugfix: Honor single -C with |
| 11316 |
--same-order. |
| 11317 |
* tests/same-order01.sh: New file |
| 11318 |
* tests/same-order02.sh: New file |
| 11319 |
* tests/Makefile.am: Updated |
| 11320 |
|
| 11321 |
* tests/append.sh: Added copyleft header |
| 11322 |
* tests/delete01.sh: Likewise |
| 11323 |
* tests/delete02.sh: Likewise |
| 11324 |
* tests/delete04.sh: Likewise |
| 11325 |
* tests/extrac01.sh: Likewise |
| 11326 |
* tests/extrac02.sh: Likewise |
| 11327 |
* tests/extrac03.sh: Likewise |
| 11328 |
* tests/extrac04.sh: Likewise |
| 11329 |
* tests/gzip.sh: Likewise |
| 11330 |
* tests/ignfail.sh: Likewise |
| 11331 |
* tests/incremen.sh: Likewise |
| 11332 |
* tests/multiv01.sh: Likewise |
| 11333 |
* tests/old.sh: Likewise |
| 11334 |
* tests/options.sh: Likewise |
| 11335 |
* tests/recurse.sh: Likewise |
| 11336 |
* tests/version.sh: Likewise |
| 11337 |
* tests/volume.sh: Likewise |
| 11338 |
* tests/star/gtarfail.sh: Likewise |
| 11339 |
* tests/star/gtarfail2.sh: Likewise |
| 11340 |
* tests/star/multi-fail.sh: Likewise |
| 11341 |
* tests/star/pax-big-10g.sh: Likewise |
| 11342 |
* tests/star/qucktest.sh: Likewise |
| 11343 |
* tests/star/ustar-big-2g.sh: Likewise |
| 11344 |
* tests/star/ustar-big-8g.sh: Likewise |
| 11345 |
|
| 11346 |
* doc/.cvsignore: Updated |
| 11347 |
|
| 11348 |
2004-05-06 Sergey Poznyakoff <[email protected]> |
| 11349 |
|
| 11350 |
* configure.ac: Check whether date accepts +format argument |
| 11351 |
(for backup scripts). |
| 11352 |
* scripts/level-0: Removed |
| 11353 |
* scripts/level-1: Removed |
| 11354 |
* scripts/weekly.new: Removed |
| 11355 |
* scripts/dump-remind: Removed |
| 11356 |
* scripts/backup.in: New file |
| 11357 |
* scripts/backup.sh: New file |
| 11358 |
* scripts/dump-remind.in: New file |
| 11359 |
* scripts/backup-specs: Updated |
| 11360 |
* scripts/Makefile.am: Updated for new directory contents. |
| 11361 |
* scripts/.cvsignore: Updated |
| 11362 |
|
| 11363 |
2004-05-05 Sergey Poznyakoff <[email protected]> |
| 11364 |
|
| 11365 |
* TODO: Updated |
| 11366 |
* doc/tar.texi: Updated |
| 11367 |
* src/tar.c: --utc implies -vv |
| 11368 |
|
| 11369 |
2004-04-28 Sergey Poznyakoff <[email protected]> |
| 11370 |
|
| 11371 |
* src/utf8.c: Make sure ICONV_CONST is defined. AM_ICONV |
| 11372 |
does not define it if it fails to find iconv.h. |
| 11373 |
|
| 11374 |
2004-04-26 Sergey Poznyakoff <[email protected]> |
| 11375 |
|
| 11376 |
* bootstrap: Use gnulib-tool to generate lib/Makefile.am |
| 11377 |
and parts of configure.ac |
| 11378 |
* configure.ac: Invoke tar_GNULIB to configure gnulib stuff. |
| 11379 |
* lib/Makefile.am: Removed |
| 11380 |
* lib/Makefile.tmpl: New file. |
| 11381 |
* lib/.cvsignore: Updated |
| 11382 |
* m4/.cvsignore: Updated |
| 11383 |
* src/xheader.c: Include stpcpy.h |
| 11384 |
|
| 11385 |
* src/create.c: Produce an error, not warning, if the |
| 11386 |
filename is too long. |
| 11387 |
* tests/longv7.sh: Synchronized with the recent changes. |
| 11388 |
|
| 11389 |
2004-04-20 Sergey Poznyakoff <[email protected]> |
| 11390 |
|
| 11391 |
* configure.ac: Fixed test for iconv_t |
| 11392 |
* src/rmt.h: Bugfix by Jürgen Weigert |
| 11393 |
* THANKS: Add Jürgen Weigert |
| 11394 |
* tests/star/README: Fixed typo |
| 11395 |
|
| 11396 |
2004-04-04 Paul Eggert <[email protected]> |
| 11397 |
|
| 11398 |
Merge getdate documentation changes from coreutils. |
| 11399 |
|
| 11400 |
* doc/getdate.texi: Update from coreutils CVS. |
| 11401 |
* doc/tar.texi: Fix getdate menu to match getdate.texi's. |
| 11402 |
|
| 11403 |
Merge recent gnulib changes, and remove some lint. |
| 11404 |
|
| 11405 |
Improve support for nanosecond-resolution time stamps. |
| 11406 |
* bootstrap: Add gettime, timespec modules. |
| 11407 |
* configure.ac (gl_GETTIME, gl_TIMESPEC): Add. |
| 11408 |
* lib/.cvsignore (getopt_int.h, gettime.c, gettimeofday.c, |
| 11409 |
timespec.h): Add. |
| 11410 |
* lib/Makefile.am (libtar_a_SOURCES): Add gettime.c, timespec.h. |
| 11411 |
* m4/.cvsignore: Add clock_time.m4, gettime.m4, gettimeofday.m4, |
| 11412 |
st_mtim.m4, timespec.m4. Remove malloc.m4, realloc.m4. |
| 11413 |
* src/common.h (newer_mtime_option): Now a struct timespec, not |
| 11414 |
time_t. All uses changed. |
| 11415 |
(NEWER_OPTION_INITIALIZED, OLDER_STAT_MTIME): New macros. |
| 11416 |
* src/create.c (dump_file0): Use OLDER_STAT_TIME to compare times. |
| 11417 |
* src/incremen.c (scan_path): Likewise. |
| 11418 |
* src/list.c (read_and): Likewise. |
| 11419 |
* src/list.c (read_and): Use NEWER_OPTION_INITIALIZED to decide |
| 11420 |
whether newer_mtime_option is initialized. |
| 11421 |
* src/tar.c (decode_options): Likewise. |
| 11422 |
* src/tar.c (decode_options): Adjust to new signature for get_date. |
| 11423 |
|
| 11424 |
* src/buffer.c (short_read, flush_read): Use size_t, not ssize_t, for |
| 11425 |
result of safe_read, full_write, and similar functions. |
| 11426 |
Detect safe_read error by comparing to SAFE_READ_ERROR; |
| 11427 |
detect full_write error by comparing to 0. |
| 11428 |
All uses changed. |
| 11429 |
* src/common.h (write_error_details, sys_write_archive_buffer): |
| 11430 |
Likewise. |
| 11431 |
* src/misc.c (write_error_details): Likewise. |
| 11432 |
* src/rmt.c (main): Likewise. |
| 11433 |
* src/rmt.h (rmt_read__, rmt_write__): Likewise. |
| 11434 |
* src/rtapelib.c (rmt_read__, rmt_write__, rmt_ioctl__): Likewise. |
| 11435 |
* src/sparse.c (sparse_scan_file, sparse_dump_region, |
| 11436 |
check_sparse_region, check_data_region): Likewise. |
| 11437 |
* src/system.c (sys_write_archive_buffer, sys_drain_input_pipe, |
| 11438 |
sys_child_open_for_compress, sys_child_open_for_uncompress): Likewise. |
| 11439 |
* src/update.c (append_file): Likewise. |
| 11440 |
|
| 11441 |
* src/buffer.c (clear_read_error_count): Use explicit (void) |
| 11442 |
to indicate a function with no arguments. |
| 11443 |
* src/create.c (check_links): Likewise. |
| 11444 |
* src/system.c (sys_get_archive_stat, sys_save_archive_dev_ino, |
| 11445 |
sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell, |
| 11446 |
sys_reset_uid_gid, sys_get_archive_stat, sys_save_archive_dev_ino, |
| 11447 |
sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell): |
| 11448 |
Likewise. |
| 11449 |
* src/utf8.c (get_input_charset): Likewise. |
| 11450 |
* src/xheader.c (xheader_ghdr_name, xheader_write_global, |
| 11451 |
xheader_decode_global, extended_header_init): Likewise. |
| 11452 |
* tests/mksparse.c (usage): Likewise. |
| 11453 |
|
| 11454 |
* src/buffer.c (new_volume): Rename local variables to avoid |
| 11455 |
shadowing warnings. |
| 11456 |
* src/common.h (file_dumpable_p, sys_stat_nanoseconds, |
| 11457 |
sparse_file_p, sparse_member_p, sparse_fixup_header, |
| 11458 |
sparse_dump_file, sparce_extract_file, sparse_skip_file, |
| 11459 |
sparse_diff_file): Likewise. |
| 11460 |
* src/compare.c (diff_archive): Likewise. |
| 11461 |
* src/create.c (file_dumpable_p, dump_regular_file, dump_dir0, |
| 11462 |
dump_dir, dump_hard_link, file_count_links, dump_file0, dump_file): |
| 11463 |
Likewise. |
| 11464 |
* src/extract.c (repair_delayed_set_stat): Likewise. |
| 11465 |
* src/misc.c (maybe_backup_file, add_hierarchy_to_namelist): |
| 11466 |
Likewise. |
| 11467 |
* src/sparse.c (struct tar_sparse_optab, tar_sparse_dump_region, |
| 11468 |
tar_sparse_extract_region, sparse_dump_region, sparse_extract_region, |
| 11469 |
sparse_dump_file, sparse_file_p, sparse_member_p, |
| 11470 |
sparse_fixup_header, sparse_extract_file, sparse_skip_file, |
| 11471 |
check_data_region, sparse_diff_file): Likewise. |
| 11472 |
* src/system.c (sys_stat_nanoseconds): Likewise. |
| 11473 |
* src/xheader.c (xheader_format_name): Likewise. |
| 11474 |
|
| 11475 |
* src/common.h (enum old_files): Remove comma before }; not portable. |
| 11476 |
|
| 11477 |
* src/common.h (read_fatal_details): Add __attribute__ ((noreturn)). |
| 11478 |
* src/rmt.c (usage): Likewise. |
| 11479 |
* src/xheader.c (xheader_set_single_keyword): Likewise. |
| 11480 |
* tests/genfile.c (usage): Likewise. |
| 11481 |
* tests/mksparse.c (die, usage): Likewise. Also add printf attribute |
| 11482 |
to die. |
| 11483 |
|
| 11484 |
* src/common.h (gname_to_gid, uname_to_uid): Add const to avoid |
| 11485 |
some gcc warnings. |
| 11486 |
* src/names.c (uname_to_uid, gname_to_gid): Likewise. |
| 11487 |
* src/utf8.c (struct langtab.lang, struct langtab.terr, struct |
| 11488 |
langtab.charset, charset_lookup): Likewise. |
| 11489 |
|
| 11490 |
* src/common.h (name_init): Remove unused args. All callers changed. |
| 11491 |
* src/names.c (name_init): Likewise. |
| 11492 |
|
| 11493 |
* src/common.h (usage, xheader_write, xheader_write_global, |
| 11494 |
sys_reset_uid_gid): New decls. |
| 11495 |
|
| 11496 |
* src/compare.c (report_difference, process_noop): Add |
| 11497 |
__attribute__ ((unused)) for unused attributes. |
| 11498 |
* src/sparse.c (oldgnu_sparse_member_p, star_sparse_member_p): |
| 11499 |
Likewise. |
| 11500 |
* src/xheader.c (dummy_coder, dummy_decoder, atime_coder, |
| 11501 |
gid_coder, gname_coder, linkpath_coder, ctime_coder, mtime_coder, |
| 11502 |
path_coder, size_coder, uid_coder, uname_coder, |
| 11503 |
sparse_numblocks_coder): Likewise. |
| 11504 |
|
| 11505 |
* src/create.c (dump_regular_finish, dump_dir0, dump_dir, |
| 11506 |
dump_file0): Now static. |
| 11507 |
* src/utf8.c (charset_lookup): Likewise. |
| 11508 |
* src/xheader.c (xheader_protected_pattern_p, |
| 11509 |
xheader_protected_keyword_p, xheader_set_single_keyword, |
| 11510 |
xheader_keyword_deleted_p, xheader_keyword_override_p, |
| 11511 |
xheader_list_append, xheader_list_destroy, xheader_set_keyword_equal): |
| 11512 |
Likewise. |
| 11513 |
* tests/genfile.c (usage): Likewise. |
| 11514 |
* tests/mksparse.c (die, mkhole, mksparse, usage, xlat_suffix): |
| 11515 |
Likewise. |
| 11516 |
|
| 11517 |
* src/create.c (hash_link): Rewrite to avoid cast. |
| 11518 |
|
| 11519 |
* src/extract.c (file_newer_p): Use parameter, not global var. |
| 11520 |
* src/misc.c (write_error_details): Likewise. |
| 11521 |
|
| 11522 |
* src/extract.c (prepare_to_extract): Remove directory arg; not |
| 11523 |
used. All callers changed. |
| 11524 |
|
| 11525 |
* src/misc.c (close_fatal): Remove; not used. |
| 11526 |
* src/system.c (sys_utimes): Likewise. |
| 11527 |
|
| 11528 |
* src/rmt.c (get_string): Avoid buffer overrun (off by 1 error). |
| 11529 |
|
| 11530 |
* src/rmt.c (main): Update copyright date to 2004. |
| 11531 |
* src/tar.c (decode_options): Likewise. |
| 11532 |
|
| 11533 |
* src/rtapelib.c (get_status_string): Don't lose errno when |
| 11534 |
skipping the error messages. |
| 11535 |
(get_status): Report an error if atol returns a negative number. |
| 11536 |
|
| 11537 |
* src/utf8.c (struct langtab, langtab, charset_lookup, |
| 11538 |
get_input_charset) [!defined HAVE_LIBCONV]: Omit unused |
| 11539 |
definitions. |
| 11540 |
(iconv_open, iconv, iconv_close) [!defined HAVE_LIBCONV]: |
| 11541 |
Use macros, not definitions, to avoid type clashes with system |
| 11542 |
headers. |
| 11543 |
(charset_lookup): Local var is now auto, not static. |
| 11544 |
(utf8_convert): Use ICONV_CONST instead of const, to avoid |
| 11545 |
type clashes. |
| 11546 |
|
| 11547 |
* src/utf8.c (langtab): Initialize all elements of struct, to |
| 11548 |
avoid gcc warning. |
| 11549 |
* src/xheader.c (xhdr_tab): Likewise. |
| 11550 |
|
| 11551 |
* src/xheader.c: Include fnmatch.h, since we use fnmatch. |
| 11552 |
|
| 11553 |
* tests/mksparse.c (mkhole): Fix typo: bool was assigned to off_t. |
| 11554 |
|
| 11555 |
2004-04-04 Sergey Poznyakoff <[email protected]> |
| 11556 |
|
| 11557 |
* NEWS: Updated |
| 11558 |
* configure.ac: Raised version number to 1.13.94 |
| 11559 |
* src/system.h: Protect inclusion of <sys/time.h> |
| 11560 |
by ifdef. |
| 11561 |
Declare time() if HAVE_DECL_TIME is 0 |
| 11562 |
* tests/.cvsignore: Added mksparse |
| 11563 |
|
| 11564 |
* tests/sparse01.sh: New file |
| 11565 |
* tests/multiv02.sh: New file |
| 11566 |
* tests/Makefile.am: Add sparse01.sh and multiv02.sh |
| 11567 |
* tests/longv7.sh: Added missing call to 'after' |
| 11568 |
|
| 11569 |
* src/common.h: Added missing prototypes |
| 11570 |
* src/compare.c (diff_archive): Use is_sparse member |
| 11571 |
instead of GNUTYPE_SPARSE. |
| 11572 |
* src/create.c: Removed unused variables |
| 11573 |
* src/extract.c (extract_archive): Use sparse_member_p instead |
| 11574 |
of GNUTYPE_SPARSE. |
| 11575 |
Removed unused variables |
| 11576 |
* src/list.c (decode_header): Use sparse_fixup_header to correct |
| 11577 |
the st_size value. |
| 11578 |
(print_header): Do not rely on GNUTYPE_SPARSE type. |
| 11579 |
Use st->stat.st_size to print real file size. |
| 11580 |
(skip_member): Assign stat_info.file_name to save_name. This fixes |
| 11581 |
bug reported by Mads Martin Joergensen <[email protected]> |
| 11582 |
Use sparse_skip_file() to skip sparse members. |
| 11583 |
* src/rtapelib.c: include "common.h" |
| 11584 |
* src/sparse.c (struct tar_sparse_optab.sparse_member_p) |
| 11585 |
(struct tar_sparse_optab.fixup_header): New member |
| 11586 |
(tar_sparse_member_p): New function. |
| 11587 |
(tar_sparse_init): Return true if decode_header is not provided |
| 11588 |
(tar_sparse_fixup_header) |
| 11589 |
(sparse_member_p,sparse_fixup_header) |
| 11590 |
(sparse_skip_file) |
| 11591 |
(oldgnu_sparse_member_p,oldgnu_fixup_header,star_sparse_member_p) |
| 11592 |
(star_fixup_header, pax_sparse_member_p): New function |
| 11593 |
(pax_decode_header): Remove |
| 11594 |
* src/system.h: Include <sys/time.h> and <utime.h> when available |
| 11595 |
* src/tar.c (usage): Prototype moved to common.h |
| 11596 |
* src/tar.h (struct tar_stat_info.is_sparse): New member |
| 11597 |
* src/utf8.c (utf8_convert): Changed prototype |
| 11598 |
(get_input_charset): Removed unused variable |
| 11599 |
* src/xheader.c: include <fnmatch.h> |
| 11600 |
(size_decoder): Assign to both st->archive_file_size and |
| 11601 |
st->stat.st_size. |
| 11602 |
(st->stat.st_size): Assign to st->stat.st_size |
| 11603 |
(sparse_numbytes_decoder): Removed unused variable |
| 11604 |
* src/.cvsignore: Added .gdbinit |
| 11605 |
* THANKS: Added Mads Martin Joergensen |
| 11606 |
|
| 11607 |
2004-03-26 Sergey Poznyakoff <[email protected]> |
| 11608 |
|
| 11609 |
* src/create.c (write_long_name): Do not allow more than |
| 11610 |
NAME_FIELD_SIZE-1 characters in a file name for V7 format |
| 11611 |
archives. |
| 11612 |
* tests/longv7.sh: New file. |
| 11613 |
* tests/Makefile.am: Add longv7.sh |
| 11614 |
|
| 11615 |
2004-03-22 Sergey Poznyakoff <[email protected]> |
| 11616 |
|
| 11617 |
* src/buffer.c (open_archive): Clear read_full_records_option |
| 11618 |
if reading from a pipe. |
| 11619 |
(short_read): Display warning about the deduced record size |
| 11620 |
if version > 1 |
| 11621 |
* tests/star/pax-big-10g.sh: Updated to match the above changes. |
| 11622 |
* tests/star/ustar-big-2g.sh: Likewise. |
| 11623 |
* tests/star/ustar-big-8g.sh: Likewise. |
| 11624 |
|
| 11625 |
* configure.ac: Added gl_FUNC_STRTOULL |
| 11626 |
* src/create.c (start_header): Check for GNU_FORMAT |
| 11627 |
if incremental_option is set. |
| 11628 |
* src/xheader.c (to_decimal): New function. |
| 11629 |
(xheader_format_name): Use to_decimal() instead of snprintf. |
| 11630 |
* tests/listed01.sh: Use genfile instead of dd |
| 11631 |
* tests/multiv01.sh: Likewise. |
| 11632 |
|
| 11633 |
2004-03-12 Sergey Poznyakoff <[email protected]> |
| 11634 |
|
| 11635 |
* src/list.c (read_and): Stop processing the archive after |
| 11636 |
encountering a single zero record. Many old archives contain |
| 11637 |
arbitrary garbage after it. |
| 11638 |
The warning is issued anyway. |
| 11639 |
|
| 11640 |
2004-03-02 Sergey Poznyakoff <[email protected]> |
| 11641 |
|
| 11642 |
* src/rtapelib.c (rmt_lseek__,rmt_ioctl__): Bugfix. The |
| 11643 |
conversion buffer was not null terminated. Fix provided |
| 11644 |
by Leland Lucius <[email protected]> |
| 11645 |
* THANKS: Added Leland Lucius |
| 11646 |
* src/utf8.c (utf8_convert): Indentation fix. |
| 11647 |
|
| 11648 |
2004-02-29 Sergey Poznyakoff <[email protected]> |
| 11649 |
|
| 11650 |
* src/buffer.c (flush_read): Bugfix: the |
| 11651 |
condition at line 714 included |
| 11652 |
|
| 11653 |
|| (status > 0 && !read_full_records_option) |
| 11654 |
|
| 11655 |
which is grossly wrong, since even if new_volume() below succeeds, |
| 11656 |
the subsequent call to rmtread will overwrite the chunk of data |
| 11657 |
already read in the buffer and thus spoil everything. |
| 11658 |
* src/system.c (sys_child_open_for_uncompress): Minor stylistic |
| 11659 |
fix. |
| 11660 |
* tests/star/multi-fail.sh: New test. |
| 11661 |
* tests/Makefile.am: Added multi-fail.sh |
| 11662 |
* tests/star/README: Updated |
| 11663 |
|
| 11664 |
2004-02-29 Sergey Poznyakoff <[email protected]> |
| 11665 |
|
| 11666 |
* NEWS: Updated |
| 11667 |
* configure.ac: Removed spurious AC_CHECK_LIB(iconv) |
| 11668 |
* src/common.h (utc_option): new global |
| 11669 |
(enum old_files.KEEP_NEWER_FILES): New element |
| 11670 |
* src/extract.c: Handle --keep-newer-files option |
| 11671 |
* src/list.c (tartime): Print UTC if --utc was given. |
| 11672 |
* src/tar.c: New options: --utc and keep-newer-files |
| 11673 |
|
| 11674 |
* tests/Makefile.am: Added new tests |
| 11675 |
* tests/after: Rewritten |
| 11676 |
* tests/before: Rewritten |
| 11677 |
* tests/preset.in: Rewritten |
| 11678 |
* tests/delete03.sh: Accommodate for the new testsuite logic |
| 11679 |
* tests/gzip.sh: Likewise |
| 11680 |
* tests/incremen.sh: Likewise |
| 11681 |
* tests/listed01.sh: Likewise |
| 11682 |
* tests/multiv01.sh: Likewise |
| 11683 |
* tests/old.sh: Likewise |
| 11684 |
* tests/options.sh: Likewise |
| 11685 |
* tests/version.sh: Likewise |
| 11686 |
* tests/volume.sh: Likewise |
| 11687 |
|
| 11688 |
* tests/star: New directory |
| 11689 |
* tests/star/README: New file |
| 11690 |
* tests/star/gtarfail.sh: New file |
| 11691 |
* tests/star/gtarfail2.sh: New file |
| 11692 |
* tests/star/pax-big-10g.sh: New file |
| 11693 |
* tests/star/qucktest.sh: New file |
| 11694 |
* tests/star/ustar-big-2g.sh: New file |
| 11695 |
* tests/star/ustar-big-8g.sh: New file |
| 11696 |
|
| 11697 |
2004-02-26 Paul Eggert <[email protected]> |
| 11698 |
|
| 11699 |
* doc/tar.texi (dircategory Individual utilities): Append period, |
| 11700 |
as suggested by Karl Berry. |
| 11701 |
|
| 11702 |
2004-02-24 Sergey Poznyakoff <[email protected]> |
| 11703 |
|
| 11704 |
* src/list.c (decode_header): Call xheader_decode before |
| 11705 |
the assignment to current_stat_info.archive_file_size. |
| 11706 |
|
| 11707 |
2004-02-23 Paul Eggert <[email protected]> |
| 11708 |
|
| 11709 |
* configure.ac: Invoke AM_ICONV, to define ICONV_CONST if needed. |
| 11710 |
|
| 11711 |
2004-02-23 Sergey Poznyakoff <[email protected]> |
| 11712 |
|
| 11713 |
1.13.93 released. |
| 11714 |
|
| 11715 |
* NEWS: Updated |
| 11716 |
* tests/before: Move testing of the prerequisite archive formats |
| 11717 |
to the separate function 'prereq'. Do not expect any arguments |
| 11718 |
* tests/delete03.sh: Use prereq() instead of passing arguments |
| 11719 |
to 'before'. |
| 11720 |
* tests/incremen.sh: Likewise. |
| 11721 |
* tests/listed01.sh: Likewise. |
| 11722 |
* tests/multiv01.sh: Likewise. |
| 11723 |
|
| 11724 |
2004-02-22 Sergey Poznyakoff <[email protected]> |
| 11725 |
|
| 11726 |
Added UTF-8 support. Finished global extended header |
| 11727 |
support. |
| 11728 |
|
| 11729 |
* NEWS: Minor fix |
| 11730 |
* configure.ac: Detect libiconv |
| 11731 |
* src/utf8.c: New file. Conversions to and from utf-8. |
| 11732 |
* src/Makefile.am: Added utf8.c |
| 11733 |
* src/create.c (write_header_name) In pax format, use |
| 11734 |
"path" keyword if the file name is not ASCII |
| 11735 |
(start_header): Likewise for uname and gname. |
| 11736 |
* src/list.c: Decode encountered global headers. |
| 11737 |
* src/xheader.c: Use keywords from the global |
| 11738 |
headers. |
| 11739 |
Correctly handle UTF-8 conversions. |
| 11740 |
(xheader_list_destroy): New function. |
| 11741 |
(xheader_set_single_keyword,xheader_set_keyword_equal): Added |
| 11742 |
missing gettext markers |
| 11743 |
(decode_record): Rewritten using caller-provided handler and |
| 11744 |
data closure. |
| 11745 |
* tests/listed01.sh: Give credit to Andreas Schuldei. |
| 11746 |
|
| 11747 |
2004-02-21 Sergey Poznyakoff <[email protected]> |
| 11748 |
|
| 11749 |
* src/create.c (dump_file0): The conditional at line |
| 11750 |
1296 prevented incremental backups on individual files |
| 11751 |
from working, as reported by Andreas Schuldei |
| 11752 |
<[email protected]>. |
| 11753 |
|
| 11754 |
This is due to the condition |
| 11755 |
|
| 11756 |
(0 < top_level || !incremental_option) |
| 11757 |
|
| 11758 |
Removing it makes incremental backups work for individual |
| 11759 |
files as well as for directories. On the other hand, it does |
| 11760 |
not affect other functionality, as shown by the reasoning below: |
| 11761 |
|
| 11762 |
To begin with, the two parts of this condition are mutually |
| 11763 |
superfluous, because |
| 11764 |
|
| 11765 |
1) when top_level < 0, incremental_option == 1 |
| 11766 |
so the condition yields false |
| 11767 |
2) when top_level >= 0, incremental_option == 0 |
| 11768 |
so the condition yields true. |
| 11769 |
|
| 11770 |
In other words, it is completely equivalent to |
| 11771 |
|
| 11772 |
(!incremental_option) |
| 11773 |
|
| 11774 |
Now, let's consider the effect of its removal. There are two cases: |
| 11775 |
|
| 11776 |
1) when incremental_option==1 |
| 11777 |
This means incremental backup in progress. In this case dump_file |
| 11778 |
is invoked only for directories or for files marked with 'Y' by |
| 11779 |
get_directory_contents. The latter are those that did not meet the |
| 11780 |
condition in incremen.c:242, which is exactly the same condition |
| 11781 |
as this at create.c:1296. So, for these files the check |
| 11782 |
(!incremental_option) is useless, since the rest of the |
| 11783 |
conditional will yield false anyway. On the other hand, if |
| 11784 |
dump_file is invoked on a directory, the conditional will yield |
| 11785 |
false due to !S_ISDIR assertion, so these will be processed as usual. |
| 11786 |
|
| 11787 |
Thus, for this case the extra condition (!incremental_option) is |
| 11788 |
irrelevant, and its removal won't alter the behavior of tar, |
| 11789 |
*except* that it will enable incremental backups on individual |
| 11790 |
files, which is the wanted effect. |
| 11791 |
|
| 11792 |
2) when incremental_option==0 |
| 11793 |
In this case the condition yields true and its removal does not |
| 11794 |
affect the functionality. |
| 11795 |
|
| 11796 |
* THANKS: Updated |
| 11797 |
* configure.ac: Raised patchlevel to 93 |
| 11798 |
* src/incremen.c: Minor stylistic fixes. |
| 11799 |
* tests/listed01.sh: New test. Check listed incremental |
| 11800 |
backups on individual files. |
| 11801 |
* tests/Makefile.am: Added listed01.sh |
| 11802 |
|
| 11803 |
2004-02-20 Sergey Poznyakoff <[email protected]> |
| 11804 |
|
| 11805 |
* src/common.h (simple_finish_header,start_private_header): New |
| 11806 |
declarations |
| 11807 |
(xheader_ghdr_name): Changed declaration |
| 11808 |
* src/create.c (start_private_header): Removed static qualifier. |
| 11809 |
(write_extended): Removed superfluous last argument. Use |
| 11810 |
xheader_write() |
| 11811 |
(simple_finish_header): New function. |
| 11812 |
(finish_header): Use simple_finish_header() to break recursive |
| 11813 |
dependency between this function and write_extended(). |
| 11814 |
* src/tar.c (assert_format): Do not bail out if several |
| 11815 |
--format arguments are given. This is a common case when |
| 11816 |
TAR_OPTIONS are used. |
| 11817 |
(decode_options): New option --show-defaults displays the |
| 11818 |
compiled-in defaults. |
| 11819 |
Use POSIX format if no --format option was given and |
| 11820 |
--pax-option was specified. |
| 11821 |
Do not allow to use --pax-option unless the archive format is |
| 11822 |
set to POSIX (or reading subcommand is requested). |
| 11823 |
|
| 11824 |
* src/update.c (update_archive): Write global extended header if |
| 11825 |
constructed. |
| 11826 |
* src/xheader.c (xheader_format_name): Bugfix. |
| 11827 |
(xheader_xhdr_name): Changed the default extended header name |
| 11828 |
to '%d/PaxHeaders.%p/%f', as POSIX requires. |
| 11829 |
(xheader_ghdr_name): Removed unused argument. |
| 11830 |
(xheader_write,xheader_write_global): New function. |
| 11831 |
(xheader_decode): Modified to honor overrides whatever |
| 11832 |
the current archive format is. |
| 11833 |
|
| 11834 |
* src/delete.c (delete_archive_members): Call xheader_decode |
| 11835 |
unconditionally. |
| 11836 |
* src/list.c (decode_header): Likewise. |
| 11837 |
* src/incremen.c (sort_obstack): Fixed typo in the comment |
| 11838 |
|
| 11839 |
* doc/tar.texi: Document new default for extended |
| 11840 |
header names. |
| 11841 |
|
| 11842 |
* tests/before: Accept an optional list of allowed archive |
| 11843 |
formats. Exit with the status 77 if the current archive |
| 11844 |
format does not match any of them. |
| 11845 |
* tests/delete03.sh: Require gnu, oldgnu or posix format |
| 11846 |
* tests/incremen.sh: Require gnu or oldgnu format |
| 11847 |
* tests/multiv01.sh: Likewise |
| 11848 |
|
| 11849 |
2004-02-20 Sergey Poznyakoff <[email protected]> |
| 11850 |
|
| 11851 |
* doc/tar.texi (Option Summary): Documented --pax-option |
| 11852 |
* src/tar.c: Likewise. |
| 11853 |
* NEWS: Likewise. |
| 11854 |
* src/create.c (to_chars): Added a comment. |
| 11855 |
* src/tar.h: Comment to GNU_FORMAT |
| 11856 |
|
| 11857 |
2004-02-18 Sergey Poznyakoff <[email protected]> |
| 11858 |
|
| 11859 |
* README: Updated |
| 11860 |
* configure.ac: Added stpcpy |
| 11861 |
* bootstrap: Likewise |
| 11862 |
* lib/Makefile.am: Likewise |
| 11863 |
* src/common.h (xheader_xhdr_name,xheader_ghdr_name): New |
| 11864 |
functions |
| 11865 |
* src/create.c (write_extended): Call xheader_xhdr_name |
| 11866 |
instead of using hardcoded "././@PaxHeader" name. |
| 11867 |
* src/tar.c: New option --pax-option (equivalent to -o option |
| 11868 |
of pax). |
| 11869 |
* src/xheader.c: Implement pax -o option. Fixed misleading |
| 11870 |
heading comment (introduced 2003-09-02). |
| 11871 |
* src/incremen.c: Minor fixes |
| 11872 |
* m4/.cvsignore: Updated |
| 11873 |
|
| 11874 |
2004-02-17 Sergey Poznyakoff <[email protected]> |
| 11875 |
|
| 11876 |
* src/incremen.c: Removed accumulator stuff in favor of obstack. |
| 11877 |
(get_directory_contents): Split into two functions |
| 11878 |
* src/update.c: Minor changes |
| 11879 |
* doc/tar.texi: Fixed typo |
| 11880 |
|
| 11881 |
2004-02-15 Paul Eggert <[email protected]> |
| 11882 |
|
| 11883 |
Fix Debian bug 230872, originally reported by Jeff King in |
| 11884 |
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=230872>. |
| 11885 |
|
| 11886 |
* doc/tar.texi (posix compliance): Remove. The whole section |
| 11887 |
was a misunderstanding of what POSIXLY_CORRECT is supposed to |
| 11888 |
mean. The GNU Coding Standards says that POSIXLY_CORRECT |
| 11889 |
is for disabling extensions that are incompatible with POSIX: |
| 11890 |
it is not for disabling compatible extensions. All references |
| 11891 |
to this section removed. |
| 11892 |
(posix): This format is created only if the posix format is |
| 11893 |
specified; it is no longer created if gnu format is specified |
| 11894 |
and POSIXLY_CORRECT is set. |
| 11895 |
* src/tar.c (decode_options): Ignore POSIXLY_CORRECT. |
| 11896 |
POSIX does not specify the behavior of tar, so we should |
| 11897 |
not worry about POSIXLY_CORRECT here. |
| 11898 |
|
| 11899 |
2004-01-21 Sergey Poznyakoff <[email protected]> |
| 11900 |
|
| 11901 |
* Makefile.am: Removed m4 |
| 11902 |
* configure.ac: Require automake-1.8/autoconf-2.59. Removed |
| 11903 |
m4/Makefile. |
| 11904 |
* README-alpha: Updated |
| 11905 |
* bootstrap: Updated TP URL, improved help output. Default |
| 11906 |
to :ext:anoncvs and set CVS_RSH, unless already set. |
| 11907 |
* m4/Makefile.am: Removed |
| 11908 |
|
| 11909 |
2004-01-21 Sergey Poznyakoff <[email protected]> |
| 11910 |
|
| 11911 |
* bootstrap: Bugfix by Marco Gerards <[email protected]>: |
| 11912 |
Use $option instead of $1 so all options will be parsed. |
| 11913 |
|
| 11914 |
2004-01-04 Sergey Poznyakoff <[email protected]> |
| 11915 |
|
| 11916 |
Started rewriting buffer.c ... |
| 11917 |
|
| 11918 |
* bootstrap: New option --no-po |
| 11919 |
* src/buffer.c (new_volume,check_label_pattern): Changed return type. |
| 11920 |
(time_to_start_writing): Changed data type |
| 11921 |
(file_to_switch_to): Removed. Variable never assigned to. |
| 11922 |
(open_archive) Moved option compatibility checks to tar.c |
| 11923 |
Other minor changes. |
| 11924 |
* src/common.h (maybe_backup_file): Changed return type |
| 11925 |
* src/misc.c: Likewise. |
| 11926 |
* src/create.c: Updated invocations of safer_name_suffix |
| 11927 |
* src/extract.c: Likewise |
| 11928 |
* src/delete.c: Updated assignment to write_archive_to_stdout |
| 11929 |
* src/tar.c (decode_options): More option compatibility checks |
| 11930 |
(moved from buffer.c) |
| 11931 |
* src/update.c (time_to_start_writing): Changed data type. |
| 11932 |
* tests/recurse.sh: New test case. |
| 11933 |
* tests/mksparse.c: New file. |
| 11934 |
* tests/Makefile.am: Added recurse.sh and mksparse.c |
| 11935 |
|
| 11936 |
2004-01-02 Sergey Poznyakoff <[email protected]> |
| 11937 |
|
| 11938 |
* src/sparse.c (sparse_diff_file): Bugfix. Thanks |
| 11939 |
Martin Simmons for the patch. |
| 11940 |
* src/create.c (dump_dir0): Bugfix. Thanks Piotr Czerwinski |
| 11941 |
<[email protected]> for the patch. |
| 11942 |
|
| 11943 |
2003-12-26 Paul Eggert <[email protected]> |
| 11944 |
|
| 11945 |
Synchronize with Gettext 0.13.1, Automake 1.8, Autoconf 2.59, |
| 11946 |
and translation website. |
| 11947 |
|
| 11948 |
* bootstrap: Don't bother skipping codeset.m4, glibc21.m4, |
| 11949 |
intdiv0.m4, inttypes_h.m4, inttypes.m4, inttypes-pri.m4, |
| 11950 |
isc-posix.m4, and lcmessage.m4 from gnulib. This list of files is |
| 11951 |
a bit obsolete anyway, now that gettext 0.13.1 is out. Also, the |
| 11952 |
files are replaced by autoreconf. Also, there seems to be a bug |
| 11953 |
in gettext/autoconf/automake if we try to omit these files after |
| 11954 |
autoreconf has replaced them, even though the gettext manual says |
| 11955 |
they're optional. So give up and just include them for now, even |
| 11956 |
though they make 'configure' longer and slower. |
| 11957 |
|
| 11958 |
Change translation URL from |
| 11959 |
<http://www.iro.umontreal.ca/contrib/po/maint/tar/> to |
| 11960 |
<http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/> to |
| 11961 |
accommodate translator website revamp. |
| 11962 |
|
| 11963 |
Fail if autoreconf fails. |
| 11964 |
|
| 11965 |
* m4/.cvsignore: Add intmax.m4, longdouble.m4, printf-posix.m4, |
| 11966 |
signed.m4, size_max.m4, wchar_t.m4, wint_t.m4, xsize.m4, to |
| 11967 |
ignore files now supplied by gettext 0.13.1. |
| 11968 |
|
| 11969 |
2003-12-25 Sergey Poznyakoff <[email protected]> |
| 11970 |
|
| 11971 |
Synchronized with the backup repository on Mirddin |
| 11972 |
|
| 11973 |
2003-12-19 Sergey Poznyakoff <[email protected]> |
| 11974 |
|
| 11975 |
* configure.ac: Check for varios members of struct stat |
| 11976 |
that may represent file modification times with a subsecond |
| 11977 |
precision. |
| 11978 |
Check for utimes (for future use) |
| 11979 |
* src/buffer.c (short_read): Issue a warning on short reads. |
| 11980 |
* src/common.h (sys_stat_nanoseconds): New function |
| 11981 |
* src/create.c (dump_file0): Use sys_stat_nanoseconds(). |
| 11982 |
* src/list.c (read_and): Treat only two successive zero |
| 11983 |
filled blocks as an EOF indicator. Issue a warning if |
| 11984 |
a single one is encountered. |
| 11985 |
* src/system.c (sys_stat_nanoseconds): New function |
| 11986 |
* src/tar.h (tar_stat_info.atime_nsec,mtime_nsec,ctime_nsec): New |
| 11987 |
members. |
| 11988 |
* src/xheader.c (code_time,decode_time): Support for subsecond |
| 11989 |
precision. |
| 11990 |
(atime_coder,atime_decoder,ctime_coder,ctime_decoder) |
| 11991 |
(mtime_coder,mtime_decoder): Update invocations of code_time and |
| 11992 |
decode_time. |
| 11993 |
(gid_decoder,size_decoder,uid_decoder,sparse_size_decoder) |
| 11994 |
(sparse_numblocks_decoder,sparse_offset_decoder) |
| 11995 |
(sparse_numbytes_decoder): Updated |
| 11996 |
|
| 11997 |
2003-12-18 Sergey Poznyakoff <[email protected]> |
| 11998 |
|
| 11999 |
* src/names.c (safer_name_suffix): Reverted change made |
| 12000 |
2003-11-14. Reason: Discussion with Paul Eggert and |
| 12001 |
Jean-Louis Martineau. See also ChangeLog entry from |
| 12002 |
1999-08-14. |
| 12003 |
* tests/delete03.sh: Likewise. |
| 12004 |
* tests/extrac04.sh: Likewise. |
| 12005 |
* tests/multiv01.sh: Likewise. |
| 12006 |
|
| 12007 |
2003-12-12 Sergey Poznyakoff <[email protected]> |
| 12008 |
|
| 12009 |
* src/incremen.c (write_directory_file): Use sys_truncate |
| 12010 |
* src/list.c (print_header): Use archive_file_size member |
| 12011 |
when printing real file size. |
| 12012 |
* src/sparse.c (sparse_scan_file): Correctly handle files with |
| 12013 |
a hole at the end. |
| 12014 |
(sparse_dump_region,sparse_extract_region): Allow for zero size |
| 12015 |
trailing blocks |
| 12016 |
|
| 12017 |
2003-12-12 Sergey Poznyakoff <[email protected]> |
| 12018 |
|
| 12019 |
* configure.ac: Raised version number to 1.13.92 |
| 12020 |
* src/list.c (decode_header): Discern between pax and ustar |
| 12021 |
formats |
| 12022 |
Initialize current_stat_info.archive_file_size. |
| 12023 |
|
| 12024 |
NOTE: Modifications from this date on are temporarily |
| 12025 |
stored on local CVS on mirddin. This repository will |
| 12026 |
be synchronized with Savannah as soon as the latter |
| 12027 |
becomes operational again. |
| 12028 |
|
| 12029 |
2003-12-01 Sergey Poznyakoff <[email protected]> |
| 12030 |
|
| 12031 |
* TODO: Updated |
| 12032 |
* src/sparse.c: Initial implementation of GNU/pax sparse |
| 12033 |
file format. |
| 12034 |
* src/common.h (xheader_store): Changed prototype. |
| 12035 |
* src/create.c: Update calls to xheader_store |
| 12036 |
* src/extract.c (extract_archive): Check reported size vs. |
| 12037 |
archive file size to determine if we have to do with a |
| 12038 |
sparse file. |
| 12039 |
* src/tar.c (usage): Cleaned up the sample argument to --newer |
| 12040 |
option. |
| 12041 |
(decode_options): Allow --sparse for POSIX_FORMAT archives. |
| 12042 |
* src/xheader.c (struct xhdr_tab.coder; all coder function): Added |
| 12043 |
extra argument |
| 12044 |
Implemented GNU.sparse.* keywords. |
| 12045 |
|
| 12046 |
2003-11-30 Sergey Poznyakoff <[email protected]> |
| 12047 |
|
| 12048 |
* configure.ac: Check for setlocale. Thanks Bruno Haible for |
| 12049 |
reporting. |
| 12050 |
|
| 12051 |
2003-11-25 Sergey Poznyakoff <[email protected]> |
| 12052 |
|
| 12053 |
* src/create.c (write_gnu_long_link): Use oldgnu |
| 12054 |
magic with @LongLink blocks. |
| 12055 |
|
| 12056 |
2003-11-17 Sergey Poznyakoff <[email protected]> |
| 12057 |
|
| 12058 |
* src/tar.h: Support for star sparse format. |
| 12059 |
* src/sparse.c: Likewise. |
| 12060 |
|
| 12061 |
2003-11-17 Sergey Poznyakoff <[email protected]> |
| 12062 |
|
| 12063 |
* src/sparse.c (sparse_diff_file): New function |
| 12064 |
* src/common.h (sys_compare_uid,sys_compare_gid): New functions |
| 12065 |
(sys_compare_uid_gid): Removed. |
| 12066 |
(sys_compare_links,report_difference): Changed prototype |
| 12067 |
(sparse_diff_file): New function |
| 12068 |
* src/system.c (sys_compare_uid,sys_compare_gid): New functions |
| 12069 |
(sys_compare_uid_gid): Removed. |
| 12070 |
(sys_compare_links): Changed declaration |
| 12071 |
* src/compare.c (diff_archive): Use sparse_diff_file. |
| 12072 |
|
| 12073 |
2003-11-16 Sergey Poznyakoff <[email protected]> |
| 12074 |
|
| 12075 |
Rewritten sparse file handling. |
| 12076 |
|
| 12077 |
* src/sparse.c: New file. Provides a universal framework |
| 12078 |
for various methods for sparse files handling. |
| 12079 |
* src/Makefile.am: Added sparse.c |
| 12080 |
* src/common.h (struct sp_array,sparsearray,sp_array_size) |
| 12081 |
(init_sparsearray,fill_in_sparse_array): Removed |
| 12082 |
(enum dump_status): New data type |
| 12083 |
(pad_archive,close_diag,open_diag,read_diag_details) |
| 12084 |
(readlink_diag,savedir_diag,seek_diag_details,stat_diag): New |
| 12085 |
functions. |
| 12086 |
(sparse_file_p,sparse_dump_file,sparse_extract_file): New |
| 12087 |
functions. |
| 12088 |
(print_header): Changed prototype declaration. |
| 12089 |
* src/tar.h (struct sp_array): Declaration from common.h |
| 12090 |
(struct tar_stat_info): New members archive_file_size, |
| 12091 |
sparse_map_avail,sparse_map. |
| 12092 |
* src/create.c: Major rewrite. |
| 12093 |
* src/extract.c: Use new sparse file interface. |
| 12094 |
* src/compare.c (diff_sparse_files): Temporary placeholder. |
| 12095 |
|
| 12096 |
* src/buffer.c: Minor changes |
| 12097 |
* src/tar.c: Likewise. |
| 12098 |
* src/list.c: Likewise. |
| 12099 |
* src/misc.c (close_diag,open_diag,read_diag_details) |
| 12100 |
(readlink_diag,savedir_diag,seek_diag_details,stat_diag): New |
| 12101 |
diagnostics functions. |
| 12102 |
* src/incremen.c: Use new diagnostics functions. |
| 12103 |
* src/names.c: Likewise. |
| 12104 |
|
| 12105 |
2003-11-14 Sergey Poznyakoff <[email protected]> |
| 12106 |
|
| 12107 |
* configure.ac: Fixed check for setsockopt |
| 12108 |
|
| 12109 |
* src/create.c: Do not zero-terminate name field if |
| 12110 |
the name is exactly 100 characters long. |
| 12111 |
(write_ustar_long_name): Fixed checking for unsplittable |
| 12112 |
names. |
| 12113 |
|
| 12114 |
2003-11-14 Sergey Poznyakoff <[email protected]> |
| 12115 |
|
| 12116 |
* src/create.c (start_header): Removed debugging hook |
| 12117 |
(dump_file): Fixed handling of linkname field. |
| 12118 |
* src/names.c (safer_name_suffix): If the input |
| 12119 |
file name ends with a slash, output one should do so |
| 12120 |
as well. |
| 12121 |
* doc/tar.texi: Documented --format=ustar |
| 12122 |
|
| 12123 |
2003-11-14 Sergey Poznyakoff <[email protected]> |
| 12124 |
|
| 12125 |
* src/tar.h (archive_format): USTAR_FORMAT: New type. |
| 12126 |
* src/create.c: Added POSIX.1-1988 support. |
| 12127 |
* src/names.c (safer_name_suffix): Skip leading ./ |
| 12128 |
* src/tar.c: New option --format=ustar forces |
| 12129 |
POSIX.1-1988 archive format. |
| 12130 |
* tests/delete03.sh: Updated. |
| 12131 |
* tests/extrac04.sh: Updated. |
| 12132 |
* tests/multiv01.sh: Updated. |
| 12133 |
|
| 12134 |
2003-11-13 Sergey Poznyakoff <[email protected]> |
| 12135 |
|
| 12136 |
* src/list.c (read_and): Initialize current_stat_info |
| 12137 |
and extended_header at the start of the loop. |
| 12138 |
* src/names.c (all_names_found): Check if the argument |
| 12139 |
contains valid filename. Fixes coredump on `not_a_tar_file' |
| 12140 |
* src/xheader.c (atime_decoder,gid_decoder,ctime_decoder) |
| 12141 |
(mtime_decoder,size_decoder,uid_decoder): Use xstrtoumax. |
| 12142 |
Fixes `pax-big-10g' bug. |
| 12143 |
|
| 12144 |
2003-11-12 Paul Eggert <[email protected]> |
| 12145 |
|
| 12146 |
Fix some C compatibility bugs reported by Joerg Schilling. |
| 12147 |
|
| 12148 |
* src/common.h (stripped_prefix_len): Fix misspelling |
| 12149 |
"stripped_path_len" in declaration. |
| 12150 |
* src/rmt.c (main): Use "return FOO;" rather than |
| 12151 |
"exit (FOO);"; we no longer have to worry about |
| 12152 |
pre-ANSI hosts that mishandled returned values from "main". |
| 12153 |
* src/tar.c (main): Likewise. This avoids warnings on some |
| 12154 |
compilers. |
| 12155 |
* src/system.c: Include signal.h, for 'kill'. |
| 12156 |
* src/system.h (DEV_BSIZE): Remove. |
| 12157 |
(DEFAULT_ST_BLKSIZE): New macro. |
| 12158 |
(ST_BLKSIZE): Use it, instead of DEV_BSIZE. |
| 12159 |
* src/tar.c (enum): Remove comma just before }. |
| 12160 |
|
| 12161 |
2003-11-12 Sergey Poznyakoff <[email protected]> |
| 12162 |
|
| 12163 |
* src/list.c (decode_header): Initialize st_atime and |
| 12164 |
st_ctime. |
| 12165 |
|
| 12166 |
2003-11-11 Sergey Poznyakoff <[email protected]> |
| 12167 |
|
| 12168 |
* configure.ac (tar_save_LIBS): Bugfix. Thanks Adrian |
| 12169 |
Bunk <[email protected]> for reporting. |
| 12170 |
* doc/tar.texi: Fixed spelling. Thanks Martin Buchholz |
| 12171 |
<[email protected]> for spotting. |
| 12172 |
|
| 12173 |
2003-11-04 Paul Eggert <[email protected]> |
| 12174 |
|
| 12175 |
* src/xheader.c (xhdr_tab): Make it extern, not static, as C89 and |
| 12176 |
C99 require this. |
| 12177 |
|
| 12178 |
2003-10-26 Paul Eggert <[email protected]> |
| 12179 |
|
| 12180 |
* src/system.c (sys_spawn_shell): Cast trailing null to (char *). |
| 12181 |
Bug reported by Christian Weisgerber. |
| 12182 |
|
| 12183 |
2003-10-19 Sergey Poznyakoff <[email protected]> |
| 12184 |
|
| 12185 |
* AUTHORS: Updated |
| 12186 |
* NEWS: Updated |
| 12187 |
* src/tar.c (decode_options): Removed superfluous archive format |
| 12188 |
check |
| 12189 |
* doc/tar.texi: Documented new features. |
| 12190 |
|
| 12191 |
2003-10-08 Sergey Poznyakoff <[email protected]> |
| 12192 |
|
| 12193 |
* NEWS: Updated |
| 12194 |
* THANKS: Added Wojciech Polak |
| 12195 |
* configure.ac: Added checks for missing functions. Raised |
| 12196 |
version number to indicate alpha release. |
| 12197 |
* lib/Makefile.am: Added missing headers |
| 12198 |
* lib/waitpid.c: Added missing includes. |
| 12199 |
* src/extract.c: Likewise. |
| 12200 |
* src/names.c: Removed spurious includes. |
| 12201 |
* src/xheader.c: Likewise. |
| 12202 |
* src/system.h [MSDOS]: Fixed spelling of EACCES. Added |
| 12203 |
macro overriding broken mkdir prototypes. |
| 12204 |
|
| 12205 |
2003-10-04 Sergey Poznyakoff <[email protected]> |
| 12206 |
|
| 12207 |
* configure.ac: Check for dev_t and ino_t. |
| 12208 |
* m4/Makefile.am: Added missing files. |
| 12209 |
* src/system.c: New file. |
| 12210 |
* src/Makefile.am: Added system.c |
| 12211 |
* src/common.h: Prototypes for functions from system.c |
| 12212 |
* src/system.h (SET_BINARY_MODE, ERRNO_IS_EACCESS): New defines |
| 12213 |
* src/buffer.c: Moved system dependencies to system.c |
| 12214 |
* src/compare.c: Likewise. |
| 12215 |
* src/create.c: Likewise. |
| 12216 |
* src/delete.c: Likewise. |
| 12217 |
* src/extract.c: Likewise. |
| 12218 |
* src/rtapelib.c: Likewise. |
| 12219 |
|
| 12220 |
2003-10-04 Sergey Poznyakoff <[email protected]> |
| 12221 |
|
| 12222 |
Implemented --occurrence option. |
| 12223 |
|
| 12224 |
* NEWS: Updated. |
| 12225 |
* src/tar.c: New option --occurrence. |
| 12226 |
* src/common.h (occurrence_option): New global |
| 12227 |
(struct name): Changed `found' member to `uintmax_t |
| 12228 |
found_count'. |
| 12229 |
(names_done): Removed |
| 12230 |
(all_names_found): Changed prototype. |
| 12231 |
(ISFOUND,WASFOUND): New macros |
| 12232 |
* src/delete.c (delete_archive_members): Honor --occurrence |
| 12233 |
option. |
| 12234 |
* src/list.c (read_and): Likewise. |
| 12235 |
* src/names.c: Count number of occurrences of each name in the |
| 12236 |
archive. |
| 12237 |
(name_match): Honor --occurrence option. |
| 12238 |
(names_done): Removed |
| 12239 |
(all_names_found,names_notfound): Rewritten. |
| 12240 |
|
| 12241 |
2003-10-02 Sergey Poznyakoff <[email protected]> |
| 12242 |
|
| 12243 |
* src/tar.c: Removed extra precaution regarding |
| 12244 |
subcommand_option == CAT_SUBCOMMAND |
| 12245 |
* lib/Makefile.am: Updated |
| 12246 |
|
| 12247 |
2003-10-02 Sergey Poznyakoff <[email protected]> |
| 12248 |
|
| 12249 |
* src/common.h (names_done): New function. |
| 12250 |
* src/names.c: Likewise. |
| 12251 |
* src/list.c (read_and): Use all_names_found() as `while' |
| 12252 |
condition. |
| 12253 |
* src/tar.c: New option --first-copy |
| 12254 |
* NEWS: Updated |
| 12255 |
|
| 12256 |
2003-09-24 Paul Eggert <[email protected]> |
| 12257 |
|
| 12258 |
* src/rmt.c (main): Don't translate Copyright string; international |
| 12259 |
law says the word "Copyright" should be in English. |
| 12260 |
* src/tar.c (decode_options): Likewise. |
| 12261 |
|
| 12262 |
2003-09-22 Paul Eggert <[email protected]> |
| 12263 |
|
| 12264 |
* doc/tar.texi (extracting untrusted archives): New section. |
| 12265 |
|
| 12266 |
* src/common.h (stripped_path_len): Renamed from cut_path_elements. |
| 12267 |
Return size_t, not pointer, so that we don't have to worry about |
| 12268 |
violating the C standard by converting char const * to char *. |
| 12269 |
All callers changed. |
| 12270 |
* src/names.c (stripped_path_len): Likewise. Strip file system |
| 12271 |
prefix, too. Count adjacent slashes as if they were one slash; |
| 12272 |
that is the POSIX standard. |
| 12273 |
|
| 12274 |
2003-09-17 Paul Eggert <[email protected]> |
| 12275 |
|
| 12276 |
* README-alpha: Document maintainer tool assumptions a bit. GNU |
| 12277 |
'sed' is no longer required. For GNU m4 1.4, suggest the patch in |
| 12278 |
Debian bug 211447. Fix minor misspellings/whitespace nits. |
| 12279 |
|
| 12280 |
* configure.ac (AC_AIX, AC_MINIX): Remove; subsumed by |
| 12281 |
gl_USE_SYSTEM_EXTENSIONS. |
| 12282 |
|
| 12283 |
* lib/.cvsignore: Add exit.h, time_r.c, time_r.h. |
| 12284 |
* m4/.cvsignore: Add restrict.m4, time_r.m4. |
| 12285 |
|
| 12286 |
2003-09-17 Paul Eggert <[email protected]> |
| 12287 |
|
| 12288 |
* bootstrap: Don't use "for option; do"; |
| 12289 |
Solaris 8 /bin/sh doesn't like that. |
| 12290 |
|
| 12291 |
2003-09-17 Sergey Poznyakoff <[email protected]> |
| 12292 |
|
| 12293 |
* README-alpha: Updated |
| 12294 |
* bootstrap: Updated |
| 12295 |
|
| 12296 |
2003-09-17 Sergey Poznyakoff <[email protected]> |
| 12297 |
|
| 12298 |
* README-alpha: Updated |
| 12299 |
* bootstrap: Updated |
| 12300 |
* po/POTFILES.in: Added src/xheader.c |
| 12301 |
* src/common.h (cut_path_elements): Added proto. |
| 12302 |
|
| 12303 |
2003-09-05 Sergey Poznyakoff <[email protected]> |
| 12304 |
|
| 12305 |
* src/buffer.c: Use ngettext where appropriate. |
| 12306 |
* src/compare.c: Likewise. |
| 12307 |
* src/create.c: Likewise. |
| 12308 |
* src/misc.c: Likewise. |
| 12309 |
* src/tar.c: Likewise. |
| 12310 |
* src/update.c: Likewise. |
| 12311 |
|
| 12312 |
2003-09-04 Sergey Poznyakoff <[email protected]> |
| 12313 |
|
| 12314 |
* .cvsignore: Added *.shar.gz |
| 12315 |
* NEWS: Updated |
| 12316 |
* TODO: Updated |
| 12317 |
* src/common.h (strip_path_elements): New variable. |
| 12318 |
* src/extract.c (extract_archive): Implemented --strip-path |
| 12319 |
* src/names.c (cut_path_elements): New function. |
| 12320 |
* src/tar.c: New option --strip-path=NUM. |
| 12321 |
(decode_options) Assign boolean values to bool variables. |
| 12322 |
|
| 12323 |
2003-09-04 Sergey Poznyakoff <[email protected]> |
| 12324 |
|
| 12325 |
* src/delete.c: Fixed deletion from the POSIX archives. |
| 12326 |
* src/list.c (read_header): Minor change. |
| 12327 |
* src/tar.c (main): Do not check for volume_label_option |
| 12328 |
if subcommand_option is not CREATE_SUBCOMMAND. |
| 12329 |
* src/xheader.c (xheader_decode): Store the header as |
| 12330 |
well (for eventual delete). |
| 12331 |
|
| 12332 |
* tests/incremen.sh: Explicitly request GNU format. This will |
| 12333 |
disappear when GNU extended header keywords are working. |
| 12334 |
* tests/multiv01.sh: Likewise |
| 12335 |
* tests/volume.sh: Likewise |
| 12336 |
|
| 12337 |
2003-09-04 Sergey Poznyakoff <[email protected]> |
| 12338 |
|
| 12339 |
* src/create.c: Support for "linkpath" extended keyword. |
| 12340 |
* src/xheader.c (decode_record): Reversed the return |
| 12341 |
condition. |
| 12342 |
|
| 12343 |
2003-09-03 Sergey Poznyakoff <[email protected]> |
| 12344 |
|
| 12345 |
* configure.ac: Allow to redefine the default output format. |
| 12346 |
* src/tar.c: Use DEFAULT_ARCHIVE_FORMAT macro |
| 12347 |
(archive_format_string): New function. |
| 12348 |
(usage): Updated help output. |
| 12349 |
* README: Updated. |
| 12350 |
* NEWS: Updated. |
| 12351 |
* TODO: Updated. |
| 12352 |
|
| 12353 |
2003-09-02 Paul Eggert <[email protected]> |
| 12354 |
|
| 12355 |
* src/common.h (destroy_stat, xheader_decode, xheader_store, |
| 12356 |
xheader_read, xheader_finish, xheader_destroy): Add decls; |
| 12357 |
C99 requires this. |
| 12358 |
|
| 12359 |
* src/create.c (write_extended): Remove unused local 'bufsize'. |
| 12360 |
|
| 12361 |
* src/delete.c (delete_archive_members): Handle case of |
| 12362 |
HEADER_SUCCESS_EXTENDED followed by HEADER_FAILURE. |
| 12363 |
* src/list.c (read_and): Abort if HEADER_SUCCESS_EXTENDED |
| 12364 |
occurs, as it's not possible. |
| 12365 |
* src/update.c (update_archive): Likewise. |
| 12366 |
|
| 12367 |
Use "const" when possible in new code. |
| 12368 |
* src/tar.c (struct fmttab.name): Now char const *. All uses changed. |
| 12369 |
(fmttab): Now const. All uses changed. |
| 12370 |
* src/xheader.c (struct xhdr_tab.keyword): Now pointer to const. |
| 12371 |
(struct xhdr_tab.coder, struct xhdr_tab.decoder, locate_handler, |
| 12372 |
decode_record, xheader_store, xheader_print, code_string, code_time, |
| 12373 |
code_num, dummy_coder, dummy_decoder, atime_coder, atime_decoder, |
| 12374 |
gid_coder, gid_decoder, gname_coder, gname_decoder, linkpath_coder, |
| 12375 |
linkpath_decoder, ctime_coder, ctime_decoder, mtime_coder, |
| 12376 |
mtime_decoder, path_coder, path_decoder, size_coder, size_decoder, |
| 12377 |
uid_coder, uid_decoder, uname_coder, uname_decoder): |
| 12378 |
Use pointers to const when possible. |
| 12379 |
(xhdr_tab): Now const. |
| 12380 |
|
| 12381 |
* src/tar.c (fmttab): Avoid GCC warning by not eliding initializers. |
| 12382 |
(set_archive_format): Report an error if no format name matches, |
| 12383 |
instead of returning an undefined value. |
| 12384 |
|
| 12385 |
* src/xheader.c (struct xhdr_tab.decoder, dummy_decoder, |
| 12386 |
atime_decoder, gid_decoder, gname_decoder, linkpath_decoder, |
| 12387 |
ctime_decoder, mtime_decoder, path_decoder, size_decoder, |
| 12388 |
uid_decoder, uname_decoder): Remove unused keyword arg. |
| 12389 |
All uses changed. |
| 12390 |
|
| 12391 |
* src/tar.c (set_archive_format): Now static. |
| 12392 |
* src/xheader.c (xhdr_tab, format_uintmax): Now static. |
| 12393 |
|
| 12394 |
* src/xheader.c (dummy_coder, dummy_decoder, atime_coder, |
| 12395 |
atime_decoder, gid_coder, gid_decoder, gname_coder, gname_decoder, |
| 12396 |
linkpath_coder, linkpath_decoder, mtime_coder, mtime_decoder, |
| 12397 |
ctime_coder, ctime_decoder, path_coder, path_decoder, size_coder, |
| 12398 |
size_decoder, uid_coder, uid_decoder, uname_coder, uname_decoder): |
| 12399 |
Remove forward decls; no longer needed. |
| 12400 |
(xhdr_tab): Move to end, so that the forward decls aren't needed. |
| 12401 |
Add a forward declaration. |
| 12402 |
|
| 12403 |
Use 'bool' in new code, when appropriate. |
| 12404 |
* src/xheader.c (decode_record): Return bool, not int. |
| 12405 |
* src/common.h (read_header): Since it accepts bool, change |
| 12406 |
all callers to use false and true rather than 0 and 1. |
| 12407 |
|
| 12408 |
* src/xheader.c (decode_record): Fix misspelling in diagnostic |
| 12409 |
"extended headed" -> "extended header". |
| 12410 |
|
| 12411 |
GNU coding style fixes. |
| 12412 |
* src/xheader.c (decode_record, xheader_decode): |
| 12413 |
Do not use decls like "char *p, *q;". |
| 12414 |
|
| 12415 |
Minor style fixes. |
| 12416 |
(xheader_store): Avoid parentheses around object operand of sizeof. |
| 12417 |
|
| 12418 |
2003-09-03 Sergey Poznyakoff <[email protected]> |
| 12419 |
|
| 12420 |
* src/create.c (start_header): Store long file names |
| 12421 |
in "path" keyword of an extended header if in POSIX |
| 12422 |
mode. |
| 12423 |
(finish_header): print header before calling write_extended(). |
| 12424 |
* src/list.c (list_archive): Always decode the header. This |
| 12425 |
is necessary so the extended header is processed and the correct |
| 12426 |
filename is printed no matter what the state of verbose_option. |
| 12427 |
* src/xheader.c (xhdr_tab): Reserved GNU keywords (commented out |
| 12428 |
for the time being). |
| 12429 |
|
| 12430 |
2003-09-01 Paul Eggert <[email protected]> |
| 12431 |
|
| 12432 |
Update from gnulib, and correct fnmatch to fnmatch-gnu. |
| 12433 |
* bootstrap (gnulib_modules): Change fnmatch to fnmatch-gnu. |
| 12434 |
Sort. |
| 12435 |
* configure.ac (gl_USE_SYSTEM_EXTENSIONS): Use this instead |
| 12436 |
of AC_GNU_SOURCE. |
| 12437 |
* lib/.cvsignore: Add alloca.h, stdbool.h. Sort. Append newline. |
| 12438 |
* lib/Makefile.am (lib_OBJECTS): New macro, for convenience when |
| 12439 |
copying rules from gnulib module descriptions. |
| 12440 |
(BUILT_SOURCES, EXTRA_DIST, all-local, alloca.h): |
| 12441 |
Update from gnulib modules alloca, fnmatch, getline, stdbool. |
| 12442 |
* m4/.cvsignore: Add utimes-null.m4. Sort. |
| 12443 |
|
| 12444 |
2003-09-01 Sergey Poznyakoff |
| 12445 |
|
| 12446 |
Added initial support for creating POSIX headers. |
| 12447 |
|
| 12448 |
* src/common.h (MAXOCTAL11,MAXOCTAL7): New defines |
| 12449 |
(string_to_chars): New functions |
| 12450 |
(struct xheader): Changed structure |
| 12451 |
(gid_to_gname,gname_to_gid,uid_to_uname,uname_to_uid): Changed |
| 12452 |
prototypes. |
| 12453 |
* src/create.c (string_to_chars): New function. |
| 12454 |
(write_extended): New function |
| 12455 |
(start_header): Create extended POSIX headers if necessary. |
| 12456 |
(finish_header): Likewise. |
| 12457 |
* src/list.c (print_header): Take user/group from |
| 12458 |
current_stat_info. |
| 12459 |
* src/names.c (gid_to_gname,gname_to_gid) |
| 12460 |
(uid_to_uname,uname_to_uid): Changed prototypes. |
| 12461 |
* src/tar.c: New option --format. |
| 12462 |
* src/tar.h (OLDGNU_COMPATIBILITY): Removed |
| 12463 |
(struct extra_header): Removed unused structure. |
| 12464 |
(union block.extra_header): Removed unused member. |
| 12465 |
* src/xheader.c: Implemented coder functions. |
| 12466 |
* bootstrap: Added obstack. |
| 12467 |
* lib/.cvsignore: Likewise. |
| 12468 |
* configure.ac: Added 'gl_OBSTACK' |
| 12469 |
* m4/Makefile.am: Added new files. |
| 12470 |
* m4/.cvsignore: Likewise. |
| 12471 |
* TODO: Minor formatting change |
| 12472 |
|
| 12473 |
2003-08-31 Sergey Poznyakoff |
| 12474 |
|
| 12475 |
Added initial support for POSIX extended and STAR headers |
| 12476 |
(only for listing/extracting). |
| 12477 |
|
| 12478 |
* src/xheader.c: New file. |
| 12479 |
* src/Makefile.am: Added xheader.c |
| 12480 |
* src/tar.h (struct star_header): New datatype |
| 12481 |
(XHDTYPE,XGLTYPE): New defines |
| 12482 |
(enum archive_format:STAR_FORMAT): New member |
| 12483 |
(struct tar_stat_info): New datatype. |
| 12484 |
(union block.star_header): New member. |
| 12485 |
* src/common.h (orig_file_name,current_file_name) |
| 12486 |
(current_trailing_slash,current_link_name): Removed variables. |
| 12487 |
(current_stat_info): New variable |
| 12488 |
(current_stat): Removed |
| 12489 |
(extended_header): New variable |
| 12490 |
(decode_header): Changed prototype. |
| 12491 |
* src/list.c (decode_header): Added initial support for POSIX extended |
| 12492 |
and STAR headers. |
| 12493 |
(skip_member): Check oldgnu_header only if current_format is set |
| 12494 |
to OLDGNU_FORMAT. |
| 12495 |
* src/buffer.c: Use current_stat_info |
| 12496 |
* src/compare.c: Likewise. |
| 12497 |
* src/create.c: Likewise. |
| 12498 |
* src/delete.c: Likewise. |
| 12499 |
* src/incremen.c: Likewise. |
| 12500 |
* src/mangle.c: Likewise. |
| 12501 |
* src/update.c: Likewise. |
| 12502 |
* src/extract.c: Likewise. |
| 12503 |
(make_directories): Improved check for the existence of the directory |
| 12504 |
* src/tar.c (destroy_stat): New function. |
| 12505 |
|
| 12506 |
2003-08-29 Paul Eggert <[email protected]> |
| 12507 |
|
| 12508 |
* NEWS, bootstrap: Drop en_GB locale; it was more trouble than it |
| 12509 |
was worth (e.g., different users in en_GB disagree about -ize |
| 12510 |
versus -ise). |
| 12511 |
* po/en_GB.po: Remove. |
| 12512 |
|
| 12513 |
2003-07-28 Sergey Poznyakoff <[email protected]> |
| 12514 |
|
| 12515 |
* TODO: Updated |
| 12516 |
* NEWS: Updated |
| 12517 |
* src/tar.c: Removed support for the obsolete command line |
| 12518 |
options. |
| 12519 |
* doc/tar.texi: Removed references to the obsolete command |
| 12520 |
line options. |
| 12521 |
|
| 12522 |
2003-07-27 Sergey Poznyakoff <[email protected]> |
| 12523 |
|
| 12524 |
* TODO: Updated |
| 12525 |
* NEWS: Updated |
| 12526 |
* doc/tar.texi: Updated |
| 12527 |
* src/common.h (check_links_option): New variable |
| 12528 |
(orig_file_name): New variable |
| 12529 |
(check_links): New proto. |
| 12530 |
* src/create.c (struct link.nlink): New member |
| 12531 |
(link_table): Static for the module. |
| 12532 |
(dump_file): Update `link' member when adding new links |
| 12533 |
to the link_table. |
| 12534 |
(check_links): New function. |
| 12535 |
* src/list.c (print_header): Use orig_file_name. |
| 12536 |
* src/tar.c: New option --check-links. Changed semantics of |
| 12537 |
-o to comply to UNIX98 when extracting and to its previous |
| 12538 |
semantics otherwise. |
| 12539 |
(main): Call check_links if --check-links. was given. |
| 12540 |
|
| 12541 |
2003-07-25 Sergey Poznyakoff <[email protected]> |
| 12542 |
|
| 12543 |
* src/list.c (print_header): Revised |
| 12544 |
* NEWS: Started the entry for 1.13.26 |
| 12545 |
* doc/Makefile.am (tar.dvi): Fixed TEXINPUTS value. |
| 12546 |
|
| 12547 |
2003-07-24 Sergey Poznyakoff <[email protected]> |
| 12548 |
|
| 12549 |
* .cvsignore: Added to the repository. |
| 12550 |
* doc/.cvsignore: Likewise. |
| 12551 |
* lib/.cvsignore: Likewise. |
| 12552 |
* m4/.cvsignore: Likewise. |
| 12553 |
* po/.cvsignore: Likewise. |
| 12554 |
* scripts/.cvsignore: Likewise. |
| 12555 |
* src/.cvsignore: Likewise. |
| 12556 |
* tests/.cvsignore: Likewise. |
| 12557 |
|
| 12558 |
* lib/Makefile.am: Added exitfail.[hc] |
| 12559 |
* src/misc.c (chdir_do): Fixed call to restore_cwd |
| 12560 |
* src/buffer.c (flush_read): Fixed behavior on short |
| 12561 |
reads right after opening the new archive (multiv01.sh test). |
| 12562 |
(new_volume): Special handling for "-". |
| 12563 |
* src/list.c (print_header): Print trailing slash if |
| 12564 |
current_trailing_slash was set (extrac03.sh,extrac04.sh tests). |
| 12565 |
* tests/multiv01.sh: Minor changes. |
| 12566 |
* m4/Makefile.am: Added missing files. |
| 12567 |
|
| 12568 |
2003-07-05 Paul Eggert <[email protected]> |
| 12569 |
|
| 12570 |
Finish the checkin begin yesterday. |
| 12571 |
|
| 12572 |
* NEWS: Document the user-visible changes installed in the last |
| 12573 |
two days. |
| 12574 |
|
| 12575 |
* TODO: New file (actually, resurrected; but with new contents). |
| 12576 |
|
| 12577 |
* src/list.c (read_and): Give full type for procedure arg. |
| 12578 |
(read_header): Strip trailing slashes, setting current_trailing_slash. |
| 12579 |
(tartime): Avoid int overflow when printing year (!). |
| 12580 |
(print_header): New arg specifying block ordinal. All uses changed. |
| 12581 |
Print link as 'h' type. Give labels for long links and names. |
| 12582 |
|
| 12583 |
* src/misc.c (contains_dot_dot): Moved to names.c |
| 12584 |
(must_be_dot_or_slash): New function. |
| 12585 |
(safer_rmdir): Use it. |
| 12586 |
(remove_any_file): Now takes enum as option, not boolean. |
| 12587 |
Check for (Linux) EISDIR as well as (POSIX) EPERM when attempting |
| 12588 |
to unlink a directory. |
| 12589 |
(deref_stat): Accept bool, not int. |
| 12590 |
|
| 12591 |
* src/names.c (namelist_match): Allow partial matches only if |
| 12592 |
recursive. |
| 12593 |
(hash_string_hasher): Renamed from hash_avoided_name. |
| 12594 |
(hash_string_compare): Renamed from compare_avoided_anames. |
| 12595 |
(hash_string_insert, hash_string_lookup): New functions. |
| 12596 |
(add_avoided_name, is_avoided_name): Use them. |
| 12597 |
(safer_name_suffix): New function. |
| 12598 |
(contains_dot_dot): Moved here from misc.c. Now returns bool, not int. |
| 12599 |
|
| 12600 |
* src/rmt.c: Don't include print-copyr.h. |
| 12601 |
(prepare_input_buffer): New arg FD. |
| 12602 |
Do not read more than INT_MAX bytes at once, |
| 12603 |
since it breaks on some brain damaged Tru64 hosts. |
| 12604 |
Divide size by two |
| 12605 |
when retrying instead of subtracting 1024; for speed. |
| 12606 |
(main): Use gettext to translate (C), not print_copyright. |
| 12607 |
|
| 12608 |
* src/system.h: Include <alloca.h> and <stdbool.h> unconditionally, |
| 12609 |
now that gnulib handles this. |
| 12610 |
Include <stddef.h> and <limits.h> unconditionally, now that we assume |
| 12611 |
C89 or better. |
| 12612 |
Assume that offsetof is defined in stddef.h. |
| 12613 |
Do not include <sys/param.h>. |
| 12614 |
(realloc, lseek): Do not declare. |
| 12615 |
(HAVE_DECL_VALLOC): Renamed from HAVE_VALLOC. |
| 12616 |
(CHAR_BIT, CHAR_MAX, UCHAR_MAX, LONG_MAX): Remove |
| 12617 |
declarations, since we now assume C89 or better. |
| 12618 |
(PARAMS): Remove, as we now assume C89. All uses changed. |
| 12619 |
(bindtextdomain, textdomain): Include <gettext.h> to define. |
| 12620 |
Include <unlocked-io.h>. |
| 12621 |
(valloc): Define if not defined, and if valloc is not declared. |
| 12622 |
(xstrdup): Remove decl. |
| 12623 |
|
| 12624 |
* src/tar.c: Do not include <print-copyr.h>. |
| 12625 |
Include <getdate.h>. |
| 12626 |
(get_date): Remove decl. |
| 12627 |
(ATIME_PRESERVE_OPTION, CHECKPOINT_OPTION, FORCE_LOCAL_OPTION, |
| 12628 |
IGNORE_FAILED_READ_OPTION, INDEX_FILE_OPTION, NO_OVERWRITE_DIR_OPTION, |
| 12629 |
NUMERIC_OWNER_OPTION, RECURSIVE_UNLINK_OPTION, REMOVE_FILES_OPTION, |
| 12630 |
SHOW_OMITTED_DIRS_OPTION, TOTALS_OPTION): New constants. |
| 12631 |
(long_options, decode_options): Use them. |
| 12632 |
(OVERWRITE_DIR_OPTION): Remove. |
| 12633 |
(long_options): New options --index-file, --no-overwrite-dir. |
| 12634 |
Remove --overwrite-dir option. |
| 12635 |
(usage): Use PACKAGE_BUGREPORT. |
| 12636 |
(decode_options): Terminate new argv properly. |
| 12637 |
Use PACKAGE_NAME, PACKAGE_VERSION. |
| 12638 |
If verbose, report how we grokked any textual date option. |
| 12639 |
(main): Add support for index-file. |
| 12640 |
|
| 12641 |
* tests/Makefile.am: Convert to UTF-8. |
| 12642 |
(AUTOMAKE_OPTIONS): Remove. |
| 12643 |
(TESTS): Add delete04.sh, multiv01.sh, options.sh. |
| 12644 |
(INCLUDES): Remove ../intl. |
| 12645 |
(LDADD): Don't link libtar.a twice. |
| 12646 |
|
| 12647 |
* tests/genfile.c: Convert to UTF-8. |
| 12648 |
Don't include <print-copyr.h>. |
| 12649 |
(DEFAULT_PATTERN): Renamed from DEFAULT. |
| 12650 |
(ZEROS_PATTERN): Renamed from ZEROS. |
| 12651 |
(main): Use gettext to translate (C), not print_copyright. |
| 12652 |
|
| 12653 |
2003-07-04 Paul Eggert <[email protected]> |
| 12654 |
|
| 12655 |
Revamp to meet current standards of autoconf, automake, |
| 12656 |
gettext, and gnulib, and incorporate new translations. |
| 12657 |
|
| 12658 |
* config/config.guess, config/config.sub, config/depcomp, |
| 12659 |
config/install-sh, config/mdate-sh, config/missing, |
| 12660 |
config/mkinstalldirs, config/texinfo.texi: |
| 12661 |
Moved here from parent directory, or from doc. |
| 12662 |
* config.hin: Renamed from config.h.in. |
| 12663 |
* config/config.rpath: New file. |
| 12664 |
|
| 12665 |
* intl: Remove this subdirectory. |
| 12666 |
|
| 12667 |
* lib/fnmatch_.h: Renamed from lib/fnmatch.hin. |
| 12668 |
|
| 12669 |
* lib/getstr.c, lib/getstr.h, lib/msleep.c, lib/print-copyr.c, |
| 12670 |
lib/print-copyr.h, lib/readutmp.c, lib/rename.c, lib/stpcpy.c, |
| 12671 |
lib/strstr.c, lib/strtoimax.c, lib/strtoll.c, lib/strtoull.c, |
| 12672 |
lib/strtoumax.c, lib/unicodeio.c, lib/unicodeio.h, |
| 12673 |
lib/xstrtoimax.c, m4/c-bs-a.m4, m4/ccstdc.m4, m4/check-decl.m4, |
| 12674 |
m4/decl.m4, m4/jm-mktime.m4, m4/prereq.m4, m4/xstrtoimax.m4, |
| 12675 |
stamp-h.in: Remove. |
| 12676 |
|
| 12677 |
* lib/alloca_.h, lib/fnmatch_loop.c, lib/gettext.h, lib/pathmax.h, |
| 12678 |
lib/safe-write.c, lib/safe-write.h, lib/stdbool_.h, lib/strcase.h, |
| 12679 |
lib/stripslash.c, lib/unlocked-io.h, lib/xgetcwd.h, m4/alloca.m4, |
| 12680 |
m4/backupfile.m4, m4/bison.m4, m4/chown.m4, m4/dirname.m4, |
| 12681 |
m4/dos.m4, m4/exclude.m4, m4/fileblocks.m4, m4/ftruncate.m4, |
| 12682 |
m4/getdate.m4, m4/getopt.m4, m4/hash.m4, m4/human.m4, |
| 12683 |
m4/intdiv0.m4, m4/intmax_t.m4, m4/inttypes-pri.m4, |
| 12684 |
m4/inttypes_h.m4, m4/isc-posix.m4, m4/lchown.m4, m4/lib-ld.m4, |
| 12685 |
m4/lib-link.m4, m4/lib-prefix.m4, m4/memset.m4, m4/mktime.m4, |
| 12686 |
m4/modechange.m4, m4/nls.m4, m4/onceonly.m4, m4/pathmax.m4, |
| 12687 |
m4/po.m4, m4/quote.m4, m4/quotearg.m4, m4/rmdir.m4, |
| 12688 |
m4/safe-read.m4, m4/safe-write.m4, m4/save-cwd.m4, m4/savedir.m4, |
| 12689 |
m4/ssize_t.m4, m4/stdbool.m4, m4/stdint_h.m4, m4/strcase.m4, |
| 12690 |
m4/strtoimax.m4, m4/strtol.m4, m4/strtoll.m4, m4/strtoul.m4, |
| 12691 |
m4/strtoull.m4, m4/strtoumax.m4, m4/tm_gmtoff.m4, m4/uintmax_t.m4, |
| 12692 |
m4/unlocked-io.m4, m4/xalloc.m4, m4/xgetcwd.m4, m4/xstrtol.m4, |
| 12693 |
po/LINGUAS, po/Makevars, po/Rules-quot, po/boldquot.sed, |
| 12694 |
po/[email protected], po/[email protected], po/en_GB.po, |
| 12695 |
po/insert-header.sin, po/remove-potcdate.sin, po/stamp-po: New files. |
| 12696 |
|
| 12697 |
* ABOUT-NLS, INSTALL, lib/addext.c, lib/alloca.c, lib/argmatch.c, |
| 12698 |
lib/argmatch.h, lib/backupfile.c, lib/backupfile.h, lib/dirname.c, |
| 12699 |
lib/dirname.h, lib/error.c, lib/exclude.c, lib/exclude.h, |
| 12700 |
lib/fnmatch.h, lib/full-write.c, lib/full-write.h, lib/getdate.h, |
| 12701 |
lib/getdate.y, lib/getline.c, lib/getline.h, lib/getopt.c, |
| 12702 |
lib/getopt.h, lib/getopt1.c, lib/hash.c, lib/hash.h, lib/human.c, |
| 12703 |
lib/human.h, lib/lchown.c, lib/malloc.c, lib/mktime.c, |
| 12704 |
lib/modechange.c, lib/modechange.h, lib/quote.c, lib/quote.h, |
| 12705 |
lib/quotearg.c, lib/quotearg.h, lib/realloc.c, lib/safe-read.c, |
| 12706 |
lib/safe-read.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c, |
| 12707 |
lib/savedir.h, lib/strcasecmp.c, lib/utime.c, lib/xalloc.h, |
| 12708 |
lib/xgetcwd.c, lib/xmalloc.c, lib/xstrdup.c, lib/xstrtol.c, |
| 12709 |
lib/xstrtol.h, lib/xstrtoumax.c, m4/codeset.m4, m4/d-ino.m4, |
| 12710 |
m4/error.m4, m4/fnmatch.m4, m4/getcwd.m4, m4/getline.m4, m4/gettext.m4, |
| 12711 |
m4/glibc21.m4, m4/iconv.m4, m4/inttypes.m4, m4/lcmessage.m4, |
| 12712 |
m4/longlong.m4, m4/malloc.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, |
| 12713 |
m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4, m4/ulonglong.m4, |
| 12714 |
m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4, m4/xstrtoumax.m4, |
| 12715 |
po/Makefile.in.in: |
| 12716 |
Upgrade to latest version from external source. The file "bootstrap" |
| 12717 |
now grabs these automatically, so we needn't keep track of them |
| 12718 |
in this change long any longer. |
| 12719 |
|
| 12720 |
* Makefile.am (AUTOMAKE_OPTIONS): Remove. Now done by configure.ac. |
| 12721 |
(SUBDIRS): Remove intl. |
| 12722 |
* PORTS: Update for star, Macintosh. |
| 12723 |
* README, README-alpha: Suggest Autoconf 2.57, Automake 1.7.5, |
| 12724 |
Bison 1.875, gettext 0.12.1. |
| 12725 |
* THANKS: Add Bernhard Rosenkraenzer, Solar Designer. |
| 12726 |
* configure.ac (AC_INIT, AM_INIT_AUTOMAKE): Convert to modern form. |
| 12727 |
(AC_CONFIG_AUX_DIR): New. |
| 12728 |
(AC_CONFIG_HEADERS): Rename config.h.in to config.hin, to be more |
| 12729 |
like coreutils. |
| 12730 |
(AC_PREREQ): Bump from 2.52 to 2.57. |
| 12731 |
(AC_GNU_SOURCE): New. |
| 12732 |
(AC_PROG_GCC_TRADITIONAL, AM_C_PROTOTYPES, AC_C_CONST): Remove; |
| 12733 |
we no longer support K&R C. |
| 12734 |
(YACC): Remove. |
| 12735 |
(AC_CHECK_HEADERS): Remove limits.h, poll.h, stdbool.h, stropts.h, |
| 12736 |
sys/ioccom.h, sys/param.h, sys/time.h, sys/timeb.h, wchar.h, wctype.h. |
| 12737 |
(AC_MBSTATE_T): Remove. |
| 12738 |
(HAVE_UTIME_H, HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID, |
| 12739 |
HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL, |
| 12740 |
HAVE_DECL_STRTOULL, HAVE_MKNOD): Remove our special code. |
| 12741 |
(AM_STDBOOL_H): Add. |
| 12742 |
(AC_HEADER_TIME, AC_STRUCT_TIMEZONE, |
| 12743 |
jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Remove. |
| 12744 |
(AC_CHECK_TYPE): Remove ssize_t. |
| 12745 |
(gt_TYPE_SSIZE_T): Add. |
| 12746 |
(jm_AC_PREREQ_XSTRTOUMAX, jm_PREREQ_ADDEXT, jm_PREREQ_ERROR, |
| 12747 |
jm_PREREQ_HUMAN, jm_PREREQ_QUOTEARG, jm_PREREQ_XGETCWD, |
| 12748 |
AC_FUNC_ALLOCA, AC_FUNC_CLOSEDIR_VOID, AC_FUNC_STRERROR_R, |
| 12749 |
AC_FUNC_FNMATCH, AC_FUNC_VPRINTF, AM_FUNC_GETLINE, jm_FUNC_MALLOC, |
| 12750 |
jm_FUNC_MKTIME, jm_FUNC_REALLOC): |
| 12751 |
Remove. Switch to gnulib macros like gl_BACKUPFILE instead. |
| 12752 |
(tar_LDADD): Rename to LIB_CLOCK_GETTIME. All uses changed. |
| 12753 |
(rmt_LDADD): Rename to LIB_SETSOCKOPT. All uses changed. |
| 12754 |
(AC_CHECK_FUNCS): Remove fchdir, ftime, getcwd, isascii, nap, |
| 12755 |
napms, poll, select, strstr, usleep. |
| 12756 |
(AC_REPLACE_FUNCS): Remove ftruncate, lchown, memset, rename, |
| 12757 |
rmdir, strcasecmp, strncasecmp, strtol, strtoul. |
| 12758 |
(AM_GNU_GETTEXT): Use external and need-ngettext options. |
| 12759 |
(AM_GNU_GETTEXT_VERSION): New. |
| 12760 |
(AC_OUTPUT): Remove intl/Makefile. |
| 12761 |
|
| 12762 |
* doc/Makefile.am (AUTOMAKE_OPTIONS): Remove. |
| 12763 |
($(srcdir)/tar.info, tar.dvi): Remove obsolete warnings. |
| 12764 |
* doc/fdl.texi: Update to current GNU version. |
| 12765 |
* doc/gettext.texi: Update to current coreutils version, |
| 12766 |
plus a copyright notice. |
| 12767 |
* doc/tar.texi: Switch to new method for doing copyright notices. |
| 12768 |
Use @acronym instead of @sc where appropriate. |
| 12769 |
Remove empty examples. Give a few more examples. |
| 12770 |
|
| 12771 |
* lib/Makefile.am (AUTOMAKE_OPTIONS): Remove. |
| 12772 |
(EXTRA_DIST, libtar_a_SOURCES): Switch to gnulib, so that they |
| 12773 |
are built up in pieces with +=. |
| 12774 |
(noinst_HEADERS, INCLUDES): Remove. |
| 12775 |
(BUILT_SOURCES, MAINTAINERCLEANFILES, MOSTLYCLEANFILES): New. |
| 12776 |
(libtar_a_LIBADD): Use $ rather than @. |
| 12777 |
(all-local, alloca.h, fnmatch.h, stdbool.h): New rules, from gnulib. |
| 12778 |
|
| 12779 |
* m4/Makefile.am (EXTRA_DIST): Add alloca.m4, backupfile.m4, |
| 12780 |
bison.m4, chown.m4, dirname.m4, dos.m4, exclude.m4, fileblocks.m4, |
| 12781 |
ftruncate.m4, getdate.m4, getopt.m4, hash.m4, human.m4, |
| 12782 |
intdiv0.m4, intmax_t.m4, inttypes_h.m4, inttypes-pri.m4, |
| 12783 |
isc-posix.m4, lcown.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4, |
| 12784 |
memset.m4, mktime.m4, modechange.m4, nls.m4, onceonly.m4, |
| 12785 |
pathmax.m4, po.m4, quotearg.m4, quote.m4, rmdir.m4, safe-read.m4, |
| 12786 |
safe-write.m4, save-cwd.m4, savedir.m4, ssize_t.m4, stdbool.m4, |
| 12787 |
stdint_h.m4, strcase.m4, strtoimax.m4, strtoll.m4, strtol.m4, |
| 12788 |
strtoull.m4, strtoul.m4, strtoumax.m4, tm_gmtoff.m4, uintmax_t.m4, |
| 12789 |
unlocked-io.m4, xalloc.m4, xgetcwd.m4, xstrtol.m4. |
| 12790 |
Remove c-bs-a.m4, ccstdc.m4, check-decl.m4, decl.m4, jm-mktime.m4, |
| 12791 |
prereq.m4, xstrtoimax.m4. |
| 12792 |
|
| 12793 |
* po/POTFILES.in: Remove tests/genfile.c; it doesn't need to |
| 12794 |
be translated, since it's not a user-visible tool. |
| 12795 |
|
| 12796 |
* scripts/Makefile.am (AUTOMAKE_OPTIONS): Remove. |
| 12797 |
|
| 12798 |
* src/Makefile.am (AUTOMAKE_OPTIONS): Remove. |
| 12799 |
(INCLUDES): Remove ../intl. Put top-srcdir before ., for |
| 12800 |
consistency with coreutils. |
| 12801 |
(LDADD): Link LIBINTL after libtar.a, since |
| 12802 |
it's now external and should stand by itself. |
| 12803 |
|
| 12804 |
* src/buffer.c (print_total_written): Adjust to new human.h |
| 12805 |
interface. |
| 12806 |
(child_open_for_compress): Do not increase size to BLOCKSIZE. |
| 12807 |
(open_archive): Open index file name. |
| 12808 |
Strip trailing slashes from file names. |
| 12809 |
(flush_write): Set size to 0 if not saving names. |
| 12810 |
(flush_write, flush_read): Use safer_name_suffix rather than |
| 12811 |
inline code. |
| 12812 |
|
| 12813 |
* src/common.h: Include <quote.h>. |
| 12814 |
(absolute_names_option, atime_preserve_option, backup_option, |
| 12815 |
block_number_option, checkpoint_option, dereference_option, |
| 12816 |
force_local_option, ignore_failed_read_option, ignore_zeros_option, |
| 12817 |
incremental_option, interactive_option, multi_volume_option, |
| 12818 |
numeric_owner_option, one_file_system_option, recursive_unlink_option, |
| 12819 |
read_full_records_option, remove_files_option, same_order_option, |
| 12820 |
show_omitted_dirs_option, sparse_option, starting_file_option, |
| 12821 |
to_stdout_option, totals_option, touch_option, verify_option, |
| 12822 |
dev_null_output, now_verifying, we_are_root): Now bool, not int. |
| 12823 |
(current_trailing_slash, index_file_name, recent_long_name_blocks, |
| 12824 |
recent_long_link_blocks): New vars. |
| 12825 |
(NO_OVERWRITE_DIR_OLD_FILES): New constant. |
| 12826 |
(OVERWRITE_OLD_DIRS): Remove. |
| 12827 |
(enum remove_option): New enum. |
| 12828 |
(remove_any_file): Use it as option arg, not int. |
| 12829 |
(is_avoided_name, contains_dot_dot): Return bool, not int. |
| 12830 |
(safer_name_suffix): New decl. |
| 12831 |
|
| 12832 |
* src/compare.c (now_verifying): Now bool, not int. |
| 12833 |
(fill_in_sparse_array): Move to extract.c. Now returns bool; |
| 12834 |
all callers changed to test for failure. |
| 12835 |
(diff_sparse_files): Take size from current_stat, not from param. |
| 12836 |
(diff_archive): Do not count trailing slashes in archives. |
| 12837 |
(verify_volume): Test for header failure after loop, not before. |
| 12838 |
|
| 12839 |
* src/create.c (relativize): Remove; replaced by safer_name_suffix. |
| 12840 |
All callers changed. |
| 12841 |
(start_header): Clear devmajor and devminor fields, too. |
| 12842 |
(finish_header): New arg block_ordinal. |
| 12843 |
(init_sparsearray): Now extern. Set sp_array_size to |
| 12844 |
SPARSES_IN_OLDGNU_HEADER if it is zero. |
| 12845 |
(dump_file): Keep link table as a hash. |
| 12846 |
Do not count "file changed as we read it" as a failure. |
| 12847 |
|
| 12848 |
* src/delete.c (recent_long_name_blocks, recent_long_link_blocks): |
| 12849 |
Move extern decl to common.h. |
| 12850 |
|
| 12851 |
* src/extract.c (we_are_root): Now bool, not int. |
| 12852 |
(check_time): Warn about implausibly old time stamps. |
| 12853 |
(set_stat): Use utimbuf, not stat_info. |
| 12854 |
(prepare_to_extract): New arg DIRECTORY. |
| 12855 |
(fill_in_sparse_array): Moved here from compare.c. |
| 12856 |
(extract_sparse_file): Now returns off_t, giving size left. |
| 12857 |
Truncate file at end. |
| 12858 |
(extract_archive): Use safer_name_suffix rather than rolling our own. |
| 12859 |
Use fill_in_sparse_array rather than rolling our own. |
| 12860 |
Strip trailing slashes more effectively. |
| 12861 |
Check for unsafe names. |
| 12862 |
|
| 12863 |
* src/incremen.c (struct directory): nfs and found are now of type |
| 12864 |
bool, not int. |
| 12865 |
(gnu_restore): Now takes directory name as argument, not offset |
| 12866 |
of directory name in a global. All uses changed. |
| 12867 |
(CURRENT_FILE_NAME): Remove. |
| 12868 |
|
| 12869 |
New tests. |
| 12870 |
* tests/delete04.sh, tests/multiv01.sh, tests/options.sh: New |
| 12871 |
files. |
| 12872 |
|
| 12873 |
2002-09-30 Paul Eggert <[email protected]> |
| 12874 |
|
| 12875 |
* src/rmt.c (prepare_input_buffer): Renamed form |
| 12876 |
prepare_record_buffer. All uses changed. Do not assume that |
| 12877 |
size_t is the same width as int. |
| 12878 |
|
| 12879 |
2002-03-29 Paul Eggert <[email protected]> |
| 12880 |
|
| 12881 |
* src/incremen.c (get_directory_contents): |
| 12882 |
If ignore_failed_read_option, only warn about |
| 12883 |
get_directory_contents failures. Fix suggested by |
| 12884 |
Mark Costlow. |
| 12885 |
|
| 12886 |
2002-01-31 Mark W. Eichin <[email protected]> |
| 12887 |
|
| 12888 |
* src/buffer.c (child_open_for_compress): Don't try to read |
| 12889 |
past the end of the buffer. |
| 12890 |
|
| 12891 |
2001-10-11 Jim Meyering <[email protected]> |
| 12892 |
|
| 12893 |
* argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ... |
| 12894 |
and quote_n (1, ... to avoid clobbering a buffer. |
| 12895 |
|
| 12896 |
2001-09-26 Paul Eggert <[email protected]> |
| 12897 |
|
| 12898 |
* NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.25. |
| 12899 |
|
| 12900 |
* src/buffer.c (flush_read): Don't diagnose partial blocks before |
| 12901 |
end of file; just ignore them silently. |
| 12902 |
|
| 12903 |
* src/list.c (read_header): Don't keep around extended name |
| 12904 |
and link info indefinitely; keep it only for the next file. |
| 12905 |
This fixes a bug introduced in 1.13.24, and removes the need |
| 12906 |
for some static variables. Set recent_long_name and |
| 12907 |
recent_long_link to zero if there were no long links; this |
| 12908 |
avoids a violation of ANSI C rules for pointers in delete.c. |
| 12909 |
* THANKS: Add Christian Laubscher. |
| 12910 |
|
| 12911 |
2001-09-26 Jim Meyering <[email protected]> |
| 12912 |
|
| 12913 |
* doc/tar.texi (Remote Tape Server): is know -> is known |
| 12914 |
|
| 12915 |
2001-09-25 Paul Eggert <[email protected]> |
| 12916 |
|
| 12917 |
* lib/unicodeio.c (EILSEQ): Include <iconv.h> first, since |
| 12918 |
<iconv.h> may define EILSEQ (e.g. libiconv). Define a |
| 12919 |
replacement EILSEQ to be ENOENT, not EINVAL, since callers may |
| 12920 |
want to distinguish EINVAL and EILSEQ. |
| 12921 |
|
| 12922 |
2001-09-24 Christophe Kalt <[email protected]> |
| 12923 |
|
| 12924 |
* src/extract.c (maybe_recoverable): |
| 12925 |
Treat OVERWRITE_OLD_DIRS like DEFAULT_OLD_FILES. |
| 12926 |
|
| 12927 |
2001-09-22 Paul Eggert <[email protected]> |
| 12928 |
|
| 12929 |
* NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.24. |
| 12930 |
|
| 12931 |
* ABOUT-NLS, intl/*: Update to gettext-0.10.40, replacing LGPL |
| 12932 |
with GPL. |
| 12933 |
|
| 12934 |
* INSTALL, mkinstalldirs: Update to autoconf 2.52 version. |
| 12935 |
* PORTS: Add copyright notice, 'star' reference. |
| 12936 |
* README-alpha: Add copyright notice, autoconf 2.52 patch. |
| 12937 |
* THANKS: Add Christophe Kalt. |
| 12938 |
* config.sub: Upgrade to 2001-09-14 version. |
| 12939 |
|
| 12940 |
* configure.ac (ALL_LINGUAS): Add ko. |
| 12941 |
* po/ko.po: Resurrected file. |
| 12942 |
|
| 12943 |
* doc/convtexi.pl: Add coding advice for Emacs. |
| 12944 |
|
| 12945 |
* doc/getdate.texi: Add copyright notice. |
| 12946 |
|
| 12947 |
* doc/mdate-sh: Upgrade to automake 1.5 version. |
| 12948 |
|
| 12949 |
* doc/tar.texi (extracting files): Mention --to-stdout. |
| 12950 |
(Option Summary, Dealing with Old Files): New option --overwrite-dir. |
| 12951 |
(Overwrite Old Files): Likewise. |
| 12952 |
|
| 12953 |
* lib/Makefile.am (noinst_HEADERS): |
| 12954 |
Remove copysym.h. Add print-copyr.h, unicodeio.h. |
| 12955 |
(libtar_a_SOURCES): Remove copysym.c, Add print-copyr.c, unicodeio.c. |
| 12956 |
|
| 12957 |
* lib/copysym.c, lib/copysym.h: Remove. |
| 12958 |
* lib/print-copyr.c, lib/print-copyr.h, lib/unicodeio.c, |
| 12959 |
lib/unicodeio.h: New files. |
| 12960 |
|
| 12961 |
* lib/error.c, lib/getopt.c, lib/getopt.h, lib/getopt1.c, |
| 12962 |
lib/mktime.c, lib/strtoll.c: Switch from LGPL to GPL. |
| 12963 |
|
| 12964 |
* lib/quotearg.c (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC. |
| 12965 |
(mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT. |
| 12966 |
|
| 12967 |
* m4/Makefile.am (EXTRA_DIST): Remove isc-posix.m4. |
| 12968 |
* m4/isc-posix.m4: Remove. |
| 12969 |
|
| 12970 |
* m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit. |
| 12971 |
|
| 12972 |
* po/POTFILES.in: Add copyright notice. |
| 12973 |
|
| 12974 |
* src/Makefile.am (LDADD): Like libtar.a before @INTLLIBS@ as |
| 12975 |
well as after. |
| 12976 |
* tests/Makefile.am (LDADD): Likewise. |
| 12977 |
|
| 12978 |
* src/buffer.c (write_archive_buffer, close_archive): |
| 12979 |
If an archive is a socket, treat it like a FIFO. |
| 12980 |
(records_read, records_written): New vars. |
| 12981 |
(write_archive_to_stdout): Now bool, not int. |
| 12982 |
(open_archive, flush_write, flush_read): Keep records_read and |
| 12983 |
records_written up to date. |
| 12984 |
|
| 12985 |
* src/common.h (enum old_files): New value OVERWRITE_OLD_DIRS. |
| 12986 |
(write_archive_to_stdout): Now bool, not int. |
| 12987 |
(enum read_header): New value HEADER_SUCCESS_EXTENDED. |
| 12988 |
(read_header): Now takes bool arg. Existing callers modified |
| 12989 |
to pass 0, unless otherwise specified. |
| 12990 |
|
| 12991 |
* src/delete.c (records_read): Remove; now a global. |
| 12992 |
(acting_as_filter): Now bool, not int. |
| 12993 |
(recent_long_name, recent_long_link, recent_long_name_blocks, |
| 12994 |
recent_long_link_blocks, records_read, records_written): New decls. |
| 12995 |
(records_skipped): New var. |
| 12996 |
(move_archive): Don't divide by zero if arg is 0. |
| 12997 |
Use the above vars to compute how far to move. |
| 12998 |
(write_recent_blocks): New function. |
| 12999 |
(delete_archive_member): Pass 1 to read_header, so that it doesn't |
| 13000 |
read more than 1 block. Handle resulting HEADER_SUCCESS_EXTENDED code. |
| 13001 |
Keep track of how many records have been skipped. |
| 13002 |
Let the buffer code count records. |
| 13003 |
When copying a header, copy any extended headers that came before it. |
| 13004 |
|
| 13005 |
* src/extract.c (extract_archive): When marking a directory to be |
| 13006 |
updated after symlinks, stat all directories after it in the |
| 13007 |
delayed-set-stat list too, since they will be checked after |
| 13008 |
symlinks. Add support for --overwrite-dir. |
| 13009 |
|
| 13010 |
* src/list.c (recent_long_name, recent_long_link, |
| 13011 |
recent_long_name_blocks, recent_long_link_blocks): New vars. |
| 13012 |
(read_and): Pass 0 to read_header. |
| 13013 |
(read_header): New arg RAW_EXTENDED_HEADERS. Store away extended |
| 13014 |
headers into new vars. Null-terminate incoming symbolic links. |
| 13015 |
|
| 13016 |
* src/rmt.c: Include print-copyr.h, not copysym.h. |
| 13017 |
(main): Use print_copyright, not copyright_symbol. |
| 13018 |
* src/tar.c (decode_options): Likewise. |
| 13019 |
(OVERWRITE_DIR_OPTION): New constant. |
| 13020 |
(long_options, usage, decode_options): Add --overwrite-dir. |
| 13021 |
|
| 13022 |
* src/tar.h: Put copyright notice into documentation. |
| 13023 |
|
| 13024 |
* tests/Makefile.am (TESTS): Add delete03.sh. |
| 13025 |
* tests/delete03.sh: New file. |
| 13026 |
|
| 13027 |
* tests/genfile.c: Include print-copyr.h, not copysym.h. |
| 13028 |
(main): Use print_copyright, not copyright_symbol. |
| 13029 |
Include <argmatch.h>. |
| 13030 |
(pattern_strings): Remove. |
| 13031 |
(pattern_args, pattern_types): New constants. |
| 13032 |
(main): Use XARGMATCH, not argmatch. |
| 13033 |
|
| 13034 |
2001-09-20 Jim Meyering <[email protected]> |
| 13035 |
|
| 13036 |
* lib/xstrtol.c (strtoimax): Guard declaration with |
| 13037 |
`#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'. |
| 13038 |
The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0) |
| 13039 |
have their own, conflicting declaration of strtoimax in sys/inttypes.h. |
| 13040 |
(strtoumax): Likewise, for completeness (it wasn't necessary). |
| 13041 |
* m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): |
| 13042 |
Check for declaration of strtoimax. |
| 13043 |
* m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): |
| 13044 |
Check for declaration of strtoumax. |
| 13045 |
|
| 13046 |
2001-09-16 Paul Eggert <[email protected]> |
| 13047 |
|
| 13048 |
* fnmatch.m4 (jm_FUNC_FNMATCH): Fix typo in previous patch: yes -> no. |
| 13049 |
|
| 13050 |
2001-09-14 Paul Eggert <[email protected]> |
| 13051 |
|
| 13052 |
* NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.23. |
| 13053 |
|
| 13054 |
* README-alpha: Describe automake patch. |
| 13055 |
|
| 13056 |
* configure.ac (LIBOBJS): |
| 13057 |
Remove automake 1.4 workaround, as we're using 1.5 now. |
| 13058 |
(USE_INCLUDED_LIBINTL): New AC_DEFINE. |
| 13059 |
|
| 13060 |
* lib/copysym.c: Include stddef.h, for size_t. |
| 13061 |
Include langinfo.h if needed. |
| 13062 |
Use locale_charset only if USE_INCLUDED_LIBINTL; |
| 13063 |
if not, use nl_langinfo (CODESET) if available. |
| 13064 |
|
| 13065 |
2001-09-13 Paul Eggert <[email protected]> |
| 13066 |
|
| 13067 |
* config.guess, config.sub: Sync with canonical versions. |
| 13068 |
|
| 13069 |
* configure.ac (jm_PREREQ_XGETCWD): Add. |
| 13070 |
|
| 13071 |
* lib/Makefile.am (noinst_HEADERS): Add copysym.h. |
| 13072 |
(libtar_a_SOURCES): Add copysym.c. |
| 13073 |
* copysym.c, copysym.h: New files. |
| 13074 |
|
| 13075 |
* lib/error.c: Sync with fileutils version. |
| 13076 |
|
| 13077 |
* m4/Makefile.am (EXTRA_DIST): Add getcwd.m4; remove uintmax_t.m4. |
| 13078 |
* m4/getcwd.m4: New file. |
| 13079 |
* m4/uintmax_t.m4: Remove. |
| 13080 |
|
| 13081 |
* m4/gettext.m4 (AM_WITH_NLS): |
| 13082 |
Fix bug with calculating version of Bison 1.29. |
| 13083 |
Reported by Karl Berry. |
| 13084 |
|
| 13085 |
* src/Makefile.am (datadir): Remove. |
| 13086 |
|
| 13087 |
* src/rmt.c: Include copysym.h. |
| 13088 |
(main): Use copyright_symbol to translate copyright notice, |
| 13089 |
instead of gettext. |
| 13090 |
* src/tar.c: Likewise. |
| 13091 |
* tests/genfile.c: Likewise. |
| 13092 |
|
| 13093 |
* src/system.h (MB_LEN_MAX): New symbol. |
| 13094 |
|
| 13095 |
2001-09-11 Paul Eggert <[email protected]> |
| 13096 |
|
| 13097 |
* src/extract.c (struct delayed_set_stat): New member |
| 13098 |
'after_symlinks'. |
| 13099 |
(delay_set_stat): Initialize it to 0. |
| 13100 |
(set_mode): New arg current_stat_info. Use it (if nonnull) to avoid |
| 13101 |
taking an extra stat ourselves. All callers changed. |
| 13102 |
(set_stat): Likewise. |
| 13103 |
(apply_nonancestor_delayed_set_stat): New arg 'after_symlinks'. |
| 13104 |
If false, stop when encountering a struct whose 'after_symlinks' |
| 13105 |
member is true. Otherwise, go through all structures but check |
| 13106 |
them more carefully. All callers changed. |
| 13107 |
(extract_archive): When extracting a deferred symlink, if its parent |
| 13108 |
directory's status needs fixing, then mark the directory as needing |
| 13109 |
to be fixed after symlinks. |
| 13110 |
(extract_finish): Fix status of ordinary directories, then apply |
| 13111 |
delayed symlinks, then fix the status of directories that are |
| 13112 |
ancestors of delayed symlinks. |
| 13113 |
|
| 13114 |
* src/rtapelib.c (rexec): |
| 13115 |
Remove declaration; it ran afoul of prototypes on Crays. |
| 13116 |
Reported by Wendy Palm of Cray. |
| 13117 |
|
| 13118 |
2001-09-06 Paul Eggert <[email protected]> |
| 13119 |
|
| 13120 |
* lib/strtoimax.c (HAVE_LONG_LONG): |
| 13121 |
Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned. |
| 13122 |
(strtoimax): Use sizeof (long), not |
| 13123 |
sizeof strtol (ptr, endptr, base), |
| 13124 |
to work around bug in IBM C compiler. |
| 13125 |
|
| 13126 |
2001-09-04 Paul Eggert <[email protected]> |
| 13127 |
|
| 13128 |
* lib/xgetcwd.c: Include "xalloc.h". |
| 13129 |
(xgetcwd): Do not return NULL when memory is exhausted; instead, |
| 13130 |
report an error and exit. |
| 13131 |
|
| 13132 |
* m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro. |
| 13133 |
(jm_PREREQ): Use it. |
| 13134 |
|
| 13135 |
2001-09-03 Paul Eggert <[email protected]> |
| 13136 |
|
| 13137 |
* m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD. |
| 13138 |
(jm_PREREQ_XGETCWD): New macro. |
| 13139 |
|
| 13140 |
* lib/exclude.c (fnmatch_no_wildcards): |
| 13141 |
Fix typo that caused us to do case-folding |
| 13142 |
search even when that was not desired. This occurred only in the |
| 13143 |
no-wildcard case. |
| 13144 |
|
| 13145 |
* lib/xgetcwd.c: Include pathmax.h if not HAVE_GETCWD. |
| 13146 |
Do not include xalloc.h. |
| 13147 |
(INITIAL_BUFFER_SIZE): New symbol. |
| 13148 |
Do not use xmalloc / xrealloc, since the caller is responsible for |
| 13149 |
handling errors. Preserve errno around `free' during failure. |
| 13150 |
Do not overrun buffer when using getwd. |
| 13151 |
|
| 13152 |
* lib/xgetcwd.c (xgetcwd): |
| 13153 |
Use HAVE_GETCWD_NULL, not defined __GLIBC__ && __GLIBC__ >= 2, |
| 13154 |
to decide whether to use getcwd (NULL, 0). |
| 13155 |
|
| 13156 |
2001-09-02 Paul Eggert <[email protected]> |
| 13157 |
|
| 13158 |
* lib/xgetcwd.c: Fix typo in local var; from Jim Meyering. |
| 13159 |
|
| 13160 |
2001-09-01 Jim Meyering <[email protected]> |
| 13161 |
|
| 13162 |
* exclude.c: Use `""', not `<>' to #include non-system header files. |
| 13163 |
(fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp |
| 13164 |
and strncasecmp as r-values. Unixware didn't have declarations. |
| 13165 |
|
| 13166 |
2001-08-31 Jim Meyering <[email protected]> |
| 13167 |
|
| 13168 |
* lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication. |
| 13169 |
Use an initial, malloc'd, buffer of length 128 rather than |
| 13170 |
a statically allocated one of length 1024. |
| 13171 |
|
| 13172 |
2001-08-30 Paul Eggert <[email protected]> |
| 13173 |
|
| 13174 |
* lib/utime.c: Include full-write.h. |
| 13175 |
* lib/xstrtol.c (strtoimax): New decl. |
| 13176 |
|
| 13177 |
2001-08-29 Paul Eggert <[email protected]> |
| 13178 |
|
| 13179 |
* NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.22. |
| 13180 |
|
| 13181 |
* src/create.c (dump_file): Relativize link names before dumping. |
| 13182 |
This fixes a bug reported by Jose Pedro Oliveira. |
| 13183 |
|
| 13184 |
* src/create.c (dump_file): Use offsetof when computing sizes for |
| 13185 |
struct hack; this avoids wasted space in some cases. |
| 13186 |
* src/incremen.c (note_directory, find_directory): Likewise. |
| 13187 |
* src/names.c (name_gather, addname): Likewise. |
| 13188 |
|
| 13189 |
* src/extract.c (extract_archive): Use strcpy, not memcpy, |
| 13190 |
for consistency with other code that does similar things. |
| 13191 |
* src/names.c (name_gather): Likewise. |
| 13192 |
|
| 13193 |
* src/names.c (read_name_from_file, name_next, name_gather, |
| 13194 |
add_hierarchy_to_namelist): Avoid quadratic behavior when |
| 13195 |
reallocating buffers. Check for buffer size overflow. |
| 13196 |
(addname): Avoid unnecessary clearing of memory. |
| 13197 |
|
| 13198 |
2001-08-29 "Jan D." <[email protected]> |
| 13199 |
|
| 13200 |
* src/extract.c (delay_set_stat): Fix off-by-one error in file |
| 13201 |
name size allocation that caused core dumps. |
| 13202 |
|
| 13203 |
2001-08-28 Paul Eggert <[email protected]> |
| 13204 |
|
| 13205 |
* NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.21. |
| 13206 |
|
| 13207 |
* configure.ac (GNU_SOURCE): Define to 1, not /**/. |
| 13208 |
(major_t, minor_t, ssize_t): Use new-style AC_CHECK_TYPE. |
| 13209 |
(daddr_t): Remove; no longer used. |
| 13210 |
(jm_PREREQ_HUMAN): Add. |
| 13211 |
|
| 13212 |
* acconfig.h: Remove; no longer needed. |
| 13213 |
|
| 13214 |
* config.guess, config.sub: |
| 13215 |
New files, from automake 1.5. Gettext 0.10.39 needs them. |
| 13216 |
* depcomp, missing, mkinstalldirs: Upgrade to automake 1.5. |
| 13217 |
|
| 13218 |
* Makefile.am (AUTOMAKE_OPTIONS): Add dist-bzip2. |
| 13219 |
(SUBDIRS): Put intl before lib, as gettext requires. |
| 13220 |
|
| 13221 |
* ABOUT-NLS: Upgrade to gettext 0.10.39. |
| 13222 |
* intl: Upgrade entire directory to gettext 0.10.39. |
| 13223 |
* m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4: |
| 13224 |
New files, from gettext 0.10.39. |
| 13225 |
* m4/gettext.m4, m4/isc-posix.m4, m4/lcmessage.m4, m4/progtest.m4, |
| 13226 |
Upgrade to gettext 0.10.39, |
| 13227 |
* po/Makefile.in.in: Likewise, except fix a typo in its copying |
| 13228 |
permissions. |
| 13229 |
* po/cat-id-tbl.c, po/stamp-cat-id: |
| 13230 |
Remove; no longer used by gettext 0.10.39. |
| 13231 |
* po/ChangeLog: New file. |
| 13232 |
|
| 13233 |
* doc/Makefile.am (EXTRA_DIST): Add freemanuals.texi. |
| 13234 |
$(srcdir)/tar.texi: Likewise. |
| 13235 |
* doc/freemanuals.texi: New file. |
| 13236 |
* doc/tar.texi (Free Software Needs Free Documentation): New appendix. |
| 13237 |
`fileds' -> `fields' |
| 13238 |
* doc/texinfo.tex: Upgrade to version 2001-07-25.07. |
| 13239 |
|
| 13240 |
* lib/Makefile.am (EXTRA_DIST): Add strtoll.c, strtoimax.c. |
| 13241 |
(noinst_HEADERS): Add quote.h. |
| 13242 |
(libtar_a_SOURCES): Add quote.c, xstrtoimax.c. |
| 13243 |
|
| 13244 |
* lib/exclude.c: Fix typo in '#include <stdint.h>' directive. |
| 13245 |
|
| 13246 |
* lib/full-write.c, lib/savedir.c: Comment fix. |
| 13247 |
|
| 13248 |
* lib/pathmax.h: Remove. |
| 13249 |
|
| 13250 |
* lib/quote.c, lib/quote.h: New files. |
| 13251 |
|
| 13252 |
* lib/xgetcwd.c: Don't include pathmax.h. |
| 13253 |
Include stdlib.h and unistd.h if available. |
| 13254 |
Include xalloc.h. |
| 13255 |
(xmalloc, xstrdup, free): Remove decls. |
| 13256 |
(xgetcwd): Don't assume sizes fit in unsigned. |
| 13257 |
Check for overflow when computing sizes. |
| 13258 |
Simplify reallocation code. |
| 13259 |
|
| 13260 |
* lib/xmalloc.c: Quote failure tests. |
| 13261 |
|
| 13262 |
* lib/strtoumax.c, lib/xstrtoimax.c: New files. |
| 13263 |
|
| 13264 |
* lib/strtoimax.c: Renamed from strtouxmax.c. Make it more |
| 13265 |
similar to strtol.c. |
| 13266 |
(UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. |
| 13267 |
(verify): New macro. |
| 13268 |
(strtoumax, uintmax_t, strtoull, strtol): Remove. |
| 13269 |
(intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED. |
| 13270 |
(strtoimax): Renamed from strtoumax. All uses of unsigned values |
| 13271 |
changed to signed values. Check sizes at compile-time, not |
| 13272 |
run-time. Prefer strtol to strtoll if both work. |
| 13273 |
(main): Remove. |
| 13274 |
|
| 13275 |
* lib/xstrtol.h (xstrtoimax): New decl. |
| 13276 |
|
| 13277 |
* m4/Makefile.am (EXTRA_DIST): |
| 13278 |
Add codeset.m4, glibc21.m4, iconv.m4, inttypes.m4, |
| 13279 |
longlong.m4, xstrtoimax.m4. |
| 13280 |
|
| 13281 |
* m4/inttypes.m4 (jm_AC_HEADER_INTTYPES_H): |
| 13282 |
Remove; now done by autoconf. |
| 13283 |
(jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Replace with |
| 13284 |
Use AC_CHECK_TYPE instead of merely looking for the header. |
| 13285 |
|
| 13286 |
* m4/uintmax_t.m4: Use shorter comment. |
| 13287 |
|
| 13288 |
* m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): |
| 13289 |
Quote first arg of AC_DEFUN. |
| 13290 |
Require jm_AC_TYPE_INTMAX_T and jm_AC_TYPE_LONG_LONG since they |
| 13291 |
is needed to parse the include file. |
| 13292 |
Simplify logic behind the args to AC_REPLACE. |
| 13293 |
|
| 13294 |
* src/Makefile.am (OMIT_DEPENDENCIES): Remove. |
| 13295 |
|
| 13296 |
* src/ansi2knr.1, src/ansi2knr.c: Remove; wasn't being used. |
| 13297 |
|
| 13298 |
* src/rmt.c (main): |
| 13299 |
Use "Copyright %d" to simplify the translator's job in the future. |
| 13300 |
Advise translator about circle-C. |
| 13301 |
* src/tar.c: (decode_options): Likewise. |
| 13302 |
* tests/genfile.c (main): Likewise. |
| 13303 |
|
| 13304 |
2001-08-28 Jim Meyering <[email protected]> |
| 13305 |
|
| 13306 |
* lib/argmatch.c: Include "quote.h". |
| 13307 |
(argmatch_invalid): Quote the context. |
| 13308 |
|
| 13309 |
* lib/dirname.c (dir_name): Fix typo on PC platforms. |
| 13310 |
|
| 13311 |
* lib/backupfile.c, lib/basename.c, lib/dirname.c, lib/strtoul.c: |
| 13312 |
Use single-quote for local .h files. |
| 13313 |
|
| 13314 |
* lib/error.h (__attribute__): Don't depend on __STRICT_ANSI__. |
| 13315 |
|
| 13316 |
* lib/getopt.c, lib/getopt.h, lib/getopt1.c: Upgrade to recent |
| 13317 |
glibc versions. |
| 13318 |
|
| 13319 |
* lib/getdate.y (get_date): Initialize tm_isdst to -1 before |
| 13320 |
invoking mktime the last time. |
| 13321 |
|
| 13322 |
* lib/pathmax.h: Use #if rather than #ifdef for HAVE_UNISTD_H. |
| 13323 |
|
| 13324 |
* lib/rename.c: Major rewrite by Volker Borchert to use system |
| 13325 |
rename function, but to work around problems with trailing |
| 13326 |
slashes. |
| 13327 |
|
| 13328 |
* lib/strtoll.c: New file, from glibc. |
| 13329 |
* lib/strtoul.c: Update from glibc. |
| 13330 |
|
| 13331 |
* lib/strtouxmax.c: Renamed from lib/strtoumax.c. |
| 13332 |
Add support for signed numbers, too. |
| 13333 |
(strtoul, strtoull): Do not declare if STRTOUXMAX_UNSIGNED |
| 13334 |
is not defined. |
| 13335 |
(strtol, strtoll): Declare as needed, if STRTOUXMAX_UNSIGNED is |
| 13336 |
not defined. |
| 13337 |
(strtoumax, uintmax_t, strtoull, strtoul): New macros. |
| 13338 |
(main): Use generic names in debugging output. |
| 13339 |
* lib/strtoimax.c: Plus add the following changes of my own: |
| 13340 |
(main): Use accurate names in debugging output. |
| 13341 |
|
| 13342 |
* lib/xgetcwd.c (xgetcwd): Use getcwd if glibc 2 or later. |
| 13343 |
Don't use PATH_MAX. |
| 13344 |
|
| 13345 |
* m4/c-bs-a.m4, m4/check-decl.m4, m4/d-ino.m4, m4/error.m4, |
| 13346 |
m4/getline.m4, m4/jm-mktime.m4, m4/malloc.m4, m4/mbrtowc.m4, |
| 13347 |
m4/mbstate_t.m4, m4/realloc.m4, m4/uintmax_t.m4, m4/utimbuf.m4, |
| 13348 |
m4/utime.m4, m4/utimes.m4: |
| 13349 |
Quote the first argument in each use of AC_DEFUN. |
| 13350 |
|
| 13351 |
* m4/getline.m4: Don't use string.h. |
| 13352 |
|
| 13353 |
* m4/inttypes.m4, m4/longlong.m4, m4/xstrtoimax.m4: New files. |
| 13354 |
|
| 13355 |
* m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): @%:@ -> #. |
| 13356 |
|
| 13357 |
2001-08-27 Paul Eggert <[email protected]> |
| 13358 |
|
| 13359 |
* NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.20. |
| 13360 |
|
| 13361 |
The biggest change is the new --exclude semantics and options. |
| 13362 |
The basic idea was suggested by Gerhard Poul; thanks! |
| 13363 |
|
| 13364 |
* NEWS: Describe new --exclude semantics and options, and bug fixes. |
| 13365 |
* README: ignfail.sh fails on some NFS hosts. |
| 13366 |
* NEWS, README, lib/xstrtol.h: Add copyright notice. |
| 13367 |
|
| 13368 |
* Makefile.am (ACLOCAL_AMFLAGS): Add -I m4. |
| 13369 |
(M4DIR, ACINCLUDE_INPUTS, $(srcdir)/acinclude.m4): |
| 13370 |
Remove; the automake bug has been fixed. |
| 13371 |
* acinclude.m4: Remove. |
| 13372 |
|
| 13373 |
* configure.ac: Renamed from configure.in. |
| 13374 |
(AC_PREREQ): Bump from 2.13 to 2.52. |
| 13375 |
(ALL_LINGUAS): Add id, tr. Remove ko, as po/ko.po (dated |
| 13376 |
1997-05-30) has an encoding error. |
| 13377 |
(jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf. |
| 13378 |
(AC_FUNC_FNMATCH): Use AC_CONFIG_LINKS, not AC_LINK_FILES. |
| 13379 |
|
| 13380 |
* doc/fdl.texi: Update to current GNU version. |
| 13381 |
|
| 13382 |
* doc/tar.texi: Put leading '*' in direntry. |
| 13383 |
Accommodate new gfdl sectioning. |
| 13384 |
New option --recursion (the default) that is the inverse of |
| 13385 |
--no-recursion. |
| 13386 |
|
| 13387 |
New options --anchored, --ignore-case, --wildcards, |
| 13388 |
--wildcards-match-slash, and their negations (e.g., --no-anchored). |
| 13389 |
Along with --recursion and --no-recursion, these control how exclude |
| 13390 |
patterns are interpreted. The default interpretation of exclude |
| 13391 |
patterns is now --no-anchored --no-ignore-case --recursion |
| 13392 |
--wildcards --wildcards-match-slash. |
| 13393 |
|
| 13394 |
* lib/Makefile.am (OMIT_DEPENDENCIES): Remove. |
| 13395 |
|
| 13396 |
* lib/exclude.c (bool): Declare, perhaps by including stdbool.h. |
| 13397 |
(<sys/types.h>): Include only if HAVE_SYS_TYPES_H. |
| 13398 |
(<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>): |
| 13399 |
Include if available. |
| 13400 |
(<xalloc.h>): Include |
| 13401 |
(SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't. |
| 13402 |
(verify): New macro. Use it to verify that EXCLUDE macros do not |
| 13403 |
collide with FNM macros. |
| 13404 |
(struct patopts): New struct. |
| 13405 |
(struct exclude): Use it, as exclude patterns now come with options. |
| 13406 |
(new_exclude): Support above changes. |
| 13407 |
(new_exclude, add_exclude_file): |
| 13408 |
Initial size must now be a power of two to simplify overflow checking. |
| 13409 |
(free_exclude, fnmatch_no_wildcards): New function. |
| 13410 |
(excluded_filename): No longer requires options arg, as the options |
| 13411 |
are determined by add_exclude. Now returns bool, not int. |
| 13412 |
(excluded_filename, add_exclude): |
| 13413 |
Add support for the fancy new exclusion options. |
| 13414 |
(add_exclude, add_exclude_file): Now takes int options arg. |
| 13415 |
Check for arithmetic overflow when computing sizes. |
| 13416 |
(add_exclude_file): xrealloc might modify errno, so don't |
| 13417 |
realloc until after errno might be used. |
| 13418 |
|
| 13419 |
* lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS): |
| 13420 |
New macros. |
| 13421 |
(free_exclude): New decl. |
| 13422 |
(add_exclude, add_exclude_file): Now takes int options arg. |
| 13423 |
(excluded_filename): No longer requires options arg, as the options |
| 13424 |
are determined by add_exclude. Now returns bool, not int. |
| 13425 |
|
| 13426 |
* lib/prepargs.c: Include <string.h>; required for C99 since |
| 13427 |
we use strlen. |
| 13428 |
|
| 13429 |
* lib/quotearg.c: |
| 13430 |
BSD/OS 4.1 wchar.h requires FILE and struct tm to be declared. |
| 13431 |
|
| 13432 |
* lib/xstrtol.h (_DECLARE_XSTRTOL): Improve quality of |
| 13433 |
diagnostic for LONGINT_INVALID_SUFFIX_CHAR. |
| 13434 |
|
| 13435 |
* m4/Makefile.am (EXTRA_DIST): Add check-decl.m4, mbrtowc.m4. |
| 13436 |
Remove inttypes_h.m4, largefile.m4, mktime.m4. |
| 13437 |
|
| 13438 |
* m4/inttypes_h.m4, m4/largefile.m4, m4/mktime.m4: Remove; |
| 13439 |
subsumed by Autoconf 2.50. |
| 13440 |
|
| 13441 |
* m4/error.m4: Upgrade to serial 2. |
| 13442 |
|
| 13443 |
* m4/fnmatch.m4 (jm_FUNC_FNMATCH): Upgrade to serial 4, but |
| 13444 |
remove test for GNU C library. It's not correct, as some |
| 13445 |
older glibcs are buggy. |
| 13446 |
|
| 13447 |
* m4/getline.m4, m4/malloc.m4: Upgrade to serial 4. |
| 13448 |
|
| 13449 |
* m4/prereq.m4: Upgrade to serial 20, but then: |
| 13450 |
(jm_PREREQ): Add jm_PREREQ_EXCLUDE. |
| 13451 |
(jm_PREREQ_EXCLUDE): New macro. |
| 13452 |
(jm_PREREQ_HUMAN): Remove jm_AC_HEADER_INTTYPES_H, as it is subsumed |
| 13453 |
by autoconf 2.5x. |
| 13454 |
|
| 13455 |
* m4/realloc.m4: Upgrade to serial 4. |
| 13456 |
|
| 13457 |
* m4/strerror_r.m4: Revert to serial 1002. |
| 13458 |
|
| 13459 |
* m4/uintmax_t.m4: Upgrade to autoconf 2.5x. |
| 13460 |
|
| 13461 |
* m4/utimes.m4: Upgrade to latest version (still "serial 3"). |
| 13462 |
|
| 13463 |
* m4/xstrtoumax.m4: Upgrade to serial 3, but then: |
| 13464 |
(jm_AC_PREREQ_XSTRTOUMAX): Remove jm_AC_HEADER_INTTYPES_H, as |
| 13465 |
it is now subsumed by autoconf. Add inttypes.h. |
| 13466 |
|
| 13467 |
* po/cs.po, po/da.po, po/de.po, po/es.po, po/et.po, po/fr.po, |
| 13468 |
po/it.po, po/pl.po, po/sl.po, po/sv.po: Sync with translation project. |
| 13469 |
|
| 13470 |
* src/buffer.c (new_volume): Stop if the script exits with an error. |
| 13471 |
|
| 13472 |
* src/common.h (excluded_with_slash, excluded_without_slash): |
| 13473 |
Remove, replacing by: |
| 13474 |
(excluded): New decl. |
| 13475 |
(link_error): New decl. |
| 13476 |
(excluded_name): Now returns bool. |
| 13477 |
|
| 13478 |
* src/extract.c: |
| 13479 |
(struct delayed_symlinks, extract_archive, apply_delayed_symlinks): |
| 13480 |
Support hard links to symbolic links. |
| 13481 |
|
| 13482 |
(struct delayed_symlink): Remove 'names' member, replacing it with |
| 13483 |
'sources' and 'target' member. All uses changed. |
| 13484 |
|
| 13485 |
(struct string_list): New type. |
| 13486 |
|
| 13487 |
(delayed_set_stat, extract_archive): Use offsetof when computing sizes |
| 13488 |
for struct hack; this avoids wasted space in some cases. |
| 13489 |
|
| 13490 |
(extract_archive): Fix test for absolute pathnames and/or "..". |
| 13491 |
Use link_error to report errors for links. |
| 13492 |
Remove redundant trailing '/' at "really_dir", for all uses, not |
| 13493 |
just before invoking mkdir. |
| 13494 |
If overwriting old files, do not worry so much about existing |
| 13495 |
directories. |
| 13496 |
Fix mode computation in the case where the directory exists. |
| 13497 |
|
| 13498 |
(apply_delayed_symlinks): If we can't make a hard link to a symbolic |
| 13499 |
link, make a copy of the symbolic link. |
| 13500 |
|
| 13501 |
* src/incremen.c (get_directory_contents): |
| 13502 |
If ignore_failed_read_option, only warn about |
| 13503 |
stat failures. |
| 13504 |
|
| 13505 |
* src/list.c (from_header): Do not issue a diagnostic if TYPE is zero. |
| 13506 |
However, check for error even for '-' or '+' case. |
| 13507 |
|
| 13508 |
(print_header): Try parsing uids and gids as unsigned integers first, |
| 13509 |
and as a uid_t or gid_t only if that fails. This adds support for |
| 13510 |
listing positive uids and gids that are greater than UID_MAX and |
| 13511 |
GID_MAX. |
| 13512 |
|
| 13513 |
* src/misc.c (link_error): New function. |
| 13514 |
|
| 13515 |
* src/names.c (collect_and_sort_names): |
| 13516 |
If ignore_failed_read_option, only warn about |
| 13517 |
stat errors. |
| 13518 |
|
| 13519 |
(excluded_name): Now returns bool. Simplify, as the fancy |
| 13520 |
features are now all in excluded_filename. |
| 13521 |
|
| 13522 |
* src/rtapelib.c (base_name): Remove decl, as system.h now |
| 13523 |
declares it. |
| 13524 |
|
| 13525 |
* src/system.h: Include stddef.h if available. |
| 13526 |
(offsetof): Declare if stddef.h doesn't. |
| 13527 |
|
| 13528 |
Include <dirname.h>. |
| 13529 |
(FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now defined by dirname.h. |
| 13530 |
|
| 13531 |
* src/tar.c (ANCHORED_OPTION, IGNORE_CASE_OPTION, |
| 13532 |
NO_ANCHORED_OPTION, NO_IGNORE_CASE_OPTION, NO_WILDCARDS_OPTION, |
| 13533 |
NO_WILDCARDS_MATCH_SLASH_OPTION, WILDCARDS_OPTION, |
| 13534 |
WILDCARDS_MATCH_SLASH_OPTION): |
| 13535 |
New enum values. |
| 13536 |
|
| 13537 |
(long_options, usage, decode_options): Add support for --anchored, |
| 13538 |
--ignore-case, --no-anchored, --no-ignore-case, --no-wildcards, |
| 13539 |
--no-wildcards-match-slash, --recursion, --wildcards, |
| 13540 |
--wildcards-match-slash. |
| 13541 |
|
| 13542 |
(decode_options): Implement the new way of interpreting exclude |
| 13543 |
patterns. |
| 13544 |
|
| 13545 |
(usage): --newer-mtime takes a DATE operand. DATE may be a file name. |
| 13546 |
|
| 13547 |
(OPTION_STRING, decode_options): Add -I, -y. Currently these options |
| 13548 |
just print error messages suggesting alternatives. |
| 13549 |
|
| 13550 |
(add_filtered_exclude): Remove. |
| 13551 |
|
| 13552 |
* tests/Makefile.am (TESTS): Alphabetize, except put version.sh first. |
| 13553 |
|
| 13554 |
* tests/extrac04.sh (out): Remove |
| 13555 |
directory/subdirectory/file1, as the new semantics for |
| 13556 |
--exclude exclude it. |
| 13557 |
|
| 13558 |
* tests/genfile.c (main): Don't use non-ASCII char in msgid. |
| 13559 |
|
| 13560 |
2001-08-12 Paul Eggert <[email protected]> |
| 13561 |
|
| 13562 |
* lib/addext.c (<errno.h>): Include. |
| 13563 |
(errno): Declare if not defined. |
| 13564 |
(addext): Work correctly on the Hurd, where pathconf returns -1 and |
| 13565 |
leaves errno alone, because there is no limit. Also, work even if |
| 13566 |
size_t is narrower than long. |
| 13567 |
|
| 13568 |
2001-07-08 Paul Eggert <[email protected]> |
| 13569 |
|
| 13570 |
* lib/alloca.c (alloca): Arg is of type size_t, not unsigned. |
| 13571 |
|
| 13572 |
2001-05-10 Paul Eggert <[email protected]> |
| 13573 |
|
| 13574 |
* lib/addext.c (ISSLASH, base_name): Remove decls; now in dirname.h. |
| 13575 |
Include <backupfile.h> and <dirname.h> after size_t is defined. |
| 13576 |
(addext): Use base_len to trim redundant trailing slashes instead of |
| 13577 |
doing it ourselves. |
| 13578 |
|
| 13579 |
* lib/backupfile.c (ISSLASH, base_name): |
| 13580 |
Remove decls; now in dirname.h. |
| 13581 |
Include <argmatch.h>, <backupfile.h>, <dirname.h> after size_t |
| 13582 |
is defined. |
| 13583 |
(find_backup_file_name): Rename locals to avoid new functions. |
| 13584 |
Use base_len instead of rolling it ourselves. |
| 13585 |
Work even if dirlen is 0. |
| 13586 |
Use a dir of '.' if given the empty string. |
| 13587 |
|
| 13588 |
* lib/basename.c: |
| 13589 |
Do not include <stdio.h>, <assert.h>; no longer needed. |
| 13590 |
(FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h. |
| 13591 |
Include <string.h>, <dirname.h>. |
| 13592 |
(base_name): Allow file names ending in slashes, other than names |
| 13593 |
that are all slashes. In this case, return the basename followed |
| 13594 |
by the slashes. |
| 13595 |
|
| 13596 |
* lib/dirname.c: Include <string.h> instead of <stdlib.h>. |
| 13597 |
(FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h. |
| 13598 |
(dir_len): Renamed from dirlen. |
| 13599 |
All callers changed. |
| 13600 |
|
| 13601 |
* lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN): |
| 13602 |
New macros. |
| 13603 |
(base_name, base_len, dir_len, strip_trailing_slashes): New decls. |
| 13604 |
|
| 13605 |
2001-02-16 Paul Eggert <[email protected]> |
| 13606 |
|
| 13607 |
* lib/quotearg.c (mbrtowc, mbrtowc, mbsinit): |
| 13608 |
Do not declare or define if HAVE_MBRTOWC, |
| 13609 |
since the test for HAVE_MBRTOWC now requires proper declarations. |
| 13610 |
|
| 13611 |
* lib/alloca.c (malloc): Undef before defining. |
| 13612 |
|
| 13613 |
2001-02-13 Paul Eggert <[email protected]> |
| 13614 |
|
| 13615 |
* src/compare.c (read_and_process): Use off_t for size. |
| 13616 |
From Maciej W. Rozycki. |
| 13617 |
|
| 13618 |
2001-01-26 Paul Eggert <[email protected]> |
| 13619 |
|
| 13620 |
* lib/quotearg.c: Include stddef.h. From Jim Meyering. |
| 13621 |
|
| 13622 |
2001-01-12 Paul Eggert <[email protected]> |
| 13623 |
|
| 13624 |
* NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.19. |
| 13625 |
|
| 13626 |
* lib/savedir.h (savedir): Remove size arg. |
| 13627 |
|
| 13628 |
* doc/tar.texi: Add @setchapternewpage odd. |
| 13629 |
Remove -I as an alias for -T, for now. |
| 13630 |
Add @dircategory. |
| 13631 |
Update copyright. Remove "Published by". |
| 13632 |
Dates beginning with / or . are taken to be file names. |
| 13633 |
|
| 13634 |
* src/tar.c (<time.h>): Do not include; |
| 13635 |
(time): Do not declare. |
| 13636 |
(usage): Remove -I as an alias for -T. |
| 13637 |
(OPTION_STRING): Remove -I. |
| 13638 |
(decode_options): Dates that look like an absolute path name, |
| 13639 |
or that start with '.', are presumed to be file names whose |
| 13640 |
dates are taken. |
| 13641 |
Remove 'I' as an alias for 'T'. |
| 13642 |
Update copyright. |
| 13643 |
|
| 13644 |
* src/extract.c (<time.h>): Do not include; system.h now does this. |
| 13645 |
(make_directories): Skip filesystem prefixes. |
| 13646 |
Don't assume '/' is the only separator. |
| 13647 |
(extract_sparse_file): Use new full_write semantics. |
| 13648 |
On write error, return instead of invoking skip_file. |
| 13649 |
Do not free sparsearray; caller does this now. |
| 13650 |
(apply_nonancestor_delayed_set_stat): Do not assume '/' is the only |
| 13651 |
separator. |
| 13652 |
(extract_archive): Don't assume file name lengths fit in int. |
| 13653 |
Report what got stripped from member name; it might be more than '/'. |
| 13654 |
Use new full_write semantics. |
| 13655 |
Do not pass redundant trailing "/" to mkdir, as POSIX does not allow |
| 13656 |
mkdir to ignore it. |
| 13657 |
Do not report mkdir error if old_files_option == KEEP_OLD_FILES. |
| 13658 |
|
| 13659 |
* src/buffer.c (<time.h>): Do not include; system.h now does this. |
| 13660 |
(time): Remove decl; likewise. |
| 13661 |
(child_open_for_uncompress): Use new full_write semantics. |
| 13662 |
(flush_write): Use ISSLASH instead of testing for '/'. |
| 13663 |
(flush_read): Likewise. |
| 13664 |
|
| 13665 |
* src/rmt.h (_remdev): Look for / anywhere in Path. |
| 13666 |
|
| 13667 |
* src/misc.c (contains_dot_dot): Skip filesystem prefix. |
| 13668 |
Don't assume '/' is the only separator. |
| 13669 |
(safer_rmdir): Don't assume '/' is the only separator. |
| 13670 |
|
| 13671 |
* src/compare.c (diff_archive): Don't assume '/' is the only separator. |
| 13672 |
|
| 13673 |
* lib/dirname.h (dirlen): New decl. |
| 13674 |
|
| 13675 |
* src/incremen.c (get_directory_contents): |
| 13676 |
Remove path_size arg; all callers changed. |
| 13677 |
Don't assume '/' is the only directory separator. |
| 13678 |
(gnu_restore): Work even if file name length doesn't fit in int. |
| 13679 |
|
| 13680 |
* lib/addext.c (ISSLASH): New macro. |
| 13681 |
(addext): Trim any redundant trailing slashes. |
| 13682 |
|
| 13683 |
* src/names.c (name_next): |
| 13684 |
Don't assume '/' is the only directory separator. |
| 13685 |
(namelist_match): Likewise. |
| 13686 |
(add_hierarchy_to_namelist): Remove dirsize arg. |
| 13687 |
Do not assume '/' is the only directory separator. |
| 13688 |
(new_name): Likewise. |
| 13689 |
|
| 13690 |
* lib/Makefile.am (noinst_HEADERS): Add dirname.h, full-write.h. |
| 13691 |
(libtar_a_SOURCES): Add dirname.c. |
| 13692 |
|
| 13693 |
* src/create.c (relativize): |
| 13694 |
New function, with much of old start_header's guts. |
| 13695 |
Handle filesystem prefixes. |
| 13696 |
(start_header): Use this new function. |
| 13697 |
(init_sparsearray): Don't bother to zero out the new array; |
| 13698 |
it's not needed. |
| 13699 |
(deal_with_sparse): Fix array allocation bug. |
| 13700 |
(create_archive): Don't assume '/' is the only separator. |
| 13701 |
(dump_file): Likewise. |
| 13702 |
Don't worry about leading / in symlink targets. |
| 13703 |
|
| 13704 |
* lib/savedir.c (savedir): |
| 13705 |
Remove size arg; it wasn't portable. All callers changed. |
| 13706 |
|
| 13707 |
* lib/utime.c (utime_null): Adjust to new full_write convention. |
| 13708 |
|
| 13709 |
* configure.in (YACC): Avoid portability problem with Ultrix sh. |
| 13710 |
|
| 13711 |
* lib/backupfile.c: Include <dirname.h>. |
| 13712 |
(ISSLASH): New macro. |
| 13713 |
(find_backup_file_name): Use dirlen to calculate directory lengths. |
| 13714 |
(max_backup_version): Strip redundant trailing slashes. |
| 13715 |
|
| 13716 |
* src/common.h: Include <full-write.h>. |
| 13717 |
(get_directory_contents): No longer has size arg. |
| 13718 |
(gnu_restore): Arg is size_t, not int. |
| 13719 |
|
| 13720 |
* src/system.h: Include <time.h>. |
| 13721 |
(time): Declare if not defined. |
| 13722 |
|
| 13723 |
* lib/full-write.c: Include full-write.h, not safe-read.h. |
| 13724 |
full_write returns size_t, with short writes meaning failure. |
| 13725 |
All callers changed. |
| 13726 |
|
| 13727 |
* src/rtapelib.c: Include full-write.h. |
| 13728 |
|
| 13729 |
* src/rmt.c: Include full-write.h. |
| 13730 |
(main): Update copyright. |
| 13731 |
|
| 13732 |
* doc/getdate.texi: Mention that only English is supported. |
| 13733 |
Show how to use "date" so that the output is acceptable to getdate. |
| 13734 |
Mention Z as an abbreviation for UTC. |
| 13735 |
|
| 13736 |
* lib/full-write.h: New file. |
| 13737 |
|
| 13738 |
* src/list.c: system.h now does time.h stuff. |
| 13739 |
|
| 13740 |
* lib/dirname.c: |
| 13741 |
Use HAVE_STDLIB_H, not STDC_HEADERS, to decide whether to include |
| 13742 |
stdlib.h. |
| 13743 |
Do not include string.h, strings.h, or assert.h; no longer needed. |
| 13744 |
(strrchr, memrchr, malloc): Remove decls; no longer needed. |
| 13745 |
Include <xalloc.h>. |
| 13746 |
(base_name): New decl. |
| 13747 |
(BACKSLASH_IS_PATH_SEPARATOR): Remove. |
| 13748 |
(dir_name_r): Remove. |
| 13749 |
(dirlen): New function. |
| 13750 |
(dir_name): Use dirlen instead of dir_name_r. |
| 13751 |
(<string.h>, <strings.h>): Include only if test program. |
| 13752 |
(main): Use "return 0", not "exit (0)". |
| 13753 |
|
| 13754 |
2000-12-08 Paul Eggert <[email protected]> |
| 13755 |
|
| 13756 |
* lib/dirname.h: New file. |
| 13757 |
|
| 13758 |
2000-11-02 Vesselin Atanasov <[email protected]> |
| 13759 |
|
| 13760 |
* lib/fnmatch.c: Do not comment out all the code if we are using |
| 13761 |
the GNU C library, because in some cases we are replacing buggy |
| 13762 |
code in the GNU C library itself. |
| 13763 |
|
| 13764 |
2000-10-30 Paul Eggert <[email protected]> |
| 13765 |
|
| 13766 |
* lib/fnmatch.c (FOLD): Do not assume that characters are unsigned. |
| 13767 |
|
| 13768 |
2000-10-29 Paul Eggert <[email protected]> |
| 13769 |
|
| 13770 |
* NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.18. |
| 13771 |
|
| 13772 |
* src/tar.c: Include <fnmatch.h>, for FNM_LEADING_DIR. |
| 13773 |
|
| 13774 |
2000-10-28 Paul Eggert <[email protected]> |
| 13775 |
|
| 13776 |
* doc/tar.texi: --no-recursion now applies to extraction, too. |
| 13777 |
* src/create.c (dump_file): no_recurse_option -> ! recursion_option |
| 13778 |
* src/names.c (namelist_match, excluded_name): |
| 13779 |
Do not match subfiles of a directory |
| 13780 |
if --no-recursion is specified. |
| 13781 |
* src/tar.c (NO_RECURSE_OPTION): Remove. |
| 13782 |
(long_options): Have getopt set the --no-recursion flag. |
| 13783 |
(decode_options): Initialize recursion_option to FNM_LEADING_DIR. |
| 13784 |
Remove case for NO_RECURSE_OPTION. |
| 13785 |
* src/common.h (recursion_option): |
| 13786 |
Renamed from no_recurse_option, with sense |
| 13787 |
negated, and with FNM_LEADING_DIR being the nonzero value. |
| 13788 |
|
| 13789 |
* names.c (namelist_match): New function. |
| 13790 |
(name_match, name_scan): Use it to eliminate duplicate code. |
| 13791 |
(names_notfound): Remove special case for Amiga. |
| 13792 |
|
| 13793 |
2000-10-27 Paul Eggert <[email protected]> |
| 13794 |
|
| 13795 |
* src/misc.c (read_error_details, read_warn_details, |
| 13796 |
read_fatal_details): Don't assume size_t is unsigned long. |
| 13797 |
|
| 13798 |
* src/buffer.c (flush_read): If read_full_records_option, try to |
| 13799 |
fill the input buffer, as --delete -f - needs this. |
| 13800 |
|
| 13801 |
2000-10-24 Paul Eggert <[email protected]> |
| 13802 |
|
| 13803 |
* m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Port to autoconf 2.13. |
| 13804 |
|
| 13805 |
* src/buffer.c (check_label_pattern): |
| 13806 |
Make sure header name is a string before |
| 13807 |
passing it to fnmatch. |
| 13808 |
(init_volume_number): Check for global_volno overflow. |
| 13809 |
(new_volume): Check for global_volno overflow. |
| 13810 |
|
| 13811 |
* src/tar.c (decode_options): |
| 13812 |
Check that volume label is not too long to overflow |
| 13813 |
name in tar header block. |
| 13814 |
|
| 13815 |
* Makefile.am (EXTRA_DIST): Remove rebox.el. |
| 13816 |
|
| 13817 |
* configure.in (HAVE_DECL_STRERROR_R): Remove our handwritten code. |
| 13818 |
(AC_FUNC_STRERROR_R): Use this instead. |
| 13819 |
|
| 13820 |
2000-10-23 Paul Eggert <[email protected]> |
| 13821 |
|
| 13822 |
* src/extract.c: Include <time.h>, since we invoke "time". |
| 13823 |
|
| 13824 |
* lib/prepargs.c (prepend_default_options): |
| 13825 |
Don't use NULL, for portability. |
| 13826 |
|
| 13827 |
* m4/fnmatch.m4: Add "working" to message. |
| 13828 |
|
| 13829 |
* src/names.c: (_GNU_SOURCE): Remove; autoconf now does this. |
| 13830 |
Include <hash.h>. |
| 13831 |
(getpwuid, getgrgid): Declare only if system headers don't. |
| 13832 |
(gid_to_gname): Don't invoke setgrent. |
| 13833 |
(namelist): Now static, not global. |
| 13834 |
(nametail): New var. All uses of namelast changed to use |
| 13835 |
nametail, with one extra level of indirection. |
| 13836 |
(name_gather): Use memcpy instead of strncpy + assignment of NUL. |
| 13837 |
(name_match): Set nametail too, when setting namelist to null. |
| 13838 |
(add_hierarchy_to_namelist): Change type of dir arg from char * to |
| 13839 |
struct name *, so that we don't have to look up the name again |
| 13840 |
here. Get change_dir from dir rather than as a separate arg. Add |
| 13841 |
dirsize arg, and pass it along to get_directory_contents. Remove |
| 13842 |
unnecessary check of directory type. |
| 13843 |
(new_name): Do not append a slash if PATH already ends in one. |
| 13844 |
(avoided_names, struct avoided_name): Remove. |
| 13845 |
(avoided_name_table): New var, replacing avoided_names. |
| 13846 |
(hash_avoided_name, compare_avoided_names): New function. |
| 13847 |
(add_avoided_name, is_avoided_name): Use hash table rather than |
| 13848 |
linked list. |
| 13849 |
|
| 13850 |
* src/buffer.c (_GNU_SOURCE): Remove; autoconf now does this. |
| 13851 |
(child_open_for_compress, child_open_for_uncompress, |
| 13852 |
close_archive): Propagate any failure of the compression process |
| 13853 |
back to "tar". |
| 13854 |
(open_archive, flush_write, flush_read, close_archive): Do not |
| 13855 |
allocate an array of size PATH_MAX, as PATH_MAX might be (size_t) |
| 13856 |
-1. Instead, allocate an array with the size that's needed. |
| 13857 |
(open_archive): Don't bother checking S_ISCHR of /dev/null. |
| 13858 |
(backspace_output): Don't try to backspace past start of archive. |
| 13859 |
(close_archive): Remove special case for DELETE_SUBCOMMAND. |
| 13860 |
|
| 13861 |
* acconfig.h (_GNU_SOURCE, DEFAULT_ARCHIVE, DEFAULT_BLOCKING, |
| 13862 |
DENSITY_LETTER, DEVICE_PREFIX, EMUL_OPEN3, HAVE_GETGRGID, |
| 13863 |
HAVE_GETPWUID, HAVE_MKNOD, HAVE_RTAPELIB, HAVE_ST_FSTYPE_STRING, |
| 13864 |
HAVE_UNION_WAIT, HAVE_UTIME_H, HAVE_VALLOC, MTIO_CHECK_FIELD, PACKAGE, |
| 13865 |
PROTOTYPES, REMOTE_SHELL, STD_INC_PATH, VERSION, WITH_CATALOGS, |
| 13866 |
WITH_DMALLOC, WITH_REGEX): |
| 13867 |
Remove; now generated automatically. |
| 13868 |
|
| 13869 |
* configure.in (_GNU_SOURCE): Define to empty, not 1, for |
| 13870 |
compatibility for glibc fragments. |
| 13871 |
(_GNU_SOURCE, HAVE_UTIME_H, MTIO_CHECK_FIELD, |
| 13872 |
HAVE_ST_FSTYPE_STRING, HAVE_MKNOD, REMOTE_SHELL, DENSITY_LETTER, |
| 13873 |
DEVICE_PREFIX, DEFAULT_ARCHIVE, DEFAULT_BLOCKING): Add comment so |
| 13874 |
that we needn't put an entry into acconfig.h. |
| 13875 |
(ALL_LINGUAS): Add da. |
| 13876 |
(AC_C_BACKSLASH_A): Remove; jm_PREREQ_QUOTEARG now does this. |
| 13877 |
(AC_CHECK_HEADERS): Add stdbool.h (for hash.h users), wctype.h |
| 13878 |
(for strtol.c). |
| 13879 |
(AC_MBSTATE_T): Add. |
| 13880 |
(RMT): Append $(EXEEXT). |
| 13881 |
(HAVE_GETGRGID, HAVE_GETPWUID, pe_AC_TYPE_SIGNED_CHAR): Remove. |
| 13882 |
(HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID, |
| 13883 |
HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL, |
| 13884 |
HAVE_DECL_STRTOULL, HAVE_DECL_STRERROR_R): New macros. |
| 13885 |
(jm_PREREQ_ADDEXT, jm_PREREQ_ERROR, jm_PREREQ_QUOTEARG): Add. |
| 13886 |
(AC_REPLACE_FUNCS): Remove execlp; no longer needed. |
| 13887 |
(AC_CHECK_FUNCS): Add clock_gettime; AC_SEARCH_LIBS wasn't enough. |
| 13888 |
Remove mbrtowc; jm_PREREQ_QUOTEARG now does this. |
| 13889 |
(EMUL_OPEN3): Remove; no longer needed. |
| 13890 |
(DENSITY_LETTER, DEVICE_PREFIX): Simplify m4 quoting. |
| 13891 |
|
| 13892 |
* m4/fnmatch.m4 (AC_FUNC_FNMATCH): Detect d*/*1 vs d/s/1 bug. |
| 13893 |
|
| 13894 |
* src/common.h: Do not include basename.h. |
| 13895 |
* src/rtapelib.c (base_name): Do not include basename.h; |
| 13896 |
declare base_name instead. |
| 13897 |
|
| 13898 |
* lib/basename.h, lib/execlp.c, lib/getpagesize.h, lib/mkdir.c: |
| 13899 |
Remove these files. |
| 13900 |
* lib/getstr.c, lib/getstr.h, lib/hash.h, lib/hash.h, lib/prepargs.c, |
| 13901 |
lib/prepargs.h, lib/savedir.c, lib/savedir.h: New files. |
| 13902 |
* lib/Makefile.am (EXTRA_DIST, noinst_HEADERS, libtar_a_SOURCES): |
| 13903 |
Adjust to the above changes. |
| 13904 |
|
| 13905 |
* lib/Makefile.am (AUTOMAKE_OPTIONS): Remove ../src/ansi2knr. |
| 13906 |
|
| 13907 |
* src/open3.c: Remove. |
| 13908 |
|
| 13909 |
* src/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr. |
| 13910 |
(tar_SOURCES): Remove open3.c. |
| 13911 |
(INCLUDES): Remove -I.., as automake does that. |
| 13912 |
(OMIT_DEPENDENCIES): ../lib/fnmatch.h -> fnmatch.h. Add localedir.h. |
| 13913 |
|
| 13914 |
The following changes are to put LOCALEDIR into localedir.h instead |
| 13915 |
of passing it on the command line. |
| 13916 |
(DEFS): Remove. |
| 13917 |
(DISTCLEANFILES): New macro. |
| 13918 |
(localedir.h): New rule. |
| 13919 |
(rmt.o tar.o): Now depend on localedir.h. |
| 13920 |
|
| 13921 |
* tests/delete02.sh, tests/extrac04.sh: New files. |
| 13922 |
|
| 13923 |
* tests/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr. |
| 13924 |
(TESTS): Add extrac04.sh, and restore delete02.sh. |
| 13925 |
(DEFS): Remove; LOCALEDIR is now done via localedir.h. |
| 13926 |
(INCLUDES): Remove -I.. as automake does this now. |
| 13927 |
|
| 13928 |
* src/rtapelib.c (rexec): Don't declare unless using it. |
| 13929 |
(do_command): Simplify signal-handling code slightly. |
| 13930 |
|
| 13931 |
* src/delete.c (blocks_needed): Remove. All uses changed to use |
| 13932 |
blocking_factor - new_blocks. |
| 13933 |
(acting_as_filter): New var. |
| 13934 |
(write_record, delete_archive_members): Use acting_as_filter |
| 13935 |
rather than archive == STDIN_FILENO to detect whether we're acting |
| 13936 |
as a filter, as open can return STDIN_FILENO in some cases. |
| 13937 |
(delete_archive_members): Ignore zero blocks if |
| 13938 |
ignore_zeros_option is nonzero. Fix bug that messed up last |
| 13939 |
output block: write_eot can't be used here, as it gets confused |
| 13940 |
when the input is at end of file. |
| 13941 |
|
| 13942 |
* src/compare.c (diff_archive): Do not impose an arbitrary limit on |
| 13943 |
symbolic link contents length. Pass directory size to |
| 13944 |
get_directory_contents. |
| 13945 |
|
| 13946 |
* m4/decl.m4, m4/error.m4, m4/mbstate_t.m4, m4/prereq.m4, |
| 13947 |
m4/strerror_r.m4: New files. |
| 13948 |
* m4/signedchar.m4: Remove this file. |
| 13949 |
* Makefile.am (ACINCLUDE_INPUTS): Adjust to above changes. |
| 13950 |
* m4/Makefile.am (EXTRA_DIST): Likewise. |
| 13951 |
|
| 13952 |
* Makefile.am (DISTCLEANFILES): Add intl/libintl.h. |
| 13953 |
|
| 13954 |
* po/da.po: New translation file. |
| 13955 |
|
| 13956 |
* src/mangle.c (extract_mangle): |
| 13957 |
Fix diagnostic with wrong number of %s'es. |
| 13958 |
|
| 13959 |
* lib/fnmatch.c (fnmatch): |
| 13960 |
Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs, |
| 13961 |
e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero. |
| 13962 |
|
| 13963 |
* lib/full-write.c (full_write): Some buggy drivers return 0 when you |
| 13964 |
fall off a device's end. Detect this. |
| 13965 |
|
| 13966 |
* src/system.h (IN_CTYPE_DOMAIN): Renamed from CTYPE_DOMAIN. All |
| 13967 |
uses changed. |
| 13968 |
(open): Remove macro; we no longer support EMUL_OPEN3. Do not |
| 13969 |
include <pathmax.h> and directory include files like <dirent.h>; |
| 13970 |
no longer used. Include <savedir.h> instead. |
| 13971 |
(closedir, signed_char): remove macro; no longer used. |
| 13972 |
(bool, false, true): Include <stdbool.h> if you have the include |
| 13973 |
file, otherwise define. |
| 13974 |
|
| 13975 |
* src/misc.c: |
| 13976 |
(is_dot_or_dotdot, closedir_error, closedir_warn, opendir_error, |
| 13977 |
opendir_warn, readdir_error): Remove; no longer needed. |
| 13978 |
(safer_rmdir): Strip leading ./ (or .// or ./// or ././ or etc.) |
| 13979 |
before deciding whether we're trying to remove ".". |
| 13980 |
(remove_any_file): Try unlink first if we are not root. Use |
| 13981 |
savedir when recursively removing directories, to avoid exhausting |
| 13982 |
file descriptors. |
| 13983 |
(savedir_error, savedir_warn, symlink_error): New functions. |
| 13984 |
|
| 13985 |
* src/list.c: (read_and): Do not invoke |
| 13986 |
apply_nonancestor_delayed_set_stat; DO_SOMETHING is now |
| 13987 |
responsible for that. Do not invoke apply_delayed_set_stat; our |
| 13988 |
caller is now responsible for that. |
| 13989 |
(read_header): Use signed char instead of signed_char. Prevent |
| 13990 |
later references to current_header from mistakenly treating it as |
| 13991 |
an old GNU header. |
| 13992 |
(from_header): Quote invalid base-64 strings in diagnostics. |
| 13993 |
(time_from_header): Do not warn about future timestamps in |
| 13994 |
archive; check_time now does that. |
| 13995 |
(print_header): Quote unknown file types. |
| 13996 |
(skip_member): New function, replacing skip_extended_headers and |
| 13997 |
now skipping the whole member instead of just the extended |
| 13998 |
headers. All callers changed. This makes the code handle |
| 13999 |
extended headers uniformly, and fixes some bugs. |
| 14000 |
|
| 14001 |
* src/update.c (update_archive): Use skip_member. |
| 14002 |
|
| 14003 |
* src/extract.c (we_are_root): Now global. |
| 14004 |
(struct delayed_symlink): New type. |
| 14005 |
(delayed_symlink_head): New var. |
| 14006 |
(extr_init, fatal_exit): Invoke extract_finish on fatal errors, |
| 14007 |
not apply_delayed_set_stat. |
| 14008 |
(set_mode, set_stat): Pointer args are now const pointers. |
| 14009 |
(check_time): New function. |
| 14010 |
(set_stat): Warn if setting a file's timestamp to be the future. |
| 14011 |
(make_directories): Do not save and restore errno. |
| 14012 |
(maybe_recoverable): Set errno to ENOENT if we cannot make missing |
| 14013 |
intermediate directories. |
| 14014 |
(extract_archive): Invoke apply_nonancestor_delayed_set_stat here, |
| 14015 |
not in caller. Extract potentially dangerous symbolic links more |
| 14016 |
carefully, deferring their creation until the end, and using a |
| 14017 |
regular file placeholder in the meantime. Do not remove trailing |
| 14018 |
/ and /. from file names. Do not bother checking for ".." when |
| 14019 |
checking whether a directory loops back on itself, as loopbacks |
| 14020 |
can occur with symlinks too. Also, in that case, do not bother |
| 14021 |
saving and restoring errno; just set it to EEXIST. |
| 14022 |
(apply_nonancestor_delayed_set_stat): A prefix is a potential |
| 14023 |
ancestor if it ends in slash too (as well as ending in a char just |
| 14024 |
before slash). |
| 14025 |
(apply_delayed_set_stat): Remove. |
| 14026 |
(apply_delayed_symlinks, extract_finish): New functions. |
| 14027 |
|
| 14028 |
* doc/fdl.texi: New file. |
| 14029 |
* doc/Makefile.am (EXTRA_DIST): Add fdl.texi. |
| 14030 |
($(srcdir)/tar.info): Add fdl.texi. Invoke makeinfo with --no-split. |
| 14031 |
* doc/tar.texi: Add Free Documentation License. New section |
| 14032 |
"Overwrite Old Files", and revamp that section to make it easier to |
| 14033 |
follow. "tar" -> "GNU tar" where appropriate. Migrate getdate |
| 14034 |
documentation into getdate.texi. Fix several minor typos. Describe |
| 14035 |
TAR_OPTIONS. Describe incompatibility between incremental backups and |
| 14036 |
--atime-preserve. Describe incompatibility between --verify and other |
| 14037 |
options. Mention that tar normally removes symbolic links rather than |
| 14038 |
following them, when extracting a file of the same name. |
| 14039 |
|
| 14040 |
* THANKS: Add gpoul. Change skip's address. |
| 14041 |
|
| 14042 |
* po/POTFILES.in: Add lib/human.c. |
| 14043 |
|
| 14044 |
* src/common.h (namelist, namelast): Remove decls. |
| 14045 |
(we_are_root, extract_finish, skip_member, savedir_error, |
| 14046 |
savedir_warn, symlink_error, gnu_list_name): New decls. |
| 14047 |
(apply_delayed_set_stat, apply_nonancestor_delayed_set_stat, |
| 14048 |
skip_extended_headers, is_dot_or_dotdot, closedir_error, |
| 14049 |
closedir_warn, opendir_error, opendir_warn, readdir_error, |
| 14050 |
readdir_warn): Remove decls. |
| 14051 |
(get_directory_contents): New off_t arg. |
| 14052 |
(addname): Now returns struct name *. |
| 14053 |
|
| 14054 |
* src/tar.h, tests/genfile.c: Fix comments. |
| 14055 |
|
| 14056 |
* src/create.c: Include hash.h. |
| 14057 |
(gnu_list_name): Remove decl. |
| 14058 |
(struct link): Remove "next" member. |
| 14059 |
(linklist): Remove. |
| 14060 |
(start_header): Say "leading `FOO'" rather than "`FOO' prefix" for |
| 14061 |
consistency with other diagnostics. |
| 14062 |
(deal_with_sparse): Check for I/O error when closing the file. |
| 14063 |
(create_archive): Do not allocate an array of size PATH_MAX, as |
| 14064 |
PATH_MAX might be (size_t) -1. Instead, allocate an array with |
| 14065 |
the size that's needed. |
| 14066 |
(hash_link, compare_links): New functions. |
| 14067 |
(dump_file): Do not exhaust open file descriptors when descending |
| 14068 |
deeply into a directory, by using savedir rather than |
| 14069 |
opendir/readdir. Do not zero-fill the name buffer unnecessarily. |
| 14070 |
Hash the set of links already created, instead of using a linked |
| 14071 |
list. Fix some bugs in outputting sparse files which caused the |
| 14072 |
sparse tables to be incorrect. When a file unexpectedly shrinks, |
| 14073 |
output zeros rather than garbage. Do not allocate an array of |
| 14074 |
size PATH_MAX, as PATH_MAX might be (size_t) -1. Instead, |
| 14075 |
allocate an array with the size that's needed. |
| 14076 |
|
| 14077 |
* src/incremen.c: Include hash.h. |
| 14078 |
(struct directory): Remove "next", "dir_text". Change "name" to |
| 14079 |
be char[1] with struct hack, not const char *. Add "found". |
| 14080 |
(directory_list): Remove. Replaced by directory_table. |
| 14081 |
(directory_table): New var. |
| 14082 |
(nfs_string): Renamed from nfs. |
| 14083 |
(hash_directory, compare_directories): New functions. |
| 14084 |
(note_directory): Now returns struct directory *. First arg is |
| 14085 |
now const pointer. struct stat arg is now dev_t, ino_t, nfs. |
| 14086 |
Remove text arg. New "found" arg, basically corresponding to the |
| 14087 |
old text arg not being null. All callers changed. |
| 14088 |
(note_directory, find_directory): Use hash table rather than |
| 14089 |
linked list. |
| 14090 |
(get_directory_contents): New arg "device". Use savedir to do the |
| 14091 |
hard work. Save the nfs-ness of stat_data, since it might change |
| 14092 |
under us. Use note_directory instead of find_directory to save |
| 14093 |
some work. When adding an "A" record, do it with |
| 14094 |
add_to_accumulator instead of cheating with strcat. |
| 14095 |
(read_directory_file): Use "+" flag before device to indicate |
| 14096 |
whether it was NFS. Fix typo in checking for strtoul error. |
| 14097 |
(write_directory_file_entry): New function. |
| 14098 |
(write_directory_file): Use it, and use the hash routines to |
| 14099 |
traverse the directory table. |
| 14100 |
(gnu_restore): Use savedir rather than opendir/readdir. |
| 14101 |
|
| 14102 |
* src/tar.c: Include localedir.h, prepargs.h. |
| 14103 |
(long_options): Now static. |
| 14104 |
(long_options, usage, decode_options): -j is now short for |
| 14105 |
--bzip2, and -I is now an alias for -T. |
| 14106 |
(decode_options, main): argv is not const pointer now. |
| 14107 |
(decode_options): Invoke prepend_default_options to support |
| 14108 |
TAR_OPTIONS. In diagnostic, mention the string that was the |
| 14109 |
invalid blocking factor, tape length, group, owner, or record |
| 14110 |
size. --delete is no longer incompatible with -f -, undoing |
| 14111 |
2000-01-07 change. |
| 14112 |
(main): Invoke extract_finish at end of extraction. |
| 14113 |
|
| 14114 |
* src/rmt.c: Include localedir.h. |
| 14115 |
(main): Update copyright date to 2000. |
| 14116 |
|
| 14117 |
* doc/getdate.texi: New file, taken from fileutils 4.0.27, with the |
| 14118 |
following changes: Use @sc where appropriate. Document the ranges of |
| 14119 |
supported times more precisely. Add Eggert to getdate authors. |
| 14120 |
Document old Latin 12m/12pm tradition. Remove list of alphabetic time |
| 14121 |
zone names, as it wasn't correct and people shouldn't be relying on it |
| 14122 |
anyway. Relative items also account for non-DST adjustments. Fix |
| 14123 |
some misspellings. |
| 14124 |
|
| 14125 |
* lib/prepargs.c, lib/prepargs.h, tests/extrac04.sh: New file. |
| 14126 |
|
| 14127 |
* tests/ignfail.sh: opendir -> savedir in diagnostics. |
| 14128 |
|
| 14129 |
* tests/preset.in: Set LANGUAGE to the empty string, for some |
| 14130 |
brain damaged host. |
| 14131 |
|
| 14132 |
2000-10-20 Paul Eggert <[email protected]> |
| 14133 |
|
| 14134 |
* m4/fnmatch.m4: Mention the GNU C library. |
| 14135 |
|
| 14136 |
2000-10-19 Paul Eggert <[email protected]> |
| 14137 |
|
| 14138 |
* m4/fnmatch.m4: Add a couple more test cases to catch bugs in |
| 14139 |
glibc 2.1.95. |
| 14140 |
|
| 14141 |
2000-10-17 Paul Eggert <[email protected]> |
| 14142 |
|
| 14143 |
* lib/human.c (<limits.h>): Do not include; human.h does it if needed. |
| 14144 |
(CHAR_BIT): Remove. |
| 14145 |
|
| 14146 |
* lib/human.h (<limits.h>): Include if HAVE_LIMITS_H. |
| 14147 |
(CHAR_BIT): Define if not defined. |
| 14148 |
|
| 14149 |
2000-09-09 Paul Eggert <[email protected]> |
| 14150 |
|
| 14151 |
* lib/quotearg.c: From fileutils: rename ISASCII to IN_CTYPE_DOMAIN. |
| 14152 |
|
| 14153 |
2000-08-07 Paul Eggert <[email protected]> |
| 14154 |
|
| 14155 |
* lib/xmalloc.c: Memory exhausted -> memory exhausted |
| 14156 |
|
| 14157 |
* lib/xalloc.h (xalloc_msg_memory_exhausted): |
| 14158 |
change to array from char *. |
| 14159 |
|
| 14160 |
2000-08-06 Paul Eggert <[email protected]> |
| 14161 |
|
| 14162 |
* m4/mbstate_t.m4: Define mbstate_t to be int, not char, for |
| 14163 |
compatibility with glibc 2.1.3 strftime.c. |
| 14164 |
|
| 14165 |
2000-07-31 Paul Eggert <[email protected]> |
| 14166 |
|
| 14167 |
* lib/quotearg.c (quotearg_n_options): |
| 14168 |
Don't make the initial slot vector a constant, |
| 14169 |
since it might get modified. |
| 14170 |
|
| 14171 |
* lib/quotearg.c: Add support for more than one preallocated slot. |
| 14172 |
|
| 14173 |
2000-07-30 Paul Eggert <[email protected]> |
| 14174 |
|
| 14175 |
* lib/quotearg.c (quotearg_n_options): |
| 14176 |
Preallocate a slot 0 buffer, so that the caller |
| 14177 |
can always quote one small component of a "memory exhausted" message |
| 14178 |
in slot 0. |
| 14179 |
|
| 14180 |
2000-07-23 Paul Eggert <[email protected]> |
| 14181 |
|
| 14182 |
* lib/quotearg.c: |
| 14183 |
Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), so that |
| 14184 |
mbstate_t is always defined. |
| 14185 |
|
| 14186 |
Do not inspect MB_LEN_MAX, since it's incorrectly defined to be 1 in |
| 14187 |
some GCC installations, and this configuration error is likely to be |
| 14188 |
common. |
| 14189 |
|
| 14190 |
2000-07-22 Paul Eggert <[email protected]> |
| 14191 |
|
| 14192 |
* lib/quotearg.c: |
| 14193 |
When the system forces us to redefine mbstate_t, shadow its mbsinit |
| 14194 |
function. From Bruno Haible. |
| 14195 |
|
| 14196 |
2000-07-14 Paul Eggert <[email protected]> |
| 14197 |
|
| 14198 |
* lib/xmalloc.c: Simplify exhausted message. |
| 14199 |
|
| 14200 |
* lib/quotearg.h: Update copyright date; from Jim Meyering. |
| 14201 |
|
| 14202 |
2000-07-13 Paul Eggert <[email protected]> |
| 14203 |
|
| 14204 |
* lib/quotearg.h (enum quoting style): |
| 14205 |
New constant clocale_quoting_style. |
| 14206 |
|
| 14207 |
* lib/quotearg.c: |
| 14208 |
(quoting_style_args, quoting_style_vals, quotearg_buffer_restyled): |
| 14209 |
Add support for clocale_quoting_style, undoing previous change to |
| 14210 |
locale_quoting_style. |
| 14211 |
|
| 14212 |
2000-07-10 Paul Eggert <[email protected]> |
| 14213 |
|
| 14214 |
* lib/quotearg.c: |
| 14215 |
<wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX, |
| 14216 |
since otherwise we don't need it. |
| 14217 |
(MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), |
| 14218 |
since we don't do multibytes in that case. |
| 14219 |
(quotearg_buffer_restyled): If a unibyte locale, don't bother to |
| 14220 |
invoke multibyte primitives. |
| 14221 |
|
| 14222 |
* m4/mbstate_t.m4 (AC_MBSTATE_T): |
| 14223 |
Renamed from AC_MBSTATE_T_OBJECT. All uses changed. |
| 14224 |
Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT |
| 14225 |
and mbstate_t, to a single-part test that simply defines mbstate_t. |
| 14226 |
|
| 14227 |
* lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition. |
| 14228 |
Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT, |
| 14229 |
to decide whether to define the BeOS workaround macro; |
| 14230 |
this adjusts to the change to AC_MBSTATE_T. |
| 14231 |
|
| 14232 |
* m4/strerror_r.m4: New file. |
| 14233 |
|
| 14234 |
2000-07-05 Paul Eggert <[email protected]> |
| 14235 |
|
| 14236 |
* lib/quotearg.c: Use double-quote to quote. |
| 14237 |
|
| 14238 |
* lib/quotearg.c (N_): New macro. |
| 14239 |
(gettext_default): New function. |
| 14240 |
(quotearg_buffer_restyled): Use gettext_default ("{LEFT QUOTATION MARK}", |
| 14241 |
"\"") for left quote, and gettext_default ("{RIGHT QUOTATION MARK}", "\"") |
| 14242 |
for right quote. |
| 14243 |
|
| 14244 |
* lib/quotearg.c (struct quoting_options): |
| 14245 |
Simplify quote_these_too dimension. |
| 14246 |
From Bruno Haible <[email protected]>. |
| 14247 |
|
| 14248 |
* m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): |
| 14249 |
Test for mbstate_t only if the test |
| 14250 |
for an object-type mbstate_t fails. |
| 14251 |
|
| 14252 |
* lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't. |
| 14253 |
|
| 14254 |
2000-07-03 Paul Eggert <[email protected]> |
| 14255 |
|
| 14256 |
* m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13. |
| 14257 |
Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H. |
| 14258 |
|
| 14259 |
* lib/quotearg.c (mbrtowc): |
| 14260 |
Assign to *pwc, and return 1 only if result is nonzero. |
| 14261 |
(iswprint): Define to ISPRINT if we are substituting our own mbrtowc. |
| 14262 |
|
| 14263 |
2000-07-02 Paul Eggert <[email protected]> |
| 14264 |
|
| 14265 |
* lib/quotearg.c (mbstate_t): |
| 14266 |
Do not define; it should be defined with AC_CHECK_TYPE. |
| 14267 |
|
| 14268 |
2000-06-26 Paul Eggert <[email protected]> |
| 14269 |
|
| 14270 |
* m4/mbstate_t.m4: Include stdio.h before wchar.h, to work around |
| 14271 |
a bug in glibc 2.1.3. |
| 14272 |
|
| 14273 |
* lib/xmalloc.c: Fix inaccurate comment for xrealloc. |
| 14274 |
|
| 14275 |
2000-06-19 Paul Eggert <[email protected]> |
| 14276 |
|
| 14277 |
* lib/quotearg.c (ISASCII): Add #undef and move definition to follow |
| 14278 |
inclusion of wctype.h to work around solaris2.6 namespace pollution. |
| 14279 |
(ISPRINT): Likewise. |
| 14280 |
Reported by Tom Tromey. |
| 14281 |
|
| 14282 |
2000-06-15 Paul Eggert <[email protected]> |
| 14283 |
|
| 14284 |
* lib/human.c (adjust_value): New function. |
| 14285 |
(human_readable_inexact): Apply rounding style even when printing |
| 14286 |
approximate values. |
| 14287 |
|
| 14288 |
* lib/human.c: Avoid shadowing warnings. |
| 14289 |
From Jim Meyering. |
| 14290 |
|
| 14291 |
2000-06-14 Paul Eggert <[email protected]> |
| 14292 |
|
| 14293 |
* lib/human.c (human_readable_inexact): Allow an input block size |
| 14294 |
that is not a multiple of the output block size, and vice versa. |
| 14295 |
|
| 14296 |
* lib/getdate.y (get_date): Apply relative times after time zone |
| 14297 |
indicator, not before. |
| 14298 |
|
| 14299 |
2000-05-31 Paul Eggert <[email protected]> |
| 14300 |
|
| 14301 |
* m4/largefile.m4: Rewrite so that we don't need to run getconf, |
| 14302 |
and thus don't need AC_CANONICAL_HOST. |
| 14303 |
|
| 14304 |
(AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND): Remove. |
| 14305 |
(AC_SYS_LARGEFILE_TEST_INCLUDES): New macro. |
| 14306 |
(AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from |
| 14307 |
CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY. All uses |
| 14308 |
changed. Instead of inspecting the output of getconf, try to |
| 14309 |
compile the test program without and with the macro definition. |
| 14310 |
(AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check for |
| 14311 |
getconf. Instead, check for the needed flags by compiling test |
| 14312 |
programs. |
| 14313 |
|
| 14314 |
* configure.in (AC_CANONICAL_HOST): Remove; the largefile stuff no |
| 14315 |
longer needs it. |
| 14316 |
* config.guess, config.sub: Remove these files, for similar reasons. |
| 14317 |
|
| 14318 |
2000-05-03 Paul Eggert <[email protected]> |
| 14319 |
|
| 14320 |
* m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to be |
| 14321 |
500, instead of _GNU_SOURCE to be 1, to work around glibc 2.1.3 |
| 14322 |
bug. This avoids a clash when files like regex.c that define |
| 14323 |
_GNU_SOURCE. |
| 14324 |
|
| 14325 |
2000-05-02 Paul Eggert <[email protected]> |
| 14326 |
|
| 14327 |
* m4/largefile.m4 (AC_SYS_LARGEFILE): |
| 14328 |
Define _GNU_SOURCE if this is needed to make |
| 14329 |
ftello visible (e.g. glibc 2.1.3). Use compile-time test, rather than |
| 14330 |
inspecting host and OS, to decide whether to define _LARGEFILE_SOURCE. |
| 14331 |
|
| 14332 |
* lib/quotearg.c (mbrtowc, mbstat_t): |
| 14333 |
Add definitions if !HAVE_MBSTATE_T_OBJECT. |
| 14334 |
(<wctype.h>): Include if HAVE_WCTYPE_H. |
| 14335 |
(iswprint): Define to 1 if we lack it |
| 14336 |
|
| 14337 |
2000-04-18 Paul Eggert <[email protected]> |
| 14338 |
|
| 14339 |
* m4/mbstate_t.m4: New file. |
| 14340 |
|
| 14341 |
2000-04-17 Bruno Haible <[email protected]> |
| 14342 |
|
| 14343 |
* tests/ignfail.sh: Test for uid 0 along with user "root". |
| 14344 |
|
| 14345 |
2000-04-05 Paul Eggert <[email protected]> |
| 14346 |
|
| 14347 |
* m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): |
| 14348 |
Don't use -n32 on IRIX if the installer said |
| 14349 |
otherwise. |
| 14350 |
|
| 14351 |
2000-02-28 Paul Eggert <[email protected]> |
| 14352 |
|
| 14353 |
* lib/quotearg.c (ALERT_CHAR): New macro. |
| 14354 |
(quotearg_buffer_restyled): Use it. |
| 14355 |
|
| 14356 |
2000-02-23 Rainer Orth <[email protected]> |
| 14357 |
|
| 14358 |
* src/list.c (tartime): Fix off-by-one error when copying year if |
| 14359 |
OLD_CTIME. |
| 14360 |
|
| 14361 |
2000-02-18 Paul Eggert <[email protected]> |
| 14362 |
|
| 14363 |
* lib/getdate.y: Handle two-digit years with leading zeros correctly. |
| 14364 |
(textint): New typedef. |
| 14365 |
(parser_control): Changed from struct parser_control to typedef |
| 14366 |
(for consistency). Member year changed from int to textint. All |
| 14367 |
uses changed. |
| 14368 |
(YYSTYPE): Removed; replaced by %union with int and textint |
| 14369 |
members. |
| 14370 |
(tID): Removed; not used. |
| 14371 |
(tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, |
| 14372 |
tMERIDIAN, tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, |
| 14373 |
tUNUMBER, tYEAR_UNIT, tZONE, o_merid): Now of type <intval>. |
| 14374 |
(tSNUMBER, tUNUMBER): Now of type <textintval>. |
| 14375 |
(date, number, to_year): Use width of number in digits, not its |
| 14376 |
value, to determine whether it's a 2-digit year, or a 2-digit |
| 14377 |
time. |
| 14378 |
(yylex): Store number of digits of numeric tokens. Return '?' for |
| 14379 |
unknown identifiers, rather than (unused) tID. |
| 14380 |
|
| 14381 |
2000-01-16 Paul Eggert <[email protected]> |
| 14382 |
|
| 14383 |
* lib/quotearg.c (quotearg_buffer_restyled): |
| 14384 |
Do not quote alert, backslash, formfeed, |
| 14385 |
and vertical tab unnecessarily in shell quoting style. |
| 14386 |
|
| 14387 |
2000-01-15 Paul Eggert <[email protected]> |
| 14388 |
|
| 14389 |
* m4/c-bs-a.m4: |
| 14390 |
Change quoting to be compatible with future autoconf versions. |
| 14391 |
|
| 14392 |
2000-01-11 Paul Eggert <[email protected]> |
| 14393 |
|
| 14394 |
* lib/exclude.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove unused macros. |
| 14395 |
|
| 14396 |
2000-01-07 Paul Eggert <[email protected]> |
| 14397 |
|
| 14398 |
* NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.17. |
| 14399 |
|
| 14400 |
Fix bug with fnmatch.h dependency, as follows: |
| 14401 |
* src/Makefile.am (OMIT_DEPENDENCIES): New macro. |
| 14402 |
* lib/Makefile.am (OMIT_DEPENDENCIES): New macro. |
| 14403 |
|
| 14404 |
* src/common.h (apply_nonancestor_delayed_set_stat): |
| 14405 |
Renamed from apply_delayed_set_stat. |
| 14406 |
(apply_delayed_set_stat, decode_mode, chmod_error_details, |
| 14407 |
chown_error_details, close_warn, closedir_warn, mkdir_error, |
| 14408 |
read_error_details, read_fatal_details, read_warn_details, |
| 14409 |
seek_error_details, seek_warn_details, utime_error, |
| 14410 |
write_error_details, write_fatal_details): New decls. |
| 14411 |
|
| 14412 |
Make diagnostic messages more regular. |
| 14413 |
* src/create.c (dump_file): Quote file names with colons if possible. |
| 14414 |
* src/compare.c (diff_archive): Likewise. |
| 14415 |
* src/extract.c (repair_delayed_set_stat, extract_archive): Likewise. |
| 14416 |
* src/incremen.c (get_directory_contents, gnu_restore): Likewise. |
| 14417 |
* src/mangle.c (extract_mangle): Likewise. |
| 14418 |
* src/misc.c (call_arg_error, call_arg_fatal, call_arg_warn): |
| 14419 |
Likewise. |
| 14420 |
* src/buffer.c (archive_write_error, flush_archive, close_archive, |
| 14421 |
new_volume, xclose): |
| 14422 |
Use error message functions to report errors consistently. |
| 14423 |
* src/compare.c (diff_sparse_files, diff_archive): Likewise. |
| 14424 |
* src/create.c (finish_sparse_file, dump_file): Likewise. |
| 14425 |
* src/extract.c (set_mode, set_stat, extract_sparse_file, |
| 14426 |
extract_archive): Likewise. |
| 14427 |
* src/list.c (list_archive): Likewise. |
| 14428 |
* src/update.c (append_file): Likewise. |
| 14429 |
* src/compare.c (diff_init, diff_sparse_files): |
| 14430 |
Use xalloc_die to report memory exhaustion. |
| 14431 |
* src/incremen.c (gnu_restore): Likewise. |
| 14432 |
* src/list.c (read_header): Likewise. |
| 14433 |
* src/mangle.c (extract_mangle): Likewise. |
| 14434 |
* src/misc.c (maybe_backup_file): Likewise. |
| 14435 |
* src/tar.c (decode_options): Likewise. |
| 14436 |
* src/compare.c (read_and_process, fill_in_sparse_array, |
| 14437 |
diff_sparse_files): |
| 14438 |
Use consistent terminology for unexpected-EOF message. |
| 14439 |
* src/extract.c (extract_sparse_file, extract_archive): Likewise. |
| 14440 |
* src/list.c (list_archive, read_header, skip_file, |
| 14441 |
skip_extended_headers): Likewise. |
| 14442 |
* src/buffer.c (archive_write_error): Add noreturn attribute to decl. |
| 14443 |
(xdup2): Regularize messages with rest of tar. |
| 14444 |
|
| 14445 |
* src/buffer.c (flush_read): Don't read past EOF. |
| 14446 |
|
| 14447 |
* src/extract.c (extr_init): |
| 14448 |
If we run out of memory, invoke apply_delayed_set_stat. |
| 14449 |
(prepare_to_extract): Don't complain if we can't remove ".". |
| 14450 |
(apply_delayed_set_stat): New function. |
| 14451 |
(apply_nonancestor_delayed_set_stat): |
| 14452 |
Renamed from apply_delayed_set_stat. All uses changed. |
| 14453 |
Don't remove head if it doesn't apply. |
| 14454 |
|
| 14455 |
* src/create.c (find_new_file_size): |
| 14456 |
Return size instead of storing through pointer. |
| 14457 |
All callers changed. |
| 14458 |
(deal_with_sparse): Don't keep reading after read errors. |
| 14459 |
(finish_sparse_file): Just abort if there is an internal error. |
| 14460 |
(dump_file): Fix typo: stat_warn and stat_error were interchanged. |
| 14461 |
Don't restore access times on directories during incremental dumps |
| 14462 |
until after dealing with the directory. |
| 14463 |
If ignoring failed reads, count closedir, read, and unknown |
| 14464 |
file errors as warnings, not errors. |
| 14465 |
Fix buffer overrun problem when dumping sparse files. |
| 14466 |
|
| 14467 |
* src/list.c (read_and): |
| 14468 |
Invoke apply_nonancestor_delayed_set_stat on file names |
| 14469 |
after handling them. |
| 14470 |
(decode_mode): Remove; moved to misc.c. |
| 14471 |
|
| 14472 |
* src/misc.c (safer_rmdir): New function. |
| 14473 |
(remove_any_file): Use it to avoid problems with rmdir("."). |
| 14474 |
(maybe_backup_file): Regularize diagnostics. |
| 14475 |
(undo_backup_file): Likewise. |
| 14476 |
(decode_mode): Moved here from list.c. |
| 14477 |
(chmod_error_details, chown_error_details, close_fatal, |
| 14478 |
close_warn, closedir_warn, mkdir_error, read_error_details, |
| 14479 |
read_warn_details, read_fatal_details, seek_error_details, |
| 14480 |
seek_warn_details, utime_error, write_error_details, |
| 14481 |
write_fatal_details): New functions. |
| 14482 |
|
| 14483 |
* src/delete.c (save_record): Remove static variable (now local). |
| 14484 |
(move_archive): Don't position before start of archive. |
| 14485 |
(write_record): Abort if count is zero at inopportune time. |
| 14486 |
Plug memory leak. |
| 14487 |
|
| 14488 |
* src/tar.c (decode_options): --delete and -f - are now |
| 14489 |
incompatible, since we didn't have time to fix their bugs. |
| 14490 |
|
| 14491 |
* tests/Makefile.am (TESTS): Remove delete02.sh. |
| 14492 |
* tests/ignfail.sh: Adjust to new quoting scheme again. |
| 14493 |
|
| 14494 |
2000-01-06 Paul Eggert <[email protected]> |
| 14495 |
|
| 14496 |
* lib/getdate.y: Sync tm_diff with the GNU C Library. |
| 14497 |
(TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN. All uses changed. |
| 14498 |
(tm_diff): Renamed from difftm. All uses changed. |
| 14499 |
Replace body with that taken from GNU C Library 2.1.3pre1. |
| 14500 |
(get_date): Prefer tm_gmtoff to tm_diff if available. |
| 14501 |
|
| 14502 |
1999-12-29 "Melissa O'Neill" <[email protected]> |
| 14503 |
|
| 14504 |
* tests/incremen.sh: Invoke stat on newly created file so that its |
| 14505 |
ctime is updated on Nextstep. |
| 14506 |
|
| 14507 |
1999-12-21 Machael Stone <[email protected]> |
| 14508 |
|
| 14509 |
* lib/getdate.y (get_date): |
| 14510 |
Fix typo when checking for time_t overflow in time zone calculations. |
| 14511 |
|
| 14512 |
1999-12-13 Paul Eggert <[email protected]> |
| 14513 |
|
| 14514 |
* NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.16. |
| 14515 |
|
| 14516 |
* README-alpha: New file. |
| 14517 |
* README: New sections for gzip and bzip2, Solaris. |
| 14518 |
Remove mention of BACKLOG. |
| 14519 |
|
| 14520 |
* configure.in (AC_C_BACKSLASH_A): Add. |
| 14521 |
(AC_CHECK_HEADERS): Add wchar.h. |
| 14522 |
(AC_CHECK_FUNCS): Add mbrtowc. |
| 14523 |
(AC_FUNC_CLOSEDIR_VOID): Add. |
| 14524 |
|
| 14525 |
* tests/Makefile.am (TESTS): Add delete02.sh. |
| 14526 |
(POSTPONED_TESTS): Remove. |
| 14527 |
(EXTRA_DIST): Remove $(POSTPONED_TESTS). |
| 14528 |
|
| 14529 |
* tests/preset.in: |
| 14530 |
Set LC_ALL rather than LANGUAGE, LANG, and LC_MESSAGES. |
| 14531 |
|
| 14532 |
* tests/ignfail.sh (err): Adjust to new quoting scheme. |
| 14533 |
|
| 14534 |
* tests/delete02.sh: Fix typo: need to list archive2, not archive. |
| 14535 |
|
| 14536 |
* tests/extrac03.sh: Use -P option, so that .. doesn't get diagnosed. |
| 14537 |
|
| 14538 |
* src/tar.c ("quotearg.h"): New include. |
| 14539 |
(usage): Now has __attribute__ ((noreturn)). |
| 14540 |
(confirm): Report errno if we can't open tty. |
| 14541 |
(confirm, decode_options): |
| 14542 |
Quote arbitrary strings in diagnostics. |
| 14543 |
(OVERWRITE_OPTION): New constant. |
| 14544 |
(long_options, usage, decode_options): New --overwrite option. |
| 14545 |
(decode_options): --keep-old-files, --overwrite, and --unlink-first |
| 14546 |
are now mutually exclusive. |
| 14547 |
Don't assume that gettext preserves errno. |
| 14548 |
(main): Set default quoting style to escape_quoting_style. |
| 14549 |
|
| 14550 |
* src/update.c (<quotearg.h>): New include. |
| 14551 |
(append_file): |
| 14552 |
Don't assume that gettext preserves errno. |
| 14553 |
Quote arbitrary strings in diagnostics. |
| 14554 |
Check for close error. |
| 14555 |
|
| 14556 |
* src/names.c (<quotearg.h>): New include. |
| 14557 |
(name_init, name_next, name_close, names_notfound, |
| 14558 |
collect_and_sort_names): Don't assume that gettext preserves |
| 14559 |
errno. Quote arbitrary strings in diagnostics. |
| 14560 |
(excluded_name): Fix typo that caused empty patterns to be |
| 14561 |
mishandled. |
| 14562 |
|
| 14563 |
* src/misc.c (<quotearg.h>): New include. |
| 14564 |
(quote_copy_string): Quote only newline and backslash; the output is no |
| 14565 |
longer meant for humans, and is locale-independent. |
| 14566 |
(contains_dot_dot): New function. |
| 14567 |
(remove_any_file): Don't use lstat; just rmdir the file and then use |
| 14568 |
unlink if the rmdir fails because the file isn't a directory. |
| 14569 |
Check for readdir and closedir errors. |
| 14570 |
(maybe_backup_file): Report "stat" for stat errors. |
| 14571 |
(maybe_backup_file, chdir_do): |
| 14572 |
Quote arbitrary strings in diagnostics. |
| 14573 |
(maybe_backup_file, undo_last_backup): |
| 14574 |
Don't assume that gettext preserves errno. |
| 14575 |
(call_arg_error, call_arg_fatal, call_arg_warn, |
| 14576 |
chdir_fatal, close_error, closedir_error, exec_fatal, mkfifo_error, |
| 14577 |
mknod_error, open_error, open_fatal, open_warn, opendir_error, |
| 14578 |
opendir_warn, read_error, read_fatal, readdir_error, readdir_warn, |
| 14579 |
readlink_error, readlink_warn, seek_error, seek_warn, stat_error, |
| 14580 |
stat_warn, truncate_error, truncate_warn, unlink_error, waitpid_error, |
| 14581 |
write_error, write_fatal, xfork, xpipe, quote_n, quote): New functions. |
| 14582 |
|
| 14583 |
* src/system.h (__attribute__): New macro. |
| 14584 |
(O_NDELAY, O_NONBLOCK, O_APPEND): Remove. |
| 14585 |
(S_ISDOOR): New macro. |
| 14586 |
(closedir): New macro, if CLOSEDIR_VOID. |
| 14587 |
|
| 14588 |
* src/rmt.c, src/rtapelib.c (decode_oflag): |
| 14589 |
O_APPEND might not be defined. |
| 14590 |
|
| 14591 |
* src/list.c: (read_and, list_archive): |
| 14592 |
Quote arbitrary strings in diagnostics. |
| 14593 |
(from_header): Use locale_quoting_style to quote diagnostics. |
| 14594 |
(print_header, print_for_mkdir): Quote with quotearg, not quote_copy_string. |
| 14595 |
|
| 14596 |
* src/rmt.h (REM_BIAS): Increase from 128 to (1 << 30). |
| 14597 |
|
| 14598 |
* src/Makefile.am: Use ## for copyright comments. |
| 14599 |
|
| 14600 |
* src/extract.c (<quotearg.h>): New include. |
| 14601 |
(enum permstatus): New enum. |
| 14602 |
(struct delayed_set_stat): file_name is now at end of buffer, to avoid |
| 14603 |
two mallocs. New members file_name_len, invert_permissions, permstatus. |
| 14604 |
(extr_init): Remove hack that silently adjusted newdir_umask. |
| 14605 |
(set_mode, set_stat): New args invert_permissions, permstatus, typeflag. |
| 14606 |
Use these args to decide whether and how to set modes. |
| 14607 |
(set_mode, set_stat, prepare_to_extract, extract_sparse_file, extract_archive): |
| 14608 |
Don't assume that gettext preserves errno. |
| 14609 |
(set_stat): Remove arg symlink_flag; subsumed by typeflag. |
| 14610 |
(delay_set_stat, repair_delayed_set_stat): New functions. |
| 14611 |
(make_directories): Avoid mkdir where last part of path is "..". |
| 14612 |
Create a struct delayed_set_stat for each directory made. |
| 14613 |
(prepare_to_extract): Renamed from unlink_destination, and |
| 14614 |
return 0 immediately if to_stdout_option; all callers changed. |
| 14615 |
(maybe_recoverable): New parameter interdir_made. |
| 14616 |
Add support for --overwrite. |
| 14617 |
(extract_sparse_file, extract_archive): |
| 14618 |
Quote arbitrary strings in diagnostics. |
| 14619 |
(extract_archive): By default, warn about ".." in member names, and skip them. |
| 14620 |
Don't open files with O_NONBLOCK or O_APPEND. |
| 14621 |
Open with O_TRUNC only if --overwrite; otherwise, use O_EXCL to avoid |
| 14622 |
overwriting them. Pass only rwxrwxrwx permissions to `open' and `mkdir', |
| 14623 |
minus the current umask. Keep track of intermediate directories made, |
| 14624 |
to avoid looping when making x/../x when x doesn't exist; the |
| 14625 |
earlier code solved this in a different way that didn't fit well |
| 14626 |
into the new scheme. Don't extract permissions onto existing |
| 14627 |
directories unless --overwrite is given. Do not add -wx------ |
| 14628 |
permissions to new directories permanently; just do it temporarily. |
| 14629 |
Remove no-longer-needed hack with MSDOS and directory time stamps. |
| 14630 |
(apply_delayed_set_stat): New argument specifies which directories to |
| 14631 |
fix statuses of. Do not wait until the end of extraction to fix |
| 14632 |
statuses; instead, fix a directory's status once we exit that directory. |
| 14633 |
This requires less memory and does the right thing in some cases |
| 14634 |
where the old method didn't. |
| 14635 |
(fatal_exit): New function. |
| 14636 |
|
| 14637 |
* src/incremen.c (<quotearg.h>): New include. |
| 14638 |
(get_directory_contents, gnu_restore): |
| 14639 |
Check for readdir and closedir errors. |
| 14640 |
(get_directory_contents, read_directory_file, gnu_restore): |
| 14641 |
Quote arbitrary strings in diagnostics. |
| 14642 |
(get_directory_contents, read_directory_file, write_directory_file): |
| 14643 |
Don't assume that gettext preserves errno. |
| 14644 |
|
| 14645 |
* src/create.c (<quotearg.h>): New include. |
| 14646 |
(start_header): Use `member names' to refer to archive member names, not |
| 14647 |
`archive names'. Warn about `..' in member names. |
| 14648 |
(finish_sparse_file, dump_file): |
| 14649 |
Quote arbitrary strings in diagnostics. |
| 14650 |
(finish_sparse_file, dump_file): |
| 14651 |
Don't assume that gettext preserves errno. |
| 14652 |
(dump_file): Don't use `access' to determine whether a directory is readable; |
| 14653 |
this isn't reliable if tar is setuid. Use `opendir' instead. |
| 14654 |
Check for readdir and closedir failures. |
| 14655 |
Don't dump sockets as if they were fifos; just warn and skip. |
| 14656 |
|
| 14657 |
* src/delete.c (move_archive): |
| 14658 |
Don't report fatal error merely because sizes don't fit |
| 14659 |
into struct mtop values; fall back on lseek instead. |
| 14660 |
Say `Cannot' uniformly, instead of `Could not' sometimes and `Cannot' others. |
| 14661 |
Say `reposition' instead of `re-position'. |
| 14662 |
(delete_archive_members): |
| 14663 |
Set archive to STDOUT_FILENO before outputting trailing buffer. |
| 14664 |
|
| 14665 |
* src/compare.c (<quotearg.h>): New include. |
| 14666 |
(diff_init): Use `Cannot' uniformly, instead of `Could not' sometimes |
| 14667 |
and `Cannot' others. |
| 14668 |
(report_difference, diff_archive): |
| 14669 |
Quote arbitrary strings in diagnostics. |
| 14670 |
(process_rawdata, diff_sparse_files, get_stat_data, diff_archive, seek_warn): |
| 14671 |
Don't assume that gettext preserves errno. |
| 14672 |
(diff_archive): Don't open regular files with O_NONBLOCK. |
| 14673 |
Preserve access times of files if --atime. |
| 14674 |
|
| 14675 |
* src/common.h (FATAL_ERROR): Use new fatal_exit function to exit. |
| 14676 |
(FATAL_ERROR, USAGE): Don't return 0. |
| 14677 |
(enum old files): New enum. |
| 14678 |
(old_files_option): New variable, replacing keep_old_files_option and |
| 14679 |
unlink_first_option. |
| 14680 |
(apply_delayed_set_stat): Now takes char const * param. |
| 14681 |
(fatal_exit, contains_dot_dot, chdir_fatal, close_error, |
| 14682 |
closedir_error, exec_fatal, mkfifo_error, mknod_error, open_error, |
| 14683 |
open_fatal, open_warn, opendir_error, opendir_warn, read_error, |
| 14684 |
read_fatal, readdir_error, readdir_warn, readlink_error, |
| 14685 |
readlink_warn, seek_error, seek_warn, stat_error, stat_warn, |
| 14686 |
truncate_error, truncate_warn, unlink_error, waitpid_error, |
| 14687 |
write_error, write_fatal, xfork, xpipe, quote, quote_n): New decls. |
| 14688 |
|
| 14689 |
* src/buffer.c: |
| 14690 |
(xclose, xdup2, child_open_for_compress, child_open_for_uncompress, |
| 14691 |
archive_write_error, archive_read_error, flush_archive, close_archive, |
| 14692 |
init_volume_number, new_volume): |
| 14693 |
Don't assume that gettext preserves errno. |
| 14694 |
|
| 14695 |
(xdup2): Don't report errno if dup returns an unexpected nonnegative value. |
| 14696 |
(open_archive): Reject multivolume verify attempts a bit earlier. |
| 14697 |
Rename local variable `access', in case it's defined by system header. |
| 14698 |
|
| 14699 |
(open_archive, backspace_output): Use `Cannot' uniformly, instead of |
| 14700 |
`Could not' sometimes and `Cannot' others. |
| 14701 |
|
| 14702 |
(open_archive, flush_read, flush_archive, close_archive, new_volume): |
| 14703 |
Quote arbitrary strings in diagnostics. |
| 14704 |
|
| 14705 |
(read_error): Set archive to STDOUT_FILENO temporarily when writing |
| 14706 |
archive buffer. |
| 14707 |
|
| 14708 |
(init_volume_number): Check for input and output errors in volno_file. |
| 14709 |
|
| 14710 |
(new_volume): Use new fatal_exit function to exit, and new xfork |
| 14711 |
function to fork. |
| 14712 |
|
| 14713 |
* m4/Makefile.am (EXTRA_DIST): Add c-bs-a.m4. |
| 14714 |
|
| 14715 |
* Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/c-bs-a.m4. |
| 14716 |
|
| 14717 |
* doc/tar.texi: Add --overwrite. |
| 14718 |
--absolute-names rejects ".." in names. |
| 14719 |
|
| 14720 |
* lib/quotearg.c: Add support for multibyte characters. |
| 14721 |
(ISGRAPH): Remove. |
| 14722 |
(ISPRINT): New macro. |
| 14723 |
(<wchar.h>): Include if HAVE_MBRTOWC && HAVE_WCHAR_H. |
| 14724 |
(isprint, mbrtowc, mbsinit, mbstate_t): New macros, |
| 14725 |
defined if ! (HAVE_MBRTOWC && HAVE_WCHAR_H). |
| 14726 |
(quotearg_buffer_restyled): New function, with most of the old |
| 14727 |
quotearg_buffer's contents. |
| 14728 |
Major rewrite to support multibyte characters. |
| 14729 |
(quotearg_buffer): Now just calls quotearg_buffer_restyled. |
| 14730 |
|
| 14731 |
* m4/c-bs-a.m4: New file. |
| 14732 |
|
| 14733 |
* lib/Makefile.am: Use ## for copyright notice. |
| 14734 |
|
| 14735 |
* scripts/Makefile.am: Use ## on copyright notice. |
| 14736 |
|
| 14737 |
* doc/Makefile.am: |
| 14738 |
($(srcdir)/tar.info, tar.dvi): We now use texinfo 4.0. |
| 14739 |
|
| 14740 |
1999-12-05 Paul Eggert <[email protected]> |
| 14741 |
|
| 14742 |
* doc/ChangeLog, lib/ChangeLog, scripts/ChangeLog, |
| 14743 |
src/ChangeLog, tests/ChangeLog: Remove these files. |
| 14744 |
* ChangeLog.1: New file, incorporating the above files, plus old |
| 14745 |
ChangeLog entries. |
| 14746 |
* Makefile.am (EXTRA_DIST): Add ChangeLog.1. |
| 14747 |
|
| 14748 |
1999-12-05 Dale Worley <[email protected]> |
| 14749 |
|
| 14750 |
* src/compare.c (<utime.h>, struct utimbuf): Add. |
| 14751 |
(diff_archive): Restore access times if --atime. |
| 14752 |
* doc/tar.texi: Explain that --atime also preserves modification time. |
| 14753 |
|
| 14754 |
1999-12-04 Gerhard Poul <[email protected]> |
| 14755 |
|
| 14756 |
* ABOUT-NLS: Update to latest version from ftp.gnu.org. |
| 14757 |
* BACKLOG, TODO: Remove. |
| 14758 |
* Makefile.am (all-local, BABYL, dist-zoo, id, ID): Remove. |
| 14759 |
* README: Bring up to date. |
| 14760 |
|
| 14761 |
1999-12-03 Paul Eggert <[email protected]> |
| 14762 |
|
| 14763 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.15. |
| 14764 |
|
| 14765 |
* src/compare.c (diff_archive): |
| 14766 |
Do not set errno to EPIPE; we no longer use perror. |
| 14767 |
|
| 14768 |
* src/create.c (dump_file): |
| 14769 |
If a parent directory said that a file should be there but it is |
| 14770 |
absent, diagnose it as being removed in the meantime. |
| 14771 |
Do not pass meaningless errno to ERROR when reporting that the |
| 14772 |
file changed as we read it. |
| 14773 |
Report that a file changed if its ctime changes; this is more |
| 14774 |
sensitive than mtime+size, and more accurate. |
| 14775 |
|
| 14776 |
* src/incremen.c (enum children): New type. |
| 14777 |
(struct directory): Change old char allnew member to new enum children |
| 14778 |
children member. |
| 14779 |
All uses changed. |
| 14780 |
(get_directory_contents): When doing an incremental dump that does |
| 14781 |
not cross filesystem boundaries, dump the mount points, even though |
| 14782 |
they are in a different filesystem. This is for convenience when |
| 14783 |
restoring, and for consistency with non-incremental dumps. |
| 14784 |
This requires a 3-way flag for keeping track of which children we want, |
| 14785 |
so we use enum children rather than boolean. |
| 14786 |
|
| 14787 |
* src/open3.c (modes): Remove. |
| 14788 |
(open3): Remove unportable assumptions about flag encodings. |
| 14789 |
Use `stat' instead of `access' for testing file existence, |
| 14790 |
to avoid problems with setuid programs. |
| 14791 |
|
| 14792 |
* src/names.c (name_next): If file names are given both in the |
| 14793 |
command line (e.g. via -C) and in a file (via -T), do not |
| 14794 |
ignore the command-line names. |
| 14795 |
|
| 14796 |
* m4/uintmax_t.m4: Backport to autoconf 2.13. |
| 14797 |
|
| 14798 |
* doc/tar.texi: Clarify getdate authorship. |
| 14799 |
|
| 14800 |
1999-11-23 Paul Eggert <[email protected]> |
| 14801 |
|
| 14802 |
* lib/Makefile.am (DISTCLEANFILES): New macro. |
| 14803 |
|
| 14804 |
* configure.in (tar_fnmatch_hin): |
| 14805 |
Remove; it runs afoul of a bug in autoconf 2.13. |
| 14806 |
Instead, always link fnmatch.h to some file, even if it's a throwaway. |
| 14807 |
|
| 14808 |
1999-11-19 Paul Eggert <[email protected]> |
| 14809 |
|
| 14810 |
* m4/largefile.m4: Update serial. |
| 14811 |
|
| 14812 |
1999-11-18 Paul Eggert <[email protected]> |
| 14813 |
|
| 14814 |
* m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a bug in |
| 14815 |
the QNX shell, which doesn't propagate exit status of failed |
| 14816 |
commands inside shell assignments. |
| 14817 |
|
| 14818 |
1999-11-07 Paul Eggert <[email protected]> |
| 14819 |
|
| 14820 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.14. |
| 14821 |
|
| 14822 |
* configure.in (AC_PREREQ): Bump to 2.13. |
| 14823 |
(ALL_LINGUAS): Add pt_BR, ja. |
| 14824 |
(AC_FUNC_FNMATCH): Remove lib/funmatch.h before invoking, not after. |
| 14825 |
(tar_cv_path_RSH): Prefer a non-symlink rsh to a symlink one, |
| 14826 |
for AIX crossbuilds. |
| 14827 |
|
| 14828 |
* doc/tar.texi: New node create options for --ignore-failed-read. |
| 14829 |
Remove unused version control symbols. |
| 14830 |
Modernize texinfo usage. |
| 14831 |
|
| 14832 |
* src/tar.c (usage): Add examples. |
| 14833 |
|
| 14834 |
* m4/fnmatch.m4 (AC_FUNC_FNMATCH): |
| 14835 |
Include fnmatch.h when testing fnmatch. |
| 14836 |
|
| 14837 |
* src/common.h (collect_and_sort_names): New decl. |
| 14838 |
|
| 14839 |
* src/list.c (from_header): |
| 14840 |
Handle 32-bit two's complement negative time stamps |
| 14841 |
even if the leading octal digit is 2 or 3. |
| 14842 |
|
| 14843 |
* src/extract.c (set_stat): Remove duplicate code. |
| 14844 |
|
| 14845 |
* src/create.c (to_chars): Remove trailing newline from warning. |
| 14846 |
(dump_file): Ignore doors. |
| 14847 |
(finish_header): Report block numbers with origin 0, not origin 1. |
| 14848 |
|
| 14849 |
* src/rmt.c: Include getopt.h. |
| 14850 |
(long_opts): New constant. |
| 14851 |
(usage): New function. |
| 14852 |
(main): Implement --help and --version. |
| 14853 |
Output usage message if arguments are bad. |
| 14854 |
|
| 14855 |
1999-10-10 Paul Eggert <[email protected]> |
| 14856 |
|
| 14857 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.13. |
| 14858 |
|
| 14859 |
* README: Remove --with-dmalloc. |
| 14860 |
Add --disable-largefile. |
| 14861 |
Remove old NeXT dirent problems, or AIX valloc problems. |
| 14862 |
Remove old union wait advice, and old %lld advice. |
| 14863 |
Remove advice about FreeBSD 2.1.7, ISC 4.1mu, Ultrix `make'. |
| 14864 |
|
| 14865 |
* doc/tar.texi: Clarify documentation for portable file names. |
| 14866 |
|
| 14867 |
* configure.in (AM_WITH_DMALLOC): Remove. |
| 14868 |
(ALL_LINGUAS): Add ja. |
| 14869 |
|
| 14870 |
* src/tar.c (decode_options): |
| 14871 |
Invalid dates are now treated as (time_t) -1. |
| 14872 |
Redo version message to conform to GNU standards. |
| 14873 |
|
| 14874 |
* src/create.c (dump_file): |
| 14875 |
Fix typo: last two args to dump_file were interchanged. |
| 14876 |
* src/update.c (update_archive): Likewise. |
| 14877 |
|
| 14878 |
* src/common.h (tartime): New decl. |
| 14879 |
|
| 14880 |
* src/list.c (tartime): Now extern. |
| 14881 |
(read_and): Invalid headers cause errors, not warnings. |
| 14882 |
|
| 14883 |
1999-10-03 Paul Eggert <[email protected]> |
| 14884 |
|
| 14885 |
* lib/getdate.y (__attribute__): |
| 14886 |
Don't use if GCC claims to be before 2.8; this is |
| 14887 |
needed for OPENStep 4.2 cc. Also, don't use if strict ANSI. |
| 14888 |
|
| 14889 |
1999-09-25 Paul Eggert <[email protected]> |
| 14890 |
|
| 14891 |
* lib/fnmatch.c, lib/fnmatch.hin: Merge changes from latest glibc. |
| 14892 |
* lib/getopt.c, lib/getopt.h, lib/getopt1.c: Likewise. |
| 14893 |
|
| 14894 |
* tests/incremen.sh: Add yet another sleep. |
| 14895 |
|
| 14896 |
1999-09-24 Paul Eggert <[email protected]> |
| 14897 |
|
| 14898 |
* NEWS: A read error now causes a nonzero exit status. |
| 14899 |
|
| 14900 |
* src/create.c (to_chars): Fix base-256 output. |
| 14901 |
|
| 14902 |
* src/buffer.c (write_error): |
| 14903 |
Read error is an error, not just a warning. |
| 14904 |
|
| 14905 |
1999-09-24 Paul Eggert <[email protected]> |
| 14906 |
|
| 14907 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.12. |
| 14908 |
|
| 14909 |
* src/tar.c (<time.h>): Include. |
| 14910 |
(time): Declare if not defined. |
| 14911 |
(confirm): Don't read past EOF. |
| 14912 |
(long_options, usage): Add --no-same-owner, --no-same-permissions. |
| 14913 |
(main): Use clock_gettime if available. |
| 14914 |
|
| 14915 |
* tests/Makefile.am (TESTS): Add incremen.sh |
| 14916 |
(INCLUDES): Add -I../lib, for fnmatch.h. |
| 14917 |
|
| 14918 |
* src/update.c (update_archive): |
| 14919 |
Remove call to name_expand; had no effect. |
| 14920 |
Use chdir_do to change into directory. |
| 14921 |
Use deref_stat instead of stat. |
| 14922 |
Use add_avoided_name to mark names to be avoided; the old method of |
| 14923 |
setting a bit with the name caused all descendants of that name to |
| 14924 |
be avoided, in some circumstances. |
| 14925 |
|
| 14926 |
* tests/incremen.sh: Remove unnecessary sleeps. |
| 14927 |
|
| 14928 |
* src/names.c (name_next): Go back to using plain chdir. |
| 14929 |
(name_gather): Use chdir_arg to keep track of arguments to chdir. |
| 14930 |
(addname): Likewise. |
| 14931 |
(name_match): Use chdir_do to act on chdir args. |
| 14932 |
(merge_sort): Moved here from incremen.c. |
| 14933 |
(compare_names, add_hierarchy_to_namelist, collect_and_sort_names): |
| 14934 |
Likewise. |
| 14935 |
(name_expand): Remove. |
| 14936 |
(name_from_list): Skip fake names. |
| 14937 |
Use chdir_do to act on chdir args. |
| 14938 |
(struct avoided_name): New struct. |
| 14939 |
(avoided_names): New var. |
| 14940 |
(add_avoided_name, is_avoided_name): New functions. |
| 14941 |
|
| 14942 |
* src/system.h (stat, lstat): Define in terms of statx on |
| 14943 |
STX_HIDDEN && !_LARGE_FILES /* AIX */ hosts. |
| 14944 |
(UCHAR_MAX): New macro. |
| 14945 |
(TYPE_MAXIMUM): Cast to arg type, for types narrow than int. |
| 14946 |
|
| 14947 |
* m4/largefile.m4: Work around GCC 2.95.1 bug with HP-UX 10.20. |
| 14948 |
|
| 14949 |
* src/incremen.c (<time.h>): Remove include; no longer used. |
| 14950 |
(time): Remove decl. |
| 14951 |
(time_now): Remove. |
| 14952 |
(get_directory_contents): Use deref_stat. |
| 14953 |
Consider a subdirectory to be all new only if |
| 14954 |
listed_incremental_option or if it its timestamp is newer than the |
| 14955 |
cutoff. |
| 14956 |
(add_hierarchy_to_namelist, merge_sort): Move to names.c. |
| 14957 |
(read_directory_file): Now extern. Do not set time_now. |
| 14958 |
(write_directory_file): Renamed from write_dir_file. |
| 14959 |
Use start_time instead of time_now. |
| 14960 |
(compare_names, collect_and_sort_names): Move to names.c. |
| 14961 |
|
| 14962 |
* src/mangle.c (<time.h>): Remove; not used. |
| 14963 |
(time): Do not declare. |
| 14964 |
|
| 14965 |
* src/misc.c (chdir_from_initial_wd): Remove. |
| 14966 |
(deref_stat): New function. |
| 14967 |
(struct wd): New struct. |
| 14968 |
(wd, wds, wd_alloc): New variables. |
| 14969 |
(chdir_arg, chdir_do): New function. |
| 14970 |
|
| 14971 |
* src/compare.c (get_stat_data): Use deref_stat. |
| 14972 |
|
| 14973 |
* src/common.h (name_expand): Remove. |
| 14974 |
|
| 14975 |
* src/list.c (time): Declare if not defined. |
| 14976 |
(base_64_digits): Moved here from create.c. |
| 14977 |
(base64_map): Use UCHAR_MAX for size, not less-clear (unsigned char) |
| 14978 |
-1. |
| 14979 |
(read_and): Don't get time from header unless we need it now; |
| 14980 |
as getting time can cause duplicate diagnostics if bogus. |
| 14981 |
Remove "Hmm, " from diagnostic. |
| 14982 |
Use "Skipping to next header" uniformly. |
| 14983 |
(from_header): Renamed from from_chars. All uses changed. |
| 14984 |
Allow different forms for unportable 2's complement numbers. |
| 14985 |
Don't check for extended forms when parsing checksums. |
| 14986 |
Parse base-256 output. |
| 14987 |
(gid_from_header): Renamed from gid_from_chars. All uses changed. |
| 14988 |
(major_from_header): Renamed from major_from_chars. All uses changed. |
| 14989 |
(minor_from_header): Renamed from minor_from_chars. All uses changed. |
| 14990 |
(mode_from_header): Renamed from mode_from_chars. All uses changed. |
| 14991 |
(off_from_header): Renamed from off_from_chars. All uses changed. |
| 14992 |
(size_from_header): Renamed from size_from_chars. All uses changed. |
| 14993 |
(time_from_header): Renamed from time_from_chars. All uses changed. |
| 14994 |
Warn about future timestamps. |
| 14995 |
(uid_from_header): Renamed from uid_from_chars. All uses changed. |
| 14996 |
(uintmax_from_header): Renamed from uintmax_from_chars. |
| 14997 |
All uses changed. |
| 14998 |
(tartime): New function, incorporating isotime. |
| 14999 |
(isotime): Delete. |
| 15000 |
(print_header): Use tartime. |
| 15001 |
|
| 15002 |
* src/create.c (to_chars): Fix typo in decl. |
| 15003 |
Don't assign through char const *. |
| 15004 |
Rename name_expand back to collect_and_sort_names. |
| 15005 |
|
| 15006 |
* src/extract.c (<time.h>): No need to include. |
| 15007 |
(time): No need to declare. |
| 15008 |
(now): Remove variable. |
| 15009 |
(extr_init): Don't initialize `now'. |
| 15010 |
Increment same_permissions_option and same_owner_option if we_are_root |
| 15011 |
is nonzero; this supports the new --no-same-owner option. |
| 15012 |
(set_stat): Use start_time instead of `now'. |
| 15013 |
|
| 15014 |
* src/create.c (struct link): Remove unused linkcount member. |
| 15015 |
(base_64_digits): Move to list.c. |
| 15016 |
(base_8_digits): Remove. |
| 15017 |
(to_octal): New function, with some of old contents of to_base. |
| 15018 |
(to_base): Remove. |
| 15019 |
(to_base256): New function. |
| 15020 |
(to_chars): Use base 256, not base 64, for huge values. |
| 15021 |
(mode_to_chars): Don't use two's complement in GNU format or POSIX |
| 15022 |
format. |
| 15023 |
(dump_file): Interchange last two arguments. If TOP_LEVEL is negative, |
| 15024 |
it means we have an incremental dump where we don't know whether this |
| 15025 |
is a top-level call. |
| 15026 |
Use deref_stat instead of statx / stat / lstat. |
| 15027 |
Cast result of alloca. |
| 15028 |
Check for dates if 0 < top_level, not if listed_incremental_option. |
| 15029 |
Move multiple-link check after directory check. |
| 15030 |
Do not dump avoided names. |
| 15031 |
Dump hard links to symbolic names as links, not as separate |
| 15032 |
symbolic links. |
| 15033 |
start_header cannot return a null pointer, so don't test for it. |
| 15034 |
Likewise for find_next_block. |
| 15035 |
|
| 15036 |
* src/buffer.c, src/common.h (<human.h>): Include. |
| 15037 |
(read_error): Read error is an error, not just a warning. |
| 15038 |
(print_total_written): Also print human-readable byte count, and |
| 15039 |
bytes/s. |
| 15040 |
(open_archive, flush_write): Use start_time, not current time. |
| 15041 |
(flush_read): Report about garbage bytes ignored at end of archive, |
| 15042 |
but act on non-garbage bytes (instead of ignoring them). |
| 15043 |
(new_volume): Use WARN for warnings. |
| 15044 |
|
| 15045 |
* doc/Makefile.am: |
| 15046 |
($(srcdir)/tar.info): Add -I$(srcdir) so that subdir builds work. |
| 15047 |
|
| 15048 |
* Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/fnmatch.m4. |
| 15049 |
|
| 15050 |
* m4/Makefile.am (EXTRA_DIST): Add fnmatch.m4. |
| 15051 |
|
| 15052 |
* lib/Makefile.am (noinst_HEADERS): |
| 15053 |
Rename fnmatch.h to fnmatch.hin; add human.h. |
| 15054 |
(libtar_a_SOURCES): Add human.c, xstrtoul.c. |
| 15055 |
(INCLUDES): Remove -I.. -I$(srcdir) -- automake adds this for us. |
| 15056 |
|
| 15057 |
* src/Makefile.am (rmt_LDADD, tar_LDADD): New macros. |
| 15058 |
|
| 15059 |
* lib/fnmatch.c (strchrnul): |
| 15060 |
Define to __strchrnul if _LIBC, to our own replacement otherwise. |
| 15061 |
Do not define if !_LIBC and if it already exists. |
| 15062 |
(internal_fnmatch): Use it. |
| 15063 |
|
| 15064 |
* configure.in (tar_LDADD): New variable, used only when linking tar. |
| 15065 |
(rmt_LDADD): Similarly, for rmt. |
| 15066 |
(AC_FUNC_FNMATCH): Link fnnmatch.hin to fnmatch.h if we're using our |
| 15067 |
fnmatch.c; otherwise, use the system fnmatch.h. |
| 15068 |
|
| 15069 |
* doc/tar.texi: Add --no-same-owner, --no-same-permissions. |
| 15070 |
Modernize sample backup script. |
| 15071 |
|
| 15072 |
* THANKS: Martin Goik's email address has changed. |
| 15073 |
|
| 15074 |
* m4/fnmatch.m4: New file. |
| 15075 |
|
| 15076 |
1999-09-03 Paul Eggert <[email protected]> |
| 15077 |
|
| 15078 |
* lib/lchown.h (ENOSYS): Don't use ENOMSG; it's not in NeXTStep3.3. |
| 15079 |
Use EINVAL instead. |
| 15080 |
|
| 15081 |
1999-08-29 Paul Eggert <[email protected]> |
| 15082 |
|
| 15083 |
* lib/getdate.y (get_date): |
| 15084 |
Rename outermost local `probe' to `quarter'. |
| 15085 |
Rename latter local `tm' to probe_tm. |
| 15086 |
From: Jim Meyering <[email protected]> |
| 15087 |
Message-ID: <[email protected]> |
| 15088 |
|
| 15089 |
1999-08-28 Paul Eggert <[email protected]> |
| 15090 |
|
| 15091 |
* lib/getdate.y (PC): New macro; use it when possible. |
| 15092 |
(number): Handle `Nov 11 1996' example correctly. |
| 15093 |
See Risks Digest 20.55 (1999-08-27) |
| 15094 |
http://catless.ncl.ac.uk/Risks/20.55.html#subj18 |
| 15095 |
|
| 15096 |
1999-08-23 Paul Eggert <[email protected]> |
| 15097 |
|
| 15098 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.11. |
| 15099 |
|
| 15100 |
Remove minor cases of lint from many source files: this includes |
| 15101 |
unnecessary casts, uses of NULL, etc. |
| 15102 |
|
| 15103 |
* configure.in (AC_PROG_YACC): Remove. |
| 15104 |
(YACC): Always use bison. |
| 15105 |
(AC_STRUCT_TIMEZONE): Add. |
| 15106 |
(AC_REPLACE_FUNCS): Add strcasecmp, strncasecmp. |
| 15107 |
|
| 15108 |
* doc/tar.texi: --bzip2 is now -I. Remove obsolete time zone info. |
| 15109 |
Fix spelling. |
| 15110 |
|
| 15111 |
* lib/Makefile.am (EXTRA_DIST): Add strcasecmp.c, strncasecmp.c. |
| 15112 |
($(srcdir)/getdate.c): Rename y.tab.c to getdate.c only if successful. |
| 15113 |
|
| 15114 |
* lib/strcasecmp.c, lib/strncasecmp.c: New files. |
| 15115 |
|
| 15116 |
* src/common.h (merge_sort): Remove decl; no longer exported. |
| 15117 |
|
| 15118 |
* src/system.h (voidstar): Remove. |
| 15119 |
(memcpy, memcmp): Cast args. |
| 15120 |
("xalloc.h"): Add include. |
| 15121 |
(xmalloc, xrealloc): Remove decl. |
| 15122 |
|
| 15123 |
* src/mangle.c (time): Do not declare if defined. |
| 15124 |
(first_mangle, mangled_num): Remove. |
| 15125 |
|
| 15126 |
* src/list.c (from_chars): Report out-of-range values more precisely. |
| 15127 |
(off_from_chars): Do not allow negative offsets. |
| 15128 |
(uid_from_chars): Allow negative uids. |
| 15129 |
|
| 15130 |
* src/create.c (linklist): Now static. |
| 15131 |
(to_chars): Fix wording of message to match from_chars. |
| 15132 |
|
| 15133 |
* src/misc.c (merge_sort): Move to incremen.c. |
| 15134 |
* src/incremen.c (merge_sort): Move here from misc.c; now static. |
| 15135 |
It's too painful to make it both generic and portable. |
| 15136 |
(read_directory_file): "timestamp" -> "time stamp" in messages. |
| 15137 |
|
| 15138 |
* src/tar.c (long_options, usage, main): -y is now -I (for --bzip). |
| 15139 |
(usage): Fix misspelling. |
| 15140 |
(OPTION_STRING): -y is now -I. |
| 15141 |
(decode_options): Use -1, not EOF, for getopt_long result. |
| 15142 |
Fix typo when invoking xstrtoumax: look for LONGINT_OK, not LONG_MAX. |
| 15143 |
Handle operands after any "--" argument. |
| 15144 |
(main): Report any output errors. |
| 15145 |
|
| 15146 |
* src/rmt.c (main): status is ssize_t, not long. |
| 15147 |
|
| 15148 |
* src/names.c (name_gather): Handle trailing -C option correctly. |
| 15149 |
(addname): use memcpy, not strncpy, to copy a string of known length. |
| 15150 |
(name_match): Handle trailing -C option correctly. |
| 15151 |
Propagate -C option to following files. |
| 15152 |
(name_match, name_scan): Remove redundant matching code. |
| 15153 |
|
| 15154 |
* src/buffer.c (open_archive): Use American spelling in diagnostic. |
| 15155 |
|
| 15156 |
* lib/getdate.y: Major rewrite. Add copyright notice. |
| 15157 |
(<stdio.h>): Include only if testing. |
| 15158 |
(ISUPPER): Remove. |
| 15159 |
(ISLOWER): New macro. |
| 15160 |
(<string.h>): Include if HAVE_STRING_H, not USG. |
| 15161 |
(bcopy): Remove. |
| 15162 |
(yymaxdepth, ..., yycheck): Don't bother to redefine, since we assume |
| 15163 |
bison. |
| 15164 |
(EPOCH_YEAR): Renamed from EPOCH. |
| 15165 |
(table): Renamed from TABLE. |
| 15166 |
(meridian): Now an anonymous enum. |
| 15167 |
(struct parser_control): New type. |
| 15168 |
(YYLEX_PARAM, YYPARSE_PARAM, YYSTYPE): New macros. |
| 15169 |
(yyInput, ..., yyRelYear): Migrated into struct parser_control. |
| 15170 |
(%pure_parser): Added, so that the parser is pure. |
| 15171 |
(%union): Removed; the type is now just plain int. |
| 15172 |
All %type directives removed. |
| 15173 |
(tLOCAL_ZONE): New %token. |
| 15174 |
(month_day_table): Renamed from MonthDayTable. |
| 15175 |
(gmtime, localtime, mktime, time): Declare only if not defined. |
| 15176 |
(meridian_table): New table. |
| 15177 |
(dst_table): New table. |
| 15178 |
(units_table): renamed from UnitsTable. |
| 15179 |
(relative_time_table): Renamed from OtherTable. |
| 15180 |
(time_zone_table): Renamed from TimezoneTable. Modernized. |
| 15181 |
(military_table): Renamed from MilitaryTable. |
| 15182 |
(to_hour): Renamed from ToHour. |
| 15183 |
(to_year): Renamed from ToYear. |
| 15184 |
(lookup_zone): New function. |
| 15185 |
(LookupWord): Renamed from lookup_word. Use lookup_zone for time |
| 15186 |
zones. |
| 15187 |
(yylex): Now reentrant. All callers changed. |
| 15188 |
(get_date): Add support for local time zone abbreviations. |
| 15189 |
Make it reentrant. |
| 15190 |
|
| 15191 |
1999-08-20 Paul Eggert <[email protected]> |
| 15192 |
|
| 15193 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.10. |
| 15194 |
|
| 15195 |
* src/create.c (to_chars): Generate GNU base-64 representation |
| 15196 |
if we are generating an old or new GNU format tar file for a |
| 15197 |
number that can't be represented with the POSIX format. |
| 15198 |
|
| 15199 |
* configure.in (AC_CHECK_FUNCS): Add fchdir. |
| 15200 |
(AM_FUNC_GETLINE): Add. |
| 15201 |
(LIBOBJS): Add getline.o to workaround comment. |
| 15202 |
* Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/getline.m4. |
| 15203 |
* m4/Makefile.am (EXTRA_DIST): Add getline.m4. |
| 15204 |
* lib/Makefile.am (noinst_HEADERS): Add getline.h, save-cwd.h. |
| 15205 |
(libtar_a_SOURCES): Add save-cwd.c, xgetcwd.c. |
| 15206 |
* lib/getline.c, lib/getline.h, lib/save-cwd.c, |
| 15207 |
lib/save-cwd.h, m4/getline.m4: New files. |
| 15208 |
|
| 15209 |
* src/misc.c (<save-cwd.h>): Include. |
| 15210 |
(chdir_from_initial_wd): New function. |
| 15211 |
|
| 15212 |
* src/names.c (name_next): Use chdir_from_initial_wd, not chdir. |
| 15213 |
(name_gather): Handle `-C x -C y' correctly. |
| 15214 |
Do not rely on addname to handle -C. |
| 15215 |
(addname): New CHANGE_DIR parameter. All callers changed. |
| 15216 |
Remove ugly calls to getcwd; no longer needed. |
| 15217 |
(name_match, name_from_list): Use chdir_from_initial_wd, not chdir. |
| 15218 |
|
| 15219 |
* src/incremen.c (listed_incremental_stream): New var. |
| 15220 |
(read_directory_file): Remove arbitrary limits on file name length. |
| 15221 |
Do not attempt to get the working directory; we can bypass this |
| 15222 |
on fchdir hosts. Open the listed_incremental_option file for both |
| 15223 |
read and write instead of opening it twice. Check for I/O errors |
| 15224 |
when doing I/O to this file. Check for invalid data in the file, |
| 15225 |
and report line numbers of invalid data. |
| 15226 |
(write_dir_file): Likewise. |
| 15227 |
(collect_and_sort_names): Use chdir_from_initial_wd, not chdir. |
| 15228 |
Do not invoke write_dir_file; that's our caller's responsibility. |
| 15229 |
|
| 15230 |
* src/list.c (max): New macro. |
| 15231 |
(isotime): Now takes time_t, not time_t *. Report the decimal values |
| 15232 |
of times that can't be broken down. |
| 15233 |
(print_header): Don't assume that major and minor device numbers can |
| 15234 |
fit into uintmax_t. |
| 15235 |
|
| 15236 |
* src/common.h (struct name): change_dir is now char const *. |
| 15237 |
(write_directory_file): Remove unused decl. |
| 15238 |
(STRINGIFY_BIGINT): Assume b always points to UINTMAX_STRSIZE_BOUND |
| 15239 |
chars; the old `sizeof (b)' broke when b was a pointer not an array. |
| 15240 |
(chdir_from_initial_wd): New decl. |
| 15241 |
(addname): New 2nd arg. |
| 15242 |
|
| 15243 |
* THANKS: Torsten Lull -> Catrin Urbanneck |
| 15244 |
|
| 15245 |
1999-08-18 Paul Eggert <[email protected]> |
| 15246 |
|
| 15247 |
* configure.in (HAVE_GETHOSTENT, HAVE_SETSOCKOPT): |
| 15248 |
Don't depend on ac_cv_func variables. |
| 15249 |
From Albert Chin-A-Young <[email protected]>. |
| 15250 |
|
| 15251 |
1999-08-18 Paul Eggert <[email protected]> |
| 15252 |
|
| 15253 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.9 |
| 15254 |
|
| 15255 |
* m4/signedchar.m4: New file. |
| 15256 |
* configure.in (pe_AC_TYPE_SIGNED_CHAR): Add. |
| 15257 |
* src/system.h (signed_char): New macro. |
| 15258 |
* Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/signedchar.m4. |
| 15259 |
* m4/Makefile.am (EXTRA_DIST): Add signedchar.m4. |
| 15260 |
|
| 15261 |
* src/create.c (write_eot): Write at least two zero blocks. |
| 15262 |
|
| 15263 |
* src/extract.c (extract_archive): Fix sparse array bug: |
| 15264 |
we did not find end of array correctly. |
| 15265 |
|
| 15266 |
* src/compare.c: (fill_in_sparse_array, diff_sparse_files): |
| 15267 |
Don't assume find_next_block yields nonnull. |
| 15268 |
* src/extract.c (extract_sparse_file, extract_archive): Likewise. |
| 15269 |
* src/list.c (skip_extended_headers): Likewise. |
| 15270 |
|
| 15271 |
* src/list.c (read_and, list_archive): Simplify code. |
| 15272 |
(read_header): Fix computation of signed checksums on machines where |
| 15273 |
char is unsigned. |
| 15274 |
Do not consider a block to be zero unless all its bytes are zero, |
| 15275 |
even the checksum bytes. Do not attempt to parse the checksum of |
| 15276 |
a zero block. Fix memory leak with long names and links. |
| 15277 |
(from_chars): Accommodate a buggy tar that outputs leading NUL |
| 15278 |
if the previous field overflows. |
| 15279 |
|
| 15280 |
* src/misc.c (quote_copy_string): Generate \177 for '\177', not |
| 15281 |
\?, for portability to non-ASCII hosts. |
| 15282 |
|
| 15283 |
1999-08-16 Paul Eggert <[email protected]> |
| 15284 |
|
| 15285 |
* configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.8. |
| 15286 |
|
| 15287 |
* src/extract.c (make_directories): Do not chown intermediate |
| 15288 |
directories, even if we are root. |
| 15289 |
|
| 15290 |
* src/list.c (read_header): Fix bugs when interpreting |
| 15291 |
POSIX-compliant headers that do not contain null bytes in the |
| 15292 |
header or link names. |
| 15293 |
|
| 15294 |
1999-08-14 Paul Eggert <[email protected]> |
| 15295 |
|
| 15296 |
* configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.7. |
| 15297 |
|
| 15298 |
* configure.in (AC_CHECK_HEADERS): Remove sys/wait.h. |
| 15299 |
(AC_HEADER_SYS_WAIT): Add. |
| 15300 |
(AC_REPLACE_FUNCS): Add waitpid. |
| 15301 |
(tar_cv_header_union_wait, HAVE_UNION_WAIT): Remove. |
| 15302 |
* lib/waitpid.c: New file. |
| 15303 |
* lib/Makefile.am (EXTRA_DIST): Add waitpid.c. |
| 15304 |
* src/system.h (WCOREDUMP): Remove; no longer used. |
| 15305 |
(WIFSTOPPED): Likewise. |
| 15306 |
(WEXITSTATUS, WIFSIGNALED): Default to Solaris 7 versions. |
| 15307 |
* src/buffer.c (child_open_for_compress): Undo previous change. |
| 15308 |
(close_archive): Use waitpid, POSIX-style, instead of old BSD style. |
| 15309 |
(new_volume): Likewise. |
| 15310 |
|
| 15311 |
* src/buffer.c, src/extract.c, src/incremen.c (time): |
| 15312 |
Don't declare if defined. |
| 15313 |
* src/extract.c (extr_init): Remove unneeded cast around 0 arg to time. |
| 15314 |
* src/incremen.c (read_directory_file): |
| 15315 |
Invoke `time' the same way everyone else does. |
| 15316 |
Check validity of --listed-incremental file contents a bit better. |
| 15317 |
Do not worry about --after-date-option; tar.c now checks this. |
| 15318 |
* src/list.c (isotime): Report ??? if localtime returns null. |
| 15319 |
Don't assume years fit into four digits. |
| 15320 |
Don't append trailing newline. |
| 15321 |
(print_header): Report ??? if localtime returns null; |
| 15322 |
Don't assume years fit into four digits. |
| 15323 |
|
| 15324 |
* src/compare.c (diff_archive): Do not fall back on absolute name |
| 15325 |
when --absolute-names is not specified. |
| 15326 |
|
| 15327 |
* src/create.c (start_header): |
| 15328 |
Include text of ignored filesystem prefix in warning. |
| 15329 |
(create_archive): Check for excluded names when doing incremental |
| 15330 |
pass through directory. |
| 15331 |
(dump_file): Do not dump old files explicitly given on command line |
| 15332 |
when using --listed-incremental. Do not strip ./ prefix from names. |
| 15333 |
|
| 15334 |
* src/tar.c: -g now implies after_date_option = 1. |
| 15335 |
-g and -N are now incompatible options. |
| 15336 |
|
| 15337 |
* doc/tar.texi: Explain --exclude better. Don't strip leading `./'. |
| 15338 |
|
| 15339 |
1999-08-11 Jeff Dairiki <[email protected]> |
| 15340 |
|
| 15341 |
* src/list.c (read_header): Don't parse OLDGNU_FORMAT |
| 15342 |
incremental headers as POSIX prefixes. |
| 15343 |
|
| 15344 |
1999-08-11 Paul Eggert <[email protected]> |
| 15345 |
|
| 15346 |
* NEWS, configure.in: Version 1.13.6. |
| 15347 |
|
| 15348 |
* configure.in (ALL_LINGUAS): Add pt_BR. |
| 15349 |
* po/pt_BR.po: New file. |
| 15350 |
|
| 15351 |
* doc/Makefile.am ($(srcdir)/tar.info, $(srcdir)/header.texi): |
| 15352 |
Renamed from tar.info and header.texi; adjust actions so that |
| 15353 |
they work in other directories. |
| 15354 |
|
| 15355 |
* doc/tar.texi: Add -y and --bzip2. |
| 15356 |
Patterns containing / now exclude only file names whose prefix match. |
| 15357 |
|
| 15358 |
* lib/exclude.h (excluded_filename): New option parameter. |
| 15359 |
(add_exclude_file): New ADD_FUNC parameter. |
| 15360 |
(excluded_pathname): Remove decl. |
| 15361 |
* lib/exclude.c (_GNU_SOURCE): |
| 15362 |
Remove; no longer needed since we don't use FNM_ macros. |
| 15363 |
(excluded_filename): Renamed from excluded_filename_opts. |
| 15364 |
(excluded_filename, excluded_pathname): Remove. |
| 15365 |
(add_exclude_file): New ADD_FUNC parameter. |
| 15366 |
|
| 15367 |
* po/POTFILES.in: Add lib/quotearg.c. |
| 15368 |
|
| 15369 |
* src/buffer.c (_GNU_SOURCE): Define. |
| 15370 |
(<fnmatch.h>): Include unconditionally. |
| 15371 |
(child_open_for_compress): Dup after closing, to avoid possible file |
| 15372 |
descriptor exhaustion. |
| 15373 |
(flush_write): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef. |
| 15374 |
(flush_read): Likewise. |
| 15375 |
|
| 15376 |
* src/common.h (LG_8, LG_64): New macros. |
| 15377 |
(excluded_with_slash, excluded_without_slash): New vars. |
| 15378 |
(excluded): Remove. |
| 15379 |
(base_64_digits): New decl. |
| 15380 |
(gid_to_chars, major_to_chars, minor_to_chars, mode_to_chars, |
| 15381 |
off_to_chars, size_to_chars, time_to_chars, uid_to_chars, |
| 15382 |
uintmax_to_chars, |
| 15383 |
GID_TO_CHARS, MAJOR_TO_CHARS, MINOR_TO_CHARS, MODE_TO_CHARS, |
| 15384 |
OFF_TO_CHARS, SIZE_TO_CHARS, TIME_TO_CHARS, UID_TO_CHARS, |
| 15385 |
UINTMAX_TO_CHARS): |
| 15386 |
Renamed from gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, |
| 15387 |
off_to_oct, size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct, |
| 15388 |
GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, OFF_TO_OCT, |
| 15389 |
SIZE_TO_OCT, TIME_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT, |
| 15390 |
respectively. All definitions and uses changed. |
| 15391 |
(excluded_name): New decl. |
| 15392 |
|
| 15393 |
* src/compare.c (diff_archive): |
| 15394 |
Open files with O_NONBLOCK instead of O_NDELAY. |
| 15395 |
|
| 15396 |
* src/create.c (base_64_digits): New constant. |
| 15397 |
(base_8_digits): New macro. |
| 15398 |
(MAX_VAL_WITH_DIGITS): New macro. |
| 15399 |
(to_base): First half of old to_oct. Support base 64 too. |
| 15400 |
(to_chars): Other half of old to_oct, for 64-bit support. |
| 15401 |
(GID_NOBODY, UID_NOBODY): Don't define if the headers don't. |
| 15402 |
(gid_substitute, uid_substitute): Look up names dynamically if |
| 15403 |
GID_NOBODY and UID_NOBODY aren't defined; use -2 if all else fails. |
| 15404 |
(mode_to_chars): Renamed from mode_to_oct. |
| 15405 |
Support negative values in all the _to_chars functions. |
| 15406 |
(start_header): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef. |
| 15407 |
Abort if archive format is DEFAULT_FORMAT when it shouldn't be. |
| 15408 |
(dump_file): Inspect entire pathname, not just new file name |
| 15409 |
component, when deciding whether to exclude it. |
| 15410 |
|
| 15411 |
* src/extract.c (extract_archive): |
| 15412 |
Open files with O_NONBLOCK instead of O_NDELAY. |
| 15413 |
|
| 15414 |
* src/incremen.c (get_directory_contents): |
| 15415 |
Inspect entire pathname, not just new file name |
| 15416 |
component, when deciding whether to exclude it. |
| 15417 |
|
| 15418 |
* src/list.c (<fnmatch.h>): Do not include. |
| 15419 |
(from_chars): Renamed from from_oct. New parameter specifying |
| 15420 |
the negative of the minimum allowed value. Support negative |
| 15421 |
and base-64 values. |
| 15422 |
(base64_map): New var. |
| 15423 |
(base64_init): New function. |
| 15424 |
(print_header): Output numeric uids and gids if numeric_owner_option. |
| 15425 |
|
| 15426 |
* src/misc.c (quote_copy_string): Use LG_8 instead of constants. |
| 15427 |
|
| 15428 |
* src/names.c (_GNU_SOURCE): Define. |
| 15429 |
(<fnmatch.h>): Include unconditionally. |
| 15430 |
(excluded_name): New function, taking over duties of excluded_pathname. |
| 15431 |
All uses changed. |
| 15432 |
|
| 15433 |
* src/rmt.c (decode_oflag): New function. |
| 15434 |
(main): Use it to support symbolic open flags. |
| 15435 |
|
| 15436 |
* src/rtapelib.c (encode_oflag): New function. |
| 15437 |
(rmt_open__): Do not allow newlines in the path. |
| 15438 |
Propagate errno correctly. |
| 15439 |
Decode symbolic open flags, if present. |
| 15440 |
|
| 15441 |
* src/system.h (FILESYSTEM_PREFIX_LEN, ISSLASH, O_ACCMODE, O_NONBLOCK): |
| 15442 |
New macros. |
| 15443 |
|
| 15444 |
* src/tar.c: (long_options, usage, OPTION_STRING, decode_options): |
| 15445 |
New -y or --bzip2 option. |
| 15446 |
(add_filtered_exclude): New function. |
| 15447 |
(decode_options): Put excluded patterns with / into |
| 15448 |
excluded_with_slash, and without / into excluded_without_slash. |
| 15449 |
Compare newer_mtime_option to its new initial value |
| 15450 |
TYPE_MINIMUM (time_t) when deciding whether more than one |
| 15451 |
threshold date was specified. |
| 15452 |
|
| 15453 |
1999-07-20 Paul Eggert <[email protected]> |
| 15454 |
|
| 15455 |
* NEWS, configure.in: Version 1.13.5. |
| 15456 |
|
| 15457 |
* src/common.h (FATAL_ERROR): Invoke apply_delayed_set_stat |
| 15458 |
before exiting. |
| 15459 |
* src/buffer.c (new_volume): Likewise. |
| 15460 |
* src/incremen.c (read_directory_file): Likewise. |
| 15461 |
* src/tar.c (decode_options): |
| 15462 |
ERROR ((TAREXIT_FAILURE, ... -> FATAL_ERROR ((0, |
| 15463 |
for consistency. |
| 15464 |
|
| 15465 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.4. |
| 15466 |
* configure.in (AC_CHECK_FUNCS): Add lstat, readlink, symlink. |
| 15467 |
|
| 15468 |
* src/system.h (lstat): Define only if !HAVE_LSTAT && !defined lstat. |
| 15469 |
(S_ISMPB, S_ISMPC, S_ISNWK): Remove unused macros. |
| 15470 |
(S_ISBLK, S_ISCHR, S_ISCTG, S_ISFIFO, S_ISLNK, S_ISSOCK): |
| 15471 |
Define to 0 if the corresponding S_IF* macro is not defined. |
| 15472 |
(mkfifo): Do not define if already defined, or if S_IFIFO |
| 15473 |
is not defined. |
| 15474 |
|
| 15475 |
* src/compare.c (diff_archive): Use HAVE_READLINK, not |
| 15476 |
S_ISLNK, to determine whether to invoke readlink. |
| 15477 |
* src/create.c (dump_file): Likewise. |
| 15478 |
|
| 15479 |
* src/extract.c (set_mode): |
| 15480 |
Do not chmod unless we are root or the -p option was given; |
| 15481 |
this matches historical practice. |
| 15482 |
(unlink_destination): New function, which checks for unlink failures. |
| 15483 |
(maybe_recoverable): Stay quiet if -U. |
| 15484 |
(extract_archive): Use O_EXCL if unlink_first_option. |
| 15485 |
Report unlink failures. |
| 15486 |
Use HAVE_SYMLINK, not S_ISLNK, to determine whether symlink exists. |
| 15487 |
Use HAVE_MKFIFO || defined mkfifo, not S_ISFIFO, to determine whether |
| 15488 |
mkfifo exists. |
| 15489 |
|
| 15490 |
* src/incremen.c (get_directory_contents): Depend on |
| 15491 |
S_ISHIDDEN, not AIX, to determine whether to invoke S_ISHIDDEN. |
| 15492 |
|
| 15493 |
* src/list.c: Remove S_IS* ifdefs. |
| 15494 |
* src/misc.c (maybe_backup_file): Likewise. |
| 15495 |
|
| 15496 |
* src/misc.c (maybe_backup_file): |
| 15497 |
"Virtual memory exhausted" -> "Memory exhausted", |
| 15498 |
to conform to the other places this message is issued. |
| 15499 |
|
| 15500 |
* src/mangle.c (extract_mangle): |
| 15501 |
Replace #ifdef S_ISLNK with #ifdef HAVE_SYMLINK. |
| 15502 |
|
| 15503 |
* src/rtapelib.c (rmt_open__): |
| 15504 |
Remove typo that caused us to omit the first char |
| 15505 |
of the basename. |
| 15506 |
|
| 15507 |
1999-07-16 Paul Eggert <[email protected]> |
| 15508 |
|
| 15509 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.13.3. |
| 15510 |
|
| 15511 |
* doc/tar.texi: A path name is excluded if any of its file name |
| 15512 |
components matches an excluded pattern, even if the path name was |
| 15513 |
specified on the command line. |
| 15514 |
* src/create.c (create_archive): Likewise. |
| 15515 |
* src/list.c (read_and): Likewise. |
| 15516 |
* src/update.c (update_archive): Likewise. |
| 15517 |
* lib/exclude.h (excluded_pathname): New decl. |
| 15518 |
* lib/exclude.c (_GNU_SOURCE): Define. |
| 15519 |
(FILESYSTEM_PREFIX_LEN, ISSLASH): New macros. |
| 15520 |
(excluded_filename_opts): New function. |
| 15521 |
(excluded_pathname): New function. |
| 15522 |
|
| 15523 |
* lib/Makefile.am (EXTRA_DIST): |
| 15524 |
xstrtol.c moved here from libtar_a_SOURCES. |
| 15525 |
(libtar_a_SOURCES): Move xstrtol.c to EXTRA_DIST. |
| 15526 |
Remove xstrtoul.c; no longer needed. |
| 15527 |
* lib/xstrtol.c: Remove. |
| 15528 |
|
| 15529 |
* src/tar.c (decode_options): |
| 15530 |
Set newer_time_option to TYPE_MINIMUM, so that |
| 15531 |
negative timestamps are handled correctly. |
| 15532 |
Replace invocations of xstrtol and xstrtoul with xstrtoumax, for |
| 15533 |
uniformity (and so that we don't need to have the other fns). |
| 15534 |
(main): Remove call to init_total_written; no longer needed. |
| 15535 |
|
| 15536 |
* configure.in (AC_CHECK_SIZEOF): Remove no-longer-needed |
| 15537 |
checks for unsigned long and long long. |
| 15538 |
* src/arith.c: Remove. |
| 15539 |
* src/Makefile.am (tar_SOURCES): Remove arith.c. |
| 15540 |
* po/POTFILES.in: Remove src/arith.c. |
| 15541 |
* src/arith.h: Use double, to simplify configuration gotchas. |
| 15542 |
(tarlong): Now double. |
| 15543 |
(TARLONG_FORMAT): New macro. |
| 15544 |
(BITS_PER_BYTE, BITS_PER_TARLONG, SUPERDIGIT, BITS_PER_SUPERDIGIT, |
| 15545 |
LONGS_PER_TARLONG, SIZEOF_TARLONG, struct tarlong, |
| 15546 |
zerop_tarlong_helper, lessp_tarlong_helper, clear_tarlong_helper, |
| 15547 |
add_to_tarlong_helper, mult_tarlong_helper, print_tarlong_helper, |
| 15548 |
zerop_tarlong, lessp_tarlong, clear_tarlong, add_to_tarlong, |
| 15549 |
mult_tarlong, print_tarlong): Remove. All callers replaced with |
| 15550 |
arithmetic ops. |
| 15551 |
|
| 15552 |
* src/common.h (init_total_written): Remove decl. |
| 15553 |
|
| 15554 |
* src/buffer.c (total_written): |
| 15555 |
Remove; replaced with prev_written + bytes_written. |
| 15556 |
(prev_written): New var. |
| 15557 |
(init_total_written): Remove. |
| 15558 |
(print_total_written): Use TARLONG_FORMAT instead of print_tarlong. |
| 15559 |
|
| 15560 |
* m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): |
| 15561 |
Make sure that we can shift, multiply |
| 15562 |
and divide unsigned long long values; Ultrix cc can't do it. |
| 15563 |
|
| 15564 |
* lib/modechange.c (mode_compile): Use uintmax_t, not unsigned long. |
| 15565 |
Check for any unknown bits, not just unknown bits left of the leftmost |
| 15566 |
known bit. |
| 15567 |
|
| 15568 |
* lib/quotearg.c (quotearg_buffer): |
| 15569 |
Don't quote spaces if C quoting style. |
| 15570 |
* src/list.c (from_oct): |
| 15571 |
Use C quoting style for error; omit trailing NULs. |
| 15572 |
|
| 15573 |
1999-07-14 Paul Eggert <[email protected]> |
| 15574 |
|
| 15575 |
* configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.2. |
| 15576 |
|
| 15577 |
* m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether |
| 15578 |
<inttypes.h> defines strtoumax as a macro (and not as a function). |
| 15579 |
HP-UX 10.20 does this. |
| 15580 |
|
| 15581 |
* src/tar.c (usage): [email protected] -> [email protected] |
| 15582 |
* PORTS, README, TODO, doc/tar.texi: Likewise. |
| 15583 |
|
| 15584 |
1999-07-12 Paul Eggert <[email protected]> |
| 15585 |
|
| 15586 |
* configure.in (AM_INIT_AUTOMAKE): Version 1.13.1. |
| 15587 |
(LIBOBJS): Add mktime.o to automake 1.4 bug workaround. |
| 15588 |
|
| 15589 |
* src/list.c (decode_header): |
| 15590 |
Do not assume that S_IFBLK and S_IFCHR are defined. |
| 15591 |
|
| 15592 |
* src/create.c (start_header): Do not assume S_IFMT is defined. |
| 15593 |
(dump_file): Remove unnecessary check for screwy apollo lossage. |
| 15594 |
Do not assume S_IFBLK and S_IFCHR are defined. |
| 15595 |
|
| 15596 |
* src/extract.c (extract_archive): |
| 15597 |
Test whether S_IFCHR and S_IFBLK are nonzero, |
| 15598 |
not whether they are defined, for consistency with other tests. |
| 15599 |
|
| 15600 |
* src/buffer.c (is_regular_file): |
| 15601 |
Don't succeed on files that we can't access due to |
| 15602 |
permissions problems. |
| 15603 |
(open_archive): Fix wording on fatal error message. |
| 15604 |
Don't bother to stat /dev/null if the archive is not a character |
| 15605 |
special device. |
| 15606 |
|
| 15607 |
* src/compare.c (process_rawdata, diff_sparse_files, diff_archive): |
| 15608 |
Report an error, not a warning, for I/O errors. |
| 15609 |
(process_rawdata, process_dumpdir, diff_sparse_files): |
| 15610 |
Change ungrammatical "Data differs" to "Contents differ". |
| 15611 |
(get_stat_data): Find hidden files on AIX. |
| 15612 |
Accept file name as argument; all uses changed. |
| 15613 |
(get_stat_data, diff_archive): Use system error message for |
| 15614 |
nonexistent files rather than rolling our own. |
| 15615 |
(diff_archive): Unknown file types are errors, not warnings. |
| 15616 |
Normalize spelling of message to "File type differs". |
| 15617 |
Use get_stat_data to get link status, for consistency. |
| 15618 |
Do not inspect st_rdev for fifos. |
| 15619 |
Do not assume st_mode values contain only file types and mode bits. |
| 15620 |
Check for mode changes and device number changes separately. |
| 15621 |
|
| 15622 |
* src/update.c (append_file): |
| 15623 |
Open the file before statting it, to avoid a race. |
| 15624 |
Complain about file shrinkage only when we reach EOF. |
| 15625 |
|
| 15626 |
1999-07-08 Paul Eggert <[email protected]> |
| 15627 |
|
| 15628 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13 released. |
| 15629 |
|
| 15630 |
* configure.in (AC_EXEEXT): Add. |
| 15631 |
|
| 15632 |
* lib/Makefile.am (noinst_HEADERS): |
| 15633 |
Add basename.h, exclude.h. Remove full-write.h. |
| 15634 |
(libtar_a_SOURCES): Add exclude.c. |
| 15635 |
|
| 15636 |
* lib/basename.h, lib/exclude.c, lib/exclude.h, lib/safe-read.h: |
| 15637 |
New files. |
| 15638 |
* lib/full-write.c: Include safe-read.h instead of full-write.h. |
| 15639 |
* lib/safe-read.h (safe_read): New decl. |
| 15640 |
* src/rmt.c: Include safe-read.h. |
| 15641 |
* src/rtapelib.c: Include basename.h, save-read.h. |
| 15642 |
(rmt_open__): Use base_name to compute base name. |
| 15643 |
|
| 15644 |
* src/common.h: |
| 15645 |
Include basename.h, exclude.h; don't include full-write.h. |
| 15646 |
(exclude_option): Remove decl. |
| 15647 |
(excluded): New decl. |
| 15648 |
(add_exclude, add_exclude_file, check_exclude): Remove decls. |
| 15649 |
|
| 15650 |
* src/list.c (read_and): |
| 15651 |
Use excluded_filename instead of check_exclude. |
| 15652 |
Check base name of incoming file name, not entire file name, when |
| 15653 |
deciding whether to exclude it. |
| 15654 |
|
| 15655 |
* src/create.c (finish_sparse_file): |
| 15656 |
Use excluded_filename instead of check_exclude. |
| 15657 |
Don't bother to stat excluded file names. |
| 15658 |
* src/incremen.c (get_directory_contents): Likewise. |
| 15659 |
|
| 15660 |
* src/names.c (exclude_pool, exclude_pool_size, |
| 15661 |
allocated_exclude_pool_size, simple_exclude_array, |
| 15662 |
simple_excludes, allocated_simple_excludes, |
| 15663 |
pattern_exclude_array, pattern_excludes, |
| 15664 |
allocated_pattern_excludes, add_exclude, add_exclude_file, |
| 15665 |
check_exclude): |
| 15666 |
Remove; now done in ../lib/exclude.c. |
| 15667 |
|
| 15668 |
* src/tar.c (decode_options): Initialize `excluded'. |
| 15669 |
Use new add_exclude_file and add_exclude functions. |
| 15670 |
|
| 15671 |
1999-07-05 Paul Eggert <[email protected]> |
| 15672 |
|
| 15673 |
* m4/gettext.m4: Use changequote rather than [[ ]]. |
| 15674 |
|
| 15675 |
* lib/safe-read.c: Renamed from lib/full-read.c. |
| 15676 |
(safe_read): Renamed from full_read. All uses changed. |
| 15677 |
* lib/safe-read.h, lib/full-write.h: New files. |
| 15678 |
* lib/Makefile.am (noinst_HEADERS): Add full-write.h, safe-read.h. |
| 15679 |
(libtar_a_SOURCES): Rename full-read.c to safe-read.c. |
| 15680 |
* lib/full-write.c: Include full-write.h. |
| 15681 |
* src/common.h: Include full-write.h, safe-read.h. |
| 15682 |
* src/system.h: (full_read, full_write): Remove decls. |
| 15683 |
|
| 15684 |
* src/Makefile.am (datadir): New var; needed for Solaris gettext. |
| 15685 |
|
| 15686 |
* src/system.h (bindtextdomain, textdomain): undef before |
| 15687 |
defining, to avoid preprocessor warnings with --disable-nls |
| 15688 |
on hosts whose locale.h includes libintl.h. |
| 15689 |
|
| 15690 |
* lib/xstrtol.c (__strtol): Remove decl; it doesn't work if __strtol |
| 15691 |
expands to a macro, which occurs in HP-UX 10.20 with strtoumax. |
| 15692 |
(strtol, strtoul): New decls (for pre-ANSI hosts), to replace |
| 15693 |
the above decl. |
| 15694 |
|
| 15695 |
1999-07-02 Paul Eggert <[email protected]> |
| 15696 |
|
| 15697 |
* Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/mktime.m4. |
| 15698 |
* m4/mktime.m4: New file. |
| 15699 |
* m4/Makefile.am.in, m4/README: Remove these files. |
| 15700 |
* m4/Makefile.am (EXTRA_DIST): Add mktime.m4; |
| 15701 |
remove README, Makefile.am.in. |
| 15702 |
(Makefile.am): Remove rule; it didn't work in BSD/OS 4.0. |
| 15703 |
* m4/jm-mktime.m4 (jm_FUNC_MKTIME): Invoke AC_FUNC_MKTIME, |
| 15704 |
not AM_FUNC_MKTIME. |
| 15705 |
|
| 15706 |
* src/tar.c: Include signal.h. |
| 15707 |
(SIGCHLD): Define to SIGCLD if SIGCLD is defined but SIGCHLD is not. |
| 15708 |
(main): Ensure SIGCHLD is not ignored. |
| 15709 |
|
| 15710 |
(BACKUP_OPTION, DELETE_OPTION, EXCLUDE_OPTION, GROUP_OPTION, |
| 15711 |
MODE_OPTION, NEWER_MTIME_OPTION, NO_RECURSE_OPTION, NULL_OPTION, |
| 15712 |
OWNER_OPTION, POSIX_OPTION, PRESERVE_OPTION, RECORD_SIZE_OPTION, |
| 15713 |
RSH_COMMAND_OPTION, SUFFIX_OPTION, USE_COMPRESS_PROGRAM_OPTION, |
| 15714 |
VOLNO_FILE_OPTION, OBSOLETE_ABSOLUTE_NAMES, |
| 15715 |
OBSOLETE_BLOCK_COMPRESS, OBSOLETE_BLOCKING_FACTOR, |
| 15716 |
OBSOLETE_BLOCK_NUMBER, OBSOLETE_READ_FULL_RECORDS, OBSOLETE_TOUCH, |
| 15717 |
OBSOLETE_VERSION_CONTROL): Make sure they can't be valid chars, so |
| 15718 |
they don't overlap with char codes. Use an enum instead of a lot |
| 15719 |
of #defines. |
| 15720 |
|
| 15721 |
* src/system.h (ISASCII): Remove. |
| 15722 |
(CTYPE_DOMAIN, ISDIGIT, ISODIGIT, ISPRINT, ISSPACE, S_ISUID, |
| 15723 |
S_ISGID, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, |
| 15724 |
S_IROTH, S_IWOTH, S_IXOTH, MODE_WXUSR, MODE_R, MODE_RW, |
| 15725 |
MODE_RWX, MODE_ALL, SEEK_SET, SEEK_CUR, SEEK_END, CHAR_MAX, |
| 15726 |
LONG_MAX): New macros. |
| 15727 |
|
| 15728 |
* src/incremen.c (ISDIGIT, ISSPACE): Remove; now in system.h. |
| 15729 |
(read_directory_file): Cast ISSPACE arg to unsigned char. |
| 15730 |
* src/misc.c (ISPRINT): Remove; now in system.h. |
| 15731 |
(remove_any_file): Add brackets to pacify gcc -Wall. |
| 15732 |
* src/list.c: Don't include <ctype.h>; system.h already does this. |
| 15733 |
(ISODIGIT, ISSPACE): Remove; now in system.h. |
| 15734 |
(decode_header): No need to AND mode with 07777; MODE_FROM_OCT |
| 15735 |
does this now. |
| 15736 |
(from_oct): Cast ISSPACE arg to unsigned char. |
| 15737 |
|
| 15738 |
* src/create.c (mode_to_oct): Translate modes from internal to |
| 15739 |
external form. |
| 15740 |
* src/list.c (mode_from_oct): Translate modes from external to |
| 15741 |
internal form. Do not complain about unrecognized mode bits. |
| 15742 |
* src/common.h (TSUID, TSGID, TSVTX, TUREAD, TUWRITE, TUEXEC, |
| 15743 |
TGREAD, TGWRITE, TGEXEC, TOREAD, TOWRITE, TOEXEC): Remove undefs. |
| 15744 |
|
| 15745 |
* src/extract.c: (extr_init, make_directories, extract_archive): |
| 15746 |
Do not assume mode bits have traditional Unix values. |
| 15747 |
* src/list.c (decode_mode): Likewise. |
| 15748 |
* src/create.c (start_header, dump_file): Likewise. |
| 15749 |
* src/buffer.c (child_open_for_compress, |
| 15750 |
child_open_for_uncompress, open_archive, (close_archive): Likewise. |
| 15751 |
* src/compare.c (diff_archive): Likewise. |
| 15752 |
|
| 15753 |
* src/extract.c (set_mode): Use %04 not %0.4 format. |
| 15754 |
(extract_sparse_file): Do not use data_block uninitialized. |
| 15755 |
Check for lseek failures. |
| 15756 |
|
| 15757 |
* src/rtapelib.c (rmt_lseek__): |
| 15758 |
Convert lseek whence values to portable integers on the wire. |
| 15759 |
* src/rmt.c (main): Likewise. Check for whence values out of range. |
| 15760 |
|
| 15761 |
* src/create.c (finish_sparse_file): Use lseek whence macros |
| 15762 |
instead of integers. |
| 15763 |
* src/buffer.c (backspace_output): Likewise. |
| 15764 |
* src/compare.c (diff_archive, verify_volume): Likewise. |
| 15765 |
* src/delete.c (move_archive): Likewise. |
| 15766 |
* src/extract.c (extract_sparse_file): Likewise. |
| 15767 |
|
| 15768 |
* src/create.c (dump_file): Do not invoke finish_sparse_file |
| 15769 |
on a negative file descriptor. |
| 15770 |
|
| 15771 |
* src/buffer.c: Add braces to pacify gcc -Wall. |
| 15772 |
|
| 15773 |
* src/compare.c (diff_sparse_files): Report lseek errors. |
| 15774 |
|
| 15775 |
* configure.in (ALL_LINGUAS): Add cs, es, ru. |
| 15776 |
|
| 15777 |
* PORTS, TODO: gnu.ai.mit.edu -> gnu.org |
| 15778 |
|
| 15779 |
* src/arith.c, src/buffer.c (new_volume): Don't put ^G in |
| 15780 |
message to be internationalized; \a doesn't work with msgfmt. |
| 15781 |
|
| 15782 |
* src/tar.c (long_options, main, usage, OPTION_STRING): |
| 15783 |
Remove -E or --ending-file. |
| 15784 |
* src/list.c (read_and): Likewise. |
| 15785 |
* src/common.h (ending_file_option): Likewise. |
| 15786 |
* src/buffer.c (close_archive): Likewise. |
| 15787 |
|
| 15788 |
* tests/after: Don't run two commands together in a pipeline, |
| 15789 |
as some old shells mishandle pipeline exit status. |
| 15790 |
|
| 15791 |
1999-06-28 Paul Eggert <[email protected]> |
| 15792 |
|
| 15793 |
* configure.in (AM_INIT_AUTOMAKE): version 1.12.64015. |
| 15794 |
* NEWS: Describe changes since 1.12. |
| 15795 |
* README: Update bug reporting address; move paxutils ref to NEWS. |
| 15796 |
|
| 15797 |
Handle EINTR correctly. |
| 15798 |
* lib/Makefile.am (libtar_a_SOURCES): Add full-read.c, full-write.c. |
| 15799 |
* lib/full-read.c, lib/full-write.c: New files. |
| 15800 |
* src/buffer.c (child_open_for_compress, child_open_for_uncompress): |
| 15801 |
Prefer full_read to read and full_write to write. |
| 15802 |
* src/compare.c (process_rawdata, diff_sparse_files): Likewise. |
| 15803 |
* src/create.c (deal_with_sparse, finish_sparse_file, dump_file): |
| 15804 |
Likewise. |
| 15805 |
* src/extract.c (extract_sparse_file): Likewise. |
| 15806 |
* src/rmt.c (get_string, main, report_error_message, |
| 15807 |
report_numbered_error): Likewise. |
| 15808 |
* src/rmt.h (rmtread, rmtwrite): Likewise. |
| 15809 |
* src/rtapelib.c (do_command, get_status_string, rmt_read__, |
| 15810 |
rmt_write__, rmt_ioctl__): Likewise. |
| 15811 |
* src/update.c (append_file): Likewise. |
| 15812 |
* src/system.h (full_read, full_write): New decls. |
| 15813 |
|
| 15814 |
* po/POTFILES.in: Add lib/argmatch.c, lib/error.c lib/getopt.c, |
| 15815 |
lib/xmalloc.c, src/arith.c, src/misc.c. |
| 15816 |
|
| 15817 |
* src/system.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): |
| 15818 |
New macros. All uses of STDIN and STDOUT changed. |
| 15819 |
* src/rmt.c (prepare_record_buffer, main): Use STDIN_FILENO |
| 15820 |
instead of 0 and STDOUT_FILENO instead of 1. |
| 15821 |
* src/rtapelib.c (_rmt_rexec): Use STDIN_FILENO and STDOUT_FILENO |
| 15822 |
instead of fileno (stdin) and fileno (stdout) or 0 and 1. |
| 15823 |
|
| 15824 |
* src/rmt.c (private_strerror): Avoid const. Translate results. |
| 15825 |
|
| 15826 |
* tests/Makefile.am (TESTS): Remove incremen.sh; it doesn't work |
| 15827 |
in the presence of NFS clock skew. |
| 15828 |
|
| 15829 |
1999-06-25 Paul Eggert <[email protected]> |
| 15830 |
|
| 15831 |
* configure.in (AM_INIT_AUTOMAKE): version 1.12.64014. |
| 15832 |
|
| 15833 |
* src/buffer.c (write_archive_buffer): New function. |
| 15834 |
(child_open_for_compress, flush_write, flush_read): Use it to write |
| 15835 |
buffers. |
| 15836 |
(open_archive): Report error if fstat of archive fails. |
| 15837 |
Improve efficiency of check for /dev/null. |
| 15838 |
Also, fix some corner cases with remote archives and /dev/null checking. |
| 15839 |
(close_archive): Test for input fifo only if not remote. |
| 15840 |
Truncate output archive only if it's not remote. |
| 15841 |
|
| 15842 |
* src/misc.c (remove_any_file): |
| 15843 |
Don't terminate if you see . or ..; just skip them. |
| 15844 |
|
| 15845 |
1999-06-18 Paul Eggert <[email protected]> |
| 15846 |
|
| 15847 |
* configure.in (AM_INIT_AUTOMAKE): version 1.12.64013. |
| 15848 |
|
| 15849 |
Output sizes using a format that's more compatible with |
| 15850 |
traditional tar (and with GNU Emacs). |
| 15851 |
* src/common.h (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, |
| 15852 |
MODE_TO_OCT, SIZE_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT): |
| 15853 |
Don't subtract 1 from size. |
| 15854 |
* src/create.c (to_oct): Prepend leading zeros, not spaces. |
| 15855 |
Output a trailing NUL unless the value won't fit without it. |
| 15856 |
(finish_header): No need to append NUL to chksum, now that |
| 15857 |
to_oct is doing it. |
| 15858 |
|
| 15859 |
1999-06-16 Paul Eggert <[email protected]> |
| 15860 |
|
| 15861 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64012. |
| 15862 |
|
| 15863 |
* src/Makefile.am (LDADD): Link libtar.a after @INTLLIBS@, since |
| 15864 |
@INTLLIBS@ might invoke rpl_realloc. |
| 15865 |
|
| 15866 |
* src/tar.c (backup_type): Remove decl; backupfile.h now has it. |
| 15867 |
(intconv): Remove; use xstrto* fns instead. |
| 15868 |
("xstrtol.h"): Include. |
| 15869 |
(check_decimal): Remove. |
| 15870 |
(long_options, usage, OPTION_STRING, decode_options): |
| 15871 |
Remove -y, --bzip2, --unbzip2. |
| 15872 |
(decode_options): Use xget_version instead of get_version. |
| 15873 |
Check for overflow with -b and -L and RECORD_SIZE_OPTION. |
| 15874 |
Replace invocations of check_decimal with xstrtoumax. |
| 15875 |
|
| 15876 |
* tests/preset.in (echo_n, echo_c): Remove. |
| 15877 |
|
| 15878 |
* tests/after: Don't rely on $echo_c and $echo_n. |
| 15879 |
|
| 15880 |
* lib/addext.c, lib/dirname.c, lib/lchown.c, lib/lchown.h, |
| 15881 |
lib/malloc.c, lib/mktime.c, lib/realloc.c, lib/strtol.c, lib/strtoul.c, |
| 15882 |
lib/strtoull.c, lib/strtoumax.c, lib/utime.c, lib/xstrtol.c, |
| 15883 |
lib/xstrtol.h, lib/xstrtoul.c, lib/xstrtoumax.c, |
| 15884 |
m4/Makefile.am.in, m4/README, m4/ccstdc.m4, m4/d-ino.m4, |
| 15885 |
m4/gettext.m4, m4/inttypes_h.m4, m4/isc-posix.m4, |
| 15886 |
m4/jm-mktime.m4, m4/largefile.m4, m4/lcmessage.m4, |
| 15887 |
m4/malloc.m4, m4/progtest.m4, m4/realloc.m4, m4/uintmax_t.m4, |
| 15888 |
m4/ulonglong.m4, m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4, |
| 15889 |
m4/xstrtoumax.m4: New files. |
| 15890 |
|
| 15891 |
* configure.in(fp_PROG_ECHO): Remove; no longer needed. |
| 15892 |
(AC_SYS_LARGEFILE): Renamed from AC_LFS. |
| 15893 |
(jm_AC_HEADER_INTTYPES_H): Replaces inline code. |
| 15894 |
(jm_STRUCT_DIRENT_D_INO, jm_AC_TYPE_UINTMAX_T, jm_AC_PREREQ_XSTRTOUMAX): Add. |
| 15895 |
(AC_CHECK_FUNCS): Remove lchown. |
| 15896 |
(AC_REPLACE_FUNCS): Remove basename, dirname. |
| 15897 |
Add lchown, strtol, strtoul. |
| 15898 |
(jm_FUNC_MKTIME): Add. |
| 15899 |
(LIBOBJS): Replace .o with $U.o, so that the .o files in LIBOBJS |
| 15900 |
are also built via the ANSI2KNR-filtering rules. |
| 15901 |
Use a no-op line to work around bug in automake 1.4 with malloc and |
| 15902 |
realloc. |
| 15903 |
(AC_OUTPUT): Add m4/Makefile. |
| 15904 |
|
| 15905 |
* lib/Makefile.am (EXTRA_DIST): |
| 15906 |
Add lchown.c, malloc.c, mktime.c, realloc.c, |
| 15907 |
strtol.c, strtoul.c, strtoull.c, strtoumax.c, utime.c. |
| 15908 |
(noinst_HEADERS): Add lchown.h, modechange.h, xstrtol.h. |
| 15909 |
(libtar_a_SOURCES): Add addext.c, basename.c, xstrtol.c, |
| 15910 |
xstrtoul.c, xstrtoumax.c. Remove getversion.c. |
| 15911 |
($(srcdir)/getdate.c:): Remove `expect conflicts' line. |
| 15912 |
|
| 15913 |
* src/system.h (uintmax_t): Don't declare; configure now does this. |
| 15914 |
|
| 15915 |
* src/common.h (backup_type): New decl. |
| 15916 |
* src/common.h, src/misc.c, src/tar.c: |
| 15917 |
Move include of backupfile.h to common.h. |
| 15918 |
|
| 15919 |
* src/misc.c (maybe_backup_file): |
| 15920 |
Pass backup_type to find_backup_file_name. |
| 15921 |
|
| 15922 |
* src/list.c (print_header): Change sizes of uform and gform from 11 to |
| 15923 |
UINTMAX_STRSIZE_BOUND. |
| 15924 |
|
| 15925 |
* doc/tar.texi: Remove --bzip2. |
| 15926 |
Fix @xref typos reported by latest makeinfo. |
| 15927 |
|
| 15928 |
* Makefile.am (ACLOCAL_AMFLAGS): New macro. |
| 15929 |
(SUBDIRS): Add m4. |
| 15930 |
(M4DIR, ACINCLUDE_INPUTS): New macros. |
| 15931 |
($(srcdir)/acinclude.m4): New rule. |
| 15932 |
|
| 15933 |
* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, |
| 15934 |
HAVE_INTTYPES_H, HAVE_LC_MESSAGES, HAVE_STPCPY): Remve #undefs; |
| 15935 |
now generated automatically by autoconf. |
| 15936 |
|
| 15937 |
1999-05-15 Paul Eggert <[email protected]> |
| 15938 |
|
| 15939 |
* doc/tar.texi: Remove -y. |
| 15940 |
|
| 15941 |
1999-04-09 Paul Eggert <[email protected]> |
| 15942 |
|
| 15943 |
* src/system.h (INT_STRLEN_BOUND): Fix off-by-factor-of-10 typo |
| 15944 |
(we were allocating too much storage). |
| 15945 |
(uintmax_t): Don't declare; configure now does this. |
| 15946 |
|
| 15947 |
* ABOUT-NLS: Update to gettext 0.10.35 edition. |
| 15948 |
|
| 15949 |
1999-03-22 Paul Eggert <[email protected]> |
| 15950 |
|
| 15951 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64010 |
| 15952 |
|
| 15953 |
* acinclude.m4 (AC_LFS_FLAGS): |
| 15954 |
Don't use -mabi=n32 with GCC on IRIX 6.2; it's the default. |
| 15955 |
(AC_LFS): -n32, -o32, and -n64 are CPPFLAGS, not CFLAGS. |
| 15956 |
(jm_FUNC_MALLOC, jm_FUNC_REALLOC): New macros. |
| 15957 |
|
| 15958 |
* configure.in (jm_FUNC_MALLOC, jm_FUNC_REALLOC): |
| 15959 |
New macros; needed for latest GNU xmalloc.c. |
| 15960 |
|
| 15961 |
* Makefile.am (noinst_HEADERS): Add quotearg.h, xalloc.h. |
| 15962 |
(libtar_a_SOURCES): Add quotearg.c. |
| 15963 |
* list.c: Include <quotearg.h>. |
| 15964 |
(from_oct): Add forward decl. |
| 15965 |
(read_header): Return HEADER_FAILURE if we can't parse the checksum. |
| 15966 |
(from_oct): Report an error only if TYPE is nonzero. |
| 15967 |
Quote any funny characters in bad header. |
| 15968 |
|
| 15969 |
1999-03-20 Paul Eggert <[email protected]> |
| 15970 |
|
| 15971 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64009 |
| 15972 |
|
| 15973 |
* acinclude.m4 (AC_LFS_FLAGS): Add support for IRIX 6.2 and later. |
| 15974 |
(AC_LFS_SPACE_APPEND): Assume $2 is quoted properly; all callers |
| 15975 |
changed. |
| 15976 |
(AC_LFS): Simplify AIX revision number test. |
| 15977 |
|
| 15978 |
1999-03-17 Paul Eggert <[email protected]> |
| 15979 |
|
| 15980 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64008 |
| 15981 |
|
| 15982 |
* configure.in (AC_VALIDATE_CACHED_SYSTEM_TUPLE): |
| 15983 |
Remove; it doesn't work that well |
| 15984 |
with AC_CANONICAL_HOST. |
| 15985 |
(fp_WITH_INCLUDED_MALLOC): Remove; we'll just use the system malloc. |
| 15986 |
|
| 15987 |
* Makefile.am (EXTRA_DIST): Remove AC-PATCHES, AM-PATCHES, BI-PATCHES. |
| 15988 |
|
| 15989 |
* Makefile.am (EXTRA_DIST): Remove gmalloc.c. |
| 15990 |
|
| 15991 |
* acinclude.m4 (fp_WITH_INCLUDED_MALLOC): Remove. |
| 15992 |
|
| 15993 |
* tar.texi: Fix bug-report addr. |
| 15994 |
|
| 15995 |
* README: Remove --with-included-malloc. |
| 15996 |
Upgrade version numbers of build software. |
| 15997 |
|
| 15998 |
1999-03-07 Paul Eggert <[email protected]> |
| 15999 |
|
| 16000 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64007. |
| 16001 |
|
| 16002 |
* acinclude.m4 (AM_WITH_NLS): Port to Solaris 2.5.1, |
| 16003 |
where bindtextdomain and gettext require -lintl. |
| 16004 |
(AC_LFS_FLAGS): Simplify so that it only gets the flags; |
| 16005 |
`no' means it failed. |
| 16006 |
(AC_LFS_SPACE_APPEND, AC_LFS_MACRO_VALUE): New macros. |
| 16007 |
(AC_LFS): Use them. Set _FILE_OFFSET_BITS, _LARGEFILE_SOURCE, and |
| 16008 |
_LARGE_FILES from LFS_CFLAGS, so that in the normal case we don't need |
| 16009 |
to add anything to the command line (it's all in config.h). |
| 16010 |
Put any extra -D and -I options into CPPFLAGS, the rest into CFLAGS. |
| 16011 |
|
| 16012 |
1999-03-01 Paul Eggert <[email protected]> |
| 16013 |
|
| 16014 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64006. |
| 16015 |
|
| 16016 |
* acinclude.m4 (AC_LFS_FLAGS): Port to AIX 4.2. |
| 16017 |
|
| 16018 |
* src/list.c: (gid_from_oct, major_from_oct, minor_from_oct, |
| 16019 |
mode_from_oct, off_from_oct, size_from_oct, time_from_oct, |
| 16020 |
uid_from_oct, uintmax_from_oct): Use TYPE_MAXIMUM instead of macros |
| 16021 |
like OFF_MAX, which are not reliable |
| 16022 |
(e.g. OFF_MAX in AIX 4.2 is incorrect). |
| 16023 |
* src/system.h (GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX, OFF_MAX, |
| 16024 |
SIZE_MAX, TIME_MAX,UID_MAX, UINTMAX_MAX): Remove; no longer used. |
| 16025 |
|
| 16026 |
* src/incremen.c (get_directory_contents): |
| 16027 |
Don't use statx if _LARGE_FILES; it doesn't work under AIX 4.2. |
| 16028 |
Have statx depend on STX_HIDDEN, not AIX. |
| 16029 |
|
| 16030 |
* src/create.c (to_oct): |
| 16031 |
New parameter substitute, giving a substitute value to use |
| 16032 |
when the original value is out of range. Do not append a space to the |
| 16033 |
output; modern tars don't. When a value is out of range, specify the |
| 16034 |
maximum value, not the number of bits. |
| 16035 |
(GID_NOBODY, UID_NOBODY): New macros. |
| 16036 |
(gid_to_oct, uid_to_oct): Use them as substitutes. |
| 16037 |
(finish_header): Do not assume that UINTMAX_TO_OCT appends a space. |
| 16038 |
(dump_file): Check whether the file changed as we read it. |
| 16039 |
|
| 16040 |
* src/rmt.c (main): Remove suspicious AIX/386 code. |
| 16041 |
|
| 16042 |
1999-02-19 Paul Eggert <[email protected]> |
| 16043 |
|
| 16044 |
* intl/localealias.c (read_alias_file): Don't assume that memcpy |
| 16045 |
returns a type compatible with char *; it doesn't on SunOS |
| 16046 |
4.1.4 with Sun cc, since <string.h> doesn't declare memcpy. |
| 16047 |
|
| 16048 |
* NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64005. |
| 16049 |
|
| 16050 |
* src/tar.c (long_options, usage): Prefer --unbzip2 to --bunzip2. |
| 16051 |
* doc/tar.texi: Add --bzip2, --unbzip2 options. |
| 16052 |
|
| 16053 |
* configure.in (AC_CANONICAL_HOST, AC_VALIDATE_CACHED_SYSTEM_TUPLE): |
| 16054 |
Add. |
| 16055 |
(AC_LINK_FILES): Omit; AM_GNU_GETTEXT now does this. |
| 16056 |
(AC_OUTPUT): Omit munging of po/Makefile; AM_GNU_GETTEXT now does this. |
| 16057 |
* acinclude.m4 (AM_WITH_NLS): |
| 16058 |
Update to latest gettext version (serial 5). |
| 16059 |
(AC_LFS_FLAGS): New macro |
| 16060 |
(AC_LFS): Use it. Append to CFLAGS, LDFLAGS, LDLIBS instead of |
| 16061 |
working only with unset variables. Append to CFLAGS, not CPPFLAGS. |
| 16062 |
Work properly in cross-compilation scenario, by checking for getconf |
| 16063 |
with AC_CHECK_TOOL and by ditching uname in favor of |
| 16064 |
AC_CANONICAL_HOST and $host_os. Add --disable-lfs option. |
| 16065 |
|
| 16066 |
* lib/getdate.y: Update to fileutils 4.0 getdate.y, with one patch: |
| 16067 |
replace FORCE_ALLOCA_H with HAVE_ALLOCA_H. |
| 16068 |
* lib/Makefile.am (AUTOMAKE_OPTIONS): Append ../src/ansi2knr, |
| 16069 |
since getdate.y now uses ANSI code. |
| 16070 |
|
| 16071 |
* config.guess, config.sub: New files; taken from automake 1.4. |
| 16072 |
|
| 16073 |
* intl/Makefile.in, intl/VERSION, intl/bindtextdom.c, |
| 16074 |
intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c, |
| 16075 |
intl/explodename.c, intl/finddomain.c, intl/gettext.c, |
| 16076 |
intl/gettext.h, intl/gettextP.h, intl/hash-string.h, |
| 16077 |
intl/l10nflist.c, intl/libgettext.h, intl/loadinfo.h, |
| 16078 |
intl/loadmsgcat.c, intl/localealias.c, intl/textdomain.c: |
| 16079 |
Update to GNU gettext 0.10.35, with patches as per GCC snapshot 990109. |
| 16080 |
|
| 16081 |
1999-02-01 Paul Eggert <[email protected]> |
| 16082 |
|
| 16083 |
* src/tar.c: Update copyright. |
| 16084 |
|
| 16085 |
* NEWS: 1.12.64004 |
| 16086 |
|
| 16087 |
1999-02-01 Paul Eggert <[email protected]> |
| 16088 |
|
| 16089 |
* NEWS, configure.in: Version 1.12.64004 |
| 16090 |
|
| 16091 |
* configure.in (AC_LFS): Use this macro, instead of open-coding it. |
| 16092 |
|
| 16093 |
* acinclude.m4 (AC_LFS, AM_PROG_CC_STDC): New macros. |
| 16094 |
|
| 16095 |
* src/extract.c (extract_archive): Fix bug when extracting sparse |
| 16096 |
files: they were trashing the tar file header. |
| 16097 |
|
| 16098 |
* src/tar.c: (long_options, usage, OPTION_STRING, decode_options): |
| 16099 |
Add -y or --bzip2 or --bunzip2 option. |
| 16100 |
|
| 16101 |
1999-01-30 Paul Eggert <[email protected]> |
| 16102 |
|
| 16103 |
* src/names.c (cached_no_such_uname, cached_no_such_gname, |
| 16104 |
cached_no_such_uid, cached_no_such_gid): New vars. |
| 16105 |
(uid_to_uname, gid_to_gname, uname_to_uid, gname_to_gid): |
| 16106 |
Cache failures, too. |
| 16107 |
|
| 16108 |
* src/tar.c (decode_options): |
| 16109 |
Don't pass names longer than UNAME_FIELD_SIZE to |
| 16110 |
uname_to_uid, as it messes up the cache. Similarly for gname_to_uid. |
| 16111 |
|
| 16112 |
1999-01-27 Paul Eggert <[email protected]> |
| 16113 |
|
| 16114 |
* NEWS, configure.in: Version 1.12.64003 |
| 16115 |
|
| 16116 |
* src/buffer.c (backspace_output, close_archive): Cast |
| 16117 |
rmtlseek position arg to off_t, for benefit of K&R compilers |
| 16118 |
with long long. |
| 16119 |
* src/compare.c (verify_volume): Likewise. |
| 16120 |
|
| 16121 |
* NEWS, configure.in: Version 1.12.64002 |
| 16122 |
|
| 16123 |
* src/create.c (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, |
| 16124 |
off_to_oct, size_to_oct, time_to_oct, uid_to_oct): |
| 16125 |
Cast arg to uintmax_t for benefit of pre-ANSI compilers with long long. |
| 16126 |
* src/list.c: (gid_from_oct, major_from_oct, minor_from_oct, |
| 16127 |
mode_from_oct, off_from_oct, size_from_oct, time_from_oct, |
| 16128 |
uid_from_oct): Likewise. |
| 16129 |
|
| 16130 |
1999-01-25 Paul Eggert <[email protected]> |
| 16131 |
|
| 16132 |
* incremen.sh: Fix timing bug in regression test. |
| 16133 |
|
| 16134 |
1999-01-22 Paul Eggert <[email protected]> |
| 16135 |
|
| 16136 |
* NEWS, configure.in: Update version |
| 16137 |
|
| 16138 |
* Makefile.am (localedir): Change to $(datadir)/locale. |
| 16139 |
(DEFS): New macro, defining LOCALEDIR. |
| 16140 |
(tar.o, tar._o, rmt.o, rmt._o): Remove. |
| 16141 |
(INCLUDES): Add -I.. |
| 16142 |
|
| 16143 |
* Makefile.am (localedir): Change to $(datadir)/locale. |
| 16144 |
|
| 16145 |
1999-01-21 Paul Eggert <[email protected]> |
| 16146 |
|
| 16147 |
* NEWS, README, configure.in: Unofficial version 1.12.64001. |
| 16148 |
|
| 16149 |
* tests/Makefile.am (localedir): Change to $(datadir)/locale. |
| 16150 |
* src/Makefile.am (localedir): Likewise. |
| 16151 |
(DEFS): New macro, defining LOCALEDIR. |
| 16152 |
(tar.o, tar._o, rmt.o, rmt._o): Remove. |
| 16153 |
(INCLUDES): Add `-I..'. |
| 16154 |
|
| 16155 |
* tests/incremen.sh: Fix timing bug. |
| 16156 |
|
| 16157 |
1999-01-20 Paul Eggert <[email protected]> |
| 16158 |
|
| 16159 |
* NEWS, README, configure.in: Unofficial version 1.12.64000. |
| 16160 |
`lfs.7' changed to `64000' in version number |
| 16161 |
to conform to gnits standards. |
| 16162 |
|
| 16163 |
* COPYING, INSTALL, doc/texinfo.tex, install-sh, missing, |
| 16164 |
mkinstalldirs, ansi2knr.c: Update to latest public versions. |
| 16165 |
|
| 16166 |
Rebuild with automake 1.4 and autoconf 2.13, to work around some |
| 16167 |
porting problems. |
| 16168 |
|
| 16169 |
1998-12-07 Paul Eggert <[email protected]> |
| 16170 |
|
| 16171 |
* NEWS, README, configure.in: Unofficial version 1.12.lfs.6. |
| 16172 |
|
| 16173 |
* src/list.c (read_header): |
| 16174 |
Accept file names as specified by POSIX.1-1996 section 10.1.1. |
| 16175 |
|
| 16176 |
1998-11-30 Paul Eggert <[email protected]> |
| 16177 |
|
| 16178 |
* configure.in: Quote the output of uname. |
| 16179 |
|
| 16180 |
* src/extract.c (set_stat): chmod after chown even when not root; |
| 16181 |
if we are using --same-owner this is needed e.g. on Solaris 2.5.1. |
| 16182 |
|
| 16183 |
1998-11-15 Paul Eggert <[email protected]> |
| 16184 |
|
| 16185 |
* NEWS, README, configure.in: Unofficial version 1.12.lfs.5. |
| 16186 |
|
| 16187 |
* configure.in (ac_test_CPPFLAGS, ac_test_LDFLAGS, ac_test_LIBS, |
| 16188 |
ac_getconfs, ac_result): Special case for HP-UX 10.20 or later. |
| 16189 |
|
| 16190 |
1998-10-28 Paul Eggert <[email protected]> |
| 16191 |
|
| 16192 |
* NEWS, README, configure.in: Unofficial version 1.12.lfs.4. |
| 16193 |
|
| 16194 |
* src/system.h (voidstar): Use void * if __STDC__ is defined, |
| 16195 |
not merely nonzero. |
| 16196 |
|
| 16197 |
* src/rtapelib.c: Don't use rexec code unless compiled with WITH_REXEC. |
| 16198 |
On many installations, rexec is disabled. |
| 16199 |
|
| 16200 |
1998-08-07 Paul Eggert <[email protected]> |
| 16201 |
|
| 16202 |
* NEWS, README, configure.in: Unofficial version 1.12.lfs.3. |
| 16203 |
|
| 16204 |
* src/names.c (uid_to_uname, gid_to_gname): Don't used cached name |
| 16205 |
for nameless users and groups. |
| 16206 |
|
| 16207 |
1998-02-17 Paul Eggert <[email protected]> |
| 16208 |
|
| 16209 |
* NEWS, README, configure.in: Unofficial version 1.12.lfs.2. |
| 16210 |
* NEWS, README: Add explanation of why this isn't an official version. |
| 16211 |
|
| 16212 |
1998-02-02 Paul Eggert <[email protected]> |
| 16213 |
|
| 16214 |
* NEWS, README, configure.in: Unofficial version 1.12.lfs.1. |
| 16215 |
This is an unofficial version. |
| 16216 |
|
| 16217 |
1997-12-17 Paul Eggert <[email protected]> |
| 16218 |
|
| 16219 |
* src/incremen.c (ST_DEV_MSB): New macro. |
| 16220 |
(NFS_FILE_STAT): Use most significant bit of st_dev, |
| 16221 |
even if it's unsigned. |
| 16222 |
|
| 16223 |
1997-12-08 Paul Eggert <[email protected]> |
| 16224 |
|
| 16225 |
* src/system.h (ST_NBLOCKS): Fix typo in definition. |
| 16226 |
|
| 16227 |
1997-11-19 Paul Eggert <[email protected]> |
| 16228 |
|
| 16229 |
* configure.in (HAVE_INTTYPES_H): |
| 16230 |
Don't ignore cache variable if it's already set. |
| 16231 |
|
| 16232 |
1997-11-10 Paul Eggert <[email protected]> |
| 16233 |
|
| 16234 |
* src/rmt.c (main): Don't assume mt_count is of type daddr_t. |
| 16235 |
* src/delete.c (records_read): Now off_t. |
| 16236 |
(move_archive): Don't assume mt_count is of type daddr_t. |
| 16237 |
|
| 16238 |
1997-10-30 Paul Eggert <[email protected]> |
| 16239 |
|
| 16240 |
* configure.in (CPPFLAGS, LDFLAGS, LIBS): |
| 16241 |
Set to appropriate values if large file support |
| 16242 |
needs explicit enabling. |
| 16243 |
(HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING, daddr_t, major_t, minor_t, |
| 16244 |
ssize_t): |
| 16245 |
New macros to configure. |
| 16246 |
(AC_TYPE_MODE_T, AC_TYPE_PID_T, AC_TYPE_OFF_T): Add. |
| 16247 |
|
| 16248 |
* acconfig.h (daddr_t, HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING, |
| 16249 |
major_t, minor_t, ssize_t): New macros. |
| 16250 |
|
| 16251 |
* src/arith.h (TARLONG_FORMAT): |
| 16252 |
Fix typo: %uld -> %lu. Use unsigned when long long |
| 16253 |
(%lld -> %llu). |
| 16254 |
(add_to_tarlong_helper, mult_tarlong_helper): 2nd arg is now unsigned long. |
| 16255 |
(add_to_tarlong, mult_tarlong): Cast 2nd arg to unsigned long. |
| 16256 |
|
| 16257 |
* src/arith.c (add_to_tarlong_helper, mult_tarlong_helper): |
| 16258 |
2nd arg is now unsigned long. |
| 16259 |
|
| 16260 |
* src/rmt.c (allocated_size): Now size_t, and now initialized to 0. |
| 16261 |
(prepare_record_buffer): Arg is now size_t. |
| 16262 |
Remove now-useless casts. |
| 16263 |
|
| 16264 |
(main): Use `long' for status, so that it can store ssize_t. |
| 16265 |
Use daddr_t, mode_t, size_t, off_t when appropriate. |
| 16266 |
Convert daddr_t and off_t values ourselves, since they might be longer |
| 16267 |
than long. Convert other types using `long' primitives. |
| 16268 |
When processing MTIOCTOP, do not try to pass resulting |
| 16269 |
count back, since it won't work (it could be too large) and it's |
| 16270 |
not expected anyway. |
| 16271 |
|
| 16272 |
* src/update.c: |
| 16273 |
(append_file) Use off_t, size_t, ssize_t when appropriate. Remove |
| 16274 |
now-useless casts. Use unsigned long to print *_t types, except use |
| 16275 |
STRINGIFY_BIGINT for off_t. |
| 16276 |
(update_archive): Cast -1 to dev_t when necessary. |
| 16277 |
|
| 16278 |
* src/tar.c (check_decimal): |
| 16279 |
Now returns 1 if successful, 0 otherwise, and returns |
| 16280 |
uintmax_t value into new arg. Check for arithmetic overflow. |
| 16281 |
(decode_options): Avoid overflow if record_size fits in size_t but not int. |
| 16282 |
Check for overflow on user or group ids. |
| 16283 |
|
| 16284 |
* src/compare.c (diff_init, process_rawdata, read_and_process, |
| 16285 |
diff_sparse_files, diff_archive): |
| 16286 |
Use off_t, pid_t, size_t, ssize_t when appropriate. |
| 16287 |
Remove now-useless casts. Use unsigned long to print *_t types, |
| 16288 |
except use STRINGIFY_BIGINT for off_t. |
| 16289 |
|
| 16290 |
(process_noop, process_rawdata, process_dumpdir, read_and_process): |
| 16291 |
Size arg is now size_t. |
| 16292 |
|
| 16293 |
(diff_sparse_files): Arg is now off_t. Check for size_t overflow |
| 16294 |
when allocating buffer. |
| 16295 |
|
| 16296 |
* src/rtapelib.c: |
| 16297 |
(do_command, rmt_open__, rmt_read__, rmt_lseek__, rmt_ioctl__): |
| 16298 |
Use pid_t, size_t, ssize_t when appropriate. Remove now-useless casts. |
| 16299 |
Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for |
| 16300 |
off_t. |
| 16301 |
|
| 16302 |
(get_status_string, get_status_off): New function. |
| 16303 |
(get_status): Now returns long, so that it can store ssize_t. |
| 16304 |
Invoke get_status_string to do the real work. |
| 16305 |
(rmt_read__, rmt_write__): Now returns ssize_t. Size arg is now size_t. |
| 16306 |
(rmt_lseek__): Now returns off_t, using new get_status_off function. |
| 16307 |
(rmt_ioctl__): Convert mt_count by hand, |
| 16308 |
since it might be longer than long. |
| 16309 |
|
| 16310 |
* src/mangle.c (extract_mangle): |
| 16311 |
Check for overflow when converting off_t to size_t. |
| 16312 |
Use off_t, size_t when appropriate. Remove now-useless casts. |
| 16313 |
|
| 16314 |
* src/system.h (mode_t): Remove; now done by autoconf. |
| 16315 |
(ST_NBLOCKS): Do not overflow if st_size is near maximum. |
| 16316 |
Return number of ST_NBLOCKSIZE-byte blocks, |
| 16317 |
not number of 512-byte blocks; |
| 16318 |
this also helps to avoid overflow. |
| 16319 |
(st_blocks): Declare if needed. |
| 16320 |
(ST_NBLOCKSIZE): New macro. |
| 16321 |
(<limits.h>, <inttypes.h>): Include if available. |
| 16322 |
(CHAR_BIT): New macro. |
| 16323 |
(uintmax_t): New typedef. |
| 16324 |
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND, |
| 16325 |
UINTMAX_STRSIZE_BOUND, GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX, |
| 16326 |
OFF_MAX, SIZE_MAX, TIME_MAX, UID_MAX, UINTMAX_MAX): New macros. |
| 16327 |
|
| 16328 |
* src/names.c (name_init): |
| 16329 |
Fix typo in error message: FILE* was passed, but char* |
| 16330 |
was wanted. |
| 16331 |
|
| 16332 |
(read_name_from_file, name_gather, addname, name_match, name_scan, |
| 16333 |
add_exclude): Use size_t when appropriate. Remove now-useless casts. |
| 16334 |
|
| 16335 |
(exclude_pool_size, allocated_exclude_pool_size): Now size_t. |
| 16336 |
|
| 16337 |
* src/extract.c (newdir_umask, current_umask): Now mode_t. |
| 16338 |
(extract_sparse_file): Args now use off_t. |
| 16339 |
|
| 16340 |
(set_mode, set_stat, make_directories, extract_sparse_file, |
| 16341 |
extract_archive): Use off_t, size_t, ssize_t when appropriate. Remove |
| 16342 |
now-useless casts. Use unsigned long to print *_t types, except use |
| 16343 |
STRINGIFY_BIGINT for off_t. |
| 16344 |
|
| 16345 |
* src/misc.c (quote_copy_string): |
| 16346 |
Use size_t when appropriate. Remove now-useless casts. |
| 16347 |
|
| 16348 |
* src/list.c (read_and, list_archive, read_header, decode_mode, |
| 16349 |
print_header, print_for_mkdir): |
| 16350 |
Use mode_t, off_t, size_t when appropriate. Remove |
| 16351 |
now-useless casts. Use unsigned long to print *_t types, except use |
| 16352 |
STRINGIFY_BIGINT for off_t. |
| 16353 |
|
| 16354 |
(read_header): Check for overflow when converting header size. |
| 16355 |
|
| 16356 |
(from_oct): Now static. Now returns uintmax_t. `where' arg is now |
| 16357 |
const char *. Size arg is now size_t. Now takes new type and maxval |
| 16358 |
args. Compute result using uintmax_t, not long. Report error if |
| 16359 |
field does not contain octal number in range. |
| 16360 |
(gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct, |
| 16361 |
off_from_oct, size_from_oct, time_from_oct, uid_from_oct, |
| 16362 |
uintmax_from_oct): New functions. |
| 16363 |
|
| 16364 |
(stringify_uintmax_t_backwards): New function. |
| 16365 |
|
| 16366 |
(decode_mode, print_for_mkdir): Mode arg is now mode_t. |
| 16367 |
(skip_file): Offset arg is now off_t. |
| 16368 |
|
| 16369 |
* src/buffer.c (record_start_block, save_totsize, save_sizeleft, |
| 16370 |
real_s_totsize, real_s_sizeleft, current_block_ordinal): |
| 16371 |
Now off_t. |
| 16372 |
(write_error): Arg is now ssize_t. |
| 16373 |
(child_pid): Now pid_t. |
| 16374 |
(available_space_after): Now size_t. |
| 16375 |
|
| 16376 |
(child_open_for_compress, child_open_for_uncompress, flush_write, |
| 16377 |
open_archive, flush_write, write_error, flush_read, close_archive): |
| 16378 |
Use pid_t, ssize_t, size_t when appropriate. Remove now-useless |
| 16379 |
casts. Use unsigned long to print *_t types, except use |
| 16380 |
STRINGIFY_BIGINT for off_t. |
| 16381 |
|
| 16382 |
* src/delete.c (records_read): Now daddr_t. |
| 16383 |
(move_archive): Arg is now daddr_t. Check for overflow when |
| 16384 |
computing offset. |
| 16385 |
(move_archive, delete_archive_members): Use daddr_t, off_t when |
| 16386 |
appropriate. Remove now-useless casts. |
| 16387 |
|
| 16388 |
* src/rmt.h (rmt_read__, rmt_write__): Now returns ssize_t. |
| 16389 |
(rmt_lseek): Now returns off_t. |
| 16390 |
|
| 16391 |
* src/create.c (to_oct): |
| 16392 |
Now static. Value arg is now uintmax_t. Accept new args |
| 16393 |
giving name of type of octal field, for error messages. Report an |
| 16394 |
error if the value is too large to fit in the field. |
| 16395 |
(gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct, |
| 16396 |
size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct): New functions. |
| 16397 |
|
| 16398 |
(write_eot, write_long, finish_header, deal_with_sparse, |
| 16399 |
finish_sparse_file, dump_file): Use dev_t, off_t, ssize_t, size_t when |
| 16400 |
appropriate. Remove now-useless casts. Use unsigned long to print |
| 16401 |
*_t types, except use STRINGIFY_BIGINT for off_t. |
| 16402 |
|
| 16403 |
(find_new_file_size): 1st arg is now off_t*. |
| 16404 |
(finish_sparse_file): Args now use off_t, not long. |
| 16405 |
Check for lseek error. |
| 16406 |
(create_archive, dump_file): Cast -1 to dev_t when necessary. |
| 16407 |
(dump_file): Device arg is now dev_t. |
| 16408 |
Avoid overflow when testing whether file has holes |
| 16409 |
by using the new ST_NBLOCKSIZE macro. |
| 16410 |
|
| 16411 |
* src/incremen.c (struct accumulator, add_to_accumulator, |
| 16412 |
get_directory_contents, add_hierarchy_to_namelist, gnu_restore): |
| 16413 |
Use size_t for sizes. |
| 16414 |
(struct directory, get_directory_contents, add_hierarchy_to_namelist): |
| 16415 |
Use dev_t, ino_t for devices and inodes. |
| 16416 |
(gnu_restore): Use off_t for file offsets. |
| 16417 |
(struct directory): Use char for flags. Add new flag `nfs'. |
| 16418 |
(nfs): New constant |
| 16419 |
(NFS_FILE_STAT): New macro. |
| 16420 |
(note_directory): Accept struct stat * instead of |
| 16421 |
device and inode number. All callers changed. |
| 16422 |
(note_directory, get_directory_contents): |
| 16423 |
Use NFS_FILE_STAT to determine whether directory is an NFS directory. |
| 16424 |
(write_dir_file): Cast time_t to unsigned long before printing as %lu. |
| 16425 |
|
| 16426 |
* src/common.h (record_size, struct name, struct sp_array, |
| 16427 |
available_space_after): |
| 16428 |
Use size_t for sizes. |
| 16429 |
(save_sizeleft, save_totsize, current_block_ordinal, skip_file): |
| 16430 |
Use off_t for file offsets. |
| 16431 |
(struct name): dir_contents is now const char *, not char *. |
| 16432 |
(dump_file, get_directory_contents): Use dev_t for devices. |
| 16433 |
(to_oct): Remove decl. |
| 16434 |
(GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, SIZE_TO_OCT, |
| 16435 |
UID_TO_OCT, UINTMAX_TO_OCT, OFF_TO_OCT, TIME_TO_OCT, STRINGIFY_BIGINT, |
| 16436 |
GID_FROM_OCT, MAJOR_FROM_OCT, MINOR_FROM_OCT, MODE_FROM_OCT, |
| 16437 |
OFF_FROM_OCT, SIZE_FROM_OCT, TIME_FROM_OCT, UID_FROM_OCT, |
| 16438 |
UINTMAX_FROM_OCT): New macros. |
| 16439 |
(gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct, |
| 16440 |
size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct, |
| 16441 |
stringify_uintmax_t_backwards, gid_from_oct, major_from_oct, |
| 16442 |
minor_from_oct, mode_from_oct, off_from_oct, size_from_oct, |
| 16443 |
time_from_oct, uid_from_oct, uintmax_from_oct): New decls. |
| 16444 |
(print_for_mkdir): 2nd arg is now mode_t. |
| 16445 |
|
| 16446 |
----- |
| 16447 |
|
| 16448 |
See ChangeLog.1 for earlier changes. |
| 16449 |
|
| 16450 |
----- |
| 16451 |
|
| 16452 |
Local Variables: |
| 16453 |
mode: change-log |
| 16454 |
version-control: never |
| 16455 |
buffer-read-only: t |
| 16456 |
End: |