lkml.org 
[lkml]   [2000]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Wrong errno out of memory in open syscall
Date
From
> It's a simple one line patch, below.
>
> --- linux-2.3.40/fs/ext2/namei.c Fri Jan 28 16:23:32 2000
> +++ linux/fs/ext2/namei.c Fri Jan 28 16:40:41 2000
> @@ -176,7 +176,7 @@
> inode = iget(dir->i_sb, ino);
>
> if (!inode)
> - return ERR_PTR(-EACCES);
> + return ERR_PTR(-ENOMEM);
> }
> d_add(dentry, inode);
> return NULL;

ENOMEM isnt a valid return to open() except for a streams file. Quite why
SuS specifies this I dont know.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.079 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site