]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AT_INIT): Make the test dir writable... really, in all 3 cases.
authorStepan Kasal <kasal@ucw.cz>
Tue, 4 Oct 2005 09:14:11 +0000 (09:14 +0000)
committerStepan Kasal <kasal@ucw.cz>
Tue, 4 Oct 2005 09:14:11 +0000 (09:14 +0000)
ChangeLog
lib/autotest/general.m4

index be22a9efdb9296b1e508959103358e7003823ae7..0c603328cc37f2160f40a3d9df3ad4bbe6bb6757 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-04  Stepan Kasal  <kasal@ucw.cz>
+
+       * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
+       before removing it (chmod -R u+rwx); there are three instances of this.
+
 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
            Stepan Kasal  <kasal@ucw.cz>
 
index be435d87f0952cc766e15a52c9ad5b861b083e7d..7bd3d9f127a60de36ad4d7e919f9214ed6a34d35 100644 (file)
@@ -276,6 +276,7 @@ do
        ;;
 
     --clean | -c )
+       test -d "$at_suite_dir" && chmod -R u+rwx "$at_suite_dir"
        rm -f -r "$at_suite_dir" "$at_suite_log"
        exit 0
        ;;
@@ -669,7 +670,7 @@ do
       # Create a fresh directory for the next test group, and enter.
       at_group_dir=$at_suite_dir/$at_group_normalized
       at_group_log=$at_group_dir/$as_me.log
-      test -d $at_group_dir && chmod -R u+w $at_group_dir
+      test -d $at_group_dir && chmod -R u+rwx $at_group_dir
       rm -f -r $at_group_dir
       mkdir $at_group_dir ||
        AS_ERROR([cannot create $at_group_dir])
@@ -763,7 +764,10 @@ _ATEOF
          echo "$at_log_msg" >&AS_MESSAGE_LOG_FD
 
          # Cleanup the group directory, unless the user wants the files.
-         $at_debug_p || rm -f -r $at_group_dir
+         $at_debug_p || {
+           test -d $at_group_dir && chmod -R u+rwx $at_group_dir
+           rm -f -r $at_group_dir
+         }
          ;;
        *)
          # Upon failure, include the log into the testsuite's global