lkml.org 
[lkml]   [1996]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: SECURITY HOLE in namei.c ??
Date
Harald Hoyer wrote:
> UNLINK(2) Linux Programmer's Manual UNLINK(2)
>
> [...]
>
> EISDIR pathname refers to a directory.

So, the manual page is wrong. Linux returns the EPERM error in
this case. And this conforms to Posix.1.

[ In my copy of Posix.1-1988, section 5.5.1.4 contains:
[EPERM] The file named by path is a directory and either the calling
process does not have appropriate privileges, or the
implementation prohibits using unlink on directories.]

Remy

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