Parse SCHILY.dev and SCHILY.ino fields. These are ignored when extracting

files, but used during archive creation.  This change unbreaks
# tar -cf rcp.tar /bin/rcp
# tar -cf rcp-copy.tar @rcp.tar
# cmp rcp.tar rcp-copy.tar
This commit is contained in:
cperciva 2007-04-03 23:53:55 +00:00
parent 836059f8b9
commit 65266e0a56

View File

@ -1295,6 +1295,10 @@ pax_attribute(struct archive_entry *entry, struct stat *st,
tar_atol10(value, wcslen(value)));
else if (wcscmp(key, L"SCHILY.fflags")==0)
archive_entry_copy_fflags_text_w(entry, value);
else if (wcscmp(key, L"SCHILY.dev")==0)
st->st_dev = tar_atol10(value, wcslen(value));
else if (wcscmp(key, L"SCHILY.ino")==0)
st->st_ino = tar_atol10(value, wcslen(value));
else if (wcscmp(key, L"SCHILY.nlink")==0)
st->st_nlink = tar_atol10(value, wcslen(value));
break;