Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2017 14:54:59 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r319854 - head/bin/ln/tests
Message-ID:  <201706121454.v5CEsx9E039821@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Mon Jun 12 14:54:59 2017
New Revision: 319854
URL: https://svnweb.freebsd.org/changeset/base/319854

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

Modified:
  head/bin/ln/tests/ln_test.sh

Modified: head/bin/ln/tests/ln_test.sh
==============================================================================
--- head/bin/ln/tests/ln_test.sh	Mon Jun 12 13:49:57 2017	(r319853)
+++ head/bin/ln/tests/ln_test.sh	Mon Jun 12 14:54:59 2017	(r319854)
@@ -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
@@ -155,6 +157,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?201706121454.v5CEsx9E039821>