CVS update: /ccvs/src/

[email protected] 17 May 2005 16:29:45 -0000
Newsgroups gmane.comp.version-control.cvs.cvs
Message-ID <[email protected]>
User: dprice  
Date: 05/05/17 09:29:45

Modified:
 /ccvs/src/
  ChangeLog, sanity.sh

Log:
 * sanity.sh: Use a predictable umask.

File Changes:

Directory: /ccvs/src/
=====================

File [changed]: ChangeLog
Url: https://ccvs.cvshome.org/source/browse/ccvs/src/ChangeLog?r1=1.3192&r2=1.3193
Delta lines:  +4 -0
-------------------
--- ChangeLog	13 May 2005 21:47:28 -0000	1.3192
+++ ChangeLog	17 May 2005 16:29:42 -0000	1.3193
@@ -1,3 +1,7 @@
+2005-05-17  Derek Price  <[email protected]>
+
+	* sanity.sh: Use a predictable umask.
+
 2005-05-13  Derek Price  <[email protected]>
 
 	* login.c (password_entry_parseline): Placate gcc -Wall.

File [changed]: sanity.sh
Url: https://ccvs.cvshome.org/source/browse/ccvs/src/sanity.sh?r1=1.1061&r2=1.1062
Delta lines:  +8 -5
-------------------
--- sanity.sh	11 May 2005 20:01:47 -0000	1.1061
+++ sanity.sh	17 May 2005 16:29:43 -0000	1.1062
@@ -106,6 +106,8 @@
 LC_ALL=C
 export LC_ALL
 
+# And a few tests want a predictable umask.
+umask 0002
 
 #
 # Initialize the test counts.
@@ -22425,6 +22427,7 @@
 	  else
 	    chmod u=rwx,g=r,o= ${TESTDIR}/locks
 	  fi
+	  save_umask=`umask`
 	  umask 0077
 	  CVSUMASK=0077; export CVSUMASK
 	  dotest lockfiles-6 "${testcvs} -q update" ""
@@ -22599,9 +22602,8 @@
 
 	  dokeep
 	  cd ../..
-	  # Perhaps should restore the umask and CVSUMASK to what they
-	  # were before.  But the other tests "should" not care about them...
-	  umask 0077
+	  # Restore umask.
+	  umask $save_umask
 	  unset CVSUMASK
 	  rm -r $TESTDIR/locks
 	  rm -r 1 2 3
@@ -23234,6 +23236,7 @@
 	  # is running the tests doesn't have CVSUMASK set.
 	  #export -n CVSUMASK # if unset, defaults to 002
 
+	  save_umask=`umask`
 	  umask 077
 	  mkdir 1; cd 1
 	  dotest modes-1 "${testcvs} -q co -l ." ''
@@ -23348,10 +23351,10 @@
 
 	  dokeep
 	  cd ../..
+	  # Restore umask.
+	  umask $save_umask
 	  rm -r 1
 	  modify_repo rm -rf $CVSROOT_DIRNAME/first-dir
-	  # Perhaps should restore the umask and CVSUMASK.  But the other
-	  # tests "should" not care about them...
 	  ;;