[Logcheck-commits] CVS logcheck/src

CVS User ttroxell logcheck-devel@lists.alioth.debian.org
Mon, 02 Aug 2004 12:49:36 -0600


Update of /cvsroot/logcheck/logcheck/src
In directory haydn:/tmp/cvs-serv11241/src

Modified Files:
	logcheck 
Log Message:
add root check to top of script


--- /cvsroot/logcheck/logcheck/src/logcheck	2004/07/24 07:11:37	1.71
+++ /cvsroot/logcheck/logcheck/src/logcheck	2004/08/02 18:49:36	1.72
@@ -22,8 +22,12 @@
 # along with Logcheck; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-# $Id: logcheck,v 1.71 2004/07/24 07:11:37 ttroxell Exp $
+# $Id: logcheck,v 1.72 2004/08/02 18:49:36 ttroxell Exp $
 
+if [ $UID == 0 ]; then
+    echo "logcheck should not be run as root."
+    exit 1
+fi
 
 # Set the umask
 umask 077