Refactor file creation logic

This commit is contained in:
EnderIce2 2024-03-11 23:35:24 +02:00
parent 42225a5cd9
commit e021c1d9eb
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -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)
{