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:
Tim Kientzle 2004-08-07 02:24:20 +00:00
parent e66a84ac14
commit af062c24e6
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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;
}
}