bug-coreutils
[Top][All Lists]
Advanced

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

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


From: Jim Meyering
Subject: Re: rm/fail-eaccess failure - don't run as root
Date: Sun, 18 Feb 2007 17:40:51 +0100

Matthew Woehlke <address@hidden> wrote:
> ...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!).

Thanks for reporting that.
I've fixed it like this:

        * tests/rm/fail-eacces: Skip this test when running as root.
        Reported by Matthew Woehlke.

diff --git a/tests/rm/fail-eacces b/tests/rm/fail-eacces
index 29bc911..b322848 100755
--- a/tests/rm/fail-eacces
+++ b/tests/rm/fail-eacces
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that rm -rf unremovable-non-dir gives a diagnostic.

-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2006-2007 Free Software Foundation, Inc.

 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@ if test "$VERBOSE" = yes; then
 fi

 . $srcdir/../lang-default
+PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check

 pwd=`pwd`
 t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$




reply via email to

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