From owner-svn-src-projects@FreeBSD.ORG Thu Nov 27 07:33:51 2014 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 54C992CF; Thu, 27 Nov 2014 07:33:51 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 419A58D4; Thu, 27 Nov 2014 07:33:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sAR7XpR5065131; Thu, 27 Nov 2014 07:33:51 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sAR7XppF065130; Thu, 27 Nov 2014 07:33:51 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201411270733.sAR7XppF065130@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Garrett Cooper Date: Thu, 27 Nov 2014 07:33:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r275175 - projects/building-blocks/tools X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 07:33:51 -0000 Author: ngie Date: Thu Nov 27 07:33:50 2014 New Revision: 275175 URL: https://svnweb.freebsd.org/changeset/base/275175 Log: Until I teach bsd.*.mk to accept NO_ROOT, make this script only accept root users Modified: projects/building-blocks/tools/add-optional-obsolete-files-entries.sh Modified: projects/building-blocks/tools/add-optional-obsolete-files-entries.sh ============================================================================== --- projects/building-blocks/tools/add-optional-obsolete-files-entries.sh Thu Nov 27 07:26:20 2014 (r275174) +++ projects/building-blocks/tools/add-optional-obsolete-files-entries.sh Thu Nov 27 07:33:50 2014 (r275175) @@ -6,6 +6,12 @@ # # $FreeBSD$ +# NO_ROOT doesn't seem to work at a non-installworld, etc level yet +if [ $(id -u) -ne 0 ]; then + echo "${0##*/}: ERROR: this script must be run as root" + exit 1 +fi + : ${TMPDIR=/tmp} DESTDIR=$(mktemp -d $TMPDIR/tmp.XXXXXX) || exit