From a13e0d0fe3590e8f12881197832b638c500b6c7b Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 8 Aug 1999 12:36:03 +0000 Subject: Check for group ncvs before we get in too far. --- CVSROOT/commitcheck | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'CVSROOT/commitcheck') diff --git a/CVSROOT/commitcheck b/CVSROOT/commitcheck index ea05b0bd54ec..85f1392f053d 100755 --- a/CVSROOT/commitcheck +++ b/CVSROOT/commitcheck @@ -1,6 +1,6 @@ #! /bin/sh # -# $Id: commitcheck,v 1.8 1999/01/24 20:07:28 peter Exp $ +# $Id: commitcheck,v 1.9 1999/01/25 01:28:13 peter Exp $ # # BEWARE: If you are "borrowing" this code for use on another cvs @@ -17,6 +17,16 @@ freefall.freebsd.org) exit 1 esac +# +# Sanity check to make sure we've been run through the wrapper and are now +# primary group 'ncvs'. +# +GRP=`/usr/bin/id -gn` +if [ "x$GRP" != "xncvs" ]; then + echo "You do not have group ncvs!" + exit 1 +fi + # # Ensure the minimum version of cvs is installed. # -- cgit