summaryrefslogtreecommitdiff
path: root/src/user/lib/elfload.c
diff options
context:
space:
mode:
authordzwdz2022-07-27 21:44:31 +0200
committerdzwdz2022-07-27 21:44:31 +0200
commit473cc957826064840bce7a5c5ff97614e0c6cb9e (patch)
tree70699f03cb4e28b0d7fd701e82455c25f78b1932 /src/user/lib/elfload.c
parentc8998127732765aabba020ece5e42befc6f1e305 (diff)
user/exec: shebang support
Diffstat (limited to 'src/user/lib/elfload.c')
-rw-r--r--src/user/lib/elfload.c1
1 files changed, 0 insertions, 1 deletions
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);