tst.egid.ksh revision 23b5c241225a8ade2b6b9f06ebb891ee459e3b02
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# CDDL HEADER START
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# The contents of this file are subject to the terms of the
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# Common Development and Distribution License (the "License").
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# You may not use this file except in compliance with the License.
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# See the License for the specific language governing permissions
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# and limitations under the License.
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# When distributing Covered Code, include this CDDL HEADER in each
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# If applicable, add the following below this CDDL HEADER, with the
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# fields enclosed by brackets "[]" replaced with your own identifying
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# information: Portions Copyright [yyyy] [name of copyright owner]
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# CDDL HEADER END
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# Use is subject to license terms.
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows#ident "%Z%%M% %I% %E% SMI"
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows############################################################################
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# ASSERTION:
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# To verify egid of current process
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# SECTION: Scripting
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows############################################################################
749f21d359d8fbd020c974a1a5227316221bfc9cwesolowsif [ $# != 1 ]; then
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows## Create .d file
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows##########################################################################
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows#!$dtrace -qs
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows/\$egid != \$1/