Mercurial > illumos > illumos-gate
changeset 9898:30c1d5b38fbf
6705392 setfacl does not handle correclty default:mask and default:other
4828578 setfacl: incorrect error msg when setting mask/other on fs without acl support
author | "Nagaraj Yedathore - Sun Microsystems - Bangalore India" <Nagaraj.Yedathore@Sun.COM> |
---|---|
date | Thu, 18 Jun 2009 15:30:30 +0530 |
parents | 4e5853ebe346 |
children | 1e97d6212720 |
files | usr/src/cmd/setfacl/setfacl.c |
diffstat | 1 files changed, 4 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/setfacl/setfacl.c Thu Jun 18 10:30:22 2009 +0100 +++ b/usr/src/cmd/setfacl/setfacl.c Thu Jun 18 15:30:30 2009 +0530 @@ -19,18 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -#ifndef lint -static char sccsid[] = "%Z%%M% %I% %E% SMI"; -#endif - -/* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -449,8 +438,10 @@ is_obj = ((tmpacl.a_type == USER_OBJ) || (tmpacl.a_type == GROUP_OBJ) || + (tmpacl.a_type == CLASS_OBJ) || (tmpacl.a_type == DEF_USER_OBJ) || - (tmpacl.a_type == DEF_GROUP_OBJ)); + (tmpacl.a_type == DEF_GROUP_OBJ) || + (tmpacl.a_type == DEF_OTHER_OBJ)); cur_cnt = *cntp - 1; switch (mode) {