summaryrefslogtreecommitdiff
path: root/tests/install
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-03-10 09:53:49 +0100
committerJim Meyering <jim@meyering.net>2007-03-10 09:53:49 +0100
commitbc86cb44e32c6c16f3d387809713536fa48585f5 (patch)
treeaaa8d7ac069ec934531c99e373d591acfba24c8b /tests/install
parent0a538a24886c0fb9eb1f4055636b3e15f8c04f4f (diff)
downloadcoreutils-bc86cb44e32c6c16f3d387809713536fa48585f5.tar.xz
* 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.
Diffstat (limited to 'tests/install')
-rwxr-xr-xtests/install/basic-15
1 files changed, 2 insertions, 3 deletions
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