bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rm/fail-eaccess failure - don't run as root


From: Matthew Woehlke
Subject: rm/fail-eaccess failure - don't run as root
Date: Fri, 16 Feb 2007 13:35:53 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0

...I was trying to run 'make check' as root because that is the only user I can use on other than my Linux desktop that belongs to more then one group. Everything but rm/fail-eaccess passed, and the rm/fail-eaccess failure should be expected. This test needs to be skipped if run as root (for reasons that I hope are obvious!).

Is someone more familiar with the test system able to fix this? I did this to get by it, but it's really just a hack:

if test "`id -u`" = "0"; then
  echo "Can't run as root, skipping"
  exit 77
fi

--
Matthew
"I like to think of it as 'unplanned dissonance'" -- A fellow chorister





reply via email to

[Prev in Thread] Current Thread [Next in Thread]