[Top][All Lists]

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

Re: rcs-5.8 test failure

From: Paul Eggert
Subject: Re: rcs-5.8 test failure
Date: Mon, 17 Oct 2011 16:15:36 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20110922 Thunderbird/3.1.15

On 10/17/11 14:57, Karl Berry wrote:
> test -w /".
> Couldn't it fail on NFS-mounted root filesystems?

Yes in theory, but in practice the NFS-mounted root
file systems that I've dealt with have been explicitly
root-writable, using no_root_squash in the server's
/etc/exports or equivalent.

> test -w / could certainly have a false positive

True.  (Though at least our tests will pass....)

Perhaps a better approach would be something like the
following: it avoids the issue for NFS-mounted roots
in exactly the same way that it avoids it for Cygwin.

--- common-i    2011-08-08 04:54:51.000000000 -0700
+++ common-i-fix        2011-10-17 16:12:04.686900722 -0700
@@ -29,10 +29,9 @@ log_rx=
-case $(uname -s | tr A-Z a-z) in
-    cygwin*) dont_check_readonly=true ;;
-    *)       dont_check_readonly=false ;;
+(umask a-w && test -w $wd/toe >$wd/toe) && dont_check_readonly=true
+rm -f $wd/toe || problem "$wd/toe not removed"
 # functions

reply via email to

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