PR/55962: Andreas Gustafsson: Some tar(1) error messages lack file name and
newline
This commit is contained in:
parent
4fdf57e855
commit
68c9d18d03
|
@ -971,16 +971,15 @@ write_entry(struct bsdtar *bsdtar, struct archive *a,
|
|||
|
||||
e = archive_write_header(a, entry);
|
||||
if (e != ARCHIVE_OK) {
|
||||
if (bsdtar->verbose > 1) {
|
||||
if (bsdtar->verbose > 0) {
|
||||
safe_fprintf(stderr, "a ");
|
||||
list_item_verbose(bsdtar, stderr, entry);
|
||||
lafe_warnc(0, ": %s", archive_error_string(a));
|
||||
} else if (bsdtar->verbose > 0) {
|
||||
} else {
|
||||
lafe_warnc(0, "%s: %s",
|
||||
archive_entry_pathname(entry),
|
||||
archive_error_string(a));
|
||||
} else
|
||||
fprintf(stderr, ": %s", archive_error_string(a));
|
||||
}
|
||||
}
|
||||
|
||||
if (e == ARCHIVE_FATAL)
|
||||
|
|
Loading…
Reference in New Issue