lkml.org 
[lkml]   [1996]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: possible buglet in 2.0.17 ext_2unlink()
   Date: 	Fri, 06 Sep 1996 00:33:41 +0200
From: Arnt Gulbrandsen <agulbra@troll.no>

ext2_unlink() seems to return EPERM if one attempts to unlink() a
directory.

This seems a bit wrong, would not EISDIR be a better value? I know
that root can sometimes unlink() directories, but even so I think
EISDIR is better for non-root users.

POSIX.1 mandates that the error be EPERM if "the implementation
prohibits using unlink() on directories".

- Ted

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