From 473cc957826064840bce7a5c5ff97614e0c6cb9e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 27 Jul 2022 21:44:31 +0200 Subject: user/exec: shebang support --- src/user/lib/elfload.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/user/lib/elfload.c') diff --git a/src/user/lib/elfload.c b/src/user/lib/elfload.c index 6cf09c7..71714ab 100644 --- a/src/user/lib/elfload.c +++ b/src/user/lib/elfload.c @@ -12,7 +12,6 @@ void elf_execf(FILE *f, char **argv, char **envp) { const size_t cap = 0x60000; size_t pos = 0; void *buf = malloc(cap); // TODO a way to get file size - fseek(f, 0, SEEK_SET); if (buf && fread(buf, 1, cap - pos, f)) elf_exec(buf, argv, envp); -- cgit v1.2.3