bug-coreutils
[Top][All Lists]
Advanced

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

Re: coreutils-5.2.1. touch check fails as "/" is writable on OS X


From: Paul Eggert
Subject: Re: coreutils-5.2.1. touch check fails as "/" is writable on OS X
Date: Fri, 08 Jul 2005 00:15:55 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Thanks for reporting that.  I think the bug was fixed in coreutils CVS
as follows:

2005-05-10  Jim Meyering  <address@hidden>

        * 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 -0000      1.3
+++ not-owner   10 May 2005 13:30:39 -0000      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




reply via email to

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