diff options
Diffstat (limited to 'src/user/app/ext2fs')
-rw-r--r-- | src/user/app/ext2fs/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/user/app/ext2fs/main.c b/src/user/app/ext2fs/main.c index f6d65cc..65e7460 100644 --- a/src/user/app/ext2fs/main.c +++ b/src/user/app/ext2fs/main.c @@ -12,6 +12,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> struct handle { uint32_t n; @@ -191,6 +192,8 @@ err: int main(int argc, char **argv) { + intr_set(NULL); + if (argc < 2) errx(1, "bad usage"); // TODO pread/pwrite for normal handles FILE *disk = fopen(argv[1], "r+"); |