X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fvfs%2Ffs%2Froot.c;h=6c45f40e36a11a7fd4c2a6dd24831c55f320c87c;hb=42fb98c5f353bf3e7cfbc202e2ace886b0c85874;hp=4416750c954e5b3ff9ac206e07e3415da2f92b7a;hpb=11dbd684e9a3d907d43d71a3145205f1a86992fb;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/vfs/fs/root.c b/KernelLand/Kernel/vfs/fs/root.c index 4416750c..6c45f40e 100644 --- a/KernelLand/Kernel/vfs/fs/root.c +++ b/KernelLand/Kernel/vfs/fs/root.c @@ -90,15 +90,15 @@ int Root_MkNod(tVFS_Node *Node, const char *Name, Uint Flags) LOG("Sanity check name length - %i > %i", strlen(Name)+1, sizeof(child->Name)); if(strlen(Name) + 1 > sizeof(child->Name)) - LEAVE_RET('i', 0); + LEAVE_RET('i', EINVAL); // Find last child, while we're at it, check for duplication for( child = parent->Data.FirstChild; child; prev = child, child = child->Next ) { if(strcmp(child->Name, Name) == 0) { LOG("Duplicate"); - LEAVE('i', 0); - return 0; + LEAVE('i', EEXIST); + return EEXIST; } } @@ -137,8 +137,8 @@ int Root_MkNod(tVFS_Node *Node, const char *Name, Uint Flags) parent->Node.Size ++; - LEAVE('i', 1); - return 1; + LEAVE('i', EOK); + return EOK; } /**