svn commit: r321819 - stable/10/bin/ln/tests

Alan Somers asomers at FreeBSD.org
Mon Jul 31 21:42:20 UTC 2017


Author: asomers
Date: Mon Jul 31 21:42:18 2017
New Revision: 321819
URL: https://svnweb.freebsd.org/changeset/base/321819

Log:
  MFC r319854:
  
  bin/ln: Set umask appropriately before creating files for testing
  
  These changes were missed in D11084
  
  Submitted by:	shivansh
  Reviewed by:	asomers
  X-MFC-With:	319714
  Sponsored by:	Google, Inc (GSoC 2017)
  Differential Revision:	https://reviews.freebsd.org/D11158

Modified:
  stable/10/bin/ln/tests/ln_test.sh
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/bin/ln/tests/ln_test.sh
==============================================================================
--- stable/10/bin/ln/tests/ln_test.sh	Mon Jul 31 21:08:31 2017	(r321818)
+++ stable/10/bin/ln/tests/ln_test.sh	Mon Jul 31 21:42:18 2017	(r321819)
@@ -98,6 +98,7 @@ target_exists_hard_head()
 
 target_exists_hard_body()
 {
+        set_umask
         atf_check touch A B
         atf_check -s exit:1 -e inline:'ln: B: File exists\n' \
                 ln A B
@@ -112,6 +113,7 @@ target_exists_symbolic_head()
 
 target_exists_symbolic_body()
 {
+        set_umask
         atf_check touch A B
         atf_check -s exit:1 -e inline:'ln: B: File exists\n' \
                 ln -s A B
@@ -171,6 +173,7 @@ sf_flag_head()
 
 sf_flag_body()
 {
+        set_umask
         atf_check touch A B
         atf_check ln -sf A B
         atf_check -o inline:'B: symbolic link to A\n' file B


More information about the svn-src-all mailing list