From 3a9d1b16fae15f00749390b219e412885b1e8caa Mon Sep 17 00:00:00 2001 From: Fedor Lapshin Date: Wed, 27 Mar 2024 22:47:58 +0300 Subject: [PATCH] options/internal: use provided path in file_window --- options/internal/include/mlibc/file-window.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options/internal/include/mlibc/file-window.hpp b/options/internal/include/mlibc/file-window.hpp index 68c3ebfd45..72af2d8d9f 100644 --- a/options/internal/include/mlibc/file-window.hpp +++ b/options/internal/include/mlibc/file-window.hpp @@ -10,7 +10,7 @@ struct file_window { file_window(const char *path) { int fd; - if(mlibc::sys_open("/etc/localtime", O_RDONLY, 0, &fd)) + if(mlibc::sys_open(path, O_RDONLY, 0, &fd)) mlibc::panicLogger() << "mlibc: Error opening file_window to " << path << frg::endlog;