From owner-cvs-all Tue Aug 6 10:53:20 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F00A637B400; Tue, 6 Aug 2002 10:53:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B88E443E5E; Tue, 6 Aug 2002 10:53:12 -0700 (PDT) (envelope-from gshapiro@FreeBSD.org) Received: from freefall.freebsd.org (gshapiro@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g76HrCJU088110; Tue, 6 Aug 2002 10:53:12 -0700 (PDT) (envelope-from gshapiro@freefall.freebsd.org) Received: (from gshapiro@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g76HrCgD088109; Tue, 6 Aug 2002 10:53:12 -0700 (PDT) Message-Id: <200208061753.g76HrCgD088109@freefall.freebsd.org> From: Gregory Neil Shapiro Date: Tue, 6 Aug 2002 10:53:12 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/etc/periodic/security 100.chksetuid X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG gshapiro 2002/08/06 10:53:12 PDT Modified files: (Branch: RELENG_4) etc/periodic/security 100.chksetuid Log: MFC: If all file systems are marked nosuid, the line: MP=`mount -t ufs | grep -v " nosuid" | awk '{ print $3 }' | sort` sets ${MP} to an empty string so the next line: set ${MP} actually just dumps all of the shells variables to stdout (and therefore the security report). Fixed by surrounding the code which goes through the mounts with a test for an empty string before using ${MP}. Revision Changes Path 1.4 +12 -9 src/etc/periodic/security/100.chksetuid Revision Changes Path 1.1.2.4 +12 -9 src/etc/periodic/security/100.chksetuid To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message