summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7f2e3cf)
NAME_FIELD_SIZE-1 characters in a file name for V7 format
archives.
xheader_store ("path", st, NULL);
break;
xheader_store ("path", st, NULL);
break;
+ case V7_FORMAT:
+ if (strlen (st->file_name) > NAME_FIELD_SIZE-1)
+ {
+ WARN ((0, 0, _("%s: file name is too long (max %d); not dumped"),
+ quotearg_colon (st->file_name),
+ NAME_FIELD_SIZE - 1));
+ return NULL;
+ }
+ break;
+
case USTAR_FORMAT:
case STAR_FORMAT:
return write_ustar_long_name (st->file_name);
case USTAR_FORMAT:
case STAR_FORMAT:
return write_ustar_long_name (st->file_name);