mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Refactor file creation logic
This commit is contained in:
parent
42225a5cd9
commit
e021c1d9eb
@ -184,12 +184,10 @@ namespace vfs
|
|||||||
if (Flags & O_CREAT)
|
if (Flags & O_CREAT)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
bool absolute = cwk_path_is_absolute(AbsolutePath);
|
||||||
new Node(pcb->CurrentWorkingDirectory,
|
new Node(pcb->CurrentWorkingDirectory,
|
||||||
AbsolutePath,
|
AbsolutePath, NodeType::FILE,
|
||||||
NodeType::FILE,
|
absolute, fs, &ret);
|
||||||
cwk_path_is_absolute(AbsolutePath),
|
|
||||||
fs,
|
|
||||||
&ret);
|
|
||||||
|
|
||||||
if (ret == -EEXIST)
|
if (ret == -EEXIST)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user