Beef up the "cannot archive this" error message with the
actual mode that failed, to help track down a bug.
This commit is contained in:
parent
e66a84ac14
commit
af062c24e6
@ -351,7 +351,8 @@ archive_write_pax_header(struct archive *a,
|
||||
return (ARCHIVE_WARN);
|
||||
default:
|
||||
archive_set_error(a, ARCHIVE_ERRNO_FILE_FORMAT,
|
||||
"tar format cannot archive this");
|
||||
"tar format cannot archive this (mode=0%lo)",
|
||||
(unsigned long)st_original->st_mode);
|
||||
return (ARCHIVE_WARN);
|
||||
}
|
||||
}
|
||||
|
@ -332,7 +332,8 @@ __archive_write_format_header_ustar(struct archive *a, char buff[512],
|
||||
break;
|
||||
default:
|
||||
archive_set_error(a, ARCHIVE_ERRNO_FILE_FORMAT,
|
||||
"tar format cannot archive this");
|
||||
"tar format cannot archive this (mode=0%lo)",
|
||||
(unsigned long)st->st_mode);
|
||||
ret = ARCHIVE_WARN;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user