Fix a generic NFS-related test failure.
authorJim Meyering <jim@meyering.net>
Sun, 18 Mar 2007 20:27:47 +0000 (21:27 +0100)
committerJim Meyering <jim@meyering.net>
Sun, 18 Mar 2007 21:37:54 +0000 (22:37 +0100)
* tests/mkdir/p-3: 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".

Signed-off-by: Jim Meyering <jim@meyering.net>
ChangeLog
tests/mkdir/p-3

index aad91cf..7e1223d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2007-03-18  Jim Meyering  <jim@meyering.net>
 
+       Fix a generic NFS-related test failure.
+       * tests/mkdir/p-3: 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".
+
        Fix a bug in how pr -m -s works.
        * NEWS: Describe how the fix affects pr.
        * src/pr.c (init_parameters): The --merge (-m) option does
index 7f36717..5c2a76a 100755 (executable)
@@ -3,7 +3,7 @@
 # causes immediate failure.  Also, ensure that we don't create
 # subsequent, relative command-line arguments in the wrong place.
 
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2005-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
@@ -54,7 +54,7 @@ test -d "$p/b/b" && test -d "$p/z" || fail=1
 
 # Same as above, but a trailing relative name in an unreadable directory
 # whose parent is inaccessible.  coreutils 5.97 fails this test.
-(cd no-acce3s/d && chmod a-rx .. && chmod a-r . && mkdir -p a/b "$p/b/c" d/e &&
+(cd no-acce3s/d && chmod a-r . && chmod a-rx .. && mkdir -p a/b "$p/b/c" d/e &&
  test -d a/b && test -d d/e) || fail=1
 test -d "$p/b/c" || fail=1