summaryrefslogtreecommitdiff
path: root/src/init/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/init/tar.c')
-rw-r--r--src/init/tar.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/init/tar.c b/src/init/tar.c
index 691768c..42efcdf 100644
--- a/src/init/tar.c
+++ b/src/init/tar.c
@@ -39,19 +39,6 @@ void tar_driver(handle_t back, void *base) {
break;
}
}
-
- // iterate over all sectors, printing filenames
- while (0 == memcmp(base + 257, "ustar", 5)) {
- int size = oct_parse(base + 124, 12);
-
- _syscall_write(tty_fd, base, 100, 0);
- _syscall_write(tty_fd, " ", 1, 0);
-
- base += 512; // skip metadata sector
- base += (size + 511) & ~511; // skip file (size rounded up to 512)
- // TODO might pagefault if the last sector was at a page boundary
- }
- _syscall_write(tty_fd, "done.", 5, 0);
}
static int tar_open(const char *path, int len, void *base, size_t base_len) {