Subject: Re: chflags wierdness
To: None <>
From: Mike Long <>
List: current-users
Date: 04/13/1997 20:54:20
>Date: Sun, 13 Apr 1997 09:27:57 -0700 (PDT)
>From: Curt Sampson <>
>On Sun, 13 Apr 1997, Paul Boven wrote:

>> 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.

Agreed, but rm(1) should be smart enough not to ask the override
question if immutable flags make removal impossible.
Mike Long <>      
"Every normal man must be tempted at times to spit on his hands,
hoist the black flag, and begin slitting throats." -- H.L. Mencken