]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* tests/install/basic-1: When setting up an unreadable "." in an
authorJim Meyering <jim@meyering.net>
Sat, 10 Mar 2007 08:53:49 +0000 (09:53 +0100)
committerJim Meyering <jim@meyering.net>
Sat, 10 Mar 2007 08:53:49 +0000 (09:53 +0100)
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.

ChangeLog
tests/install/basic-1

index d0f13eb3d5e68e1d66b07ada8702011fc3b7922d..62c64463ac914c64ee49c1e43e2eda6fe951eae4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2007-03-10  Jim Meyering  <jim@meyering.net>
 
+       * 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.
+
        * Makefile.maint (po-check): Exclude c99-to-c89.diff.
 
 2007-03-09  Jim Meyering  <jim@meyering.net>
index 9ee4525a4e8173adf33f8c513e2935130cf0452d..aeb2e37cf00c3e2a45e069e84f1edee7592e7b66 100755 (executable)
@@ -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