- correct some errno msg

This commit is contained in:
Marian Ohligs 2011-08-02 11:28:48 +02:00
parent 3bc6844833
commit a154525683

View file

@ -169,7 +169,7 @@ static int initrd_open(fildes_t* file, const char* name)
{
if (file->node->type == FS_FILE) {
if ((file->flags & O_CREAT) && (file->flags & O_EXCL))
return -EINVAL;
return -EEXIST;
/* in the case of O_TRUNC kfree all the nodes */
if (file->flags & O_TRUNC) {
@ -210,7 +210,7 @@ static int initrd_open(fildes_t* file, const char* name)
if (file->node->type == FS_DIRECTORY) {
if (!file->flags & O_CREAT)
return -EINVAL;
return -ENOENT;
uint32_t i, j;
block_list_t* blist = NULL;