Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2017 21:42:18 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r321819 - stable/10/bin/ln/tests
Message-ID:  <201707312142.v6VLgIX5055691@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707312142.v6VLgIX5055691>