[lkml]   [1996]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: SECURITY HOLE in namei.c ??
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 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.]


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