Subject: chmod(1) or setmode(3) is bent
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Luke Mewburn <lm@rmit.edu.au>
List: netbsd-bugs
Date: 01/05/1994 16:55:57
To quote from the manual for chmod(1) (in the examples section):

	go=	clear all mode bits for group and others.


Well, if you try to use chmod to clear bits with =, it fails. E.g,

	% cd /tmp
	% touch blah
	% touch ner
	% ls -l
	-rw-r--r--  1 root wheel   0 Jan  5 16:53 blah
	-rw-r--r--  1 root wheel   0 Jan  5 16:53 ner
	% chmod go= *
	% ls -l
	-rw-r--r--  1 root wheel   0 Jan  5 16:53 blah
	-rw-r--r--  1 root wheel   0 Jan  5 16:53 ner

Notice how the group & other bits aren't being cleared...
I suspect it might be a combination of the setmode and chown code, but
I haven't done much looking at the code to work out the problem.


-- 
``Concealment is never as hard as people think, you          Luke Mewburn
  must understand that. It's action while hiding that's    <lm@rmit.edu.au>
  the hard part''
        -- Coyote, in Kim Stanley Robinson's `Green Mars'

------------------------------------------------------------------------------