From bc86cb44e32c6c16f3d387809713536fa48585f5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 10 Mar 2007 09:53:49 +0100 Subject: * tests/install/basic-1: When setting up an unreadable "." in an inaccessible parent, make the parent inaccessible *after* making "." unreadable. Otherwise, running "chmod a-r ." in an already- inaccessible parent would fail on NFS with "Stale NFS file handle". Reported by Bob Proulx. --- tests/install/basic-1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/install/basic-1 b/tests/install/basic-1 index 9ee4525a4..aeb2e37cf 100755 --- a/tests/install/basic-1 +++ b/tests/install/basic-1 @@ -1,8 +1,7 @@ #! /bin/sh # Basic tests for "install". -# Copyright (C) 1998, 2000, 2001, 2002, 2004, 2005, 2006 Free Software -# Foundation, Inc. +# Copyright (C) 1998, 2000-2002, 2004-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 @@ -131,7 +130,7 @@ test -d xx/rel && fail=1 # Test that we can install from an unreadable directory with an # inaccessible parent. coreutils 5.97 fails this test. mkdir -p sub1/d || fail=1 -(cd sub1/d && chmod a-rx .. && chmod a-r . && +(cd sub1/d && chmod a-r . && chmod a-rx .. && ginstall -d "$abs/xx/zz" rel/a rel/b 2> /dev/null) || fail=1 chmod 755 sub1 sub1/d || fail=1 test -d xx/zz || fail=1 -- cgit v1.2.3-54-g00ecf