Changes in uspace/app/untar/main.c [a6fc88a:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/untar/main.c
ra6fc88a rb7fd2a0 44 44 } 45 45 46 static int skip_blocks(FILE *tarfile, size_t valid_data_size)46 static errno_t skip_blocks(FILE *tarfile, size_t valid_data_size) 47 47 { 48 48 size_t blocks_to_read = get_block_count(valid_data_size); … … 58 58 } 59 59 60 static int handle_normal_file(const tar_header_t *header, FILE *tarfile)60 static errno_t handle_normal_file(const tar_header_t *header, FILE *tarfile) 61 61 { 62 62 // FIXME: create the directory first … … 69 69 } 70 70 71 int rc = EOK;71 errno_t rc = EOK; 72 72 size_t bytes_remaining = header->size; 73 73 size_t blocks = get_block_count(bytes_remaining); … … 101 101 } 102 102 103 static int handle_directory(const tar_header_t *header, FILE *tarfile)103 static errno_t handle_directory(const tar_header_t *header, FILE *tarfile) 104 104 { 105 int rc;105 errno_t rc; 106 106 107 107 rc = vfs_link_path(header->filename, KIND_DIRECTORY, NULL); … … 140 140 break; 141 141 } 142 int rc = tar_header_parse(&header, &header_raw);142 errno_t rc = tar_header_parse(&header, &header_raw); 143 143 if (rc == EEMPTY) { 144 144 continue;
Note:
See TracChangeset
for help on using the changeset viewer.