From owner-cvs-all Sat Aug 3 15:33:40 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 74DDC37B400; Sat, 3 Aug 2002 15:33:35 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D850643E4A; Sat, 3 Aug 2002 15:33:34 -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 g73MXYJU066056; Sat, 3 Aug 2002 15:33:34 -0700 (PDT) (envelope-from gshapiro@freefall.freebsd.org) Received: (from gshapiro@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g73MXYwx066055; Sat, 3 Aug 2002 15:33:34 -0700 (PDT) Message-Id: <200208032233.g73MXYwx066055@freefall.freebsd.org> From: Gregory Neil Shapiro Date: Sat, 3 Aug 2002 15:33:34 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/etc/periodic/security 100.chksetuid X-FreeBSD-CVS-Branch: HEAD 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/03 15:33:34 PDT Modified files: etc/periodic/security 100.chksetuid Log: 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}. Reviewed by: brian MFC after: 3 days Revision Changes Path 1.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