diff --git a/storage/file_descriptor.cpp b/storage/file_descriptor.cpp index ff1db64..d1f127b 100644 --- a/storage/file_descriptor.cpp +++ b/storage/file_descriptor.cpp @@ -184,12 +184,10 @@ namespace vfs if (Flags & O_CREAT) { int ret; + bool absolute = cwk_path_is_absolute(AbsolutePath); new Node(pcb->CurrentWorkingDirectory, - AbsolutePath, - NodeType::FILE, - cwk_path_is_absolute(AbsolutePath), - fs, - &ret); + AbsolutePath, NodeType::FILE, + absolute, fs, &ret); if (ret == -EEXIST) {