[Top][All Lists]

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

tests/du/inacc-dest requires non-root priviledges

From: Theodoros V. Kalamatianos
Subject: tests/du/inacc-dest requires non-root priviledges
Date: Thu, 23 Nov 2006 15:15:25 +0200 (EET)

...as the subject says, this test fails when run as root because root is not restricted by file permissions. AFAICT coreutils-6.5 introduced this and coreutils-6.6 is still affected. The following patch fixes the test:

diff -uNr coreutils-6.5/tests/du/inacc-dest coreutils-6.5/tests/du/inacc-dest
--- coreutils-6.5/tests/du/inacc-dest   2006-11-11 17:33:28.000000000 +0200
+++ coreutils-6.5/tests/du/inacc-dest   2006-11-21 15:03:37.000000000 +0200
@@ -26,6 +26,7 @@

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

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


Theodoros Kalamatianos

reply via email to

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