Subject: Re: chflags wierdness
To: Paul Boven <e.p.boven@student.utwente.nl>
From: Curt Sampson <cjs@portal.ca>
List: current-users
Date: 04/13/1997 09:27:57
On Sun, 13 Apr 1997, Paul Boven wrote:

> So there are some documentation-issues, and the lack of, or confusing, error-
> messages are part of the namei/lookup part of the kernel....

You should certainly write a PR for the former. For the latter, seeing

> bash$ rm foo
> override rw-r--r--  paul/1024 for foo? y
> rm: foo: Operation not permitted

is perfectly `reasonable' in the Unix sense of the term. :-) EPERM
is the correct error for the system to return when you attempt to
remove a file that's immutable. The two options to make this message
`better' are to add a brand new error EPERMIMU `Attempt to remove
an immutable file' (or some such), which is a bit silly, or to have
rm check the flags on the file every time an EPERM is returned to
see if the file is immutable and in a directory that the current
user has wx access to, which also gets a bit silly.

cjs

Curt Sampson    cjs@portal.ca		Info at http://www.portal.ca/
Internet Portal Services, Inc.		`And malt does more than Milton can
Vancouver, BC   (604) 257-9400		 To justify God's ways to man.'