Re: coreutils-5.2.1. touch check fails as / is writable on OS X
Thanks for reporting that. I think the bug was fixed in coreutils CVS as follows: 2005-05-10 Jim Meyering [EMAIL PROTECTED] * tests/touch/not-owner: Skip this test if the user running it owns `/' or has write access to it. --- not-owner 23 Jun 2004 15:07:05 - 1.3 +++ not-owner 10 May 2005 13:30:39 - 1.5 @@ -11,6 +11,17 @@ fi . $srcdir/../lang-default PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check +test=../../src/test +if $test -w /; then + echo Skipping because you have write access to /. + (exit 77); exit 77 +fi + +if $test -O / || $test -G /; then + echo Skipping because you own /. + (exit 77); exit 77 +fi + pwd=`pwd` t0=`echo $0|sed 's,.*/,,'`.tmp; tmp=$t0/$$ trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 exit $status' 0 ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils
coreutils-5.2.1. touch check fails as / is writable on OS X
I was running the tests for coreutils-5.2.1, and the second touch test (not-owner) failed. The exact output is below. On Mac OS X (at least 10.4.1, the latest Tiger version) the default user is something between an unprivileged user and a root user. Among other things, they have write access to the '/' root directory because they are a member of the admin group. Changing the group for '/' to wheel (a group the default user is NOT in) allows the tests to complete. There appears to be a mechanism for skipping tests based on the permission of the user, and although this is not exactly a root user issue, could that be applied here? '/sbin' is also an obvious choice for a directory that doesn't have write access by the default user. The appropriate part of the test output is: ... == Making check in touch make check-TESTS PASS: relative 0a1 touch: setting times of `/': Permission denied FAIL: not-owner ... == 1 of 10 tests failed Please report to bug-coreutils@gnu.org Stuart Jefferys srj_AT_unc_DOT_edu ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils