From 72cef5b74f06d18edc9675f607ab848ebb6bce47 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Mon, 4 Jan 2010 09:59:18 +0000 Subject: [PATCH] You need to be root to run this test. --- tools/regression/usr.bin/lastcomm/values.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/regression/usr.bin/lastcomm/values.sh b/tools/regression/usr.bin/lastcomm/values.sh index ef2e015a86f..6c2095437e5 100644 --- a/tools/regression/usr.bin/lastcomm/values.sh +++ b/tools/regression/usr.bin/lastcomm/values.sh @@ -12,6 +12,11 @@ run() /usr/bin/time -l -o $1.time "$@" } +if [ `whoami` != "root" ]; then + echo "You need to be root to run this test." + exit 1 +fi + echo Redirecting accounting. mkdir $TMPDIR