fs: fix wrong mode on files

This commit is contained in:
Matheus
2022-09-24 00:04:30 -03:00
parent 58453f4c60
commit 9c6d1157d7
3 changed files with 14 additions and 10 deletions
+6 -6
View File
@@ -87,12 +87,12 @@ static volatile void buildentry(tar_entry* entry, void* addr){
}
entry->mode = convert(block->mode, 8);
entry->uid = convert(block->uid, 8);
entry->gid = convert(block->gid, 8);
entry->mode = convert(block->mode, 7);
entry->uid = convert(block->uid, 7);
entry->gid = convert(block->gid, 7);
entry->size = convert(block->size, 11);
entry->modtime = convert(block->modtime, 11);
entry->checksum = convert(block->checksum, 8);
entry->checksum = convert(block->checksum, 7);
entry->type = convert(block->type, 1);
if(block->link[99]){
@@ -104,8 +104,8 @@ static volatile void buildentry(tar_entry* entry, void* addr){
memcpy(entry->indicator, block->indicator, 6);
memcpy(entry->version, block->version, 2);
entry->devmajor = convert(block->devmajor, 8);
entry->devminor = convert(block->devminor, 8);
entry->devmajor = convert(block->devmajor, 7);
entry->devminor = convert(block->devminor, 7);