From 45a9df836accd39cf2dbfbb2453496b0e4d93fa5 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 8 Jan 2021 22:49:54 +0100 Subject: Major IDE/ATA driver rewrite This adds non-hardcoded multi-disk support. I just need to remove the boot/load.c loader and fix the max bootloader ext2 loading size. After that's done I'll try running it on real hardware. --- apps/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/server.c') diff --git a/apps/server.c b/apps/server.c index 4840da3..58d6091 100644 --- a/apps/server.c +++ b/apps/server.c @@ -37,10 +37,10 @@ int main() int res_file = stat(path, &s_file); struct stat s_error = { 0 }; - stat(path, &s_error); + stat(ERROR, &s_error); int len; - if (res_file && s_file.size) + if (res_file == 0 && s_file.size) len = http_response(HTTP_200, s_file.size, sread(path), buf); else len = http_response(HTTP_404, s_error.size, sread(ERROR), buf); -- cgit v1.2.3