only clear bits specified in perm, or, if setting as well, clear all in group.
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 26 Mar 1994 06:16:25 +0000 (22:16 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 26 Mar 1994 06:16:25 +0000 (22:16 -0800)
commit7afa7d97639e63445141e99ecb2a54ab741c84b6
treedc9fe5d91d3a4e4b04524305b90921c71ce3e7b1
parent1d54423848c987da855327e28fb95ccdff6f351b
only clear bits specified in perm, or, if setting as well, clear all in group.
deal with "g=" vs. "g=u" bogon.  update commands if:
(1) perm set and we get a 'permcopy'
(2) perm set and nothing left to do
(3) nothing left to do and we've there's an 'outstanding ='
fix umask handling for '-' when 'who' is unset.
condense code for '='.
From: "Chris G. Demetriou" <cgd@postgres.Berkeley.EDU>

SCCS-vsn: lib/libc/gen/setmode.c 8.2
usr/src/lib/libc/gen/setmode.c